File size: 1,349 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
import { defineSlotRecipe } from "../def"
export const actionBarSlotRecipe = defineSlotRecipe({
className: "action-bar",
slots: [
"positioner",
"content",
"separator",
"selectionTrigger",
"closeTrigger",
],
base: {
positioner: {
position: "fixed",
display: "flex",
justifyContent: "center",
pointerEvents: "none",
insetInline: "0",
top: "unset",
bottom: "calc(env(safe-area-inset-bottom) + 20px)",
},
content: {
bg: "bg.panel",
shadow: "md",
display: "flex",
alignItems: "center",
gap: "3",
borderRadius: "l3",
py: "2.5",
px: "3",
pointerEvents: "auto",
translate: "calc(-1 * var(--scrollbar-width) / 2) 0px",
_open: {
animationName: "slide-from-bottom, fade-in",
animationDuration: "moderate",
},
_closed: {
animationName: "slide-to-bottom, fade-out",
animationDuration: "faster",
},
},
separator: {
width: "1px",
height: "5",
bg: "border",
},
selectionTrigger: {
display: "inline-flex",
alignItems: "center",
gap: "2",
alignSelf: "stretch",
textStyle: "sm",
px: "4",
py: "1",
borderRadius: "l2",
borderWidth: "1px",
borderStyle: "dashed",
},
},
})
|