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

[DO NOT MERGE ] feat: next #2828

Draft
wants to merge 168 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
168 commits
Select commit Hold shift + click to select a range
17bea9b
feat: v5 icons
denkristoffer Jan 11, 2024
65b908d
chore: pin v4 icons
denkristoffer Jan 11, 2024
9e363b3
fix: imports
denkristoffer Jan 11, 2024
4631559
fix: fix imports, pkg lock update
bgutsol Feb 22, 2024
7d14cfb
fix: pin f36-icon dep in f36-icons
bgutsol Feb 22, 2024
b424bc0
chore: update import
cf-remylenoir Apr 15, 2024
758e2db
build: replace tsup with swc
cf-remylenoir Apr 16, 2024
c0a3c15
refactor: export individual icons modules
cf-remylenoir Apr 16, 2024
229e344
refactor: store icons in distinct directories
cf-remylenoir Apr 16, 2024
c2f512d
chore: restore original package name
cf-remylenoir Apr 16, 2024
61b4629
build: enable pure ESM
cf-remylenoir Apr 16, 2024
c29474b
fix: lockfile
denkristoffer Apr 17, 2024
98afc8b
feat: duotone icons
denkristoffer Apr 17, 2024
eb72ddc
build: update package + move module type in config
cf-remylenoir Apr 17, 2024
5a572d3
chore: document config change
cf-remylenoir Apr 17, 2024
9549027
chore: put previous version before publish bump
cf-remylenoir Apr 17, 2024
5f050c6
build: bump version after release
cf-remylenoir Apr 18, 2024
212dfa5
build: bump version after release
cf-remylenoir Apr 18, 2024
2b5a9e3
chore: build CJS
denkristoffer Apr 22, 2024
d9e1a40
feat: prebuild script
denkristoffer Apr 24, 2024
084b66f
feat: add FileArchive
denkristoffer Apr 24, 2024
da44845
chore: improved pre-build script
denkristoffer Apr 24, 2024
fa5764f
feat: add Gift icon
denkristoffer Apr 24, 2024
7eb5c46
feat:(codemod) add v5-icons codemod (#2716)
massao Apr 25, 2024
69522e9
Extract Icon weight type from Phosphor (#2727)
denkristoffer Apr 25, 2024
d640ec3
build icon with swc (#2726)
denkristoffer Apr 25, 2024
b57e9b1
feat: V5 icons codemod (#2732)
massao Apr 26, 2024
9214714
fix: icon props typing
cf-remylenoir Apr 30, 2024
fb9915a
fix(icon): add module export
cf-remylenoir Apr 30, 2024
da303d5
fix(icons): adjust module import
cf-remylenoir Apr 30, 2024
21e59dd
fix: adjust dependency path
cf-remylenoir Apr 30, 2024
c445478
fix(icon): wrong SWC config file name
cf-remylenoir May 3, 2024
e3fd2fe
fix(icon): wrong types definition path
cf-remylenoir May 3, 2024
e2ed177
build: switch to dual package emitting (#2746)
cf-remylenoir May 8, 2024
cdf2eb3
feat: duotone icons
denkristoffer May 15, 2024
322780d
feat(icon): active colour change
denkristoffer May 15, 2024
41950dc
fix(icon): use color property instead of fill
denkristoffer May 15, 2024
cb74822
chore(pre-build): typo
denkristoffer May 15, 2024
3b69c3c
fix: bring back pre-build script
denkristoffer May 15, 2024
dcb1f18
feat(icon): 5.0.0-alpha.9
denkristoffer May 15, 2024
5a9b72c
feat(icons): 5.0.0-alpha.9
denkristoffer May 15, 2024
5ad8e1a
refactor: update icons v5 codemod (#2759)
massao May 16, 2024
89dfe2f
fix: properly pass testId as data-test-id to components [] (#2761)
massao May 17, 2024
4a36343
fix: properly pass the props from Icon to underling icon [] (#2762)
massao May 22, 2024
c10c432
feat: add new utility to codemod to update identifier
massao May 23, 2024
a978f06
feat: update icons v5 codemod with correct mapping and upate identifiers
massao May 23, 2024
488988a
feat: make codemod replace trimmed icons
massao May 23, 2024
557e6b6
refactor: update mapping on icons codemod
massao May 23, 2024
25de80c
feat: codemod also migrate IconProps
massao May 23, 2024
181ae02
feat: add support for mapping variant to color
massao May 28, 2024
4bb87e5
refactor: set default color to currentColor
massao May 28, 2024
84704ab
chore: release new alpha version
massao May 28, 2024
0721c84
feat: update link icon + add link-break icon
cf-remylenoir May 29, 2024
d11ed39
chore: update references icon replacement
cf-remylenoir May 30, 2024
0d76df9
refactor(codemod): only add IconProps import if necessary
massao May 30, 2024
580ec80
feat: add Icon component to icons codemod
massao May 30, 2024
34750da
refactor: improve codemod handling size prop
massao May 30, 2024
25ba0c1
feat: improve codemod handling Icon component
massao May 31, 2024
e8dfc75
refactor: pass size and color prop to Icon component
massao Jun 3, 2024
6721eeb
chore: release new alpha version
massao Jun 3, 2024
adc4617
chore: bump lock version
cf-remylenoir Jun 6, 2024
8bf99cd
feat: add icons
cf-remylenoir Jun 6, 2024
539b690
feat: migrate icons from custom to Phosphor
cf-remylenoir Jun 10, 2024
fedf3b4
feat: add HalfCircleIcon and DotsThreeVerticalIcon
massao Jun 10, 2024
1900896
chore: bump icons alpha version
massao Jun 10, 2024
83158f4
feat: add missing icons
cf-remylenoir Jun 10, 2024
f4c9126
fix: prevent prop leaking into Phosphor
cf-remylenoir Jun 14, 2024
5267979
refactor: improve prop values ternary updates
massao Jun 17, 2024
9e9efcf
refactor: make codemod accept only one directory or file per run
massao Jun 17, 2024
e5f5990
fix: reset import package name
Lelith Jun 17, 2024
1ffe44b
chore: version update
Lelith Jun 17, 2024
9e18956
chore: udpate dependencies
massao Jun 17, 2024
05b0b08
chore: release codemod as alpha
massao Jun 17, 2024
2b4f399
feat: add custom Sparkle + SparkleFilled icons, remove Phosphor one
cf-remylenoir Jun 17, 2024
a1cf6a5
feat(layout): begin updating component to new page cut design
stephanLeece May 6, 2024
1c2764f
feat(layouty): tweak box shadow, border colour values
stephanLeece May 7, 2024
5746205
feat(layout): add narrow variant
stephanLeece May 7, 2024
536debb
feat(layout): cleanup
stephanLeece May 7, 2024
6b0e16b
feat(layout): correct type casting
stephanLeece May 7, 2024
0f3fb4c
feat(layout, header): increase border-radius on layout. Remove header…
stephanLeece May 7, 2024
ff136dd
feat(header): tweak horizontal spacing, update story wrapper
stephanLeece May 7, 2024
9b099b5
feat(layout): update examples
stephanLeece May 8, 2024
dd1715a
feat(layout): simiply conditional sidebar borders
stephanLeece May 10, 2024
749bc7b
feat(layout, header): revert changes to header. Remove padding on Lay…
stephanLeece May 10, 2024
8e73b99
revert changes to header stories
stephanLeece May 10, 2024
bc66a71
feat(layout): split out getMaxWidth style functions
stephanLeece May 10, 2024
8bcae94
feat(layout): update examples with spacing on child components"
stephanLeece May 10, 2024
176f95c
feat(layout): use tokens in component margin"
stephanLeece May 10, 2024
cee900f
feat(layout): add grey background/spacing as part of the Layout compo…
stephanLeece May 13, 2024
9ea1c42
feat(layout): center page cut
stephanLeece May 14, 2024
0010e52
feat(layout): padding on layout components
stephanLeece May 14, 2024
c5b89ff
feat(layout): update examples
stephanLeece May 14, 2024
d81ca74
feat(layout): add full screen example
stephanLeece May 14, 2024
6420fa5
feat(layout): remove unused backgroundClassName prop"
stephanLeece May 14, 2024
b0a60ec
feat(layout): move relevant props to top level component
stephanLeece May 15, 2024
06a5a90
feat(layout): bump version to 5.0.0-alpha.0
stephanLeece May 15, 2024
5e1f354
feat(layout): add withBoxShadow prop, remove root background, story a…
stephanLeece May 27, 2024
6d6f099
feat: add sidebar widths
denkristoffer May 31, 2024
8d295f7
chore: alpha.3
denkristoffer May 31, 2024
55d55df
fix(layout-sidebar): default to wide
denkristoffer May 31, 2024
1eff455
chore: npm install
denkristoffer Jun 26, 2024
6a322eb
chore: layout deps
denkristoffer Jun 28, 2024
49a0f7b
Revert "chore: layout deps"
massao Jun 28, 2024
8cf0093
chore: try to recreate package-lock with npm registry
massao Jun 28, 2024
b2ae88e
fix(layout): remove top margin (#2815)
denkristoffer Jul 1, 2024
677ffaa
feat: add custom InspectorMode icon
cf-remylenoir Jul 4, 2024
68574c6
feat: add Key icon
cf-remylenoir Jul 9, 2024
28e4a8c
feat: add custom Variable icon
cf-remylenoir Jul 9, 2024
dc2070a
feat: add translate icon (#2826)
YvesRijckaert Jul 17, 2024
98a9f0e
chore: update deps
cf-remylenoir Jul 17, 2024
87a4be7
feat(layout): increase max width of wide and narrow variants
stephanLeece Jul 17, 2024
29693c9
chore: update SWC packages
cf-remylenoir Jul 17, 2024
24edff2
test: ignore dist path
cf-remylenoir Jul 17, 2024
293b9fd
test: map ESM import extension
cf-remylenoir Jul 17, 2024
da45287
feat(layout): reduce max width on narrow variant of layout
stephanLeece Jul 17, 2024
eca4be1
feat(layout): new alpha version
stephanLeece Jul 17, 2024
54c9f5f
[DO NOT MERGE] feat: navigation light mode (#2730)
Lelith Jul 17, 2024
ecec98b
feat(layout): new alpha version
stephanLeece Jul 19, 2024
bdd9a6a
feat(navbar): increase wide variant max-width (#2831)
cf-remylenoir Jul 23, 2024
b5a9c87
feat: update styles for section heading (#2835)
massao Jul 29, 2024
77be763
feat: add promotions prop for promotions section in new nav bar (#2838)
cpesket Jul 31, 2024
0390086
chore: update plop generator for codemods
massao Aug 5, 2024
080fbf7
chore: npm install
Lelith Aug 16, 2024
ef9d286
fix: remove old icon
Lelith Aug 16, 2024
cce00b7
chore: trying to fix build
Lelith Aug 16, 2024
f1f4f48
chore: adjust resolving of package
Lelith Aug 16, 2024
3661f00
chore: reset package-lock file
Lelith Aug 20, 2024
6956c8f
fix: adjust spacing and button size (#2848)
Lelith Aug 22, 2024
4a68142
chore: update navbar to latest version 5.0.0-alpha.29
Lelith Aug 22, 2024
79ed192
feat(icons): add `BookOpenIcon` (#2849)
andipaetzold Aug 23, 2024
f8ca96b
feat(layout): add height 100%
stephanLeece Aug 29, 2024
8e460df
feat(layout): publish new alpha Layout version
stephanLeece Aug 29, 2024
ffaede6
feat(layout): remove height from root
stephanLeece Aug 29, 2024
7ec5a2e
feat(layout): add height property again
stephanLeece Aug 29, 2024
3b4037e
feat(layout): publish new version
stephanLeece Aug 29, 2024
fb0650f
feat(layout): use vh instead on % to avoid page jumping
stephanLeece Aug 29, 2024
f4dfe96
feat(layout): publish new version
stephanLeece Aug 29, 2024
b6985d6
feat(layout): use min-height 100% instead of height 100vh to prevent …
stephanLeece Aug 30, 2024
dc9ba87
feat(navbar): various navbar spacing tweaks (#2855)
andipaetzold Aug 30, 2024
e25956b
feat: add tooltip for icon only nav items cfiso 1677 (#2851)
Lelith Sep 3, 2024
64d2a58
feat: add environment to navbar switcher (#2857)
massao Sep 9, 2024
d752603
chore: publish new navbar alpha version
massao Sep 9, 2024
57fc08c
refactor: enable children on navbar switcher (#2863)
massao Sep 9, 2024
7c95de9
chore: release new alpha version of navbar
massao Sep 9, 2024
dbee7ba
refactor: update dependency and make environment not mandatory
massao Sep 9, 2024
6891849
chore: release new alpha version of navbar
massao Sep 9, 2024
64f12e8
feat(icons): add `MegaphoneSimpleIcon`
cf-remylenoir Sep 9, 2024
f794fd0
fix: add fixed height to navbar (#2862)
Lelith Sep 11, 2024
e3cde99
chore: npm install (#2872)
andipaetzold Sep 12, 2024
cfc8d65
fix(navbar): unpin avatar dep (#2873)
andipaetzold Sep 12, 2024
d527998
chore: update lockfile to v3 (#2875)
andipaetzold Sep 12, 2024
f587611
fix: avoid necessity for overwriting height and scrolling behavior […
Lelith Sep 30, 2024
2aa6cfe
feat: add `ArrowUUpLeftIcon` and `ArrowUUpRightIcon` icons (#2895)
bgutsol Sep 30, 2024
fe9817a
Merge remote-tracking branch 'origin/main' into next
denkristoffer Oct 15, 2024
a1f3191
fix: unpin avatar
denkristoffer Oct 18, 2024
ca32a45
chore: npm update
denkristoffer Oct 18, 2024
db053d3
Merge remote-tracking branch 'origin/main' into next
denkristoffer Oct 18, 2024
4b3a4eb
fix: import path in story
Lelith Oct 23, 2024
55b4412
fix: reset package-lock.json
Lelith Oct 23, 2024
31eab1c
Merge branch 'fix/next_after_merge' into next
Lelith Oct 23, 2024
81696a2
feat: header variants (#2921)
denkristoffer Oct 28, 2024
a9603dc
feat(NavbarSwitcher): improve env switcher salience (#2920)
cf-remylenoir Oct 28, 2024
5e40dd3
chore: bump navbar
cf-remylenoir Oct 28, 2024
215bc3f
feat: add CrosshairSimple, Lightning icons
cf-remylenoir Oct 28, 2024
5d0cf85
refactor(NavbarEnvVariant): update master env logic (#2926)
cf-remylenoir Oct 30, 2024
898174c
chore: bump navbar
cf-remylenoir Oct 30, 2024
4f7caab
chore: less jest-axe configuration (#2916)
denkristoffer Nov 1, 2024
bfb427a
feat: improve responsiveness of navbar (#2934)
Lelith Nov 26, 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
  •  
  •  
  •  
10 changes: 9 additions & 1 deletion .changeset/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,17 @@
}
],
"ignore": [
"@contentful/f36-typography",
"@contentful/f36-codemod",
"@contentful/f36-icon",
"@contentful/f36-icons",
"@contentful/f36-avatar",
"@contentful/f36-image",
"@contentful/f36-header",
"@contentful/f36-layout",
"@contentful/f36-progress-stepper",
"@contentful/f36-navlist",
"@contentful/f36-navbar",
"@contentful/f36-website"
],
"commit": false,
Expand Down Expand Up @@ -59,4 +67,4 @@
"___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH": {
"onlyUpdatePeerDependentsWhenOutOfRange": true
}
}
}
3 changes: 3 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,6 @@ tsup.config.ts
# next.js
**/.next/
**/out/

# codemod tests
**/__testfixtures__
34 changes: 34 additions & 0 deletions BUILD.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Building

We are using [tsup](https://tsup.egoist.dev/) and [esbuild](https://esbuild.github.io/) together with [Microbundle](https://www.npmjs.com/package/microbundle) to build our component library.

Each component builds to its own `dist` directory with:

- `index.d.ts` – TypeScript type declaration file
- `index.js` – CJS (CommonJS)
- `index.modern.mjs` – [Modern](https://github.com/developit/microbundle#-modern-mode-) output (work in all modern browsers)
- `index.module.js` – legacy ESM (ES Modules) output (for bundlers)
- `index.umd.js` – legacy UMD (Universal Module Definition) output (for Node & CDN use)

## Create a build of the library

```bash
npm run-script build
```

## v5 alpha/beta pre-releases

> [!WARNING]
>
> Revisit the build setup before the v5 release

We aim to emit ESM only in our next major release.

Until then, we emit CJS and ESM using a dual-package approach with `tsc` and [tsconfig-to-dual-package](https://github.com/azu/tsconfig-to-dual-package/tree/main).

This ensures Node/TypeScript point to the right package type (commonjs, module) depending on the consumer's configuration, without the hassle of us to "hack" the main `package.json` and `tsconfig` to satisfy all use cases.

The build has the following structure in its own `dist` directory:

- `./cjs` – CJS (CommonJS) with declaration + inline source map.
- `./esm` – ESM (ES Modules) with declaration + inline source map.
3 changes: 2 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,12 @@ module.exports = {
moduleNameMapper: {
'\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$':
'<rootDir>/scripts/test/__mocks__/fileMock.js',
'(.+)\\.js': '$1',
'@/scripts/(.*)': '<rootDir>/scripts/$1',
},

// An array of regexp pattern strings, matched against all module paths before considered 'visible' to the module loader
// modulePathIgnorePatterns: [],
modulePathIgnorePatterns: ['/dist/'],

// Activates notifications for test results
// notify: false,
Expand Down
Loading