diff --git a/beam/src/components/BeamFilter.vue b/beam/src/components/BeamFilter.vue
index 5ac3e5d1..89783639 100644
--- a/beam/src/components/BeamFilter.vue
+++ b/beam/src/components/BeamFilter.vue
@@ -45,12 +45,12 @@ const getTotalHeight = (el: HTMLDivElement) => {
overflow: hidden;
box-sizing: border-box;
transition: all 0.2s ease-in-out;
- border-bottom: 1px solid var(--row-border-color);
+ border-bottom: 1px solid var(--sc-row-border-color);
background: white;
}
.beam_filters-heading {
- background: var(--primary-color);
+ background: var(--sc-primary-color);
cursor: pointer;
display: flex;
align-items: center;
diff --git a/beam/src/components/BeamFilterOption.vue b/beam/src/components/BeamFilterOption.vue
index 60f03252..506f9881 100644
--- a/beam/src/components/BeamFilterOption.vue
+++ b/beam/src/components/BeamFilterOption.vue
@@ -67,11 +67,11 @@ const toggle = () => {
.beam_filter-option-select {
position: relative;
appearance: none;
- border: 1px solid var(--row-border-color);
+ border: 1px solid var(--sc-row-border-color);
font-weight: bold;
- color: var(--primary-text-color);
+ color: var(--sc-primary-text-color);
font-size: 0.8rem;
- font-family: var(--font-family);
+ font-family: var(--sc-font-family);
display: flex;
align-items: stretch;
}
@@ -82,8 +82,8 @@ label {
}
.beam_filter-arrow {
- background: var(--primary-color);
- color: var(--primary-text-color);
+ background: var(--sc-primary-color);
+ color: var(--sc-primary-text-color);
cursor: pointer;
display: flex;
align-items: center;
@@ -97,7 +97,7 @@ label {
}
svg {
- fill: var(--primary-text-color);
+ fill: var(--sc-primary-text-color);
width: 5px;
transform: rotate(90deg);
}
@@ -107,7 +107,7 @@ svg {
z-index: 100;
border-top: none;
left: 0;
- border: 1px solid var(--row-border-color);
+ border: 1px solid var(--sc-row-border-color);
padding: 0rem;
list-style: none;
width: 100%;
@@ -119,21 +119,21 @@ svg {
.beam_filter-select-option {
font-size: 0.8rem;
- font-family: var(--font-family);
+ font-family: var(--sc-font-family);
font-weight: bold;
- color: var(--primary-text-color);
- border-bottom: 1px solid var(--row-border-color);
+ color: var(--sc-primary-text-color);
+ border-bottom: 1px solid var(--sc-row-border-color);
padding: 0.5rem;
&:hover {
- background: var(--primary-color);
+ background: var(--sc-primary-color);
}
}
.selected {
- background: var(--row-border-color);
+ background: var(--sc-row-border-color);
&:hover {
- background: var(--row-border-color);
+ background: var(--sc-row-border-color);
}
}
diff --git a/beam/src/components/ItemCheck.vue b/beam/src/components/ItemCheck.vue
index 0a412cba..4f1cd61a 100644
--- a/beam/src/components/ItemCheck.vue
+++ b/beam/src/components/ItemCheck.vue
@@ -41,7 +41,7 @@ const value = defineModel({ default: false })
width: 2rem;
background-color: #eee;
outline: 2px solid transparent;
- border: 1px solid var(--highlight);
+ border: 1px solid var(--sc-highlight);
}
.container:hover input ~ .checkmark {
@@ -49,7 +49,7 @@ const value = defineModel({ default: false })
}
.container input:checked ~ .checkmark {
- background-color: var(--brand-secondary);
+ background-color: var(--sc-brand-secondary);
}
.checkmark:after {
@@ -67,7 +67,7 @@ const value = defineModel({ default: false })
top: 50%;
width: 0.5rem;
height: 1rem;
- border: solid var(--text-color);
+ border: solid var(--sc-text-color);
border-width: 0 3px 3px 0;
-webkit-transform: rotate(45deg);
-ms-transform: rotate(45deg);
diff --git a/beam/src/components/ToggleArrow.vue b/beam/src/components/ToggleArrow.vue
index 687d8eaa..4049e8b4 100644
--- a/beam/src/components/ToggleArrow.vue
+++ b/beam/src/components/ToggleArrow.vue
@@ -14,7 +14,7 @@ const { open } = defineProps<{ open: boolean }>()
svg {
width: 100%;
overflow: visible;
- fill: var(--primary-text-color);
+ fill: var(--sc-primary-text-color);
}
.arrow-icon {
diff --git a/beam/themes/beam.css b/beam/themes/beam.css
index 1f84b610..6b6ab25c 100644
--- a/beam/themes/beam.css
+++ b/beam/themes/beam.css
@@ -280,4 +280,28 @@ body {
margin: 0.625rem 0;
}
-/* new, revised styles */
+/* Vue Toast Notifictations Overrides */
+
+.v-toast__item {
+ border-radius: 0;
+ color: white;
+ font-family: var(--sc-font-family);
+}
+.v-toast__item--success {
+ background-color: var(--sc-brand-success);
+ color: white;
+}
+.v-toast__item--info {
+ background-color: var(--sc-primary-text-color);
+}
+.v-toast__item--warning {
+ background-color: var(--sc-brand-warning);
+ color: white;
+}
+.v-toast__item--error {
+ background-color: var(--sc-brand-danger);
+ color: white;
+}
+.v-toast__item--default {
+ background-color: var(--sc-primary-text-color);
+}
diff --git a/common/changes/@stonecrop/beam/feat-beam-toast-notify_2024-10-28-18-12.json b/common/changes/@stonecrop/beam/feat-beam-toast-notify_2024-10-28-18-12.json
new file mode 100644
index 00000000..17a0a946
--- /dev/null
+++ b/common/changes/@stonecrop/beam/feat-beam-toast-notify_2024-10-28-18-12.json
@@ -0,0 +1,10 @@
+{
+ "changes": [
+ {
+ "packageName": "@stonecrop/beam",
+ "comment": "added toast notifications",
+ "type": "none"
+ }
+ ],
+ "packageName": "@stonecrop/beam"
+}
\ No newline at end of file
diff --git a/common/changes/@stonecrop/themes/feat-beam-toast-notify_2024-10-28-18-12.json b/common/changes/@stonecrop/themes/feat-beam-toast-notify_2024-10-28-18-12.json
new file mode 100644
index 00000000..325209a7
--- /dev/null
+++ b/common/changes/@stonecrop/themes/feat-beam-toast-notify_2024-10-28-18-12.json
@@ -0,0 +1,10 @@
+{
+ "changes": [
+ {
+ "packageName": "@stonecrop/themes",
+ "comment": "added warning color variable",
+ "type": "none"
+ }
+ ],
+ "packageName": "@stonecrop/themes"
+}
\ No newline at end of file
diff --git a/common/config/rush/browser-approved-packages.json b/common/config/rush/browser-approved-packages.json
index 0aae1fd2..c85b1f19 100644
--- a/common/config/rush/browser-approved-packages.json
+++ b/common/config/rush/browser-approved-packages.json
@@ -270,6 +270,10 @@
"name": "vue-template-compiler",
"allowedCategories": [ "prototype" ]
},
+ {
+ "name": "vue-toast-notification",
+ "allowedCategories": [ "prototype" ]
+ },
{
"name": "xstate",
"allowedCategories": [ "prototype" ]
diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml
index 799aae03..4a4a0c35 100644
--- a/common/config/rush/pnpm-lock.yaml
+++ b/common/config/rush/pnpm-lock.yaml
@@ -396,6 +396,9 @@ importers:
vue:
specifier: ^3.5.6
version: 3.5.6(typescript@5.6.2)
+ vue-toast-notification:
+ specifier: ^3
+ version: 3.1.3(vue@3.5.6)
xstate:
specifier: ^4.38.3
version: 4.38.3
@@ -6063,6 +6066,15 @@ packages:
'@vue/devtools-api': 6.6.4
vue: 3.5.6(typescript@5.6.2)
+ /vue-toast-notification@3.1.3(vue@3.5.6):
+ resolution: {integrity: sha512-XNyWqwLIGBFfX5G9sK+clq3N3IPlhDjzNdbZaXkEElcotPlWs0wWZailk1vqhdtLYT/93Y4FHAVuzyatLmPZRA==}
+ engines: {node: '>=12.15.0'}
+ peerDependencies:
+ vue: ^3.0
+ dependencies:
+ vue: 3.5.6(typescript@5.6.2)
+ dev: false
+
/vue@3.5.6(typescript@5.6.2):
resolution: {integrity: sha512-zv+20E2VIYbcJOzJPUWp03NOGFhMmpCKOfSxVTmCYyYFFko48H9tmuQFzYj7tu4qX1AeXlp9DmhIP89/sSxxhw==}
peerDependencies:
diff --git a/examples/beam/components.story.vue b/examples/beam/components.story.vue
index 9a6d05f4..9367b217 100644
--- a/examples/beam/components.story.vue
+++ b/examples/beam/components.story.vue
@@ -1,6 +1,6 @@
-
-
+
+
WO#2024-01-00001 Ambrosia Pie
@@ -29,7 +29,8 @@
-
+
+
@@ -45,7 +46,8 @@
-
+
+
This is the Beam Heading. And this should not be bold.
@@ -58,10 +60,12 @@
aut, facere, minim dignissim conubia blanditiis doloribus ex montes vitae exercitation.
-
+
+
Click
-
+
+
diff --git a/examples/beam/default.story.vue b/examples/beam/default.story.vue
index c7018dea..5dcf39fe 100644
--- a/examples/beam/default.story.vue
+++ b/examples/beam/default.story.vue
@@ -49,7 +49,44 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Items to Receive
+
+ Show Notification
+
+
+
+
@@ -85,6 +122,8 @@
+
+
diff --git a/examples/package.json b/examples/package.json
index 850066f1..90eb4acf 100644
--- a/examples/package.json
+++ b/examples/package.json
@@ -35,6 +35,7 @@
"miragejs": "^0.1.47",
"vite": "^5.4.5",
"vue": "^3.5.6",
+ "vue-toast-notification": "^3",
"xstate": "^4.38.3"
},
"devDependencies": {
diff --git a/themes/default/_variables.css b/themes/default/_variables.css
index 5f3ebbf7..8bec2fb3 100644
--- a/themes/default/_variables.css
+++ b/themes/default/_variables.css
@@ -17,6 +17,7 @@
/* Warnings/Alerts/Success */
--sc-brand-danger: #e63c28;
--sc-brand-success: #155724;
+ --sc-brand-warning: #b99d3e;
/* Table Colors */
--sc-active-cell-background: #ffffff;