@zydon/common 2.3.78 → 2.3.79

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.
@@ -10,7 +10,7 @@ import * as _mui_x_date_pickers_internals from '@mui/x-date-pickers/internals';
10
10
  import * as _mui_styled_engine from '@mui/styled-engine';
11
11
  import * as _mui_material_styles_overrides from '@mui/material/styles/overrides';
12
12
  import * as _mui_material from '@mui/material';
13
- import { a as ThemeColorScheme } from '../../types-1b2e3959.js';
13
+ import { T as ThemeColorScheme } from '../../types-dd2ed906.js';
14
14
  import { ColorSystemOptions, Shadows } from '@mui/material/styles';
15
15
  import { TypographyOptions } from '@mui/material/styles/createTypography';
16
16
 
@@ -1,6 +1,6 @@
1
1
  import * as _mui_material_styles from '@mui/material/styles';
2
2
  import { Components, Theme } from '@mui/material/styles';
3
- import { T as ThemeUpdateOptions } from '../../types-1b2e3959.js';
3
+ import { a as ThemeUpdateOptions } from '../../types-dd2ed906.js';
4
4
  import '@mui/material/styles/createTypography';
5
5
 
6
6
  type SettingsState = {
@@ -6,4 +6,4 @@ type ThemeUpdateOptions = Omit<CssVarsThemeOptions, 'typography'> & {
6
6
  };
7
7
  type ThemeColorScheme = 'light' | 'dark';
8
8
 
9
- export { ThemeUpdateOptions as T, ThemeColorScheme as a };
9
+ export { ThemeColorScheme as T, ThemeUpdateOptions as a };
@@ -1,5 +1,11 @@
1
- export * from '@dnd-kit/accessibility';
1
+ import { Active, Over } from '@dnd-kit/core';
2
2
  export * from '@dnd-kit/core';
3
+ export * from '@dnd-kit/accessibility';
3
4
  export * from '@dnd-kit/modifiers';
4
5
  export * from '@dnd-kit/sortable';
5
6
  export * from '@dnd-kit/utilities';
7
+
8
+ declare const getData: <T>(data: Active | Over | undefined, propName: string) => T | undefined;
9
+ declare const getIndex: (data: Active | Over | undefined) => number;
10
+
11
+ export { getData, getIndex };
package/dist/utils/dnd.js CHANGED
@@ -1,9 +1,9 @@
1
1
  export { x as CSS, r as add, b as canUseDOM, y as findFirstFocusableNode, w as getEventCoordinates, i as getOwnerDocument, e as getWindow, t as hasViewportRelativeCoordinates, f as isDocument, g as isHTMLElement, u as isKeyboardEvent, d as isNode, h as isSVGElement, v as isTouchEvent, c as isWindow, s as subtract, a as useCombinedRefs, k as useEvent, l as useInterval, j as useIsomorphicLayoutEffect, m as useLatestValue, n as useLazyMemo, o as useNodeRef, p as usePrevious, q as useUniqueId } from '../chunk-2P4CXK3O.js';
2
- import o, { useState, useCallback } from 'react';
2
+ import i, { useState, useCallback } from 'react';
3
3
  export * from '@dnd-kit/core';
4
4
  export * from '@dnd-kit/modifiers';
5
5
  export * from '@dnd-kit/sortable';
6
6
 
7
- var d={display:"none"};function B(e){let{id:n,value:t}=e;return o.createElement("div",{id:n,style:d},t)}function D(e){let{id:n,announcement:t,ariaLiveType:i="assertive"}=e,r={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return o.createElement("div",{id:n,style:r,role:"status","aria-live":i,"aria-atomic":!0},t)}function F(){let[e,n]=useState("");return {announce:useCallback(i=>{i!=null&&n(i);},[]),announcement:e}}
7
+ var c={display:"none"};function q(e){let{id:n,value:t}=e;return i.createElement("div",{id:n,style:c},t)}function z(e){let{id:n,announcement:t,ariaLiveType:r="assertive"}=e,o={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return i.createElement("div",{id:n,style:o,role:"status","aria-live":r,"aria-atomic":!0},t)}function B(){let[e,n]=useState("");return {announce:useCallback(r=>{r!=null&&n(r);},[]),announcement:e}}var u=(e,n)=>{if(e?.data?.current)return e.data.current[n]},G=e=>u(e,"index")||0;
8
8
 
9
- export { B as HiddenText, D as LiveRegion, F as useAnnouncement };
9
+ export { q as HiddenText, z as LiveRegion, u as getData, G as getIndex, B as useAnnouncement };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zydon/common",
3
- "version": "2.3.78",
3
+ "version": "2.3.79",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "module": "./dist/index.js",