@leaflink/stash 43.5.0 → 44.0.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leaflink/stash",
3
- "version": "43.5.0",
3
+ "version": "44.0.0-beta.1",
4
4
  "description": "LeafLink's design system.",
5
5
  "homepage": "https://stash.leaflink.com",
6
6
  "main": "./dist/index.ts",
package/styles/_core.scss CHANGED
@@ -615,6 +615,10 @@ $typography: (
615
615
  @return get($typography, $keys...);
616
616
  }
617
617
 
618
+ @function hexToRGB($hexColor) {
619
+ @return "#{red($hexColor)},#{green($hexColor)},#{blue($hexColor)}";
620
+ }
621
+
618
622
  $properties: (
619
623
  "line-height": "line-height",
620
624
  "size": "font-size",
@@ -721,6 +725,50 @@ $inputs: (
721
725
  }
722
726
 
723
727
 
728
+ @mixin solid {
729
+ background-color: rgba(var(--button-color-rgb), var(--button-opacity, 1));
730
+ border-color: transparent;
731
+ color: rgba(var(--text-color-rgb), 1);
732
+
733
+ &:hover,
734
+ &:active {
735
+ --button-opacity: 0.75;
736
+ }
737
+
738
+ &[disabled] {
739
+ --button-color-rgb: #{ hexToRGB($ice) } !important;
740
+ }
741
+ }
742
+
743
+ @mixin ghost {
744
+ background-color: rgba(0, 0, 0, 0);
745
+ border-color: rgba(var(--button-color-rgb), 1);
746
+ color: rgba(var(--text-color-rgb), 1);
747
+
748
+ &:hover,
749
+ &:active {
750
+ background-color: rgba(var(--button-hover-color-rgb, var(--button-color-rgb)), .12);
751
+ }
752
+
753
+ &[disabled] {
754
+ --button-color-rgb: #{ hexToRGB($ice) } !important;
755
+ --text-color-rgb: #{ hexToRGB($ice) } !important;
756
+ }
757
+ }
758
+
759
+ @mixin color-overrides($hex-color) {
760
+ &.button--primary,
761
+ &.button--secondary {
762
+ --button-color-rgb: #{ hexToRGB($hex-color) };
763
+ }
764
+
765
+ &.button--secondary {
766
+ --text-color-rgb: #{ hexToRGB($hex-color) };
767
+ --button-hover-color-rgb: #{ hexToRGB($hex-color) };
768
+ }
769
+ }
770
+
771
+
724
772
  /* ---------------------------------------
725
773
  Grid
726
774
  ---------------------------------------- */