@xyo-network/react-shared 2.26.51 → 2.26.52

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.
@@ -4,5 +4,5 @@ import { ListMode } from '../../models';
4
4
  export interface ListModeProviderProps {
5
5
  defaultListMode?: ListMode;
6
6
  }
7
- export declare const ViewModeProvider: React.FC<WithChildren<ListModeProviderProps>>;
7
+ export declare const ListModeProvider: React.FC<WithChildren<ListModeProviderProps>>;
8
8
  //# sourceMappingURL=Provider.d.ts.map
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { useState } from 'react';
3
3
  import { ListModeContext } from './Context';
4
- export const ViewModeProvider = ({ children, defaultListMode }) => {
4
+ export const ListModeProvider = ({ children, defaultListMode }) => {
5
5
  const [listMode, setListMode] = useState(defaultListMode);
6
6
  return (_jsx(ListModeContext.Provider, { value: {
7
7
  listMode,
@@ -3,6 +3,6 @@ import { ListMode } from '../../models';
3
3
  import { ContextExState } from '../contextEx';
4
4
  export interface ListModeContextState extends ContextExState {
5
5
  listMode?: ListMode;
6
- setListMode?: Dispatch<ListMode>;
6
+ setListMode?: Dispatch<ListMode | undefined>;
7
7
  }
8
8
  //# sourceMappingURL=State.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"State.d.ts","sourceRoot":"","sources":["../../../../src/contexts/ListMode/State.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAEhC,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAA;AACvC,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAE7C,MAAM,WAAW,oBAAqB,SAAQ,cAAc;IAC1D,QAAQ,CAAC,EAAE,QAAQ,CAAA;IACnB,WAAW,CAAC,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAAA;CACjC"}
1
+ {"version":3,"file":"State.d.ts","sourceRoot":"","sources":["../../../../src/contexts/ListMode/State.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAEhC,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAA;AACvC,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAE7C,MAAM,WAAW,oBAAqB,SAAQ,cAAc;IAC1D,QAAQ,CAAC,EAAE,QAAQ,CAAA;IACnB,WAAW,CAAC,EAAE,QAAQ,CAAC,QAAQ,GAAG,SAAS,CAAC,CAAA;CAC7C"}
package/package.json CHANGED
@@ -34,7 +34,7 @@
34
34
  "@xylabs/pixel": "^1.4.5",
35
35
  "@xylabs/tsconfig-dom": "^2.5.11",
36
36
  "@xyo-network/api": "^2.22.25",
37
- "@xyo-network/react-storybook": "^2.26.51"
37
+ "@xyo-network/react-storybook": "^2.26.52"
38
38
  },
39
39
  "browser": "dist/esm/index.js",
40
40
  "docs": "dist/docs.json",
@@ -85,5 +85,5 @@
85
85
  },
86
86
  "sideEffects": false,
87
87
  "types": "dist/esm/index.d.ts",
88
- "version": "2.26.51"
88
+ "version": "2.26.52"
89
89
  }
@@ -8,7 +8,7 @@ export interface ListModeProviderProps {
8
8
  defaultListMode?: ListMode
9
9
  }
10
10
 
11
- export const ViewModeProvider: React.FC<WithChildren<ListModeProviderProps>> = ({ children, defaultListMode }) => {
11
+ export const ListModeProvider: React.FC<WithChildren<ListModeProviderProps>> = ({ children, defaultListMode }) => {
12
12
  const [listMode, setListMode] = useState(defaultListMode)
13
13
 
14
14
  return (
@@ -5,5 +5,5 @@ import { ContextExState } from '../contextEx'
5
5
 
6
6
  export interface ListModeContextState extends ContextExState {
7
7
  listMode?: ListMode
8
- setListMode?: Dispatch<ListMode>
8
+ setListMode?: Dispatch<ListMode | undefined>
9
9
  }