react-science 19.3.0 → 19.3.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.
Files changed (35) hide show
  1. package/lib/components/form/components/input/switch.d.ts +1 -1
  2. package/lib/components/form/components/input/switch.d.ts.map +1 -1
  3. package/lib/components/form/components/input_groups/form.d.ts +1 -4
  4. package/lib/components/form/components/input_groups/form.d.ts.map +1 -1
  5. package/lib/components/form/components/input_groups/form.js +2 -8
  6. package/lib/components/form/components/input_groups/form.js.map +1 -1
  7. package/lib/components/form/components/input_groups/form_context.d.ts +8 -0
  8. package/lib/components/form/components/input_groups/form_context.d.ts.map +1 -0
  9. package/lib/components/form/components/input_groups/form_context.js +8 -0
  10. package/lib/components/form/components/input_groups/form_context.js.map +1 -0
  11. package/lib/components/form/components/input_groups/form_group.d.ts +1 -1
  12. package/lib/components/form/components/input_groups/form_group.d.ts.map +1 -1
  13. package/lib/components/form/components/input_groups/form_group.js +5 -3
  14. package/lib/components/form/components/input_groups/form_group.js.map +1 -1
  15. package/lib/components/table/reorder_rows/draggable_row_tr.js +1 -1
  16. package/lib/components/table/reorder_rows/draggable_row_tr.js.map +1 -1
  17. package/lib/components/table/reorder_rows/item_order_provider.d.ts.map +1 -1
  18. package/lib/components/table/reorder_rows/item_order_provider.js +1 -1
  19. package/lib/components/table/reorder_rows/item_order_provider.js.map +1 -1
  20. package/lib/components/table/reorder_rows/use_drop_monitor.d.ts.map +1 -1
  21. package/lib/components/table/reorder_rows/use_drop_monitor.js +1 -1
  22. package/lib/components/table/reorder_rows/use_drop_monitor.js.map +1 -1
  23. package/package.json +2 -1
  24. package/src/components/form/components/input/switch.tsx +1 -1
  25. package/src/components/form/components/input_groups/form.tsx +3 -11
  26. package/src/components/form/components/input_groups/form_context.ts +11 -0
  27. package/src/components/form/components/input_groups/form_group.tsx +7 -4
  28. package/src/components/table/reorder_rows/draggable_row_tr.tsx +4 -4
  29. package/src/components/table/reorder_rows/item_order_provider.tsx +1 -2
  30. package/src/components/table/reorder_rows/use_drop_monitor.ts +4 -4
  31. package/lib/components/pdnd.cjs +0 -29
  32. package/lib/components/pdnd.cjs.map +0 -1
  33. package/lib/components/pdnd.d.cts +0 -10
  34. package/lib/components/pdnd.d.cts.map +0 -1
  35. package/src/components/pdnd.cts +0 -20
@@ -1,4 +1,4 @@
1
- import type { Layout } from '../input_groups/form.js';
1
+ import type { Layout } from '../input_groups/form_context.js';
2
2
  interface SwitchProps {
3
3
  label?: string;
4
4
  helpText?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"switch.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/components/input/switch.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAGtD,UAAU,WAAW;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AASD,wBAAgB,MAAM,CAAC,KAAK,EAAE,WAAW,2CAgCxC"}
1
+ {"version":3,"file":"switch.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/components/input/switch.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAC;AAG9D,UAAU,WAAW;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AASD,wBAAgB,MAAM,CAAC,KAAK,EAAE,WAAW,2CAgCxC"}
@@ -1,11 +1,8 @@
1
1
  import type { FormHTMLAttributes, ReactNode } from 'react';
2
- export type Layout = 'inline' | 'stacked';
2
+ import type { Layout } from './form_context.js';
3
3
  export interface FormProps extends FormHTMLAttributes<HTMLFormElement> {
4
4
  children: ReactNode;
5
5
  layout?: Layout;
6
6
  }
7
- export declare function useFormContext(): {
8
- layout: Layout;
9
- };
10
7
  export declare function Form(props: FormProps): import("react/jsx-runtime").JSX.Element;
11
8
  //# sourceMappingURL=form.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/components/input_groups/form.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAG3D,MAAM,MAAM,MAAM,GAAG,QAAQ,GAAG,SAAS,CAAC;AAE1C,MAAM,WAAW,SAAU,SAAQ,kBAAkB,CAAC,eAAe,CAAC;IACpE,QAAQ,EAAE,SAAS,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAOD,wBAAgB,cAAc;YALc,MAAM;EAOjD;AAED,wBAAgB,IAAI,CAAC,KAAK,EAAE,SAAS,2CAYpC"}
1
+ {"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/components/input_groups/form.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAG3D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAGhD,MAAM,WAAW,SAAU,SAAQ,kBAAkB,CAAC,eAAe,CAAC;IACpE,QAAQ,EAAE,SAAS,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,wBAAgB,IAAI,CAAC,KAAK,EAAE,SAAS,2CAYpC"}
@@ -1,12 +1,6 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import { createContext, useContext, useMemo } from 'react';
3
- const formContext = createContext({
4
- layout: 'stacked',
5
- });
6
- // eslint-disable-next-line react-refresh/only-export-components
7
- export function useFormContext() {
8
- return useContext(formContext);
9
- }
2
+ import { useMemo } from 'react';
3
+ import { formContext } from './form_context.js';
10
4
  export function Form(props) {
11
5
  const { children, layout = 'stacked', ...otherProps } = props;
12
6
  const contextValue = useMemo(() => {
@@ -1 +1 @@
1
- {"version":3,"file":"form.js","sourceRoot":"","sources":["../../../../../src/components/form/components/input_groups/form.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAS3D,MAAM,WAAW,GAAG,aAAa,CAAqB;IACpD,MAAM,EAAE,SAAS;CAClB,CAAC,CAAC;AAEH,gEAAgE;AAChE,MAAM,UAAU,cAAc;IAC5B,OAAO,UAAU,CAAC,WAAW,CAAC,CAAC;AACjC,CAAC;AAED,MAAM,UAAU,IAAI,CAAC,KAAgB;IACnC,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,SAAS,EAAE,GAAG,UAAU,EAAE,GAAG,KAAK,CAAC;IAE9D,MAAM,YAAY,GAAG,OAAO,CAAC,GAAG,EAAE;QAChC,OAAO,EAAE,MAAM,EAAE,CAAC;IACpB,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC;IAEb,OAAO,CACL,KAAC,WAAW,CAAC,QAAQ,IAAC,KAAK,EAAE,YAAY,YACvC,kBAAU,UAAU,YAAG,QAAQ,GAAQ,GAClB,CACxB,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"form.js","sourceRoot":"","sources":["../../../../../src/components/form/components/input_groups/form.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAGhC,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAOhD,MAAM,UAAU,IAAI,CAAC,KAAgB;IACnC,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,SAAS,EAAE,GAAG,UAAU,EAAE,GAAG,KAAK,CAAC;IAE9D,MAAM,YAAY,GAAG,OAAO,CAAC,GAAG,EAAE;QAChC,OAAO,EAAE,MAAM,EAAE,CAAC;IACpB,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC;IAEb,OAAO,CACL,KAAC,WAAW,CAAC,QAAQ,IAAC,KAAK,EAAE,YAAY,YACvC,kBAAU,UAAU,YAAG,QAAQ,GAAQ,GAClB,CACxB,CAAC;AACJ,CAAC"}
@@ -0,0 +1,8 @@
1
+ export type Layout = 'inline' | 'stacked';
2
+ export declare const formContext: import("react").Context<{
3
+ layout: Layout;
4
+ }>;
5
+ export declare function useFormContext(): {
6
+ layout: Layout;
7
+ };
8
+ //# sourceMappingURL=form_context.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"form_context.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/components/input_groups/form_context.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,MAAM,GAAG,QAAQ,GAAG,SAAS,CAAC;AAE1C,eAAO,MAAM,WAAW;YAA2B,MAAM;EAEvD,CAAC;AAEH,wBAAgB,cAAc;YAJqB,MAAM;EAMxD"}
@@ -0,0 +1,8 @@
1
+ import { createContext, useContext } from 'react';
2
+ export const formContext = createContext({
3
+ layout: 'stacked',
4
+ });
5
+ export function useFormContext() {
6
+ return useContext(formContext);
7
+ }
8
+ //# sourceMappingURL=form_context.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"form_context.js","sourceRoot":"","sources":["../../../../../src/components/form/components/input_groups/form_context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAIlD,MAAM,CAAC,MAAM,WAAW,GAAG,aAAa,CAAqB;IAC3D,MAAM,EAAE,SAAS;CAClB,CAAC,CAAC;AAEH,MAAM,UAAU,cAAc;IAC5B,OAAO,UAAU,CAAC,WAAW,CAAC,CAAC;AACjC,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import type { Intent } from '@blueprintjs/core';
2
2
  import type { ReactNode } from 'react';
3
- import type { Layout } from './form.js';
3
+ import type { Layout } from './form_context.js';
4
4
  export interface FormGroupInputProps {
5
5
  label?: string;
6
6
  required?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"form_group.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/components/input_groups/form_group.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAGhD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAsDxC,MAAM,WAAW,mBAAmB;IAClC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,UAAU,cAAc;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,wBAAgB,SAAS,CAAC,KAAK,EAAE,cAAc,2CA6C9C"}
1
+ {"version":3,"file":"form_group.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/components/input_groups/form_group.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAGhD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAsDhD,MAAM,WAAW,mBAAmB;IAClC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,UAAU,cAAc;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,wBAAgB,SAAS,CAAC,KAAK,EAAE,cAAc,2CAgD9C"}
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { Classes } from '@blueprintjs/core';
3
3
  import styled from '@emotion/styled';
4
- import { useFormContext } from './form.js';
4
+ import { useFormContext } from './form_context.js';
5
5
  const INPUT_HEIGHT = 30;
6
6
  const FormContainer = styled.div `
7
7
  min-height: ${INPUT_HEIGHT}px;
@@ -38,8 +38,10 @@ const ErrorAndHelpText = styled.div `
38
38
  flex-direction: column;
39
39
  `;
40
40
  export function FormGroup(props) {
41
- const { label, intent, name, required, children, helpText, error, layout, fullWidth = false, } = props;
41
+ const { label, intent = 'none', name, required, children, helpText, error, layout, fullWidth = false, } = props;
42
42
  const { layout: formLayout } = useFormContext();
43
- return (_jsxs(FormContainer, { layout: layout || formLayout, className: `${Classes.FORM_GROUP} ${Classes.intentClass(intent)}`, children: [label && (_jsxs(Label, { layout: layout || formLayout, className: Classes.LABEL, htmlFor: name, children: [label, ' ', required && (_jsx(RequiredSpan, { className: Classes.TEXT_MUTED, children: "*" }))] })), _jsxs(ContainerElement, { fullWidth: fullWidth, layout: layout || formLayout, children: [children, _jsxs(ErrorAndHelpText, { children: [helpText && (_jsx("span", { className: Classes.FORM_HELPER_TEXT, children: helpText })), error && _jsx("span", { className: Classes.FORM_HELPER_TEXT, children: error })] })] })] }));
43
+ // If intent is undefined or none intentClass will return undefined
44
+ const intentClass = Classes.intentClass(intent) ?? '';
45
+ return (_jsxs(FormContainer, { layout: layout || formLayout, className: `${Classes.FORM_GROUP} ${intentClass}`, children: [label && (_jsxs(Label, { layout: layout || formLayout, className: Classes.LABEL, htmlFor: name, children: [label, ' ', required && (_jsx(RequiredSpan, { className: Classes.TEXT_MUTED, children: "*" }))] })), _jsxs(ContainerElement, { fullWidth: fullWidth, layout: layout || formLayout, children: [children, _jsxs(ErrorAndHelpText, { children: [helpText && (_jsx("span", { className: Classes.FORM_HELPER_TEXT, children: helpText })), error && _jsx("span", { className: Classes.FORM_HELPER_TEXT, children: error })] })] })] }));
44
46
  }
45
47
  //# sourceMappingURL=form_group.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"form_group.js","sourceRoot":"","sources":["../../../../../src/components/form/components/input_groups/form_group.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAIrC,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAE3C,MAAM,YAAY,GAAG,EAAE,CAAC;AAExB,MAAM,aAAa,GAAG,MAAM,CAAC,GAAG,CAE9B;gBACc,YAAY;;;;2BAID,CAAC,KAAK,EAAE,EAAE,CACjC,KAAK,CAAC,MAAM,KAAK,QAAQ,CAAC,CAAC,CAAC,yBAAyB,CAAC,CAAC,CAAC,KAAK;wBACzC,CAAC,KAAK,EAAE,EAAE,CAC9B,KAAK,CAAC,MAAM,KAAK,QAAQ,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,MAAM;CAC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C5B,SAAS,EAAE,OAAO,CAAC,KAAK,EACxB,OAAO,EAAE,IAAI,aAEZ,KAAK,EAAE,GAAG,EACV,QAAQ,IAAI,CACX,KAAC,YAAY,IAAC,SAAS,EAAE,OAAO,CAAC,UAAU,kBAAkB,CAC9D,IACK,CACT,EACD,MAAC,gBAAgB,IAAC,SAAS,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,IAAI,UAAU,aACjE,QAAQ,EAET,MAAC,gBAAgB,eACd,QAAQ,IAAI,CACX,eAAM,SAAS,EAAE,OAAO,CAAC,gBAAgB,YAAG,QAAQ,GAAQ,CAC7D,EAEA,KAAK,IAAI,eAAM,SAAS,EAAE,OAAO,CAAC,gBAAgB,YAAG,KAAK,GAAQ,IAClD,IACF,IACL,CACjB,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"form_group.js","sourceRoot":"","sources":["../../../../../src/components/form/components/input_groups/form_group.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAIrC,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD,MAAM,YAAY,GAAG,EAAE,CAAC;AAExB,MAAM,aAAa,GAAG,MAAM,CAAC,GAAG,CAE9B;gBACc,YAAY;;;;2BAID,CAAC,KAAK,EAAE,EAAE,CACjC,KAAK,CAAC,MAAM,KAAK,QAAQ,CAAC,CAAC,CAAC,yBAAyB,CAAC,CAAC,CAAC,KAAK;wBACzC,CAAC,KAAK,EAAE,EAAE,CAC9B,KAAK,CAAC,MAAM,KAAK,QAAQ,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,MAAM;CACnD,CAAC;AAEF,MAAM,YAAY,GAAG,MAAM,CAAC,IAAI,CAAA;;CAE/B,CAAC;AAEF,MAAM,gBAAgB,GAAG,MAAM,CAAC,GAAG,CAIjC;;iBAEe,CAAC,KAAK,EAAE,EAAE,CACvB,KAA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AAQ,IAAI,CACX,KAAC,YAAY,IAAC,SAAS,EAAE,OAAO,CAAC,UAAU,kBAAkB,CAC9D,IACK,CACT,EACD,MAAC,gBAAgB,IAAC,SAAS,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,IAAI,UAAU,aACjE,QAAQ,EAET,MAAC,gBAAgB,eACd,QAAQ,IAAI,CACX,eAAM,SAAS,EAAE,OAAO,CAAC,gBAAgB,YAAG,QAAQ,GAAQ,CAC7D,EAEA,KAAK,IAAI,eAAM,SAAS,EAAE,OAAO,CAAC,gBAAgB,YAAG,KAAK,GAAQ,IAClD,IACF,IACL,CACjB,CAAC;AACJ,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { attachClosestEdge, combine, draggable, dropTargetForElements, extractClosestEdge, pointerOutsideOfPreview, setCustomNativeDragPreview, } from '@zakodium/pdnd-esm';
2
3
  import { useEffect, useMemo, useRef, useState } from 'react';
3
4
  import { createPortal } from 'react-dom';
4
- import { attachClosestEdge, combine, draggable, dropTargetForElements, extractClosestEdge, pointerOutsideOfPreview, setCustomNativeDragPreview, } from '../../pdnd.cjs';
5
5
  import { assert } from '../../utils/index.js';
6
6
  import { useFlashRowEffect } from '../flash_row/use_flash_row_effect.js';
7
7
  import { PreviewTable } from '../preview_table.js';
@@ -1 +1 @@
1
- {"version":3,"file":"draggable_row_tr.js","sourceRoot":"","sources":["../../../../src/components/table/reorder_rows/draggable_row_tr.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAEzC,OAAO,EACL,iBAAiB,EACjB,OAAO,EACP,SAAS,EACT,qBAAqB,EACrB,kBAAkB,EAClB,uBAAuB,EACvB,0BAA0B,GAC3B,MAAM,gBAAgB,CAAC;AACx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CAAC;gBAClD,QAAQ,CAAC,CAAC,OAAO,EAAE,EAAE;oBACnB,IACE,OAAO,CAAC,IAAI,KAAK,SAAS;wBAC1B,OAAO,CAAC,WAAW,KAAK,WAAW,EACnC,CAAC;wBACD,OAAO,OAAO,CAAC;oBACjB,CAAC;oBACD,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,WAAW,EAAE,CAAC;gBAC1C,CAAC,CAAC,CAAC;YACL,CAAC;YACD,WAAW;gBACT,QAAQ,CAAC,SAAS,CAAC,CAAC;YACtB,CAAC;YACD,MAAM;gBACJ,QAAQ,CAAC,SAAS,CAAC,CAAC;YACtB,CAAC;SACF,CAAC,CACH,CAAC;IACJ,CAAC,EAAE,CAAC,GAAG,EAAE,UAAU,EAAE,SAAS,CAAC,CAAC,CAAC;IAEjC,iBAAiB,CAAC,GAAG,CAAC,EAAE,EAAE,WAAW,CAAC,CAAC;IAEvC,MAAM,KAAK,GAAG,OAAO,CAAsB,GAAG,EAAE;QAC9C,OAAO;YACL,aAAa;YACb,KAAK;SACN,CAAC;IACJ,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;IAEZ,OAAO,CACL,8BACE,KAAC,mBAAmB,CAAC,QAAQ,IAAC,KAAK,EAAE,KAAK,YACxC,gBAAQ,OAAO,EAAE,GAAG,EAAE,WAAW,GAAI,GACR,EAC9B,KAAK,CAAC,IAAI,KAAK,SAAS;gBACvB,YAAY,CAAC,gBAAgB,CAAC,GAAG,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,IACrD,CACJ,CAAC;AACJ,CAAC;AAED,MAAM,SAAS,GAAuB,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;AACvD,MAAM,aAAa,GAAuB,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC"}
1
+ {"version":3,"file":"draggable_row_tr.js","sourceRoot":"","sources":["../../../../src/components/table/reorder_rows/draggable_row_tr.tsx"],"names":[],"mappings":";AAEA,OAAO,EACL,iBAAiB,EACjB,OAAO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AuB,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;AACvD,MAAM,aAAa,GAAuB,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"item_order_provider.d.ts","sourceRoot":"","sources":["../../../../src/components/table/reorder_rows/item_order_provider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAQvC,UAAU,sBAAsB,CAAC,CAAC;IAChC,KAAK,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;IACrB,cAAc,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC;IAC/C,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,wBAAgB,iBAAiB,CAAC,CAAC,GAAG,OAAO,EAC3C,KAAK,EAAE,sBAAsB,CAAC,CAAC,CAAC,2CA4CjC"}
1
+ {"version":3,"file":"item_order_provider.d.ts","sourceRoot":"","sources":["../../../../src/components/table/reorder_rows/item_order_provider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAC;AAEjD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAMvC,UAAU,sBAAsB,CAAC,CAAC;IAChC,KAAK,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;IACrB,cAAc,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC;IAC/C,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,wBAAgB,iBAAiB,CAAC,CAAC,GAAG,OAAO,EAC3C,KAAK,EAAE,sBAAsB,CAAC,CAAC,CAAC,2CA4CjC"}
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { getReorderDestinationIndex, reorder } from '@zakodium/pdnd-esm';
2
3
  import { useCallback, useMemo, useState } from 'react';
3
- import { getReorderDestinationIndex, reorder } from '../../pdnd.cjs';
4
4
  import { itemOrderContext } from './item_order_context.js';
5
5
  export function ItemOrderProvider(props) {
6
6
  // Isolated instances of this component from one another
@@ -1 +1 @@
1
- {"version":3,"file":"item_order_provider.js","sourceRoot":"","sources":["../../../../src/components/table/reorder_rows/item_order_provider.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEvD,OAAO,EAAE,0BAA0B,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAGrE,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAQ3D,MAAM,UAAU,iBAAiB,CAC/B,KAAgC;IAEhC,wDAAwD;IACxD,MAAM,CAAC,UAAU,CAAC,GAAG,QAAQ,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,mBAAmB,CAAC,CAAC,CAAC;IACjE,MAAM,EAAE,KAAK,EAAE,cAAc,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;IAClD,MAAM,WAAW,GAAG,WAAW,CAC7B,CAAC,EAAE,UAAU,EAAE,aAAa,EAAE,mBAAmB,EAAE,EAAE,EAAE;QACrD,MAAM,WAAW,GAAG,0BAA0B,CAAC;YAC7C,UAAU;YACV,mBAAmB;YACnB,aAAa;YACb,IAAI,EAAE,UAAU;SACjB,CAAC,CAAC;QAEH,IAAI,WAAW,KAAK,UAAU,EAAE,CAAC;YAC/B,4CAA4C;YAC5C,OAAO;QACT,CAAC;QAED,cAAc,CACZ,OAAO,CAAC;YACN,IAAI,EAAE,KAAK;YACX,UAAU;YACV,WAAW;SACZ,CAAC,CACH,CAAC;IACJ,CAAC,EACD,CAAC,KAAK,EAAE,cAAc,CAAC,CACxB,CAAC;IAEF,MAAM,KAAK,GAAG,OAAO,CACnB,GAAG,EAAE,CAAC,CAAC;QACL,WAAW;QACX,KAAK,EAAE,KAA4B;QACnC,UAAU;KACX,CAAC,EACF,CAAC,WAAW,EAAE,KAAK,EAAE,UAAU,CAAC,CACjC,CAAC;IAEF,OAAO,CACL,KAAC,gBAAgB,CAAC,QAAQ,IAAC,KAAK,EAAE,KAAK,YACpC,QAAQ,GACiB,CAC7B,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"item_order_provider.js","sourceRoot":"","sources":["../../../../src/components/table/reorder_rows/item_order_provider.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,0BAA0B,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAEzE,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAGvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAQ3D,MAAM,UAAU,iBAAiB,CAC/B,KAAgC;IAEhC,wDAAwD;IACxD,MAAM,CAAC,UAAU,CAAC,GAAG,QAAQ,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,mBAAmB,CAAC,CAAC,CAAC;IACjE,MAAM,EAAE,KAAK,EAAE,cAAc,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;IAClD,MAAM,WAAW,GAAG,WAAW,CAC7B,CAAC,EAAE,UAAU,EAAE,aAAa,EAAE,mBAAmB,EAAE,EAAE,EAAE;QACrD,MAAM,WAAW,GAAG,0BAA0B,CAAC;YAC7C,UAAU;YACV,mBAAmB;YACnB,aAAa;YACb,IAAI,EAAE,UAAU;SACjB,CAAC,CAAC;QAEH,IAAI,WAAW,KAAK,UAAU,EAAE,CAAC;YAC/B,4CAA4C;YAC5C,OAAO;QACT,CAAC;QAED,cAAc,CACZ,OAAO,CAAC;YACN,IAAI,EAAE,KAAK;YACX,UAAU;YACV,WAAW;SACZ,CAAC,CACH,CAAC;IACJ,CAAC,EACD,CAAC,KAAK,EAAE,cAAc,CAAC,CACxB,CAAC;IAEF,MAAM,KAAK,GAAG,OAAO,CACnB,GAAG,EAAE,CAAC,CAAC;QACL,WAAW;QACX,KAAK,EAAE,KAA4B;QACnC,UAAU;KACX,CAAC,EACF,CAAC,WAAW,EAAE,KAAK,EAAE,UAAU,CAAC,CACjC,CAAC;IAEF,OAAO,CACL,KAAC,gBAAgB,CAAC,QAAQ,IAAC,KAAK,EAAE,KAAK,YACpC,QAAQ,GACiB,CAC7B,CAAC;AACJ,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"use_drop_monitor.d.ts","sourceRoot":"","sources":["../../../../src/components/table/reorder_rows/use_drop_monitor.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAevC;;;;;GAKG;AACH,wBAAgB,cAAc,CAC5B,gBAAgB,EAAE,SAAS,CAAC,OAAO,CAAC,EACpC,OAAO,EAAE,OAAO,QAsDjB"}
1
+ {"version":3,"file":"use_drop_monitor.d.ts","sourceRoot":"","sources":["../../../../src/components/table/reorder_rows/use_drop_monitor.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AASvC;;;;;GAKG;AACH,wBAAgB,cAAc,CAC5B,gBAAgB,EAAE,SAAS,CAAC,OAAO,CAAC,EACpC,OAAO,EAAE,OAAO,QAsDjB"}
@@ -1,5 +1,5 @@
1
+ import { autoScrollForElements, combine, extractClosestEdge, monitorForElements, } from '@zakodium/pdnd-esm';
1
2
  import { useEffect } from 'react';
2
- import { autoScrollForElements, combine, extractClosestEdge, monitorForElements, } from '../../pdnd.cjs';
3
3
  import { assert } from '../../utils/index.js';
4
4
  import { useFlashedRowContext } from '../flash_row/flashed_row_context.js';
5
5
  import { isItemData } from './item_data.js';
@@ -1 +1 @@
1
- {"version":3,"file":"use_drop_monitor.js","sourceRoot":"","sources":["../../../../src/components/table/reorder_rows/use_drop_monitor.ts"],"names":[],"mappings":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,UAAU,CAAC,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC,EAAE,CAAC;oBACvD,OAAO;gBACT,CAAC;gBAED,MAAM,aAAa,GAAG,KAAK,CAAC,SAAS,CACnC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,EAAE,KAAK,UAAU,CAAC,EAAE,CACpC,CAAC;gBACF,IAAI,aAAa,KAAK,CAAC,CAAC,EAAE,CAAC;oBACzB,OAAO;gBACT,CAAC;gBAED,MAAM,mBAAmB,GAAG,kBAAkB,CAAC,UAAU,CAAC,CAAC;gBAE3D,WAAW,CAAC;oBACV,UAAU,EAAE,UAAU,CAAC,KAAK;oBAC5B,aAAa;oBACb,mBAAmB;iBACpB,CAAC,CAAC;gBACH,aAAa,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC;YAC/B,CAAC;SACF,CAAC,EACF,qBAAqB,CAAC;YACpB,SAAS,EAAE,UAAU;YACrB,OAAO,EAAE,eAAe;SACzB,CAAC,CACH,CAAC;IACJ,CAAC,EAAE,CAAC,KAAK,EAAE,WAAW,EAAE,gBAAgB,EAAE,aAAa,EAAE,OAAO,CAAC,CAAC,CAAC;AACrE,CAAC"}
1
+ {"version":3,"file":"use_drop_monitor.js","sourceRoot":"","sources":["../../../../src/components/table/reorder_rows/use_drop_monitor.ts"],"names":[],"mappings":"AACA,OAAO,EACL,qBAAqB,EACrB,OAAO,EACP,kBAAkB,EAClB,kBAAkB,GACnB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAE3E,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAEvD;;;;;GAKG;AACH,MAAM,UAAU,cAAc,CAC5B,gBAAoC,E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;oBAC5B,aAAa;oBACb,mBAAmB;iBACpB,CAAC,CAAC;gBACH,aAAa,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC;YAC/B,CAAC;SACF,CAAC,EACF,qBAAqB,CAAC;YACpB,SAAS,EAAE,UAAU;YACrB,OAAO,EAAE,eAAe;SACzB,CAAC,CACH,CAAC;IACJ,CAAC,EAAE,CAAC,KAAK,EAAE,WAAW,EAAE,gBAAgB,EAAE,aAAa,EAAE,OAAO,CAAC,CAAC,CAAC;AACrE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-science",
3
- "version": "19.3.0",
3
+ "version": "19.3.1",
4
4
  "description": "React components to build scientific applications UI",
5
5
  "type": "module",
6
6
  "exports": {
@@ -64,6 +64,7 @@
64
64
  "@tanstack/react-form": "^1.23.6",
65
65
  "@tanstack/react-table": "^8.21.3",
66
66
  "@tanstack/react-virtual": "^3.13.12",
67
+ "@zakodium/pdnd-esm": "^1.0.2",
67
68
  "d3-scale-chromatic": "^3.1.0",
68
69
  "react-d3-utils": "^3.1.2",
69
70
  "react-dropzone": "^14.3.8",
@@ -3,7 +3,7 @@ import styled from '@emotion/styled';
3
3
  import type { ChangeEvent } from 'react';
4
4
 
5
5
  import { useFieldContext } from '../../context/use_ts_form.js';
6
- import type { Layout } from '../input_groups/form.js';
6
+ import type { Layout } from '../input_groups/form_context.js';
7
7
  import { FormGroup } from '../input_groups/form_group.js';
8
8
 
9
9
  interface SwitchProps {
@@ -1,22 +1,14 @@
1
1
  import type { FormHTMLAttributes, ReactNode } from 'react';
2
- import { createContext, useContext, useMemo } from 'react';
2
+ import { useMemo } from 'react';
3
3
 
4
- export type Layout = 'inline' | 'stacked';
4
+ import type { Layout } from './form_context.js';
5
+ import { formContext } from './form_context.js';
5
6
 
6
7
  export interface FormProps extends FormHTMLAttributes<HTMLFormElement> {
7
8
  children: ReactNode;
8
9
  layout?: Layout;
9
10
  }
10
11
 
11
- const formContext = createContext<{ layout: Layout }>({
12
- layout: 'stacked',
13
- });
14
-
15
- // eslint-disable-next-line react-refresh/only-export-components
16
- export function useFormContext() {
17
- return useContext(formContext);
18
- }
19
-
20
12
  export function Form(props: FormProps) {
21
13
  const { children, layout = 'stacked', ...otherProps } = props;
22
14
 
@@ -0,0 +1,11 @@
1
+ import { createContext, useContext } from 'react';
2
+
3
+ export type Layout = 'inline' | 'stacked';
4
+
5
+ export const formContext = createContext<{ layout: Layout }>({
6
+ layout: 'stacked',
7
+ });
8
+
9
+ export function useFormContext() {
10
+ return useContext(formContext);
11
+ }
@@ -3,8 +3,8 @@ import { Classes } from '@blueprintjs/core';
3
3
  import styled from '@emotion/styled';
4
4
  import type { ReactNode } from 'react';
5
5
 
6
- import type { Layout } from './form.js';
7
- import { useFormContext } from './form.js';
6
+ import type { Layout } from './form_context.js';
7
+ import { useFormContext } from './form_context.js';
8
8
 
9
9
  const INPUT_HEIGHT = 30;
10
10
 
@@ -81,7 +81,7 @@ interface FormGroupProps {
81
81
  export function FormGroup(props: FormGroupProps) {
82
82
  const {
83
83
  label,
84
- intent,
84
+ intent = 'none',
85
85
  name,
86
86
  required,
87
87
  children,
@@ -93,10 +93,13 @@ export function FormGroup(props: FormGroupProps) {
93
93
 
94
94
  const { layout: formLayout } = useFormContext();
95
95
 
96
+ // If intent is undefined or none intentClass will return undefined
97
+ const intentClass = Classes.intentClass(intent) ?? '';
98
+
96
99
  return (
97
100
  <FormContainer
98
101
  layout={layout || formLayout}
99
- className={`${Classes.FORM_GROUP} ${Classes.intentClass(intent)}`}
102
+ className={`${Classes.FORM_GROUP} ${intentClass}`}
100
103
  >
101
104
  {label && (
102
105
  <Label
@@ -1,8 +1,5 @@
1
1
  import type { ElementDragPayload } from '@atlaskit/pragmatic-drag-and-drop/element/adapter';
2
2
  import type { Row, RowData } from '@tanstack/react-table';
3
- import { useEffect, useMemo, useRef, useState } from 'react';
4
- import { createPortal } from 'react-dom';
5
-
6
3
  import {
7
4
  attachClosestEdge,
8
5
  combine,
@@ -11,7 +8,10 @@ import {
11
8
  extractClosestEdge,
12
9
  pointerOutsideOfPreview,
13
10
  setCustomNativeDragPreview,
14
- } from '../../pdnd.cjs';
11
+ } from '@zakodium/pdnd-esm';
12
+ import { useEffect, useMemo, useRef, useState } from 'react';
13
+ import { createPortal } from 'react-dom';
14
+
15
15
  import { assert } from '../../utils/index.js';
16
16
  import { useFlashRowEffect } from '../flash_row/use_flash_row_effect.js';
17
17
  import { PreviewTable } from '../preview_table.js';
@@ -1,9 +1,8 @@
1
1
  import type { Row } from '@tanstack/react-table';
2
+ import { getReorderDestinationIndex, reorder } from '@zakodium/pdnd-esm';
2
3
  import type { ReactNode } from 'react';
3
4
  import { useCallback, useMemo, useState } from 'react';
4
5
 
5
- import { getReorderDestinationIndex, reorder } from '../../pdnd.cjs';
6
-
7
6
  import type { ReorderItemCallback } from './item_order_context.js';
8
7
  import { itemOrderContext } from './item_order_context.js';
9
8
 
@@ -1,13 +1,13 @@
1
1
  import type { ElementDragPayload } from '@atlaskit/pragmatic-drag-and-drop/element/adapter';
2
- import type { RefObject } from 'react';
3
- import { useEffect } from 'react';
4
-
5
2
  import {
6
3
  autoScrollForElements,
7
4
  combine,
8
5
  extractClosestEdge,
9
6
  monitorForElements,
10
- } from '../../pdnd.cjs';
7
+ } from '@zakodium/pdnd-esm';
8
+ import type { RefObject } from 'react';
9
+ import { useEffect } from 'react';
10
+
11
11
  import { assert } from '../../utils/index.js';
12
12
  import { useFlashedRowContext } from '../flash_row/flashed_row_context.js';
13
13
 
@@ -1,29 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getReorderDestinationIndex = exports.extractClosestEdge = exports.attachClosestEdge = exports.autoScrollForElements = exports.monitorForElements = exports.dropTargetForElements = exports.draggable = exports.reorder = exports.combine = exports.setCustomNativeDragPreview = exports.pointerOutsideOfPreview = void 0;
4
- // https://github.com/atlassian/pragmatic-drag-and-drop/issues/27
5
- // Given how `@atlaskit/pragmatic-drag-and-drop` publishes ESM in a non-native way,
6
- // we have to trick TS into using the CJS build so that our build is compatible
7
- // with native ESM.
8
- // We cannot use `verbatimModuleSyntax` ts config option with this pattern.
9
- var pointer_outside_of_preview_1 = require("@atlaskit/pragmatic-drag-and-drop/element/pointer-outside-of-preview");
10
- Object.defineProperty(exports, "pointerOutsideOfPreview", { enumerable: true, get: function () { return pointer_outside_of_preview_1.pointerOutsideOfPreview; } });
11
- var set_custom_native_drag_preview_1 = require("@atlaskit/pragmatic-drag-and-drop/element/set-custom-native-drag-preview");
12
- Object.defineProperty(exports, "setCustomNativeDragPreview", { enumerable: true, get: function () { return set_custom_native_drag_preview_1.setCustomNativeDragPreview; } });
13
- var combine_1 = require("@atlaskit/pragmatic-drag-and-drop/combine");
14
- Object.defineProperty(exports, "combine", { enumerable: true, get: function () { return combine_1.combine; } });
15
- var reorder_1 = require("@atlaskit/pragmatic-drag-and-drop/reorder");
16
- Object.defineProperty(exports, "reorder", { enumerable: true, get: function () { return reorder_1.reorder; } });
17
- var adapter_1 = require("@atlaskit/pragmatic-drag-and-drop/element/adapter");
18
- Object.defineProperty(exports, "draggable", { enumerable: true, get: function () { return adapter_1.draggable; } });
19
- Object.defineProperty(exports, "dropTargetForElements", { enumerable: true, get: function () { return adapter_1.dropTargetForElements; } });
20
- var adapter_2 = require("@atlaskit/pragmatic-drag-and-drop/element/adapter");
21
- Object.defineProperty(exports, "monitorForElements", { enumerable: true, get: function () { return adapter_2.monitorForElements; } });
22
- var element_1 = require("@atlaskit/pragmatic-drag-and-drop-auto-scroll/element");
23
- Object.defineProperty(exports, "autoScrollForElements", { enumerable: true, get: function () { return element_1.autoScrollForElements; } });
24
- var closest_edge_1 = require("@atlaskit/pragmatic-drag-and-drop-hitbox/closest-edge");
25
- Object.defineProperty(exports, "attachClosestEdge", { enumerable: true, get: function () { return closest_edge_1.attachClosestEdge; } });
26
- Object.defineProperty(exports, "extractClosestEdge", { enumerable: true, get: function () { return closest_edge_1.extractClosestEdge; } });
27
- var get_reorder_destination_index_1 = require("@atlaskit/pragmatic-drag-and-drop-hitbox/util/get-reorder-destination-index");
28
- Object.defineProperty(exports, "getReorderDestinationIndex", { enumerable: true, get: function () { return get_reorder_destination_index_1.getReorderDestinationIndex; } });
29
- //# sourceMappingURL=pdnd.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pdnd.cjs","sourceRoot":"","sources":["../../src/components/pdnd.cts"],"names":[],"mappings":";;;AAAA,iEAAiE;AACjE,mFAAmF;AACnF,+EAA+E;AAC/E,mBAAmB;AACnB,2EAA2E;AAC3E,mHAA+G;AAAtG,qIAAA,uBAAuB,OAAA;AAChC,2HAAsH;AAA7G,4IAAA,0BAA0B,OAAA;AACnC,qEAAoE;AAA3D,kGAAA,OAAO,OAAA;AAChB,qEAAoE;AAA3D,kGAAA,OAAO,OAAA;AAChB,6EAG2D;AAFzD,oGAAA,SAAS,OAAA;AACT,gHAAA,qBAAqB,OAAA;AAEvB,6EAAuF;AAA9E,6GAAA,kBAAkB,OAAA;AAC3B,iFAA8F;AAArF,gHAAA,qBAAqB,OAAA;AAC9B,sFAG+D;AAF7D,iHAAA,iBAAiB,OAAA;AACjB,kHAAA,kBAAkB,OAAA;AAEpB,6HAAyH;AAAhH,2IAAA,0BAA0B,OAAA"}
@@ -1,10 +0,0 @@
1
- export { pointerOutsideOfPreview } from '@atlaskit/pragmatic-drag-and-drop/element/pointer-outside-of-preview';
2
- export { setCustomNativeDragPreview } from '@atlaskit/pragmatic-drag-and-drop/element/set-custom-native-drag-preview';
3
- export { combine } from '@atlaskit/pragmatic-drag-and-drop/combine';
4
- export { reorder } from '@atlaskit/pragmatic-drag-and-drop/reorder';
5
- export { draggable, dropTargetForElements, } from '@atlaskit/pragmatic-drag-and-drop/element/adapter';
6
- export { monitorForElements } from '@atlaskit/pragmatic-drag-and-drop/element/adapter';
7
- export { autoScrollForElements } from '@atlaskit/pragmatic-drag-and-drop-auto-scroll/element';
8
- export { attachClosestEdge, extractClosestEdge, } from '@atlaskit/pragmatic-drag-and-drop-hitbox/closest-edge';
9
- export { getReorderDestinationIndex } from '@atlaskit/pragmatic-drag-and-drop-hitbox/util/get-reorder-destination-index';
10
- //# sourceMappingURL=pdnd.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pdnd.d.cts","sourceRoot":"","sources":["../../src/components/pdnd.cts"],"names":[],"mappings":"AAKA,OAAO,EAAE,uBAAuB,EAAE,MAAM,sEAAsE,CAAC;AAC/G,OAAO,EAAE,0BAA0B,EAAE,MAAM,0EAA0E,CAAC;AACtH,OAAO,EAAE,OAAO,EAAE,MAAM,2CAA2C,CAAC;AACpE,OAAO,EAAE,OAAO,EAAE,MAAM,2CAA2C,CAAC;AACpE,OAAO,EACL,SAAS,EACT,qBAAqB,GACtB,MAAM,mDAAmD,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,mDAAmD,CAAC;AACvF,OAAO,EAAE,qBAAqB,EAAE,MAAM,uDAAuD,CAAC;AAC9F,OAAO,EACL,iBAAiB,EACjB,kBAAkB,GACnB,MAAM,uDAAuD,CAAC;AAC/D,OAAO,EAAE,0BAA0B,EAAE,MAAM,6EAA6E,CAAC"}
@@ -1,20 +0,0 @@
1
- // https://github.com/atlassian/pragmatic-drag-and-drop/issues/27
2
- // Given how `@atlaskit/pragmatic-drag-and-drop` publishes ESM in a non-native way,
3
- // we have to trick TS into using the CJS build so that our build is compatible
4
- // with native ESM.
5
- // We cannot use `verbatimModuleSyntax` ts config option with this pattern.
6
- export { pointerOutsideOfPreview } from '@atlaskit/pragmatic-drag-and-drop/element/pointer-outside-of-preview';
7
- export { setCustomNativeDragPreview } from '@atlaskit/pragmatic-drag-and-drop/element/set-custom-native-drag-preview';
8
- export { combine } from '@atlaskit/pragmatic-drag-and-drop/combine';
9
- export { reorder } from '@atlaskit/pragmatic-drag-and-drop/reorder';
10
- export {
11
- draggable,
12
- dropTargetForElements,
13
- } from '@atlaskit/pragmatic-drag-and-drop/element/adapter';
14
- export { monitorForElements } from '@atlaskit/pragmatic-drag-and-drop/element/adapter';
15
- export { autoScrollForElements } from '@atlaskit/pragmatic-drag-and-drop-auto-scroll/element';
16
- export {
17
- attachClosestEdge,
18
- extractClosestEdge,
19
- } from '@atlaskit/pragmatic-drag-and-drop-hitbox/closest-edge';
20
- export { getReorderDestinationIndex } from '@atlaskit/pragmatic-drag-and-drop-hitbox/util/get-reorder-destination-index';