Merged in monorepo-step-1 (pull request #1080)

Migrate to a monorepo setup - step 1

* Move web to subfolder /apps/scandic-web

* Yarn + transitive deps

- Move to yarn
- design-system package removed for now since yarn doesn't
support the parameter for token (ie project currently broken)
- Add missing transitive dependencies as Yarn otherwise
prevents these imports
- VS Code doesn't pick up TS path aliases unless you open
/apps/scandic-web instead of root (will be fixed with monorepo)

* Pin framer-motion to temporarily fix typing issue

https://github.com/adobe/react-spectrum/issues/7494

* Pin zod to avoid typ error

There seems to have been a breaking change in the types
returned by zod where error is now returned as undefined
instead of missing in the type. We should just handle this
but to avoid merge conflicts just pin the dependency for
now.

* Pin react-intl version

Pin version of react-intl to avoid tiny type issue where formatMessage
does not accept a generic any more. This will be fixed in a future
commit, but to avoid merge conflicts just pin for now.

* Pin typescript version

Temporarily pin version as newer versions as stricter and results in
a type error. Will be fixed in future commit after merge.

* Setup workspaces

* Add design-system as a monorepo package

* Remove unused env var DESIGN_SYSTEM_ACCESS_TOKEN

* Fix husky for monorepo setup

* Update netlify.toml

* Add lint script to root package.json

* Add stub readme

* Fix react-intl formatMessage types

* Test netlify.toml in root

* Remove root toml

* Update netlify.toml publish path

* Remove package-lock.json

* Update build for branch/preview builds


Approved-by: Linus Flood
This commit is contained in:
Anton Gunnarsson
2025-02-26 10:36:17 +00:00
committed by Linus Flood
parent 667cab6fb6
commit 80100e7631
2731 changed files with 30986 additions and 23708 deletions

View File

@@ -0,0 +1,21 @@
<svg width="60" height="40" viewBox="0 0 60 40" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_4436_47550)">
<path d="M58 0H2C0.89543 0 0 0.89543 0 2V38C0 39.1046 0.89543 40 2 40H58C59.1045 40 60 39.1046 60 38V2C60 0.89543 59.1045 0 58 0Z" fill="url(#paint0_linear_4436_47550)"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M40.7598 31.5068C40.7598 30.9546 41.2075 30.5068 41.7598 30.5068H48.7598C49.3121 30.5068 49.7598 30.9546 49.7598 31.5068C49.7598 32.0591 49.3121 32.5068 48.7598 32.5068H41.7598C41.2075 32.5068 40.7598 32.0591 40.7598 31.5068Z" fill="white"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M30.1733 31.5068C30.1733 30.9546 30.6211 30.5068 31.1733 30.5068H38.1733C38.7256 30.5068 39.1733 30.9546 39.1733 31.5068C39.1733 32.0591 38.7256 32.5068 38.1733 32.5068H31.1733C30.6211 32.5068 30.1733 32.0591 30.1733 31.5068Z" fill="white"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M19.5864 31.5068C19.5864 30.9546 20.0341 30.5068 20.5864 30.5068H27.5864C28.1387 30.5068 28.5864 30.9546 28.5864 31.5068C28.5864 32.0591 28.1387 32.5068 27.5864 32.5068H20.5864C20.0341 32.5068 19.5864 32.0591 19.5864 31.5068Z" fill="white"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M9 31.5068C9 30.9546 9.44772 30.5068 10 30.5068H17C17.5523 30.5068 18 30.9546 18 31.5068C18 32.0591 17.5523 32.5068 17 32.5068H10C9.44772 32.5068 9 32.0591 9 31.5068Z" fill="white"/>
<path d="M16.3333 11H9.66665C8.1939 11 7 12.1939 7 13.6666V18.3333C7 19.8061 8.1939 21 9.66665 21H16.3333C17.8061 21 19 19.8061 19 18.3333V13.6666C19 12.1939 17.8061 11 16.3333 11Z" fill="#EDEDED"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M9.6666 11.6665C8.56194 11.6665 7.6665 12.562 7.6665 13.6665V14.1733H11.1733V11.6665H9.6666ZM11.8398 11.6665V20.3333H14.04V14.1733H18.3334V13.6665C18.3334 12.562 17.4379 11.6665 16.3332 11.6665H11.8398ZM18.3334 14.8398H14.7065V17.1733H18.3334V14.8398ZM18.3334 17.8398H14.7065V20.3333H16.3332C17.4379 20.3333 18.3334 19.4378 18.3334 18.3332V17.8398ZM11.1733 20.3333V17.8398H7.6665V18.3332C7.6665 19.4378 8.56194 20.3333 9.6666 20.3333H11.1733ZM7.6665 17.1733H11.1733V14.8398H7.6665V17.1733ZM7 13.6665C7 12.1938 8.19386 11 9.6666 11H16.3332C17.8059 11 18.9999 12.1938 18.9999 13.6665V18.3332C18.9999 19.806 17.8059 20.9998 16.3332 20.9998H9.6666C8.19386 20.9998 7 19.806 7 18.3332V13.6665Z" fill="black"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M45.4932 6.50684C45.4932 5.95455 45.9409 5.50684 46.4932 5.50684H53.4933C54.0456 5.50684 54.4933 5.95455 54.4933 6.50684C54.4933 7.05912 54.0456 7.50684 53.4933 7.50684H46.4932C45.9409 7.50684 45.4932 7.05912 45.4932 6.50684Z" fill="#EDEDED"/>
</g>
<defs>
<linearGradient id="paint0_linear_4436_47550" x1="17.4667" y1="7.73335" x2="27.4688" y2="29.9961" gradientUnits="userSpaceOnUse">
<stop stop-color="#C1C1C1"/>
<stop offset="1" stop-color="#9F9F9F"/>
</linearGradient>
<clipPath id="clip0_4436_47550">
<rect width="60" height="40" fill="white"/>
</clipPath>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 2.9 KiB