@zydon/common 2.8.52 → 2.8.53

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,25 @@
1
+ import * as _emotion_styled from '@emotion/styled';
2
+ import * as react from 'react';
3
+ import * as _mui_system from '@mui/system';
4
+ import * as _mui_material_styles from '@mui/material/styles';
5
+ import { DraggableAttributes } from '@dnd-kit/core';
6
+ import { Transform } from '@dnd-kit/utilities';
7
+ import { BoxProps } from '@mui/material/Box';
8
+
9
+ interface SortableStyleProps extends BoxProps {
10
+ transform: Transform | null;
11
+ transition?: string;
12
+ isDragging: boolean;
13
+ tabIndex?: number;
14
+ role?: string;
15
+ 'aria-describedby'?: string;
16
+ 'aria-disabled'?: boolean;
17
+ 'aria-pressed'?: boolean | undefined;
18
+ 'aria-roledescription'?: string;
19
+ }
20
+
21
+ declare const DragContainer: _emotion_styled.StyledComponent<_mui_system.BoxOwnProps<_mui_material_styles.Theme> & Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
22
+ ref?: ((instance: HTMLDivElement | null) => void) | react.RefObject<HTMLDivElement> | null | undefined;
23
+ }, keyof _mui_system.BoxOwnProps<_mui_material_styles.Theme>> & _mui_system.MUIStyledCommonProps<_mui_material_styles.Theme> & SortableStyleProps & Partial<DraggableAttributes>, {}, {}>;
24
+
25
+ export { DragContainer as default };
@@ -0,0 +1,8 @@
1
+ import { CSS } from '@dnd-kit/utilities';
2
+ import i from '@mui/material/Box';
3
+ import { styled, alpha } from '@mui/material/styles';
4
+
5
+ var t=styled(i,{shouldForwardProp:r=>r!=="transform"&&r!=="transition"&&r!=="isDragging"})(({theme:r,transform:a=null,transition:e="",isDragging:o=!1})=>({transform:CSS.Transform.toString(a),transition:e,boxShadow:o?`0 0 0 2px ${r.palette.primary.main}, ${r.customShadows.z8}, inset 0 0 0 1000px ${alpha(r.palette.primary.main,.06)}`:void 0,background:r.palette.background.paper,borderRadius:8,userSelect:"none",zIndex:o?1200:0}));var b=t;
6
+
7
+ export { b as default };
8
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/DragContainer/style.ts","../../../src/components/DragContainer/index.ts"],"names":["CSS","Box","alpha","styled","DragContainer","prop","theme","transform","transition","isDragging","DragContainer_default"],"mappings":"AACA,OAAS,OAAAA,MAAW,qBACpB,OAAOC,MAAS,oBAChB,OAAS,SAAAC,EAAO,UAAAC,MAAc,uBAIvB,IAAMC,EAAgBD,EAAOF,EAAK,CACvC,kBAAmBI,GACjBA,IAAS,aAAeA,IAAS,cAAgBA,IAAS,YAC9D,CAAC,EACC,CAAC,CAAE,MAAAC,EAAO,UAAAC,EAAY,KAAM,WAAAC,EAAa,GAAI,WAAAC,EAAa,EAAM,KAAO,CACrE,UAAWT,EAAI,UAAU,SAASO,CAAS,EAC3C,WAAAC,EACA,UAAWC,EACP,aAAaH,EAAM,QAAQ,QAAQ,SAASA,EAAM,cAAc,0BAA0BJ,EAAMI,EAAM,QAAQ,QAAQ,KAAM,GAAI,IAChI,OACJ,WAAYA,EAAM,QAAQ,WAAW,MACrC,aAAc,EACd,WAAY,OACZ,OAAQG,EAAa,KAAO,CAC9B,EACF,ECpBA,IAAOC,EAAQN","sourcesContent":["import { DraggableAttributes } from '@dnd-kit/core';\nimport { CSS } from '@dnd-kit/utilities';\nimport Box from '@mui/material/Box';\nimport { alpha, styled } from '@mui/material/styles';\n\nimport { SortableStyleProps } from './props';\n\nexport const DragContainer = styled(Box, {\n shouldForwardProp: prop =>\n prop !== 'transform' && prop !== 'transition' && prop !== 'isDragging',\n})<SortableStyleProps & Partial<DraggableAttributes>>(\n ({ theme, transform = null, transition = '', isDragging = false }) => ({\n transform: CSS.Transform.toString(transform),\n transition,\n boxShadow: isDragging\n ? `0 0 0 2px ${theme.palette.primary.main}, ${theme.customShadows.z8}, inset 0 0 0 1000px ${alpha(theme.palette.primary.main, 0.06)}`\n : undefined,\n background: theme.palette.background.paper,\n borderRadius: 8,\n userSelect: 'none',\n zIndex: isDragging ? 1200 : 0,\n }),\n);\n","import { DragContainer } from './style';\n\nexport default DragContainer;\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zydon/common",
3
- "version": "2.8.52",
3
+ "version": "2.8.53",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "module": "./dist/index.js",