Skip to content

Commit

Permalink
chore: prepare release (#1534)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and github-actions[bot] committed Apr 22, 2024
1 parent fecdcbf commit b3bd6fe
Show file tree
Hide file tree
Showing 15 changed files with 99 additions and 129 deletions.
4 changes: 0 additions & 4 deletions .changeset/free-lizards-marry.md

This file was deleted.

11 changes: 0 additions & 11 deletions .changeset/hot-spiders-prove.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/large-kings-drop.md

This file was deleted.

11 changes: 0 additions & 11 deletions .changeset/late-cobras-hammer.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/lemon-comics-flow.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/light-rice-warn.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/nervous-hairs-melt.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/new-grapes-hope.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/silver-hornets-cry.md

This file was deleted.

13 changes: 0 additions & 13 deletions .changeset/slow-drinks-grow.md

This file was deleted.

38 changes: 0 additions & 38 deletions .changeset/spicy-cups-fly.md

This file was deleted.

4 changes: 0 additions & 4 deletions .changeset/tame-comics-sneeze.md

This file was deleted.

16 changes: 0 additions & 16 deletions .changeset/witty-papayas-tease.md

This file was deleted.

98 changes: 98 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,103 @@
# @rhds/elements

## 1.4.0

### Minor Changes

- fecdcbf: `<rh-codeblock>`: added line numbers
- fecdcbf: ✨ Added `<rh-site-status>`

Website status communicates the operational status of a website or domain using a status icon and link. It is usually located in the Footer component.

```html
<rh-site-status></rh-site-status>
```

- fecdcbf: ✨ Added `<rh-back-to-top>`.

Back to top component is a fragment link that allows users to quickly navigate to the top of a lengthy content.

```html
<rh-back-to-top href="#top">Back to top</rh-back-to-top>
```

- fecdcbf: ✨ Added `<rh-skip-link>`.

A skip link is used to skip repetitive content on a page. It is hidden by default and can be activated by hitting the "Tab" key after loading/refreshing a page.

```html
<rh-skip-link>
<a href="#main-content">Skip to main content</a>
</rh-skip-link>
```

- fecdcbf: ⚛️ Added React wrapper components

You can now more easily integrate RHDS elements into your React apps by importing our wrapper components

First, make sure that you list `@lit/react` as a dependency in your project

```sh
npm install --save @lit/react
```

Then import the element components you need and treat them like any other react component

```js
import { Tabs } from '@rhds/elements/react/rh-tabs/rh-tabs.js';
import { Tab } from '@rhds/elements/react/rh-tabs/rh-tab.js';
import { TabPanel } from '@rhds/elements/react/rh-tabs/rh-tab-panel.js';

import { useState } from 'react';

const tabs = [
{ heading: 'Hello Red Hat', content: 'Let\'s break down silos' },
{ heading: 'Web components', content: 'They work everywhere' }
];

function App() {
const [index, setExpanded] = useState(-1);
return (
<span>expanded {expanded}</span>
<Tabs>{tabs.map(({ heading, content }, i) => (
<Tab slot="tab" onExpand={() => setExpanded(i)}>{heading}</Tab>
<TabPanel>{content}</TabPanel>))}
</Tabs>
);
}
```

- fecdcbf: `<rh-codeblock>`: added `Show more` toggle
- fecdcbf: `<rh-codeblock>`: added copy and wrap actions, with localizable slots for the button labels

```html
<rh-code-block actions="wrap copy">
<span slot="action-label-copy">Copy to Clipboard</span>
<span slot="action-label-copy" hidden data-code-block-state="active"
>Copied!</span
>
<span slot="action-label-wrap">Toggle word wrap</span>
<span slot="action-label-wrap" hidden data-code-block-state="active"
>Toggle overflow</span
>
<script type="text/css">
:host {
display: block;
}
</script>
</rh-code-block>
```

### Patch Changes

- fecdcbf: `<rh-menu>`: improved focus accessibility for keyboard navigation users on firefox
`<rh-button>`: improved focus accessibility on firefox
- fecdcbf: `<rh-accordion>`: added a accents slot with placement options as inline and bottom
- fecdcbf: Context: aligned context implementation with updated [protocol defintions](https://github.com/webcomponents-cg/community-protocols/blob/main/proposals/context.md#definitions)
- fecdcbf: Update dependencies, including Lit version 3
- fecdcbf: `<rh-alert>`: make sure alerts always have to correct (lightest) colour palette
- fecdcbf: `<rh-tabs>`: allow tabs with long text content to fit into different-sized containers

## 1.3.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rhds/elements",
"version": "1.3.2",
"version": "1.4.0",
"description": "Red Hat Design System Elements",
"type": "module",
"license": "MIT",
Expand Down

0 comments on commit b3bd6fe

Please sign in to comment.