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.63.0 #4450

Merged
merged 61 commits into from
Jan 29, 2025
Merged
Show file tree
Hide file tree
Changes from 46 commits
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
b6c3dad
feat(Forms): deprecate `continuousValidation` in favor of `validateCo…
langz Jan 8, 2025
2148916
docs(Form.MainHeading, Form.SubHeading): add `help` property to prope…
snorrekim Jan 9, 2025
744781b
fix(Autocomplete): does not fail when clicking show all button (#4445)
langz Jan 10, 2025
2efc623
fix(InputMasked): should work without any properties (#4446)
langz Jan 13, 2025
d4c586d
chore: replace defaultProps in function components (#4447)
langz Jan 13, 2025
ad13e23
feat(Forms): add support for conditional function based `info`, `warn…
tujoworker Jan 13, 2025
b7639cb
docs(Forms): improve documentation on TypeScript type handling (#4444)
tujoworker Jan 13, 2025
22f439f
chore(Accordion): replace defaultProps (#4449)
langz Jan 13, 2025
34d109e
fix: refactor defaultProps to ES6 default parameters (#4448)
langz Jan 13, 2025
813f474
chore: rename Tabbar -> TabBar (#4454)
langz Jan 14, 2025
9dfd6b4
fix(Blockquote): contrast font color of code as child (#4453)
langz Jan 14, 2025
f434a8e
docs(GlobalStatus): add example on how to add custom icon (#4457)
langz Jan 14, 2025
33ca39c
fix(ToggleButton): add type for the `size` property (#4459)
tujoworker Jan 15, 2025
907211d
chore(TabBar): fix navigation on next and prev button click (#4455)
langz Jan 15, 2025
1f2bba1
fix(Autocomplete): focus issue when no valid data (#4458)
langz Jan 15, 2025
ffa0453
docs(Extensions): extend description (#4456)
langz Jan 15, 2025
5ff0126
fix(Spacing): ensure HTML elements like h1 use always a spacing reset…
tujoworker Jan 16, 2025
938f3c8
feat(Forms): provide the internal array as a third parameter to the c…
tujoworker Jan 16, 2025
352ad63
fix(Forms): ensure wizard step changes scroll so the StepIndicator is…
tujoworker Jan 16, 2025
3432251
chore(Forms): make info about the usage of Value.SummaryList more eas…
tujoworker Jan 16, 2025
28479bc
feat(Forms): add support for `required` property to Iterate.PushConta…
tujoworker Jan 16, 2025
0843d93
chore(Forms): only call `handleRemoveItem` when no `itemPath` was giv…
tujoworker Jan 17, 2025
ef6485b
feat(Forms): add support for `required` property to `Iterate.Array` (…
tujoworker Jan 17, 2025
95f8d76
feat(Forms): during submit, show field errors inside `Iterate.PushCon…
tujoworker Jan 17, 2025
105e05d
chore: add missing hook dependency to `Field-ArraySelection` (#4474)
tujoworker Jan 19, 2025
fa881d5
feat(Forms): fix inactive `Iterate.PushContainer` blocking Wizard nav…
tujoworker Jan 19, 2025
3bad7dd
chore(Forms): render span when text placeholder was given to `Iterate…
tujoworker Jan 19, 2025
ccc43b6
chore: rename internal context (`IterateElementContext` to `IterateIt…
tujoworker Jan 20, 2025
e9bc230
fix(Forms): don't open Field.SelectCountry when `defaultValue` was gi…
tujoworker Jan 20, 2025
0cc8ff6
feat(Forms): add `itemPath` property support to `Iterate.Array` (#4479)
tujoworker Jan 20, 2025
e5de516
feat(DatePicker): render calendar in a react portal (#4347)
joakbjerk Jan 21, 2025
e47cc51
chore: make shared internal `DrawerListOptionItem` component (#4483)
langz Jan 22, 2025
ef3a816
docs(DrawerList): minor doc improvement (#4490)
langz Jan 24, 2025
612634f
docs(DrawerList): fix dead link to data prop (#4489)
langz Jan 24, 2025
2ab9602
chore: custom build to custom-built (#4487)
langz Jan 24, 2025
7ef6d42
chore: use calc with var(--modal-z-index) (#4485)
langz Jan 24, 2025
91e92cc
chore(DrawerList): removes unused `data-visual-test` props (#4484)
langz Jan 24, 2025
4af21d5
chore(PhoneNumber): fix tests to run properly on Apple Silicon (#4491)
tujoworker Jan 24, 2025
93974b5
fix(HeightAnimation): ensure height does not lock during animation wh…
tujoworker Jan 24, 2025
f25f44a
feat(Forms): ensure Form.Iterate and Form.Section containers close wh…
tujoworker Jan 25, 2025
c547f1a
fix(Forms): add animation support to Form.Visibility when used inside…
tujoworker Jan 25, 2025
0eaa23d
chore(Forms): enhance `required` prop support (before release) for wh…
tujoworker Jan 26, 2025
430a373
feat(Forms): add `transformSelection` to Field.Selection (#4481)
tujoworker Jan 27, 2025
dfbacc6
chore: ReferenceError: Tools is not defined (#4503)
langz Jan 28, 2025
673d55c
feat(Forms): add `itemPath` property support to `Iterate.PushButton` …
tujoworker Jan 28, 2025
64e7b41
fix(Forms): ensure `connectWithPath` type is given (#4501)
tujoworker Jan 28, 2025
b51dd38
chore(ComponentBox): add Tools as default import (#4505)
langz Jan 28, 2025
ab77e62
feat(Pagination): add `barSpace` prop to set spacing only on the bar …
langz Jan 28, 2025
68e96f8
feat(Forms): add `Iterate.Visibility` to be used within `Iterate.Arra…
tujoworker Jan 28, 2025
feb0217
fix(Field.Upload): prevent `fileHandler` to run when it is validation…
langz Jan 28, 2025
dbbfa49
fix(Forms): ensure Field.Toggle supports iterate `{itemNo}` in label …
tujoworker Jan 28, 2025
f22b4c3
fix(Forms): provide `displayValue` and `label` to `transformData` fro…
tujoworker Jan 29, 2025
f83c775
chore: it's to its (#4514)
langz Jan 29, 2025
4ef7fe6
chore(DrawerList): add test and example for inline styling (#4513)
langz Jan 29, 2025
bd3bd25
chore(Forms): housekeeping of String test (#4512)
tujoworker Jan 29, 2025
3801d1e
feat(Forms): add support for inline `style` to `Field.Option` when us…
langz Jan 29, 2025
2fe99aa
feat(Forms): add support for arrays with errors for `onChangeValidato…
tujoworker Jan 29, 2025
de8a95b
chore(Field.Option): remove unused code (#4516)
langz Jan 29, 2025
bf784c8
chore(Field.Selection): add test for inline style in variant button a…
langz Jan 29, 2025
321550f
feat(Forms): add `connectWithItemPath` to `onBlurValidator` and `onCh…
tujoworker Jan 29, 2025
75e4b31
chore: changelog for v10.63.0 (#4451)
langz Jan 29, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions packages/dnb-design-system-portal/src/core/PortalLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ import React from 'react'
import { MDXProvider } from '@mdx-js/react'
import { graphql, useStaticQuery } from 'gatsby'
import Layout from '../shared/parts/Layout'
import Tabbar from '../shared/tags/Tabbar'
import TabBar from '../shared/tags/TabBar'
import { Link } from '../shared/tags/Anchor'
import tags from '../shared/tags'
import { resetLevels } from '@dnb/eufemia/src/components/Heading'
import { setPortalHeadData, usePortalHead } from './PortalHead'
import { Breadcrumb } from '@dnb/eufemia/src'

const ContentWrapper = Tabbar.ContentWrapper
const ContentWrapper = TabBar.ContentWrapper

type Frontmatter = {
title: string
Expand Down Expand Up @@ -157,8 +157,8 @@ export default function PortalLayout(props: PortalLayoutProps) {
)}

{currentFm.showTabs && (
<Tabbar
key="tabbar"
<TabBar
key="tab-bar"
location={location}
rootPath={rootPath}
title={fmData.title}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ These are standard, out-of-the box, ready to use components.

However, there are many cases whereby the standard component needs to be customized or adjusted to suit the needs of the user. This results in a new component. We call these _extensions_.

Eufemia extensions are reusable parts that not fits naturally in to a component or element, but rather has the nature of being a extended solution of Eufemia.
Eufemia extensions are reusable parts that do not fit naturally in to a component or element, but rather has the nature of being an extended solution of Eufemia.

Check out the [available Extensions Library](/uilib/extensions/).

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -206,4 +206,12 @@ const errorMessages = {
- replace type `DrawerListDataObjectUnion` with `DrawerListDataArrayItem`.
- replace type `DrawerListDataObject` with `DrawerListDataArrayObject`.

## `Form.Visibility`

- replace `continuousValidation` with `validateContinuously`.

## `Field.*` components

- replace `continuousValidation` with `validateContinuously`.

_February, 6. 2024_
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ import ListComponents from 'dnb-design-system-portal/src/shared/parts/ListCompon

# Components

DNB Eufemia components are ready to use, styled and custom build HTML elements.
DNB Eufemia components are ready to use, styled and custom-built HTML elements.

<ListComponents />
Original file line number Diff line number Diff line change
Expand Up @@ -2,34 +2,12 @@
showTabs: true
---

import PropertiesTable from 'dnb-design-system-portal/src/shared/parts/PropertiesTable'
import { ButtonProperties } from '@dnb/eufemia/src/components/button/ButtonDocs'

## Properties

| Properties | Description |
| --------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `type` | _(optional)_ `button`, `reset` or `submit` for the `type` HTML attribute. Defaults to `button` for legacy reasons. |
| `text` or `children` | _(optional)_ the content of the button can be a string or a React Element. |
| `aria-label` or `title` | _(optional)_ required if there is no text in the button. If `text` and `children` are undefined, setting the `title` property will automatically set `aria-label` with the same value. |
| `variant` | _(optional)_ defines the kind of button. Possible values are `primary`, `secondary`, `tertiary` and `signal`. Defaults to `primary` (or `secondary` if icon only). |
| `size` | _(optional)_ the size of the button. For now there is `small`, `medium`, `default` and `large`. |
| `icon` | _(optional)_ to be included in the button. [Primary Icons](/icons/primary) can be set as a string (e.g. `icon="chevron_right"`), other icons should be set as React elements. |
| `icon_position` | _(optional)_ position of icon inside the button. Set to `left` or `right`. Tertiary button variant also supports `top`. Defaults to `right` if not set. |
| `icon_size` | _(optional)_ define icon width and height. Defaults to 16px. |
| `href` | _(optional)_ if you want the button to behave as a link. Use with caution! A link should normally visually be a link and not a button. |
| `target` | _(optional)_ When button behaves as a link. Used to specify where to open the linked document, specified by `href`. Possible values are `_self`, `_blank`, `_parent` and `_top`. |
| `rel` | _(optional)_ When button behaves as a link. Used to specify the relationship between a linked resource and the current document. Examples(non-exhaustive list) of values are `nofollow`, `search`, and `tag`. |
| `to` | _(optional)_ use this property only if you are using a router Link component as the `element` that uses the `to` property to declare the navigation url. |
| `wrap` | _(optional)_ if set to `true` the button text will wrap in to new lines if the overflow point is reached. Defaults to `false`. |
| `stretch` | _(optional)_ set it to `true` in order to stretch the button to the available space. Defaults to false. |
| `bounding` | _(optional)_ set it to `true` in order to extend the bounding box (above the visual button background). You may also look into the HTML class `dnb-button__bounding` if it needs some CSS customization in order to get the particular button right for your use-case. |
| `element` | _(optional)_ only meant to be used for special use cases. Defaults to `button` or `a` depending if href is set or not. |
| `custom_content` | _(optional)_ if you need to inject completely custom markup (React Element) into the button component. You have then to handle alignment and styling by yourself. |
| `skeleton` | _(optional)_ if set to `true`, an overlaying skeleton with animation will be shown. |
| `tooltip` | _(optional)_ Provide a string or a React Element to be shown as the tooltip content. |
| `status` | _(optional)_ set it to either `status="error"` or a text with a status message. The style defaults to an error message. You can use `true` to only get the status color, without a message. |
| `status_state` | _(optional)_ defines the state of the status. Currently there are two statuses `[error, info]`. Defaults to `error`. |
| `status_props` | _(optional)_ use an object to define additional FormStatus properties. |
| `globalStatus` | _(optional)_ the [configuration](/uilib/components/global-status/properties/#configuration-object) used for the target [GlobalStatus](/uilib/components/global-status). |
| [Space](/uilib/layout/space/properties) | _(optional)_ spacing properties like `top` or `bottom` are supported. |
<PropertiesTable props={ButtonProperties} />

### Unstyled variant

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@ export const DatePickerCalendar = () => (
range={true}
startDate="2019-05-05"
endDate="2019-06-05"
skipPortal
/>
</ComponentBox>
</Wrapper>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export const DrawerListExampleOnlyToVisualize = () => (

export const DrawerListExampleDefault = () => (
<Wrapper>
<ComponentBox scope={{ data }} data-visual-test="drawer-list-default">
<ComponentBox scope={{ data }}>
<DrawerList
skip_portal
opened
Expand Down Expand Up @@ -153,7 +153,7 @@ export const DrawerListExampleDisabled = () => (

export const DrawerListExampleSingleItem = () => (
<Wrapper>
<ComponentBox scope={{ data }} data-visual-test="drawer-list-events">
<ComponentBox scope={{ data }}>
{() => {
const CustomComponent = () => (
<CustomComponentInner
Expand Down Expand Up @@ -213,7 +213,7 @@ export const DrawerListExampleSingleItem = () => (

export const DrawerListExampleMarkup = () => (
<Wrapper>
<ComponentBox data-visual-test="drawer-items">
<ComponentBox>
{() => {
const list = [{ value: 'A' }, { value: 'B' }, { value: 'C' }]
const CustomWidth = styled(DrawerList)`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,12 @@ import { DrawerListItem } from '@dnb/eufemia/src/fragments/drawer-list/DrawerLis

## The `data` property

The `data` can be structured in two main ways: as an array, or as an object. An array is preferred as it gives you the most options.
The `data` can be structured in two main ways:

- As an array
- As an object.

An array is preferred as it gives you the most options.

### `data` as an array

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ import {
Input,
Section,
ToggleButton,
Icon,
} from '@dnb/eufemia/src'
import { confetti_medium } from '@dnb/eufemia/src/icons'

import { Provider } from '@dnb/eufemia/src/shared'

export const GlobalInfoOverlayError = () => (
Expand Down Expand Up @@ -81,6 +84,22 @@ export const GlobalInfoOverlaySuccess = () => (
</ComponentBox>
)

export const GlobalInfoCustomIcon = () => (
<ComponentBox
scope={{ confetti_medium }}
data-visual-test="global-status-icon"
>
<GlobalStatus
icon={<Icon icon={confetti_medium} />}
show={true}
autoscroll={false}
no_animation={true}
omit_set_focus={true}
id="demo-icon"
/>
</ComponentBox>
)

export const GlobalStatusCoupling = () => (
<ComponentBox>
{() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {
GlobalStatusCoupling,
GlobalStatusAddRemoveItems,
GlobalStatusScrolling,
GlobalInfoCustomIcon,
} from 'Docs/uilib/components/global-status/Examples'

## Demos
Expand All @@ -33,6 +34,10 @@ import {

<GlobalInfoOverlaySuccess />

### GlobalStatus custom icon

<GlobalInfoCustomIcon />

### To showcase the automated coupling between **FormStatus** and **GlobalStatus**

<GlobalStatusCoupling />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ export const TabsExampleHorizontallyAligned = () => (
flex-shrink: 0;
`
const RightArea = styled.div`
/* Ensure the tabbar is hidden outside this area */
/* Ensure the tab bar is hidden outside this area */
overflow: hidden;

/* Ensure the focus ring is visible! (because of overflow: hidden) */
Expand Down
Loading
Loading