@7shifts/sous-chef 3.87.2-beta.0 → 3.87.2-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.
@@ -0,0 +1,15 @@
1
+ import { RefObject } from 'react';
2
+ type Params = {
3
+ ref: RefObject<HTMLElement>;
4
+ shouldCheck: boolean;
5
+ };
6
+ /**
7
+ * This hook checks the background color of the container element
8
+ * and determines if it's dark or light. It climbs up the DOM tree
9
+ * to find the first ancestor with a non-transparent background color.
10
+ *
11
+ * NOTE: Use this hook only when necessary, as it involves DOM access
12
+ * and may impact performance.
13
+ */
14
+ export declare const useContainerBackgroundColorCheck: ({ ref, shouldCheck }: Params) => "dark" | "light" | undefined;
15
+ export {};
package/dist/index.css CHANGED
@@ -1110,6 +1110,9 @@ Just for future references:
1110
1110
  color: var(--color-surface-on-color);
1111
1111
  text-decoration: underline;
1112
1112
  }
1113
+ ._weJDR {
1114
+ color: var(--color-surface-on-inverse);
1115
+ }
1113
1116
  ._sp-pT {
1114
1117
  position: absolute;
1115
1118
  list-style: none;