From 3f2dd849cdfb9ab0a54273a6812fc4552e66a4e6 Mon Sep 17 00:00:00 2001
From: "github-actions[bot]"
<41898282+github-actions[bot]@users.noreply.github.com>
Date: Tue, 27 Feb 2024 12:43:28 -0800
Subject: [PATCH] Merge release/2.6.0 into main branch (#1161)
* Allow prop type node for Card title (#1150)
* Fix DropdownToggle focus color (#1154)
* IconButton: expose loading props (#1152)
* Bump ip from 2.0.0 to 2.0.1 (#1155)
* remove warning and danger Button variants from docs (#1158)
* Disable drawer background scrolling if drawer has background overlay (#1156)
---
.github/workflows/chromatic.yml | 7 +-
.github/workflows/create-new-release.yml | 7 +-
.github/workflows/lint.yml | 7 +-
.github/workflows/test.yml | 7 +-
package.json | 2 +-
spec/__snapshots__/Storyshots.test.js.snap | 48 +++-
src/Button/Button.mdx | 16 +-
src/Button/Button.stories.tsx | 4 +-
src/Card/Card.jsx | 2 +-
src/Drawer/Drawer.jsx | 25 +-
src/Drawer/Drawer.scss | 4 +
src/Drawer/Drawer.test.jsx | 271 ++++++++++++++++++
src/Dropdown/DropdownToggle.scss | 48 +++-
src/IconButton/IconButton.jsx | 6 +-
src/IconButton/IconButton.mdx | 7 +-
src/IconButton/IconButton.stories.jsx | 2 +
.../RichTextEditor.test.tsx.snap | 5 +
yarn.lock | 6 +-
18 files changed, 430 insertions(+), 44 deletions(-)
create mode 100644 src/Drawer/Drawer.test.jsx
diff --git a/.github/workflows/chromatic.yml b/.github/workflows/chromatic.yml
index e7fffe10..98aa909a 100644
--- a/.github/workflows/chromatic.yml
+++ b/.github/workflows/chromatic.yml
@@ -13,8 +13,6 @@ on:
jobs:
chromatic-deployment:
runs-on: ubuntu-latest
- env:
- FONTAWESOME_NPM_AUTH_TOKEN: ${{ secrets.FONTAWESOME_NPM_AUTH_TOKEN }}
steps:
- uses: actions/checkout@v2
with:
@@ -22,8 +20,9 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version-file: '.node-version'
- - run: npm config set "@fortawesome:registry" https://npm.fontawesome.com/ &&
- npm config set "//npm.fontawesome.com/:_authToken" $FONTAWESOME_NPM_AUTH_TOKEN
+ - run: |
+ npm config set "@fortawesome:registry" https://npm.fontawesome.com/
+ npm config set "//npm.fontawesome.com/:_authToken" ${{ secrets.FONTAWESOME_NPM_AUTH_TOKEN }}
- run: yarn
- name: Publish to Chromatic
uses: chromaui/action@v1
diff --git a/.github/workflows/create-new-release.yml b/.github/workflows/create-new-release.yml
index e267760d..89a75991 100644
--- a/.github/workflows/create-new-release.yml
+++ b/.github/workflows/create-new-release.yml
@@ -6,15 +6,14 @@ jobs:
create-new-release:
name: Create new release
runs-on: ubuntu-latest
- env:
- FONTAWESOME_NPM_AUTH_TOKEN: ${{ secrets.FONTAWESOME_NPM_AUTH_TOKEN }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
node-version-file: '.node-version'
- - run: npm config set "@fortawesome:registry" https://npm.fontawesome.com/ &&
- npm config set "//npm.fontawesome.com/:_authToken" $FONTAWESOME_NPM_AUTH_TOKEN
+ - run: |
+ npm config set "@fortawesome:registry" https://npm.fontawesome.com/
+ npm config set "//npm.fontawesome.com/:_authToken" ${{ secrets.FONTAWESOME_NPM_AUTH_TOKEN }}
- run: yarn install
- name: Initialize mandatory git config
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
index a321e4cf..69bea941 100644
--- a/.github/workflows/lint.yml
+++ b/.github/workflows/lint.yml
@@ -5,14 +5,13 @@ on: push
jobs:
js-lint:
runs-on: ubuntu-latest
- env:
- FONTAWESOME_NPM_AUTH_TOKEN: ${{ secrets.FONTAWESOME_NPM_AUTH_TOKEN }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
node-version-file: '.node-version'
- - run: npm config set "@fortawesome:registry" https://npm.fontawesome.com/ &&
- npm config set "//npm.fontawesome.com/:_authToken" $FONTAWESOME_NPM_AUTH_TOKEN
+ - run: |
+ npm config set "@fortawesome:registry" https://npm.fontawesome.com/
+ npm config set "//npm.fontawesome.com/:_authToken" ${{ secrets.FONTAWESOME_NPM_AUTH_TOKEN }}
- run: yarn
- run: yarn lint
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index f1d090fa..366a0013 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -5,14 +5,13 @@ on: push
jobs:
js-test:
runs-on: ubuntu-latest
- env:
- FONTAWESOME_NPM_AUTH_TOKEN: ${{ secrets.FONTAWESOME_NPM_AUTH_TOKEN }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
node-version-file: '.node-version'
- - run: npm config set "@fortawesome:registry" https://npm.fontawesome.com/ &&
- npm config set "//npm.fontawesome.com/:_authToken" $FONTAWESOME_NPM_AUTH_TOKEN
+ - run: |
+ npm config set "@fortawesome:registry" https://npm.fontawesome.com/
+ npm config set "//npm.fontawesome.com/:_authToken" ${{ secrets.FONTAWESOME_NPM_AUTH_TOKEN }}
- run: yarn
- run: yarn test
diff --git a/package.json b/package.json
index ff1c44c8..9c1d86ad 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "@user-interviews/ui-design-system",
- "version": "2.5.2a",
+ "version": "2.6.0",
"dependencies": {
"@tiptap/core": "^2.0.3",
"@tiptap/extension-bold": "^2.0.3",
diff --git a/spec/__snapshots__/Storyshots.test.js.snap b/spec/__snapshots__/Storyshots.test.js.snap
index add35829..7ee97d5a 100644
--- a/spec/__snapshots__/Storyshots.test.js.snap
+++ b/spec/__snapshots__/Storyshots.test.js.snap
@@ -3586,7 +3586,7 @@ Array [
]
`;
-exports[`Storyshots Components/Button Danger 1`] = `
+exports[`Storyshots Components/Button Danger DEPRECATED 1`] = `
Array [
,
,
,
,
,
,
,
,
,
,
,
+`;
+
exports[`Storyshots Components/IconButton Sizes 1`] = `
Array [
,
,
-### Danger
-
-- Used to indicate destructive actions.
-
-
-
-### Warning
-
-- Currently only used for managing project drafts, but could potentially be used to indicate actions that need require special attention.
-
-
-
### Transparent
diff --git a/src/Button/Button.stories.tsx b/src/Button/Button.stories.tsx
index 0f833a17..5f4c8826 100644
--- a/src/Button/Button.stories.tsx
+++ b/src/Button/Button.stories.tsx
@@ -97,7 +97,7 @@ export const Primary = () => (
>
);
-export const Danger = () => (
+export const DangerDEPRECATED = () => (
<>
renders snapshot 1`] = `
renders snapshot 1`] = `