@bitrise/bitkit-v2 0.3.544-beta.3444 → 0.3.544-beta.3449
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/components/BitkitDraggableCard/BitkitDraggableCard.d.ts +10 -0
- package/dist/components/BitkitDraggableCard/BitkitDraggableCard.js +29 -19
- package/dist/components/BitkitDraggableCard/BitkitDraggableCard.js.map +1 -1
- package/dist/theme/slot-recipes/DraggableCard.recipe.d.ts +36 -45
- package/dist/theme/slot-recipes/DraggableCard.recipe.js +31 -40
- package/dist/theme/slot-recipes/DraggableCard.recipe.js.map +1 -1
- package/dist/theme/slot-recipes/Drawer.recipe.d.ts +1 -1
- package/dist/theme/slot-recipes/Drawer.recipe.js +1 -1
- package/dist/theme/slot-recipes/Drawer.recipe.js.map +1 -1
- package/dist/theme/slot-recipes/index.d.ts +37 -46
- package/package.json +1 -1
|
@@ -17,6 +17,11 @@ export interface BitkitDraggableCardProps extends Omit<BoxProps, 'children'> {
|
|
|
17
17
|
isDragging?: boolean;
|
|
18
18
|
/** Whether this card is a drop target placeholder */
|
|
19
19
|
isDropTarget?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* `readOnly` renders a plain card: no drag handle, no hover or drag styles. `handleProps`, `handleRef`,
|
|
22
|
+
* `isDragging` and `isDropTarget` are ignored.
|
|
23
|
+
*/
|
|
24
|
+
state?: 'readOnly';
|
|
20
25
|
}
|
|
21
26
|
/**
|
|
22
27
|
* A card with a drag handle, designed for use with `@dnd-kit/react` or `@dnd-kit/core`.
|
|
@@ -42,6 +47,11 @@ export interface BitkitDraggableCardProps extends Omit<BoxProps, 'children'> {
|
|
|
42
47
|
* </BitkitDraggableCard>
|
|
43
48
|
* ```
|
|
44
49
|
*
|
|
50
|
+
* @example Read-only (a plain card, e.g. when the list can't be reordered)
|
|
51
|
+
* ```tsx
|
|
52
|
+
* <BitkitDraggableCard state="readOnly">{children}</BitkitDraggableCard>
|
|
53
|
+
* ```
|
|
54
|
+
*
|
|
45
55
|
* @example Handle-only drag with `@dnd-kit/core` / `@dnd-kit/sortable` (pass handleProps and handleRef)
|
|
46
56
|
* ```tsx
|
|
47
57
|
* const { attributes, isDragging, listeners, setActivatorNodeRef, setNodeRef } = useSortable({ id });
|
|
@@ -28,6 +28,11 @@ import { Box } from "@chakra-ui/react/box";
|
|
|
28
28
|
* </BitkitDraggableCard>
|
|
29
29
|
* ```
|
|
30
30
|
*
|
|
31
|
+
* @example Read-only (a plain card, e.g. when the list can't be reordered)
|
|
32
|
+
* ```tsx
|
|
33
|
+
* <BitkitDraggableCard state="readOnly">{children}</BitkitDraggableCard>
|
|
34
|
+
* ```
|
|
35
|
+
*
|
|
31
36
|
* @example Handle-only drag with `@dnd-kit/core` / `@dnd-kit/sortable` (pass handleProps and handleRef)
|
|
32
37
|
* ```tsx
|
|
33
38
|
* const { attributes, isDragging, listeners, setActivatorNodeRef, setNodeRef } = useSortable({ id });
|
|
@@ -43,31 +48,36 @@ import { Box } from "@chakra-ui/react/box";
|
|
|
43
48
|
* ```
|
|
44
49
|
*/
|
|
45
50
|
var BitkitDraggableCard = forwardRef((props, ref) => {
|
|
46
|
-
const { children, css, handleProps, handleRef, isDragging = false, isDropTarget = false, ...rest } = props;
|
|
47
|
-
const
|
|
51
|
+
const { children, css, handleProps, handleRef, isDragging = false, isDropTarget = false, state, ...rest } = props;
|
|
52
|
+
const isReadOnly = state === "readOnly";
|
|
53
|
+
const dragMode = isReadOnly ? "none" : !handleRef && !handleProps ? "card" : "handle";
|
|
48
54
|
const styles = useSlotRecipe({ key: "draggableCard" })({
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
55
|
+
dragMode,
|
|
56
|
+
isDragging: !isReadOnly && isDragging,
|
|
57
|
+
isDropTarget: !isReadOnly && isDropTarget
|
|
52
58
|
});
|
|
53
59
|
return /* @__PURE__ */ jsxs(Box, {
|
|
54
60
|
ref,
|
|
55
61
|
css: [styles.root, css],
|
|
56
62
|
...rest,
|
|
57
|
-
children: [
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
63
|
+
children: [
|
|
64
|
+
dragMode === "card" && /* @__PURE__ */ jsx(chakra.div, {
|
|
65
|
+
css: styles.handle,
|
|
66
|
+
children: /* @__PURE__ */ jsx(IconDragHandle, { size: "16" })
|
|
67
|
+
}),
|
|
68
|
+
dragMode === "handle" && /* @__PURE__ */ jsx(chakra.button, {
|
|
69
|
+
"aria-label": "Drag handle",
|
|
70
|
+
...handleProps,
|
|
71
|
+
ref: handleRef,
|
|
72
|
+
type: "button",
|
|
73
|
+
css: styles.handle,
|
|
74
|
+
children: /* @__PURE__ */ jsx(IconDragHandle, { size: "16" })
|
|
75
|
+
}),
|
|
76
|
+
/* @__PURE__ */ jsx(Box, {
|
|
77
|
+
css: styles.content,
|
|
78
|
+
children
|
|
79
|
+
})
|
|
80
|
+
]
|
|
71
81
|
});
|
|
72
82
|
});
|
|
73
83
|
BitkitDraggableCard.displayName = "BitkitDraggableCard";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BitkitDraggableCard.js","names":[],"sources":["../../../lib/components/BitkitDraggableCard/BitkitDraggableCard.tsx"],"sourcesContent":["import { Box, type BoxProps } from '@chakra-ui/react/box';\nimport { chakra, useSlotRecipe } from '@chakra-ui/react/styled-system';\nimport { type ComponentPropsWithoutRef, forwardRef, type ReactNode, type Ref } from 'react';\n\nimport IconDragHandle from '../../icons/IconDragHandle';\n\n// ----- Props -----\n\nexport interface BitkitDraggableCardProps extends Omit<BoxProps, 'children'> {\n children: ReactNode;\n /**\n * Props spread onto the drag handle `<button>` — pass `{ ...attributes, ...listeners }` from `@dnd-kit/core`'s\n * `useSortable()` / `useDraggable()` here. When provided, only the handle initiates drag. Overrides the default\n * `aria-label=\"Drag handle\"`, so name what is being reordered (e.g. `aria-label=\"Reorder trigger\"`).\n */\n handleProps?: Omit<ComponentPropsWithoutRef<'button'>, 'children' | 'type'>;\n /**\n * Ref for the drag handle `<button>` — pass `handleRef` from `@dnd-kit/react`'s `useSortable()`, or\n * `setActivatorNodeRef` from `@dnd-kit/core`'s. When provided, only the handle initiates drag.\n */\n handleRef?: Ref<HTMLButtonElement>;\n /** Whether this card is currently being dragged */\n isDragging?: boolean;\n /** Whether this card is a drop target placeholder */\n isDropTarget?: boolean;\n}\n\n// ----- Component -----\n\n/**\n * A card with a drag handle, designed for use with `@dnd-kit/react` or `@dnd-kit/core`.\n *\n * The component is purely presentational — it does not depend on `@dnd-kit`.\n * Pass the refs, handle props and state flags from `useSortable` (or `useDraggable`) to wire it up.\n *\n * @example Full-card drag (default — no `handleRef` / `handleProps`, the entire card is draggable)\n * ```tsx\n * const { ref, isDragSource, isDropTarget } = useSortable({ id, index });\n *\n * <BitkitDraggableCard ref={ref} isDragging={isDragSource} isDropTarget={isDropTarget}>\n * {children}\n * </BitkitDraggableCard>\n * ```\n *\n * @example Handle-only drag (pass handleRef to restrict drag to the handle)\n * ```tsx\n * const { ref, handleRef, isDragSource, isDropTarget } = useSortable({ id, index });\n *\n * <BitkitDraggableCard ref={ref} handleRef={handleRef} isDragging={isDragSource} isDropTarget={isDropTarget}>\n * {children}\n * </BitkitDraggableCard>\n * ```\n *\n * @example Handle-only drag with `@dnd-kit/core` / `@dnd-kit/sortable` (pass handleProps and handleRef)\n * ```tsx\n * const { attributes, isDragging, listeners, setActivatorNodeRef, setNodeRef } = useSortable({ id });\n *\n * <BitkitDraggableCard\n * ref={setNodeRef}\n * handleProps={{ ...attributes, ...listeners, 'aria-label': 'Reorder trigger' }}\n * handleRef={setActivatorNodeRef}\n * isDragging={isDragging}\n * >\n * {children}\n * </BitkitDraggableCard>\n * ```\n */\nconst BitkitDraggableCard = forwardRef<HTMLDivElement, BitkitDraggableCardProps>((props, ref) => {\n const { children, css, handleProps, handleRef, isDragging = false, isDropTarget = false, ...rest } = props;\n\n const isFullCardDrag = !handleRef && !handleProps;\n const recipe = useSlotRecipe({ key: 'draggableCard' });\n const styles = recipe({ isDragging
|
|
1
|
+
{"version":3,"file":"BitkitDraggableCard.js","names":[],"sources":["../../../lib/components/BitkitDraggableCard/BitkitDraggableCard.tsx"],"sourcesContent":["import { Box, type BoxProps } from '@chakra-ui/react/box';\nimport { chakra, useSlotRecipe } from '@chakra-ui/react/styled-system';\nimport { type ComponentPropsWithoutRef, forwardRef, type ReactNode, type Ref } from 'react';\n\nimport IconDragHandle from '../../icons/IconDragHandle';\n\n// ----- Props -----\n\nexport interface BitkitDraggableCardProps extends Omit<BoxProps, 'children'> {\n children: ReactNode;\n /**\n * Props spread onto the drag handle `<button>` — pass `{ ...attributes, ...listeners }` from `@dnd-kit/core`'s\n * `useSortable()` / `useDraggable()` here. When provided, only the handle initiates drag. Overrides the default\n * `aria-label=\"Drag handle\"`, so name what is being reordered (e.g. `aria-label=\"Reorder trigger\"`).\n */\n handleProps?: Omit<ComponentPropsWithoutRef<'button'>, 'children' | 'type'>;\n /**\n * Ref for the drag handle `<button>` — pass `handleRef` from `@dnd-kit/react`'s `useSortable()`, or\n * `setActivatorNodeRef` from `@dnd-kit/core`'s. When provided, only the handle initiates drag.\n */\n handleRef?: Ref<HTMLButtonElement>;\n /** Whether this card is currently being dragged */\n isDragging?: boolean;\n /** Whether this card is a drop target placeholder */\n isDropTarget?: boolean;\n /**\n * `readOnly` renders a plain card: no drag handle, no hover or drag styles. `handleProps`, `handleRef`,\n * `isDragging` and `isDropTarget` are ignored.\n */\n state?: 'readOnly';\n}\n\n// ----- Component -----\n\n/**\n * A card with a drag handle, designed for use with `@dnd-kit/react` or `@dnd-kit/core`.\n *\n * The component is purely presentational — it does not depend on `@dnd-kit`.\n * Pass the refs, handle props and state flags from `useSortable` (or `useDraggable`) to wire it up.\n *\n * @example Full-card drag (default — no `handleRef` / `handleProps`, the entire card is draggable)\n * ```tsx\n * const { ref, isDragSource, isDropTarget } = useSortable({ id, index });\n *\n * <BitkitDraggableCard ref={ref} isDragging={isDragSource} isDropTarget={isDropTarget}>\n * {children}\n * </BitkitDraggableCard>\n * ```\n *\n * @example Handle-only drag (pass handleRef to restrict drag to the handle)\n * ```tsx\n * const { ref, handleRef, isDragSource, isDropTarget } = useSortable({ id, index });\n *\n * <BitkitDraggableCard ref={ref} handleRef={handleRef} isDragging={isDragSource} isDropTarget={isDropTarget}>\n * {children}\n * </BitkitDraggableCard>\n * ```\n *\n * @example Read-only (a plain card, e.g. when the list can't be reordered)\n * ```tsx\n * <BitkitDraggableCard state=\"readOnly\">{children}</BitkitDraggableCard>\n * ```\n *\n * @example Handle-only drag with `@dnd-kit/core` / `@dnd-kit/sortable` (pass handleProps and handleRef)\n * ```tsx\n * const { attributes, isDragging, listeners, setActivatorNodeRef, setNodeRef } = useSortable({ id });\n *\n * <BitkitDraggableCard\n * ref={setNodeRef}\n * handleProps={{ ...attributes, ...listeners, 'aria-label': 'Reorder trigger' }}\n * handleRef={setActivatorNodeRef}\n * isDragging={isDragging}\n * >\n * {children}\n * </BitkitDraggableCard>\n * ```\n */\nconst BitkitDraggableCard = forwardRef<HTMLDivElement, BitkitDraggableCardProps>((props, ref) => {\n const { children, css, handleProps, handleRef, isDragging = false, isDropTarget = false, state, ...rest } = props;\n\n const isReadOnly = state === 'readOnly';\n const isFullCardDrag = !handleRef && !handleProps;\n const dragMode = isReadOnly ? 'none' : isFullCardDrag ? 'card' : 'handle';\n const recipe = useSlotRecipe({ key: 'draggableCard' });\n const styles = recipe({\n dragMode,\n isDragging: !isReadOnly && isDragging,\n isDropTarget: !isReadOnly && isDropTarget,\n });\n\n return (\n <Box ref={ref} css={[styles.root, css]} {...rest}>\n {dragMode === 'card' && (\n <chakra.div css={styles.handle}>\n <IconDragHandle size=\"16\" />\n </chakra.div>\n )}\n {dragMode === 'handle' && (\n <chakra.button aria-label=\"Drag handle\" {...handleProps} ref={handleRef} type=\"button\" css={styles.handle}>\n <IconDragHandle size=\"16\" />\n </chakra.button>\n )}\n <Box css={styles.content}>{children}</Box>\n </Box>\n );\n});\n\nBitkitDraggableCard.displayName = 'BitkitDraggableCard';\n\nexport default BitkitDraggableCard;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6EA,IAAM,sBAAsB,YAAsD,OAAO,QAAQ;CAC/F,MAAM,EAAE,UAAU,KAAK,aAAa,WAAW,aAAa,OAAO,eAAe,OAAO,OAAO,GAAG,SAAS;CAE5G,MAAM,aAAa,UAAU;CAE7B,MAAM,WAAW,aAAa,SADP,CAAC,aAAa,CAAC,cACkB,SAAS;CAEjE,MAAM,SADS,cAAc,EAAE,KAAK,gBAAgB,CACrC,CAAA,CAAO;EACpB;EACA,YAAY,CAAC,cAAc;EAC3B,cAAc,CAAC,cAAc;CAC/B,CAAC;CAED,OACE,qBAAC,KAAD;EAAU;EAAK,KAAK,CAAC,OAAO,MAAM,GAAG;EAAG,GAAI;EAA5C,UAAA;GACG,aAAa,UACZ,oBAAC,OAAO,KAAR;IAAY,KAAK,OAAO;IACtB,UAAA,oBAAC,gBAAD,EAAgB,MAAK,KAAM,CAAA;GACjB,CAAA;GAEb,aAAa,YACZ,oBAAC,OAAO,QAAR;IAAe,cAAW;IAAc,GAAI;IAAa,KAAK;IAAW,MAAK;IAAS,KAAK,OAAO;IACjG,UAAA,oBAAC,gBAAD,EAAgB,MAAK,KAAM,CAAA;GACd,CAAA;GAEjB,oBAAC,KAAD;IAAK,KAAK,OAAO;IAAU;GAAc,CAAA;EACtC;;AAET,CAAC;AAED,oBAAoB,cAAc"}
|
|
@@ -1,34 +1,6 @@
|
|
|
1
1
|
declare const draggableCardSlotRecipe: import('@chakra-ui/react').SlotRecipeDefinition<"content" | "root" | "handle", {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
root: {
|
|
5
|
-
borderColor: "border/strong";
|
|
6
|
-
boxShadow: "elevation/lg";
|
|
7
|
-
cursor: "grabbing";
|
|
8
|
-
};
|
|
9
|
-
handle: {
|
|
10
|
-
color: "icon/secondary";
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
isDropTarget: {
|
|
15
|
-
true: {
|
|
16
|
-
root: {
|
|
17
|
-
background: "background/secondary";
|
|
18
|
-
borderColor: "border/strong";
|
|
19
|
-
borderStyle: "dashed";
|
|
20
|
-
boxShadow: "none";
|
|
21
|
-
};
|
|
22
|
-
handle: {
|
|
23
|
-
visibility: "hidden";
|
|
24
|
-
};
|
|
25
|
-
content: {
|
|
26
|
-
visibility: "hidden";
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
};
|
|
30
|
-
isFullCardDrag: {
|
|
31
|
-
true: {
|
|
2
|
+
dragMode: {
|
|
3
|
+
card: {
|
|
32
4
|
root: {
|
|
33
5
|
cursor: "grab";
|
|
34
6
|
_hover: {
|
|
@@ -48,7 +20,7 @@ declare const draggableCardSlotRecipe: import('@chakra-ui/react').SlotRecipeDefi
|
|
|
48
20
|
paddingInlineStart: number;
|
|
49
21
|
};
|
|
50
22
|
};
|
|
51
|
-
|
|
23
|
+
handle: {
|
|
52
24
|
root: {
|
|
53
25
|
_hover: {
|
|
54
26
|
borderColor: "border/regular";
|
|
@@ -74,25 +46,44 @@ declare const draggableCardSlotRecipe: import('@chakra-ui/react').SlotRecipeDefi
|
|
|
74
46
|
_active: {
|
|
75
47
|
background: "background/active";
|
|
76
48
|
};
|
|
77
|
-
_disabled: {
|
|
78
|
-
color: "icon/disabled";
|
|
79
|
-
cursor: "not-allowed";
|
|
80
|
-
_hover: {
|
|
81
|
-
background: "transparent";
|
|
82
|
-
color: "icon/disabled";
|
|
83
|
-
_active: {
|
|
84
|
-
background: "transparent";
|
|
85
|
-
};
|
|
86
|
-
};
|
|
87
|
-
_active: {
|
|
88
|
-
background: "transparent";
|
|
89
|
-
};
|
|
90
|
-
};
|
|
91
49
|
};
|
|
92
50
|
content: {
|
|
93
51
|
paddingInlineStart: "8";
|
|
94
52
|
};
|
|
95
53
|
};
|
|
54
|
+
none: {
|
|
55
|
+
content: {
|
|
56
|
+
paddingInlineStart: "16";
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
isDragging: {
|
|
61
|
+
true: {
|
|
62
|
+
root: {
|
|
63
|
+
borderColor: "border/strong";
|
|
64
|
+
boxShadow: "elevation/lg";
|
|
65
|
+
cursor: "grabbing";
|
|
66
|
+
};
|
|
67
|
+
handle: {
|
|
68
|
+
color: "icon/secondary";
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
isDropTarget: {
|
|
73
|
+
true: {
|
|
74
|
+
root: {
|
|
75
|
+
background: "background/secondary";
|
|
76
|
+
borderColor: "border/strong";
|
|
77
|
+
borderStyle: "dashed";
|
|
78
|
+
boxShadow: "none";
|
|
79
|
+
};
|
|
80
|
+
handle: {
|
|
81
|
+
visibility: "hidden";
|
|
82
|
+
};
|
|
83
|
+
content: {
|
|
84
|
+
visibility: "hidden";
|
|
85
|
+
};
|
|
86
|
+
};
|
|
96
87
|
};
|
|
97
88
|
}>;
|
|
98
89
|
export default draggableCardSlotRecipe;
|
|
@@ -35,26 +35,8 @@ var draggableCardSlotRecipe = defineSlotRecipe({
|
|
|
35
35
|
}
|
|
36
36
|
},
|
|
37
37
|
variants: {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
borderColor: "border/strong",
|
|
41
|
-
boxShadow: "elevation/lg",
|
|
42
|
-
cursor: "grabbing"
|
|
43
|
-
},
|
|
44
|
-
handle: { color: "icon/secondary" }
|
|
45
|
-
} },
|
|
46
|
-
isDropTarget: { true: {
|
|
47
|
-
root: {
|
|
48
|
-
background: "background/secondary",
|
|
49
|
-
borderColor: "border/strong",
|
|
50
|
-
borderStyle: "dashed",
|
|
51
|
-
boxShadow: "none"
|
|
52
|
-
},
|
|
53
|
-
handle: { visibility: "hidden" },
|
|
54
|
-
content: { visibility: "hidden" }
|
|
55
|
-
} },
|
|
56
|
-
isFullCardDrag: {
|
|
57
|
-
true: {
|
|
38
|
+
dragMode: {
|
|
39
|
+
card: {
|
|
58
40
|
root: {
|
|
59
41
|
cursor: "grab",
|
|
60
42
|
_hover: {
|
|
@@ -66,7 +48,7 @@ var draggableCardSlotRecipe = defineSlotRecipe({
|
|
|
66
48
|
handle: { pointerEvents: "none" },
|
|
67
49
|
content: { paddingInlineStart: 0 }
|
|
68
50
|
},
|
|
69
|
-
|
|
51
|
+
handle: {
|
|
70
52
|
root: { _hover: { borderColor: "border/regular" } },
|
|
71
53
|
handle: {
|
|
72
54
|
appearance: "none",
|
|
@@ -81,34 +63,43 @@ var draggableCardSlotRecipe = defineSlotRecipe({
|
|
|
81
63
|
color: "icon/secondary",
|
|
82
64
|
_active: { background: "background/active" }
|
|
83
65
|
},
|
|
84
|
-
_active: { background: "background/active" }
|
|
85
|
-
_disabled: {
|
|
86
|
-
color: "icon/disabled",
|
|
87
|
-
cursor: "not-allowed",
|
|
88
|
-
_hover: {
|
|
89
|
-
background: "transparent",
|
|
90
|
-
color: "icon/disabled",
|
|
91
|
-
_active: { background: "transparent" }
|
|
92
|
-
},
|
|
93
|
-
_active: { background: "transparent" }
|
|
94
|
-
}
|
|
66
|
+
_active: { background: "background/active" }
|
|
95
67
|
},
|
|
96
68
|
content: { paddingInlineStart: "8" }
|
|
97
|
-
}
|
|
98
|
-
|
|
69
|
+
},
|
|
70
|
+
none: { content: { paddingInlineStart: "16" } }
|
|
71
|
+
},
|
|
72
|
+
isDragging: { true: {
|
|
73
|
+
root: {
|
|
74
|
+
borderColor: "border/strong",
|
|
75
|
+
boxShadow: "elevation/lg",
|
|
76
|
+
cursor: "grabbing"
|
|
77
|
+
},
|
|
78
|
+
handle: { color: "icon/secondary" }
|
|
79
|
+
} },
|
|
80
|
+
isDropTarget: { true: {
|
|
81
|
+
root: {
|
|
82
|
+
background: "background/secondary",
|
|
83
|
+
borderColor: "border/strong",
|
|
84
|
+
borderStyle: "dashed",
|
|
85
|
+
boxShadow: "none"
|
|
86
|
+
},
|
|
87
|
+
handle: { visibility: "hidden" },
|
|
88
|
+
content: { visibility: "hidden" }
|
|
89
|
+
} }
|
|
99
90
|
},
|
|
100
91
|
compoundVariants: [
|
|
101
92
|
{
|
|
93
|
+
dragMode: "card",
|
|
102
94
|
isDragging: true,
|
|
103
|
-
isFullCardDrag: true,
|
|
104
95
|
css: { root: {
|
|
105
96
|
cursor: "grabbing",
|
|
106
97
|
_hover: { borderColor: "border/strong" }
|
|
107
98
|
} }
|
|
108
99
|
},
|
|
109
100
|
{
|
|
101
|
+
dragMode: "handle",
|
|
110
102
|
isDragging: true,
|
|
111
|
-
isFullCardDrag: false,
|
|
112
103
|
css: {
|
|
113
104
|
root: { _hover: { borderColor: "border/strong" } },
|
|
114
105
|
handle: {
|
|
@@ -119,23 +110,23 @@ var draggableCardSlotRecipe = defineSlotRecipe({
|
|
|
119
110
|
}
|
|
120
111
|
},
|
|
121
112
|
{
|
|
113
|
+
dragMode: "card",
|
|
122
114
|
isDropTarget: true,
|
|
123
|
-
isFullCardDrag: true,
|
|
124
115
|
css: { root: {
|
|
125
116
|
cursor: "default",
|
|
126
117
|
_hover: { borderColor: "border/strong" }
|
|
127
118
|
} }
|
|
128
119
|
},
|
|
129
120
|
{
|
|
121
|
+
dragMode: "handle",
|
|
130
122
|
isDropTarget: true,
|
|
131
|
-
isFullCardDrag: false,
|
|
132
123
|
css: { root: { _hover: { borderColor: "border/strong" } } }
|
|
133
124
|
}
|
|
134
125
|
],
|
|
135
126
|
defaultVariants: {
|
|
127
|
+
dragMode: "card",
|
|
136
128
|
isDragging: false,
|
|
137
|
-
isDropTarget: false
|
|
138
|
-
isFullCardDrag: true
|
|
129
|
+
isDropTarget: false
|
|
139
130
|
}
|
|
140
131
|
});
|
|
141
132
|
export { draggableCardSlotRecipe as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DraggableCard.recipe.js","names":[],"sources":["../../../lib/theme/slot-recipes/DraggableCard.recipe.ts"],"sourcesContent":["import { defineSlotRecipe } from '@chakra-ui/react/styled-system';\n\nconst draggableCardSlotRecipe = defineSlotRecipe({\n className: 'draggable-card',\n slots: ['root', 'handle', 'content'],\n base: {\n root: {\n alignItems: 'stretch',\n backgroundColor: 'background/primary',\n border: '1px solid',\n borderColor: 'border/minimal',\n borderRadius: '8',\n boxShadow: 'elevation/sm',\n display: 'flex',\n overflow: 'hidden',\n },\n handle: {\n alignItems: 'center',\n color: 'icon/tertiary',\n display: 'flex',\n flexShrink: 0,\n justifyContent: 'center',\n width: '24',\n },\n content: {\n flex: 1,\n minWidth: 0,\n overflow: 'hidden',\n paddingBlock: '16',\n paddingInlineEnd: '16',\n },\n },\n variants: {\n
|
|
1
|
+
{"version":3,"file":"DraggableCard.recipe.js","names":[],"sources":["../../../lib/theme/slot-recipes/DraggableCard.recipe.ts"],"sourcesContent":["import { defineSlotRecipe } from '@chakra-ui/react/styled-system';\n\nconst draggableCardSlotRecipe = defineSlotRecipe({\n className: 'draggable-card',\n slots: ['root', 'handle', 'content'],\n base: {\n root: {\n alignItems: 'stretch',\n backgroundColor: 'background/primary',\n border: '1px solid',\n borderColor: 'border/minimal',\n borderRadius: '8',\n boxShadow: 'elevation/sm',\n display: 'flex',\n overflow: 'hidden',\n },\n handle: {\n alignItems: 'center',\n color: 'icon/tertiary',\n display: 'flex',\n flexShrink: 0,\n justifyContent: 'center',\n width: '24',\n },\n content: {\n flex: 1,\n minWidth: 0,\n overflow: 'hidden',\n paddingBlock: '16',\n paddingInlineEnd: '16',\n },\n },\n variants: {\n dragMode: {\n card: {\n root: {\n cursor: 'grab',\n _hover: {\n borderColor: 'border/regular',\n _active: {\n borderColor: 'border/strong',\n },\n },\n _active: {\n borderColor: 'border/strong',\n },\n },\n handle: {\n pointerEvents: 'none',\n },\n content: {\n paddingInlineStart: 0,\n },\n },\n handle: {\n root: {\n _hover: {\n borderColor: 'border/regular',\n },\n },\n handle: {\n appearance: 'none',\n background: 'transparent',\n border: 'none',\n cursor: 'grab',\n focusVisibleRing: 'none',\n touchAction: 'none',\n _focusVisible: {\n boxShadow: 'inset 0 0 0 var(--focus-ring-width) var(--focus-ring-color)',\n },\n _hover: {\n background: 'background/hover',\n color: 'icon/secondary',\n _active: {\n background: 'background/active',\n },\n },\n _active: {\n background: 'background/active',\n },\n },\n content: {\n paddingInlineStart: '8',\n },\n },\n none: {\n content: {\n paddingInlineStart: '16',\n },\n },\n },\n isDragging: {\n true: {\n root: {\n borderColor: 'border/strong',\n boxShadow: 'elevation/lg',\n cursor: 'grabbing',\n },\n handle: {\n color: 'icon/secondary',\n },\n },\n },\n isDropTarget: {\n true: {\n root: {\n background: 'background/secondary',\n borderColor: 'border/strong',\n borderStyle: 'dashed',\n boxShadow: 'none',\n },\n handle: {\n visibility: 'hidden',\n },\n content: {\n visibility: 'hidden',\n },\n },\n },\n },\n compoundVariants: [\n {\n dragMode: 'card',\n isDragging: true,\n css: {\n root: {\n cursor: 'grabbing',\n _hover: {\n borderColor: 'border/strong',\n },\n },\n },\n },\n {\n dragMode: 'handle',\n isDragging: true,\n css: {\n root: {\n _hover: {\n borderColor: 'border/strong',\n },\n },\n handle: {\n background: 'background/active',\n cursor: 'grabbing',\n _hover: {\n background: 'background/active',\n },\n },\n },\n },\n {\n dragMode: 'card',\n isDropTarget: true,\n css: {\n root: {\n cursor: 'default',\n _hover: {\n borderColor: 'border/strong',\n },\n },\n },\n },\n {\n dragMode: 'handle',\n isDropTarget: true,\n css: {\n root: {\n _hover: {\n borderColor: 'border/strong',\n },\n },\n },\n },\n ],\n defaultVariants: {\n dragMode: 'card',\n isDragging: false,\n isDropTarget: false,\n },\n});\n\nexport default draggableCardSlotRecipe;\n"],"mappings":";;AAEA,IAAM,0BAA0B,iBAAiB;CAC/C,WAAW;CACX,OAAO;EAAC;EAAQ;EAAU;CAAS;CACnC,MAAM;EACJ,MAAM;GACJ,YAAY;GACZ,iBAAiB;GACjB,QAAQ;GACR,aAAa;GACb,cAAc;GACd,WAAW;GACX,SAAS;GACT,UAAU;EACZ;EACA,QAAQ;GACN,YAAY;GACZ,OAAO;GACP,SAAS;GACT,YAAY;GACZ,gBAAgB;GAChB,OAAO;EACT;EACA,SAAS;GACP,MAAM;GACN,UAAU;GACV,UAAU;GACV,cAAc;GACd,kBAAkB;EACpB;CACF;CACA,UAAU;EACR,UAAU;GACR,MAAM;IACJ,MAAM;KACJ,QAAQ;KACR,QAAQ;MACN,aAAa;MACb,SAAS,EACP,aAAa,gBACf;KACF;KACA,SAAS,EACP,aAAa,gBACf;IACF;IACA,QAAQ,EACN,eAAe,OACjB;IACA,SAAS,EACP,oBAAoB,EACtB;GACF;GACA,QAAQ;IACN,MAAM,EACJ,QAAQ,EACN,aAAa,iBACf,EACF;IACA,QAAQ;KACN,YAAY;KACZ,YAAY;KACZ,QAAQ;KACR,QAAQ;KACR,kBAAkB;KAClB,aAAa;KACb,eAAe,EACb,WAAW,8DACb;KACA,QAAQ;MACN,YAAY;MACZ,OAAO;MACP,SAAS,EACP,YAAY,oBACd;KACF;KACA,SAAS,EACP,YAAY,oBACd;IACF;IACA,SAAS,EACP,oBAAoB,IACtB;GACF;GACA,MAAM,EACJ,SAAS,EACP,oBAAoB,KACtB,EACF;EACF;EACA,YAAY,EACV,MAAM;GACJ,MAAM;IACJ,aAAa;IACb,WAAW;IACX,QAAQ;GACV;GACA,QAAQ,EACN,OAAO,iBACT;EACF,EACF;EACA,cAAc,EACZ,MAAM;GACJ,MAAM;IACJ,YAAY;IACZ,aAAa;IACb,aAAa;IACb,WAAW;GACb;GACA,QAAQ,EACN,YAAY,SACd;GACA,SAAS,EACP,YAAY,SACd;EACF,EACF;CACF;CACA,kBAAkB;EAChB;GACE,UAAU;GACV,YAAY;GACZ,KAAK,EACH,MAAM;IACJ,QAAQ;IACR,QAAQ,EACN,aAAa,gBACf;GACF,EACF;EACF;EACA;GACE,UAAU;GACV,YAAY;GACZ,KAAK;IACH,MAAM,EACJ,QAAQ,EACN,aAAa,gBACf,EACF;IACA,QAAQ;KACN,YAAY;KACZ,QAAQ;KACR,QAAQ,EACN,YAAY,oBACd;IACF;GACF;EACF;EACA;GACE,UAAU;GACV,cAAc;GACd,KAAK,EACH,MAAM;IACJ,QAAQ;IACR,QAAQ,EACN,aAAa,gBACf;GACF,EACF;EACF;EACA;GACE,UAAU;GACV,cAAc;GACd,KAAK,EACH,MAAM,EACJ,QAAQ,EACN,aAAa,gBACf,EACF,EACF;EACF;CACF;CACA,iBAAiB;EACf,UAAU;EACV,YAAY;EACZ,cAAc;CAChB;AACF,CAAC"}
|
|
@@ -41,7 +41,7 @@ declare const drawerSlotRecipe: import('@chakra-ui/react').SlotRecipeDefinition<
|
|
|
41
41
|
paddingBlockEnd: "24";
|
|
42
42
|
paddingBlockStart: "8";
|
|
43
43
|
paddingInline: "24";
|
|
44
|
-
'
|
|
44
|
+
'*:has([role=tablist]) ~ &': {
|
|
45
45
|
paddingBlockStart: "24";
|
|
46
46
|
};
|
|
47
47
|
};
|
|
@@ -124,7 +124,7 @@ var drawerSlotRecipe = defineSlotRecipe({
|
|
|
124
124
|
paddingBlockEnd: "24",
|
|
125
125
|
paddingBlockStart: "8",
|
|
126
126
|
paddingInline: "24",
|
|
127
|
-
"
|
|
127
|
+
"*:has([role=tablist]) ~ &": { paddingBlockStart: "24" }
|
|
128
128
|
},
|
|
129
129
|
closeTrigger: {
|
|
130
130
|
height: "32",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Drawer.recipe.js","names":[],"sources":["../../../lib/theme/slot-recipes/Drawer.recipe.ts"],"sourcesContent":["import { drawerAnatomy } from '@chakra-ui/react/anatomy';\nimport { defineSlotRecipe } from '@chakra-ui/react/styled-system';\n\nimport { rem } from '../themeUtils';\n\nconst drawerSlotRecipe = defineSlotRecipe({\n className: 'drawer',\n slots: drawerAnatomy.keys(),\n base: {\n backdrop: {\n background: 'utilities/overlay-light',\n inset: 0,\n position: 'fixed',\n zIndex: 'calc({zIndex.dialogOverlay} + var(--layer-index, 0))',\n _open: {\n animationName: 'fade-in',\n animationDuration: 'slow',\n },\n _closed: {\n animationName: 'fade-out',\n animationDuration: 'moderate',\n },\n },\n positioner: {\n alignItems: 'stretch',\n display: 'flex',\n inset: 0,\n justifyContent: 'flex-end',\n overscrollBehaviorY: 'none',\n position: 'fixed',\n zIndex: 'calc({zIndex.dialog} + var(--layer-index, 0))',\n },\n content: {\n background: 'background/primary',\n display: 'flex',\n flexDirection: 'column',\n maxHeight: '100dvh',\n outline: 'none',\n position: 'relative',\n _open: {\n animationDuration: 'slowest',\n animationName: {\n base: 'slide-from-right-full, fade-in',\n _rtl: 'slide-from-left-full, fade-in',\n },\n animationTimingFunction: 'ease-in-smooth',\n },\n _closed: {\n animationDuration: 'slower',\n animationName: {\n base: 'slide-to-right-full, fade-out',\n _rtl: 'slide-to-left-full, fade-out',\n },\n animationTimingFunction: 'ease-in-smooth',\n },\n },\n header: {\n paddingBlockEnd: '8',\n paddingBlockStart: '24',\n paddingInline: '24',\n // A tab list in the header closes it off with its own baseline.\n '&:has([role=tablist])': {\n paddingBlockEnd: 0,\n },\n },\n body: {\n flex: '1',\n overflow: 'auto',\n },\n footer: {\n borderBlockStartColor: 'border/regular',\n borderBlockStartWidth: '1',\n paddingBlock: '12',\n },\n title: {\n color: 'text/tertiary',\n flex: '1',\n // The close button is absolutely positioned, so the title keeps clear of it.\n paddingInlineEnd: '48',\n textStyle: 'heading/h6',\n },\n description: {},\n closeTrigger: {\n alignItems: 'center',\n borderRadius: '4',\n color: 'icon/primary',\n cursor: 'pointer',\n display: 'inline-flex',\n height: '40',\n justifyContent: 'center',\n position: 'absolute',\n width: '40',\n _hover: {\n backgroundColor: 'color/neutral/subtle',\n },\n _active: {\n backgroundColor: 'color/neutral/moderate',\n },\n },\n },\n variants: {\n variant: {\n // One inline padding for header, body and footer, so their content lines up: 16 on mobile, 24 from tablet.\n docked: {\n body: {\n padding: { base: '16', tablet: '24' },\n },\n closeTrigger: {\n insetEnd: rem(18),\n top: '12',\n },\n content: {\n width: { base: '100vw', tablet: rem(320) },\n },\n footer: {\n paddingInline: { base: '16', tablet: '24' },\n },\n header: {\n paddingInline: { base: '16', tablet: '24' },\n // Tabs sit 8px from the edge, so their baseline runs nearly full width.\n '& :has(> [role=tablist])': {\n marginInline: { base: '-8', tablet: '-16' },\n },\n },\n },\n floating: {\n body: {\n // The bottom 24 is the body's, not the footer's, so a drawer without a footer still ends on it.\n paddingBlockEnd: '24',\n paddingBlockStart: '8',\n paddingInline: '24',\n '
|
|
1
|
+
{"version":3,"file":"Drawer.recipe.js","names":[],"sources":["../../../lib/theme/slot-recipes/Drawer.recipe.ts"],"sourcesContent":["import { drawerAnatomy } from '@chakra-ui/react/anatomy';\nimport { defineSlotRecipe } from '@chakra-ui/react/styled-system';\n\nimport { rem } from '../themeUtils';\n\nconst drawerSlotRecipe = defineSlotRecipe({\n className: 'drawer',\n slots: drawerAnatomy.keys(),\n base: {\n backdrop: {\n background: 'utilities/overlay-light',\n inset: 0,\n position: 'fixed',\n zIndex: 'calc({zIndex.dialogOverlay} + var(--layer-index, 0))',\n _open: {\n animationName: 'fade-in',\n animationDuration: 'slow',\n },\n _closed: {\n animationName: 'fade-out',\n animationDuration: 'moderate',\n },\n },\n positioner: {\n alignItems: 'stretch',\n display: 'flex',\n inset: 0,\n justifyContent: 'flex-end',\n overscrollBehaviorY: 'none',\n position: 'fixed',\n zIndex: 'calc({zIndex.dialog} + var(--layer-index, 0))',\n },\n content: {\n background: 'background/primary',\n display: 'flex',\n flexDirection: 'column',\n maxHeight: '100dvh',\n outline: 'none',\n position: 'relative',\n _open: {\n animationDuration: 'slowest',\n animationName: {\n base: 'slide-from-right-full, fade-in',\n _rtl: 'slide-from-left-full, fade-in',\n },\n animationTimingFunction: 'ease-in-smooth',\n },\n _closed: {\n animationDuration: 'slower',\n animationName: {\n base: 'slide-to-right-full, fade-out',\n _rtl: 'slide-to-left-full, fade-out',\n },\n animationTimingFunction: 'ease-in-smooth',\n },\n },\n header: {\n paddingBlockEnd: '8',\n paddingBlockStart: '24',\n paddingInline: '24',\n // A tab list in the header closes it off with its own baseline.\n '&:has([role=tablist])': {\n paddingBlockEnd: 0,\n },\n },\n body: {\n flex: '1',\n overflow: 'auto',\n },\n footer: {\n borderBlockStartColor: 'border/regular',\n borderBlockStartWidth: '1',\n paddingBlock: '12',\n },\n title: {\n color: 'text/tertiary',\n flex: '1',\n // The close button is absolutely positioned, so the title keeps clear of it.\n paddingInlineEnd: '48',\n textStyle: 'heading/h6',\n },\n description: {},\n closeTrigger: {\n alignItems: 'center',\n borderRadius: '4',\n color: 'icon/primary',\n cursor: 'pointer',\n display: 'inline-flex',\n height: '40',\n justifyContent: 'center',\n position: 'absolute',\n width: '40',\n _hover: {\n backgroundColor: 'color/neutral/subtle',\n },\n _active: {\n backgroundColor: 'color/neutral/moderate',\n },\n },\n },\n variants: {\n variant: {\n // One inline padding for header, body and footer, so their content lines up: 16 on mobile, 24 from tablet.\n docked: {\n body: {\n padding: { base: '16', tablet: '24' },\n },\n closeTrigger: {\n insetEnd: rem(18),\n top: '12',\n },\n content: {\n width: { base: '100vw', tablet: rem(320) },\n },\n footer: {\n paddingInline: { base: '16', tablet: '24' },\n },\n header: {\n paddingInline: { base: '16', tablet: '24' },\n // Tabs sit 8px from the edge, so their baseline runs nearly full width.\n '& :has(> [role=tablist])': {\n marginInline: { base: '-8', tablet: '-16' },\n },\n },\n },\n floating: {\n body: {\n // The bottom 24 is the body's, not the footer's, so a drawer without a footer still ends on it.\n paddingBlockEnd: '24',\n paddingBlockStart: '8',\n paddingInline: '24',\n '*:has([role=tablist]) ~ &': {\n paddingBlockStart: '24',\n },\n },\n closeTrigger: {\n height: '32',\n insetEnd: '20',\n top: '20',\n width: '32',\n },\n positioner: {\n padding: '32',\n },\n content: {\n borderRadius: '12',\n boxShadow: 'elevation/lg',\n // A size lifts this cap through the variable, which also reaches a responsive `variant`'s tablet-scoped rule.\n maxWidth: `var(--drawer-floating-max-width, ${rem(700)})`,\n // 480 is the floating drawer's smallest step, so xxs and xs land on it too; on narrow screens it gives way to the viewport.\n minWidth: `min(100%, ${rem(480)})`,\n },\n header: {\n paddingBlockEnd: '16',\n paddingBlockStart: '24',\n paddingInline: '24',\n '& :has(> [role=tablist])': {\n marginInline: '-16',\n },\n },\n footer: {\n borderBlockStartColor: 'transparent',\n borderBlockStartWidth: 0,\n paddingBlockEnd: '24',\n // With the body's bottom 24, the gap above the footer stays 32.\n paddingBlockStart: '8',\n paddingInline: '24',\n },\n title: {\n color: 'text/primary',\n textStyle: 'heading/h3',\n },\n },\n },\n // Plain variants rather than compounds, so a size also works with a responsive `variant`, which compound variants\n // never match. Widths apply from tablet up; below that the variant's own width stays (docked: full width,\n // floating: sized to content).\n size: {\n xxs: { content: { '--drawer-floating-max-width': '100%', width: { tablet: rem(320) } } },\n xs: { content: { '--drawer-floating-max-width': '100%', width: { tablet: rem(360) } } },\n sm: { content: { '--drawer-floating-max-width': '100%', width: { tablet: rem(480) } } },\n md: { content: { '--drawer-floating-max-width': '100%', width: { tablet: rem(640) } } },\n lg: { content: { '--drawer-floating-max-width': '100%', width: { tablet: rem(800) } } },\n },\n },\n defaultVariants: {\n variant: 'docked',\n },\n});\n\nexport default drawerSlotRecipe;\n"],"mappings":"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"}
|
|
@@ -934,36 +934,8 @@ declare const slotRecipes: {
|
|
|
934
934
|
};
|
|
935
935
|
}>;
|
|
936
936
|
draggableCard: import('@chakra-ui/react').SlotRecipeDefinition<"content" | "root" | "handle", {
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
root: {
|
|
940
|
-
borderColor: "border/strong";
|
|
941
|
-
boxShadow: "elevation/lg";
|
|
942
|
-
cursor: "grabbing";
|
|
943
|
-
};
|
|
944
|
-
handle: {
|
|
945
|
-
color: "icon/secondary";
|
|
946
|
-
};
|
|
947
|
-
};
|
|
948
|
-
};
|
|
949
|
-
isDropTarget: {
|
|
950
|
-
true: {
|
|
951
|
-
root: {
|
|
952
|
-
background: "background/secondary";
|
|
953
|
-
borderColor: "border/strong";
|
|
954
|
-
borderStyle: "dashed";
|
|
955
|
-
boxShadow: "none";
|
|
956
|
-
};
|
|
957
|
-
handle: {
|
|
958
|
-
visibility: "hidden";
|
|
959
|
-
};
|
|
960
|
-
content: {
|
|
961
|
-
visibility: "hidden";
|
|
962
|
-
};
|
|
963
|
-
};
|
|
964
|
-
};
|
|
965
|
-
isFullCardDrag: {
|
|
966
|
-
true: {
|
|
937
|
+
dragMode: {
|
|
938
|
+
card: {
|
|
967
939
|
root: {
|
|
968
940
|
cursor: "grab";
|
|
969
941
|
_hover: {
|
|
@@ -983,7 +955,7 @@ declare const slotRecipes: {
|
|
|
983
955
|
paddingInlineStart: number;
|
|
984
956
|
};
|
|
985
957
|
};
|
|
986
|
-
|
|
958
|
+
handle: {
|
|
987
959
|
root: {
|
|
988
960
|
_hover: {
|
|
989
961
|
borderColor: "border/regular";
|
|
@@ -1009,25 +981,44 @@ declare const slotRecipes: {
|
|
|
1009
981
|
_active: {
|
|
1010
982
|
background: "background/active";
|
|
1011
983
|
};
|
|
1012
|
-
_disabled: {
|
|
1013
|
-
color: "icon/disabled";
|
|
1014
|
-
cursor: "not-allowed";
|
|
1015
|
-
_hover: {
|
|
1016
|
-
background: "transparent";
|
|
1017
|
-
color: "icon/disabled";
|
|
1018
|
-
_active: {
|
|
1019
|
-
background: "transparent";
|
|
1020
|
-
};
|
|
1021
|
-
};
|
|
1022
|
-
_active: {
|
|
1023
|
-
background: "transparent";
|
|
1024
|
-
};
|
|
1025
|
-
};
|
|
1026
984
|
};
|
|
1027
985
|
content: {
|
|
1028
986
|
paddingInlineStart: "8";
|
|
1029
987
|
};
|
|
1030
988
|
};
|
|
989
|
+
none: {
|
|
990
|
+
content: {
|
|
991
|
+
paddingInlineStart: "16";
|
|
992
|
+
};
|
|
993
|
+
};
|
|
994
|
+
};
|
|
995
|
+
isDragging: {
|
|
996
|
+
true: {
|
|
997
|
+
root: {
|
|
998
|
+
borderColor: "border/strong";
|
|
999
|
+
boxShadow: "elevation/lg";
|
|
1000
|
+
cursor: "grabbing";
|
|
1001
|
+
};
|
|
1002
|
+
handle: {
|
|
1003
|
+
color: "icon/secondary";
|
|
1004
|
+
};
|
|
1005
|
+
};
|
|
1006
|
+
};
|
|
1007
|
+
isDropTarget: {
|
|
1008
|
+
true: {
|
|
1009
|
+
root: {
|
|
1010
|
+
background: "background/secondary";
|
|
1011
|
+
borderColor: "border/strong";
|
|
1012
|
+
borderStyle: "dashed";
|
|
1013
|
+
boxShadow: "none";
|
|
1014
|
+
};
|
|
1015
|
+
handle: {
|
|
1016
|
+
visibility: "hidden";
|
|
1017
|
+
};
|
|
1018
|
+
content: {
|
|
1019
|
+
visibility: "hidden";
|
|
1020
|
+
};
|
|
1021
|
+
};
|
|
1031
1022
|
};
|
|
1032
1023
|
}>;
|
|
1033
1024
|
drawer: import('@chakra-ui/react').SlotRecipeDefinition<"content" | "body" | "footer" | "header" | "title" | "trigger" | "positioner" | "closeTrigger" | "description" | "backdrop", {
|
|
@@ -1073,7 +1064,7 @@ declare const slotRecipes: {
|
|
|
1073
1064
|
paddingBlockEnd: "24";
|
|
1074
1065
|
paddingBlockStart: "8";
|
|
1075
1066
|
paddingInline: "24";
|
|
1076
|
-
'
|
|
1067
|
+
'*:has([role=tablist]) ~ &': {
|
|
1077
1068
|
paddingBlockStart: "24";
|
|
1078
1069
|
};
|
|
1079
1070
|
};
|