Skip to content

Commit

Permalink
release of v10.51.1 (#4036)
Browse files Browse the repository at this point in the history
  • Loading branch information
langz authored Sep 30, 2024
2 parents 311692c + 1527d70 commit 02bc07e
Show file tree
Hide file tree
Showing 12 changed files with 43 additions and 37 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ They are integrated by using the `<IconPrimary />` [Icon Component](/uilib/compo
## React example usage

```jsx
<Icon icon="bell" size="medium" />
<IconPrimary icon="bell" size="medium" />
<Button icon="chevron_right" />
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import ListAllIcons from 'dnb-design-system-portal/src/shared/parts/icons/ListAl

# Secondary Icons

The Secondary Icons are an addition to the [Primary Icons](/icons/primary). They extend the possibility to have more, not mainly used icons. They get not shipped integrated as the [Primary Icons](/icons/primary) do.
The Secondary Icons are an addition to the [Primary Icons](/icons/primary). They extend the possibility to have more, not mainly used icons. They do not ship integrated, as the [Primary Icons](/icons/primary) do.

The Secondary Icons can be extended infinitely.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ showTabs: true
| Properties | Description |
| ----------------------------------------- | -------------------------------------------------------------------------------- |
| `icon` | _(required)_ Defines the [primary icon](/icons/primary) to be used, as a string. |
| [Icon](/uilib/components/icon/properties) | _(optional)_ accepts else all the default icon properties. |
| [Icon](/uilib/components/icon/properties) | _(optional)_ accepts all default icon properties. |
| [Space](/uilib/layout/space/properties) | _(optional)_ spacing properties like `top` or `bottom` are supported. |
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ showTabs: true

| Properties | Description |
| --------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `icon` | _(required)_ a React SVG Component or the icon name (in case we use `IconPrimary` or `dnb-icon-primary`). |
| `icon` | _(required)_ a React SVG Component. |
| `title` | _(optional)_ Use a title to provide extra information about the icon used. |
| `border` | _(optional)_ use `true` to display a rounded border with an inherited color. Keep in mind that the icon will have a larger total width and height of `+0.5em`. |
| `alt` | _(optional)_ the alternative label (text version) of the icon. Defaults to the imported icon name. |
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: 'Isolation'
description: '`Form.Isolation` lets you isolate parts of your from so data and validations are not shared between between the `Form.Handler` until you want to.'
description: '`Form.Isolation` lets you isolate parts of your form so data and validations are not shared between the `Form.Handler` until you want to.'
hideInMenu: true
showTabs: true
tabs:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2142,12 +2142,6 @@ button .dnb-form-status__text {
.dnb-dropdown__row {
display: inline-flex;
}
.dnb-dropdown--large .dnb-drawer-list__triangle {
margin-left: calc(var(--dropdown-padding-horizontal) - 0.25rem);
}
.dnb-dropdown--icon-position-left.dnb-dropdown--large .dnb-drawer-list__triangle {
margin-left: calc(var(--dropdown-padding-horizontal) + 0.25rem);
}
.dnb-dropdown__icon {
position: relative;
order: 2;
Expand Down Expand Up @@ -2389,6 +2383,13 @@ label + .dnb-dropdown[class*=__form-status] .dnb-dropdown__shell {
}
}
.dnb-drawer-list--triangle-position-left .dnb-dropdown__list--tertiary .dnb-drawer-list__triangle {
margin-left: 0.5rem;
}
.dnb-drawer-list--triangle-position-right .dnb-dropdown__list--tertiary .dnb-drawer-list__triangle {
margin-right: 0.5rem;
}
/*
* Used for snapshot testing
*
Expand Down
5 changes: 4 additions & 1 deletion packages/dnb-eufemia/src/components/dropdown/Dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,10 @@ class DropdownInstance extends React.PureComponent {
id={id}
role={handleAsMenu ? 'menu' : 'listbox'}
portal_class={portal_class}
list_class="dnb-dropdown__list"
list_class={classnames(
'dnb-dropdown__list',
variant === 'tertiary' && 'dnb-dropdown__list--tertiary'
)}
value={selected_item}
default_value={default_value}
scrollable={scrollable}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -819,12 +819,6 @@ button .dnb-form-status__text {
.dnb-dropdown__row {
display: inline-flex;
}
.dnb-dropdown--large .dnb-drawer-list__triangle {
margin-left: calc(var(--dropdown-padding-horizontal) - 0.25rem);
}
.dnb-dropdown--icon-position-left.dnb-dropdown--large .dnb-drawer-list__triangle {
margin-left: calc(var(--dropdown-padding-horizontal) + 0.25rem);
}
.dnb-dropdown__icon {
position: relative;
order: 2;
Expand Down Expand Up @@ -1064,6 +1058,13 @@ label + .dnb-dropdown[class*=__form-status] .dnb-dropdown__shell {
.dnb-responsive-component .dnb-dropdown__helper {
display: none;
}
}
.dnb-drawer-list--triangle-position-left .dnb-dropdown__list--tertiary .dnb-drawer-list__triangle {
margin-left: 0.5rem;
}
.dnb-drawer-list--triangle-position-right .dnb-dropdown__list--tertiary .dnb-drawer-list__triangle {
margin-right: 0.5rem;
}"
`;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,23 +56,6 @@
display: inline-flex;
}

// NB: looks like we don't need this anymore!
// &--default .dnb-drawer-list__list {
// top: var(--dropdown-height);
// bottom: auto;
// }
// &--default#{&}--top .dnb-drawer-list__list {
// bottom: var(--dropdown-height);
// top: auto;
// }

&--large .dnb-drawer-list__triangle {
margin-left: calc(var(--dropdown-padding-horizontal) - 0.25rem);
}
&--icon-position-left#{&}--large .dnb-drawer-list__triangle {
margin-left: calc(var(--dropdown-padding-horizontal) + 0.25rem);
}

&__icon {
position: relative;
order: 2;
Expand Down Expand Up @@ -391,3 +374,20 @@
}
}
}

.dnb-drawer-list--triangle-position {
// Cant access --dropdown-padding-horizontal, as the drawer list is outside of the dropdown scope
&-left {
.dnb-dropdown__list--tertiary .dnb-drawer-list__triangle {
// --dropdown-padding-horizontal divided by two
margin-left: 0.5rem;
}
}

&-right {
.dnb-dropdown__list--tertiary .dnb-drawer-list__triangle {
// --dropdown-padding-horizontal divided by two
margin-right: 0.5rem;
}
}
}
2 changes: 1 addition & 1 deletion packages/dnb-eufemia/src/components/icon/Icon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export type IconColor =

export type IconProps = {
/**
* A React SVG Component or the icon name (in case we use `IconPrimary` or `dnb-icon-primary`).
* A React SVG Component.
*/
icon?: IconIcon

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export const IconSandbox = () => (
<Box>
text
<Svg />
<Icon icon="bell" />
<Icon icon={Svg} />
</Box>
<Box>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ type UseDataReturnUpdate<Data> = <P extends Path>(

export type UseDataReturnGetValue<Data> = <P extends Path>(
path: P
) => PathType<Data, P> | unknown
) => PathType<Data, P> | any

export type UseDataReturnFilterData<Data> = (
filterDataHandler: FilterData,
Expand Down

0 comments on commit 02bc07e

Please sign in to comment.