@bitrise/bitkit-v2 0.3.544-beta.3440 → 0.3.544-beta.3442
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 +1 -1
- package/dist/components/BitkitDraggableCard/BitkitDraggableCard.js +1 -1
- package/dist/components/BitkitDraggableCard/BitkitDraggableCard.js.map +1 -1
- package/dist/theme/slot-recipes/DraggableCard.recipe.d.ts +15 -0
- package/dist/theme/slot-recipes/DraggableCard.recipe.js +12 -1
- package/dist/theme/slot-recipes/DraggableCard.recipe.js.map +1 -1
- package/dist/theme/slot-recipes/index.d.ts +15 -0
- package/package.json +1 -1
|
@@ -24,7 +24,7 @@ export interface BitkitDraggableCardProps extends Omit<BoxProps, 'children'> {
|
|
|
24
24
|
* The component is purely presentational — it does not depend on `@dnd-kit`.
|
|
25
25
|
* Pass the refs, handle props and state flags from `useSortable` (or `useDraggable`) to wire it up.
|
|
26
26
|
*
|
|
27
|
-
* @example Full-card drag (default — the entire card is draggable)
|
|
27
|
+
* @example Full-card drag (default — no `handleRef` / `handleProps`, the entire card is draggable)
|
|
28
28
|
* ```tsx
|
|
29
29
|
* const { ref, isDragSource, isDropTarget } = useSortable({ id, index });
|
|
30
30
|
*
|
|
@@ -10,7 +10,7 @@ import { Box } from "@chakra-ui/react/box";
|
|
|
10
10
|
* The component is purely presentational — it does not depend on `@dnd-kit`.
|
|
11
11
|
* Pass the refs, handle props and state flags from `useSortable` (or `useDraggable`) to wire it up.
|
|
12
12
|
*
|
|
13
|
-
* @example Full-card drag (default — the entire card is draggable)
|
|
13
|
+
* @example Full-card drag (default — no `handleRef` / `handleProps`, the entire card is draggable)
|
|
14
14
|
* ```tsx
|
|
15
15
|
* const { ref, isDragSource, isDropTarget } = useSortable({ id, index });
|
|
16
16
|
*
|
|
@@ -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 — 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, isDropTarget, isFullCardDrag });\n\n return (\n <Box ref={ref} css={[styles.root, css]} {...rest}>\n {isFullCardDrag ? (\n <chakra.div css={styles.handle}>\n <IconDragHandle size=\"16\" />\n </chakra.div>\n ) : (\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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmEA,IAAM,sBAAsB,YAAsD,OAAO,QAAQ;CAC/F,MAAM,EAAE,UAAU,KAAK,aAAa,WAAW,aAAa,OAAO,eAAe,OAAO,GAAG,SAAS;CAErG,MAAM,iBAAiB,CAAC,aAAa,CAAC;CAEtC,MAAM,SADS,cAAc,EAAE,KAAK,gBAAgB,CACrC,CAAA,CAAO;EAAE;EAAY;EAAc;CAAe,CAAC;CAElE,OACE,qBAAC,KAAD;EAAU;EAAK,KAAK,CAAC,OAAO,MAAM,GAAG;EAAG,GAAI;EAA5C,UAAA,CACG,iBACC,oBAAC,OAAO,KAAR;GAAY,KAAK,OAAO;GACtB,UAAA,oBAAC,gBAAD,EAAgB,MAAK,KAAM,CAAA;EACjB,CAAA,IAEZ,oBAAC,OAAO,QAAR;GAAe,cAAW;GAAc,GAAI;GAAa,KAAK;GAAW,MAAK;GAAS,KAAK,OAAO;GACjG,UAAA,oBAAC,gBAAD,EAAgB,MAAK,KAAM,CAAA;EACd,CAAA,GAEjB,oBAAC,KAAD;GAAK,KAAK,OAAO;GAAU;EAAc,CAAA,CACtC;;AAET,CAAC;AAED,oBAAoB,cAAc"}
|
|
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, isDropTarget, isFullCardDrag });\n\n return (\n <Box ref={ref} css={[styles.root, css]} {...rest}>\n {isFullCardDrag ? (\n <chakra.div css={styles.handle}>\n <IconDragHandle size=\"16\" />\n </chakra.div>\n ) : (\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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmEA,IAAM,sBAAsB,YAAsD,OAAO,QAAQ;CAC/F,MAAM,EAAE,UAAU,KAAK,aAAa,WAAW,aAAa,OAAO,eAAe,OAAO,GAAG,SAAS;CAErG,MAAM,iBAAiB,CAAC,aAAa,CAAC;CAEtC,MAAM,SADS,cAAc,EAAE,KAAK,gBAAgB,CACrC,CAAA,CAAO;EAAE;EAAY;EAAc;CAAe,CAAC;CAElE,OACE,qBAAC,KAAD;EAAU;EAAK,KAAK,CAAC,OAAO,MAAM,GAAG;EAAG,GAAI;EAA5C,UAAA,CACG,iBACC,oBAAC,OAAO,KAAR;GAAY,KAAK,OAAO;GACtB,UAAA,oBAAC,gBAAD,EAAgB,MAAK,KAAM,CAAA;EACjB,CAAA,IAEZ,oBAAC,OAAO,QAAR;GAAe,cAAW;GAAc,GAAI;GAAa,KAAK;GAAW,MAAK;GAAS,KAAK,OAAO;GACjG,UAAA,oBAAC,gBAAD,EAAgB,MAAK,KAAM,CAAA;EACd,CAAA,GAEjB,oBAAC,KAAD;GAAK,KAAK,OAAO;GAAU;EAAc,CAAA,CACtC;;AAET,CAAC;AAED,oBAAoB,cAAc"}
|
|
@@ -60,6 +60,7 @@ declare const draggableCardSlotRecipe: import('@chakra-ui/react').SlotRecipeDefi
|
|
|
60
60
|
border: "none";
|
|
61
61
|
cursor: "grab";
|
|
62
62
|
focusVisibleRing: "none";
|
|
63
|
+
touchAction: "none";
|
|
63
64
|
_focusVisible: {
|
|
64
65
|
boxShadow: "inset 0 0 0 var(--focus-ring-width) var(--focus-ring-color)";
|
|
65
66
|
};
|
|
@@ -73,6 +74,20 @@ declare const draggableCardSlotRecipe: import('@chakra-ui/react').SlotRecipeDefi
|
|
|
73
74
|
_active: {
|
|
74
75
|
background: "background/active";
|
|
75
76
|
};
|
|
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
|
+
};
|
|
76
91
|
};
|
|
77
92
|
content: {
|
|
78
93
|
paddingInlineStart: "8";
|
|
@@ -74,13 +74,24 @@ var draggableCardSlotRecipe = defineSlotRecipe({
|
|
|
74
74
|
border: "none",
|
|
75
75
|
cursor: "grab",
|
|
76
76
|
focusVisibleRing: "none",
|
|
77
|
+
touchAction: "none",
|
|
77
78
|
_focusVisible: { boxShadow: "inset 0 0 0 var(--focus-ring-width) var(--focus-ring-color)" },
|
|
78
79
|
_hover: {
|
|
79
80
|
background: "background/hover",
|
|
80
81
|
color: "icon/secondary",
|
|
81
82
|
_active: { background: "background/active" }
|
|
82
83
|
},
|
|
83
|
-
_active: { background: "background/active" }
|
|
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
|
+
}
|
|
84
95
|
},
|
|
85
96
|
content: { paddingInlineStart: "8" }
|
|
86
97
|
}
|
|
@@ -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 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 isFullCardDrag: {\n true: {\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 false: {\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 _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 },\n },\n compoundVariants: [\n {\n isDragging: true,\n isFullCardDrag: true,\n css: {\n root: {\n cursor: 'grabbing',\n _hover: {\n borderColor: 'border/strong',\n },\n },\n },\n },\n {\n isDragging: true,\n isFullCardDrag: false,\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 isDropTarget: true,\n isFullCardDrag: true,\n css: {\n root: {\n cursor: 'default',\n _hover: {\n borderColor: 'border/strong',\n },\n },\n },\n },\n {\n isDropTarget: true,\n isFullCardDrag: false,\n css: {\n root: {\n _hover: {\n borderColor: 'border/strong',\n },\n },\n },\n },\n ],\n defaultVariants: {\n isDragging: false,\n isDropTarget: false,\n isFullCardDrag: true,\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,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;EACA,gBAAgB;GACd,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,OAAO;IACL,MAAM,EACJ,QAAQ,EACN,aAAa,iBACf,EACF;IACA,QAAQ;KACN,YAAY;KACZ,YAAY;KACZ,QAAQ;KACR,QAAQ;KACR,kBAAkB;KAClB,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;EACF;CACF;CACA,kBAAkB;EAChB;GACE,YAAY;GACZ,gBAAgB;GAChB,KAAK,EACH,MAAM;IACJ,QAAQ;IACR,QAAQ,EACN,aAAa,gBACf;GACF,EACF;EACF;EACA;GACE,YAAY;GACZ,gBAAgB;GAChB,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,cAAc;GACd,gBAAgB;GAChB,KAAK,EACH,MAAM;IACJ,QAAQ;IACR,QAAQ,EACN,aAAa,gBACf;GACF,EACF;EACF;EACA;GACE,cAAc;GACd,gBAAgB;GAChB,KAAK,EACH,MAAM,EACJ,QAAQ,EACN,aAAa,gBACf,EACF,EACF;EACF;CACF;CACA,iBAAiB;EACf,YAAY;EACZ,cAAc;EACd,gBAAgB;CAClB;AACF,CAAC"}
|
|
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 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 isFullCardDrag: {\n true: {\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 false: {\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 _disabled: {\n color: 'icon/disabled',\n cursor: 'not-allowed',\n _hover: {\n background: 'transparent',\n color: 'icon/disabled',\n _active: {\n background: 'transparent',\n },\n },\n _active: {\n background: 'transparent',\n },\n },\n },\n content: {\n paddingInlineStart: '8',\n },\n },\n },\n },\n compoundVariants: [\n {\n isDragging: true,\n isFullCardDrag: true,\n css: {\n root: {\n cursor: 'grabbing',\n _hover: {\n borderColor: 'border/strong',\n },\n },\n },\n },\n {\n isDragging: true,\n isFullCardDrag: false,\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 isDropTarget: true,\n isFullCardDrag: true,\n css: {\n root: {\n cursor: 'default',\n _hover: {\n borderColor: 'border/strong',\n },\n },\n },\n },\n {\n isDropTarget: true,\n isFullCardDrag: false,\n css: {\n root: {\n _hover: {\n borderColor: 'border/strong',\n },\n },\n },\n },\n ],\n defaultVariants: {\n isDragging: false,\n isDropTarget: false,\n isFullCardDrag: true,\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,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;EACA,gBAAgB;GACd,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,OAAO;IACL,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;KACA,WAAW;MACT,OAAO;MACP,QAAQ;MACR,QAAQ;OACN,YAAY;OACZ,OAAO;OACP,SAAS,EACP,YAAY,cACd;MACF;MACA,SAAS,EACP,YAAY,cACd;KACF;IACF;IACA,SAAS,EACP,oBAAoB,IACtB;GACF;EACF;CACF;CACA,kBAAkB;EAChB;GACE,YAAY;GACZ,gBAAgB;GAChB,KAAK,EACH,MAAM;IACJ,QAAQ;IACR,QAAQ,EACN,aAAa,gBACf;GACF,EACF;EACF;EACA;GACE,YAAY;GACZ,gBAAgB;GAChB,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,cAAc;GACd,gBAAgB;GAChB,KAAK,EACH,MAAM;IACJ,QAAQ;IACR,QAAQ,EACN,aAAa,gBACf;GACF,EACF;EACF;EACA;GACE,cAAc;GACd,gBAAgB;GAChB,KAAK,EACH,MAAM,EACJ,QAAQ,EACN,aAAa,gBACf,EACF,EACF;EACF;CACF;CACA,iBAAiB;EACf,YAAY;EACZ,cAAc;EACd,gBAAgB;CAClB;AACF,CAAC"}
|
|
@@ -995,6 +995,7 @@ declare const slotRecipes: {
|
|
|
995
995
|
border: "none";
|
|
996
996
|
cursor: "grab";
|
|
997
997
|
focusVisibleRing: "none";
|
|
998
|
+
touchAction: "none";
|
|
998
999
|
_focusVisible: {
|
|
999
1000
|
boxShadow: "inset 0 0 0 var(--focus-ring-width) var(--focus-ring-color)";
|
|
1000
1001
|
};
|
|
@@ -1008,6 +1009,20 @@ declare const slotRecipes: {
|
|
|
1008
1009
|
_active: {
|
|
1009
1010
|
background: "background/active";
|
|
1010
1011
|
};
|
|
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
|
+
};
|
|
1011
1026
|
};
|
|
1012
1027
|
content: {
|
|
1013
1028
|
paddingInlineStart: "8";
|