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

Release 1.1 #1188

Merged
merged 231 commits into from
May 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
231 commits
Select commit Hold shift + click to select a range
fd8de79
#986 - intro page refactored
Jura Jul 27, 2022
f4fcc0f
#986 - markup updated
Jura Sep 13, 2022
4749384
#904 - updated javascript logic so no additional HTML markup is required
Jura Nov 8, 2022
f7bce60
bumped verson to 1.0.11
Jura Nov 8, 2022
9223ff2
Merge branch 'master' into develop
Jura Nov 11, 2022
2dee0fb
Bump @babel/preset-env from 7.19.4 to 7.20.2
dependabot[bot] Nov 14, 2022
f86333a
Bump storybook-addon-rtl from 0.4.3 to 0.4.4
dependabot[bot] Nov 14, 2022
042e720
Bump stylelint from 14.14.1 to 14.15.0
dependabot[bot] Nov 14, 2022
8f55c07
Bump webpack from 5.74.0 to 5.75.0
dependabot[bot] Nov 14, 2022
b0f4cf5
Bump stylelint-config-standard from 28.0.0 to 29.0.0
dependabot[bot] Nov 14, 2022
0669156
Merge pull request #1073 from undp/dependabot/npm_and_yarn/develop/ba…
Jura Nov 16, 2022
c6d03a5
Merge pull request #1074 from undp/dependabot/npm_and_yarn/develop/st…
Jura Nov 16, 2022
dfe5e2c
Merge pull request #1075 from undp/dependabot/npm_and_yarn/develop/st…
Jura Nov 16, 2022
ffe559c
Merge pull request #1076 from undp/dependabot/npm_and_yarn/develop/we…
Jura Nov 16, 2022
d570a64
Merge pull request #1077 from undp/dependabot/npm_and_yarn/develop/st…
Jura Nov 16, 2022
4f57dd4
Bump @wordpress/babel-preset-default from 7.5.0 to 7.6.0
dependabot[bot] Nov 21, 2022
49b44c2
Bump sass from 1.55.0 to 1.56.1
dependabot[bot] Nov 21, 2022
b6e92bb
Bump swiper from 8.4.4 to 8.4.5
dependabot[bot] Nov 21, 2022
12056b9
Bump mini-css-extract-plugin from 2.6.1 to 2.7.0
dependabot[bot] Nov 21, 2022
789fac7
Bump webpack-cli from 4.10.0 to 5.0.0
dependabot[bot] Nov 21, 2022
5a27a9e
Updated README to include link to the starter project
Jura Nov 23, 2022
ef60baf
Merge pull request #1079 from undp/dependabot/npm_and_yarn/develop/wo…
Jura Nov 23, 2022
e2d4b74
Merge pull request #1080 from undp/dependabot/npm_and_yarn/develop/sa…
Jura Nov 23, 2022
4308b89
Merge pull request #1081 from undp/dependabot/npm_and_yarn/develop/sw…
Jura Nov 23, 2022
f77fe50
Merge pull request #1082 from undp/dependabot/npm_and_yarn/develop/mi…
Jura Nov 23, 2022
7eb7831
Merge pull request #1083 from undp/dependabot/npm_and_yarn/develop/we…
Jura Nov 23, 2022
57eca4e
Bump @babel/plugin-proposal-decorators from 7.20.2 to 7.20.5
dependabot[bot] Nov 28, 2022
bc213ca
Bump postcss-cli from 9.1.0 to 10.0.0
dependabot[bot] Nov 28, 2022
8d4466d
Bump eslint-plugin-react from 7.31.10 to 7.31.11
dependabot[bot] Nov 28, 2022
ef1dcba
Bump prettier from 2.7.1 to 2.8.0
dependabot[bot] Nov 28, 2022
ebd9dcc
Merge pull request #1085 from undp/dependabot/npm_and_yarn/develop/ba…
Jura Nov 28, 2022
fa5e8ef
Merge pull request #1086 from undp/dependabot/npm_and_yarn/develop/po…
Jura Nov 28, 2022
56d1cc6
Merge pull request #1088 from undp/dependabot/npm_and_yarn/develop/es…
Jura Nov 28, 2022
295c466
Merge pull request #1089 from undp/dependabot/npm_and_yarn/develop/pr…
Jura Nov 28, 2022
14d9291
Bump @babel/plugin-proposal-private-property-in-object
dependabot[bot] Nov 28, 2022
dd9581b
Merge pull request #1087 from undp/dependabot/npm_and_yarn/develop/ba…
Jura Nov 28, 2022
37d2890
Bump sass-loader from 13.1.0 to 13.2.0
dependabot[bot] Dec 5, 2022
c99ffe3
Bump decode-uri-component from 0.2.0 to 0.2.2
dependabot[bot] Dec 9, 2022
d1608b7
Bump @storybook/cli from 6.5.13 to 6.5.15
dependabot[bot] Dec 26, 2022
8a05116
Merge pull request #1090 from undp/dependabot/npm_and_yarn/develop/sa…
Jura Jan 3, 2023
c8d31f7
Bump eslint-config-prettier from 8.5.0 to 8.6.0
dependabot[bot] Jan 9, 2023
ddda398
Bump eslint-plugin-storybook from 0.6.7 to 0.6.10
dependabot[bot] Jan 16, 2023
206bfa4
#933 - Set site title line height to match figma specs
paboden Jan 26, 2023
9498648
#1009 - logo, site region and site title all link to same place
paboden Jan 26, 2023
2eca4dd
Merge pull request #1100 from undp/933-site-title-line-height-is-inco…
Jura Jan 26, 2023
7a2c305
Merge pull request #1096 from undp/dependabot/npm_and_yarn/develop/st…
Jura Jan 26, 2023
a5c006f
Merge pull request #1097 from undp/dependabot/npm_and_yarn/develop/es…
Jura Jan 26, 2023
a368352
Merge pull request #1099 from undp/dependabot/npm_and_yarn/develop/es…
Jura Jan 26, 2023
3141213
Bump eslint-plugin-spellcheck from 0.0.19 to 0.0.20
dependabot[bot] Jan 26, 2023
d28b220
Merge pull request #1095 from undp/dependabot/npm_and_yarn/decode-uri…
Jura Jan 26, 2023
fb0577d
Merge pull request #1092 from undp/dependabot/npm_and_yarn/develop/es…
Jura Jan 27, 2023
c5e027f
Bump glob from 8.0.3 to 8.1.0
dependabot[bot] Jan 30, 2023
5a5af28
Bump @babel/plugin-proposal-object-rest-spread from 7.20.2 to 7.20.7
dependabot[bot] Jan 30, 2023
f6a79c7
Bump @storybook/addon-actions from 6.5.13 to 6.5.16
dependabot[bot] Jan 30, 2023
b5bcb80
Bump @storybook/addon-links from 6.5.13 to 6.5.16
dependabot[bot] Jan 30, 2023
b0bffba
Merge pull request #1102 from undp/dependabot/npm_and_yarn/develop/gl…
Jura Jan 30, 2023
2bcaa88
Merge pull request #1103 from undp/dependabot/npm_and_yarn/develop/ba…
Jura Jan 30, 2023
f097e95
Bump @babel/plugin-proposal-decorators from 7.20.5 to 7.20.13
dependabot[bot] Jan 30, 2023
014d197
Removed aria hidden attribute from header homepage links
paboden Jan 30, 2023
78eaf0f
#1107 - added Chromatic support
Jura Jan 31, 2023
760f7fe
Merge pull request #1109 from undp/1107-implement-chromatic-cicd-work…
Jura Jan 31, 2023
a0c7a22
Merge pull request #1104 from undp/dependabot/npm_and_yarn/develop/st…
Jura Jan 31, 2023
b60e731
Merge pull request #1105 from undp/dependabot/npm_and_yarn/develop/st…
Jura Jan 31, 2023
fb4551f
Merge pull request #1106 from undp/dependabot/npm_and_yarn/develop/ba…
Jura Jan 31, 2023
3ca4034
#1108 - typo fix
Jura Jan 31, 2023
4af7259
Merge pull request #1110 from undp/1108-homepage-hero-css-resource-is…
Jura Jan 31, 2023
c0afb2c
Update README.md
Jura Jan 31, 2023
ebc5614
#903 - Remove legal links from footer (simple variant)
paboden Jan 31, 2023
8e8e32b
#958 -- Adjust frosted background component to less opacity if browse…
paboden Feb 1, 2023
6d45916
#916
paboden Feb 1, 2023
39f2756
Forgot to add the global header css tweaks
paboden Feb 1, 2023
f73b704
RTL adjustments
paboden Feb 1, 2023
91584cf
#984 -- Setup of footer section to be able to adjust to a dynamic amo…
paboden Feb 1, 2023
77bedb0
Chore: assorted cleanup and bugs
khawkins98 Feb 1, 2023
cc70883
Merge branch 'develop' into chore/assorted-cleanups-and-bugs
Jura Feb 1, 2023
ad24e26
Merge pull request #1115 from khawkins98/chore/assorted-cleanups-and-…
Jura Feb 1, 2023
0cd0dc3
Merge pull request #1111 from undp/903-simple-footer-variant-should-u…
Jura Feb 1, 2023
cac9bb9
Removed !important flags from footer css work.
paboden Feb 1, 2023
7725f97
Removed !important flag from css changes.
paboden Feb 1, 2023
1f0e606
Removed !important flag from css changes.
paboden Feb 1, 2023
1632f71
Removed class names from label/region and span/site-name elements
paboden Feb 1, 2023
2938146
Merge pull request #1113 from undp/916-header-global-and-country-shou…
Jura Feb 1, 2023
aac59a4
Adjusted the menu items to be contained to the left 8col so that the …
paboden Feb 1, 2023
b587e76
increased rgba opacity from 0.8 to 0.9
paboden Feb 1, 2023
f1adbe6
Merge pull request #1112 from undp/958-frosted-background-needs-a-dif…
Jura Feb 1, 2023
53a3e7d
Merge pull request #1114 from undp/984-footer-links-should-accept-a-f…
Jura Feb 1, 2023
5cb9512
Merge pull request #1101 from undp/1009-logo-and-site-title-should-al…
Jura Feb 1, 2023
b2403ab
902 -- Set tab container to have internal padding, rather than set it…
paboden Feb 9, 2023
88435e5
#925 -- Set links in blockquotes to respect blockquote styles.
paboden Feb 9, 2023
45d7f10
#908 - Download modal style updates
paboden Feb 9, 2023
ce14c9a
#918 - Removed progress bar from generic page.
paboden Feb 9, 2023
015f27c
#924
paboden Feb 9, 2023
459779d
Merge pull request #1126 from undp/918-progress-bar-should-be-removed…
paboden Feb 10, 2023
29d619e
Merge pull request #1123 from undp/902-tab-container-internal-padding
paboden Feb 10, 2023
8c0577f
Merge pull request #1124 from undp/925-links-within-a-blockquote-are-…
paboden Feb 10, 2023
e6264c7
#907 -- Styling up scrollbars for firefox
paboden Feb 12, 2023
1ef41fd
#985 - Added new icon options to buttons
paboden Feb 12, 2023
7976639
Multiple updates to page hero
paboden Feb 12, 2023
d807a1e
#907 -- missed a css file update
paboden Feb 12, 2023
75e3cd9
#930 -- Accent color implementation
paboden Feb 12, 2023
2743cdc
Added Bio card accent color control
paboden Feb 12, 2023
a67e9cf
Added featured card to accent control
paboden Feb 12, 2023
b3ac55a
Added StatsCards, StatsCardSlider, and StatsSlider (two row) to accen…
paboden Feb 12, 2023
52b34aa
Added featuredCards to accent control
paboden Feb 12, 2023
f8bc7d1
Image Reveal Card added to accent control
paboden Feb 12, 2023
701574e
Added Image reveal card grid to accent control
paboden Feb 12, 2023
2c3f8f2
Added publication card and publication thumbnail to accent control
paboden Feb 12, 2023
05b8950
Added Download Card (Publication module and Card module) and Publicat…
paboden Feb 12, 2023
84990cd
Added Publication and Card thumbnails to accent control
paboden Feb 12, 2023
3f0b135
Added Callout (BlockQuoteComponent) to accent control
paboden Feb 12, 2023
25e70a0
Added PageWide Featured Content Card to accent control
paboden Feb 12, 2023
76574fd
Added Stats and StatsPanel to accent control
paboden Feb 12, 2023
2c114a5
Add all versions of the content cards (with and without images, with …
paboden Feb 12, 2023
7a539ff
Added template pages to accent control
paboden Feb 12, 2023
f19fa72
Update to set animation of icon to trigger on hover of any part of link
paboden Feb 13, 2023
68c3aba
#890 -- Set the active section to be blue/white for mobile state.
paboden Feb 13, 2023
2c6058b
Merge pull request #1125 from undp/908-download-modal-styling-needs-u…
paboden Feb 14, 2023
dbc39a8
Merge pull request #1133 from undp/890-sidebar-doesnt-display-the-che…
paboden Feb 14, 2023
5b5e9b7
Merge pull request #1129 from undp/985-button-should-include-an-optio…
paboden Feb 14, 2023
bcf9ab2
box-shadow css trick to try to get firefox to render scrollbars close…
paboden Feb 14, 2023
7b37ce0
Merge pull request #1127 from undp/924-if-image-is-followed-by-text-t…
Jura Feb 17, 2023
520402d
Merge pull request #1128 from undp/907-scrollbars-are-not-styled-prop…
Jura Feb 17, 2023
d50c311
Removed anchor tag font size declaration from base typography
theadamparker Feb 21, 2023
6e2645e
Merge branch 'develop' into 1134-fix-anchor-font-size
theadamparker Feb 21, 2023
5ae01f0
#905 - #997 - #1008
paboden Feb 23, 2023
5277741
#986 -- Test version of Intro document added for review (IntroTest.st…
paboden Feb 23, 2023
f22976b
#930 -- Update to Bio Card component to utilize the "accent-COLOR" cl…
paboden Feb 24, 2023
101d2be
Update table documentation
theadamparker Feb 24, 2023
8e059b4
#985 -- Set the arrow to render by default on CTA buttons without opt…
paboden Feb 24, 2023
795ecbd
Merge pull request #1135 from undp/1134-fix-anchor-font-size
Jura Feb 27, 2023
a7ef219
Merge branch 'develop' into 1136-fix-table-documentation
Jura Feb 27, 2023
03a4cb0
Merge pull request #1137 from undp/1136-fix-table-documentation
Jura Feb 27, 2023
c44ef1d
Merge branch 'develop' into 985-button-should-include-an-option-to-us…
Jura Feb 27, 2023
91cd166
Merge branch 'develop' into 905-997-1008-multiple-updates-to-page-hero
Jura Feb 27, 2023
e0a1fa1
Merge pull request #1130 from undp/905-997-1008-multiple-updates-to-p…
Jura Feb 27, 2023
fa13126
#1116 - added Chromatic parameter to pause CSS animations
Jura Feb 27, 2023
da7670c
#1116 - set global delay for Chromatic snapshots
Jura Feb 27, 2023
74507b1
#930 -- Update to all necessary components to follow 'accent-COLOR' f…
paboden Feb 28, 2023
6994a5a
#986 -- Replace Intro story data with IntroTest data and remove Intro…
paboden Feb 28, 2023
372021b
Merge branch 'develop' into 986-storybook-homepage-should-be-redesigned
paboden Feb 28, 2023
02c30de
#985 -- Set the default for Secondary type CTA to "No arrow", and the…
paboden Feb 28, 2023
2c7f90e
Merge pull request #1140 from undp/1116-update-stories-to-implement-c…
Jura Feb 28, 2023
010a3db
Bump stylelint-config-prettier from 9.0.3 to 9.0.5
dependabot[bot] Feb 28, 2023
f95e5cc
#1141 - added support for Bengali language
Jura Feb 28, 2023
9ee23c2
Merge pull request #1142 from undp/1141-add-support-for-bengali-language
Jura Feb 28, 2023
1d4aede
Merge pull request #1132 from undp/dependabot/npm_and_yarn/develop/st…
Jura Feb 28, 2023
0a317be
Bump postcss-cli from 10.0.0 to 10.1.0
dependabot[bot] Feb 28, 2023
044a923
Merge pull request #1093 from undp/dependabot/npm_and_yarn/develop/po…
Jura Feb 28, 2023
d996f85
Bump @babel/plugin-transform-destructuring from 7.20.2 to 7.20.7
dependabot[bot] Feb 28, 2023
8b1ec0e
Merge pull request #1138 from undp/985-button-should-include-an-optio…
Jura Feb 28, 2023
46205f5
Merge pull request #1118 from undp/dependabot/npm_and_yarn/develop/ba…
Jura Feb 28, 2023
af654eb
#986 -- Added high quality video to the Intro header.
paboden Mar 1, 2023
d87d527
Merge branch 'develop' into 986-storybook-homepage-should-be-redesigned
paboden Mar 1, 2023
5646b6f
#915 -- Fix glitchy mega menu panels on global homepage.
paboden Mar 1, 2023
a5b7a6b
Merge pull request #1143 from undp/915-mega-menu-is-glitchy-when-movi…
Jura Mar 1, 2023
848c16b
#915 - added compiled assets
Jura Mar 1, 2023
d6787af
#915 -- Fix to broken closing mega menu panels in Firefox browser.
paboden Mar 1, 2023
e57d31d
#986 -- Fix to autoplay in chrome...
paboden Mar 1, 2023
1526a80
Merge branch 'develop' into 986-storybook-homepage-should-be-redesigned
paboden Mar 1, 2023
9104d48
#915 - added compiled js file
Jura Mar 1, 2023
e2dafb6
Merge pull request #1144 from undp/915-mega-menu-firefox-glitch-fix
Jura Mar 1, 2023
29d571d
#941 -- CTA "Donate" Button option added to header
paboden Mar 2, 2023
a3f7a81
#905 - #997 - #1008 -- Fix to page hero to make sure to use default i…
paboden Mar 2, 2023
a643d35
Merge branch 'develop' into 905-997-1008-multiple-updates-to-page-hero
paboden Mar 2, 2023
2b8ffd3
Merge branch 'develop' into 930-accent-color-should-be-implemented-as…
paboden Mar 2, 2023
89407ba
#930 -- Fix to pass thru of hovercolors thru to stats cards and panel…
paboden Mar 2, 2023
5036ab9
#930 -- Compiled css and js
paboden Mar 2, 2023
d28e900
Merge pull request #1145 from undp/941-add-donate-button-to-country-s…
Jura Mar 2, 2023
9e7e995
Merge pull request #1139 from undp/986-storybook-homepage-should-be-r…
Jura Mar 2, 2023
7491b09
Merge branch 'develop' into 905-997-1008-multiple-updates-to-page-hero
paboden Mar 3, 2023
9c73b73
Merge branch 'develop' into 930-accent-color-should-be-implemented-as…
paboden Mar 3, 2023
4aeaebc
#916 -- Fix to logo z-index on large screen to make clickable again
paboden Mar 3, 2023
fc79318
#916 -- Fix to scrolled logo effect on large screen size (1024px > 14…
paboden Mar 3, 2023
697cddd
Bump @babel/plugin-transform-block-scoping from 7.20.2 to 7.21.0
dependabot[bot] Mar 6, 2023
8076392
Bump postcss-loader from 7.0.1 to 7.0.2
dependabot[bot] Mar 6, 2023
e707d62
Merge pull request #1150 from undp/dependabot/npm_and_yarn/develop/ba…
Jura Mar 6, 2023
0bab006
Bump @babel/plugin-proposal-optional-chaining from 7.18.9 to 7.21.0
dependabot[bot] Mar 6, 2023
c67f57d
Merge pull request #1151 from undp/dependabot/npm_and_yarn/develop/po…
Jura Mar 6, 2023
1f041fc
Merge pull request #1153 from undp/dependabot/npm_and_yarn/develop/ba…
Jura Mar 6, 2023
5056258
Bump eslint-plugin-react from 7.31.11 to 7.32.2
dependabot[bot] Mar 6, 2023
903007f
Merge branch 'develop' into 905-997-1008-multiple-updates-to-page-hero
paboden Mar 6, 2023
2b7b152
Merge branch 'develop' into 916-fix-global-logo-link
paboden Mar 6, 2023
52c2cec
Merge pull request #1152 from undp/dependabot/npm_and_yarn/develop/es…
Jura Mar 6, 2023
0129d50
Merge branch 'develop' into 905-997-1008-multiple-updates-to-page-hero
paboden Mar 6, 2023
a4359ba
Merge branch 'develop' into 916-fix-global-logo-link
paboden Mar 6, 2023
1de363c
Merge branch 'develop' into 930-accent-color-should-be-implemented-as…
paboden Mar 6, 2023
b9c75db
#930 -- Fix to featured content card to accept 2 possible sources for…
paboden Mar 7, 2023
3866dd1
Merge pull request #1146 from undp/905-997-1008-multiple-updates-to-p…
Jura Mar 7, 2023
6789c9b
Merge branch 'develop' into 930-accent-color-should-be-implemented-as…
paboden Mar 7, 2023
46784e4
#930 -- Change to Content card with no image or emphasis, to remove t…
paboden Mar 8, 2023
72a451a
#916 -- Fix shifting header elements on logo scroll effect
paboden Mar 8, 2023
3332a38
#916 -- Fix to shifting elements on mobile version of global header, …
paboden Mar 8, 2023
8ea4547
Merge branch 'develop' into 916-fix-global-logo-link
paboden Mar 8, 2023
2103e5c
Merge pull request #1131 from undp/930-accent-color-should-be-impleme…
Jura Mar 8, 2023
90bdb67
#1157 -- Fix the default setting to blockquotes to use the yellow bac…
paboden Mar 9, 2023
774688e
#1157 -- Adjustment to the default setting of block quote on article …
paboden Mar 9, 2023
7ee0ee2
Merge pull request #1158 from undp/1157-article-template-is-missing-y…
Jura Mar 9, 2023
39bf474
Merge branch 'develop' into 916-fix-global-logo-link
paboden Mar 9, 2023
3c86001
#916 -- Addressed issue with progress bar not showing between mobile …
paboden Mar 9, 2023
98834d9
Merge pull request #1148 from undp/916-fix-global-logo-link
Jura Mar 9, 2023
9b53f5a
#916 -- fixed vertical offset language dropdown
paboden Mar 10, 2023
684e29b
Merge branch 'develop' into 916-fix-global-logo-link
paboden Mar 10, 2023
f05e0e0
Fix to vertical alignment on country header
paboden Mar 10, 2023
3d85a5d
Merge pull request #1159 from undp/916-fix-global-logo-link
Jura Mar 10, 2023
346eea0
Bump webpack from 5.75.0 to 5.76.1
dependabot[bot] Mar 13, 2023
9774a2d
Bump stylelint-scss from 4.3.0 to 4.4.0
dependabot[bot] Mar 13, 2023
b18fa55
Merge pull request #1160 from undp/dependabot/npm_and_yarn/develop/we…
Jura Mar 14, 2023
9d20706
Merge pull request #1161 from undp/dependabot/npm_and_yarn/develop/st…
Jura Mar 14, 2023
c6acf4f
#1116 - added 4 different viewports for Article template
Jura Mar 15, 2023
d1216cc
#1116 - enaled multiple rendering Chromatic viewports or all templates
Jura Mar 15, 2023
b401dd1
#1116 - added multiple Chromatic viewports for all complex components
Jura Mar 15, 2023
11282ad
Merge pull request #1163 from undp/1116-update-stories-to-implement-c…
Jura Mar 16, 2023
a54e331
Bump @babel/plugin-proposal-decorators from 7.20.13 to 7.21.0
dependabot[bot] Mar 20, 2023
9eff1de
Bump @babel/plugin-transform-for-of from 7.18.8 to 7.21.0
dependabot[bot] Mar 20, 2023
39eb68a
#934 - Refactored image styling for wide, medium, and portrait. Clean…
paboden Mar 24, 2023
17993d4
#934 -- Refactored the Image and caption layout to require fewer clas…
paboden Mar 26, 2023
58a1d59
#934 -- Set default state of images with captions to be without wrapp…
paboden Mar 29, 2023
167c8a6
Merge pull request #1164 from undp/dependabot/npm_and_yarn/develop/ba…
Jura Mar 31, 2023
91c20b0
Merge pull request #1165 from undp/dependabot/npm_and_yarn/develop/ba…
Jura Mar 31, 2023
a819852
Merge branch 'develop' into 934-refactor-image-styling-in-various-for…
paboden Mar 31, 2023
3f30342
Merge pull request #1167 from undp/934-refactor-image-styling-in-vari…
Jura Apr 3, 2023
4460228
Bump gsap from 3.11.3 to 3.11.5
dependabot[bot] Apr 3, 2023
fd38453
Bump webpack-cli from 5.0.0 to 5.0.1
dependabot[bot] Apr 3, 2023
777885c
Merge pull request #1170 from undp/dependabot/npm_and_yarn/develop/gs…
Jura Apr 4, 2023
910e34f
Merge pull request #1171 from undp/dependabot/npm_and_yarn/develop/we…
Jura Apr 4, 2023
513f286
Bump babel-loader from 8.3.0 to 9.1.2
dependabot[bot] Apr 10, 2023
0b9e345
Bump svgo from 3.0.0 to 3.0.2
dependabot[bot] Apr 10, 2023
c8faf7a
Merge pull request #1174 from undp/dependabot/npm_and_yarn/develop/ba…
Jura May 9, 2023
11443c8
Merge branch 'develop' into dependabot/npm_and_yarn/develop/svgo-3.0.2
Jura May 9, 2023
ef4485c
Merge pull request #1175 from undp/dependabot/npm_and_yarn/develop/sv…
Jura May 9, 2023
c99edb2
Merge branch 'master' into develop
Jura May 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
27 changes: 27 additions & 0 deletions .github/workflows/chromatic.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# .github/workflows/chromatic.yml

# Workflow name
name: 'Chromatic'

# Event for the workflow
on: push

# List of jobs
jobs:
chromatic-deployment:
# Operating System
runs-on: ubuntu-latest
# Job steps
steps:
- uses: actions/checkout@v1
- name: Install dependencies
# 👇 Install dependencies with the same package manager used in the project (replace it as needed), e.g. yarn, npm, pnpm
run: yarn
# 👇 Adds Chromatic as a step in the workflow
- name: Publish to Chromatic
uses: chromaui/action@v1
# Chromatic GitHub Action options
with:
# 👇 Chromatic projectToken, refer to the manage page to obtain it.
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
exitOnceUploaded: true
6 changes: 5 additions & 1 deletion .storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,9 @@ module.exports = {
});
return config;
},
framework: "@storybook/react"
framework: "@storybook/react",
env: (config) => ({
...config,
CHROMATIC_VIEWPORTS: [375, 768, 1380, 1920],
}),
};
80 changes: 53 additions & 27 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ export const parameters = {
includeName: true
},
},
chromatic: {
pauseAnimationAtEnd: true,
delay: 1500
},
}

/* Implementing locale for language switcher */
Expand All @@ -51,46 +55,39 @@ export const globalTypes = {
toolbar: {
icon: 'globe',
items: [
{ value: 'english', title: 'English' },
{ value: 'english', title: 'English', right: 'Default' },
{ value: 'arabic', title: 'Arabic' },
{ value: 'burmese', title: 'Burmese' },
{ value: 'japanese', title: 'Japanese' }
],
},
},
accent: {
name: 'Accent color',
description: 'Define the accent color.',
defaultValue: '',
toolbar: {
icon: 'paintbrush',
showName: true,
items: [
{ value: '', title: 'Default accent', right: 'Default' },
{ value: 'yellow', title: 'Yellow' },
{ value: 'green', title: 'Green' },
{ value: 'red', title: 'Red' },
{ value: 'blue', title: 'Azure' },
]
}
}
};


// addParameters({
// options: {
// /**
// * display the top-level grouping as a "root" in the sidebar
// * @type {Boolean}
// */
// showRoots: true,
// storySort: (previous, next) => {
// const [previousStory, previousMeta] = previous
// const [nextStory, nextMeta] = next

// return anysort(previousMeta.kind, nextMeta.kind, [
// 'Getting started/**',
// 'Foundation/**',
// 'Components/**',
// 'Patterns/**',
// 'Utilities/**',
// 'Templates/**'
// ])
// }
// },
// })

/**
* Function to get current language code.
*
* @param {*} Story renders Stories in iFrame.
* @param {*} context Current context for Addons.
* @returns Current Language Code.
*/
const getLangCode=(Story,context)=>{
const getLangCode = (Story, context) => {
let activeLang = context.globals.locale;

// trigger onload event
Expand Down Expand Up @@ -173,5 +170,34 @@ const setDirection = (Story, options) => {
)
}

/**
* Function to set a global "accent-COLOR" class to the body.
*
* @param {*} Story renders Stories in iFrame.
* @param {*} context Current context for Addons.
* @returns Story with accent color processed.
*/
const setAccentClass = (Story, context) => {
let accent = context.globals.accent;
const bodyElem = document.querySelector('body');

// Remove any prexisting accent-COLOR items so we can apply the most recent
// global selection.
bodyElem.classList.forEach((item) => {
if (item.startsWith('accent-')) {
bodyElem.classList.remove(item);
}
});

if (Boolean(accent)) {
// Set accent class on body tag (the most parent of parents).
bodyElem.classList.add(`accent-${accent}`);
}

return (
<Story {...context} />
)
}

// Trigger callback in Storybook Addons.
export const decorators = [getLangCode, sbFrameReset, setDirection];
export const decorators = [getLangCode, sbFrameReset, setDirection, setAccentClass];
5 changes: 3 additions & 2 deletions .stylelintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"stylelint-scss"
],
"extends": [
"stylelint-config-standard",
"stylelint-config-standard",
"stylelint-config-sass-guidelines"
],
"defaultSeverity": "warning",
Expand All @@ -17,11 +17,12 @@
"property-no-vendor-prefix": null,
"selector-no-vendor-prefix": null,
"value-no-vendor-prefix": null,
"import-notation": "string",
"property-no-unknown": [
true,
{
"ignoreProperties": ["/box-*/", "/flex-*/"]
}
]
}
}
}
92 changes: 60 additions & 32 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,22 @@
# United Nations Development Programme Design system
# United Nations Development Programme Design System

## Purpose

The purpose of this project is to create unified user interfaces for UNDP by the designer and developers.

These projects will have consistent look and feel and accessible in nature by just following the guidelines in the documentation.

By unifiying design elements into reusable components, development will simplify and accelerate the development of these digital products.
By unifying design elements into reusable components, development will simplify and accelerate the development of these digital products.

The Guide is a living document created to meet the needs of UNDP's front-end developers and designers. If there is a Component or Pattern that you need, or you have any other feedback, question or comment please contact us.

## Demo

Living Style Guide & Documentation: **[Demo](https://design.undp.org)**

## Starter project

Static generator using Design System as dependency: [UNDP Design System starter template](https://github.com/undp/design-system-starter-template)

## Development

Expand All @@ -24,59 +28,83 @@ git clone

# install project dependencies
yarn install
or
npm install

# runs storybook locally
yarn run storybook
or
npm run storybook

# build storybook
yarn run build-storybook
or
npm run build-storybook

# build compiled css and js
yarn run build
or
npm run build

# linting on codebase
# caution: this will write changes to your files
yarn run lint
or
npm run lint
```

## List of components
### Important

Make sure to run `yarn run build` or `npm run build` to compile production ready css and js files and include them with your development work. This will help save some extra steps when it comes time to deploy to production.

View available Components [here](https://design.undp.org). Every components have its own documentations page on the link provided.
## List of components

View available Components [here](https://design.undp.org). Every components has its own documentation page on the link provided.

## Credits

The design system is based on:

- [Storybook](https://storybook.js.org/)


## Assets

- All the icons/images can be found in the ***stories/assets/images/Icon*** directory.
- CSS directory at: ***dist/css***.
- JS directory at: ***dist/js***.
=======

- All the icons/images can be found in the **_docs/images_** directory.
- Fonts: **_docs/fonts_**
- CSS directory at: **_docs/css_**
- JS directory at: **_docs/js_**

## Storybook and File references

| Storybook path | File path |
| ------------- | ------------- |
| Components/UI components/Cards/Download Card | stories/Molecules/Blocks/DownloadCard/DownloadCard |
| Components/UI components/Cards/Publication Card | stories/Molecules/Blocks/DownloadCard/PublicationCard |
| Components/UI components/Text/Callout | stories/Molecules/Text/BlockquoteComponent |
| Components/UI components/Text/CTA Block | stories/Molecules/Text/CtaBlock |
| Components/UI components/Text/Heading Big Block | stories/Molecules/Text/HeadingBig |
| Components/UI components/Text/Post Block | stories/Molecules/Text/Post |
| Components/UI components/Text/Small Copy Lockup | stories/Molecules/Text/SmallCopy |
| Components/UI components/Text/Tertiary Block | stories/Molecules/Text/Tertiary |
| Components/UI components/Text/Text Background | stories/Molecules/Text/TextBackground |
| Components/UI components/Text/Text Cta | stories/Molecules/Text/TextCta |
| Components/UI components/Author Summary | stories/Organism/Blocks/Authorcard |
| Patterns/Card grids/Content Cards | stories/Organism/Blocks/ContentCard |
| Patterns/Card grids/Content Cards With and Without Image | stories/Organism/Blocks/ContentCardWithAndWithoutImage |
| Patterns/Card grids/Featured Cards | stories/Organism/Blocks/FeaturedContentCard/FeaturedCard |
| Components/UI components/Pagewide Featured Content Card | stories/Organism/Blocks/FeaturedContentCard/PagewideContentCard |
| Patterns/Card grids/Image Reveal Cards | stories/Organism/Blocks/ImageRevealCards |
| Components/UI components/Footer | stories/Organism/Footer |
| Components/UI components/Stats | stories/Organism/Stats |
| Components/UI components/Stats Card Slider | stories/Organism/Statscardslider |
| Utilities/Progress Bar Navigation | stories/Atom/Navigation/ProgressBarNavigation |

## LICENSE
| Storybook path | File path |
| -------------------------------------------------------- | --------------------------------------------------------------- |
| Components/UI components/Cards/Download Card | stories/Molecules/Blocks/DownloadCard/DownloadCard |
| Components/UI components/Cards/Publication Card | stories/Molecules/Blocks/DownloadCard/PublicationCard |
| Components/UI components/Text/Callout | stories/Molecules/Text/BlockquoteComponent |
| Components/UI components/Text/CTA Block | stories/Molecules/Text/CtaBlock |
| Components/UI components/Text/Heading Big Block | stories/Molecules/Text/HeadingBig |
| Components/UI components/Text/Post Block | stories/Molecules/Text/Post |
| Components/UI components/Text/Small Copy Lockup | stories/Molecules/Text/SmallCopy |
| Components/UI components/Text/Tertiary Block | stories/Molecules/Text/Tertiary |
| Components/UI components/Text/Text Background | stories/Molecules/Text/TextBackground |
| Components/UI components/Text/Text Cta | stories/Molecules/Text/TextCta |
| Components/UI components/Author Summary | stories/Organism/Blocks/Authorcard |
| Patterns/Card grids/Content Cards | stories/Organism/Blocks/ContentCard |
| Patterns/Card grids/Content Cards With and Without Image | stories/Organism/Blocks/ContentCardWithAndWithoutImage |
| Patterns/Card grids/Featured Cards | stories/Organism/Blocks/FeaturedContentCard/FeaturedCard |
| Components/UI components/Pagewide Featured Content Card | stories/Organism/Blocks/FeaturedContentCard/PagewideContentCard |
| Patterns/Card grids/Image Reveal Cards | stories/Organism/Blocks/ImageRevealCards |
| Components/UI components/Footer | stories/Organism/Footer |
| Components/UI components/Stats | stories/Organism/Stats |
| Components/UI components/Stats Card Slider | stories/Organism/Statscardslider |
| Utilities/Progress Bar Navigation | stories/Atom/Navigation/ProgressBarNavigation |

## License

MIT license.

## Acknowledgments

Thanks to <a href="https://www.chromatic.com/"><img src="https://avatars.githubusercontent.com/u/24584319?s=20&v=4" alt="Chromatic logo"> Chromatic</a> for providing the visual testing platform that helps us review UI changes and catch visual regressions.
2 changes: 1 addition & 1 deletion docs/css/base-minimal-no-grid.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/css/base-minimal.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/css/components/bio-card.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/css/components/blockquotecomp.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading