Conversation
Add a new Drawer component that slides in from any edge of the screen. Unlike BottomSheet (mobile-only, bottom direction), Drawer supports all four directions and provides size presets (small/medium/large) for horizontal drawers. Includes: rootage spec, qvism recipe, React styled component, snippet layer, 9 examples, Storybook stories, React/Design docs, and Stackflow activity. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Alpha Preview (Storybook)
|
Merge origin/alpha into drawer-component, resolve minified CSS conflicts, regenerate CSS, and add drawer snippet to stackflow-spa. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Alpha Preview (Stackflow SPA)
|
- Remove cornerRadius from content (no border on drawer panels) - Remove body paddingX (full bleed, user controls via StyleProps) - Header: add paddingX x6, fix gap x2→x1.5 - Footer: fix paddingX global-gutter→x6, paddingTop x3→x4, paddingBottom x4→x6, add gap x2 - Remove description paddingX (inherits from header) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Positioner is a plain fixed container. Content uses position: absolute with direction-based inset (top/bottom/left/right) instead of flex alignment on positioner — fixes direction being inverted. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Drawer
Alpha Preview (Docs)
|
- Add drawer-close-button.yaml with ghost-style tokens (transparent bg, 52px, r3 radius) - Replace bottomSheetCloseButton vars with dedicated drawerCloseButton vars in recipe - Add --seed-box-width/height/max-width/max-height --responsive declarations to content slot (fixes custom width/height props not working via withStyleProps) - Add pressed state and consistent corner radius to close button - Add DrawerCloseButton.displayName (was missing) - Fix dismissible example: add controlled state + close button so users can dismiss - Rename custom-width example to custom-size (covers both width and height) - Add scroll example with ScrollFog (bottom) + Divider (on scroll) pattern Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…xample - Add ::after pseudo-element to content slot for all 4 directions to prevent background gap when dragging (matches BottomSheet pattern) - right: extends right with width 100vw - left: extends left with width 100vw - bottom: extends down with height 200vh - top: extends up with height 200vh - Update custom-size example with enough content to demonstrate maxHeight Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Add maxWidth: 100vw to left/right direction content slots so drawer size variants (480px/720px/960px) don't exceed the viewport on mobile. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
요약
small(480px),medium(720px),large(960px) — 좌우 방향 전용디자인 결정
small/medium/large(SEED Design 전체 일관성, 디자이너 확인 완료)fullvariant 없음: StyleProps (width="100%")로 커버left/right/top/bottom(RTL은 시스템 전체 전환 시 함께 대응)변경 내역
packages/rootage/components/drawer.yamlpackages/qvism-preset/src/recipes/drawer.ts(4방향 애니메이션, size variant)packages/react/src/components/Drawer/(discriminated union 타입)docs/registry/ui/drawer.tsx테스트
bun packages:build통과bun test:all— 673 pass, 0 fail🤖 Generated with Claude Code