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,17 @@
<svg width="60" height="40" viewBox="0 0 60 40" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_2089_19078)">
<rect x="0.5" y="0.5" width="59" height="39" rx="1.5" fill="white" stroke="#E9E8E7"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M19.7265 20.3224C19.7265 22.7645 21.7103 24.658 24.2631 24.658C24.9847 24.658 25.6029 24.5209 26.365 24.1739V22.2663C25.6949 22.9147 25.1012 23.1763 24.3411 23.1763C22.6526 23.1763 21.4542 21.9928 21.4542 20.3102C21.4542 18.7152 22.6905 17.4569 24.2631 17.4569C25.0627 17.4569 25.668 17.7327 26.365 18.3916V16.485C25.6292 16.1242 25.0242 15.9746 24.3026 15.9746C21.7627 15.9746 19.7265 17.9066 19.7265 20.3224ZM15.4242 18.3046C15.4242 18.7536 15.7194 18.9908 16.7256 19.3507C18.6326 20.0251 19.1977 20.6224 19.1977 21.9426C19.1977 23.5508 17.9754 24.6707 16.2335 24.6707C14.9577 24.6707 14.0299 24.1851 13.2576 23.0889L14.3407 22.0807C14.7266 22.8022 15.3708 23.189 16.1704 23.189C16.9185 23.189 17.472 22.6902 17.472 22.0171C17.472 21.6682 17.3043 21.3687 16.9693 21.1572C16.8009 21.057 16.4669 20.9081 15.8104 20.684C14.2358 20.1364 13.6959 19.5503 13.6959 18.4057C13.6959 17.046 14.8557 16.0252 16.3766 16.0252C17.3189 16.0252 18.1813 16.3366 18.9022 16.9461L18.0249 18.0564C17.5882 17.5833 17.1752 17.3836 16.6731 17.3836C15.9505 17.3836 15.4242 17.7814 15.4242 18.3046ZM10.9496 24.4709H12.6262V16.1625H10.9496V24.4709ZM7.52285 22.4038C6.99621 22.8638 6.31184 23.0644 5.22868 23.0644H4.77874V17.5701H5.22868C6.31184 17.5701 6.96931 17.7575 7.52285 18.2422C8.10262 18.741 8.45128 19.5146 8.45128 20.3103C8.45128 21.108 8.10262 21.905 7.52285 22.4038ZM5.56438 16.1625H3.10352V24.4706H5.55143C6.85309 24.4706 7.79281 24.1741 8.61797 23.5115C9.59854 22.7274 10.1783 21.5452 10.1783 20.3225C10.1783 17.8705 8.28326 16.1625 5.56438 16.1625ZM37.3659 16.1625L39.6577 21.7432L41.9795 16.1625H43.7968L40.0837 24.6841H39.1816L35.5342 16.1625H37.3659ZM44.5549 24.4708H49.3093V23.0642H46.2301V20.8215H49.196V19.4142H46.2301V17.5702H49.3093V16.1623H44.5549V24.4708ZM52.0941 19.9874H52.5839C53.6548 19.9874 54.2223 19.5377 54.2223 18.7025C54.2223 17.894 53.6548 17.4712 52.6105 17.4712H52.0941V19.9874ZM52.9057 16.1622C54.8389 16.1622 55.9473 17.0597 55.9473 18.6152C55.9473 19.8873 55.252 20.7225 53.9892 20.9706L56.6951 24.4707H54.6334L52.3129 21.133H52.0941V24.4707H50.4196V16.1622H52.9057Z" fill="#1D1D1B"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M35.3365 22.7268C36.6972 20.67 36.0758 17.9376 33.9483 16.6224V16.6224C31.8209 15.3072 28.9937 15.9076 27.633 17.9644V17.9644C26.2726 20.0206 26.8943 22.7539 29.0217 24.0691V24.0691C31.1491 25.3843 33.9761 24.783 35.3365 22.7268Z" fill="url(#paint0_linear_2089_19078)"/>
</g>
<defs>
<linearGradient id="paint0_linear_2089_19078" x1="37.7998" y1="19.0034" x2="30.25" y2="14.0086" gradientUnits="userSpaceOnUse">
<stop stop-color="#F6A000"/>
<stop offset="0.623918" stop-color="#E47E02"/>
<stop offset="1" stop-color="#D36002"/>
</linearGradient>
<clipPath id="clip0_2089_19078">
<rect width="60" height="40" rx="2" fill="white"/>
</clipPath>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 3.0 KiB