Skip to content

Commit

Permalink
release of v10.16.0 (#3088)
Browse files Browse the repository at this point in the history
  • Loading branch information
tujoworker authored Jan 4, 2024
2 parents eac83c0 + ea56957 commit fa3d13f
Show file tree
Hide file tree
Showing 470 changed files with 6,168 additions and 6,242 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/icons-lib.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ jobs:

runs-on: ubuntu-latest

timeout-minutes: 60

steps:
- name: Git checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -76,6 +78,8 @@ jobs:

runs-on: macos-latest

timeout-minutes: 60

steps:
- name: Git checkout
uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion packages/dnb-design-system-portal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
"gatsby-plugin-babel-react-live": "1.4.2",
"gatsby-plugin-catch-links": "5.12.0",
"gatsby-plugin-emotion": "8.12.0",
"gatsby-plugin-eufemia-theme-handler": "1.7.0",
"gatsby-plugin-eufemia-theme-handler": "1.8.0",
"gatsby-plugin-gatsby-cloud": "5.12.0",
"gatsby-plugin-manifest": "5.12.0",
"gatsby-plugin-mdx": "5.12.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export const AnchorExampleHelperClasses = () => (
No underline
</Anchor>
</Example>
<Example>
<Example data-visual-test="anchor-no-icon">
<Anchor
target="_blank"
href="/uilib/components/anchor"
Expand Down Expand Up @@ -162,6 +162,62 @@ export const AnchorExampleHelperClasses = () => (
</Wrapper>
)

export const AnchorExampleHelperContrastVariations = () => (
<Wrapper>
<ComponentBox hideCode scope={{ Example, ContrastExample }}>
<Example>
<ContrastExample data-visual-test="anchor-contrast-no-hover">
<Anchor
href="/uilib/components/anchor"
className="dnb-anchor--contrast dnb-anchor--no-hover"
>
Contrast - no hover
</Anchor>
</ContrastExample>
</Example>
<Example>
<ContrastExample data-visual-test="anchor-contrast-no-radius">
<Anchor
href="/uilib/components/anchor"
className="dnb-anchor--contrast dnb-anchor--no-radius"
>
Contrast - no radius
</Anchor>
</ContrastExample>
</Example>
<Example>
<ContrastExample data-visual-test="anchor-contrast-no-underline">
<Anchor
href="/uilib/components/anchor"
className="dnb-anchor--contrast dnb-anchor--no-underline"
>
Contrast - no underline
</Anchor>
</ContrastExample>
</Example>
<Example>
<ContrastExample data-visual-test="anchor-contrast-no-underline-no-hover">
<Anchor
href="/uilib/components/anchor"
className="dnb-anchor--contrast dnb-anchor--no-underline dnb-anchor--no-hover"
>
Contrast - no underline - no hover
</Anchor>
</ContrastExample>
</Example>
<Example>
<ContrastExample data-visual-test="anchor-contrast-no-underline-no-radius">
<Anchor
href="/uilib/components/anchor"
className="dnb-anchor--contrast dnb-anchor--no-underline dnb-anchor--no-radius"
>
Contrast - no underline - no radius
</Anchor>
</ContrastExample>
</Example>
</ComponentBox>
</Wrapper>
)
export const AnchorExampleIcons = () => (
<Wrapper>
<ComponentBox hideCode scope={{ Example }}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import {
AnchorSbankenGoto,
AnchorSbankenInline,
AnchorLegacyUsage,
AnchorExampleHelperContrastVariations,
} from 'Docs/uilib/components/anchor/Examples'

<VisibilityByTheme visible="sbanken">
Expand Down Expand Up @@ -81,4 +82,5 @@ Unless the href contains `:mailto`, `:tel` or `:sms`.

<VisibleWhenVisualTest>
<AnchorLegacyUsage />
<AnchorExampleHelperContrastVariations />
</VisibleWhenVisualTest>
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const Wrapper = styled.div`
export const AutocompleteDefaultExample = () => (
<Wrapper>
<ComponentBox scope={{ topMovies }}>
<Autocomplete data={topMovies} label="Label:" />
<Autocomplete data={topMovies} label="Label" />
</ComponentBox>
</Wrapper>
)
Expand All @@ -43,7 +43,7 @@ export const AutocompleteStatusExample = () => (
>
<Autocomplete
data={topMovies}
label="Label:"
label="Label"
status="Please select a valid date"
status_state="info"
show_submit_button
Expand All @@ -65,7 +65,7 @@ export const AutocompleteNumbersExample = () => (
<Autocomplete
input_value="201"
show_clear_button
label="Label:"
label="Label"
data={numbersData}
search_numbers={true}
/>
Expand All @@ -83,7 +83,7 @@ export const AutocompleteWithCustomTitle = () => (
data={topMovies}
keep_value={true}
show_clear_button={true}
label="Label:"
label="Label"
placeholder="Custom placeholder ..."
on_change={({ data }) => {
console.log('on_change', data)
Expand Down Expand Up @@ -179,7 +179,7 @@ export const AutocompleteToggleExample = () => (
scope={{ topMovies }}
>
<Autocomplete
label="Label:"
label="Label"
value={10}
show_submit_button={true}
on_change={({ data }) => {
Expand All @@ -199,7 +199,7 @@ export const AutocompletePredefinedInput = () => (
scope={{ topMovies }}
>
<Autocomplete
label="Label:"
label="Label"
input_value="the pa ther"
no_animation
on_change={({ data }) => {
Expand All @@ -220,16 +220,12 @@ export const AutocompleteDifferentSizes = () => (
>
<Flex.Vertical>
<Autocomplete
label="Label:"
label="Label"
size="default"
data={() => topMovies}
/>
<Autocomplete
label="Label:"
size="medium"
data={() => topMovies}
/>
<Autocomplete label="Label:" size="large" data={() => topMovies} />
<Autocomplete label="Label" size="medium" data={() => topMovies} />
<Autocomplete label="Label" size="large" data={() => topMovies} />
</Flex.Vertical>
</ComponentBox>
</Wrapper>
Expand Down Expand Up @@ -266,20 +262,20 @@ export const AutocompleteCustomWidth = () => (
return (
<Flex.Vertical>
<CustomWidthOne
label="Label:"
label="Label"
label_sr_only
size="default"
icon_position="left"
data={topMovies}
/>
<CustomWidthTwo
label="Label:"
label="Label"
label_sr_only
size="medium"
data={topMovies}
/>
<CustomWidthThree
label="Label:"
label="Label"
label_sr_only
size="large"
align_autocomplete="right"
Expand Down Expand Up @@ -361,7 +357,7 @@ export const AutocompleteOpened = () => {
hideCode
>
<Autocomplete
label="Label:"
label="Label"
input_value="lord"
opened
no_animation
Expand All @@ -371,7 +367,7 @@ export const AutocompleteOpened = () => {
right="large"
/>
<Autocomplete
label="Label:"
label="Label"
input_value="angry"
skip_portal
opened
Expand Down Expand Up @@ -530,7 +526,7 @@ export const AutocompleteDisabledExample = () => (
show_submit_button
data={topMovies}
value={1}
label="Label:"
label="Label"
bottom
/>
<br />
Expand All @@ -539,7 +535,7 @@ export const AutocompleteDisabledExample = () => (
show_submit_button
data={topMovies}
value={1}
label="Label:"
label="Label"
suffix="Suffix"
size="large"
/>
Expand All @@ -566,7 +562,7 @@ export const AutocompleteContentAsArrayExample = () => (
],
},
]}
label="Label:"
label="Label"
/>
</ComponentBox>
</Wrapper>
Expand All @@ -589,7 +585,7 @@ export const AutocompleteContentAsFragmentExample = () => (
),
},
]}
label="Label:"
label="Label"
/>
</ComponentBox>
</Wrapper>
Expand All @@ -605,7 +601,7 @@ export const AutocompleteContentDecoupledExample = () => (
search_content: ['your search content'],
},
]}
label="Label:"
label="Label"
/>
</ComponentBox>
</Wrapper>
Expand Down
Loading

0 comments on commit fa3d13f

Please sign in to comment.