@7shifts/sous-chef 3.89.4 → 3.89.5

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.
@@ -3,6 +3,7 @@ import { TimeFormat } from '../../../forms/TimeField/types';
3
3
  export type ProviderConfigContextType = {
4
4
  country: CountryCode;
5
5
  timeFormat: TimeFormat;
6
+ theme: 'light' | 'dark';
6
7
  };
7
8
  declare const ProviderConfigContext: import("react").Context<ProviderConfigContextType>;
8
9
  export declare const useProviderConfig: () => ProviderConfigContextType;
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Don't use this hook directly. This is meant to be used internally by the SousChefProvider
3
+ * To access the current theme, use the useProviderConfig hook instead
4
+ */
5
+ export declare const useTheme: () => "light" | "dark";
package/dist/index.css CHANGED
@@ -429,6 +429,11 @@ body {
429
429
  color: var(--color-surface-on-color);
430
430
  background-color: var(--color-surface-color-dim) !important;
431
431
  }
432
+
433
+ body * {
434
+ scrollbar-width: thin;
435
+ scrollbar-color: var(--color-neutral-black-transparent-50) transparent;
436
+ }
432
437
  ._GFHBy {
433
438
  display: flex;
434
439
  }
@@ -1738,15 +1743,19 @@ h5._i2LHD {
1738
1743
  }
1739
1744
  ._2An1I {
1740
1745
  background-color: var(--color-warning-color);
1746
+ color: var(--color-warning-on-color);
1741
1747
  }
1742
1748
  ._-Bw8L {
1743
1749
  background-color: var(--color-danger-color);
1750
+ color: var(--color-danger-on-color);
1744
1751
  }
1745
1752
  ._RxlMz {
1746
1753
  background-color: var(--color-success-color);
1754
+ color: var(--color-success-on-color);
1747
1755
  }
1748
1756
  ._dzCH- {
1749
1757
  background-color: var(--color-info-color);
1758
+ color: var(--color-info-on-color);
1750
1759
  }
1751
1760
  ._Ix9tP {
1752
1761
  font-variant-numeric: tabular-nums;