@designbasekorea/ui 0.2.3 → 0.2.5

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/index.esm.js CHANGED
@@ -3616,6 +3616,31 @@ const Banner = ({ title, description, icon, image, imageAlt, actions = [], size
3616
3616
  })) : icon })), image && (jsx("div", { className: "designbase-banner__image", children: jsx("img", { src: image, alt: imageAlt || title || 'Banner image' }) })), jsxs("div", { className: "designbase-banner__content", children: [title && (jsx("h3", { className: "designbase-banner__title", children: title })), description && (jsx("p", { className: "designbase-banner__description", children: description }))] }), renderActions()] })] }));
3617
3617
  };
3618
3618
 
3619
+ const BottomNavigation = ({ items, activeItemId, onItemClick, fixed = true, backgroundColor = 'default', size = 'm', className, style, }) => {
3620
+ const handleItemClick = (item) => {
3621
+ if (item.disabled)
3622
+ return;
3623
+ if (item.onClick) {
3624
+ item.onClick();
3625
+ }
3626
+ if (onItemClick) {
3627
+ onItemClick(item);
3628
+ }
3629
+ };
3630
+ const classes = clsx('designbase-bottom-navigation', `designbase-bottom-navigation--${size}`, `designbase-bottom-navigation--${backgroundColor}`, {
3631
+ 'designbase-bottom-navigation--fixed': fixed,
3632
+ }, className);
3633
+ return (jsx("nav", { className: classes, style: style, role: "navigation", "aria-label": "\uD558\uB2E8 \uB124\uBE44\uAC8C\uC774\uC158", children: jsx("div", { className: "designbase-bottom-navigation__container", children: items.map((item) => {
3634
+ const isActive = activeItemId === item.id || item.isActive;
3635
+ const Icon = item.icon;
3636
+ return (jsx("button", { type: "button", className: clsx('designbase-bottom-navigation__item', {
3637
+ 'designbase-bottom-navigation__item--active': isActive,
3638
+ 'designbase-bottom-navigation__item--disabled': item.disabled,
3639
+ }), onClick: () => handleItemClick(item), disabled: item.disabled, "aria-label": item.label, "aria-current": isActive ? 'page' : undefined, children: jsxs("div", { className: "designbase-bottom-navigation__item-content", children: [jsxs("div", { className: "designbase-bottom-navigation__icon-wrapper", children: [jsx(Icon, { size: size === 's' ? 20 : size === 'm' ? 24 : 28, className: "designbase-bottom-navigation__icon" }), item.badge && (jsx(Badge, { size: "s", variant: item.badgeColor === 'error' ? 'danger' : item.badgeColor === 'warning' ? 'warning' : item.badgeColor === 'success' ? 'success' : item.badgeColor === 'info' ? 'info' : item.badgeColor === 'primary' ? 'primary' : 'secondary', className: "designbase-bottom-navigation__badge", children: item.badge }))] }), jsx("span", { className: "designbase-bottom-navigation__label", children: item.label })] }) }, item.id));
3640
+ }) }) }));
3641
+ };
3642
+ BottomNavigation.displayName = 'BottomNavigation';
3643
+
3619
3644
  const BottomSheet = forwardRef(({ open = false, onClose, title, subtitle, size = 'm', variant = 'default', disableBackdropClick = false, disableEscapeKeyDown = false, disableDrag = false, maxHeight = 80, animation = 'slide', animationDuration = 300, zIndex = 1000, showBackdrop = true, backdropBlur = false, backdropOpacity = 0.5, stickyHeader = false, stickyFooter = false, className, style, header, footer, children, ...props }, forwardedRef) => {
3620
3645
  const [sheetHeight, setSheetHeight] = useState(maxHeight);
3621
3646
  const [isDragging, setIsDragging] = useState(false);
@@ -11700,5 +11725,5 @@ const toggleTheme = () => {
11700
11725
  console.log('toggleTheme called');
11701
11726
  };
11702
11727
 
11703
- export { Accordion, AdBanner, Alert, AnimationBackground, AnimationText, AudioPlayer, Avatar, Backdrop, Badge, Banner, BottomSheet, Breadcrumbs, Button, Calendar, Card, Carousel, Checkbox, Chip, ColorPicker, Confirm, Container, ContextMenu, Countdown, DatePicker, Divider, Drawer, Dropdown, Dropzone, EmptyState, FileUploader, FloatingActionButton, Form, Gradient, Grid, HeroFeature, Image$1 as Image, ImageList, Indicator, Input, Label, Lightbox, List, Logo, MarkdownEditor, Masonry, MenuItem, Modal, ModalBody, ModalFooter, ModalHeader, Navbar, OnboardingModal, Pagination, Popover, Progress, ProgressStep, Progressbar, Radio, RandomGradient, RangeSlider, Rating, Reorder, ResizablePanels, ScrollArea, SearchBar, Section, SegmentControl, Select, Share, Sidebar, Skeleton, Spinner, SplitView, Stack, Stat, Stepper, Table, Tabs, Textarea, TimePicker, Timeline, Toast, ToastContainer, ToastProvider, Toggle, Toolbar, Tooltip, Tutorial, VideoPlayer, YouTubePlayer, getTheme, setTheme, toggleTheme, useToast };
11728
+ export { Accordion, AdBanner, Alert, AnimationBackground, AnimationText, AudioPlayer, Avatar, Backdrop, Badge, Banner, BottomNavigation, BottomSheet, Breadcrumbs, Button, Calendar, Card, Carousel, Checkbox, Chip, ColorPicker, Confirm, Container, ContextMenu, Countdown, DatePicker, Divider, Drawer, Dropdown, Dropzone, EmptyState, FileUploader, FloatingActionButton, Form, Gradient, Grid, HeroFeature, Image$1 as Image, ImageList, Indicator, Input, Label, Lightbox, List, Logo, MarkdownEditor, Masonry, MenuItem, Modal, ModalBody, ModalFooter, ModalHeader, Navbar, OnboardingModal, Pagination, Popover, Progress, ProgressStep, Progressbar, Radio, RandomGradient, RangeSlider, Rating, Reorder, ResizablePanels, ScrollArea, SearchBar, Section, SegmentControl, Select, Share, Sidebar, Skeleton, Spinner, SplitView, Stack, Stat, Stepper, Table, Tabs, Textarea, TimePicker, Timeline, Toast, ToastContainer, ToastProvider, Toggle, Toolbar, Tooltip, Tutorial, VideoPlayer, YouTubePlayer, getTheme, setTheme, toggleTheme, useToast };
11704
11729
  //# sourceMappingURL=index.esm.js.map