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 of v10.16.0 #3088

Merged
merged 55 commits into from
Jan 4, 2024
Merged

release of v10.16.0 #3088

merged 55 commits into from
Jan 4, 2024

Conversation

langz
Copy link
Contributor

@langz langz commented Dec 15, 2023

Main motivation for this release is to make the new icons available. I'm not sure when our consumer "wants it", but some of the newly added icons(in our code) was made available in Figma as early as 3rd of November. So I feel like it would be nice to make these available from Eufemia web quite soon 😅

Copy link

vercel bot commented Dec 15, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
eufemia ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 4, 2024 7:54pm

Copy link

codesandbox-ci bot commented Dec 15, 2023

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit ea56957:

Sandbox Source
eufemia-starter Configuration

🔴 Both these cases will with this PR,
<img width="367" alt="Screenshot 2023-12-12 at 20 34 11"
src="https://github.com/dnbexperience/eufemia/assets/1501870/cca5c56f-761b-47ef-90ab-4677b1eb0e6f">
<img width="372" alt="Screenshot 2023-12-12 at 20 31 56"
src="https://github.com/dnbexperience/eufemia/assets/1501870/787af181-8f39-41d1-9393-3a05de97b0cd">

🟢 result in this:
<img width="393" alt="Screenshot 2023-12-12 at 20 07 36"
src="https://github.com/dnbexperience/eufemia/assets/1501870/42a2fee8-3156-4c23-999f-2024f07f2de8">
<img width="367" alt="Screenshot 2023-12-12 at 20 36 39"
src="https://github.com/dnbexperience/eufemia/assets/1501870/ae30966f-0b0f-4907-a8c4-eff91721f387">
tujoworker and others added 4 commits December 19, 2023 17:41
…3109)

For data transformation, add these hooks:

- `toOutput`
- `fromExternal`

For custom control about validating the required prop:

- `validateRequired`

Also, adding docs about the `useDataValue` hook.
…rrect soft keyboards (#3108)

For iOS we use a custom trick (me and Joakim found during a peer prog
session).

This should solve #3097

Co-authored-by: Joakim Bjerknes <joakbjerk@gmail.com>
Should fix the `onChange` argument type inferred as any from [this slack
discussion](https://dnb.enterprise.slack.com/team/WJLKMHXMY)

Before:
<img width="957" alt="Screenshot 2023-12-19 at 14 38 37"
src="https://github.com/dnbexperience/eufemia/assets/25927156/c4147e05-8402-43f7-9a5d-be0e5f9b9964">

After:
<img width="511" alt="Screenshot 2023-12-19 at 14 37 57"
src="https://github.com/dnbexperience/eufemia/assets/25927156/3df1a3a1-cf5c-49de-a2ed-1335992be3f0">

---------

Co-authored-by: Tobias Høegh <tobias@tujo.no>
@langz langz requested a review from tujoworker as a code owner December 20, 2023 05:52
tujoworker and others added 2 commits December 20, 2023 11:07
… is required and only country code is provided (#3081)

The `Field.PhoneNumber` component renders an validation error initially
when it is required and only country code is provided. Git bisect tells
me this was introduced in 5b1a9b0.

Here is a small example to reproduce it, but see the attached commit for
full details.
```jsx
<PhoneNumber required value='+47' />
```

Work around:
```tsx
function DemoPhoneNumberField() {
  const countryCode = '+47'
  const phoneNumber = ''

  const value = (countryCode === '+47' && !phoneNumber) ? undefined : (countryCode + ' ' + phoneNumber)

  return <PhoneNumber required value={value} />
}
```

---------

Co-authored-by: Tobias Høegh <tobias@tujo.no>
Co-authored-by: Joakim Bjerknes <joakbjerk@gmail.com>
…e based on chosen locale (#3156)

Co-authored-by: Tobias Høegh <tobias@tujo.no>
Fixes the following code example, which would result in having a hover
style:
```
<Anchor
    href="/uilib/components/anchor"
    className="dnb-anchor--no-hover dnb-anchor--contrast"
  >
    No hover
  </Anchor>
```
Looking like:
<img width="112" alt="image"
src="https://github.com/dnbexperience/eufemia/assets/1359205/4999bf46-6d76-44b9-a008-43490686d3db">

After the fix, it looks like this when hovering:
<img width="104" alt="image"
src="https://github.com/dnbexperience/eufemia/assets/1359205/7af6bd1b-4094-4ab3-883f-40eb429678f9">



This PR also adds a few screenshot tests for `dnb-anchor--contrast`
variations, together with other helper classes.

---------

Co-authored-by: Tobias Høegh <tobias@tujo.no>
On small screens, the Card should breakout. To be able to do that, we
use the Section component.
Co-authored-by: Joakim Bjerknes <joakbjerk@gmail.com>
@tujoworker tujoworker merged commit fa3d13f into release Jan 4, 2024
@tujoworker
Copy link
Member

🎉 This PR is included in version 10.16.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

None yet

4 participants