From c9835d52c3bdf20e4732a4d374eccd8c66d754a2 Mon Sep 17 00:00:00 2001
From: Nathaniel Waldschmidt
<77284592+NateWaldschmidt@users.noreply.github.com>
Date: Thu, 2 May 2024 09:49:41 -0500
Subject: [PATCH] feat: add new icons (#489)
---
CHANGELOG.md | 6 +++
package-lock.json | 4 +-
package.json | 2 +-
src/components/Icon/svgs/Details.svg | 3 ++
src/components/Icon/svgs/Previous.svg | 3 ++
src/components/Icon/types.ts | 2 +
src/components/IconButton/IconButton.vue | 4 ++
.../LoadingIndicator/LoadingIndicator.vue | 43 ++++++++++---------
...cator.spec.js => LoadingIndicator.spec.ts} | 4 +-
9 files changed, 46 insertions(+), 25 deletions(-)
create mode 100644 src/components/Icon/svgs/Details.svg
create mode 100644 src/components/Icon/svgs/Previous.svg
rename src/components/LoadingIndicator/__tests__/{LoadingIndicator.spec.js => LoadingIndicator.spec.ts} (96%)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 5d7722f00..19a341e8c 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,11 @@
# CHANGELOG
+## v2.0.48
+
+- Add new icons for the `Icon` component
+ - `Details`
+ - `Previous`
+
## v2.0.47
- Use the correct classes for box shadow in `Overlay` and `Menu` component.
diff --git a/package-lock.json b/package-lock.json
index c3b76fb7a..70152a776 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "@lob/ui-components",
- "version": "2.0.47",
+ "version": "2.0.48",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "@lob/ui-components",
- "version": "2.0.47",
+ "version": "2.0.48",
"dependencies": {
"date-fns": "^2.29.3",
"date-fns-holiday-us": "^0.3.1",
diff --git a/package.json b/package.json
index 0d71d6592..cc6e8c591 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "@lob/ui-components",
- "version": "2.0.47",
+ "version": "2.0.48",
"engines": {
"node": ">=20.2.0",
"npm": ">=10.2.0"
diff --git a/src/components/Icon/svgs/Details.svg b/src/components/Icon/svgs/Details.svg
new file mode 100644
index 000000000..02bceba87
--- /dev/null
+++ b/src/components/Icon/svgs/Details.svg
@@ -0,0 +1,3 @@
+
diff --git a/src/components/Icon/svgs/Previous.svg b/src/components/Icon/svgs/Previous.svg
new file mode 100644
index 000000000..452074ed0
--- /dev/null
+++ b/src/components/Icon/svgs/Previous.svg
@@ -0,0 +1,3 @@
+
diff --git a/src/components/Icon/types.ts b/src/components/Icon/types.ts
index 009744c16..1534dd3b6 100644
--- a/src/components/Icon/types.ts
+++ b/src/components/Icon/types.ts
@@ -34,6 +34,7 @@ export const IconName = {
COIN: 'Coin',
CREDIT_CARD: 'CreditCard',
DELETE: 'Delete',
+ DETAILS: 'Details',
DUPLICATE: 'Duplicate',
EDIT: 'Edit',
ENVELOPE: 'Envelope',
@@ -60,6 +61,7 @@ export const IconName = {
PLAN_GROWTH: 'PlanGrowth',
PLAN_STARTUP: 'PlanStartup',
PLUS: 'Plus',
+ PREVIOUS: 'Previous',
PROCESSING: 'Processing',
SIGNAL: 'Signal',
SUCCESS: 'Success',
diff --git a/src/components/IconButton/IconButton.vue b/src/components/IconButton/IconButton.vue
index 1eff01549..811c3affc 100644
--- a/src/components/IconButton/IconButton.vue
+++ b/src/components/IconButton/IconButton.vue
@@ -83,6 +83,10 @@ const linkTag = computed(() => {
.uic-icon-button {
@apply rounded-lg;
+ &:disabled {
+ @apply cursor-not-allowed;
+ }
+
&.size- {
&sm {
@apply p-2;
diff --git a/src/components/LoadingIndicator/LoadingIndicator.vue b/src/components/LoadingIndicator/LoadingIndicator.vue
index 7bcfdf7f2..776996c8e 100644
--- a/src/components/LoadingIndicator/LoadingIndicator.vue
+++ b/src/components/LoadingIndicator/LoadingIndicator.vue
@@ -1,34 +1,37 @@
-