@dxos/react-ui-stack 0.8.4-main.e098934 → 0.8.4-main.e8ec1fe
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/lib/browser/{chunk-3V2YUQK5.mjs → chunk-3F2KBXLP.mjs} +208 -101
- package/dist/lib/browser/chunk-3F2KBXLP.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +5 -1
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/playwright/index.mjs +10 -23
- package/dist/lib/browser/playwright/index.mjs.map +2 -2
- package/dist/lib/browser/testing/index.mjs +1 -1
- package/dist/lib/node-esm/{chunk-HE3BRF7A.mjs → chunk-SYKFLQGK.mjs} +208 -101
- package/dist/lib/node-esm/chunk-SYKFLQGK.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +5 -1
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/playwright/index.mjs +10 -23
- package/dist/lib/node-esm/playwright/index.mjs.map +2 -2
- package/dist/lib/node-esm/testing/index.mjs +1 -1
- package/dist/types/src/components/Image/Image.d.ts +5 -2
- package/dist/types/src/components/Image/Image.d.ts.map +1 -1
- package/dist/types/src/components/Image/Image.stories.d.ts +3 -1
- package/dist/types/src/components/Image/Image.stories.d.ts.map +1 -1
- package/dist/types/src/components/Stack/Stack.d.ts +6 -5
- package/dist/types/src/components/Stack/Stack.d.ts.map +1 -1
- package/dist/types/src/components/Stack/Stack.stories.d.ts +1 -2
- package/dist/types/src/components/Stack/Stack.stories.d.ts.map +1 -1
- package/dist/types/src/components/StackItem/StackItem.d.ts +4 -3
- package/dist/types/src/components/StackItem/StackItem.d.ts.map +1 -1
- package/dist/types/src/components/StackItem/StackItem.stories.d.ts +0 -1
- package/dist/types/src/components/StackItem/StackItem.stories.d.ts.map +1 -1
- package/dist/types/src/components/StackItem/StackItemContent.d.ts +20 -10
- package/dist/types/src/components/StackItem/StackItemContent.d.ts.map +1 -1
- package/dist/types/src/components/StackItem/StackItemHeading.d.ts.map +1 -1
- package/dist/types/src/exemplars/Card/Card.d.ts +21 -10
- package/dist/types/src/exemplars/Card/Card.d.ts.map +1 -1
- package/dist/types/src/exemplars/Card/Card.stories.d.ts +0 -23
- package/dist/types/src/exemplars/Card/Card.stories.d.ts.map +1 -1
- package/dist/types/src/exemplars/Card/fragments.d.ts +1 -1
- package/dist/types/src/exemplars/Card/fragments.d.ts.map +1 -1
- package/dist/types/src/exemplars/CardStack/CardStack.d.ts +3 -1
- package/dist/types/src/exemplars/CardStack/CardStack.d.ts.map +1 -1
- package/dist/types/src/exemplars/CardStack/CardStack.stories.d.ts +3 -1
- package/dist/types/src/exemplars/CardStack/CardStack.stories.d.ts.map +1 -1
- package/dist/types/src/hooks/useStackDropForElements.d.ts +2 -2
- package/dist/types/src/hooks/useStackDropForElements.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +27 -27
- package/src/components/Image/Image.stories.tsx +34 -8
- package/src/components/Image/Image.tsx +158 -73
- package/src/components/Stack/Stack.stories.tsx +2 -4
- package/src/components/Stack/Stack.tsx +93 -38
- package/src/components/StackItem/StackItem.stories.tsx +3 -5
- package/src/components/StackItem/StackItem.tsx +11 -4
- package/src/components/StackItem/StackItemContent.tsx +19 -8
- package/src/components/StackItem/StackItemHeading.tsx +1 -5
- package/src/exemplars/Card/Card.stories.tsx +1 -25
- package/src/exemplars/Card/Card.tsx +39 -15
- package/src/exemplars/Card/fragments.ts +1 -1
- package/src/exemplars/CardStack/CardStack.stories.tsx +5 -4
- package/src/exemplars/CardStack/CardStack.tsx +11 -8
- package/src/hooks/useStackDropForElements.ts +42 -35
- package/dist/lib/browser/chunk-3V2YUQK5.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-HE3BRF7A.mjs.map +0 -7
|
@@ -4,8 +4,11 @@ export type ImageProps = ThemedClassName<{
|
|
|
4
4
|
src: string;
|
|
5
5
|
alt?: string;
|
|
6
6
|
crossOrigin?: 'anonymous' | 'use-credentials' | '';
|
|
7
|
+
} & ColorOptions>;
|
|
8
|
+
export declare const Image: ({ classNames, src, alt, crossOrigin, sampleSize, contrast, }: ImageProps) => React.JSX.Element;
|
|
9
|
+
type ColorOptions = {
|
|
7
10
|
sampleSize?: number;
|
|
8
11
|
contrast?: number;
|
|
9
|
-
}
|
|
10
|
-
export
|
|
12
|
+
};
|
|
13
|
+
export {};
|
|
11
14
|
//# sourceMappingURL=Image.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Image.d.ts","sourceRoot":"","sources":["../../../../../src/components/Image/Image.tsx"],"names":[],"mappings":"AAIA,OAAO,
|
|
1
|
+
{"version":3,"file":"Image.d.ts","sourceRoot":"","sources":["../../../../../src/components/Image/Image.tsx"],"names":[],"mappings":"AAIA,OAAO,KAA6D,MAAM,OAAO,CAAC;AAElF,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAKtD,MAAM,MAAM,UAAU,GAAG,eAAe,CACtC;IACE,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,WAAW,GAAG,iBAAiB,GAAG,EAAE,CAAC;CACpD,GAAG,YAAY,CACjB,CAAC;AAEF,eAAO,MAAM,KAAK,GAAI,8DAOnB,UAAU,sBA4EZ,CAAC;AAEF,KAAK,YAAY,GAAG;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import '@dxos-theme';
|
|
2
1
|
import { type StoryObj } from '@storybook/react-vite';
|
|
3
2
|
import React from 'react';
|
|
4
3
|
declare const meta: {
|
|
@@ -8,6 +7,7 @@ declare const meta: {
|
|
|
8
7
|
src: string;
|
|
9
8
|
alt?: string;
|
|
10
9
|
crossOrigin?: "anonymous" | "use-credentials" | "";
|
|
10
|
+
} & {
|
|
11
11
|
sampleSize?: number;
|
|
12
12
|
contrast?: number;
|
|
13
13
|
}, "className"> & {
|
|
@@ -27,5 +27,7 @@ export declare const Default: Story;
|
|
|
27
27
|
* No 'Access-Control-Allow-Origin' header is present on the requested resource.
|
|
28
28
|
*/
|
|
29
29
|
export declare const Cors: Story;
|
|
30
|
+
export declare const Corners: Story;
|
|
30
31
|
export declare const SVG: Story;
|
|
32
|
+
export declare const Many: Story;
|
|
31
33
|
//# sourceMappingURL=Image.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Image.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Image/Image.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,
|
|
1
|
+
{"version":3,"file":"Image.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Image/Image.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAkB,MAAM,OAAO,CAAC;AAWvC,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;CAYoB,CAAC;AAE/B,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAIrB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,IAAI,EAAE,KAKlB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,KAKrB,CAAC;AAEF,eAAO,MAAM,GAAG,EAAE,KAKjB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,KAiBlB,CAAC"}
|
|
@@ -11,11 +11,6 @@ export type Orientation = 'horizontal' | 'vertical';
|
|
|
11
11
|
* - `split` divides the Stack’s available space among the StackItems
|
|
12
12
|
*/
|
|
13
13
|
export type Size = 'intrinsic' | 'contain' | 'split';
|
|
14
|
-
export type StackProps = Omit<ThemedClassName<ComponentPropsWithRef<'div'>>, 'aria-orientation'> & Partial<StackContextValue> & {
|
|
15
|
-
itemsCount?: number;
|
|
16
|
-
getDropElement?: (stackElement: HTMLDivElement) => HTMLDivElement;
|
|
17
|
-
separatorOnScroll?: number;
|
|
18
|
-
};
|
|
19
14
|
export declare const railGridHorizontal = "grid-rows-[[rail-start]_var(--rail-size)_[content-start]_1fr_[content-end]]";
|
|
20
15
|
export declare const railGridVertical = "grid-cols-[[rail-start]_var(--rail-size)_[content-start]_1fr_[content-end]]";
|
|
21
16
|
export declare const railGridHorizontalContainFitContent = "grid-rows-[[rail-start]_var(--rail-size)_[content-start]_fit-content(calc(100%-var(--rail-size)*2+2px))_[content-end]]";
|
|
@@ -23,6 +18,12 @@ export declare const railGridVerticalContainFitContent = "grid-cols-[[rail-start
|
|
|
23
18
|
export declare const autoScrollRootAttributes: {
|
|
24
19
|
'data-drag-autoscroll': string;
|
|
25
20
|
};
|
|
21
|
+
export type StackProps = Omit<ThemedClassName<ComponentPropsWithRef<'div'>>, 'aria-orientation'> & Partial<StackContextValue> & {
|
|
22
|
+
itemsCount?: number;
|
|
23
|
+
getDropElement?: (stackElement: HTMLDivElement) => HTMLDivElement;
|
|
24
|
+
separatorOnScroll?: number;
|
|
25
|
+
circularFocus?: boolean;
|
|
26
|
+
};
|
|
26
27
|
export declare const Stack: React.ForwardRefExoticComponent<Omit<StackProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
27
28
|
export { StackContext };
|
|
28
29
|
export type { StackContextValue };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Stack.d.ts","sourceRoot":"","sources":["../../../../../src/components/Stack/Stack.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,EAGZ,KAAK,qBAAqB,EAO3B,MAAM,OAAO,CAAC;AAEf,OAAO,EAAY,KAAK,eAAe,EAAS,MAAM,gBAAgB,CAAC;AAIvE,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,SAAS,CAAC;AACjD,OAAO,EAAE,YA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+1,16 @@
|
|
|
1
|
-
import '@dxos-theme';
|
|
2
1
|
import { type StoryObj } from '@storybook/react-vite';
|
|
3
2
|
import React from 'react';
|
|
4
3
|
declare const DefaultStory: () => React.JSX.Element;
|
|
5
4
|
declare const meta: {
|
|
6
5
|
title: string;
|
|
7
6
|
component: () => React.JSX.Element;
|
|
8
|
-
decorators: import("@storybook/react").Decorator[];
|
|
9
7
|
argTypes: {
|
|
10
8
|
orientation: {
|
|
11
9
|
control: string;
|
|
12
10
|
options: string[];
|
|
13
11
|
};
|
|
14
12
|
};
|
|
13
|
+
decorators: import("@storybook/react").Decorator[];
|
|
15
14
|
};
|
|
16
15
|
export default meta;
|
|
17
16
|
type Story = StoryObj<typeof DefaultStory>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Stack.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Stack/Stack.stories.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Stack.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Stack/Stack.stories.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAgC,MAAM,OAAO,CAAC;AAwBrD,QAAA,MAAM,YAAY,yBAkGjB,CAAC;AAEF,QAAA,MAAM,IAAI;;;;;;;;;;CAK2B,CAAC;AAEtC,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,YAAY,CAAC,CAAC;AAE3C,eAAO,MAAM,OAAO,EAAE,KAIrB,CAAC"}
|
|
@@ -18,7 +18,7 @@ type StackItemRootProps = ThemedClassName<ComponentPropsWithRef<'div'>> & {
|
|
|
18
18
|
onSizeChange?: (nextSize: StackItemSize) => void;
|
|
19
19
|
role?: 'article' | 'section';
|
|
20
20
|
disableRearrange?: boolean;
|
|
21
|
-
focusIndicatorVariant?: 'over-all' | 'group';
|
|
21
|
+
focusIndicatorVariant?: 'over-all' | 'group' | 'over-all-always' | 'group-always';
|
|
22
22
|
};
|
|
23
23
|
type StackItemDragPreviewProps = {
|
|
24
24
|
children: ({ item }: {
|
|
@@ -28,13 +28,14 @@ type StackItemDragPreviewProps = {
|
|
|
28
28
|
export declare const StackItemDragPreview: ({ children }: StackItemDragPreviewProps) => React.ReactPortal | null;
|
|
29
29
|
export declare const StackItem: {
|
|
30
30
|
Root: React.ForwardRefExoticComponent<Omit<StackItemRootProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
31
|
-
Content: React.ForwardRefExoticComponent<Omit<Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, "role">, "className"> & {
|
|
31
|
+
Content: React.ForwardRefExoticComponent<Omit<Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, "role" | "scrollable">, "className"> & {
|
|
32
32
|
classNames?: import("@dxos/react-ui-types").ClassNameValue;
|
|
33
33
|
} & {
|
|
34
34
|
toolbar?: boolean;
|
|
35
35
|
statusbar?: boolean;
|
|
36
|
-
|
|
36
|
+
scrollable?: boolean;
|
|
37
37
|
size?: "intrinsic" | "video" | "square";
|
|
38
|
+
layoutManaged?: boolean;
|
|
38
39
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
39
40
|
Heading: ({ children, classNames, asChild, separateOnScroll, ...props }: StackItemHeadingProps) => React.JSX.Element;
|
|
40
41
|
HeadingLabel: React.ForwardRefExoticComponent<Omit<StackItemHeadingLabelProps, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StackItem.d.ts","sourceRoot":"","sources":["../../../../../src/components/StackItem/StackItem.tsx"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,EACZ,KAAK,qBAAqB,EAC1B,KAAK,SAAS,EAMf,MAAM,OAAO,CAAC;AAGf,OAAO,EAAY,KAAK,eAAe,EAAE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,IAAI,EAAE,EAAE;QAAE,IAAI,EAAE,GAAG,CAAA;KAAE,KAAK,SAAS,CAAC;CAClD,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAAI,cAAc,yBAAyB,6BAG3E,CAAC;AAEF,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;gCAL6B,yBAAyB;CAgB3E,CAAC;AAEF,YAAY,EACV,kBAAkB,EAClB,qBAAqB,EACrB,qBAAqB,EACrB,0BAA0B,EAC1B,0BAA0B,EAC1B,wBAAwB,EACxB,mBAAmB,EACnB,yBAAyB,EACzB,oBAAoB,EACpB,yBAAyB,GAC1B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StackItem.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/StackItem/StackItem.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,
|
|
1
|
+
{"version":3,"file":"StackItem.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/StackItem/StackItem.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,EAAa,KAAK,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAsBjE,QAAA,MAAM,IAAI;;eAEqB,GAAG;oBAtBL,kBAAkB;;;;;CA4BV,CAAC;AAEtC,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAIrB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { type ComponentPropsWithoutRef } from 'react';
|
|
2
2
|
import { type ThemedClassName } from '@dxos/react-ui';
|
|
3
|
-
export type StackItemContentProps = ThemedClassName<Omit<ComponentPropsWithoutRef<'div'>, 'role'>> & {
|
|
3
|
+
export type StackItemContentProps = ThemedClassName<Omit<ComponentPropsWithoutRef<'div'>, 'role' | 'scrollable'>> & {
|
|
4
4
|
/**
|
|
5
5
|
* This flag is required in order to clarify a developer experience that seemed like it needed extra boilerplate
|
|
6
6
|
* (`row-span-2`) or was buggy. See the description of the StackItem.Content component itself for more information.
|
|
@@ -11,20 +11,25 @@ export type StackItemContentProps = ThemedClassName<Omit<ComponentPropsWithoutRe
|
|
|
11
11
|
*/
|
|
12
12
|
statusbar?: boolean;
|
|
13
13
|
/**
|
|
14
|
-
* Whether
|
|
14
|
+
* Whether to support y-axis scrolling.
|
|
15
15
|
*/
|
|
16
|
-
|
|
16
|
+
scrollable?: boolean;
|
|
17
17
|
/**
|
|
18
|
-
* Whether to set a certain aspect ratio on the content, including the toolbar and statusbar.
|
|
19
|
-
* convenience and consistency; it can instead be specified by the `classNames` or `style` props as needed.
|
|
18
|
+
* Whether to set a certain aspect ratio on the content, including the toolbar and statusbar.
|
|
19
|
+
* This is provided for convenience and consistency; it can instead be specified by the `classNames` or `style` props as needed.
|
|
20
20
|
*/
|
|
21
21
|
size?: 'intrinsic' | 'video' | 'square';
|
|
22
|
+
/**
|
|
23
|
+
* Whether the consumer intends to do something custom and typical affordances should not apply.
|
|
24
|
+
* @deprecated Replace with override for gridTempateRows.
|
|
25
|
+
*/
|
|
26
|
+
layoutManaged?: boolean;
|
|
22
27
|
};
|
|
23
28
|
/**
|
|
24
29
|
* This component should be used by plugins for rendering content within a stack item, a.k.a. a “plank” or “section”.
|
|
25
30
|
* The `toolbar` flag must be provided since this component provides for the layout of content with the toolbar.
|
|
26
31
|
*/
|
|
27
|
-
export declare const StackItemContent: React.ForwardRefExoticComponent<Omit<Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, "role">, "className"> & {
|
|
32
|
+
export declare const StackItemContent: React.ForwardRefExoticComponent<Omit<Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, "role" | "scrollable">, "className"> & {
|
|
28
33
|
classNames?: import("@dxos/react-ui-types").ClassNameValue;
|
|
29
34
|
} & {
|
|
30
35
|
/**
|
|
@@ -37,13 +42,18 @@ export declare const StackItemContent: React.ForwardRefExoticComponent<Omit<Omit
|
|
|
37
42
|
*/
|
|
38
43
|
statusbar?: boolean;
|
|
39
44
|
/**
|
|
40
|
-
* Whether
|
|
45
|
+
* Whether to support y-axis scrolling.
|
|
41
46
|
*/
|
|
42
|
-
|
|
47
|
+
scrollable?: boolean;
|
|
43
48
|
/**
|
|
44
|
-
* Whether to set a certain aspect ratio on the content, including the toolbar and statusbar.
|
|
45
|
-
* convenience and consistency; it can instead be specified by the `classNames` or `style` props as needed.
|
|
49
|
+
* Whether to set a certain aspect ratio on the content, including the toolbar and statusbar.
|
|
50
|
+
* This is provided for convenience and consistency; it can instead be specified by the `classNames` or `style` props as needed.
|
|
46
51
|
*/
|
|
47
52
|
size?: "intrinsic" | "video" | "square";
|
|
53
|
+
/**
|
|
54
|
+
* Whether the consumer intends to do something custom and typical affordances should not apply.
|
|
55
|
+
* @deprecated Replace with override for gridTempateRows.
|
|
56
|
+
*/
|
|
57
|
+
layoutManaged?: boolean;
|
|
48
58
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
49
59
|
//# sourceMappingURL=StackItemContent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StackItemContent.d.ts","sourceRoot":"","sources":["../../../../../src/components/StackItem/StackItemContent.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,EAAE,KAAK,wBAAwB,EAAuB,MAAM,OAAO,CAAC;AAElF,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"StackItemContent.d.ts","sourceRoot":"","sources":["../../../../../src/components/StackItem/StackItemContent.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,EAAE,KAAK,wBAAwB,EAAuB,MAAM,OAAO,CAAC;AAElF,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAMtD,MAAM,MAAM,qBAAqB,GAAG,eAAe,CAAC,IAAI,CAAC,wBAAwB,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,YAAY,CAAC,CAAC,GAAG;IAClH;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;;OAGG;IACH,IAAI,CAAC,EAAE,WAAW,GAAG,OAAO,GAAG,QAAQ,CAAC;IAExC;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,gBAAgB;;;IAjC3B;;;OAGG;cACO,OAAO;IAEjB;;OAEG;gBACS,OAAO;IAEnB;;OAEG;iBACU,OAAO;IAEpB;;;OAGG;WACI,WAAW,GAAG,OAAO,GAAG,QAAQ;IAEvC;;;OAGG;oBACa,OAAO;wCAmDxB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StackItemHeading.d.ts","sourceRoot":"","sources":["../../../../../src/components/StackItem/StackItemHeading.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"StackItemHeading.d.ts","sourceRoot":"","sources":["../../../../../src/components/StackItem/StackItemHeading.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,EACZ,KAAK,qBAAqB,EAC1B,KAAK,wBAAwB,EAC7B,KAAK,iBAAiB,EAEvB,MAAM,OAAO,CAAC;AAEf,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACtD,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,OAAO,EAAgB,MAAM,0BAA0B,CAAC;AAKzF,MAAM,MAAM,qBAAqB,GAAG,eAAe,CAAC,wBAAwB,CAAC,KAAK,CAAC,CAAC,GAAG;IACrF,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAI,+DAM9B,qBAAqB,sBAsBvB,CAAC;AAEF,eAAO,MAAM,6BAA6B,GAAI,cAAc,iBAAiB,CAAC,EAAE,CAAC,sBAMhF,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG,eAAe,CAAC,qBAAqB,CAAC,IAAI,CAAC,CAAC,GAAG,YAAY,GAAG,OAAO,CAAC;AAE/G,eAAO,MAAM,qBAAqB,oHAgBjC,CAAC"}
|
|
@@ -1,20 +1,31 @@
|
|
|
1
1
|
import React, { type PropsWithChildren } from 'react';
|
|
2
2
|
import { type ThemedClassName } from '@dxos/react-ui';
|
|
3
3
|
import { cardChrome, cardHeading, cardRoot, cardSpacing, cardText } from './fragments';
|
|
4
|
-
|
|
4
|
+
/**
|
|
5
|
+
* The default width of cards. It should be no larger than 320px per WCAG 2.1 SC 1.4.10.
|
|
6
|
+
*/
|
|
7
|
+
declare const cardDefaultInlineSize = 18;
|
|
8
|
+
/**
|
|
9
|
+
* This is `cardDefaultInlineSize` plus 2 times the sum of the inner and outer spacing applied by CardStack on the inline axis.
|
|
10
|
+
*/
|
|
11
|
+
declare const cardStackDefaultInlineSizeRem: number;
|
|
12
|
+
type CardPosterProps = ThemedClassName<{
|
|
5
13
|
alt: string;
|
|
6
14
|
aspect?: 'video' | 'auto';
|
|
7
15
|
} & Partial<{
|
|
8
16
|
image: string;
|
|
9
17
|
icon: string;
|
|
10
|
-
}
|
|
18
|
+
}>>;
|
|
11
19
|
export declare const Card: {
|
|
12
20
|
StaticRoot: React.ForwardRefExoticComponent<Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, "className"> & {
|
|
13
21
|
classNames?: import("@dxos/react-ui-types").ClassNameValue;
|
|
14
22
|
} & {
|
|
15
23
|
asChild?: boolean;
|
|
24
|
+
} & {
|
|
25
|
+
id?: string;
|
|
16
26
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
17
|
-
SurfaceRoot: ({ role, children, classNames, }: ThemedClassName<PropsWithChildren<{
|
|
27
|
+
SurfaceRoot: ({ id, role, children, classNames, }: ThemedClassName<PropsWithChildren<{
|
|
28
|
+
id?: string;
|
|
18
29
|
role?: string;
|
|
19
30
|
}>>) => React.JSX.Element;
|
|
20
31
|
Heading: React.ForwardRefExoticComponent<Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, "className"> & {
|
|
@@ -22,10 +33,12 @@ export declare const Card: {
|
|
|
22
33
|
} & {
|
|
23
34
|
asChild?: boolean;
|
|
24
35
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
25
|
-
Toolbar: React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-toolbar").ToolbarProps
|
|
26
|
-
|
|
27
|
-
} & {
|
|
36
|
+
Toolbar: React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-toolbar").ToolbarProps & {
|
|
37
|
+
textBlockWidth?: boolean;
|
|
28
38
|
layoutManaged?: boolean;
|
|
39
|
+
disabled?: boolean;
|
|
40
|
+
}, "className"> & {
|
|
41
|
+
classNames?: import("@dxos/react-ui-types").ClassNameValue;
|
|
29
42
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
30
43
|
ToolbarIconButton: React.ForwardRefExoticComponent<Omit<import("@dxos/react-ui").IconButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
31
44
|
ToolbarSeparator: React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-separator").SeparatorProps, "className"> & {
|
|
@@ -39,9 +52,7 @@ export declare const Card: {
|
|
|
39
52
|
toolbarItem?: boolean;
|
|
40
53
|
} & React.RefAttributes<HTMLButtonElement>>;
|
|
41
54
|
DragPreview: ({ children }: import("../..").StackItemDragPreviewProps) => React.ReactPortal | null;
|
|
42
|
-
Menu: React.FC<
|
|
43
|
-
ref?: ((instance: HTMLDivElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
44
|
-
}>;
|
|
55
|
+
Menu: React.FC<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
|
|
45
56
|
Poster: (props: CardPosterProps) => React.JSX.Element | undefined;
|
|
46
57
|
Chrome: React.ForwardRefExoticComponent<Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, "className"> & {
|
|
47
58
|
classNames?: import("@dxos/react-ui-types").ClassNameValue;
|
|
@@ -54,5 +65,5 @@ export declare const Card: {
|
|
|
54
65
|
asChild?: boolean;
|
|
55
66
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
56
67
|
};
|
|
57
|
-
export { cardRoot, cardHeading, cardText, cardChrome, cardSpacing };
|
|
68
|
+
export { cardRoot, cardHeading, cardText, cardChrome, cardSpacing, cardStackDefaultInlineSizeRem, cardDefaultInlineSize, };
|
|
58
69
|
//# sourceMappingURL=Card.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../../../../src/exemplars/Card/Card.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,EAIZ,KAAK,iBAAiB,EAEvB,MAAM,OAAO,CAAC;AAEf,OAAO,EAAoB,KAAK,eAAe,EAAkD,MAAM,gBAAgB,CAAC;AAMxH,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../../../../src/exemplars/Card/Card.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,EAIZ,KAAK,iBAAiB,EAEvB,MAAM,OAAO,CAAC;AAEf,OAAO,EAAoB,KAAK,eAAe,EAAkD,MAAM,gBAAgB,CAAC;AAMxH,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvF;;GAEG;AACH,QAAA,MAAM,qBAAqB,KAAoB,CAAC;AAEhD;;GAEG;AACH,QAAA,MAAM,6BAA6B,QAAgC,CAAC;AAsGpE,KAAK,eAAe,GAAG,eAAe,CACpC;IACE,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;CAC3B,GAAG,OAAO,CAAC;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC,CAC7C,CAAC;AAiDF,eAAO,MAAM,IAAI;;;;kBA1JqE,OAAO;;aAElB,MAAM;;uDAqB9E,eAAe,CAAC,iBAAiB,CAAC;QAAE,EAAE,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;;;;kBAvBiB,OAAO;;;;;;;;;;;;;;;;;;sBAiFxB,OAAO;;;;oBA0BjD,eAAe;;;;kBA3G4C,OAAO;;;;;kBAAP,OAAO;;CAuK5F,CAAC;AAEF,OAAO,EACL,QAAQ,EACR,WAAW,EACX,QAAQ,EACR,UAAU,EACV,WAAW,EACX,6BAA6B,EAC7B,qBAAqB,GACtB,CAAC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import '@dxos-theme';
|
|
2
1
|
import { type StoryObj } from '@storybook/react-vite';
|
|
3
2
|
import React from 'react';
|
|
4
3
|
type CardStoryProps = {
|
|
@@ -15,28 +14,6 @@ declare const meta: {
|
|
|
15
14
|
parameters: {
|
|
16
15
|
layout: string;
|
|
17
16
|
};
|
|
18
|
-
argTypes: {
|
|
19
|
-
title: {
|
|
20
|
-
control: "text";
|
|
21
|
-
description: string;
|
|
22
|
-
};
|
|
23
|
-
description: {
|
|
24
|
-
control: "text";
|
|
25
|
-
description: string;
|
|
26
|
-
};
|
|
27
|
-
image: {
|
|
28
|
-
control: "text";
|
|
29
|
-
description: string;
|
|
30
|
-
};
|
|
31
|
-
showImage: {
|
|
32
|
-
control: "boolean";
|
|
33
|
-
description: string;
|
|
34
|
-
};
|
|
35
|
-
showIcon: {
|
|
36
|
-
control: "boolean";
|
|
37
|
-
description: string;
|
|
38
|
-
};
|
|
39
|
-
};
|
|
40
17
|
};
|
|
41
18
|
export default meta;
|
|
42
19
|
type Story = StoryObj<typeof meta>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Card.stories.d.ts","sourceRoot":"","sources":["../../../../../src/exemplars/Card/Card.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,
|
|
1
|
+
{"version":3,"file":"Card.stories.d.ts","sourceRoot":"","sources":["../../../../../src/exemplars/Card/Card.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAK,MAAM,OAAO,CAAC;AAS1B,KAAK,cAAc,GAAG;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,OAAO,CAAC;CACnB,CAAC;AAoBF,QAAA,MAAM,IAAI;;iEAlBgE,cAAc;;;;;CAyBnD,CAAC;AAEtC,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAInC,eAAO,MAAM,OAAO,EAAE,KAQrB,CAAC"}
|
|
@@ -9,5 +9,5 @@ export declare const cardDialogPaddedOverflow = "overflow-y-auto min-bs-0 flex-1
|
|
|
9
9
|
export declare const cardDialogSearchListRoot = "pli-cardSpacingInline pbs-cardSpacingBlock [&>input]:mbe-0 min-bs-0 flex-1 flex flex-col";
|
|
10
10
|
export declare const cardText = "pli-cardSpacingInline mlb-cardSpacingBlock";
|
|
11
11
|
export declare const cardHeading = "text-lg font-medium line-clamp-2 grow";
|
|
12
|
-
export declare const cardChrome = "pli-[--dx-cardSpacingChrome] mlb-[--dx-cardSpacingChrome] [&_.dx-button]:text-start [&_.dx-button]:is-full";
|
|
12
|
+
export declare const cardChrome = "pli-[--dx-cardSpacingChrome] mlb-[--dx-cardSpacingChrome] [&_.dx-button]:text-start [&_.dx-button]:is-full [&_.dx-button]:pis-[calc(var(--dx-cardSpacingInline)-var(--dx-cardSpacingChrome))]";
|
|
13
13
|
//# sourceMappingURL=fragments.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fragments.d.ts","sourceRoot":"","sources":["../../../../../src/exemplars/Card/fragments.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,QAAQ,yKACmJ,CAAC;AAEzK,eAAO,MAAM,WAAW,+CAA+C,CAAC;AACxE,eAAO,MAAM,aAAa,gBAAgB,CAAC;AAC3C,eAAO,MAAM,YAAY,gDAAgD,CAAC;AAE1E,eAAO,MAAM,iBAAiB,+EAA+E,CAAC;AAC9G,eAAO,MAAM,gBAAgB,oEAAoE,CAAC;AAClG,eAAO,MAAM,kBAAkB,oCAAoC,CAAC;AACpE,eAAO,MAAM,wBAAwB,yDAA+C,CAAC;AACrF,eAAO,MAAM,wBAAwB,6FACuD,CAAC;AAE7F,eAAO,MAAM,QAAQ,+CAAc,CAAC;AAEpC,eAAO,MAAM,WAAW,0CAA0C,CAAC;AAEnE,eAAO,MAAM,UAAU
|
|
1
|
+
{"version":3,"file":"fragments.d.ts","sourceRoot":"","sources":["../../../../../src/exemplars/Card/fragments.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,QAAQ,yKACmJ,CAAC;AAEzK,eAAO,MAAM,WAAW,+CAA+C,CAAC;AACxE,eAAO,MAAM,aAAa,gBAAgB,CAAC;AAC3C,eAAO,MAAM,YAAY,gDAAgD,CAAC;AAE1E,eAAO,MAAM,iBAAiB,+EAA+E,CAAC;AAC9G,eAAO,MAAM,gBAAgB,oEAAoE,CAAC;AAClG,eAAO,MAAM,kBAAkB,oCAAoC,CAAC;AACpE,eAAO,MAAM,wBAAwB,yDAA+C,CAAC;AACrF,eAAO,MAAM,wBAAwB,6FACuD,CAAC;AAE7F,eAAO,MAAM,QAAQ,+CAAc,CAAC;AAEpC,eAAO,MAAM,WAAW,0CAA0C,CAAC;AAEnE,eAAO,MAAM,UAAU,kMAC0K,CAAC"}
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { type StackProps } from '../../components';
|
|
3
3
|
declare const cardStackHeading = "mli-2 order-first bg-transparent rounded-bs-md flex items-center";
|
|
4
4
|
declare const cardStackFooter = "plb-2 mli-2 border-bs border-transparent [[data-scroll-separator-end=\"true\"]_&]:border-subduedSeparator";
|
|
5
|
-
declare const cardStackContent
|
|
5
|
+
declare const cardStackContent = "shrink min-bs-0 bg-baseSurface border border-separator rounded-md grid dx-focus-ring-group-x-indicator kanban-drop";
|
|
6
6
|
declare const cardStackRoot = "flex flex-col pli-2 plb-2";
|
|
7
7
|
declare const cardStackItem = "contain-layout pli-2 plb-1 first-of-type:pbs-0 last-of-type:pbe-0";
|
|
8
8
|
export declare const CardStack: {
|
|
@@ -15,6 +15,8 @@ export declare const CardStack: {
|
|
|
15
15
|
classNames?: import("@dxos/react-ui-types").ClassNameValue;
|
|
16
16
|
} & {
|
|
17
17
|
asChild?: boolean;
|
|
18
|
+
} & {
|
|
19
|
+
footer?: boolean;
|
|
18
20
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
19
21
|
Stack: React.ForwardRefExoticComponent<Omit<Omit<StackProps, "orientation" | "rail" | "size" | "separatorOnScroll">, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
20
22
|
Heading: React.ForwardRefExoticComponent<Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, "className"> & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CardStack.d.ts","sourceRoot":"","sources":["../../../../../src/exemplars/CardStack/CardStack.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAoD,MAAM,OAAO,CAAC;AAKzE,OAAO,EAAS,KAAK,UAAU,EAAuC,MAAM,kBAAkB,CAAC;AA+B/F,QAAA,MAAM,gBAAgB,qEAAqE,CAAC;AAgB5F,QAAA,MAAM,eAAe,8GACsF,CAAC;AAgB5G,QAAA,MAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"CardStack.d.ts","sourceRoot":"","sources":["../../../../../src/exemplars/CardStack/CardStack.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAoD,MAAM,OAAO,CAAC;AAKzE,OAAO,EAAS,KAAK,UAAU,EAAuC,MAAM,kBAAkB,CAAC;AA+B/F,QAAA,MAAM,gBAAgB,qEAAqE,CAAC;AAgB5F,QAAA,MAAM,eAAe,8GACsF,CAAC;AAgB5G,QAAA,MAAM,gBAAgB,uHACgG,CAAC;AAqBvH,QAAA,MAAM,aAAa,8BAA8B,CAAC;AAgBlD,QAAA,MAAM,aAAa,sEAAsE,CAAC;AAgB1F,eAAO,MAAM,SAAS;;;;kBAnHqE,OAAO;;;;;kBAAP,OAAO;;iBAiEvF,OAAO;;;;;;kBAjEyE,OAAO;;;;;kBAAP,OAAO;;;;;;;;kBAAP,OAAO;;CA2HjG,CAAC;AAEF,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,aAAa,EAAE,CAAC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import '@dxos-theme';
|
|
2
1
|
import { type StoryObj } from '@storybook/react-vite';
|
|
3
2
|
import React from 'react';
|
|
4
3
|
declare const CardStackStory: () => React.JSX.Element;
|
|
@@ -6,6 +5,9 @@ declare const meta: {
|
|
|
6
5
|
title: string;
|
|
7
6
|
component: () => React.JSX.Element;
|
|
8
7
|
decorators: import("@storybook/react").Decorator[];
|
|
8
|
+
parameters: {
|
|
9
|
+
layout: string;
|
|
10
|
+
};
|
|
9
11
|
};
|
|
10
12
|
export default meta;
|
|
11
13
|
type Story = StoryObj<typeof CardStackStory>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CardStack.stories.d.ts","sourceRoot":"","sources":["../../../../../src/exemplars/CardStack/CardStack.stories.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CardStack.stories.d.ts","sourceRoot":"","sources":["../../../../../src/exemplars/CardStack/CardStack.stories.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAgC,MAAM,OAAO,CAAC;AAyBrD,QAAA,MAAM,cAAc,yBA8HnB,CAAC;AAEF,QAAA,MAAM,IAAI;;;;;;;CAO6B,CAAC;AAExC,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,cAAc,CAAC,CAAC;AAE7C,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC"}
|
|
@@ -2,12 +2,12 @@ import { type Orientation, type StackItemRearrangeHandler } from '../components'
|
|
|
2
2
|
/**
|
|
3
3
|
* Hook to handle drag and drop functionality for Stack components.
|
|
4
4
|
*/
|
|
5
|
-
export declare const useStackDropForElements: ({ id, element, scrollElement,
|
|
5
|
+
export declare const useStackDropForElements: ({ id, element, scrollElement, orientation, selfDroppable, onRearrange, }: {
|
|
6
6
|
id?: string;
|
|
7
7
|
element: HTMLDivElement | null;
|
|
8
8
|
scrollElement?: HTMLDivElement | null;
|
|
9
|
-
selfDroppable: boolean;
|
|
10
9
|
orientation: Orientation;
|
|
10
|
+
selfDroppable: boolean;
|
|
11
11
|
onRearrange?: StackItemRearrangeHandler;
|
|
12
12
|
}) => {
|
|
13
13
|
dropping: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useStackDropForElements.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useStackDropForElements.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,KAAK,WAAW,EAAsB,KAAK,yBAAyB,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"useStackDropForElements.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useStackDropForElements.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,KAAK,WAAW,EAAsB,KAAK,yBAAyB,EAAE,MAAM,eAAe,CAAC;AAIrG;;GAEG;AACH,eAAO,MAAM,uBAAuB,GAAI,0EAOrC;IACD,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,cAAc,GAAG,IAAI,CAAC;IAC/B,aAAa,CAAC,EAAE,cAAc,GAAG,IAAI,CAAC;IACtC,WAAW,EAAE,WAAW,CAAC;IACzB,aAAa,EAAE,OAAO,CAAC;IACvB,WAAW,CAAC,EAAE,yBAAyB,CAAC;CACzC;;CAoDA,CAAC"}
|