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

chore: merge alpha into master #3158

Closed
wants to merge 236 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
236 commits
Select commit Hold shift + click to select a range
bb36873
feat: alpha release of design tokens (#1770)
viktorrusakov Nov 18, 2022
f770c35
build: add alpha/beta to release CI workflow
adamstankiewicz Nov 18, 2022
d5732fe
feat: design tokens with style-dictionary
adamstankiewicz Nov 18, 2022
debaf45
feat: resolve bootstrap conflicts with design tokens (#1800)
viktorrusakov Nov 28, 2022
6907e0e
feat: add ability to generate CSS utility classes through design tokens
viktorrusakov Dec 1, 2022
10352aa
docs: added background-color for color HEX values on CSS utility clas…
PKulkoRaccoonGang Dec 5, 2022
2233af1
fix: add missed border utilities
viktorrusakov Dec 5, 2022
64371a0
docs: add ability to view CSS variables on CSS Utility Classes page
viktorrusakov Dec 5, 2022
ca5b8a1
chore: remove unused import
viktorrusakov Dec 7, 2022
5a23e57
feat: remove deprecated components
viktorrusakov Dec 7, 2022
6c0addf
chore: update tokens for Modal components
viktorrusakov Dec 8, 2022
a67c6f0
docs: display computed CSS variables on components' pages
viktorrusakov Dec 8, 2022
b246583
refactor: update design tokens structure
PKulkoRaccoonGang Dec 15, 2022
5150adc
feat: add CLI interface for design tokens (#1846)
viktorrusakov Dec 15, 2022
e23dfd2
fix: install dependencies in tokens module after installing Paragon
viktorrusakov Dec 19, 2022
d1411c8
fix: remove package.json files from tokens module
viktorrusakov Dec 20, 2022
c092b0e
refactor: update design tokens structure
PKulkoRaccoonGang Dec 20, 2022
73f6a87
refactor: replace old tables with `DataTable` on documentation site (…
PKulkoRaccoonGang Jan 6, 2023
dcafd50
refactor: improve design tokens architecture (#1874)
PKulkoRaccoonGang Jan 6, 2023
697bb6d
build: add workflow_dispatch to alpha branch to trigger release
adamstankiewicz Jan 7, 2023
0147026
fix: trigger release
adamstankiewicz Jan 7, 2023
56ece6c
fix: added custom title for CSS output files (#1985)
PKulkoRaccoonGang Feb 1, 2023
8ebe4b1
feat: deleted value in reference design tokens (#1989)
PKulkoRaccoonGang Feb 8, 2023
9c4a46a
fix: ensure design tokens have a valid type attribute (#1992)
PKulkoRaccoonGang Feb 15, 2023
51c7659
fix: add missing tokens for Button component (#1924)
PKulkoRaccoonGang Feb 15, 2023
f68e96d
feat: add new tokens and cleanup after rebase
viktorrusakov Feb 16, 2023
837e8e2
fix: trigger alpha release
adamstankiewicz Feb 21, 2023
c9f1ab9
Merge pull request #2072 from openedx/master
adamstankiewicz Feb 22, 2023
a2f9488
Merge pull request #2079 from openedx/master
edx-requirements-bot Feb 22, 2023
b8304fa
Merge pull request #2081 from openedx/master
edx-requirements-bot Feb 23, 2023
7f41fc2
Merge pull request #2083 from openedx/master
edx-requirements-bot Feb 23, 2023
8f294ed
Merge pull request #2087 from openedx/master
edx-requirements-bot Feb 24, 2023
1c38503
docs: add pseudo-docs for intended usage, and details on working with…
adamstankiewicz Feb 24, 2023
2bd215a
feat: added CSS custom media query transformer (#2068)
PKulkoRaccoonGang Feb 24, 2023
c22acd4
Merge pull request #2093 from openedx/master
edx-requirements-bot Feb 24, 2023
b2ad694
feat: refactoring design tokens folders structure (#2069)
PKulkoRaccoonGang Feb 24, 2023
fed70c0
Merge pull request #2095 from openedx/master
edx-requirements-bot Feb 25, 2023
17ed5b0
Merge pull request #2097 from openedx/master
edx-requirements-bot Feb 26, 2023
a9afbeb
fix: use min-width in custom-media breakpoint definitions (#2098)
adamstankiewicz Feb 26, 2023
19ac338
Merge pull request #2101 from openedx/master
edx-requirements-bot Feb 27, 2023
a7b400e
Merge pull request #2104 from openedx/master
edx-requirements-bot Feb 28, 2023
9c21326
Merge pull request #2106 from openedx/master
edx-requirements-bot Mar 1, 2023
5e39bb7
Merge pull request #2109 from openedx/master
edx-requirements-bot Mar 2, 2023
9176891
Merge pull request #2114 from openedx/master
edx-requirements-bot Mar 3, 2023
3aeb56f
Merge pull request #2116 from openedx/master
edx-requirements-bot Mar 4, 2023
b6fbcb4
Merge pull request #2118 from openedx/master
edx-requirements-bot Mar 5, 2023
e40ca1e
Merge pull request #2120 from openedx/master
edx-requirements-bot Mar 6, 2023
1182ea3
Merge pull request #2122 from openedx/master
edx-requirements-bot Mar 7, 2023
6607147
Merge pull request #2124 from openedx/master
edx-requirements-bot Mar 9, 2023
b06b88b
Merge pull request #2126 from openedx/master
edx-requirements-bot Mar 10, 2023
0208200
Merge pull request #2129 from openedx/master
edx-requirements-bot Mar 11, 2023
ecacf00
Merge pull request #2131 from openedx/master
edx-requirements-bot Mar 12, 2023
6343f7f
Merge pull request #2133 from openedx/master
edx-requirements-bot Mar 13, 2023
bce1816
Merge pull request #2135 from openedx/master
edx-requirements-bot Mar 14, 2023
bad7b8e
Merge pull request #2153 from openedx/master
edx-requirements-bot Mar 22, 2023
4581c26
Merge pull request #2155 from openedx/master
edx-requirements-bot Mar 22, 2023
63f9709
Merge pull request #2157 from openedx/master
edx-requirements-bot Mar 23, 2023
c1ba67d
Merge pull request #2158 from openedx/master
edx-requirements-bot Mar 24, 2023
8abc6d9
chore: update @edx/frontend-build to latest in Paragon example app (#…
PKulkoRaccoonGang Mar 24, 2023
708df1b
fix: add description for tokens (#2112)
monteri Mar 24, 2023
8ace6a9
Merge pull request #2161 from openedx/master
edx-requirements-bot Mar 24, 2023
8aa30e2
feat: theme CSS is built and published (#2102)
PKulkoRaccoonGang Apr 7, 2023
2077957
Merge branch 'master' into alpha
viktorrusakov Apr 21, 2023
33b641b
feat: add new tokens for Form, ColorPicker, and Icon components
viktorrusakov Apr 21, 2023
d6a7914
Merge pull request #2204 from openedx/rusakov/sync-alpha-with-master
viktorrusakov Apr 21, 2023
fdf3b8f
Merge pull request #2205 from openedx/master
edx-requirements-bot Apr 21, 2023
cbf8eac
Merge pull request #2206 from openedx/master
edx-requirements-bot Apr 21, 2023
8545b56
Merge pull request #2207 from openedx/master
edx-requirements-bot Apr 21, 2023
a809fa7
Merge pull request #2208 from openedx/master
edx-requirements-bot Apr 21, 2023
1b02505
feat: add custom variables to utility classes (#2022)
andrey-canon Apr 26, 2023
995dc70
Merge branch 'master' into alpha
viktorrusakov Apr 27, 2023
9f82290
feat: add new css variable to `DataTable`
viktorrusakov Apr 27, 2023
ad4b847
chore: master to alpha
viktorrusakov Apr 27, 2023
2a7e53a
feat: remove SCSS variable usages in components (#2137)
PKulkoRaccoonGang May 5, 2023
b9e3a9b
Merge branch 'master' into alpha
viktorrusakov May 12, 2023
d5cb9ea
feat: add tokens for `SelectMenu` component and cleanup after sync wi…
viktorrusakov May 12, 2023
8425a26
Merge pull request #2293 from openedx/vrusakov/merge-master-into-alpha
viktorrusakov May 15, 2023
aea772d
Merge pull request #2210 from openedx/master
edx-requirements-bot May 15, 2023
bbdd9e0
Merge pull request #2301 from openedx/master
edx-requirements-bot May 15, 2023
11e30a6
Merge pull request #2303 from openedx/master
edx-requirements-bot May 15, 2023
2d13396
Merge pull request #2305 from openedx/master
edx-requirements-bot May 16, 2023
87ffe86
Merge pull request #2306 from openedx/master
edx-requirements-bot May 16, 2023
3ec8967
Merge pull request #2308 from openedx/master
edx-requirements-bot May 16, 2023
88acd2b
Merge pull request #2312 from openedx/master
edx-requirements-bot May 17, 2023
b7762f8
feat: completely deprecate FontAwesome (#2327)
PKulkoRaccoonGang May 26, 2023
3397d86
feat: generate paragon-theme.json during npm run build with themeUrls…
adamstankiewicz May 29, 2023
2767813
fix: updates the paragon-theme.json output (#2334)
adamstankiewicz May 29, 2023
2ab22c0
Merge branch 'master' into vrusakov/sync-alpha
viktorrusakov Jun 1, 2023
32027ac
feat: add tokens for `Tab` and `Nav` components
viktorrusakov Jun 1, 2023
5a1461c
feat: make color-yiq function a11y-friendly
viktorrusakov Jun 1, 2023
2cf913b
Merge pull request #2337 from openedx/vrusakov/sync-alpha
viktorrusakov Jun 2, 2023
da7498b
Merge pull request #2339 from openedx/master
edx-requirements-bot Jun 2, 2023
73bac92
fix: avoid infinite while loop with `colorYiq` (#2349)
adamstankiewicz Jun 3, 2023
0cef2ae
fix: remove unnecessary parentheses from coloryiq warning (#2350)
adamstankiewicz Jun 3, 2023
d708913
feat: update `build-tokens.js` to include `--source-tokens-only` arg …
adamstankiewicz Jun 4, 2023
8b9a000
fix: ensure sourceMappingUrl is correct (#2352)
adamstankiewicz Jun 4, 2023
d3774b4
fix: add missing css util classes for border-radius (#2355)
adamstankiewicz Jun 5, 2023
8d58733
feat: create themes flag to build tokens (#2357)
dcoa Jun 7, 2023
6aff5e8
feat: added rounded pill token (#2361)
PKulkoRaccoonGang Jun 8, 2023
108c2c5
fix: added missing SCSS variables in design tokens (#2364)
PKulkoRaccoonGang Jun 16, 2023
14bf7ee
docs: fixed Input is not defined in TransitionReplace component (#2393)
PKulkoRaccoonGang Jun 23, 2023
372f801
feat: add defaults to theme-urls.json output on build (#2468)
adamstankiewicz Jul 23, 2023
6bd6bfb
fix: renamed custom media query (#2495)
PKulkoRaccoonGang Aug 3, 2023
0acaee2
Merge branch 'master' into zadorozhnii/sync-alpha-v3
Aug 22, 2023
f70e48f
refactor: refactorng after rebase
PKulkoRaccoonGang Aug 25, 2023
97dcf9d
refactor: added new tokens
PKulkoRaccoonGang Aug 28, 2023
de6d892
fix: skeleton.css fix
Aug 31, 2023
62e6822
chore: sync alpha (#2568)
monteri Sep 1, 2023
9df531c
Revert "chore: sync alpha (#2568)" (#2586)
adamstankiewicz Sep 1, 2023
2515592
Merge pull request #2587 from openedx/ags/sync-alpha-fix
adamstankiewicz Sep 1, 2023
3ae8797
fix: remove undefined variables from utility classes (#2615)
PKulkoRaccoonGang Sep 13, 2023
1c46432
docs: replaced SCSS variables with CSS variables on the Colors page (…
PKulkoRaccoonGang Sep 15, 2023
3faf7aa
fix: remove `$enable-shadows` SCSS flag (#2423)
PKulkoRaccoonGang Sep 15, 2023
d900fd7
docs: fix theme switcher on the Colors page (#2628)
PKulkoRaccoonGang Sep 15, 2023
1863fcc
fix: add source for grid gutter width token (#2636)
khudym Sep 20, 2023
a4160a9
fix: correctly resolve file pathing when replacing SCSS variables usa…
viktorrusakov Sep 20, 2023
41c8791
Merge remote-tracking branch 'origin/master' into HEAD
PKulkoRaccoonGang Sep 22, 2023
ebec2a9
chore: sync alpha (#2643)
adamstankiewicz Sep 22, 2023
0ac20a8
Merge pull request #2649 from openedx/master
edx-requirements-bot Sep 22, 2023
f76aa86
Merge pull request #2654 from openedx/master
edx-requirements-bot Sep 23, 2023
778ed2f
Merge pull request #2656 from openedx/master
edx-requirements-bot Sep 24, 2023
a5b0982
Merge pull request #2659 from openedx/master
edx-requirements-bot Sep 25, 2023
cef15d0
Merge pull request #2662 from openedx/master
edx-requirements-bot Sep 25, 2023
1333dd4
Merge pull request #2666 from openedx/master
edx-requirements-bot Sep 28, 2023
1f09548
Merge pull request #2670 from openedx/master
edx-requirements-bot Sep 29, 2023
e1b13c0
Merge pull request #2670 from openedx/master
edx-requirements-bot Sep 29, 2023
f7aff4f
docs: use `DataTable` component on the spacing page (#2677)
khudym Oct 6, 2023
104f2a2
Merge remote-tracking branch 'origin/master' into HEAD
PKulkoRaccoonGang Oct 6, 2023
c86c975
refactor: some refactoring
PKulkoRaccoonGang Oct 6, 2023
3cdd7bb
chore: sync alpha (#2693)
viktorrusakov Oct 6, 2023
0f0d09b
Merge pull request #2696 from openedx/master
edx-requirements-bot Oct 6, 2023
5b29ecb
Merge pull request #2698 from openedx/master
edx-requirements-bot Oct 7, 2023
e882492
Merge pull request #2700 from openedx/master
edx-requirements-bot Oct 8, 2023
fb36b4d
Merge pull request #2704 from openedx/master
edx-requirements-bot Oct 9, 2023
6106c68
Merge pull request #2707 from openedx/master
edx-requirements-bot Oct 10, 2023
6171044
Merge pull request #2708 from openedx/master
edx-requirements-bot Oct 10, 2023
97892ee
Merge pull request #2710 from openedx/master
edx-requirements-bot Oct 10, 2023
2497884
Merge pull request #2712 from openedx/master
edx-requirements-bot Oct 11, 2023
409f975
Merge remote-tracking branch 'origin/master' into Peter_Kulko/alpha-t…
PKulkoRaccoonGang Oct 18, 2023
1baacc6
refactor: deleted Modal.test.jsx file and updated SearchField snapshot
PKulkoRaccoonGang Oct 18, 2023
d1c3bb5
chore: sync alpha (#2731)
viktorrusakov Oct 27, 2023
48c053d
feat: move design tokens CLI commands to paragon CLI (#2609)
monteri Oct 30, 2023
74b2ed8
fix: fixed design token for icon btn active state (#2765)
PKulkoRaccoonGang Oct 30, 2023
fe952ef
feat: added Segment track for CLI scripts (#2617)
PKulkoRaccoonGang Nov 9, 2023
3eb4aa3
Merge remote-tracking branch 'origin/master' into HEAD
PKulkoRaccoonGang Nov 10, 2023
ff82626
refactor: refactoring after merge
PKulkoRaccoonGang Nov 10, 2023
364ffb0
chore: sync alpha (#2795)
viktorrusakov Nov 15, 2023
4cce07b
Merge pull request #2802 from openedx/master
edx-requirements-bot Nov 15, 2023
81d3ee2
Merge pull request #2813 from openedx/master
edx-requirements-bot Nov 15, 2023
f7e1ce5
Merge pull request #2816 from openedx/master
edx-requirements-bot Nov 15, 2023
66a3e75
Merge pull request #2822 from openedx/master
edx-requirements-bot Nov 16, 2023
570e833
fix: created missing design tokens (#2811)
PKulkoRaccoonGang Nov 16, 2023
c8566f1
Merge pull request #2823 from openedx/master
edx-requirements-bot Nov 16, 2023
1f9462e
Merge remote-tracking branch 'origin/master' into HEAD
PKulkoRaccoonGang Nov 23, 2023
8be3f3d
refactor: refactoring after merge
PKulkoRaccoonGang Nov 23, 2023
ad18e60
chore: sync alpha (#2847)
viktorrusakov Nov 24, 2023
bb2c6da
Merge pull request #2854 from openedx/master
edx-requirements-bot Nov 24, 2023
aa0e334
Merge pull request #2857 from openedx/master
edx-requirements-bot Nov 25, 2023
5b9817a
Merge pull request #2860 from openedx/master
edx-requirements-bot Nov 26, 2023
4963d7f
docs: add loading state to CSS variables table (#2858)
viktorrusakov Nov 27, 2023
4a71dae
Merge remote-tracking branch 'origin/master' into HEAD
PKulkoRaccoonGang Dec 6, 2023
d1b551f
refactor: refactoring of tokens in the Dropzone component
PKulkoRaccoonGang Dec 6, 2023
8a1bf17
chore: sync alpha (#2891)
viktorrusakov Dec 6, 2023
737d328
Merge pull request #2892 from openedx/master
edx-requirements-bot Dec 6, 2023
e21b213
Merge pull request #2895 from openedx/master
edx-requirements-bot Dec 6, 2023
cc75c96
Merge pull request #2896 from openedx/master
edx-requirements-bot Dec 6, 2023
ea83a5d
Merge pull request #2901 from openedx/master
edx-requirements-bot Dec 7, 2023
cfb01b5
Merge pull request #2902 from openedx/master
edx-requirements-bot Dec 7, 2023
2cef381
Merge pull request #2905 from openedx/master
edx-requirements-bot Dec 8, 2023
265193d
Merge pull request #2906 from openedx/master
edx-requirements-bot Dec 8, 2023
a49d44e
Merge pull request #2909 from openedx/master
edx-requirements-bot Dec 8, 2023
356af59
Merge pull request #2911 from openedx/master
edx-requirements-bot Dec 9, 2023
dfb05b5
Merge pull request #2914 from openedx/master
edx-requirements-bot Dec 10, 2023
64b998c
fix: remove ~ from import of react-loading-skeleton (#2912)
adamstankiewicz Dec 10, 2023
b978646
Merge pull request #2920 from openedx/master
edx-requirements-bot Dec 11, 2023
f68c1aa
Merge remote-tracking branch 'origin/master' into HEAD
PKulkoRaccoonGang Dec 15, 2023
d8c1b84
Merge remote-tracking branch 'origin/master' into Peter_Kulko/merge-m…
PKulkoRaccoonGang Dec 19, 2023
772e66e
chore: sync alpha (#2932)
viktorrusakov Dec 21, 2023
c07af10
docs: updated the description on the Installation and usage page (#2835)
PKulkoRaccoonGang Dec 22, 2023
32b6380
Merge remote-tracking branch 'origin/master' into HEAD
PKulkoRaccoonGang Dec 26, 2023
247df1e
refactor: fixed button tokens
PKulkoRaccoonGang Dec 26, 2023
0a6ad36
refactor: code refactoring
PKulkoRaccoonGang Dec 26, 2023
af058dc
chore: sync alpha (#2972)
viktorrusakov Dec 27, 2023
3f5cc8e
feat: move utils away from root directory (#3028)
srwang Apr 3, 2024
fbae443
Merge remote-tracking branch 'origin/master' into Peter_Kulko/alpha-b…
PKulkoRaccoonGang May 7, 2024
3c555e3
feat: created new design tokens for Chip component
PKulkoRaccoonGang May 7, 2024
606dd56
feat: created new design tokens for ChipCarousel and Pagination compo…
PKulkoRaccoonGang May 9, 2024
e5e397a
refactor: corrected tokens value and removed deprecated Tabs example
PKulkoRaccoonGang May 9, 2024
6d86446
Merge pull request #3044 from raccoongang/Peter_Kulko/alpha-branch-up…
brian-smith-tcril May 14, 2024
559ad7a
Merge pull request #2981 from openedx/master
edx-requirements-bot May 14, 2024
3850f3e
Merge pull request #2981 from openedx/master
edx-requirements-bot May 14, 2024
d242f81
refactor: revision of core design tokens (#3048)
PKulkoRaccoonGang May 14, 2024
ad94e98
refactor: revision of ChipCarousel-Pagination design tokens (#3052)
PKulkoRaccoonGang May 15, 2024
8a4cc42
docs: [BD-46] updated README file (#3078)
PKulkoRaccoonGang May 21, 2024
aae3553
docs: updated Design tokens and Style dictionary documentation (#3075)
PKulkoRaccoonGang May 21, 2024
16d2452
refactor: revision of ActionRow-Chip design tokens (#3051)
PKulkoRaccoonGang May 21, 2024
05d4f44
refactor: revision of Pagination-TransitionReplace design tokens (#3056)
PKulkoRaccoonGang May 21, 2024
eb8342c
refactor: [BD-46] Component generator refactoring (#3076)
PKulkoRaccoonGang May 22, 2024
223c9bd
feat: Add support for tokens in toml files (#3047)
xitij2000 Jun 17, 2024
2b95727
feat: Add TypeScript types for <Hyperlink> (#3077)
bradenmacdonald May 22, 2024
14c3b79
fix: remove header border radius on `FullscreenModal` (#3041)
brian-smith-tcril May 22, 2024
3f69e2e
feat: add typings for <Button> (#3080)
bradenmacdonald May 31, 2024
298068f
chore(deps): bump braces from 3.0.2 to 3.0.3
dependabot[bot] Jun 11, 2024
3f175be
chore: fix schedule formatting in analyze-dependents.yml (#3049)
brian-smith-tcril Jun 12, 2024
4a3a3a4
chore: checkout repos from `openedx` insted of `edx` in analyze depen…
brian-smith-tcril Jun 12, 2024
226b682
chore: update browserslist DB (#3046)
edx-requirements-bot Jun 13, 2024
f63ce82
docs: update dependent-usage.json (#3014)
github-actions[bot] Jun 13, 2024
d8d0576
docs: update dependent-usage.json (#3095)
github-actions[bot] Jun 14, 2024
35c765a
docs: update dependent-usage.json (#3096)
github-actions[bot] Jun 15, 2024
1f5acff
docs: update dependent-usage.json (#3097)
github-actions[bot] Jun 16, 2024
9a26c3e
docs: update dependent-usage.json (#3099)
github-actions[bot] Jun 17, 2024
c2952da
docs: update dependent-usage.json (#3102)
github-actions[bot] Jun 18, 2024
d8caaea
docs: update dependent-usage.json (#3103)
github-actions[bot] Jun 19, 2024
7038666
docs: update dependent-usage.json (#3104)
github-actions[bot] Jun 20, 2024
898db22
fix: ignore `touchstart` events for closing modal popups (#3087)
brian-smith-tcril Jun 20, 2024
61c21f3
chore(deps-dev): bump ws from 7.5.9 to 7.5.10 (#3101)
dependabot[bot] Jun 20, 2024
ab9c8bc
docs: update dependent-usage.json (#3105)
github-actions[bot] Jun 21, 2024
4334911
docs: update dependent-usage.json (#3106)
github-actions[bot] Jun 22, 2024
565acdb
docs: update dependent-usage.json (#3107)
github-actions[bot] Jun 23, 2024
43bf1b1
docs: update dependent-usage.json (#3108)
github-actions[bot] Jun 24, 2024
abba6f1
docs: update dependent-usage.json (#3109)
github-actions[bot] Jun 25, 2024
05a5037
docs: update dependent-usage.json (#3110)
github-actions[bot] Jun 26, 2024
c6e8e26
docs: update dependent-usage.json (#3111)
github-actions[bot] Jun 27, 2024
98ac0f5
docs: update dependent-usage.json (#3112)
github-actions[bot] Jun 28, 2024
b509f63
docs: update dependent-usage.json (#3113)
github-actions[bot] Jun 29, 2024
e7a2ba4
docs: update dependent-usage.json (#3114)
github-actions[bot] Jun 30, 2024
993d2b8
docs: update dependent-usage.json (#3115)
github-actions[bot] Jul 1, 2024
ef09e4f
docs: update dependent-usage.json (#3117)
github-actions[bot] Jul 2, 2024
81f55d7
docs: update dependent-usage.json (#3118)
github-actions[bot] Jul 3, 2024
31b9a68
docs: update dependent-usage.json (#3119)
github-actions[bot] Jul 4, 2024
8501b18
docs: update dependent-usage.json (#3121)
github-actions[bot] Jul 5, 2024
d1a91a0
docs: update dependent-usage.json (#3122)
github-actions[bot] Jul 6, 2024
6c05506
feat: Add TypeScript types for <Overlay>, <OverlayTrigger>, <Tooltip>…
bradenmacdonald Jul 7, 2024
d4cc3e8
refactor: refactoring after rebase
PKulkoRaccoonGang Aug 5, 2024
d5bb848
refactor: corrected link to Design tokens docs and refactoring
PKulkoRaccoonGang Aug 6, 2024
de7cf28
fix: changed --pgn-typography-font-weight-table-th
PKulkoRaccoonGang Aug 7, 2024
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
  •  
  •  
  •  
3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
name: Release CI

on:
workflow_dispatch:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just curious as to if we want to permanently add manual workflow runs as an option or if this was a temporary thing.

push:
branches:
- master
- alpha
- beta
Comment on lines +8 to +9
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Before this PR lands this file should show no changes. This will mean making a PR to current master updating this file to deploy from master and 22.x.

jobs:
release:
name: Release
Expand Down
7 changes: 6 additions & 1 deletion .releaserc
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"branches": ["master", "next"],
"branches": [
"master",
"next",
{ "name": "alpha", "prerelease": true },
{ "name": "beta", "prerelease": true }
],
Comment on lines +2 to +7
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Before this PR lands this file should show no changes. This will mean making a PR to current master updating this file to deploy from master and 22.x.

"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
Expand Down
2 changes: 2 additions & 0 deletions .stylelintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
component-generator/**
example/**
5 changes: 4 additions & 1 deletion .stylelintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@
"ignoreProperties": ["xs", "sm", "md", "lg", "xl", "xxl"]
}],
"alpha-value-notation": "number",
"color-function-notation": "legacy"
"color-function-notation": "legacy",
"value-keyword-case": ["lower", {
"ignoreProperties": ["/font-family/"]
}]
}
}
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ build:
rm -rf dist/**/__snapshots__
rm -rf dist/__mocks__
rm -rf dist/setupTest.js
node build-scss.js
./bin/paragon-scripts.js build-scss

export TRANSIFEX_RESOURCE = paragon
transifex_langs = "ar,ca,es_419,fr,he,id,ko_KR,pl,pt_BR,ru,th,uk,zh_CN,es_AR,es_ES,pt_PT,tr_TR,it_IT"
Expand Down
82 changes: 61 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,37 +39,51 @@ In your React project:
import { ComponentName } from '@openedx/paragon';
```

#### SCSS Foundation
#### CSS Foundation

Usage for Open edX and others:
**Usage with no theme:**

**index.scss**
The Paragon CSS Foundation offers a collection of fundamental styles, encompassing padding, typography, and sizing.
When applied, these styles contribute to the creation of a straightforward and neat appearance for your application.

To integrate these foundational styles into your project, include the following import:

```
// ... Any custom SCSS variables should be defined here
@import '~@openedx/paragon/scss/core/core.scss';
@use "@openedx/paragon/dist/core.min.css";
```

Usage on with `@edx/brand`:
**Usage with a theme:**

In addition to the basic styles, you can provide a theme layer that includes styles for colors, shadows, backgrounds
and transparency of elements. This allows you to visually represent a specific theme in your application.

**index.scss**
To apply these theme-specific styles, include the following import:

```
@import '~@edx/brand/paragon/fonts.scss';
@import '~@edx/brand/paragon/variables.scss';
@import '~@openedx/paragon/scss/core/core.scss';
@import '~@edx/brand/paragon/overrides.scss';
@use "@openedx/paragon/dist/core.min.css";
@use "@my-brand/light.min.css";
```

Note that including fonts will affect performance. In some applications may choose not to load the custom font to keep it highly performant.
**CDN links:**

Alternative style integration is available when using CDN links:

```
@import url("https://cdn.jsdelivr.net/npm/@my-brand/core.min.css");
@import url("https://cdn.jsdelivr.net/npm/@my-brand/light.min.css");
```

## Paragon CLI

The Paragon CLI (Command Line Interface) is a tool that provides various utility commands to automate actions within the Open edX environment.

### Available Commands

- `paragon install-theme [theme]`: Installs the specific @edx/brand package.
- `paragon install-theme`: Install a [brand package](https://github.com/openedx/brand-openedx).
- `paragon migrate-to-openedx-scope`: Migrate from "@edx/paragon" to "@openedx/paragon".
- `paragon build-tokens`: Build Paragon's design tokens.
- `paragon replace-variables`: Replace SCSS variables usages or definitions to CSS variables and vice versa in `.scss` files.
- `paragon build-scss`: Compile Paragon's core and themes SCSS into CSS.

Use `paragon help` to see more information.

Expand Down Expand Up @@ -148,7 +162,7 @@ module.exports = {
dist: The sub-directory of the source code where it puts its build artifact. Often "dist".
*/
localModules: [
{ moduleName: '@openedx/paragon/scss/core', dir: '../src/paragon', dist: 'scss/core' },
{ moduleName: '@openedx/paragon/styles/scss/core', dir: '../src/paragon', dist: 'styles/scss/core' },
{ moduleName: '@openedx/paragon/icons', dir: '../src/paragon', dist: 'icons' },
// Note that using dist: 'dist' will require you to run 'npm build' in Paragon
// to add local changes to the 'dist' directory, so that they can be picked up by the MFE.
Expand All @@ -158,7 +172,7 @@ module.exports = {
};
```

Then, when importing Paragon's core SCSS in your MFE the import needs to begin with a tilde `~` so that path to your local Paragon repository gets resolved correctly: `@import "~@openedx/paragon/scss/core";`
Then, when importing Paragon's core SCSS in your MFE the import needs to begin with a tilde `~` so that path to your local Paragon repository gets resolved correctly: `@import "~@openedx/paragon/styles/scss/core/core.scss";`

#### Internationalization

Expand Down Expand Up @@ -271,8 +285,7 @@ This will create a directory in `/src/` that will contain templates for all nece
MyComponent
├── index.jsx
├── README.md
├── MyComponent.scss
├── _variables.scss
├── index.scss
└── MyComponent.test.jsx
```

Expand Down Expand Up @@ -311,11 +324,10 @@ export default MyComponent;
##### 4. (Optional) Add styles to your component.

If your component requires additional styling (which most likely is the case), edit created SCSS style sheet in your
component's directory `/src/MyComponent/MyComponent.scss` which by default contains an empty class for your component.
component's directory `/src/MyComponent/index.scss` which by default contains an empty class for your component.

If you wish to use SASS variables (which is the preferred way of styling the components since values can be
easily overridden and customized by the consumers of Paragon), add them in `/src/MyComponent/_variables.scss` (this file should contain all variables specific to your component).
This way the variables will also get automatically picked up by documentation site and displayed on your component's page.
If you wish to use CSS variables (which is the preferred way of styling the components since values can be
easily overridden and customized by the consumers of Paragon), you can do so by utilizing [design tokens](/tokens).

**Please note that you need to follow [Paragon's CSS styling conventions](docs/decisions/0012-css-styling-conventions).**

Expand Down Expand Up @@ -477,3 +489,31 @@ The assigned maintainers for this component and other project details may be fou
Please do not report security issues in public. Please email [email protected].

We tend to prioritize security issues which impact the published `@openedx/paragon` NPM library more so than the [documentation website](https://paragon-openedx.netlify.app/) or example React application.

## Design Tokens

Design tokens are all the values needed to build and maintain a design system — spacing, color, typography, object styles, etc. They can represent anything defined by the design: color as an RGB value, opacity as a number, spacing as a REM value. They are used instead of hard-coded values to provide flexibility and uniformity across the application.

By defining style properties as tokens, we can transform the styles into various implementations compatible with different platforms or formats as our use cases expand (e.g., transforming tokens to CSS variables, CSS utility classes, etc.).

### Theming with design tokens

Paragon uses [style-dictionary](https://github.com/amzn/style-dictionary) to build design tokens into CSS variables that are included in the package. Read more in [design tokens README](tokens/README.md).

#### Compiling CSS from design tokens for Paragon contributions (in this repo)
1. **`npm install`.** Install dependencies, including `style-dictionary`.
2. Make changes to design token(s).
3. **`npm run build-scss`.** Transforms the tokens to CSS variables and CSS utility classes, and generates `core.css` and `light.css` output files.
- `light.css`. CSS variable definitions for colors in the light theme variant.
- `core.css`. Contains the majority of Paragon/Bootstrap foundational styles for layout, components, etc. Consumes CSS variables defined by `light.css`.
4. Test changes locally (e.g., running the documentation website, the example MFE app, etc.).
5. Ensure changes to `core.css` and `light.css` are committed & released to NPM (which also "releases" them on versioned public CDNs for NPM packages).
6. Consuming applications would inject the `core.css` and `light.css` theme files into their applications via a mechanism similar to https://github.com/openedx/frontend-platform/pull/440 (ideally pulling from a public CDN for NPM packages, but falling back to locally installed copies, if needed).

#### Compiling CSS from design tokens for `@edx/brand` theme authors (in `@edx/brand` repos)
1. **`npm install`.** Install dependencies, including `@openedx/paragon`.
2. Create tokens that will override Paragon's default tokens (matching same JSON schema).
3. **`npm run build-scss`.** This `@edx/brand` repo will have a new NPM script that utilizes a new CLI exported by `@openedx/paragon` which exposes the `build-tokens.js` script (or possibly another if we end up needing one for the brand packages to run specifically, TBD) for `@edx/brand` consumers.
- The intent of running this command is to effectively deep merge the tokens defined in Paragon's default tokens with the override tokens defined by `@edx/brand`, generating its own `core.css` and `light.css` output files (exact output files still a TBD) containing CSS variable overrides based on the token overrides.
5. Ensure any changes to the generated `core.css` and `light.css` files are committed & released to NPM (which also "releases" them on versioned public CDNs for NPM packages).
- _Note: It is a bit unclear still in the above linked implementation POC for `@edx/frontend-platform` how it would integrate with `@edx/brand` in this way. Open to suggestions/feedback/ideas here._
137 changes: 128 additions & 9 deletions bin/paragon-scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,13 @@
const chalk = require('chalk');
const themeCommand = require('../lib/install-theme');
const helpCommand = require('../lib/help');
const buildTokensCommand = require('../lib/build-tokens');
const replaceVariablesCommand = require('../lib/replace-variables');
const buildScssCommand = require('../lib/build-scss');
const { sendTrackInfo } = require('../lib/utils');
const versionCommand = require('../lib/version');
const migrateToOpenEdxScopeCommand = require('../lib/migrate-to-openedx-scope');

const HELP_COMMAND = 'help';
const commandAliases = {
'-v': 'version',
'--version': 'version',
Expand All @@ -31,6 +34,9 @@ const COMMANDS = {
* {
* name: '--optionName',
* description: 'optionDescription',
* choices: 'optionChoices',
* defaultValue: 'optionDefaultValue',
* required: true/false,
* },
* ...
* ],
Expand Down Expand Up @@ -60,8 +66,118 @@ const COMMANDS = {
},
],
},
'build-tokens': {
executor: buildTokensCommand,
description: 'CLI to build Paragon design tokens.',
options: [
{
name: '-s, --source',
description: 'Specify the source directory for design tokens.',
defaultValue: '\'\'',
},
{
name: '-b, --build-dir',
description: 'Specify the build directory for the generated tokens.',
defaultValue: './build/',
},
{
name: '--source-tokens-only',
description: 'Include only source design tokens in the build.',
defaultValue: false,
},
{
name: '-t, --themes',
description: 'Specify themes to include in the token build.',
defaultValue: 'light',
},
],
},
'replace-variables': {
executor: replaceVariablesCommand,
description: 'CLI to replace SCSS variables usages or definitions to CSS variables and vice versa in .scss files.',
parameters: [
{
name: '-p, --filePath',
description: 'Path to the file or directory where to replace variables.',
defaultValue: '\'\'',
},
],
options: [
{
name: '-s, --source',
description: 'Type of replacement: usage or definition. If set to "definition" the command will only update SCSS variables definitions with CSS variables, if set to "usage" - all occurrences of SCSS variables will we replaced',
defaultValue: '\'\'',
},
{
name: '-t, --replacementType',
description: 'Type of replacement: usage or definition. If set to "definition" the command will only update SCSS variables definitions with CSS variables, if set to "usage" - all occurrences of SCSS variables will we replaced',
choices: '[usage|definition]',
defaultValue: 'definition',
},
{
name: '-d, --direction',
description: 'Map direction: css-to-scss or scss-to-css, if replacement type parameter is set to "definition" this has no effect.',
choices: '[scss-to-css|css-to-scss]',
defaultValue: 'scss-to-css',
},
],
},
'build-scss': {
executor: buildScssCommand,
description: 'CLI to compile Paragon\'s core and themes SCSS into CSS.',
options: [
{
name: '--corePath',
description: 'Path to the theme\'s core SCSS file, defaults to Paragon\'s core.scss.',
defaultValue: 'styles/scss/core/core.scss',
},
{
name: '--themesPath',
description: `Path to the directory that contains themes' files. Expects directory to have following structure:
themes/
light/
│ ├─ index.css
│ ├─ other_css_files
dark/
│ ├─ index.css
│ ├─ other_css_files
some_other_custom_theme/
│ ├─ index.css
│ ├─ other_css_files
...

where index.css has imported all other CSS files in the theme's subdirectory. The script will output
light.css, dark.css and some_other_custom_theme.css files (together with maps and minified versions).
You can provide any amount of themes. Default to paragon's themes.
`,
defaultValue: 'styles/css/themes',
},
{
name: '--outDir',
description: 'Specifies directory where to out resulting CSS files.',
defaultValue: './dist',
},
{
name: '--defaultThemeVariants',
description: `Specifies default theme variants. Defaults to a single 'light' theme variant.
You can provide multiple default theme variants by passing multiple values, for
example: \`--defaultThemeVariants light dark\`
`,
defaultValue: 'light',
},
],
},
help: {
executor: helpCommand,
executor: (args) => helpCommand(COMMANDS, args),
parameters: [
{
name: 'command',
description: 'Specifies command name.',
defaultValue: '\'\'',
choices: '[install-theme|build-tokens|replace-variables|build-scss]',
required: false,
},
],
description: 'Displays help for available commands.',
},
version: {
Expand All @@ -70,8 +186,14 @@ const COMMANDS = {
},
};

/**
* Executes a Paragon CLI command based on the provided command-line arguments.
*
* @async
* @function executeParagonCommand
*/
(async () => {
const [command] = process.argv.slice(2);
const [command, ...commandArgs] = process.argv.slice(2);
const resolvedCommand = commandAliases[command] || command;
const executor = COMMANDS[resolvedCommand];

Expand All @@ -81,16 +203,13 @@ const COMMANDS = {
return;
}

if (command === HELP_COMMAND) {
helpCommand(COMMANDS);
return;
}

try {
await executor.executor();
await executor.executor(commandArgs);
sendTrackInfo('openedx.paragon.cli-command.used', { command, status: 'success' });
} catch (error) {
// eslint-disable-next-line no-console
console.error(chalk.red.bold('An error occurred:', error.message));
sendTrackInfo('openedx.paragon.cli-command.used', { command, status: 'error', errorMsg: error.message });
process.exit(1);
}
})();
23 changes: 0 additions & 23 deletions build-scss.js

This file was deleted.

Loading
Loading