sdaia-ui 1.0.1 → 1.0.2
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/icons/AIIcon.d.ts +11 -0
- package/dist/icons/AaIcon.d.ts +11 -0
- package/dist/icons/AlertCircle02Icon.d.ts +8 -0
- package/dist/icons/AlertCircleIcon.d.ts +9 -0
- package/dist/icons/AlertCircleSVG.d.ts +3 -0
- package/dist/icons/AlertCircleWarningIcon.d.ts +9 -0
- package/dist/icons/AlertTriangleIcon.d.ts +9 -0
- package/dist/icons/AlignCenterIcon.d.ts +10 -0
- package/dist/icons/AlignLeftIcon.d.ts +10 -0
- package/dist/icons/AlignRightIcon.d.ts +10 -0
- package/dist/icons/ArrowDownIcon.d.ts +9 -0
- package/dist/icons/ArrowDownLeft01Icon.d.ts +14 -0
- package/dist/icons/ArrowDownSVG.d.ts +3 -0
- package/{src/icons/ArrowIcon.tsx → dist/icons/ArrowIcon.d.ts} +3 -23
- package/dist/icons/ArrowLeft01Icon.d.ts +4 -0
- package/dist/icons/ArrowLeft02SVG.d.ts +3 -0
- package/dist/icons/ArrowLeftIcon.d.ts +4 -0
- package/dist/icons/ArrowRight01Icon.d.ts +4 -0
- package/dist/icons/ArrowRight01SVG.d.ts +3 -0
- package/dist/icons/ArrowRightIcon.d.ts +4 -0
- package/dist/icons/ArrowUpIcon.d.ts +9 -0
- package/dist/icons/ArrowUpRight01Icon.d.ts +11 -0
- package/dist/icons/ArrowUpSVG.d.ts +3 -0
- package/dist/icons/AtIcon.d.ts +10 -0
- package/dist/icons/BeakBottom.d.ts +4 -0
- package/{src/icons/BeakDown.tsx → dist/icons/BeakDown.d.ts} +1 -17
- package/dist/icons/BeakLeft.d.ts +4 -0
- package/dist/icons/BeakRight.d.ts +3 -0
- package/dist/icons/BeakTop.d.ts +4 -0
- package/{src/icons/BeakUp.tsx → dist/icons/BeakUp.d.ts} +1 -16
- package/dist/icons/BellCircleIcon.d.ts +9 -0
- package/dist/icons/BellIcon.d.ts +9 -0
- package/dist/icons/BoldIcon.d.ts +10 -0
- package/dist/icons/CalendarIcon.d.ts +3 -0
- package/dist/icons/ChartsIcon.d.ts +3 -0
- package/dist/icons/CheckCircleIcon.d.ts +9 -0
- package/dist/icons/ChevronDownIcon.d.ts +9 -0
- package/dist/icons/ChevronDownSmIcon.d.ts +10 -0
- package/dist/icons/ChevronLeftIcon.d.ts +2 -0
- package/dist/icons/ChevronRightIcon.d.ts +3 -0
- package/{src/icons/ClearIcon.tsx → dist/icons/ClearIcon.d.ts} +1 -23
- package/dist/icons/ClockIcon.d.ts +12 -0
- package/dist/icons/CloseIcon.d.ts +9 -0
- package/dist/icons/CloudUploadIcon.d.ts +3 -0
- package/dist/icons/CodeSnippetChevronDownIcon.d.ts +3 -0
- package/dist/icons/CodeSnippetCopyIcon.d.ts +4 -0
- package/dist/icons/CodeSnippetStarIcon.d.ts +3 -0
- package/dist/icons/ColorSquareIcon.d.ts +6 -0
- package/dist/icons/ComponentsIcon.d.ts +3 -0
- package/dist/icons/DGALogoSVG.d.ts +3 -0
- package/dist/icons/DeleteIcon.d.ts +3 -0
- package/dist/icons/DownloadIcon.d.ts +6 -0
- package/dist/icons/DragHandleVerticalIcon.d.ts +3 -0
- package/dist/icons/FeedbackEmojiDislikeIcon.d.ts +2 -0
- package/dist/icons/FeedbackEmojiLikeIcon.d.ts +2 -0
- package/dist/icons/FeedbackEmojiNeutralIcon.d.ts +2 -0
- package/dist/icons/FeedbackThumbDislikeFilledIcon.d.ts +2 -0
- package/dist/icons/FeedbackThumbDislikeIcon.d.ts +2 -0
- package/dist/icons/FeedbackThumbLikeFilledIcon.d.ts +2 -0
- package/dist/icons/FeedbackThumbLikeIcon.d.ts +2 -0
- package/dist/icons/FileUploadItemCloseIcon.d.ts +6 -0
- package/dist/icons/FileUploadItemEmptyFileIcon.d.ts +5 -0
- package/dist/icons/FileUploadItemPdfIcon.d.ts +6 -0
- package/dist/icons/FilterFunnelIcon.d.ts +12 -0
- package/dist/icons/FilterIcon.d.ts +9 -0
- package/dist/icons/FitIcon.d.ts +6 -0
- package/dist/icons/FolderFilledIcon.d.ts +3 -0
- package/dist/icons/FolderIcon.d.ts +4 -0
- package/dist/icons/FoundationsIcon.d.ts +3 -0
- package/dist/icons/FullscreenExitIcon.d.ts +11 -0
- package/dist/icons/FullscreenIcon.d.ts +10 -0
- package/dist/icons/GoBackward10Icon.d.ts +3 -0
- package/dist/icons/GoForward10Icon.d.ts +3 -0
- package/dist/icons/GridSquaresIcon.d.ts +12 -0
- package/dist/icons/HamburgerIcon.d.ts +7 -0
- package/dist/icons/HelpCircleIcon.d.ts +7 -0
- package/dist/icons/HomeIcon.d.ts +2 -0
- package/dist/icons/HomeSVG.d.ts +3 -0
- package/{src/icons/IconFactory.ts → dist/icons/IconFactory.d.ts} +0 -15
- package/dist/icons/Image01SVG.d.ts +3 -0
- package/dist/icons/ImageIcon.d.ts +10 -0
- package/dist/icons/InfoCircleIcon.d.ts +10 -0
- package/dist/icons/InfoCircleSVG.d.ts +3 -0
- package/dist/icons/InfoIcon.d.ts +9 -0
- package/dist/icons/ItalicIcon.d.ts +10 -0
- package/dist/icons/LearnMoreArrowIcon.d.ts +4 -0
- package/dist/icons/LinkCircleSVG.d.ts +3 -0
- package/dist/icons/LinkIcon.d.ts +10 -0
- package/dist/icons/ListLinesIcon.d.ts +12 -0
- package/dist/icons/LockCircleSVG.d.ts +3 -0
- package/dist/icons/LockIcon.d.ts +13 -0
- package/dist/icons/Logout02Icon.d.ts +3 -0
- package/dist/icons/MicrophoneIcon.d.ts +2 -0
- package/{src/icons/MinusIcon.tsx → dist/icons/MinusIcon.d.ts} +3 -24
- package/dist/icons/MoreHorizontalIcon.d.ts +7 -0
- package/dist/icons/MoreVerticalIcon.d.ts +9 -0
- package/dist/icons/NextIcon.d.ts +10 -0
- package/dist/icons/PDFSvg.d.ts +12 -0
- package/dist/icons/PatternsIcon.d.ts +2 -0
- package/dist/icons/PauseIcon.d.ts +6 -0
- package/dist/icons/PencilIcon.d.ts +8 -0
- package/dist/icons/PlayButtonCardIcon.d.ts +14 -0
- package/dist/icons/PlayCenterIcon.d.ts +13 -0
- package/dist/icons/PlayIcon.d.ts +3 -0
- package/dist/icons/PlayIconSolid.d.ts +6 -0
- package/dist/icons/PlayIconStroke.d.ts +2 -0
- package/dist/icons/PlayIconTwotone.d.ts +6 -0
- package/dist/icons/PlayVideoIcon.d.ts +14 -0
- package/dist/icons/PlusCircleIcon.d.ts +9 -0
- package/{src/icons/PlusIcon.tsx → dist/icons/PlusIcon.d.ts} +3 -24
- package/dist/icons/PreviousIcon.d.ts +10 -0
- package/dist/icons/PrintIcon.d.ts +4 -0
- package/dist/icons/QuestionMarkGrayBgIcon.d.ts +22 -0
- package/dist/icons/QuestionMarkIcon.d.ts +11 -0
- package/dist/icons/RedoIcon.d.ts +10 -0
- package/dist/icons/SaudiFlagSVG.d.ts +3 -0
- package/dist/icons/SdaiaNavLogo.d.ts +2 -0
- package/dist/icons/SearchIcon.d.ts +12 -0
- package/dist/icons/SettingsIcon.d.ts +2 -0
- package/dist/icons/ShareIcon.d.ts +4 -0
- package/dist/icons/SidebarCollapseIcon.d.ts +3 -0
- package/dist/icons/SmileIcon.d.ts +11 -0
- package/dist/icons/SortIcon.d.ts +2 -0
- package/dist/icons/StarIcon.d.ts +11 -0
- package/dist/icons/StatusBadgeIcon.d.ts +2 -0
- package/dist/icons/TextTIcon.d.ts +10 -0
- package/dist/icons/Tick02Icon.d.ts +8 -0
- package/dist/icons/TickIcon.d.ts +12 -0
- package/dist/icons/TrashIcon.d.ts +14 -0
- package/dist/icons/UnderlineIcon.d.ts +10 -0
- package/dist/icons/UndoIcon.d.ts +10 -0
- package/dist/icons/UploadArrowIcon.d.ts +10 -0
- package/dist/icons/UserIcon.d.ts +2 -0
- package/dist/icons/VolumeHighIcon.d.ts +3 -0
- package/dist/icons/VolumeMuteIcon.d.ts +11 -0
- package/dist/icons/XCircleIcon.d.ts +8 -0
- package/dist/icons/XIcon.d.ts +8 -0
- package/dist/icons/XIconSVG.d.ts +3 -0
- package/dist/icons/XSmallIcon.d.ts +7 -0
- package/dist/icons/XSvg.d.ts +3 -0
- package/dist/icons/ZoomInIcon.d.ts +4 -0
- package/dist/icons.cjs +1248 -810
- package/dist/icons.js +1223 -665
- package/dist/index.js +479 -43363
- package/package.json +27 -47
- package/README.md +0 -89
- package/dist/PlayVideoIcon-BM-4pwUd.d.cts +0 -7
- package/dist/PlayVideoIcon-BM-4pwUd.d.ts +0 -7
- package/dist/dga-icons.cjs +0 -14
- package/dist/dga-icons.cjs.map +0 -1
- package/dist/dga-icons.d.cts +0 -1
- package/dist/dga-icons.d.ts +0 -1
- package/dist/dga-icons.js +0 -3
- package/dist/dga-icons.js.map +0 -1
- package/dist/icons.cjs.map +0 -1
- package/dist/icons.d.cts +0 -756
- package/dist/icons.d.ts +0 -756
- package/dist/icons.js.map +0 -1
- package/dist/index.cjs +0 -43620
- package/dist/index.cjs.map +0 -1
- package/dist/index.d.cts +0 -9407
- package/dist/index.d.ts +0 -9407
- package/dist/index.js.map +0 -1
- package/dist/styles.css +0 -242
- package/src/components/Accordion/Accordion.tsx +0 -207
- package/src/components/Accordion/Accordion.types.ts +0 -36
- package/src/components/Accordion/Accordion.variants.ts +0 -283
- package/src/components/Accordion/index.ts +0 -9
- package/src/components/ActionBar/ActionBar.tsx +0 -192
- package/src/components/ActionBar/ActionBar.types.ts +0 -67
- package/src/components/ActionBar/ActionBar.variants.ts +0 -95
- package/src/components/ActionBar/index.ts +0 -8
- package/src/components/Activity/Activity.tsx +0 -52
- package/src/components/Activity/Activity.types.ts +0 -19
- package/src/components/Activity/Activity.variants.ts +0 -15
- package/src/components/Activity/index.ts +0 -2
- package/src/components/ActivityItem/ActivityItem.tsx +0 -298
- package/src/components/ActivityItem/ActivityItem.types.ts +0 -76
- package/src/components/ActivityItem/ActivityItem.variants.ts +0 -117
- package/src/components/ActivityItem/index.ts +0 -8
- package/src/components/Alert/Alert.tsx +0 -183
- package/src/components/Alert/Alert.types.ts +0 -34
- package/src/components/Alert/Alert.variants.ts +0 -168
- package/src/components/Alert/index.ts +0 -2
- package/src/components/AreaChart/AreaChart.tsx +0 -454
- package/src/components/AreaChart/AreaChart.types.ts +0 -117
- package/src/components/AreaChart/AreaChart.variants.ts +0 -202
- package/src/components/AreaChart/index.ts +0 -2
- package/src/components/AspectRatio/AspectRatio.tsx +0 -36
- package/src/components/AspectRatio/AspectRatio.types.ts +0 -33
- package/src/components/AspectRatio/AspectRatio.variants.ts +0 -42
- package/src/components/AspectRatio/index.ts +0 -2
- package/src/components/AudioPlayer/AudioPlayer.tsx +0 -294
- package/src/components/AudioPlayer/AudioPlayer.types.ts +0 -64
- package/src/components/AudioPlayer/AudioPlayer.variants.ts +0 -225
- package/src/components/AudioPlayer/index.ts +0 -2
- package/src/components/Autocomplete/Autocomplete.tsx +0 -353
- package/src/components/Autocomplete/Autocomplete.types.ts +0 -93
- package/src/components/Autocomplete/Autocomplete.variants.ts +0 -149
- package/src/components/Autocomplete/index.ts +0 -6
- package/src/components/Avatar/Avatar.tsx +0 -168
- package/src/components/Avatar/Avatar.types.ts +0 -36
- package/src/components/Avatar/Avatar.variants.ts +0 -102
- package/src/components/Avatar/index.ts +0 -7
- package/src/components/AvatarGroup/AvatarGroup.tsx +0 -87
- package/src/components/AvatarGroup/AvatarGroup.types.ts +0 -44
- package/src/components/AvatarGroup/AvatarGroup.variants.ts +0 -17
- package/src/components/AvatarGroup/index.ts +0 -6
- package/src/components/Badge/Badge.tsx +0 -74
- package/src/components/Badge/Badge.types.ts +0 -31
- package/src/components/Badge/Badge.variants.ts +0 -83
- package/src/components/Badge/index.ts +0 -2
- package/src/components/Bar/Bar.tsx +0 -57
- package/src/components/Bar/Bar.types.ts +0 -18
- package/src/components/Bar/Bar.variants.ts +0 -20
- package/src/components/Bar/index.ts +0 -2
- package/src/components/BarChart/BarChart.tsx +0 -179
- package/src/components/BarChart/BarChart.types.ts +0 -72
- package/src/components/BarChart/BarChart.variants.ts +0 -134
- package/src/components/BarChart/index.ts +0 -2
- package/src/components/BarGroup/BarGroup.tsx +0 -119
- package/src/components/BarGroup/BarGroup.types.ts +0 -50
- package/src/components/BarGroup/BarGroup.variants.ts +0 -76
- package/src/components/BarGroup/index.ts +0 -2
- package/src/components/Breadcrumb/Breadcrumb.tsx +0 -137
- package/src/components/Breadcrumb/Breadcrumb.types.ts +0 -21
- package/src/components/Breadcrumb/BreadcrumbItem.tsx +0 -267
- package/src/components/Breadcrumb/BreadcrumbItem.types.ts +0 -66
- package/src/components/Breadcrumb/BreadcrumbItem.variants.ts +0 -102
- package/src/components/Breadcrumb/index.ts +0 -12
- package/src/components/Button/Button.tsx +0 -100
- package/src/components/Button/Button.types.ts +0 -44
- package/src/components/Button/Button.variants.ts +0 -183
- package/src/components/Button/index.ts +0 -2
- package/src/components/ButtonClose/ButtonClose.tsx +0 -57
- package/src/components/ButtonClose/ButtonClose.types.ts +0 -18
- package/src/components/ButtonClose/ButtonClose.variants.ts +0 -72
- package/src/components/ButtonClose/index.ts +0 -2
- package/src/components/ButtonGroup/ButtonGroup.tsx +0 -127
- package/src/components/ButtonGroup/ButtonGroup.types.ts +0 -51
- package/src/components/ButtonGroup/ButtonGroup.variants.ts +0 -65
- package/src/components/ButtonGroup/index.ts +0 -2
- package/src/components/ButtonMenu/ButtonMenu.tsx +0 -73
- package/src/components/ButtonMenu/ButtonMenu.types.ts +0 -43
- package/src/components/ButtonMenu/ButtonMenu.variants.ts +0 -18
- package/src/components/ButtonMenu/index.ts +0 -2
- package/src/components/ButtonSplit/ButtonSplit.tsx +0 -344
- package/src/components/ButtonSplit/ButtonSplit.types.ts +0 -95
- package/src/components/ButtonSplit/ButtonSplit.variants.ts +0 -165
- package/src/components/ButtonSplit/index.ts +0 -7
- package/src/components/ButtonsWithSdaiaTouch/ButtonHoverPattern.tsx +0 -69
- package/src/components/ButtonsWithSdaiaTouch/ButtonsWithSdaiaTouch.tsx +0 -130
- package/src/components/ButtonsWithSdaiaTouch/ButtonsWithSdaiaTouch.types.ts +0 -4
- package/src/components/ButtonsWithSdaiaTouch/ButtonsWithSdaiaTouch.variants.ts +0 -19
- package/src/components/ButtonsWithSdaiaTouch/index.ts +0 -6
- package/src/components/CLAUDE.md +0 -212
- package/src/components/CalendarHeader/CalendarHeader.tsx +0 -224
- package/src/components/CalendarHeader/CalendarHeader.types.ts +0 -51
- package/src/components/CalendarHeader/CalendarHeader.variants.ts +0 -65
- package/src/components/CalendarHeader/index.ts +0 -2
- package/src/components/Card/Card.tsx +0 -76
- package/src/components/Card/Card.types.ts +0 -11
- package/src/components/Card/Card.variants.ts +0 -30
- package/src/components/Card/index.ts +0 -2
- package/src/components/CardContent/CardContent.tsx +0 -178
- package/src/components/CardContent/CardContent.types.ts +0 -70
- package/src/components/CardContent/CardContent.variants.ts +0 -90
- package/src/components/CardContent/index.ts +0 -6
- package/src/components/CardFooter/CardFooter.tsx +0 -196
- package/src/components/CardFooter/CardFooter.types.ts +0 -59
- package/src/components/CardFooter/CardFooter.variants.ts +0 -127
- package/src/components/CardFooter/index.ts +0 -8
- package/src/components/CardHeader/CardHeader.tsx +0 -150
- package/src/components/CardHeader/CardHeader.types.ts +0 -42
- package/src/components/CardHeader/CardHeader.variants.ts +0 -72
- package/src/components/CardHeader/index.ts +0 -5
- package/src/components/CardLeadingItem/CardLeadingItem.tsx +0 -166
- package/src/components/CardLeadingItem/CardLeadingItem.types.ts +0 -75
- package/src/components/CardLeadingItem/CardLeadingItem.variants.ts +0 -66
- package/src/components/CardLeadingItem/index.ts +0 -6
- package/src/components/CardMedia/CardMedia.tsx +0 -324
- package/src/components/CardMedia/CardMedia.types.ts +0 -114
- package/src/components/CardMedia/CardMedia.variants.ts +0 -139
- package/src/components/CardMedia/index.ts +0 -2
- package/src/components/Carousel/Carousel.tsx +0 -182
- package/src/components/Carousel/Carousel.types.ts +0 -38
- package/src/components/Carousel/Carousel.variants.ts +0 -17
- package/src/components/Carousel/index.ts +0 -2
- package/src/components/CarouselArrow/CarouselArrow.tsx +0 -66
- package/src/components/CarouselArrow/CarouselArrow.types.ts +0 -26
- package/src/components/CarouselArrow/CarouselArrow.variants.ts +0 -83
- package/src/components/CarouselArrow/index.ts +0 -7
- package/src/components/CarouselControlsGroup/CarouselControlsGroup.tsx +0 -81
- package/src/components/CarouselControlsGroup/CarouselControlsGroup.types.ts +0 -24
- package/src/components/CarouselControlsGroup/CarouselControlsGroup.variants.ts +0 -60
- package/src/components/CarouselControlsGroup/index.ts +0 -6
- package/src/components/CarouselImage/CarouselImage.tsx +0 -253
- package/src/components/CarouselImage/CarouselImage.types.ts +0 -72
- package/src/components/CarouselImage/CarouselImage.variants.ts +0 -43
- package/src/components/CarouselImage/index.ts +0 -6
- package/src/components/Chart/Chart.tsx +0 -3
- package/src/components/Chart/Chart.types.ts +0 -2
- package/src/components/Chart/Chart.variants.ts +0 -2
- package/src/components/Chart/index.ts +0 -2
- package/src/components/ChartBadge/ChartBadge.tsx +0 -62
- package/src/components/ChartBadge/ChartBadge.types.ts +0 -27
- package/src/components/ChartBadge/ChartBadge.variants.ts +0 -62
- package/src/components/ChartBadge/index.ts +0 -2
- package/src/components/Checkbox/Checkbox.tsx +0 -243
- package/src/components/Checkbox/Checkbox.types.ts +0 -20
- package/src/components/Checkbox/index.ts +0 -2
- package/src/components/CheckboxLabel/CheckboxLabel.tsx +0 -148
- package/src/components/CheckboxLabel/CheckboxLabel.types.ts +0 -55
- package/src/components/CheckboxLabel/CheckboxLabel.variants.ts +0 -35
- package/src/components/CheckboxLabel/index.ts +0 -2
- package/src/components/Chip/Chip.tsx +0 -245
- package/src/components/Chip/Chip.types.ts +0 -83
- package/src/components/Chip/Chip.variants.ts +0 -143
- package/src/components/Chip/index.ts +0 -2
- package/src/components/CircularItem/CircularItem.tsx +0 -133
- package/src/components/CircularItem/CircularItem.types.ts +0 -45
- package/src/components/CircularItem/CircularItem.variants.ts +0 -128
- package/src/components/CircularItem/index.ts +0 -7
- package/src/components/CodeSnippet/CodeSnippet.tsx +0 -421
- package/src/components/CodeSnippet/CodeSnippet.types.ts +0 -99
- package/src/components/CodeSnippet/CodeSnippet.variants.ts +0 -76
- package/src/components/CodeSnippet/index.ts +0 -9
- package/src/components/ColumnChart/ColumnChart.tsx +0 -943
- package/src/components/ColumnChart/ColumnChart.types.ts +0 -98
- package/src/components/ColumnChart/ColumnChart.variants.ts +0 -117
- package/src/components/ColumnChart/index.ts +0 -9
- package/src/components/ComplexComposition/ComplexComposition.tsx +0 -82
- package/src/components/ComplexComposition/ComplexComposition.types.ts +0 -3
- package/src/components/ComplexComposition/ComplexComposition.variants.ts +0 -14
- package/src/components/ComplexComposition/index.ts +0 -2
- package/src/components/ContentSwitcher/ContentSwitcher.tsx +0 -104
- package/src/components/ContentSwitcher/ContentSwitcher.types.ts +0 -28
- package/src/components/ContentSwitcher/ContentSwitcher.variants.ts +0 -70
- package/src/components/ContentSwitcher/index.ts +0 -6
- package/src/components/ContentSwitcherItem/ContentSwitcherItem.tsx +0 -56
- package/src/components/ContentSwitcherItem/ContentSwitcherItem.types.ts +0 -14
- package/src/components/ContentSwitcherItem/ContentSwitcherItem.variants.ts +0 -65
- package/src/components/ContentSwitcherItem/index.ts +0 -6
- package/src/components/ContextMenu/ContextMenu.tsx +0 -101
- package/src/components/ContextMenu/ContextMenu.types.ts +0 -64
- package/src/components/ContextMenu/ContextMenu.variants.ts +0 -36
- package/src/components/ContextMenu/index.ts +0 -7
- package/src/components/ContextMenuDropdown/ContextMenuDropdown.tsx +0 -370
- package/src/components/ContextMenuDropdown/ContextMenuDropdown.types.ts +0 -89
- package/src/components/ContextMenuDropdown/ContextMenuDropdown.variants.ts +0 -88
- package/src/components/ContextMenuDropdown/index.ts +0 -5
- package/src/components/DateCell/DateCell.tsx +0 -181
- package/src/components/DateCell/DateCell.types.ts +0 -53
- package/src/components/DateCell/DateCell.variants.ts +0 -217
- package/src/components/DateCell/index.ts +0 -2
- package/src/components/DatePicker/DatePicker.tsx +0 -923
- package/src/components/DatePicker/DatePicker.types.ts +0 -102
- package/src/components/DatePicker/DatePicker.variants.ts +0 -274
- package/src/components/DatePicker/index.ts +0 -9
- package/src/components/DateTab/DateTab.tsx +0 -91
- package/src/components/DateTab/DateTab.types.ts +0 -9
- package/src/components/DateTab/DateTab.variants.ts +0 -98
- package/src/components/DateTab/index.ts +0 -2
- package/src/components/DgaIcon/DgaIcon.tsx +0 -68
- package/src/components/DgaIcon/DgaIcon.types.ts +0 -57
- package/src/components/DgaIcon/DgaIcon.variants.ts +0 -41
- package/src/components/DgaIcon/DgaIconByName.tsx +0 -76
- package/src/components/DgaIcon/generated/icon-names.ts +0 -4388
- package/src/components/DgaIcon/index.ts +0 -12
- package/src/components/DgaIcon/lib/decodeDataUrl.ts +0 -46
- package/src/components/DigitalStamp/DigitalStamp.tsx +0 -236
- package/src/components/DigitalStamp/DigitalStamp.types.ts +0 -38
- package/src/components/DigitalStamp/DigitalStamp.variants.ts +0 -185
- package/src/components/DigitalStamp/index.ts +0 -2
- package/src/components/Divider/Divider.tsx +0 -83
- package/src/components/Divider/Divider.types.ts +0 -49
- package/src/components/Divider/Divider.variants.ts +0 -55
- package/src/components/Divider/index.ts +0 -8
- package/src/components/DonutChart/DonutChart.tsx +0 -251
- package/src/components/DonutChart/DonutChart.types.ts +0 -97
- package/src/components/DonutChart/DonutChart.variants.ts +0 -203
- package/src/components/DonutChart/index.ts +0 -7
- package/src/components/DonutChartPanel/DonutChartPanel.tsx +0 -778
- package/src/components/DonutChartPanel/DonutChartPanel.types.ts +0 -143
- package/src/components/DonutChartPanel/DonutChartPanel.variants.ts +0 -154
- package/src/components/DonutChartPanel/index.ts +0 -9
- package/src/components/DraggableItem/DraggableItem.tsx +0 -228
- package/src/components/DraggableItem/DraggableItem.types.ts +0 -72
- package/src/components/DraggableItem/DraggableItem.variants.ts +0 -149
- package/src/components/DraggableItem/index.ts +0 -3
- package/src/components/DraggableList/DraggableList.tsx +0 -20
- package/src/components/DraggableList/DraggableList.types.ts +0 -16
- package/src/components/DraggableList/DraggableList.variants.ts +0 -13
- package/src/components/DraggableList/index.ts +0 -3
- package/src/components/Dropdown/Dropdown.tsx +0 -331
- package/src/components/Dropdown/Dropdown.types.ts +0 -108
- package/src/components/Dropdown/Dropdown.variants.ts +0 -73
- package/src/components/Dropdown/index.ts +0 -9
- package/src/components/DropdownListHeader/DropdownListHeader.tsx +0 -79
- package/src/components/DropdownListHeader/DropdownListHeader.types.ts +0 -24
- package/src/components/DropdownListHeader/DropdownListHeader.variants.ts +0 -65
- package/src/components/DropdownListHeader/index.ts +0 -2
- package/src/components/EmptyState/EmptyState.tsx +0 -221
- package/src/components/EmptyState/EmptyState.types.ts +0 -48
- package/src/components/EmptyState/EmptyState.variants.ts +0 -122
- package/src/components/EmptyState/index.ts +0 -3
- package/src/components/Extension/Extension.tsx +0 -240
- package/src/components/Extension/Extension.types.ts +0 -40
- package/src/components/Extension/Extension.variants.ts +0 -27
- package/src/components/Extension/index.ts +0 -6
- package/src/components/Feedback/Feedback.tsx +0 -55
- package/src/components/Feedback/Feedback.types.ts +0 -15
- package/src/components/Feedback/Feedback.variants.ts +0 -9
- package/src/components/Feedback/index.ts +0 -2
- package/src/components/FeedbackOverview/FeedbackOverview.tsx +0 -70
- package/src/components/FeedbackOverview/FeedbackOverview.types.ts +0 -11
- package/src/components/FeedbackOverview/FeedbackOverview.variants.ts +0 -17
- package/src/components/FeedbackOverview/index.ts +0 -2
- package/src/components/FeedbackReaction/FeedbackReaction.tsx +0 -81
- package/src/components/FeedbackReaction/FeedbackReaction.types.ts +0 -14
- package/src/components/FeedbackReaction/FeedbackReaction.variants.ts +0 -39
- package/src/components/FeedbackReaction/index.ts +0 -2
- package/src/components/FileUploadBase/FileUploadBase.tsx +0 -104
- package/src/components/FileUploadBase/FileUploadBase.types.ts +0 -48
- package/src/components/FileUploadBase/FileUploadBase.variants.ts +0 -51
- package/src/components/FileUploadBase/index.ts +0 -2
- package/src/components/FileUploadItemBase/FileUploadItemBase.tsx +0 -197
- package/src/components/FileUploadItemBase/FileUploadItemBase.types.ts +0 -58
- package/src/components/FileUploadItemBase/FileUploadItemBase.variants.ts +0 -67
- package/src/components/FileUploadItemBase/index.ts +0 -6
- package/src/components/FileUploader/FileUploader.tsx +0 -164
- package/src/components/FileUploader/FileUploader.types.ts +0 -46
- package/src/components/FileUploader/FileUploader.variants.ts +0 -9
- package/src/components/FileUploader/index.ts +0 -2
- package/src/components/Filtration/Filtration.tsx +0 -260
- package/src/components/Filtration/Filtration.types.ts +0 -95
- package/src/components/Filtration/Filtration.variants.ts +0 -70
- package/src/components/Filtration/index.ts +0 -6
- package/src/components/FiltrationItem/FiltrationItem.tsx +0 -200
- package/src/components/FiltrationItem/FiltrationItem.types.ts +0 -57
- package/src/components/FiltrationItem/FiltrationItem.variants.ts +0 -81
- package/src/components/FiltrationItem/index.ts +0 -2
- package/src/components/FiltrationList/FiltrationList.tsx +0 -611
- package/src/components/FiltrationList/FiltrationList.types.ts +0 -191
- package/src/components/FiltrationList/FiltrationList.variants.ts +0 -283
- package/src/components/FiltrationList/index.ts +0 -16
- package/src/components/FloatingButton/FloatingButton.tsx +0 -89
- package/src/components/FloatingButton/FloatingButton.types.ts +0 -29
- package/src/components/FloatingButton/FloatingButton.variants.ts +0 -79
- package/src/components/FloatingButton/index.ts +0 -6
- package/src/components/Footer/Footer.tsx +0 -353
- package/src/components/Footer/Footer.types.ts +0 -142
- package/src/components/Footer/Footer.variants.ts +0 -137
- package/src/components/Footer/index.ts +0 -11
- package/src/components/FooterItem/FooterItem.tsx +0 -211
- package/src/components/FooterItem/FooterItem.types.ts +0 -45
- package/src/components/FooterItem/FooterItem.variants.ts +0 -139
- package/src/components/FooterItem/index.ts +0 -2
- package/src/components/FooterLinkList/FooterLinkList.tsx +0 -140
- package/src/components/FooterLinkList/FooterLinkList.types.ts +0 -46
- package/src/components/FooterLinkList/FooterLinkList.variants.ts +0 -64
- package/src/components/FooterLinkList/index.ts +0 -2
- package/src/components/GraphBase/GraphBase.tsx +0 -598
- package/src/components/GraphBase/GraphBase.types.ts +0 -101
- package/src/components/GraphBase/GraphBase.variants.ts +0 -126
- package/src/components/GraphBase/index.ts +0 -7
- package/src/components/HeaderItem/HeaderItem.tsx +0 -206
- package/src/components/HeaderItem/HeaderItem.types.ts +0 -73
- package/src/components/HeaderItem/HeaderItem.variants.ts +0 -139
- package/src/components/HeaderItem/index.ts +0 -2
- package/src/components/HelpIcon/HelpIcon.tsx +0 -173
- package/src/components/HelpIcon/HelpIcon.types.ts +0 -54
- package/src/components/HelpIcon/HelpIcon.variants.ts +0 -79
- package/src/components/HelpIcon/index.ts +0 -2
- package/src/components/HorizontalTabs/HorizontalTabs.tsx +0 -87
- package/src/components/HorizontalTabs/HorizontalTabs.types.ts +0 -41
- package/src/components/HorizontalTabs/HorizontalTabs.variants.ts +0 -54
- package/src/components/HorizontalTabs/index.ts +0 -6
- package/src/components/IllustrationInstance/IllustrationInstance.tsx +0 -46
- package/src/components/IllustrationInstance/IllustrationInstance.types.ts +0 -25
- package/src/components/IllustrationInstance/IllustrationInstance.variants.ts +0 -19
- package/src/components/IllustrationInstance/index.ts +0 -3
- package/src/components/ImagePreview/ImagePreview.tsx +0 -170
- package/src/components/ImagePreview/ImagePreview.types.ts +0 -54
- package/src/components/ImagePreview/ImagePreview.variants.ts +0 -39
- package/src/components/ImagePreview/index.ts +0 -2
- package/src/components/Input/Input.tsx +0 -113
- package/src/components/Input/Input.types.ts +0 -22
- package/src/components/Input/index.ts +0 -2
- package/src/components/InputPrefixSuffix/InputPrefixSuffix.tsx +0 -91
- package/src/components/InputPrefixSuffix/InputPrefixSuffix.types.ts +0 -81
- package/src/components/InputPrefixSuffix/InputPrefixSuffix.variants.ts +0 -128
- package/src/components/InputPrefixSuffix/index.ts +0 -8
- package/src/components/InputsActions/InputsActions.tsx +0 -53
- package/src/components/InputsActions/InputsActions.types.ts +0 -13
- package/src/components/InputsActions/InputsActions.variants.ts +0 -18
- package/src/components/InputsActions/index.ts +0 -2
- package/src/components/InstanceColumn/InstanceColumn.tsx +0 -43
- package/src/components/InstanceColumn/InstanceColumn.types.ts +0 -18
- package/src/components/InstanceColumn/InstanceColumn.variants.ts +0 -11
- package/src/components/InstanceColumn/index.ts +0 -2
- package/src/components/InstanceItem/InstanceItem.tsx +0 -33
- package/src/components/InstanceItem/InstanceItem.types.ts +0 -11
- package/src/components/InstanceItem/InstanceItem.variants.ts +0 -31
- package/src/components/InstanceItem/index.ts +0 -2
- package/src/components/InstanceRows/InstanceRows.tsx +0 -41
- package/src/components/InstanceRows/InstanceRows.types.ts +0 -17
- package/src/components/InstanceRows/InstanceRows.variants.ts +0 -10
- package/src/components/InstanceRows/index.ts +0 -2
- package/src/components/InstanceSlot/InstanceSlot.tsx +0 -25
- package/src/components/InstanceSlot/InstanceSlot.types.ts +0 -10
- package/src/components/InstanceSlot/InstanceSlot.variants.ts +0 -2
- package/src/components/InstanceSlot/index.ts +0 -2
- package/src/components/LineChart/LineChart.tsx +0 -592
- package/src/components/LineChart/LineChart.types.ts +0 -78
- package/src/components/LineChart/LineChart.variants.ts +0 -324
- package/src/components/LineChart/index.ts +0 -7
- package/src/components/Link/Link.tsx +0 -81
- package/src/components/Link/Link.types.ts +0 -23
- package/src/components/Link/Link.variants.ts +0 -69
- package/src/components/Link/index.ts +0 -2
- package/src/components/List/List.tsx +0 -260
- package/src/components/List/List.types.ts +0 -70
- package/src/components/List/List.variants.ts +0 -94
- package/src/components/List/index.ts +0 -5
- package/src/components/ListGroup/ListGroup.tsx +0 -37
- package/src/components/ListGroup/ListGroup.types.ts +0 -14
- package/src/components/ListGroup/ListGroup.variants.ts +0 -17
- package/src/components/ListGroup/index.ts +0 -3
- package/src/components/LoadingIndicator/LoadingIndicator.tsx +0 -208
- package/src/components/LoadingIndicator/LoadingIndicator.types.ts +0 -51
- package/src/components/LoadingIndicator/LoadingIndicator.variants.ts +0 -108
- package/src/components/LoadingIndicator/index.ts +0 -7
- package/src/components/MediaGallery/MediaGallery.tsx +0 -600
- package/src/components/MediaGallery/MediaGallery.types.ts +0 -124
- package/src/components/MediaGallery/MediaGallery.variants.ts +0 -116
- package/src/components/MediaGallery/index.ts +0 -2
- package/src/components/MediaGrids/MediaGrids.tsx +0 -48
- package/src/components/MediaGrids/MediaGrids.types.ts +0 -14
- package/src/components/MediaGrids/MediaGrids.variants.ts +0 -16
- package/src/components/MediaGrids/index.ts +0 -2
- package/src/components/MediaViewer/MediaViewer.tsx +0 -345
- package/src/components/MediaViewer/MediaViewer.types.ts +0 -59
- package/src/components/MediaViewer/MediaViewer.variants.ts +0 -168
- package/src/components/MediaViewer/index.ts +0 -2
- package/src/components/Menu/Menu.tsx +0 -109
- package/src/components/Menu/Menu.types.ts +0 -37
- package/src/components/Menu/Menu.variants.ts +0 -29
- package/src/components/Menu/index.ts +0 -2
- package/src/components/MenuButtonItem/MenuButtonItem.tsx +0 -280
- package/src/components/MenuButtonItem/MenuButtonItem.types.ts +0 -91
- package/src/components/MenuButtonItem/MenuButtonItem.variants.ts +0 -223
- package/src/components/MenuButtonItem/index.ts +0 -8
- package/src/components/MenuItem/MenuItem.tsx +0 -211
- package/src/components/MenuItem/MenuItem.types.ts +0 -40
- package/src/components/MenuItem/MenuItem.variants.ts +0 -48
- package/src/components/MenuItem/index.ts +0 -2
- package/src/components/MenuItemGroup/MenuItemGroup.tsx +0 -91
- package/src/components/MenuItemGroup/MenuItemGroup.types.ts +0 -82
- package/src/components/MenuItemGroup/MenuItemGroup.variants.ts +0 -33
- package/src/components/MenuItemGroup/index.ts +0 -2
- package/src/components/MenuList/MenuList.tsx +0 -44
- package/src/components/MenuList/MenuList.types.ts +0 -28
- package/src/components/MenuList/MenuList.variants.ts +0 -2
- package/src/components/MenuList/index.ts +0 -2
- package/src/components/Metric/Metric.tsx +0 -584
- package/src/components/Metric/Metric.types.ts +0 -77
- package/src/components/Metric/Metric.variants.ts +0 -175
- package/src/components/Metric/index.ts +0 -8
- package/src/components/Modal/Modal.tsx +0 -139
- package/src/components/Modal/Modal.types.ts +0 -55
- package/src/components/Modal/index.ts +0 -2
- package/src/components/ModalActions/ModalActions.tsx +0 -176
- package/src/components/ModalActions/ModalActions.types.ts +0 -31
- package/src/components/ModalActions/index.ts +0 -2
- package/src/components/ModalHeader/ModalHeader.tsx +0 -207
- package/src/components/ModalHeader/ModalHeader.types.ts +0 -24
- package/src/components/ModalHeader/index.ts +0 -2
- package/src/components/NavBar/NavBar.tsx +0 -326
- package/src/components/NavBar/NavBar.types.ts +0 -78
- package/src/components/NavBar/NavBar.variants.ts +0 -139
- package/src/components/NavBar/index.ts +0 -2
- package/src/components/NavHeader/NavHeader.tsx +0 -292
- package/src/components/NavHeader/NavHeader.types.ts +0 -145
- package/src/components/NavHeader/NavHeader.variants.ts +0 -178
- package/src/components/NavHeader/index.ts +0 -2
- package/src/components/NavHeaderActions/NavHeaderActions.tsx +0 -161
- package/src/components/NavHeaderActions/NavHeaderActions.types.ts +0 -61
- package/src/components/NavHeaderActions/NavHeaderActions.variants.ts +0 -58
- package/src/components/NavHeaderActions/index.ts +0 -2
- package/src/components/NavHeaderDropdownItem/NavHeaderDropdownItem.tsx +0 -243
- package/src/components/NavHeaderDropdownItem/NavHeaderDropdownItem.types.ts +0 -76
- package/src/components/NavHeaderDropdownItem/NavHeaderDropdownItem.variants.ts +0 -133
- package/src/components/NavHeaderDropdownItem/index.ts +0 -5
- package/src/components/NavHeaderDropdownItemList/NavHeaderDropdownItemList.tsx +0 -64
- package/src/components/NavHeaderDropdownItemList/NavHeaderDropdownItemList.types.ts +0 -55
- package/src/components/NavHeaderDropdownItemList/NavHeaderDropdownItemList.variants.ts +0 -47
- package/src/components/NavHeaderDropdownItemList/index.ts +0 -5
- package/src/components/NavHeaderMenuButton/NavHeaderMenuButton.tsx +0 -52
- package/src/components/NavHeaderMenuButton/NavHeaderMenuButton.types.ts +0 -17
- package/src/components/NavHeaderMenuButton/NavHeaderMenuButton.variants.ts +0 -73
- package/src/components/NavHeaderMenuButton/index.ts +0 -2
- package/src/components/NavHeaderMenuCard/NavHeaderMenuCard.tsx +0 -126
- package/src/components/NavHeaderMenuCard/NavHeaderMenuCard.types.ts +0 -74
- package/src/components/NavHeaderMenuCard/NavHeaderMenuCard.variants.ts +0 -169
- package/src/components/NavHeaderMenuCard/index.ts +0 -6
- package/src/components/NavHeaderMenuItem/NavHeaderMenuItem.tsx +0 -164
- package/src/components/NavHeaderMenuItem/NavHeaderMenuItem.types.ts +0 -64
- package/src/components/NavHeaderMenuItem/NavHeaderMenuItem.variants.ts +0 -175
- package/src/components/NavHeaderMenuItem/index.ts +0 -2
- package/src/components/NavItem/NavItem.tsx +0 -210
- package/src/components/NavItem/NavItem.types.ts +0 -71
- package/src/components/NavItem/NavItem.variants.ts +0 -61
- package/src/components/NavItem/index.ts +0 -2
- package/src/components/NavLabel/NavLabel.tsx +0 -84
- package/src/components/NavLabel/NavLabel.types.ts +0 -55
- package/src/components/NavLabel/NavLabel.variants.ts +0 -68
- package/src/components/NavLabel/index.ts +0 -2
- package/src/components/NavLogoPlaceholder/NavLogoPlaceholder.tsx +0 -101
- package/src/components/NavLogoPlaceholder/NavLogoPlaceholder.types.ts +0 -27
- package/src/components/NavLogoPlaceholder/NavLogoPlaceholder.variants.ts +0 -42
- package/src/components/NavLogoPlaceholder/index.ts +0 -6
- package/src/components/NotificationBanner/NotificationBanner.tsx +0 -256
- package/src/components/NotificationBanner/NotificationBanner.types.ts +0 -77
- package/src/components/NotificationBanner/NotificationBanner.variants.ts +0 -109
- package/src/components/NotificationBanner/index.ts +0 -7
- package/src/components/NotificationPopup/NotificationPopup.tsx +0 -147
- package/src/components/NotificationPopup/NotificationPopup.types.ts +0 -51
- package/src/components/NotificationPopup/NotificationPopup.variants.ts +0 -145
- package/src/components/NotificationPopup/index.ts +0 -5
- package/src/components/Notifications/Notifications.tsx +0 -209
- package/src/components/Notifications/Notifications.types.ts +0 -68
- package/src/components/Notifications/Notifications.variants.ts +0 -89
- package/src/components/Notifications/index.ts +0 -2
- package/src/components/Number/Number.tsx +0 -497
- package/src/components/Number/Number.types.ts +0 -58
- package/src/components/Number/Number.variants.ts +0 -94
- package/src/components/Number/index.ts +0 -2
- package/src/components/NumberInput/NumberInput.tsx +0 -265
- package/src/components/NumberInput/NumberInput.types.ts +0 -110
- package/src/components/NumberInput/NumberInput.variants.ts +0 -205
- package/src/components/NumberInput/index.ts +0 -6
- package/src/components/Pagination/Pagination.tsx +0 -393
- package/src/components/Pagination/Pagination.types.ts +0 -26
- package/src/components/Pagination/Pagination.variants.ts +0 -88
- package/src/components/Pagination/index.ts +0 -3
- package/src/components/PaginationButtonGroup/PaginationButtonGroup.tsx +0 -132
- package/src/components/PaginationButtonGroup/PaginationButtonGroup.types.ts +0 -20
- package/src/components/PaginationButtonGroup/PaginationButtonGroup.variants.ts +0 -45
- package/src/components/PaginationButtonGroup/index.ts +0 -8
- package/src/components/PaginationCells/PaginationCells.tsx +0 -105
- package/src/components/PaginationCells/PaginationCells.types.ts +0 -31
- package/src/components/PaginationCells/PaginationCells.variants.ts +0 -96
- package/src/components/PaginationCells/index.ts +0 -9
- package/src/components/PdfViewer/PdfViewer.tsx +0 -265
- package/src/components/PdfViewer/PdfViewer.types.ts +0 -79
- package/src/components/PdfViewer/PdfViewer.variants.ts +0 -105
- package/src/components/PdfViewer/index.ts +0 -3
- package/src/components/PieChartPanel/PieChartPanel.tsx +0 -889
- package/src/components/PieChartPanel/PieChartPanel.types.ts +0 -130
- package/src/components/PieChartPanel/PieChartPanel.variants.ts +0 -156
- package/src/components/PieChartPanel/index.ts +0 -8
- package/src/components/Popover/Popover.tsx +0 -398
- package/src/components/Popover/Popover.types.ts +0 -155
- package/src/components/Popover/Popover.variants.ts +0 -147
- package/src/components/Popover/index.ts +0 -7
- package/src/components/ProgressBar/ProgressBar.tsx +0 -241
- package/src/components/ProgressBar/ProgressBar.types.ts +0 -22
- package/src/components/ProgressBar/ProgressBar.variants.ts +0 -54
- package/src/components/ProgressBar/index.ts +0 -2
- package/src/components/ProgressCircle/ProgressCircle.tsx +0 -369
- package/src/components/ProgressCircle/ProgressCircle.types.ts +0 -26
- package/src/components/ProgressCircle/ProgressCircle.variants.ts +0 -88
- package/src/components/ProgressCircle/index.ts +0 -7
- package/src/components/Quote/Quote.tsx +0 -210
- package/src/components/Quote/Quote.types.ts +0 -73
- package/src/components/Quote/Quote.variants.ts +0 -106
- package/src/components/Quote/index.ts +0 -2
- package/src/components/RadialStepper/RadialStepper.tsx +0 -166
- package/src/components/RadialStepper/RadialStepper.types.ts +0 -77
- package/src/components/RadialStepper/RadialStepper.variants.ts +0 -122
- package/src/components/RadialStepper/index.ts +0 -7
- package/src/components/RadioButton/RadioButton.tsx +0 -237
- package/src/components/RadioButton/RadioButton.types.ts +0 -18
- package/src/components/RadioButton/index.ts +0 -2
- package/src/components/RadioLabel/RadioLabel.tsx +0 -157
- package/src/components/RadioLabel/RadioLabel.types.ts +0 -53
- package/src/components/RadioLabel/RadioLabel.variants.ts +0 -36
- package/src/components/RadioLabel/index.ts +0 -2
- package/src/components/RangeSlider/RangeSlider.tsx +0 -389
- package/src/components/RangeSlider/RangeSlider.types.ts +0 -38
- package/src/components/RangeSlider/RangeSlider.variants.ts +0 -27
- package/src/components/RangeSlider/index.ts +0 -2
- package/src/components/Rating/Rating.tsx +0 -246
- package/src/components/Rating/Rating.types.ts +0 -37
- package/src/components/Rating/Rating.variants.ts +0 -52
- package/src/components/Rating/index.ts +0 -8
- package/src/components/RatingOverview/RatingOverview.tsx +0 -170
- package/src/components/RatingOverview/RatingOverview.types.ts +0 -37
- package/src/components/RatingOverview/RatingOverview.variants.ts +0 -50
- package/src/components/RatingOverview/index.ts +0 -2
- package/src/components/RatingStar/RatingStar.tsx +0 -76
- package/src/components/RatingStar/RatingStar.types.ts +0 -18
- package/src/components/RatingStar/RatingStar.variants.ts +0 -34
- package/src/components/RatingStar/index.ts +0 -7
- package/src/components/RichTextEditor/RichTextEditor.tsx +0 -1341
- package/src/components/RichTextEditor/RichTextEditor.types.ts +0 -127
- package/src/components/RichTextEditor/RichTextEditor.variants.ts +0 -231
- package/src/components/RichTextEditor/index.ts +0 -6
- package/src/components/ScatterChart/ScatterChart.tsx +0 -164
- package/src/components/ScatterChart/ScatterChart.types.ts +0 -42
- package/src/components/ScatterChart/ScatterChart.variants.ts +0 -162
- package/src/components/ScatterChart/index.ts +0 -2
- package/src/components/SdaiaLogoAnimation/BGSVG.tsx +0 -216
- package/src/components/SdaiaLogoAnimation/SdaiaLogoAnimation.tsx +0 -120
- package/src/components/SdaiaLogoAnimation/SdaiaLogoAnimation.types.ts +0 -13
- package/src/components/SdaiaLogoAnimation/SdaiaLogoAnimation.variants.ts +0 -22
- package/src/components/SdaiaLogoAnimation/index.ts +0 -2
- package/src/components/SdaiaTouch2dAnimation/SdaiaTouch2dAnimation.tsx +0 -55
- package/src/components/SdaiaTouch2dAnimation/SdaiaTouch2dAnimation.types.ts +0 -12
- package/src/components/SdaiaTouch2dAnimation/SdaiaTouch2dAnimation.variants.ts +0 -28
- package/src/components/SdaiaTouch2dAnimation/Star.tsx +0 -82
- package/src/components/SdaiaTouch2dAnimation/StarShape.tsx +0 -78
- package/src/components/SdaiaTouch2dAnimation/index.ts +0 -6
- package/src/components/SecondNavHeader/SecondNavHeader.tsx +0 -80
- package/src/components/SecondNavHeader/SecondNavHeader.types.ts +0 -41
- package/src/components/SecondNavHeader/SecondNavHeader.variants.ts +0 -42
- package/src/components/SecondNavHeader/index.ts +0 -2
- package/src/components/Select/Select.tsx +0 -351
- package/src/components/Select/Select.types.ts +0 -102
- package/src/components/Select/Select.variants.ts +0 -111
- package/src/components/Select/index.ts +0 -2
- package/src/components/SelectMenuItem/SelectMenuItem.tsx +0 -132
- package/src/components/SelectMenuItem/SelectMenuItem.types.ts +0 -47
- package/src/components/SelectMenuItem/SelectMenuItem.variants.ts +0 -56
- package/src/components/SelectMenuItem/index.ts +0 -2
- package/src/components/SeriesLabel/SeriesLabel.tsx +0 -76
- package/src/components/SeriesLabel/SeriesLabel.types.ts +0 -27
- package/src/components/SeriesLabel/SeriesLabel.variants.ts +0 -84
- package/src/components/SeriesLabel/index.ts +0 -2
- package/src/components/Signature/Signature.tsx +0 -905
- package/src/components/Signature/Signature.types.ts +0 -68
- package/src/components/Signature/Signature.variants.ts +0 -115
- package/src/components/Signature/index.ts +0 -2
- package/src/components/Skeleton/Skeleton.tsx +0 -21
- package/src/components/Skeleton/Skeleton.types.ts +0 -15
- package/src/components/Skeleton/Skeleton.variants.ts +0 -14
- package/src/components/Skeleton/index.ts +0 -2
- package/src/components/SkeletonAvatar/SkeletonAvatar.tsx +0 -21
- package/src/components/SkeletonAvatar/SkeletonAvatar.types.ts +0 -15
- package/src/components/SkeletonAvatar/SkeletonAvatar.variants.ts +0 -14
- package/src/components/SkeletonAvatar/index.ts +0 -2
- package/src/components/SlideoutMenu/SlideoutMenu.tsx +0 -225
- package/src/components/SlideoutMenu/SlideoutMenu.types.ts +0 -39
- package/src/components/SlideoutMenu/SlideoutMenuDivider.tsx +0 -10
- package/src/components/SlideoutMenu/SlideoutMenuSection.tsx +0 -39
- package/src/components/SlideoutMenu/index.ts +0 -5
- package/src/components/SlideoutMenuFooter/SlideoutMenuFooter.tsx +0 -96
- package/src/components/SlideoutMenuFooter/SlideoutMenuFooter.types.ts +0 -28
- package/src/components/SlideoutMenuFooter/SlideoutMenuFooter.variants.ts +0 -49
- package/src/components/SlideoutMenuFooter/index.ts +0 -6
- package/src/components/SlideoutMenuHeader/SlideoutMenuHeader.tsx +0 -83
- package/src/components/SlideoutMenuHeader/SlideoutMenuHeader.types.ts +0 -19
- package/src/components/SlideoutMenuHeader/SlideoutMenuHeader.variants.ts +0 -78
- package/src/components/SlideoutMenuHeader/index.ts +0 -2
- package/src/components/Slider/Slider.tsx +0 -259
- package/src/components/Slider/Slider.types.ts +0 -22
- package/src/components/Slider/Slider.variants.ts +0 -23
- package/src/components/Slider/index.ts +0 -2
- package/src/components/Sparkline/Sparkline.tsx +0 -130
- package/src/components/Sparkline/Sparkline.types.ts +0 -36
- package/src/components/Sparkline/Sparkline.variants.ts +0 -118
- package/src/components/Sparkline/index.ts +0 -2
- package/src/components/StatusDot/StatusDot.tsx +0 -82
- package/src/components/StatusDot/StatusDot.types.ts +0 -35
- package/src/components/StatusDot/StatusDot.variants.ts +0 -66
- package/src/components/StatusDot/index.ts +0 -8
- package/src/components/StructuredList/StructuredList.tsx +0 -79
- package/src/components/StructuredList/StructuredList.types.ts +0 -27
- package/src/components/StructuredList/index.ts +0 -2
- package/src/components/StructuredListGroup/StructuredListGroup.tsx +0 -76
- package/src/components/StructuredListGroup/StructuredListGroup.types.ts +0 -27
- package/src/components/StructuredListGroup/StructuredListGroup.variants.ts +0 -14
- package/src/components/StructuredListGroup/index.ts +0 -5
- package/src/components/StructuredListHeader/StructuredListHeader.tsx +0 -98
- package/src/components/StructuredListHeader/StructuredListHeader.types.ts +0 -26
- package/src/components/StructuredListHeader/StructuredListHeader.variants.ts +0 -24
- package/src/components/StructuredListHeader/index.ts +0 -5
- package/src/components/StructuredListRow/StructuredListRow.tsx +0 -144
- package/src/components/StructuredListRow/StructuredListRow.types.ts +0 -37
- package/src/components/StructuredListRow/StructuredListRow.variants.ts +0 -53
- package/src/components/StructuredListRow/index.ts +0 -6
- package/src/components/SubHeaderItem/SubHeaderItem.tsx +0 -37
- package/src/components/SubHeaderItem/SubHeaderItem.types.ts +0 -20
- package/src/components/SubHeaderItem/SubHeaderItem.variants.ts +0 -23
- package/src/components/SubHeaderItem/index.ts +0 -2
- package/src/components/Switch/Switch.tsx +0 -138
- package/src/components/Switch/Switch.types.ts +0 -18
- package/src/components/Switch/Switch.variants.ts +0 -49
- package/src/components/Switch/index.ts +0 -2
- package/src/components/SwitchLabel/SwitchLabel.tsx +0 -114
- package/src/components/SwitchLabel/SwitchLabel.types.ts +0 -27
- package/src/components/SwitchLabel/SwitchLabel.variants.ts +0 -28
- package/src/components/SwitchLabel/index.ts +0 -2
- package/src/components/Tab/Tab.tsx +0 -92
- package/src/components/Tab/Tab.types.ts +0 -34
- package/src/components/Tab/Tab.variants.ts +0 -79
- package/src/components/Tab/index.ts +0 -2
- package/src/components/Table/Table.tsx +0 -353
- package/src/components/Table/Table.types.ts +0 -80
- package/src/components/Table/Table.variants.ts +0 -110
- package/src/components/Table/index.ts +0 -10
- package/src/components/TableOfContent/TableOfContent.tsx +0 -33
- package/src/components/TableOfContent/TableOfContent.types.ts +0 -15
- package/src/components/TableOfContent/TableOfContent.variants.ts +0 -27
- package/src/components/TableOfContent/index.ts +0 -2
- package/src/components/TableOfContentItem/TableOfContentItem.tsx +0 -85
- package/src/components/TableOfContentItem/TableOfContentItem.types.ts +0 -23
- package/src/components/TableOfContentItem/TableOfContentItem.variants.ts +0 -109
- package/src/components/TableOfContentItem/index.ts +0 -2
- package/src/components/TableOfContentList/TableOfContentList.tsx +0 -60
- package/src/components/TableOfContentList/TableOfContentList.types.ts +0 -39
- package/src/components/TableOfContentList/TableOfContentList.variants.ts +0 -6
- package/src/components/TableOfContentList/index.ts +0 -2
- package/src/components/Tabs/Tabs.tsx +0 -80
- package/src/components/Tabs/Tabs.types.ts +0 -36
- package/src/components/Tabs/Tabs.variants.ts +0 -23
- package/src/components/Tabs/index.ts +0 -2
- package/src/components/Tag/Tag.tsx +0 -114
- package/src/components/Tag/Tag.types.ts +0 -32
- package/src/components/Tag/Tag.variants.ts +0 -57
- package/src/components/Tag/index.ts +0 -2
- package/src/components/TagCount/TagCount.tsx +0 -45
- package/src/components/TagCount/TagCount.types.ts +0 -21
- package/src/components/TagCount/TagCount.variants.ts +0 -26
- package/src/components/TagCount/index.ts +0 -7
- package/src/components/TextArea/TextArea.tsx +0 -130
- package/src/components/TextArea/TextArea.types.ts +0 -20
- package/src/components/TextArea/index.ts +0 -2
- package/src/components/TextInput/TextInput.tsx +0 -568
- package/src/components/TextInput/TextInput.types.ts +0 -87
- package/src/components/TextInput/TextInput.variants.ts +0 -89
- package/src/components/TextInput/TextInputTag.tsx +0 -43
- package/src/components/TextInput/TextInputTag.types.ts +0 -14
- package/src/components/TextInput/index.ts +0 -4
- package/src/components/Tooltip/Tooltip.tsx +0 -229
- package/src/components/Tooltip/Tooltip.types.ts +0 -48
- package/src/components/Tooltip/Tooltip.variants.ts +0 -141
- package/src/components/Tooltip/index.ts +0 -10
- package/src/components/TreeView/TreeView.tsx +0 -130
- package/src/components/TreeView/TreeView.types.ts +0 -42
- package/src/components/TreeView/TreeView.variants.ts +0 -6
- package/src/components/TreeView/index.ts +0 -3
- package/src/components/TreeViewItem/TreeViewItem.tsx +0 -108
- package/src/components/TreeViewItem/TreeViewItem.types.ts +0 -34
- package/src/components/TreeViewItem/TreeViewItem.variants.ts +0 -40
- package/src/components/TreeViewItem/index.ts +0 -3
- package/src/components/VerticalTabs/VerticalTabs.tsx +0 -84
- package/src/components/VerticalTabs/VerticalTabs.types.ts +0 -37
- package/src/components/VerticalTabs/VerticalTabs.variants.ts +0 -43
- package/src/components/VerticalTabs/index.ts +0 -6
- package/src/components/VideoPlayer/VideoPlayer.tsx +0 -470
- package/src/components/VideoPlayer/VideoPlayer.types.ts +0 -59
- package/src/components/VideoPlayer/VideoPlayer.variants.ts +0 -134
- package/src/components/VideoPlayer/index.ts +0 -2
- package/src/components/XAxis/XAxis.tsx +0 -67
- package/src/components/XAxis/XAxis.types.ts +0 -30
- package/src/components/XAxis/XAxis.variants.ts +0 -77
- package/src/components/XAxis/index.ts +0 -2
- package/src/components/YAxis/YAxis.tsx +0 -78
- package/src/components/YAxis/YAxis.types.ts +0 -41
- package/src/components/YAxis/YAxis.variants.ts +0 -94
- package/src/components/YAxis/index.ts +0 -2
- package/src/dga-icons.ts +0 -18
- package/src/hooks/usePresence.ts +0 -73
- package/src/icons/AIIcon.tsx +0 -34
- package/src/icons/AaIcon.tsx +0 -34
- package/src/icons/AlertCircle02Icon.tsx +0 -28
- package/src/icons/AlertCircleIcon.tsx +0 -29
- package/src/icons/AlertCircleSVG.tsx +0 -19
- package/src/icons/AlertCircleWarningIcon.tsx +0 -37
- package/src/icons/AlertTriangleIcon.tsx +0 -27
- package/src/icons/AlignCenterIcon.tsx +0 -31
- package/src/icons/AlignLeftIcon.tsx +0 -31
- package/src/icons/AlignRightIcon.tsx +0 -31
- package/src/icons/ArrowDownIcon.tsx +0 -27
- package/src/icons/ArrowDownLeft01Icon.tsx +0 -32
- package/src/icons/ArrowDownSVG.tsx +0 -16
- package/src/icons/ArrowLeft01Icon.tsx +0 -23
- package/src/icons/ArrowLeft02SVG.tsx +0 -19
- package/src/icons/ArrowLeftIcon.tsx +0 -28
- package/src/icons/ArrowRight01Icon.tsx +0 -23
- package/src/icons/ArrowRight01SVG.tsx +0 -16
- package/src/icons/ArrowRightIcon.tsx +0 -28
- package/src/icons/ArrowUpIcon.tsx +0 -27
- package/src/icons/ArrowUpRight01Icon.tsx +0 -31
- package/src/icons/ArrowUpSVG.tsx +0 -16
- package/src/icons/AtIcon.tsx +0 -33
- package/src/icons/BeakBottom.tsx +0 -13
- package/src/icons/BeakLeft.tsx +0 -13
- package/src/icons/BeakRight.tsx +0 -11
- package/src/icons/BeakTop.tsx +0 -13
- package/src/icons/BellCircleIcon.tsx +0 -33
- package/src/icons/BellIcon.tsx +0 -27
- package/src/icons/BoldIcon.tsx +0 -33
- package/src/icons/CalendarIcon.tsx +0 -35
- package/src/icons/ChartsIcon.tsx +0 -25
- package/src/icons/CheckCircleIcon.tsx +0 -29
- package/src/icons/ChevronDownIcon.tsx +0 -30
- package/src/icons/ChevronDownSmIcon.tsx +0 -34
- package/src/icons/ChevronLeftIcon.tsx +0 -20
- package/src/icons/ChevronRightIcon.tsx +0 -36
- package/src/icons/ClockIcon.tsx +0 -34
- package/src/icons/CloseIcon.tsx +0 -29
- package/src/icons/CloudUploadIcon.tsx +0 -21
- package/src/icons/CodeSnippetChevronDownIcon.tsx +0 -25
- package/src/icons/CodeSnippetCopyIcon.tsx +0 -24
- package/src/icons/CodeSnippetStarIcon.tsx +0 -25
- package/src/icons/ColorSquareIcon.tsx +0 -42
- package/src/icons/ComponentsIcon.tsx +0 -25
- package/src/icons/DGALogoSVG.tsx +0 -133
- package/src/icons/DeleteIcon.tsx +0 -24
- package/src/icons/DownloadIcon.tsx +0 -29
- package/src/icons/DragHandleVerticalIcon.tsx +0 -23
- package/src/icons/FeedbackEmojiDislikeIcon.tsx +0 -20
- package/src/icons/FeedbackEmojiLikeIcon.tsx +0 -20
- package/src/icons/FeedbackEmojiNeutralIcon.tsx +0 -20
- package/src/icons/FeedbackThumbDislikeFilledIcon.tsx +0 -26
- package/src/icons/FeedbackThumbDislikeIcon.tsx +0 -20
- package/src/icons/FeedbackThumbLikeFilledIcon.tsx +0 -20
- package/src/icons/FeedbackThumbLikeIcon.tsx +0 -20
- package/src/icons/FileUploadItemCloseIcon.tsx +0 -30
- package/src/icons/FileUploadItemEmptyFileIcon.tsx +0 -27
- package/src/icons/FileUploadItemPdfIcon.tsx +0 -52
- package/src/icons/FilterFunnelIcon.tsx +0 -34
- package/src/icons/FilterIcon.tsx +0 -31
- package/src/icons/FitIcon.tsx +0 -22
- package/src/icons/FolderFilledIcon.tsx +0 -25
- package/src/icons/FolderIcon.tsx +0 -28
- package/src/icons/FoundationsIcon.tsx +0 -25
- package/src/icons/FullscreenExitIcon.tsx +0 -71
- package/src/icons/FullscreenIcon.tsx +0 -70
- package/src/icons/GoBackward10Icon.tsx +0 -27
- package/src/icons/GoForward10Icon.tsx +0 -27
- package/src/icons/GridSquaresIcon.tsx +0 -40
- package/src/icons/HamburgerIcon.tsx +0 -28
- package/src/icons/HelpCircleIcon.tsx +0 -28
- package/src/icons/HomeIcon.tsx +0 -22
- package/src/icons/HomeSVG.tsx +0 -32
- package/src/icons/Image01SVG.tsx +0 -18
- package/src/icons/ImageIcon.tsx +0 -31
- package/src/icons/InfoCircleIcon.tsx +0 -31
- package/src/icons/InfoCircleSVG.tsx +0 -20
- package/src/icons/InfoIcon.tsx +0 -27
- package/src/icons/ItalicIcon.tsx +0 -31
- package/src/icons/LearnMoreArrowIcon.tsx +0 -22
- package/src/icons/LinkCircleSVG.tsx +0 -58
- package/src/icons/LinkIcon.tsx +0 -33
- package/src/icons/ListLinesIcon.tsx +0 -40
- package/src/icons/LockCircleSVG.tsx +0 -60
- package/src/icons/LockIcon.tsx +0 -36
- package/src/icons/Logout02Icon.tsx +0 -19
- package/src/icons/MicrophoneIcon.tsx +0 -20
- package/src/icons/MoreHorizontalIcon.tsx +0 -24
- package/src/icons/MoreVerticalIcon.tsx +0 -40
- package/src/icons/NextIcon.tsx +0 -44
- package/src/icons/PDFSvg.tsx +0 -39
- package/src/icons/PatternsIcon.tsx +0 -21
- package/src/icons/PauseIcon.tsx +0 -30
- package/src/icons/PencilIcon.tsx +0 -36
- package/src/icons/PlayButtonCardIcon.tsx +0 -41
- package/src/icons/PlayCenterIcon.tsx +0 -45
- package/src/icons/PlayIcon.tsx +0 -27
- package/src/icons/PlayIconSolid.tsx +0 -33
- package/src/icons/PlayIconStroke.tsx +0 -22
- package/src/icons/PlayIconTwotone.tsx +0 -36
- package/src/icons/PlayVideoIcon.tsx +0 -31
- package/src/icons/PlusCircleIcon.tsx +0 -41
- package/src/icons/PreviousIcon.tsx +0 -44
- package/src/icons/PrintIcon.tsx +0 -25
- package/src/icons/QuestionMarkGrayBgIcon.tsx +0 -52
- package/src/icons/QuestionMarkIcon.tsx +0 -47
- package/src/icons/RedoIcon.tsx +0 -41
- package/src/icons/SaudiFlagSVG.tsx +0 -31
- package/src/icons/SdaiaNavLogo.tsx +0 -345
- package/src/icons/SearchIcon.tsx +0 -34
- package/src/icons/SettingsIcon.tsx +0 -25
- package/src/icons/ShareIcon.tsx +0 -26
- package/src/icons/SidebarCollapseIcon.tsx +0 -25
- package/src/icons/SmileIcon.tsx +0 -34
- package/src/icons/SortIcon.tsx +0 -20
- package/src/icons/StarIcon.tsx +0 -38
- package/src/icons/StatusBadgeIcon.tsx +0 -19
- package/src/icons/TextTIcon.tsx +0 -33
- package/src/icons/Tick02Icon.tsx +0 -32
- package/src/icons/TickIcon.tsx +0 -33
- package/src/icons/TrashIcon.tsx +0 -44
- package/src/icons/UnderlineIcon.tsx +0 -31
- package/src/icons/UndoIcon.tsx +0 -31
- package/src/icons/UploadArrowIcon.tsx +0 -40
- package/src/icons/UserIcon.tsx +0 -21
- package/src/icons/VolumeHighIcon.tsx +0 -27
- package/src/icons/VolumeMuteIcon.tsx +0 -53
- package/src/icons/XCircleIcon.tsx +0 -32
- package/src/icons/XIcon.tsx +0 -27
- package/src/icons/XIconSVG.tsx +0 -16
- package/src/icons/XSmallIcon.tsx +0 -29
- package/src/icons/XSvg.tsx +0 -18
- package/src/icons/ZoomInIcon.tsx +0 -25
- package/src/icons/index.ts +0 -5
- package/src/index.ts +0 -699
- package/src/lib/cn.ts +0 -42
- package/src/styles/motion.css +0 -120
- package/src/styles.css +0 -242
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
import type { HTMLAttributes } from 'react';
|
|
2
|
-
|
|
3
|
-
/** View mode for the image grid. */
|
|
4
|
-
export type MediaGalleryView = 'list' | 'grid';
|
|
5
|
-
|
|
6
|
-
/** A single image item rendered inside the gallery grid. */
|
|
7
|
-
export interface MediaGalleryImage {
|
|
8
|
-
/** Unique identifier used as the React key. */
|
|
9
|
-
id: string | number;
|
|
10
|
-
/** Image source URL. When omitted renders the aspectRatio placeholder. */
|
|
11
|
-
src?: string;
|
|
12
|
-
/** Accessible alt text for the image. */
|
|
13
|
-
alt?: string;
|
|
14
|
-
/** Filename or caption displayed below the thumbnail. */
|
|
15
|
-
filename?: string;
|
|
16
|
-
/** Whether this image is currently selected (shows green border). */
|
|
17
|
-
selected?: boolean;
|
|
18
|
-
/** Called when the user toggles the selection checkbox on hover. */
|
|
19
|
-
onCheckedChange?: (checked: boolean) => void;
|
|
20
|
-
/** Called when the user clicks the delete icon on hover. */
|
|
21
|
-
onDelete?: () => void;
|
|
22
|
-
/** Called when the user clicks the Preview button on hover. */
|
|
23
|
-
onPreview?: () => void;
|
|
24
|
-
/**
|
|
25
|
-
* Label for the hover preview button.
|
|
26
|
-
* Defaults to "Preview". Pass an Arabic string for RTL contexts.
|
|
27
|
-
*/
|
|
28
|
-
previewLabel?: string;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
export interface MediaGalleryProps extends HTMLAttributes<HTMLDivElement> {
|
|
32
|
-
// ── Toolbar ────────────────────────────────────────────────────────
|
|
33
|
-
/**
|
|
34
|
-
* Show the toolbar (search + view toggle + action buttons).
|
|
35
|
-
* Default: true
|
|
36
|
-
*/
|
|
37
|
-
toolbar?: boolean;
|
|
38
|
-
|
|
39
|
-
/** Controlled value for the search input. */
|
|
40
|
-
searchValue?: string;
|
|
41
|
-
/** Called when the search input value changes. */
|
|
42
|
-
onSearchChange?: (value: string) => void;
|
|
43
|
-
/** Placeholder text for the search input. Defaults to "Search". */
|
|
44
|
-
searchPlaceholder?: string;
|
|
45
|
-
/**
|
|
46
|
-
* Message shown when the search query matches no images.
|
|
47
|
-
* Defaults to "No results found".
|
|
48
|
-
*/
|
|
49
|
-
emptySearchLabel?: string;
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
* Currently active view mode.
|
|
53
|
-
* Controls which view-toggle button appears selected.
|
|
54
|
-
* Default: 'grid'
|
|
55
|
-
*/
|
|
56
|
-
activeView?: MediaGalleryView;
|
|
57
|
-
/** Called when the user clicks a view-toggle button. */
|
|
58
|
-
onViewChange?: (view: MediaGalleryView) => void;
|
|
59
|
-
|
|
60
|
-
/**
|
|
61
|
-
* Called when the filter button is clicked.
|
|
62
|
-
* Visible on both desktop and mobile/tablet toolbars.
|
|
63
|
-
*/
|
|
64
|
-
onFilterClick?: () => void;
|
|
65
|
-
|
|
66
|
-
/**
|
|
67
|
-
* Called when the delete/trash button is clicked.
|
|
68
|
-
* Receives the images that are selected at the time of the click.
|
|
69
|
-
* Desktop toolbar only.
|
|
70
|
-
*/
|
|
71
|
-
onDeleteClick?: (selectedImages: MediaGalleryImage[]) => void;
|
|
72
|
-
|
|
73
|
-
/**
|
|
74
|
-
* Called when the Export button is clicked.
|
|
75
|
-
* Receives the images that are selected at the time of the click.
|
|
76
|
-
* Desktop toolbar only.
|
|
77
|
-
*/
|
|
78
|
-
onExportClick?: (selectedImages: MediaGalleryImage[]) => void;
|
|
79
|
-
/** Label for the Export button. Defaults to "Export". */
|
|
80
|
-
exportLabel?: string;
|
|
81
|
-
|
|
82
|
-
/**
|
|
83
|
-
* Called when the Add button is clicked.
|
|
84
|
-
* Desktop toolbar only.
|
|
85
|
-
*/
|
|
86
|
-
onAddClick?: () => void;
|
|
87
|
-
/** Label for the Add button. Defaults to "Add". */
|
|
88
|
-
addLabel?: string;
|
|
89
|
-
|
|
90
|
-
/**
|
|
91
|
-
* Called when the mobile/tablet "more" (…) button is clicked.
|
|
92
|
-
* Mobile/tablet toolbar only.
|
|
93
|
-
*/
|
|
94
|
-
onMoreClick?: () => void;
|
|
95
|
-
|
|
96
|
-
// ── Grid ───────────────────────────────────────────────────────────
|
|
97
|
-
/**
|
|
98
|
-
* Array of image items to render in the gallery grid.
|
|
99
|
-
* Responsive grid columns: 2 (mobile) → 3 (tablet) → 5 (desktop).
|
|
100
|
-
* Image size scales accordingly: sm → md → lg.
|
|
101
|
-
*/
|
|
102
|
-
images?: MediaGalleryImage[];
|
|
103
|
-
|
|
104
|
-
// ── Pagination ─────────────────────────────────────────────────────
|
|
105
|
-
/**
|
|
106
|
-
* Show the pagination section.
|
|
107
|
-
* Default: true
|
|
108
|
-
*/
|
|
109
|
-
pagination?: boolean;
|
|
110
|
-
|
|
111
|
-
/** Current page number (1-indexed). Default: 1 */
|
|
112
|
-
currentPage?: number;
|
|
113
|
-
/** Total number of pages. Default: 1 */
|
|
114
|
-
totalPages?: number;
|
|
115
|
-
/** Called when the user navigates to a different page. */
|
|
116
|
-
onPageChange?: (page: number) => void;
|
|
117
|
-
|
|
118
|
-
// ── Direction ──────────────────────────────────────────────────────
|
|
119
|
-
/**
|
|
120
|
-
* Layout direction — set to 'rtl' for Arabic/Hebrew.
|
|
121
|
-
* Applied to the root element and forwarded to Pagination.
|
|
122
|
-
*/
|
|
123
|
-
dir?: 'ltr' | 'rtl';
|
|
124
|
-
}
|
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
/* ─────────────────────────────────────────────────────────────
|
|
2
|
-
MediaGallery.variants.ts
|
|
3
|
-
Class-name maps only — no JSX, no React imports.
|
|
4
|
-
───────────────────────────────────────────────────────────── */
|
|
5
|
-
|
|
6
|
-
/* ── Container ───────────────────────────────────────────────────── */
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* Base container styles.
|
|
10
|
-
* Background: background-white token (#ffffff light, #111827 dark).
|
|
11
|
-
* Border radius: radius-16 token (16px).
|
|
12
|
-
*
|
|
13
|
-
* Sizing:
|
|
14
|
-
* - `min-w-[320px]` floor: never collapses below its smallest supported
|
|
15
|
-
* (mobile) width.
|
|
16
|
-
* - `w-full` fills the parent container — the parent decides the width.
|
|
17
|
-
* Mobile (`max-w-[360px]`) and Tablet (`max-w-[600px]`) demo wrappers
|
|
18
|
-
* constrain the gallery to simulate those viewports.
|
|
19
|
-
*
|
|
20
|
-
* `@container` enables CSS container queries so the grid, toolbar and
|
|
21
|
-
* pagination respond to the gallery's own width. This lets the
|
|
22
|
-
* Mobile / Tablet / Desktop demos each render their intended layout
|
|
23
|
-
* regardless of the docs viewport width.
|
|
24
|
-
*/
|
|
25
|
-
export const CONTAINER_BASE =
|
|
26
|
-
'@container min-w-[320px] w-full bg-white dark:bg-[rgba(17,25,39,1)] rounded-[16px] flex flex-col';
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* Responsive padding and gap.
|
|
30
|
-
* Mobile/Tablet: px=16px (spacing-xl) py=20px (spacing-2xl) gap=16px (spacing-xl).
|
|
31
|
-
* Desktop (@[1000px]): p=20px (spacing-2xl) gap=24px (spacing-3xl).
|
|
32
|
-
*/
|
|
33
|
-
export const CONTAINER_LAYOUT =
|
|
34
|
-
'px-spacing-xl py-spacing-2xl gap-spacing-xl @[1000px]:p-spacing-2xl @[1000px]:gap-spacing-3xl';
|
|
35
|
-
|
|
36
|
-
/* ── Toolbar ─────────────────────────────────────────────────────── */
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* Mobile/tablet compact toolbar — search + 2 icon buttons (filter + more).
|
|
40
|
-
* Shown when container < 1000px. Hidden at @[1000px]+.
|
|
41
|
-
*/
|
|
42
|
-
export const TOOLBAR_MOBILE =
|
|
43
|
-
'flex items-center gap-spacing-lg shrink-0 w-full @[1000px]:hidden';
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* Full desktop toolbar — search 350px + view toggles + delete + filter + export + add.
|
|
47
|
-
* Shown when container ≥ 1000px.
|
|
48
|
-
*/
|
|
49
|
-
export const TOOLBAR_DESKTOP =
|
|
50
|
-
'hidden @[1000px]:flex items-center justify-between shrink-0 w-full';
|
|
51
|
-
|
|
52
|
-
/** Left group inside desktop toolbar: search + view-toggle buttons. */
|
|
53
|
-
export const TOOLBAR_LEFT_GROUP = 'flex items-center gap-spacing-lg';
|
|
54
|
-
|
|
55
|
-
/** Right group inside desktop toolbar: delete + filter + actions. */
|
|
56
|
-
export const TOOLBAR_RIGHT_GROUP = 'flex items-center gap-spacing-lg';
|
|
57
|
-
|
|
58
|
-
/** Actions sub-group inside right group: Export + Add buttons. */
|
|
59
|
-
export const TOOLBAR_ACTIONS = 'flex items-center gap-spacing-md';
|
|
60
|
-
|
|
61
|
-
/* ── Grid ────────────────────────────────────────────────────────── */
|
|
62
|
-
|
|
63
|
-
/**
|
|
64
|
-
* Gap between image cards — 16px fixed.
|
|
65
|
-
* Figma: gap-x-[16px] gap-y-[16px].
|
|
66
|
-
*/
|
|
67
|
-
export const GRID_GAP = 'gap-spacing-xl';
|
|
68
|
-
|
|
69
|
-
/**
|
|
70
|
-
* Mobile grid: 2 columns.
|
|
71
|
-
* Default layout (container < 600px). Hidden at @[600px]+.
|
|
72
|
-
*/
|
|
73
|
-
export const GRID_MOBILE = `grid grid-cols-2 ${GRID_GAP} w-full shrink-0 @[600px]:hidden`;
|
|
74
|
-
|
|
75
|
-
/**
|
|
76
|
-
* Tablet grid: 3 columns.
|
|
77
|
-
* Shown when container is 600px–999px.
|
|
78
|
-
*/
|
|
79
|
-
export const GRID_TABLET = `hidden @[600px]:grid @[1000px]:hidden grid-cols-3 ${GRID_GAP} w-full shrink-0`;
|
|
80
|
-
|
|
81
|
-
/**
|
|
82
|
-
* Desktop grid: 5 columns.
|
|
83
|
-
* Shown when container ≥ 1000px.
|
|
84
|
-
*/
|
|
85
|
-
export const GRID_DESKTOP = `hidden @[1000px]:grid grid-cols-5 ${GRID_GAP} w-full shrink-0`;
|
|
86
|
-
|
|
87
|
-
/* ── List view ───────────────────────────────────────────────────── */
|
|
88
|
-
|
|
89
|
-
/** Outer list container — full width, vertical stack of rows. */
|
|
90
|
-
export const LIST_CONTAINER = 'flex flex-col w-full shrink-0 divide-y divide-[rgba(210,214,219,1)] dark:divide-[rgba(56,66,80,1)]';
|
|
91
|
-
|
|
92
|
-
/** A single row in list view. */
|
|
93
|
-
export const LIST_ROW =
|
|
94
|
-
'flex items-center gap-spacing-md px-spacing-sm py-spacing-md w-full group hover:bg-[rgba(247,248,249,1)] dark:hover:bg-[rgba(31,42,55,1)] motion-feedback';
|
|
95
|
-
|
|
96
|
-
/** Thumbnail wrapper inside a list row — fixed 48×48. */
|
|
97
|
-
export const LIST_THUMBNAIL =
|
|
98
|
-
'relative flex-shrink-0 w-[80px] h-[80px] rounded-[8px] overflow-hidden border border-[rgba(210,214,219,1)] dark:border-[rgba(56,66,80,1)]';
|
|
99
|
-
|
|
100
|
-
/** Filename text inside a list row. */
|
|
101
|
-
export const LIST_FILENAME =
|
|
102
|
-
'flex-1 min-w-0 truncate text-text-sm font-normal text-[rgba(31,42,55,1)] dark:text-[rgba(229,231,235,1)]';
|
|
103
|
-
|
|
104
|
-
/* ── Pagination wrappers ─────────────────────────────────────────── */
|
|
105
|
-
|
|
106
|
-
/**
|
|
107
|
-
* Wraps the mobile Pagination — hidden when container ≥ 1000px.
|
|
108
|
-
* Mobile pagination: icon-only arrows + numbered cells + green bg on active cell.
|
|
109
|
-
*/
|
|
110
|
-
export const PAGINATION_MOBILE_WRAP = '@[1000px]:hidden w-full shrink-0';
|
|
111
|
-
|
|
112
|
-
/**
|
|
113
|
-
* Wraps the desktop Pagination — shown when container ≥ 1000px.
|
|
114
|
-
* Desktop pagination: "Previous" / "Next" text buttons + green underline on active cell.
|
|
115
|
-
*/
|
|
116
|
-
export const PAGINATION_DESKTOP_WRAP = 'hidden @[1000px]:block w-full shrink-0';
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
|
|
3
|
-
import { forwardRef } from 'react';
|
|
4
|
-
import { cn } from '../../lib/cn';
|
|
5
|
-
import { Skeleton } from '../Skeleton';
|
|
6
|
-
import type { MediaGridsProps } from './MediaGrids.types';
|
|
7
|
-
import {
|
|
8
|
-
CONTAINER_WIDTH,
|
|
9
|
-
INNER_STACK_CLASS,
|
|
10
|
-
LINE_FULL_CLASS,
|
|
11
|
-
LINE_SHORT_CLASS,
|
|
12
|
-
MEDIA_BLOCK_CLASS,
|
|
13
|
-
OUTER_GAP_CLASSES,
|
|
14
|
-
} from './MediaGrids.variants';
|
|
15
|
-
|
|
16
|
-
export const MediaGrids = forwardRef<HTMLDivElement, MediaGridsProps>(function MediaGrids(
|
|
17
|
-
{ variant = 'media-l', className, ...rest },
|
|
18
|
-
ref,
|
|
19
|
-
) {
|
|
20
|
-
return (
|
|
21
|
-
<div
|
|
22
|
-
ref={ref}
|
|
23
|
-
data-slot="media-grids"
|
|
24
|
-
className={cn(
|
|
25
|
-
'flex flex-col items-start',
|
|
26
|
-
CONTAINER_WIDTH,
|
|
27
|
-
OUTER_GAP_CLASSES[variant],
|
|
28
|
-
className,
|
|
29
|
-
)}
|
|
30
|
-
{...rest}
|
|
31
|
-
>
|
|
32
|
-
{variant !== 'media-l' ? (
|
|
33
|
-
<>
|
|
34
|
-
<Skeleton data-slot="media-grids-media" className={MEDIA_BLOCK_CLASS} />
|
|
35
|
-
{variant === 'media-m' ? (
|
|
36
|
-
<Skeleton data-slot="media-grids-line-short" className={LINE_SHORT_CLASS} />
|
|
37
|
-
) : null}
|
|
38
|
-
</>
|
|
39
|
-
) : (
|
|
40
|
-
<div data-slot="media-grids-stack" className={INNER_STACK_CLASS}>
|
|
41
|
-
<Skeleton data-slot="media-grids-media" className={MEDIA_BLOCK_CLASS} />
|
|
42
|
-
<Skeleton data-slot="media-grids-line-full" className={LINE_FULL_CLASS} />
|
|
43
|
-
<Skeleton data-slot="media-grids-line-short" className={LINE_SHORT_CLASS} />
|
|
44
|
-
</div>
|
|
45
|
-
)}
|
|
46
|
-
</div>
|
|
47
|
-
);
|
|
48
|
-
});
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { HTMLAttributes } from 'react';
|
|
2
|
-
|
|
3
|
-
export type MediaGridsVariant = 'media' | 'media-m' | 'media-l';
|
|
4
|
-
|
|
5
|
-
export interface MediaGridsProps extends HTMLAttributes<HTMLDivElement> {
|
|
6
|
-
/**
|
|
7
|
-
* Layout preset for the media skeleton composition.
|
|
8
|
-
* Maps to Figma variants:
|
|
9
|
-
* - media: Media
|
|
10
|
-
* - media-m: Media / M
|
|
11
|
-
* - media-l: Media / L
|
|
12
|
-
*/
|
|
13
|
-
variant?: MediaGridsVariant;
|
|
14
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { MediaGridsVariant } from './MediaGrids.types';
|
|
2
|
-
|
|
3
|
-
export const CONTAINER_WIDTH = 'w-[293.336px]';
|
|
4
|
-
|
|
5
|
-
export const OUTER_GAP_CLASSES: Record<MediaGridsVariant, string> = {
|
|
6
|
-
media: '',
|
|
7
|
-
'media-m': 'gap-spacing-3xl',
|
|
8
|
-
'media-l': '',
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
export const MEDIA_BLOCK_CLASS = 'h-[220px] w-[293.336px]';
|
|
12
|
-
|
|
13
|
-
export const INNER_STACK_CLASS = 'w-full flex flex-col items-start gap-spacing-3xl';
|
|
14
|
-
|
|
15
|
-
export const LINE_FULL_CLASS = 'h-[16px] w-[293.336px]';
|
|
16
|
-
export const LINE_SHORT_CLASS = 'h-[16px] w-[253.336px]';
|
|
@@ -1,345 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
|
|
3
|
-
import { forwardRef, useCallback, useEffect, useRef, useState } from 'react';
|
|
4
|
-
import { createPortal } from 'react-dom';
|
|
5
|
-
import { cn } from '../../lib/cn';
|
|
6
|
-
import { Button } from '../Button';
|
|
7
|
-
import {
|
|
8
|
-
BACKDROP,
|
|
9
|
-
CONTENT,
|
|
10
|
-
HEADER,
|
|
11
|
-
HEADER_META,
|
|
12
|
-
HEADER_FILENAME,
|
|
13
|
-
HEADER_DATE,
|
|
14
|
-
HEADER_ACTIONS,
|
|
15
|
-
HEADER_BTN,
|
|
16
|
-
IMAGE_AREA,
|
|
17
|
-
IMAGE,
|
|
18
|
-
NAV_ARROW,
|
|
19
|
-
ZOOM_CONTROLS,
|
|
20
|
-
ZOOM_BTN,
|
|
21
|
-
OVERLAY_BACKDROP,
|
|
22
|
-
OVERLAY_IMAGE_WRAP,
|
|
23
|
-
OVERLAY_IMAGE,
|
|
24
|
-
OVERLAY_HEADER_GRADIENT,
|
|
25
|
-
OVERLAY_ARROW_ROW,
|
|
26
|
-
OVERLAY_FOOTER_GRADIENT,
|
|
27
|
-
OVERLAY_ZOOM_CONTROLS,
|
|
28
|
-
} from './MediaViewer.variants';
|
|
29
|
-
import {
|
|
30
|
-
ArrowLeft01Icon,
|
|
31
|
-
ArrowRight01Icon,
|
|
32
|
-
ZoomInIcon,
|
|
33
|
-
MinusIcon,
|
|
34
|
-
PlusIcon,
|
|
35
|
-
ShareIcon,
|
|
36
|
-
PrintIcon,
|
|
37
|
-
CloseIcon,
|
|
38
|
-
} from '../../icons/IconFactory';
|
|
39
|
-
import type { MediaViewerProps } from './MediaViewer.types';
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* MediaViewer — full-screen lightbox for browsing and zooming images.
|
|
43
|
-
*
|
|
44
|
-
* Standard layout (default): [← arrow] [header / image / zoom] [→ arrow]
|
|
45
|
-
* Overlay layout: image fills the frame; header, arrows, zoom are overlaid
|
|
46
|
-
* inside the image using a flex-column with justify-between.
|
|
47
|
-
*
|
|
48
|
-
* Pixel-perfect to Figma nodes 6606:94834 (standard) and 6606:94833 (overlay).
|
|
49
|
-
*/
|
|
50
|
-
export const MediaViewer = forwardRef<HTMLDivElement, MediaViewerProps>(
|
|
51
|
-
function MediaViewer(
|
|
52
|
-
{
|
|
53
|
-
open,
|
|
54
|
-
onClose,
|
|
55
|
-
images = [],
|
|
56
|
-
currentIndex: currentIndexProp,
|
|
57
|
-
onIndexChange,
|
|
58
|
-
zoom: zoomProp,
|
|
59
|
-
onZoomChange,
|
|
60
|
-
minZoom = 0.5,
|
|
61
|
-
maxZoom = 3,
|
|
62
|
-
zoomStep = 0.25,
|
|
63
|
-
onShare,
|
|
64
|
-
onPrint,
|
|
65
|
-
overlay = false,
|
|
66
|
-
rtl = false,
|
|
67
|
-
className,
|
|
68
|
-
...rest
|
|
69
|
-
},
|
|
70
|
-
ref,
|
|
71
|
-
) {
|
|
72
|
-
/* ── Index state (controlled / uncontrolled) ─────────────────── */
|
|
73
|
-
const isIndexControlled = currentIndexProp !== undefined;
|
|
74
|
-
const [internalIndex, setInternalIndex] = useState(0);
|
|
75
|
-
const activeIndex = isIndexControlled ? currentIndexProp! : internalIndex;
|
|
76
|
-
|
|
77
|
-
const setIndex = useCallback(
|
|
78
|
-
(next: number) => {
|
|
79
|
-
const clamped = Math.max(0, Math.min(images.length - 1, next));
|
|
80
|
-
if (!isIndexControlled) setInternalIndex(clamped);
|
|
81
|
-
onIndexChange?.(clamped);
|
|
82
|
-
},
|
|
83
|
-
[images.length, isIndexControlled, onIndexChange],
|
|
84
|
-
);
|
|
85
|
-
|
|
86
|
-
/* ── Zoom state (controlled / uncontrolled) ──────────────────── */
|
|
87
|
-
const isZoomControlled = zoomProp !== undefined;
|
|
88
|
-
const [internalZoom, setInternalZoom] = useState(1);
|
|
89
|
-
const activeZoom = isZoomControlled ? zoomProp! : internalZoom;
|
|
90
|
-
|
|
91
|
-
const setZoom = useCallback(
|
|
92
|
-
(next: number) => {
|
|
93
|
-
const clamped = Math.max(minZoom, Math.min(maxZoom, next));
|
|
94
|
-
if (!isZoomControlled) setInternalZoom(clamped);
|
|
95
|
-
onZoomChange?.(clamped);
|
|
96
|
-
},
|
|
97
|
-
[isZoomControlled, maxZoom, minZoom, onZoomChange],
|
|
98
|
-
);
|
|
99
|
-
|
|
100
|
-
const zoomIn = useCallback(() => setZoom(activeZoom + zoomStep), [activeZoom, setZoom, zoomStep]);
|
|
101
|
-
const zoomOut = useCallback(() => setZoom(activeZoom - zoomStep), [activeZoom, setZoom, zoomStep]);
|
|
102
|
-
const resetZoom = useCallback(() => setZoom(1), [setZoom]);
|
|
103
|
-
|
|
104
|
-
/* ── Navigation helpers ──────────────────────────────────────── */
|
|
105
|
-
const goPrev = useCallback(() => { setIndex(activeIndex - 1); resetZoom(); }, [activeIndex, setIndex, resetZoom]);
|
|
106
|
-
const goNext = useCallback(() => { setIndex(activeIndex + 1); resetZoom(); }, [activeIndex, setIndex, resetZoom]);
|
|
107
|
-
|
|
108
|
-
/* ── Keyboard handler ────────────────────────────────────────── */
|
|
109
|
-
useEffect(() => {
|
|
110
|
-
if (!open) return;
|
|
111
|
-
const handleKey = (e: KeyboardEvent) => {
|
|
112
|
-
switch (e.key) {
|
|
113
|
-
case 'Escape': onClose(); break;
|
|
114
|
-
case 'ArrowLeft': rtl ? goNext() : goPrev(); break;
|
|
115
|
-
case 'ArrowRight': rtl ? goPrev() : goNext(); break;
|
|
116
|
-
case '+': case '=': zoomIn(); break;
|
|
117
|
-
case '-': zoomOut(); break;
|
|
118
|
-
}
|
|
119
|
-
};
|
|
120
|
-
window.addEventListener('keydown', handleKey);
|
|
121
|
-
return () => window.removeEventListener('keydown', handleKey);
|
|
122
|
-
}, [open, onClose, goPrev, goNext, zoomIn, zoomOut, rtl]);
|
|
123
|
-
|
|
124
|
-
/* ── Body scroll lock ────────────────────────────────────────── */
|
|
125
|
-
useEffect(() => {
|
|
126
|
-
document.body.style.overflow = open ? 'hidden' : '';
|
|
127
|
-
return () => { document.body.style.overflow = ''; };
|
|
128
|
-
}, [open]);
|
|
129
|
-
|
|
130
|
-
/* ── Reset zoom on image change ──────────────────────────────── */
|
|
131
|
-
const prevIndexRef = useRef(activeIndex);
|
|
132
|
-
useEffect(() => {
|
|
133
|
-
if (activeIndex !== prevIndexRef.current) {
|
|
134
|
-
prevIndexRef.current = activeIndex;
|
|
135
|
-
if (!isZoomControlled) setInternalZoom(1);
|
|
136
|
-
}
|
|
137
|
-
}, [activeIndex, isZoomControlled]);
|
|
138
|
-
|
|
139
|
-
/* ── Share / print ───────────────────────────────────────────── */
|
|
140
|
-
const handleShare = () => {
|
|
141
|
-
if (onShare) { onShare(); return; }
|
|
142
|
-
const img = images[activeIndex];
|
|
143
|
-
if (typeof navigator !== 'undefined' && navigator.share) {
|
|
144
|
-
navigator.share({ title: img?.filename ?? 'Image', url: img?.src ?? window.location.href }).catch(() => {});
|
|
145
|
-
} else if (img?.src) {
|
|
146
|
-
navigator.clipboard.writeText(img.src).catch(() => {});
|
|
147
|
-
}
|
|
148
|
-
};
|
|
149
|
-
|
|
150
|
-
const handlePrint = () => {
|
|
151
|
-
if (onPrint) { onPrint(); return; }
|
|
152
|
-
window.print();
|
|
153
|
-
};
|
|
154
|
-
|
|
155
|
-
if (!open) return null;
|
|
156
|
-
|
|
157
|
-
const currentImage = images[activeIndex];
|
|
158
|
-
const hasPrev = activeIndex > 0;
|
|
159
|
-
const hasNext = activeIndex < images.length - 1;
|
|
160
|
-
|
|
161
|
-
/* RTL-aware prev/next */
|
|
162
|
-
const prevDisabled = rtl ? !hasNext : !hasPrev;
|
|
163
|
-
const nextDisabled = rtl ? !hasPrev : !hasNext;
|
|
164
|
-
const handlePrev = rtl ? goNext : goPrev;
|
|
165
|
-
const handleNext = rtl ? goPrev : goNext;
|
|
166
|
-
|
|
167
|
-
/* ── Image element (standard — fills its container) ─────────── */
|
|
168
|
-
const imageEl = currentImage?.src ? (
|
|
169
|
-
/* eslint-disable-next-line @next/next/no-img-element */
|
|
170
|
-
<img
|
|
171
|
-
key={currentImage.id}
|
|
172
|
-
src={currentImage.src}
|
|
173
|
-
alt={currentImage.alt ?? currentImage.filename ?? ''}
|
|
174
|
-
data-slot="viewer-image"
|
|
175
|
-
className={IMAGE}
|
|
176
|
-
style={{ transform: `scale(${activeZoom})` }}
|
|
177
|
-
draggable={false}
|
|
178
|
-
/>
|
|
179
|
-
) : (
|
|
180
|
-
/* eslint-disable-next-line @next/next/no-img-element */
|
|
181
|
-
<img
|
|
182
|
-
key={currentImage?.id ?? 'placeholder'}
|
|
183
|
-
src="/images/aspect-ratio.webp"
|
|
184
|
-
alt={currentImage?.alt ?? ''}
|
|
185
|
-
data-slot="viewer-image-placeholder"
|
|
186
|
-
className={IMAGE}
|
|
187
|
-
style={{ transform: `scale(${activeZoom})` }}
|
|
188
|
-
draggable={false}
|
|
189
|
-
/>
|
|
190
|
-
);
|
|
191
|
-
|
|
192
|
-
/* ── Image element (overlay — absolute background layer) ─────── */
|
|
193
|
-
const overlayImageEl = currentImage?.src ? (
|
|
194
|
-
/* eslint-disable-next-line @next/next/no-img-element */
|
|
195
|
-
<img
|
|
196
|
-
key={currentImage.id}
|
|
197
|
-
src={currentImage.src}
|
|
198
|
-
alt={currentImage.alt ?? currentImage.filename ?? ''}
|
|
199
|
-
data-slot="viewer-image"
|
|
200
|
-
className={OVERLAY_IMAGE}
|
|
201
|
-
style={{ transform: `scale(${activeZoom})` }}
|
|
202
|
-
draggable={false}
|
|
203
|
-
/>
|
|
204
|
-
) : (
|
|
205
|
-
/* eslint-disable-next-line @next/next/no-img-element */
|
|
206
|
-
<img
|
|
207
|
-
key={currentImage?.id ?? 'placeholder'}
|
|
208
|
-
src="/images/aspect-ratio.webp"
|
|
209
|
-
alt={currentImage?.alt ?? ''}
|
|
210
|
-
data-slot="viewer-image-placeholder"
|
|
211
|
-
className={OVERLAY_IMAGE}
|
|
212
|
-
style={{ transform: `scale(${activeZoom})` }}
|
|
213
|
-
draggable={false}
|
|
214
|
-
/>
|
|
215
|
-
);
|
|
216
|
-
|
|
217
|
-
/* ── Header actions (shared) ─────────────────────────────────── */
|
|
218
|
-
const headerActions = (
|
|
219
|
-
<div className={HEADER_ACTIONS}>
|
|
220
|
-
<Button type="button" iconOnly size="md" variant="secondary-outline" aria-label="Share" className={HEADER_BTN} leadingIcon={<ShareIcon width={24} height={24} />} onClick={handleShare} />
|
|
221
|
-
<Button type="button" iconOnly size="md" variant="secondary-outline" aria-label="Print" className={HEADER_BTN} leadingIcon={<PrintIcon width={24} height={24} />} onClick={handlePrint} />
|
|
222
|
-
<Button type="button" iconOnly size="md" variant="secondary-outline" aria-label="Close viewer" className={HEADER_BTN} leadingIcon={<CloseIcon width={24} height={24} />} onClick={onClose} />
|
|
223
|
-
</div>
|
|
224
|
-
);
|
|
225
|
-
|
|
226
|
-
/* ── Zoom bar — standard (no bg pill) ────────────────────────── */
|
|
227
|
-
const zoomBar = (
|
|
228
|
-
<div data-slot="viewer-zoom" className={ZOOM_CONTROLS}>
|
|
229
|
-
<Button type="button" iconOnly size="sm" variant="subtle" disabled={activeZoom <= minZoom} aria-label="Zoom out" className={ZOOM_BTN} leadingIcon={<MinusIcon />} onClick={zoomOut} />
|
|
230
|
-
<Button type="button" iconOnly size="sm" variant="subtle" aria-label={`Zoom ${Math.round(activeZoom * 100)}%. Click to reset.`} className={cn(ZOOM_BTN, 'opacity-100')} leadingIcon={<ZoomInIcon />} onClick={resetZoom} />
|
|
231
|
-
<Button type="button" iconOnly size="sm" variant="subtle" disabled={activeZoom >= maxZoom} aria-label="Zoom in" className={ZOOM_BTN} leadingIcon={<PlusIcon />} onClick={zoomIn} />
|
|
232
|
-
</div>
|
|
233
|
-
);
|
|
234
|
-
|
|
235
|
-
/* ── Zoom bar — overlay (with dark pill background) ──────────── */
|
|
236
|
-
const overlayZoomBar = (
|
|
237
|
-
<div data-slot="viewer-zoom" className={OVERLAY_ZOOM_CONTROLS}>
|
|
238
|
-
<Button type="button" iconOnly size="sm" variant="subtle" disabled={activeZoom <= minZoom} aria-label="Zoom out" className={ZOOM_BTN} leadingIcon={<MinusIcon />} onClick={zoomOut} />
|
|
239
|
-
<Button type="button" iconOnly size="sm" variant="subtle" aria-label={`Zoom ${Math.round(activeZoom * 100)}%. Click to reset.`} className={cn(ZOOM_BTN, 'opacity-100')} leadingIcon={<ZoomInIcon />} onClick={resetZoom} />
|
|
240
|
-
<Button type="button" iconOnly size="sm" variant="subtle" disabled={activeZoom >= maxZoom} aria-label="Zoom in" className={ZOOM_BTN} leadingIcon={<PlusIcon />} onClick={zoomIn} />
|
|
241
|
-
</div>
|
|
242
|
-
);
|
|
243
|
-
|
|
244
|
-
const viewer = overlay ? (
|
|
245
|
-
/* ══ OVERLAY layout ══════════════════════════════════════════
|
|
246
|
-
Figma node 6606:94833.
|
|
247
|
-
Dark backdrop with px-64px / py-80px frame around the image.
|
|
248
|
-
Inside the image wrapper: flex-col justify-between so that
|
|
249
|
-
[header-gradient] [arrow-row] [zoom-gradient] stack top → mid → bottom.
|
|
250
|
-
The <img> is absolutely positioned as the background layer.
|
|
251
|
-
═══════════════════════════════════════════════════════════════ */
|
|
252
|
-
<div
|
|
253
|
-
role="dialog"
|
|
254
|
-
aria-modal="true"
|
|
255
|
-
aria-label={currentImage?.filename ?? 'Image viewer'}
|
|
256
|
-
dir={rtl ? 'rtl' : 'ltr'}
|
|
257
|
-
data-slot="media-viewer"
|
|
258
|
-
className={OVERLAY_BACKDROP}
|
|
259
|
-
onClick={(e) => { if (e.target === e.currentTarget) onClose(); }}
|
|
260
|
-
>
|
|
261
|
-
<div
|
|
262
|
-
ref={ref}
|
|
263
|
-
data-slot="viewer-content"
|
|
264
|
-
className={cn(OVERLAY_IMAGE_WRAP, className)}
|
|
265
|
-
{...rest}
|
|
266
|
-
>
|
|
267
|
-
{/* Background image — absolute, fills the wrapper */}
|
|
268
|
-
{overlayImageEl}
|
|
269
|
-
|
|
270
|
-
{/* Top: gradient header with filename, date and action buttons */}
|
|
271
|
-
<div data-slot="viewer-header" className={OVERLAY_HEADER_GRADIENT}>
|
|
272
|
-
<div className={HEADER_META}>
|
|
273
|
-
<span className={HEADER_FILENAME}>{currentImage?.filename ?? ''}</span>
|
|
274
|
-
{currentImage?.date && <span className={HEADER_DATE}>{currentImage.date}</span>}
|
|
275
|
-
</div>
|
|
276
|
-
{headerActions}
|
|
277
|
-
</div>
|
|
278
|
-
|
|
279
|
-
{/* Middle: arrow row — justify-between places arrows at left/right edges */}
|
|
280
|
-
{/* dir="ltr" keeps arrows in fixed visual positions regardless of RTL parent */}
|
|
281
|
-
<div dir="ltr" data-slot="viewer-arrows" className={OVERLAY_ARROW_ROW}>
|
|
282
|
-
<Button type="button" iconOnly size="lg" variant="subtle" disabled={prevDisabled} aria-label="Previous image" className={NAV_ARROW} leadingIcon={<ArrowLeft01Icon width={24} height={24} />} onClick={handlePrev} />
|
|
283
|
-
<Button type="button" iconOnly size="lg" variant="subtle" disabled={nextDisabled} aria-label="Next image" className={NAV_ARROW} leadingIcon={<ArrowRight01Icon width={24} height={24} />} onClick={handleNext} />
|
|
284
|
-
</div>
|
|
285
|
-
|
|
286
|
-
{/* Bottom: gradient footer with zoom pill */}
|
|
287
|
-
<div data-slot="viewer-footer" className={OVERLAY_FOOTER_GRADIENT}>
|
|
288
|
-
{overlayZoomBar}
|
|
289
|
-
</div>
|
|
290
|
-
</div>
|
|
291
|
-
</div>
|
|
292
|
-
) : (
|
|
293
|
-
/* ══ STANDARD layout ═════════════════════════════════════════
|
|
294
|
-
Figma node 6606:94834.
|
|
295
|
-
Header above image, zoom below.
|
|
296
|
-
Nav arrows are flex siblings outside the content column.
|
|
297
|
-
═══════════════════════════════════════════════════════════════ */
|
|
298
|
-
<div
|
|
299
|
-
role="dialog"
|
|
300
|
-
aria-modal="true"
|
|
301
|
-
aria-label={currentImage?.filename ?? 'Image viewer'}
|
|
302
|
-
data-slot="media-viewer"
|
|
303
|
-
className={BACKDROP}
|
|
304
|
-
onClick={(e) => { if (e.target === e.currentTarget) onClose(); }}
|
|
305
|
-
>
|
|
306
|
-
{/* Left nav arrow */}
|
|
307
|
-
<Button type="button" iconOnly size="lg" variant="subtle" disabled={prevDisabled} aria-label="Previous image" className={NAV_ARROW} leadingIcon={<ArrowLeft01Icon width={24} height={24} />} onClick={handlePrev} />
|
|
308
|
-
|
|
309
|
-
{/* Centre content column */}
|
|
310
|
-
<div
|
|
311
|
-
ref={ref}
|
|
312
|
-
dir={rtl ? 'rtl' : 'ltr'}
|
|
313
|
-
data-slot="viewer-content"
|
|
314
|
-
className={cn(CONTENT, className)}
|
|
315
|
-
{...rest}
|
|
316
|
-
>
|
|
317
|
-
{/* Header */}
|
|
318
|
-
<div data-slot="viewer-header" className={HEADER}>
|
|
319
|
-
<div className={HEADER_META}>
|
|
320
|
-
<span className={HEADER_FILENAME}>{currentImage?.filename ?? ''}</span>
|
|
321
|
-
{currentImage?.date && <span className={HEADER_DATE}>{currentImage.date}</span>}
|
|
322
|
-
</div>
|
|
323
|
-
{headerActions}
|
|
324
|
-
</div>
|
|
325
|
-
|
|
326
|
-
{/* Image */}
|
|
327
|
-
<div data-slot="viewer-image-area" className={IMAGE_AREA}>
|
|
328
|
-
{imageEl}
|
|
329
|
-
</div>
|
|
330
|
-
|
|
331
|
-
{/* Zoom */}
|
|
332
|
-
{zoomBar}
|
|
333
|
-
</div>
|
|
334
|
-
|
|
335
|
-
{/* Right nav arrow */}
|
|
336
|
-
<Button type="button" iconOnly size="lg" variant="subtle" disabled={nextDisabled} aria-label="Next image" className={NAV_ARROW} leadingIcon={<ArrowRight01Icon width={24} height={24} />} onClick={handleNext} />
|
|
337
|
-
</div>
|
|
338
|
-
);
|
|
339
|
-
|
|
340
|
-
if (typeof document !== 'undefined') {
|
|
341
|
-
return createPortal(viewer, document.body);
|
|
342
|
-
}
|
|
343
|
-
return viewer;
|
|
344
|
-
},
|
|
345
|
-
);
|