@vrobots/storybook 0.2.15 → 0.2.17
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/dist/package.json
CHANGED
|
@@ -7,7 +7,7 @@ export const Menu = forwardRef(({ label, menuItems, selected = '', onClick, }, r
|
|
|
7
7
|
const frameworks = React.useMemo(() => createListCollection({
|
|
8
8
|
items: menuItems || [],
|
|
9
9
|
}), [menuItems]);
|
|
10
|
-
const selectedColorSchema = useSelectedColorSchema(
|
|
10
|
+
const selectedColorSchema = useSelectedColorSchema();
|
|
11
11
|
const handleValueChange = (details) => {
|
|
12
12
|
const value = details.value[0];
|
|
13
13
|
onClick?.(value);
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const useSelectedColorSchema: (_color: TColor) => {
|
|
1
|
+
export declare const useSelectedColorSchema: () => {
|
|
3
2
|
color: string;
|
|
4
|
-
bgColor:
|
|
3
|
+
bgColor: {
|
|
4
|
+
_light: string;
|
|
5
|
+
_dark: string;
|
|
6
|
+
};
|
|
5
7
|
boxShadow: string;
|
|
6
8
|
};
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
export const useSelectedColorSchema = (_color) => {
|
|
3
|
-
const { colorMode } = useColorMode();
|
|
1
|
+
export const useSelectedColorSchema = () => {
|
|
4
2
|
return {
|
|
5
3
|
color: 'neu.text',
|
|
6
|
-
bgColor:
|
|
4
|
+
bgColor: { _light: 'neu.bg', _dark: 'neu.surface' },
|
|
7
5
|
boxShadow: 'neuInset',
|
|
8
6
|
};
|
|
9
7
|
};
|