@shohojdhara/atomix 0.1.30 → 0.2.1
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/CHANGELOG.md +0 -0
- package/LICENSE +0 -0
- package/README.md +151 -39
- package/dist/atomix.css +13529 -0
- package/dist/atomix.min.css +15 -0
- package/dist/index.d.ts +6112 -1757
- package/dist/index.esm.js +16852 -8364
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +16892 -8369
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist/themes/boomdevs.css +13241 -0
- package/dist/themes/boomdevs.min.css +353 -0
- package/dist/themes/esrar.css +15374 -0
- package/dist/themes/esrar.min.css +189 -0
- package/dist/themes/mashroom.css +28079 -0
- package/dist/themes/mashroom.min.css +403 -0
- package/dist/themes/shaj-default.css +14203 -0
- package/dist/themes/shaj-default.min.css +500 -0
- package/dist/themes/yabai.css +13711 -0
- package/dist/themes/yabai.min.css +189 -0
- package/package.json +126 -99
- package/src/components/Accordion/Accordion.stories.tsx +271 -0
- package/src/components/Accordion/Accordion.tsx +131 -0
- package/src/components/Accordion/index.ts +3 -0
- package/src/components/AtomixLogo/AtomixLogo.tsx +36 -0
- package/src/components/AtomixLogo/index.ts +3 -0
- package/src/components/AtomixLogo.tsx +40 -0
- package/src/components/Avatar/Avatar.stories.tsx +257 -0
- package/src/components/Avatar/Avatar.tsx +68 -0
- package/src/components/Avatar/AvatarGroup.tsx +73 -0
- package/src/components/Avatar/index.ts +3 -0
- package/src/components/Badge/Badge.stories.tsx +371 -0
- package/src/components/Badge/Badge.tsx +39 -0
- package/src/components/Badge/index.ts +3 -0
- package/src/components/Block/Block.stories.tsx +408 -0
- package/src/components/Block/Block.tsx +137 -0
- package/src/components/Block/index.ts +1 -0
- package/src/components/Breadcrumb/Breadcrumb.stories.tsx +106 -0
- package/src/components/Breadcrumb/Breadcrumb.tsx +112 -0
- package/src/components/Breadcrumb/index.ts +3 -0
- package/src/components/Button/Button.stories.tsx +312 -0
- package/src/components/Button/Button.tsx +69 -0
- package/src/components/Button/index.ts +3 -0
- package/src/components/Callout/Callout.stories.tsx +588 -0
- package/src/components/Callout/Callout.tsx +78 -0
- package/src/components/Callout/index.ts +1 -0
- package/src/components/Card/Card.stories.tsx +105 -0
- package/src/components/Card/Card.tsx +69 -0
- package/src/components/Card/ElevationCard.tsx +47 -0
- package/src/components/Card/index.ts +15 -0
- package/src/components/Chart/AdvancedChart.tsx +624 -0
- package/src/components/Chart/AnimatedChart.tsx +206 -0
- package/src/components/Chart/AreaChart.tsx +27 -0
- package/src/components/Chart/BarChart.tsx +148 -0
- package/src/components/Chart/BubbleChart.tsx +411 -0
- package/src/components/Chart/CandlestickChart.tsx +765 -0
- package/src/components/Chart/Chart.stories.tsx +527 -0
- package/src/components/Chart/Chart.tsx +218 -0
- package/src/components/Chart/ChartRenderer.tsx +322 -0
- package/src/components/Chart/ChartToolbar.tsx +436 -0
- package/src/components/Chart/ChartTooltip.tsx +101 -0
- package/src/components/Chart/DonutChart.tsx +370 -0
- package/src/components/Chart/FunnelChart.tsx +393 -0
- package/src/components/Chart/GaugeChart.tsx +550 -0
- package/src/components/Chart/HeatmapChart.tsx +614 -0
- package/src/components/Chart/LineChart.tsx +172 -0
- package/src/components/Chart/LineChartNew.tsx +167 -0
- package/src/components/Chart/MultiAxisChart.tsx +498 -0
- package/src/components/Chart/PieChart.tsx +103 -0
- package/src/components/Chart/RadarChart.tsx +332 -0
- package/src/components/Chart/RealTimeChart.tsx +436 -0
- package/src/components/Chart/ScatterChart.tsx +152 -0
- package/src/components/Chart/TreemapChart.tsx +574 -0
- package/src/components/Chart/WaterfallChart.tsx +450 -0
- package/src/components/Chart/index.ts +119 -0
- package/src/components/Chart/types.ts +338 -0
- package/src/components/ColorModeToggle/ColorModeToggle.stories.tsx +44 -0
- package/src/components/ColorModeToggle/ColorModeToggle.tsx +85 -0
- package/src/components/ColorModeToggle/index.ts +2 -0
- package/src/components/Countdown/Countdown.stories.tsx +46 -0
- package/src/components/Countdown/Countdown.tsx +90 -0
- package/src/components/Countdown/index.ts +2 -0
- package/src/components/DataTable/DataTable.stories.tsx +248 -0
- package/src/components/DataTable/DataTable.tsx +213 -0
- package/src/components/DataTable/index.ts +3 -0
- package/src/components/DatePicker/DatePicker.stories.tsx +364 -0
- package/src/components/DatePicker/DatePicker.tsx +504 -0
- package/src/components/DatePicker/index.ts +4 -0
- package/src/components/DatePicker/readme.md +106 -0
- package/src/components/DatePicker/types.ts +167 -0
- package/src/components/DatePicker/utils.ts +185 -0
- package/src/components/Dropdown/Dropdown.stories.tsx +358 -0
- package/src/components/Dropdown/Dropdown.tsx +352 -0
- package/src/components/Dropdown/index.ts +14 -0
- package/src/components/Dropdown/readme.md +151 -0
- package/src/components/EdgePanel/EdgePanel.stories.tsx +266 -0
- package/src/components/EdgePanel/EdgePanel.tsx +73 -0
- package/src/components/EdgePanel/index.ts +1 -0
- package/src/components/Form/Checkbox.stories.tsx +76 -0
- package/src/components/Form/Checkbox.tsx +69 -0
- package/src/components/Form/Form.stories.tsx +497 -0
- package/src/components/Form/Form.tsx +46 -0
- package/src/components/Form/FormGroup.stories.tsx +162 -0
- package/src/components/Form/FormGroup.tsx +53 -0
- package/src/components/Form/Input.stories.tsx +106 -0
- package/src/components/Form/Input.tsx +87 -0
- package/src/components/Form/Radio.stories.tsx +94 -0
- package/src/components/Form/Radio.tsx +65 -0
- package/src/components/Form/Select.stories.tsx +151 -0
- package/src/components/Form/Select.tsx +191 -0
- package/src/components/Form/Textarea.stories.tsx +123 -0
- package/src/components/Form/Textarea.tsx +78 -0
- package/src/components/Form/index.ts +7 -0
- package/src/components/Hero/Hero.stories.tsx +295 -0
- package/src/components/Hero/Hero.tsx +175 -0
- package/src/components/Hero/index.ts +6 -0
- package/src/components/Icon/Icon.tsx +87 -0
- package/src/components/Icon/index.ts +2 -0
- package/src/components/List/List.stories.tsx +122 -0
- package/src/components/List/List.tsx +35 -0
- package/src/components/List/ListGroup.tsx +35 -0
- package/src/components/List/index.ts +2 -0
- package/src/components/Messages/Messages.stories.tsx +160 -0
- package/src/components/Messages/Messages.tsx +172 -0
- package/src/components/Messages/index.ts +3 -0
- package/src/components/Modal/Modal.stories.tsx +284 -0
- package/src/components/Modal/Modal.tsx +198 -0
- package/src/components/Modal/README.md +169 -0
- package/src/components/Modal/index.ts +1 -0
- package/src/components/Navigation/Menu/MegaMenu.tsx +109 -0
- package/src/components/Navigation/Menu/Menu.stories.tsx +339 -0
- package/src/components/Navigation/Menu/Menu.tsx +111 -0
- package/src/components/Navigation/Nav/Nav.stories.tsx +456 -0
- package/src/components/Navigation/Nav/Nav.tsx +51 -0
- package/src/components/Navigation/Nav/NavDropdown.tsx +105 -0
- package/src/components/Navigation/Nav/NavItem.tsx +168 -0
- package/src/components/Navigation/Navbar/Navbar.stories.tsx +569 -0
- package/src/components/Navigation/Navbar/Navbar.tsx +150 -0
- package/src/components/Navigation/README.md +314 -0
- package/src/components/Navigation/SideMenu/SideMenu.README.md +494 -0
- package/src/components/Navigation/SideMenu/SideMenu.stories.tsx +609 -0
- package/src/components/Navigation/SideMenu/SideMenu.tsx +101 -0
- package/src/components/Navigation/SideMenu/SideMenuItem.tsx +103 -0
- package/src/components/Navigation/SideMenu/SideMenuList.tsx +41 -0
- package/src/components/Navigation/index.ts +23 -0
- package/src/components/Pagination/Pagination.stories.tsx +188 -0
- package/src/components/Pagination/Pagination.tsx +162 -0
- package/src/components/Pagination/index.ts +1 -0
- package/src/components/PhotoViewer/PhotoViewer.stories.tsx +397 -0
- package/src/components/PhotoViewer/PhotoViewer.tsx +246 -0
- package/src/components/PhotoViewer/PhotoViewerHeader.tsx +184 -0
- package/src/components/PhotoViewer/PhotoViewerImage.tsx +173 -0
- package/src/components/PhotoViewer/PhotoViewerInfo.tsx +91 -0
- package/src/components/PhotoViewer/PhotoViewerNavigation.tsx +85 -0
- package/src/components/PhotoViewer/PhotoViewerThumbnails.tsx +63 -0
- package/src/components/PhotoViewer/README.md +358 -0
- package/src/components/PhotoViewer/examples/ImageGallery.tsx +187 -0
- package/src/components/PhotoViewer/examples/SimpleGallery.tsx +73 -0
- package/src/components/PhotoViewer/examples/index.ts +2 -0
- package/src/components/PhotoViewer/index.ts +14 -0
- package/src/components/Popover/Popover.stories.tsx +143 -0
- package/src/components/Popover/Popover.tsx +137 -0
- package/src/components/Popover/index.ts +5 -0
- package/src/components/Popover/readme.md +120 -0
- package/src/components/ProductReview/ProductReview.stories.tsx +88 -0
- package/src/components/ProductReview/ProductReview.tsx +169 -0
- package/src/components/ProductReview/index.ts +3 -0
- package/src/components/Progress/Progress.stories.tsx +75 -0
- package/src/components/Progress/Progress.tsx +45 -0
- package/src/components/Progress/index.ts +1 -0
- package/src/components/Rating/Rating.stories.tsx +109 -0
- package/src/components/Rating/Rating.tsx +286 -0
- package/src/components/Rating/index.ts +6 -0
- package/src/components/River/River.stories.tsx +230 -0
- package/src/components/River/River.tsx +134 -0
- package/src/components/River/index.ts +2 -0
- package/src/components/SectionIntro/SectionIntro.stories.tsx +143 -0
- package/src/components/SectionIntro/SectionIntro.tsx +184 -0
- package/src/components/SectionIntro/index.ts +3 -0
- package/src/components/Slider/Slider.stories.tsx +241 -0
- package/src/components/Slider/Slider.tsx +225 -0
- package/src/components/Slider/index.ts +24 -0
- package/src/components/Spinner/Spinner.stories.tsx +65 -0
- package/src/components/Spinner/Spinner.tsx +36 -0
- package/src/components/Spinner/index.ts +2 -0
- package/src/components/Steps/Steps.stories.tsx +158 -0
- package/src/components/Steps/Steps.tsx +115 -0
- package/src/components/Steps/index.ts +3 -0
- package/src/components/Tab/Tab.stories.tsx +129 -0
- package/src/components/Tab/Tab.tsx +111 -0
- package/src/components/Tab/index.ts +2 -0
- package/src/components/Testimonial/Testimonial.stories.tsx +180 -0
- package/src/components/Testimonial/Testimonial.tsx +138 -0
- package/src/components/Testimonial/index.ts +3 -0
- package/src/components/Todo/Todo.stories.tsx +103 -0
- package/src/components/Todo/Todo.tsx +158 -0
- package/src/components/Todo/index.ts +1 -0
- package/src/components/Toggle/Toggle.stories.tsx +49 -0
- package/src/components/Toggle/Toggle.tsx +84 -0
- package/src/components/Toggle/index.ts +2 -0
- package/src/components/Tooltip/Tooltip.stories.tsx +115 -0
- package/src/components/Tooltip/Tooltip.tsx +150 -0
- package/src/components/Tooltip/index.ts +3 -0
- package/src/components/Upload/Upload.stories.tsx +220 -0
- package/src/components/Upload/Upload.tsx +354 -0
- package/src/components/Upload/index.ts +3 -0
- package/src/components/VideoPlayer/VideoPlayer.stories.tsx +484 -0
- package/src/components/VideoPlayer/VideoPlayer.tsx +574 -0
- package/src/components/VideoPlayer/index.ts +7 -0
- package/src/components/index.ts +111 -0
- package/src/layouts/Grid/Container.tsx +58 -0
- package/src/layouts/Grid/Grid.stories.tsx +861 -0
- package/src/layouts/Grid/Grid.tsx +68 -0
- package/src/layouts/Grid/GridCol.tsx +161 -0
- package/src/layouts/Grid/README.md +108 -0
- package/src/layouts/Grid/Row.tsx +70 -0
- package/src/layouts/Grid/index.ts +8 -0
- package/src/layouts/MasonryGrid/MasonryGrid.stories.tsx +387 -0
- package/src/layouts/MasonryGrid/MasonryGrid.tsx +408 -0
- package/src/layouts/MasonryGrid/MasonryGridItem.tsx +44 -0
- package/src/layouts/MasonryGrid/README.md +117 -0
- package/src/layouts/MasonryGrid/index.ts +4 -0
- package/src/layouts/index.ts +7 -0
- package/src/lib/README.md +89 -0
- package/src/lib/composables/index.ts +63 -0
- package/src/lib/composables/useAccordion.ts +129 -0
- package/src/lib/composables/useAmbientMode.ts +90 -0
- package/src/lib/composables/useBadge.ts +42 -0
- package/src/lib/composables/useBarChart.ts +365 -0
- package/src/lib/composables/useBlock.ts +56 -0
- package/src/lib/composables/useBreadcrumb.ts +81 -0
- package/src/lib/composables/useButton.ts +59 -0
- package/src/lib/composables/useCallout.ts +55 -0
- package/src/lib/composables/useCard.ts +155 -0
- package/src/lib/composables/useChart.ts +1082 -0
- package/src/lib/composables/useChartAnalytics.ts +505 -0
- package/src/lib/composables/useChartData.ts +38 -0
- package/src/lib/composables/useChartExport.ts +392 -0
- package/src/lib/composables/useChartInteraction.ts +34 -0
- package/src/lib/composables/useChartInteractions.ts +123 -0
- package/src/lib/composables/useChartPerformance.ts +323 -0
- package/src/lib/composables/useChartScale.ts +48 -0
- package/src/lib/composables/useChartToolbar.ts +532 -0
- package/src/lib/composables/useCheckbox.ts +70 -0
- package/src/lib/composables/useDataTable.ts +208 -0
- package/src/lib/composables/useDatePicker.ts +564 -0
- package/src/lib/composables/useDropdown.ts +272 -0
- package/src/lib/composables/useEdgePanel.ts +261 -0
- package/src/lib/composables/useForm.ts +62 -0
- package/src/lib/composables/useFormGroup.ts +51 -0
- package/src/lib/composables/useHero.ts +250 -0
- package/src/lib/composables/useInput.ts +58 -0
- package/src/lib/composables/useLineChart.ts +319 -0
- package/src/lib/composables/useMessages.ts +77 -0
- package/src/lib/composables/useModal.ts +110 -0
- package/src/lib/composables/useNavbar.ts +288 -0
- package/src/lib/composables/usePagination.ts +101 -0
- package/src/lib/composables/usePhotoViewer.ts +937 -0
- package/src/lib/composables/usePieChart.ts +362 -0
- package/src/lib/composables/usePopover.ts +354 -0
- package/src/lib/composables/useProgress.ts +74 -0
- package/src/lib/composables/useRadio.ts +47 -0
- package/src/lib/composables/useRating.ts +174 -0
- package/src/lib/composables/useRiver.ts +205 -0
- package/src/lib/composables/useSelect.ts +52 -0
- package/src/lib/composables/useSideMenu.ts +197 -0
- package/src/lib/composables/useSlider.ts +339 -0
- package/src/lib/composables/useSpinner.ts +42 -0
- package/src/lib/composables/useTextarea.ts +55 -0
- package/src/lib/composables/useTodo.ts +141 -0
- package/src/lib/composables/useVideoPlayer.ts +398 -0
- package/src/lib/constants/components.ts +1433 -0
- package/src/lib/constants/index.ts +4 -0
- package/src/lib/index.ts +11 -0
- package/src/lib/types/components.ts +4750 -0
- package/src/lib/types/index.ts +2 -0
- package/src/lib/utils/dom.ts +41 -0
- package/src/lib/utils/icons.ts +74 -0
- package/src/lib/utils/index.ts +55 -0
- package/src/lib/utils/useForkRef.test.tsx +64 -0
- package/src/lib/utils/useForkRef.ts +36 -0
- package/src/lib/utils.test.ts +14 -0
- package/src/styles/01-settings/_index.scss +2 -0
- package/src/styles/01-settings/_settings.accordion.scss +7 -5
- package/src/styles/01-settings/_settings.animations.scss +0 -0
- package/src/styles/01-settings/_settings.avatar-group.scss +6 -3
- package/src/styles/01-settings/_settings.avatar.scss +2 -2
- package/src/styles/01-settings/_settings.badge.scss +15 -9
- package/src/styles/01-settings/_settings.block.scss +11 -0
- package/src/styles/01-settings/_settings.border-radius.scss +12 -9
- package/src/styles/01-settings/_settings.border.scss +4 -1
- package/src/styles/01-settings/_settings.box-shadow.scss +1 -1
- package/src/styles/01-settings/_settings.breadcrumb.scss +9 -8
- package/src/styles/01-settings/_settings.breakpoints.scss +0 -0
- package/src/styles/01-settings/_settings.btn-group.scss +4 -1
- package/src/styles/01-settings/_settings.button.scss +19 -21
- package/src/styles/01-settings/_settings.callout.scss +42 -24
- package/src/styles/01-settings/_settings.card.scss +12 -10
- package/src/styles/01-settings/_settings.chart.scss +199 -0
- package/src/styles/01-settings/_settings.checkbox-group.scss +0 -0
- package/src/styles/01-settings/_settings.checkbox.scss +0 -0
- package/src/styles/01-settings/_settings.color-mode.scss +0 -0
- package/src/styles/01-settings/_settings.colors.scss +20 -0
- package/src/styles/01-settings/_settings.config.scss +1 -1
- package/src/styles/01-settings/_settings.countdown.scss +0 -0
- package/src/styles/01-settings/_settings.data-table.scss +0 -0
- package/src/styles/01-settings/_settings.datepicker.scss +0 -0
- package/src/styles/01-settings/_settings.dropdown.scss +0 -0
- package/src/styles/01-settings/_settings.edge-panel.scss +0 -0
- package/src/styles/01-settings/_settings.fonts.scss +1 -1
- package/src/styles/01-settings/_settings.form-group.scss +0 -0
- package/src/styles/01-settings/_settings.form.scss +0 -0
- package/src/styles/01-settings/_settings.grid.scss +3 -3
- package/src/styles/01-settings/_settings.hero.scss +1 -1
- package/src/styles/01-settings/_settings.input.scss +1 -1
- package/src/styles/01-settings/_settings.link.scss +0 -0
- package/src/styles/01-settings/_settings.list-group.scss +0 -0
- package/src/styles/01-settings/_settings.list.scss +0 -0
- package/src/styles/01-settings/_settings.maps.scss +43 -8
- package/src/styles/01-settings/_settings.masonry-grid.scss +0 -0
- package/src/styles/01-settings/_settings.menu.scss +0 -0
- package/src/styles/01-settings/_settings.messages.scss +0 -0
- package/src/styles/01-settings/_settings.modal.scss +1 -1
- package/src/styles/01-settings/_settings.nav.scss +0 -0
- package/src/styles/01-settings/_settings.navbar.scss +0 -0
- package/src/styles/01-settings/_settings.pagination.scss +0 -0
- package/src/styles/01-settings/_settings.photoviewer.scss +89 -23
- package/src/styles/01-settings/_settings.popover.scss +0 -0
- package/src/styles/01-settings/_settings.position.scss +0 -0
- package/src/styles/01-settings/_settings.progress.scss +0 -0
- package/src/styles/01-settings/_settings.rating.scss +0 -0
- package/src/styles/01-settings/_settings.river.scss +0 -0
- package/src/styles/01-settings/_settings.sectionintro.scss +0 -0
- package/src/styles/01-settings/_settings.select.scss +0 -0
- package/src/styles/01-settings/_settings.side-menu.scss +0 -0
- package/src/styles/01-settings/_settings.skeleton.scss +0 -0
- package/src/styles/01-settings/_settings.slider.scss +59 -0
- package/src/styles/01-settings/_settings.spacing.scss +11 -3
- package/src/styles/01-settings/_settings.spinner.scss +0 -0
- package/src/styles/01-settings/_settings.steps.scss +1 -1
- package/src/styles/01-settings/_settings.tabs.scss +4 -4
- package/src/styles/01-settings/_settings.testimonials.scss +0 -0
- package/src/styles/01-settings/_settings.todo.scss +0 -0
- package/src/styles/01-settings/_settings.toggle.scss +1 -1
- package/src/styles/01-settings/_settings.tooltip.scss +0 -0
- package/src/styles/01-settings/_settings.typography.scss +2 -0
- package/src/styles/01-settings/_settings.upload.scss +0 -0
- package/src/styles/01-settings/_settings.video-player.scss +64 -0
- package/src/styles/01-settings/_settings.z-layers.scss +0 -0
- package/src/styles/02-tools/_index.scss +1 -0
- package/src/styles/02-tools/_tools.animations.scss +82 -0
- package/src/styles/02-tools/_tools.border-radius.scss +0 -0
- package/src/styles/02-tools/_tools.breakpoints.scss +0 -0
- package/src/styles/02-tools/_tools.button.scss +5 -0
- package/src/styles/02-tools/_tools.clearfix.scss +0 -0
- package/src/styles/02-tools/_tools.color-functions.scss +0 -0
- package/src/styles/02-tools/_tools.color-mode.scss +1 -1
- package/src/styles/02-tools/_tools.component.scss +479 -0
- package/src/styles/02-tools/_tools.event.scss +0 -0
- package/src/styles/02-tools/_tools.grid.scss +0 -0
- package/src/styles/02-tools/_tools.hidden-visually.scss +0 -0
- package/src/styles/02-tools/_tools.hidden.scss +0 -0
- package/src/styles/02-tools/_tools.map-loop.scss +0 -0
- package/src/styles/02-tools/_tools.media-queries.scss +0 -0
- package/src/styles/02-tools/_tools.object-fit.scss +0 -0
- package/src/styles/02-tools/_tools.placeholder.scss +0 -0
- package/src/styles/02-tools/_tools.rem.scss +5 -1
- package/src/styles/02-tools/_tools.size.scss +0 -0
- package/src/styles/02-tools/_tools.spacing.scss +0 -0
- package/src/styles/02-tools/_tools.to-rgb.scss +0 -0
- package/src/styles/02-tools/_tools.transition.scss +0 -0
- package/src/styles/02-tools/_tools.utilities.scss +0 -0
- package/src/styles/02-tools/_tools.utility-api.scss +23 -2
- package/src/styles/03-generic/_generic.fonts.scss +0 -0
- package/src/styles/03-generic/_generic.reset.scss +0 -0
- package/src/styles/03-generic/_generic.root.scss +5 -1
- package/src/styles/03-generic/_generic.selection.scss +0 -0
- package/src/styles/03-generic/_index.scss +0 -0
- package/src/styles/04-elements/_elements.all.scss +0 -0
- package/src/styles/04-elements/_elements.body.scss +0 -0
- package/src/styles/04-elements/_elements.heading.scss +0 -0
- package/src/styles/04-elements/_elements.html.scss +0 -0
- package/src/styles/04-elements/_elements.links.scss +0 -0
- package/src/styles/04-elements/_index.scss +0 -0
- package/src/styles/05-objects/_index.scss +1 -0
- package/src/styles/05-objects/_objects.block.scss +122 -0
- package/src/styles/05-objects/_objects.container.scss +14 -10
- package/src/styles/05-objects/_objects.grid.scss +0 -0
- package/src/styles/05-objects/_objects.masonry-grid.scss +0 -0
- package/src/styles/06-components/_components.accordion.scss +3 -1
- package/src/styles/06-components/_components.avatar-group.scss +0 -0
- package/src/styles/06-components/_components.avatar.scss +0 -0
- package/src/styles/06-components/_components.badge.scss +9 -9
- package/src/styles/06-components/_components.breadcrumb.scss +0 -0
- package/src/styles/06-components/_components.btn-group.scss +0 -0
- package/src/styles/06-components/_components.button.scss +0 -0
- package/src/styles/06-components/_components.callout.scss +2 -1
- package/src/styles/06-components/_components.card.scss +0 -1
- package/src/styles/06-components/_components.chart.scss +2102 -0
- package/src/styles/06-components/_components.checkbox-group.scss +0 -0
- package/src/styles/06-components/_components.checkbox.scss +0 -0
- package/src/styles/06-components/_components.color-mode-toggle.scss +0 -0
- package/src/styles/06-components/_components.countdown.scss +0 -0
- package/src/styles/06-components/_components.data-table.scss +0 -0
- package/src/styles/06-components/_components.datepicker.scss +0 -0
- package/src/styles/06-components/_components.dropdown.scss +0 -0
- package/src/styles/06-components/_components.edge-panel.scss +0 -0
- package/src/styles/06-components/_components.form-group.scss +0 -0
- package/src/styles/06-components/_components.form.scss +0 -0
- package/src/styles/06-components/_components.hero.scss +1 -0
- package/src/styles/06-components/_components.icon.scss +2 -2
- package/src/styles/06-components/_components.image-gallery.scss +0 -0
- package/src/styles/06-components/_components.input.scss +0 -0
- package/src/styles/06-components/_components.list-group.scss +0 -0
- package/src/styles/06-components/_components.list.scss +0 -0
- package/src/styles/06-components/_components.menu.scss +0 -0
- package/src/styles/06-components/_components.messages.scss +0 -0
- package/src/styles/06-components/_components.modal.scss +3 -0
- package/src/styles/06-components/_components.nav.scss +0 -0
- package/src/styles/06-components/_components.navbar.scss +0 -0
- package/src/styles/06-components/_components.pagination.scss +0 -0
- package/src/styles/06-components/_components.photoviewer.scss +603 -545
- package/src/styles/06-components/_components.popover.scss +0 -0
- package/src/styles/06-components/_components.product-review.scss +0 -0
- package/src/styles/06-components/_components.progress.scss +0 -0
- package/src/styles/06-components/_components.rating.scss +0 -0
- package/src/styles/06-components/_components.river.scss +0 -0
- package/src/styles/06-components/_components.sectionintro.scss +0 -0
- package/src/styles/06-components/_components.select.scss +0 -0
- package/src/styles/06-components/_components.side-menu.scss +0 -0
- package/src/styles/06-components/_components.skeleton.scss +0 -0
- package/src/styles/06-components/_components.slider.scss +273 -0
- package/src/styles/06-components/_components.spinner.scss +0 -0
- package/src/styles/06-components/_components.steps.scss +1 -0
- package/src/styles/06-components/_components.tabs.scss +0 -0
- package/src/styles/06-components/_components.testimonials.scss +0 -0
- package/src/styles/06-components/_components.todo.scss +0 -0
- package/src/styles/06-components/_components.toggle.scss +0 -0
- package/src/styles/06-components/_components.tooltip.scss +4 -9
- package/src/styles/06-components/_components.upload.scss +0 -0
- package/src/styles/06-components/_components.video-player.scss +623 -0
- package/src/styles/06-components/_index.scss +3 -0
- package/src/styles/06-components/old.chart.styles.scss +2819 -0
- package/src/styles/99-utilities/_index.scss +0 -0
- package/src/styles/99-utilities/_utilities.background.scss +0 -0
- package/src/styles/99-utilities/_utilities.border.scss +0 -0
- package/src/styles/99-utilities/_utilities.clearfix.scss +0 -0
- package/src/styles/99-utilities/_utilities.display.scss +0 -0
- package/src/styles/99-utilities/_utilities.flex.scss +0 -0
- package/src/styles/99-utilities/_utilities.link.scss +0 -0
- package/src/styles/99-utilities/_utilities.object-fit.scss +0 -0
- package/src/styles/99-utilities/_utilities.opacity.scss +0 -0
- package/src/styles/99-utilities/_utilities.overflow.scss +0 -0
- package/src/styles/99-utilities/_utilities.position.scss +0 -0
- package/src/styles/99-utilities/_utilities.scss +2 -1
- package/src/styles/99-utilities/_utilities.shadow.scss +0 -0
- package/src/styles/99-utilities/_utilities.sizes.scss +0 -0
- package/src/styles/99-utilities/_utilities.spacing.scss +0 -0
- package/src/styles/99-utilities/_utilities.text.scss +5 -0
- package/src/styles/99-utilities/_utilities.visibility.scss +0 -0
- package/src/styles/99-utilities/_utilities.visually-hidden.scss +0 -0
- package/src/styles/99-utilities/_utilities.z-index.scss +0 -0
- package/src/styles/css-modules.d.ts +0 -0
- package/src/styles/index.scss +0 -0
- package/dist/index.css +0 -15
- package/dist/index.esm.css +0 -15
- package/dist/index.min.css +0 -15
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@use '../01-settings/settings.photoviewer' as
|
|
1
|
+
@use '../01-settings/settings.photoviewer' as *;
|
|
2
2
|
@use '../01-settings/settings.config' as config;
|
|
3
3
|
@use '../01-settings/settings.colors' as *;
|
|
4
4
|
@use '../01-settings/settings.border-radius' as *;
|
|
@@ -16,29 +16,27 @@
|
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
%standard-transition {
|
|
19
|
-
transition: all
|
|
20
|
-
var(--#{config.$prefix}photoviewer-transition-timing);
|
|
19
|
+
transition: all $photoviewer-transition-duration $photoviewer-transition-timing;
|
|
21
20
|
}
|
|
22
21
|
|
|
23
|
-
%
|
|
24
|
-
transition: all
|
|
25
|
-
var(--#{config.$prefix}photoviewer-transition-timing);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
%svg-icon {
|
|
29
|
-
fill: currentColor;
|
|
30
|
-
pointer-events: none;
|
|
22
|
+
%fast-transition {
|
|
23
|
+
transition: all $photoviewer-fast-transition $photoviewer-transition-timing;
|
|
31
24
|
}
|
|
32
25
|
|
|
33
|
-
//
|
|
26
|
+
// Modern panel styles
|
|
34
27
|
%panel-base {
|
|
35
|
-
background: $
|
|
36
|
-
border
|
|
37
|
-
|
|
28
|
+
background: $photoviewer-component-background-color;
|
|
29
|
+
border: 1px solid $photoviewer-component-border-color;
|
|
30
|
+
border-radius: $photoviewer-image-container-border-radius;
|
|
31
|
+
box-shadow: $photoviewer-info-panel-shadow;
|
|
32
|
+
backdrop-filter: blur(8px);
|
|
38
33
|
}
|
|
39
34
|
|
|
40
35
|
// Custom scrollbar styling
|
|
41
36
|
%custom-scrollbar {
|
|
37
|
+
scrollbar-width: thin;
|
|
38
|
+
scrollbar-color: var(--#{config.$prefix}tertiary-text-emphasis) transparent;
|
|
39
|
+
|
|
42
40
|
&::-webkit-scrollbar {
|
|
43
41
|
width: 6px;
|
|
44
42
|
}
|
|
@@ -48,35 +46,37 @@
|
|
|
48
46
|
}
|
|
49
47
|
|
|
50
48
|
&::-webkit-scrollbar-thumb {
|
|
51
|
-
background:
|
|
49
|
+
background: var(--#{config.$prefix}tertiary-text-emphasis);
|
|
52
50
|
border-radius: 3px;
|
|
53
51
|
}
|
|
54
52
|
|
|
55
53
|
&::-webkit-scrollbar-thumb:hover {
|
|
56
|
-
background:
|
|
54
|
+
background: var(--#{config.$prefix}secondary-text-emphasis);
|
|
57
55
|
}
|
|
58
56
|
}
|
|
59
57
|
|
|
60
|
-
//
|
|
58
|
+
// Modern hover effects
|
|
61
59
|
%hover-effect {
|
|
60
|
+
@extend %fast-transition;
|
|
61
|
+
|
|
62
62
|
&:hover:not(:disabled) {
|
|
63
|
-
transform: translateY(-
|
|
64
|
-
box-shadow: $
|
|
63
|
+
transform: translateY(-1px);
|
|
64
|
+
box-shadow: $photoviewer-control-shadow-hover;
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
&:active:not(:disabled) {
|
|
68
68
|
transform: translateY(0);
|
|
69
|
-
box-shadow: $
|
|
69
|
+
box-shadow: $photoviewer-control-shadow;
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
-
//
|
|
73
|
+
// Enhanced image styling
|
|
74
74
|
%image-base {
|
|
75
75
|
max-width: 100%;
|
|
76
76
|
max-height: 100%;
|
|
77
77
|
object-fit: contain;
|
|
78
78
|
transform-origin: center center;
|
|
79
|
-
will-change:
|
|
79
|
+
will-change: transform;
|
|
80
80
|
|
|
81
81
|
// Enhanced image quality
|
|
82
82
|
image-rendering: auto;
|
|
@@ -87,134 +87,57 @@
|
|
|
87
87
|
// Smooth hardware-accelerated transforms
|
|
88
88
|
transform: translateZ(0);
|
|
89
89
|
|
|
90
|
-
// Prevent
|
|
90
|
+
// Prevent touch actions on the image
|
|
91
91
|
touch-action: none;
|
|
92
92
|
-webkit-touch-callout: none;
|
|
93
93
|
-webkit-user-select: none;
|
|
94
94
|
user-select: none;
|
|
95
95
|
}
|
|
96
96
|
|
|
97
|
-
//
|
|
97
|
+
// Modern thumbnail styling
|
|
98
98
|
%thumbnail-base {
|
|
99
99
|
@extend %flex-center;
|
|
100
|
-
@extend %
|
|
100
|
+
@extend %fast-transition;
|
|
101
|
+
|
|
101
102
|
border: 2px solid transparent;
|
|
102
|
-
border-radius: $border-radius
|
|
103
|
+
border-radius: $photoviewer-thumbnail-border-radius;
|
|
103
104
|
padding: 0;
|
|
104
|
-
background:
|
|
105
|
+
background: transparent;
|
|
105
106
|
cursor: pointer;
|
|
106
107
|
overflow: hidden;
|
|
107
108
|
position: relative;
|
|
108
|
-
|
|
109
|
-
&::after {
|
|
110
|
-
content: '';
|
|
111
|
-
position: absolute;
|
|
112
|
-
inset: 0;
|
|
113
|
-
background: rgba(0, 0, 0, 0.2);
|
|
114
|
-
opacity: 1;
|
|
115
|
-
transition: opacity var(--#{config.$prefix}photoviewer-transition-duration)
|
|
116
|
-
var(--#{config.$prefix}photoviewer-transition-timing);
|
|
117
|
-
}
|
|
109
|
+
box-shadow: $photoviewer-thumbnail-shadow;
|
|
118
110
|
|
|
119
111
|
&:hover {
|
|
120
112
|
transform: translateY(-2px);
|
|
121
|
-
box-shadow: $
|
|
122
|
-
border-color:
|
|
123
|
-
|
|
124
|
-
&::after {
|
|
125
|
-
opacity: 0;
|
|
126
|
-
}
|
|
113
|
+
box-shadow: $photoviewer-thumbnail-hover-shadow;
|
|
114
|
+
border-color: var(--#{config.$prefix}primary-border-subtle);
|
|
127
115
|
}
|
|
128
116
|
|
|
129
117
|
&.is-active {
|
|
130
|
-
border-color:
|
|
131
|
-
box-shadow:
|
|
118
|
+
border-color: $photoviewer-thumbnail-active-border-color;
|
|
119
|
+
box-shadow: $photoviewer-thumbnail-hover-shadow;
|
|
132
120
|
transform: scale(1.05);
|
|
133
121
|
}
|
|
134
122
|
}
|
|
135
123
|
|
|
136
|
-
// Info panel
|
|
137
|
-
%info-
|
|
138
|
-
|
|
139
|
-
color: $gray-7;
|
|
140
|
-
margin-bottom: 0.75rem;
|
|
141
|
-
padding-left: 1.5rem;
|
|
142
|
-
position: relative;
|
|
143
|
-
|
|
144
|
-
&::before {
|
|
145
|
-
content: '';
|
|
146
|
-
position: absolute;
|
|
147
|
-
left: 0;
|
|
148
|
-
top: 0.4rem;
|
|
149
|
-
width: 8px;
|
|
150
|
-
height: 8px;
|
|
151
|
-
background: var(--#{config.$prefix}primary-lighter);
|
|
152
|
-
border-radius: 50%;
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
// Info panel tag styling
|
|
157
|
-
%info-tag {
|
|
158
|
-
display: inline-flex;
|
|
159
|
-
padding: 0.25rem 0.75rem;
|
|
160
|
-
background: $gray-2;
|
|
161
|
-
color: $gray-8;
|
|
162
|
-
border-radius: $border-radius-pill;
|
|
163
|
-
font-size: $font-size-xs;
|
|
164
|
-
font-weight: 500;
|
|
165
|
-
transition: all 0.2s ease;
|
|
166
|
-
|
|
167
|
-
&:hover {
|
|
168
|
-
background: var(--#{config.$prefix}primary-lighter);
|
|
169
|
-
color: var(--#{config.$prefix}primary-darker);
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
// Common responsive control size adjustments
|
|
174
|
-
@mixin responsive-control-sizes($size-multiplier) {
|
|
175
|
-
&__action-btn,
|
|
176
|
-
&__action-button {
|
|
177
|
-
width: calc(var(--#{config.$prefix}photoviewer-control-size-small) * #{$size-multiplier});
|
|
178
|
-
height: calc(var(--#{config.$prefix}photoviewer-control-size-small) * #{$size-multiplier});
|
|
179
|
-
|
|
180
|
-
svg {
|
|
181
|
-
width: calc(20px * #{$size-multiplier});
|
|
182
|
-
height: calc(20px * #{$size-multiplier});
|
|
183
|
-
}
|
|
184
|
-
}
|
|
124
|
+
// Info panel styling
|
|
125
|
+
%info-section {
|
|
126
|
+
margin-bottom: $photoviewer-info-spacing;
|
|
185
127
|
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
width: calc(var(--#{config.$prefix}photoviewer-control-size) * #{$size-multiplier});
|
|
189
|
-
height: calc(var(--#{config.$prefix}photoviewer-control-size) * #{$size-multiplier});
|
|
190
|
-
|
|
191
|
-
svg {
|
|
192
|
-
width: calc(24px * #{$size-multiplier});
|
|
193
|
-
height: calc(24px * #{$size-multiplier});
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
&__thumbnail {
|
|
198
|
-
width: calc(var(--#{config.$prefix}photoviewer-thumbnail-size) * #{$size-multiplier});
|
|
199
|
-
height: calc(var(--#{config.$prefix}photoviewer-thumbnail-size) * #{$size-multiplier});
|
|
128
|
+
&:last-child {
|
|
129
|
+
margin-bottom: 0;
|
|
200
130
|
}
|
|
201
131
|
}
|
|
202
132
|
|
|
203
|
-
// When the PhotoViewer is open,
|
|
204
|
-
// This can be used to apply additional styling to the page when the PhotoViewer is active
|
|
133
|
+
// When the PhotoViewer is open, add body class for styling
|
|
205
134
|
body.is-open-photoviewer {
|
|
206
135
|
overflow: hidden;
|
|
207
|
-
|
|
208
|
-
// Prevent iOS bounce scrolling
|
|
209
136
|
position: fixed;
|
|
210
137
|
width: 100%;
|
|
211
|
-
|
|
212
|
-
// Prevent touch zoom/pan on the entire page when PhotoViewer is open
|
|
213
138
|
touch-action: none;
|
|
214
139
|
-webkit-touch-callout: none;
|
|
215
140
|
-webkit-user-select: none;
|
|
216
|
-
|
|
217
|
-
// Optimize for trackpad gestures on macOS
|
|
218
141
|
-webkit-transform: translateZ(0);
|
|
219
142
|
-webkit-backface-visibility: hidden;
|
|
220
143
|
|
|
@@ -226,51 +149,33 @@ body.is-open-photoviewer {
|
|
|
226
149
|
// Enhanced mobile support
|
|
227
150
|
@media (max-width: 768px) {
|
|
228
151
|
body.is-open-photoviewer {
|
|
229
|
-
// Additional mobile-specific styles
|
|
230
152
|
-webkit-overflow-scrolling: touch;
|
|
231
|
-
|
|
232
|
-
// Prevent address bar from showing/hiding
|
|
233
153
|
height: 100vh;
|
|
234
|
-
height: 100dvh;
|
|
154
|
+
height: 100dvh;
|
|
235
155
|
}
|
|
236
156
|
}
|
|
237
157
|
|
|
238
|
-
// Main component
|
|
158
|
+
// Main PhotoViewer component
|
|
239
159
|
.c-photo-viewer {
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
--#{config.$prefix}photoviewer-bg: #{photoviewer.$component-background-color};
|
|
160
|
+
// CSS variables for theming
|
|
161
|
+
--#{config.$prefix}photoviewer-bg: #{$photoviewer-component-background-color};
|
|
243
162
|
--#{config.$prefix}photoviewer-border-radius: #{$border-radius-xl};
|
|
244
163
|
--#{config.$prefix}photoviewer-shadow: #{$box-shadow-lg};
|
|
245
|
-
--#{config.$prefix}photoviewer-backdrop-bg: #{photoviewer
|
|
246
|
-
--#{config.$prefix}photoviewer-backdrop-blur:
|
|
247
|
-
--#{config.$prefix}photoviewer-
|
|
248
|
-
--#{config.$prefix}photoviewer-
|
|
249
|
-
--#{config.$prefix}photoviewer-
|
|
250
|
-
--#{config.$prefix}photoviewer-action-hover-bg: #{photoviewer.$control-background-hover};
|
|
251
|
-
--#{config.$prefix}photoviewer-close-color: #{photoviewer.$modal-close-button-color};
|
|
252
|
-
--#{config.$prefix}photoviewer-thumbnail-border: #{photoviewer.$thumbnail-active-border-color};
|
|
253
|
-
--#{config.$prefix}photoviewer-spacing: #{photoviewer.$component-spacing};
|
|
254
|
-
--#{config.$prefix}photoviewer-transition-duration: #{photoviewer.$photoviewer-transition-duration};
|
|
255
|
-
--#{config.$prefix}photoviewer-transition-timing: #{photoviewer.$photoviewer-transition-timing};
|
|
256
|
-
--#{config.$prefix}photoviewer-control-size: #{photoviewer.$control-size};
|
|
257
|
-
--#{config.$prefix}photoviewer-control-size-small: #{photoviewer.$control-size-small};
|
|
258
|
-
--#{config.$prefix}photoviewer-control-border-radius: #{photoviewer.$control-border-radius};
|
|
259
|
-
--#{config.$prefix}photoviewer-thumbnail-size: #{photoviewer.$thumbnail-size};
|
|
260
|
-
--#{config.$prefix}photoviewer-thumbnail-size-large: #{photoviewer.$thumbnail-size-large};
|
|
261
|
-
--#{config.$prefix}photoviewer-thumbnail-gap: #{photoviewer.$thumbnail-gap};
|
|
262
|
-
--#{config.$prefix}photoviewer-info-panel-width: #{photoviewer.$info-panel-width};
|
|
164
|
+
--#{config.$prefix}photoviewer-backdrop-bg: #{$photoviewer-modal-background-color};
|
|
165
|
+
--#{config.$prefix}photoviewer-backdrop-blur: #{$photoviewer-modal-backdrop-blur};
|
|
166
|
+
--#{config.$prefix}photoviewer-spacing: #{$photoviewer-component-spacing};
|
|
167
|
+
--#{config.$prefix}photoviewer-transition-duration: #{$photoviewer-transition-duration};
|
|
168
|
+
--#{config.$prefix}photoviewer-transition-timing: #{$photoviewer-transition-timing};
|
|
263
169
|
|
|
264
170
|
@extend %flex-center;
|
|
265
171
|
@extend %standard-transition;
|
|
266
|
-
|
|
267
|
-
background: var(--#{config.$prefix}photoviewer-bg);
|
|
268
|
-
border-radius: var(--#{config.$prefix}photoviewer-border-radius);
|
|
269
|
-
box-shadow: var(--#{config.$prefix}photoviewer-shadow);
|
|
172
|
+
|
|
270
173
|
position: fixed;
|
|
271
174
|
inset: 0;
|
|
175
|
+
width: 100vw;
|
|
176
|
+
height: 100vh;
|
|
272
177
|
z-index: 1000;
|
|
273
|
-
|
|
178
|
+
background: transparent;
|
|
274
179
|
opacity: 1;
|
|
275
180
|
transition-property: opacity;
|
|
276
181
|
|
|
@@ -288,259 +193,172 @@ body.is-open-photoviewer {
|
|
|
288
193
|
&__container {
|
|
289
194
|
@extend %standard-transition;
|
|
290
195
|
@extend %panel-base;
|
|
196
|
+
|
|
291
197
|
position: relative;
|
|
292
198
|
z-index: 2;
|
|
293
|
-
background: var(--#{config.$prefix}photoviewer-bg);
|
|
294
|
-
border-radius: var(--#{config.$prefix}photoviewer-border-radius);
|
|
295
|
-
padding: var(--#{config.$prefix}photoviewer-spacing);
|
|
296
199
|
display: flex;
|
|
297
200
|
flex-direction: column;
|
|
298
201
|
min-width: 320px;
|
|
299
|
-
max-width:
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
transition-property: transform;
|
|
306
|
-
overflow: hidden;
|
|
307
|
-
|
|
308
|
-
.is-entering & {
|
|
309
|
-
transform: scale(0.95);
|
|
310
|
-
}
|
|
311
|
-
|
|
312
|
-
.is-exiting & {
|
|
313
|
-
transform: scale(0.95);
|
|
314
|
-
}
|
|
202
|
+
max-width: 95vw;
|
|
203
|
+
max-height: 95vh;
|
|
204
|
+
width: auto;
|
|
205
|
+
height: auto;
|
|
206
|
+
padding: var(--#{config.$prefix}photoviewer-spacing);
|
|
207
|
+
margin: auto;
|
|
315
208
|
}
|
|
316
209
|
|
|
210
|
+
// Header styling
|
|
317
211
|
&__header {
|
|
318
212
|
display: flex;
|
|
213
|
+
align-items: center;
|
|
319
214
|
justify-content: space-between;
|
|
215
|
+
padding: $photoviewer-header-padding;
|
|
216
|
+
background: $photoviewer-header-background;
|
|
217
|
+
border-bottom: 1px solid $photoviewer-header-border-color;
|
|
218
|
+
border-radius: $border-radius-lg $border-radius-lg 0 0;
|
|
219
|
+
min-height: $photoviewer-header-height;
|
|
220
|
+
flex-shrink: 0;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
&__header-left {
|
|
224
|
+
display: flex;
|
|
320
225
|
align-items: center;
|
|
321
|
-
|
|
322
|
-
position: relative;
|
|
323
|
-
z-index: 5;
|
|
226
|
+
gap: 1rem;
|
|
324
227
|
}
|
|
325
228
|
|
|
326
|
-
&__counter,
|
|
327
229
|
&__counter-badge {
|
|
328
|
-
|
|
329
|
-
color: $
|
|
330
|
-
font-
|
|
331
|
-
|
|
332
|
-
padding:
|
|
333
|
-
border-radius: $border-radius
|
|
334
|
-
|
|
335
|
-
|
|
230
|
+
background: $photoviewer-counter-badge-background;
|
|
231
|
+
color: $photoviewer-counter-badge-color;
|
|
232
|
+
font-size: $photoviewer-counter-badge-font-size;
|
|
233
|
+
font-weight: $photoviewer-counter-badge-font-weight;
|
|
234
|
+
padding: $photoviewer-counter-badge-padding;
|
|
235
|
+
border-radius: $photoviewer-counter-badge-border-radius;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
&__image-title {
|
|
239
|
+
font-size: $photoviewer-info-title-font-size;
|
|
240
|
+
font-weight: $photoviewer-info-title-font-weight;
|
|
241
|
+
color: $photoviewer-info-title-color;
|
|
242
|
+
margin: 0;
|
|
336
243
|
}
|
|
337
244
|
|
|
338
245
|
&__actions {
|
|
339
246
|
display: flex;
|
|
340
|
-
gap: 0.75rem;
|
|
341
247
|
align-items: center;
|
|
248
|
+
gap: 0.5rem;
|
|
342
249
|
}
|
|
343
250
|
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
251
|
+
&__divider {
|
|
252
|
+
width: 1px;
|
|
253
|
+
height: 1.5rem;
|
|
254
|
+
background: $photoviewer-component-border-color;
|
|
255
|
+
margin: 0 0.25rem;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
&__action-button {
|
|
348
259
|
@extend %hover-effect;
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
border-radius:
|
|
353
|
-
|
|
354
|
-
|
|
260
|
+
|
|
261
|
+
width: $photoviewer-control-size-small;
|
|
262
|
+
height: $photoviewer-control-size-small;
|
|
263
|
+
border-radius: $photoviewer-control-border-radius;
|
|
264
|
+
background: $photoviewer-control-background;
|
|
265
|
+
border: 1px solid $photoviewer-control-border-color;
|
|
266
|
+
color: $photoviewer-control-color;
|
|
267
|
+
box-shadow: $photoviewer-control-shadow;
|
|
268
|
+
|
|
269
|
+
&:hover:not(:disabled) {
|
|
270
|
+
background: $photoviewer-control-background-hover;
|
|
271
|
+
color: $photoviewer-control-color-hover;
|
|
272
|
+
border-color: $photoviewer-control-color-hover;
|
|
273
|
+
}
|
|
355
274
|
|
|
356
275
|
&:disabled {
|
|
357
276
|
opacity: 0.5;
|
|
358
277
|
cursor: not-allowed;
|
|
359
278
|
}
|
|
360
279
|
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
280
|
+
&.is-active {
|
|
281
|
+
background: $photoviewer-control-color-hover;
|
|
282
|
+
color: $photoviewer-control-background;
|
|
283
|
+
border-color: $photoviewer-control-color-hover;
|
|
364
284
|
}
|
|
365
285
|
}
|
|
366
286
|
|
|
367
|
-
&
|
|
368
|
-
|
|
369
|
-
@extend %button-base;
|
|
370
|
-
width: var(--#{config.$prefix}photoviewer-control-size-small);
|
|
371
|
-
height: var(--#{config.$prefix}photoviewer-control-size-small);
|
|
287
|
+
&__close-button {
|
|
288
|
+
color: var(--#{config.$prefix}error);
|
|
372
289
|
|
|
373
290
|
&:hover:not(:disabled) {
|
|
374
|
-
background: var(--#{config.$prefix}
|
|
375
|
-
color: var(--#{config.$prefix}
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
svg {
|
|
379
|
-
width: 20px;
|
|
380
|
-
height: 20px;
|
|
381
|
-
}
|
|
382
|
-
}
|
|
383
|
-
|
|
384
|
-
&__close {
|
|
385
|
-
color: var(--#{config.$prefix}photoviewer-close-color);
|
|
386
|
-
background: rgba(0, 0, 0, 0.3);
|
|
387
|
-
margin-left: 0.5rem;
|
|
388
|
-
|
|
389
|
-
&:hover {
|
|
390
|
-
background: rgba(0, 0, 0, 0.5);
|
|
291
|
+
background: var(--#{config.$prefix}error-bg-subtle);
|
|
292
|
+
color: var(--#{config.$prefix}error);
|
|
293
|
+
border-color: var(--#{config.$prefix}error);
|
|
391
294
|
}
|
|
392
295
|
}
|
|
393
296
|
|
|
297
|
+
// Content area
|
|
394
298
|
&__content {
|
|
395
299
|
@extend %flex-center;
|
|
396
300
|
position: relative;
|
|
397
|
-
flex: 1
|
|
398
|
-
overflow: hidden;
|
|
301
|
+
flex: 1;
|
|
399
302
|
min-height: 0;
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
opacity: 0.7;
|
|
404
|
-
transition: opacity 0.15s ease-out;
|
|
405
|
-
}
|
|
406
|
-
}
|
|
303
|
+
background: $photoviewer-image-container-background;
|
|
304
|
+
border-radius: 0 0 $border-radius-lg $border-radius-lg;
|
|
305
|
+
overflow: hidden;
|
|
407
306
|
}
|
|
408
307
|
|
|
308
|
+
// Image container and image
|
|
409
309
|
&__image-container {
|
|
410
310
|
@extend %flex-center;
|
|
411
311
|
position: relative;
|
|
412
312
|
width: 100%;
|
|
413
313
|
height: 100%;
|
|
414
314
|
overflow: hidden;
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
-webkit-touch-callout: none;
|
|
418
|
-
-webkit-overflow-scrolling: touch;
|
|
419
|
-
|
|
420
|
-
// Control touch interactions - allow pan and zoom only within the container
|
|
421
|
-
touch-action: pan-x pan-y pinch-zoom;
|
|
422
|
-
|
|
423
|
-
// Optimize for smooth trackpad gestures
|
|
424
|
-
transform: translateZ(0);
|
|
425
|
-
-webkit-transform: translateZ(0);
|
|
426
|
-
-webkit-backface-visibility: hidden;
|
|
427
|
-
backface-visibility: hidden;
|
|
428
|
-
|
|
429
|
-
// Enable smooth scaling animations for trackpad gestures
|
|
430
|
-
transition: transform 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
|
|
315
|
+
background: $photoviewer-image-container-background;
|
|
316
|
+
cursor: grab;
|
|
431
317
|
|
|
432
318
|
&.is-transitioning {
|
|
433
|
-
transition: opacity 0.15s ease-out;
|
|
434
|
-
|
|
435
|
-
.c-photo-viewer__image {
|
|
436
|
-
transition: opacity 0.15s ease-out !important;
|
|
437
|
-
}
|
|
438
|
-
}
|
|
439
|
-
|
|
440
|
-
// Prevent image selection and dragging
|
|
441
|
-
img {
|
|
442
319
|
pointer-events: none;
|
|
443
|
-
-webkit-user-drag: none;
|
|
444
|
-
-khtml-user-drag: none;
|
|
445
|
-
-moz-user-drag: none;
|
|
446
|
-
-o-user-drag: none;
|
|
447
|
-
user-drag: none;
|
|
448
|
-
|
|
449
|
-
// Ensure touch actions are controlled
|
|
450
|
-
touch-action: none;
|
|
451
|
-
}
|
|
452
|
-
|
|
453
|
-
// Loading state
|
|
454
|
-
&::before {
|
|
455
|
-
content: '';
|
|
456
|
-
position: absolute;
|
|
457
|
-
inset: 0;
|
|
458
|
-
background: linear-gradient(
|
|
459
|
-
90deg,
|
|
460
|
-
transparent 0%,
|
|
461
|
-
rgba(255, 255, 255, 0.1) 50%,
|
|
462
|
-
transparent 100%
|
|
463
|
-
);
|
|
464
|
-
animation: loading-shimmer 1.5s infinite;
|
|
465
|
-
opacity: 0;
|
|
466
|
-
pointer-events: none;
|
|
467
|
-
transition: opacity 0.3s ease;
|
|
468
320
|
}
|
|
469
321
|
|
|
470
|
-
|
|
471
|
-
|
|
322
|
+
&:active {
|
|
323
|
+
cursor: grabbing;
|
|
472
324
|
}
|
|
473
325
|
}
|
|
474
326
|
|
|
475
327
|
&__image {
|
|
476
328
|
@extend %image-base;
|
|
329
|
+
@extend %standard-transition;
|
|
477
330
|
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
opacity 0.2s ease-out,
|
|
482
|
-
filter 0.2s ease-out;
|
|
483
|
-
|
|
484
|
-
// Dragging state - disable transitions for direct manipulation
|
|
485
|
-
.c-photo-viewer--dragging & {
|
|
486
|
-
transition: none !important;
|
|
487
|
-
will-change: transform;
|
|
488
|
-
}
|
|
489
|
-
|
|
490
|
-
// Trackpad gesture state - smoother transitions for pinch zoom
|
|
491
|
-
&[style*='scale(']:not(.c-photo-viewer--dragging) {
|
|
492
|
-
transition: transform 0.1s cubic-bezier(0.23, 1, 0.32, 1);
|
|
493
|
-
}
|
|
494
|
-
|
|
495
|
-
// Loading state
|
|
496
|
-
&.is-loading {
|
|
497
|
-
opacity: 0.3;
|
|
498
|
-
filter: blur(1px);
|
|
499
|
-
}
|
|
500
|
-
|
|
501
|
-
// Zoom state optimizations
|
|
502
|
-
&[style*='scale(1)'] {
|
|
503
|
-
will-change: auto;
|
|
504
|
-
}
|
|
505
|
-
|
|
506
|
-
&[style*='scale(']:not([style*='scale(1)']) {
|
|
507
|
-
will-change: transform;
|
|
508
|
-
}
|
|
509
|
-
|
|
510
|
-
@media (prefers-reduced-motion: reduce) {
|
|
511
|
-
transition: none !important;
|
|
512
|
-
animation: none !important;
|
|
513
|
-
}
|
|
331
|
+
max-width: 100%;
|
|
332
|
+
max-height: 100%;
|
|
333
|
+
transition-property: transform, opacity;
|
|
514
334
|
}
|
|
515
335
|
|
|
516
|
-
//
|
|
517
|
-
@keyframes loading-shimmer {
|
|
518
|
-
0% {
|
|
519
|
-
transform: translateX(-100%);
|
|
520
|
-
}
|
|
521
|
-
100% {
|
|
522
|
-
transform: translateX(100%);
|
|
523
|
-
}
|
|
524
|
-
}
|
|
525
|
-
|
|
526
|
-
&__nav-btn,
|
|
336
|
+
// Navigation buttons
|
|
527
337
|
&__nav-button {
|
|
528
|
-
@extend %
|
|
338
|
+
@extend %hover-effect;
|
|
339
|
+
|
|
529
340
|
position: absolute;
|
|
530
341
|
top: 50%;
|
|
531
|
-
transform: translateY(-50%);
|
|
532
|
-
width:
|
|
533
|
-
height:
|
|
534
|
-
|
|
342
|
+
transform: translateY(-50%) !important;
|
|
343
|
+
width: $photoviewer-nav-button-size;
|
|
344
|
+
height: $photoviewer-nav-button-size;
|
|
345
|
+
border-radius: $photoviewer-control-border-radius;
|
|
346
|
+
background: $photoviewer-nav-button-background;
|
|
347
|
+
border: 1px solid $photoviewer-control-border-color;
|
|
348
|
+
color: $photoviewer-nav-button-color;
|
|
349
|
+
box-shadow: $photoviewer-nav-button-shadow;
|
|
350
|
+
z-index: 10;
|
|
535
351
|
|
|
536
352
|
&:hover:not(:disabled) {
|
|
537
|
-
background:
|
|
538
|
-
color:
|
|
539
|
-
|
|
353
|
+
background: $photoviewer-nav-button-hover-background;
|
|
354
|
+
color: $photoviewer-nav-button-hover-color;
|
|
355
|
+
border-color: $photoviewer-nav-button-hover-color;
|
|
356
|
+
box-shadow: $photoviewer-nav-button-hover-shadow;
|
|
540
357
|
}
|
|
541
358
|
|
|
542
|
-
&:
|
|
543
|
-
|
|
359
|
+
&:disabled {
|
|
360
|
+
opacity: 0.3;
|
|
361
|
+
cursor: not-allowed;
|
|
544
362
|
}
|
|
545
363
|
|
|
546
364
|
&--prev {
|
|
@@ -550,329 +368,569 @@ body.is-open-photoviewer {
|
|
|
550
368
|
&--next {
|
|
551
369
|
right: 1rem;
|
|
552
370
|
}
|
|
553
|
-
|
|
554
|
-
svg {
|
|
555
|
-
width: 24px;
|
|
556
|
-
height: 24px;
|
|
557
|
-
}
|
|
558
371
|
}
|
|
559
372
|
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
373
|
+
// Thumbnails
|
|
374
|
+
&__thumbnails {
|
|
375
|
+
padding: $photoviewer-component-spacing;
|
|
376
|
+
background: $photoviewer-component-background-color;
|
|
377
|
+
border-top: 1px solid $photoviewer-component-border-color;
|
|
378
|
+
max-height: 120px;
|
|
379
|
+
overflow-y: auto;
|
|
380
|
+
@extend %custom-scrollbar;
|
|
564
381
|
}
|
|
565
382
|
|
|
566
|
-
&__thumbnails {
|
|
383
|
+
&__thumbnails-container {
|
|
567
384
|
display: flex;
|
|
568
|
-
gap:
|
|
569
|
-
|
|
385
|
+
gap: $photoviewer-thumbnail-gap;
|
|
386
|
+
align-items: center;
|
|
570
387
|
justify-content: center;
|
|
571
|
-
|
|
572
|
-
padding: 0.5rem;
|
|
573
|
-
background: rgba(255, 255, 255, 0.05);
|
|
574
|
-
border-radius: $border-radius-lg;
|
|
575
|
-
backdrop-filter: blur(4px);
|
|
388
|
+
min-height: $photoviewer-thumbnail-size;
|
|
576
389
|
}
|
|
577
390
|
|
|
578
391
|
&__thumbnail {
|
|
579
392
|
@extend %thumbnail-base;
|
|
580
|
-
width: var(--#{config.$prefix}photoviewer-thumbnail-size);
|
|
581
|
-
height: var(--#{config.$prefix}photoviewer-thumbnail-size);
|
|
582
|
-
}
|
|
583
393
|
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
object-fit: cover;
|
|
590
|
-
object-position: center;
|
|
591
|
-
border-radius: calc($border-radius-sm - 2px);
|
|
592
|
-
transition-property: transform;
|
|
394
|
+
width: $photoviewer-thumbnail-size;
|
|
395
|
+
height: $photoviewer-thumbnail-size;
|
|
396
|
+
flex-shrink: 0;
|
|
397
|
+
padding: 0;
|
|
398
|
+
border: 2px solid transparent;
|
|
593
399
|
|
|
594
|
-
|
|
595
|
-
|
|
400
|
+
&.is-active {
|
|
401
|
+
border-color: $photoviewer-thumbnail-active-border-color;
|
|
596
402
|
}
|
|
597
403
|
}
|
|
598
404
|
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
opacity: 0.7;
|
|
606
|
-
}
|
|
607
|
-
|
|
608
|
-
&.is-entering {
|
|
609
|
-
opacity: 0;
|
|
610
|
-
}
|
|
611
|
-
|
|
612
|
-
&.is-exiting {
|
|
613
|
-
opacity: 0;
|
|
614
|
-
}
|
|
615
|
-
|
|
616
|
-
// Layout variants for thumbnail positions
|
|
617
|
-
&--thumbnails-left,
|
|
618
|
-
&--thumbnails-right {
|
|
619
|
-
.c-photo-viewer__container {
|
|
620
|
-
flex-direction: row;
|
|
621
|
-
gap: var(--#{config.$prefix}photoviewer-spacing);
|
|
622
|
-
}
|
|
623
|
-
|
|
624
|
-
.c-photo-viewer__thumbnails {
|
|
625
|
-
flex-direction: column;
|
|
626
|
-
margin-top: 0;
|
|
627
|
-
max-height: 80vh;
|
|
628
|
-
overflow-y: auto;
|
|
629
|
-
}
|
|
630
|
-
|
|
631
|
-
.c-photo-viewer__content {
|
|
632
|
-
flex: 1;
|
|
633
|
-
}
|
|
405
|
+
&__thumbnail-wrapper {
|
|
406
|
+
position: relative;
|
|
407
|
+
width: 100%;
|
|
408
|
+
height: 100%;
|
|
409
|
+
overflow: hidden;
|
|
410
|
+
border-radius: calc(#{$photoviewer-thumbnail-border-radius} - 2px);
|
|
634
411
|
}
|
|
635
412
|
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
413
|
+
&__thumbnail-img {
|
|
414
|
+
width: 100%;
|
|
415
|
+
height: 100%;
|
|
416
|
+
object-fit: cover;
|
|
417
|
+
transition: transform $photoviewer-fast-transition $photoviewer-transition-timing;
|
|
640
418
|
}
|
|
641
419
|
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
420
|
+
&__thumbnail-indicator {
|
|
421
|
+
position: absolute;
|
|
422
|
+
bottom: 0;
|
|
423
|
+
left: 50%;
|
|
424
|
+
transform: translateX(-50%);
|
|
425
|
+
width: 80%;
|
|
426
|
+
height: 3px;
|
|
427
|
+
background: $photoviewer-thumbnail-active-border-color;
|
|
428
|
+
border-radius: 2px;
|
|
646
429
|
}
|
|
647
430
|
|
|
648
|
-
// Info panel
|
|
431
|
+
// Info panel
|
|
649
432
|
&__info-panel {
|
|
650
|
-
@extend %standard-transition;
|
|
651
|
-
@extend %panel-base;
|
|
652
|
-
@extend %custom-scrollbar;
|
|
653
433
|
position: absolute;
|
|
654
434
|
top: 0;
|
|
655
435
|
right: 0;
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
z-index:
|
|
436
|
+
width: $photoviewer-info-panel-width;
|
|
437
|
+
height: 100%;
|
|
438
|
+
background: $photoviewer-info-panel-background;
|
|
439
|
+
border-left: 1px solid $photoviewer-info-panel-border-color;
|
|
440
|
+
box-shadow: $photoviewer-info-panel-shadow;
|
|
441
|
+
z-index: 20;
|
|
662
442
|
transform: translateX(100%);
|
|
663
|
-
transition
|
|
443
|
+
transition: transform $photoviewer-transition-duration $photoviewer-transition-timing;
|
|
444
|
+
overflow-y: auto;
|
|
445
|
+
@extend %custom-scrollbar;
|
|
664
446
|
}
|
|
665
447
|
|
|
666
|
-
&--info-open {
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
}
|
|
448
|
+
&--info-open &__info-panel {
|
|
449
|
+
transform: translateX(0);
|
|
450
|
+
}
|
|
670
451
|
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
452
|
+
&__info-header {
|
|
453
|
+
display: flex;
|
|
454
|
+
align-items: center;
|
|
455
|
+
justify-content: space-between;
|
|
456
|
+
padding: $photoviewer-info-spacing;
|
|
457
|
+
background: $photoviewer-info-panel-background;
|
|
458
|
+
border-bottom: 1px solid $photoviewer-info-panel-border-color;
|
|
459
|
+
position: sticky;
|
|
460
|
+
top: 0;
|
|
461
|
+
z-index: 1;
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
&__info-panel-title {
|
|
465
|
+
font-size: $photoviewer-info-title-font-size;
|
|
466
|
+
font-weight: $photoviewer-info-title-font-weight;
|
|
467
|
+
color: $photoviewer-info-title-color;
|
|
468
|
+
margin: 0;
|
|
674
469
|
}
|
|
675
470
|
|
|
676
471
|
&__info-close {
|
|
677
|
-
@extend %
|
|
678
|
-
position: absolute;
|
|
679
|
-
top: 1rem;
|
|
680
|
-
right: 1rem;
|
|
681
|
-
width: var(--#{config.$prefix}photoviewer-control-size-small);
|
|
682
|
-
height: var(--#{config.$prefix}photoviewer-control-size-small);
|
|
683
|
-
box-shadow: $box-shadow-xs;
|
|
684
|
-
z-index: 2;
|
|
472
|
+
@extend %hover-effect;
|
|
685
473
|
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
474
|
+
width: $photoviewer-control-size-small;
|
|
475
|
+
height: $photoviewer-control-size-small;
|
|
476
|
+
border-radius: $photoviewer-control-border-radius;
|
|
477
|
+
background: $photoviewer-control-background;
|
|
478
|
+
border: 1px solid $photoviewer-control-border-color;
|
|
479
|
+
color: $photoviewer-control-color;
|
|
480
|
+
box-shadow: $photoviewer-control-shadow;
|
|
690
481
|
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
482
|
+
&:hover:not(:disabled) {
|
|
483
|
+
background: $photoviewer-control-background-hover;
|
|
484
|
+
color: $photoviewer-control-color-hover;
|
|
485
|
+
border-color: $photoviewer-control-color-hover;
|
|
694
486
|
}
|
|
695
487
|
}
|
|
696
488
|
|
|
697
489
|
&__info-content {
|
|
698
|
-
|
|
699
|
-
padding-bottom: 2rem;
|
|
490
|
+
padding: $photoviewer-info-spacing;
|
|
700
491
|
}
|
|
701
492
|
|
|
702
|
-
&__info-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
margin-bottom: 1rem;
|
|
706
|
-
padding-bottom: 1rem;
|
|
707
|
-
color: $gray-9;
|
|
708
|
-
position: relative;
|
|
493
|
+
&__info-section {
|
|
494
|
+
@extend %info-section;
|
|
495
|
+
}
|
|
709
496
|
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
width: 60px;
|
|
716
|
-
height: 2px;
|
|
717
|
-
background: var(--#{config.$prefix}primary);
|
|
718
|
-
border-radius: 2px;
|
|
719
|
-
}
|
|
497
|
+
&__info-title {
|
|
498
|
+
font-size: $photoviewer-info-title-font-size;
|
|
499
|
+
font-weight: $photoviewer-info-title-font-weight;
|
|
500
|
+
color: $photoviewer-info-title-color;
|
|
501
|
+
margin: 0;
|
|
720
502
|
}
|
|
721
503
|
|
|
722
504
|
&__info-description {
|
|
723
|
-
font-size: $font-size
|
|
724
|
-
|
|
725
|
-
margin
|
|
726
|
-
|
|
505
|
+
font-size: $photoviewer-info-description-font-size;
|
|
506
|
+
color: $photoviewer-info-description-color;
|
|
507
|
+
margin: 0;
|
|
508
|
+
line-height: 1.5;
|
|
727
509
|
}
|
|
728
510
|
|
|
729
511
|
&__info-meta {
|
|
730
|
-
|
|
512
|
+
display: flex;
|
|
513
|
+
flex-direction: column;
|
|
514
|
+
gap: 0.5rem;
|
|
731
515
|
}
|
|
732
516
|
|
|
733
|
-
&__info-
|
|
517
|
+
&__info-meta-item {
|
|
734
518
|
display: flex;
|
|
735
|
-
|
|
519
|
+
align-items: center;
|
|
736
520
|
gap: 0.5rem;
|
|
737
|
-
|
|
738
|
-
|
|
521
|
+
font-size: $photoviewer-info-meta-font-size;
|
|
522
|
+
color: $photoviewer-info-meta-color;
|
|
739
523
|
}
|
|
740
524
|
|
|
741
|
-
&__info-
|
|
742
|
-
|
|
525
|
+
&__info-section-title {
|
|
526
|
+
font-size: $photoviewer-info-meta-font-size;
|
|
527
|
+
font-weight: $photoviewer-info-title-font-weight;
|
|
528
|
+
color: $photoviewer-info-title-color;
|
|
529
|
+
margin: 0 0 0.5rem 0;
|
|
530
|
+
text-transform: uppercase;
|
|
531
|
+
letter-spacing: 0.05em;
|
|
743
532
|
}
|
|
744
533
|
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
534
|
+
&__info-tags {
|
|
535
|
+
display: flex;
|
|
536
|
+
flex-wrap: wrap;
|
|
537
|
+
gap: 0.5rem;
|
|
538
|
+
}
|
|
748
539
|
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
540
|
+
&__info-tag {
|
|
541
|
+
background: $photoviewer-tag-background;
|
|
542
|
+
color: $photoviewer-tag-color;
|
|
543
|
+
font-size: $photoviewer-tag-font-size;
|
|
544
|
+
font-weight: $photoviewer-tag-font-weight;
|
|
545
|
+
padding: $photoviewer-tag-padding;
|
|
546
|
+
border-radius: $photoviewer-tag-border-radius;
|
|
547
|
+
transition: all $photoviewer-fast-transition $photoviewer-transition-timing;
|
|
753
548
|
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
549
|
+
&:hover {
|
|
550
|
+
background: $photoviewer-tag-hover-background;
|
|
551
|
+
color: $photoviewer-tag-hover-color;
|
|
757
552
|
}
|
|
758
553
|
}
|
|
759
554
|
|
|
555
|
+
// Responsive design
|
|
760
556
|
@media (max-width: 768px) {
|
|
761
|
-
@include responsive-control-sizes(0.8);
|
|
762
|
-
|
|
763
557
|
&__container {
|
|
764
558
|
max-width: 100vw;
|
|
765
559
|
max-height: 100vh;
|
|
766
|
-
min-height: 100vh;
|
|
767
|
-
padding: 0.75rem;
|
|
768
560
|
border-radius: 0;
|
|
561
|
+
padding: 0;
|
|
769
562
|
}
|
|
770
563
|
|
|
771
564
|
&__header {
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
&__actions {
|
|
776
|
-
gap: 0.5rem;
|
|
565
|
+
border-radius: 0;
|
|
566
|
+
padding: 0.75rem;
|
|
777
567
|
}
|
|
778
568
|
|
|
779
|
-
&
|
|
780
|
-
|
|
569
|
+
&__content {
|
|
570
|
+
border-radius: 0;
|
|
781
571
|
}
|
|
782
572
|
|
|
783
|
-
&__nav-btn,
|
|
784
573
|
&__nav-button {
|
|
574
|
+
width: 2.5rem;
|
|
575
|
+
height: 2.5rem;
|
|
576
|
+
|
|
785
577
|
&--prev {
|
|
786
|
-
left: 0.
|
|
578
|
+
left: 0.5rem;
|
|
787
579
|
}
|
|
788
580
|
|
|
789
581
|
&--next {
|
|
790
|
-
right: 0.
|
|
582
|
+
right: 0.5rem;
|
|
791
583
|
}
|
|
792
584
|
}
|
|
793
585
|
|
|
794
586
|
&__thumbnails {
|
|
795
|
-
|
|
587
|
+
padding: 0.75rem;
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
&__info-panel {
|
|
591
|
+
width: 100%;
|
|
592
|
+
position: fixed;
|
|
593
|
+
top: 0;
|
|
594
|
+
right: 0;
|
|
595
|
+
transform: translateX(100%);
|
|
596
|
+
}
|
|
597
|
+
|
|
598
|
+
&__info-header {
|
|
599
|
+
padding: 0.75rem;
|
|
600
|
+
}
|
|
601
|
+
|
|
602
|
+
&__info-content {
|
|
603
|
+
padding: 0.75rem;
|
|
604
|
+
}
|
|
605
|
+
}
|
|
606
|
+
|
|
607
|
+
// Fullscreen mode
|
|
608
|
+
&--fullscreen {
|
|
609
|
+
&__container {
|
|
610
|
+
max-width: 100vw;
|
|
611
|
+
max-height: 100vh;
|
|
612
|
+
border-radius: 0;
|
|
613
|
+
padding: 0;
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
&__header {
|
|
617
|
+
border-radius: 0;
|
|
618
|
+
}
|
|
619
|
+
|
|
620
|
+
&__content {
|
|
621
|
+
border-radius: 0;
|
|
622
|
+
}
|
|
623
|
+
}
|
|
624
|
+
|
|
625
|
+
// Dragging state
|
|
626
|
+
&--dragging {
|
|
627
|
+
&__image-container {
|
|
628
|
+
cursor: grabbing;
|
|
629
|
+
}
|
|
630
|
+
|
|
631
|
+
&__image {
|
|
632
|
+
transition: none;
|
|
633
|
+
}
|
|
634
|
+
}
|
|
635
|
+
|
|
636
|
+
// Thumbnail position variants
|
|
637
|
+
&--thumbnails-top {
|
|
638
|
+
.c-photo-viewer__container {
|
|
639
|
+
flex-direction: column;
|
|
640
|
+
}
|
|
641
|
+
|
|
642
|
+
.c-photo-viewer__thumbnails {
|
|
643
|
+
border-top: none;
|
|
644
|
+
border-bottom: 1px solid $photoviewer-component-border-color;
|
|
645
|
+
border-radius: $border-radius-lg $border-radius-lg 0 0;
|
|
646
|
+
order: -1;
|
|
647
|
+
}
|
|
648
|
+
|
|
649
|
+
.c-photo-viewer__header {
|
|
650
|
+
border-radius: 0;
|
|
651
|
+
border-bottom: 1px solid $photoviewer-header-border-color;
|
|
652
|
+
order: 0;
|
|
653
|
+
}
|
|
654
|
+
|
|
655
|
+
.c-photo-viewer__content {
|
|
656
|
+
border-radius: 0 0 $border-radius-lg $border-radius-lg;
|
|
657
|
+
border-top: none;
|
|
658
|
+
order: 1;
|
|
659
|
+
}
|
|
660
|
+
}
|
|
661
|
+
|
|
662
|
+
&--thumbnails-left {
|
|
663
|
+
.c-photo-viewer__container {
|
|
664
|
+
flex-direction: row;
|
|
665
|
+
max-width: calc(95vw + #{$photoviewer-info-panel-width});
|
|
666
|
+
}
|
|
667
|
+
|
|
668
|
+
.c-photo-viewer__thumbnails {
|
|
669
|
+
border-top: none;
|
|
670
|
+
border-bottom: none;
|
|
671
|
+
border-right: 1px solid $photoviewer-component-border-color;
|
|
672
|
+
border-radius: $border-radius-lg 0 0 $border-radius-lg;
|
|
673
|
+
max-height: none;
|
|
674
|
+
max-width: 120px;
|
|
675
|
+
min-width: 120px;
|
|
676
|
+
padding: $photoviewer-component-spacing 0.75rem;
|
|
677
|
+
order: -1;
|
|
678
|
+
display: flex;
|
|
679
|
+
flex-direction: column;
|
|
680
|
+
}
|
|
681
|
+
|
|
682
|
+
.c-photo-viewer__thumbnails-container {
|
|
683
|
+
flex-direction: column;
|
|
684
|
+
justify-content: flex-start;
|
|
685
|
+
min-height: auto;
|
|
686
|
+
min-width: $photoviewer-thumbnail-size;
|
|
687
|
+
flex: 1;
|
|
688
|
+
}
|
|
689
|
+
|
|
690
|
+
// Create a wrapper for header + content to keep them together on the right
|
|
691
|
+
.c-photo-viewer__header,
|
|
692
|
+
.c-photo-viewer__content {
|
|
693
|
+
order: 1;
|
|
796
694
|
}
|
|
797
695
|
|
|
696
|
+
.c-photo-viewer__header {
|
|
697
|
+
border-radius: 0 $border-radius-lg 0 0;
|
|
698
|
+
border-left: none;
|
|
699
|
+
flex-direction: column;
|
|
700
|
+
align-items: flex-start;
|
|
701
|
+
justify-content: flex-start;
|
|
702
|
+
padding: 0.75rem;
|
|
703
|
+
min-height: auto;
|
|
704
|
+
position: relative;
|
|
705
|
+
}
|
|
706
|
+
|
|
707
|
+
.c-photo-viewer__header-left {
|
|
708
|
+
margin-bottom: 1rem;
|
|
709
|
+
align-self: flex-start;
|
|
710
|
+
}
|
|
711
|
+
|
|
712
|
+
.c-photo-viewer__actions {
|
|
713
|
+
flex-direction: column;
|
|
714
|
+
gap: 0.5rem;
|
|
715
|
+
align-items: stretch;
|
|
716
|
+
}
|
|
717
|
+
|
|
718
|
+
.c-photo-viewer__content {
|
|
719
|
+
border-radius: 0 0 $border-radius-lg 0;
|
|
720
|
+
border-left: none;
|
|
721
|
+
flex: 1;
|
|
722
|
+
}
|
|
723
|
+
}
|
|
724
|
+
|
|
725
|
+
&--thumbnails-right {
|
|
726
|
+
.c-photo-viewer__container {
|
|
727
|
+
flex-direction: row;
|
|
728
|
+
max-width: calc(95vw + #{$photoviewer-info-panel-width});
|
|
729
|
+
}
|
|
730
|
+
|
|
731
|
+
.c-photo-viewer__thumbnails {
|
|
732
|
+
border-top: none;
|
|
733
|
+
border-bottom: none;
|
|
734
|
+
border-left: 1px solid $photoviewer-component-border-color;
|
|
735
|
+
border-radius: 0 $border-radius-lg $border-radius-lg 0;
|
|
736
|
+
max-height: none;
|
|
737
|
+
max-width: 120px;
|
|
738
|
+
min-width: 120px;
|
|
739
|
+
padding: $photoviewer-component-spacing 0.75rem;
|
|
740
|
+
order: 1;
|
|
741
|
+
display: flex;
|
|
742
|
+
flex-direction: column;
|
|
743
|
+
}
|
|
744
|
+
|
|
745
|
+
.c-photo-viewer__thumbnails-container {
|
|
746
|
+
flex-direction: column;
|
|
747
|
+
justify-content: flex-start;
|
|
748
|
+
min-height: auto;
|
|
749
|
+
min-width: $photoviewer-thumbnail-size;
|
|
750
|
+
flex: 1;
|
|
751
|
+
}
|
|
752
|
+
|
|
753
|
+
// Keep header + content together on the left
|
|
754
|
+
.c-photo-viewer__header,
|
|
755
|
+
.c-photo-viewer__content {
|
|
756
|
+
order: 0;
|
|
757
|
+
}
|
|
758
|
+
|
|
759
|
+
.c-photo-viewer__header {
|
|
760
|
+
border-radius: $border-radius-lg 0 0 0;
|
|
761
|
+
border-right: none;
|
|
762
|
+
flex-direction: column;
|
|
763
|
+
align-items: stretch;
|
|
764
|
+
padding: 0.75rem;
|
|
765
|
+
min-height: auto;
|
|
766
|
+
width: 100%;
|
|
767
|
+
}
|
|
768
|
+
|
|
769
|
+
.c-photo-viewer__header-left {
|
|
770
|
+
margin-bottom: 1rem;
|
|
771
|
+
align-self: flex-start;
|
|
772
|
+
}
|
|
773
|
+
|
|
774
|
+
.c-photo-viewer__actions {
|
|
775
|
+
flex-direction: column;
|
|
776
|
+
gap: 0.5rem;
|
|
777
|
+
align-items: stretch;
|
|
778
|
+
}
|
|
779
|
+
|
|
780
|
+
.c-photo-viewer__content {
|
|
781
|
+
border-radius: 0 0 0 $border-radius-lg;
|
|
782
|
+
border-right: none;
|
|
783
|
+
flex: 1;
|
|
784
|
+
}
|
|
785
|
+
}
|
|
786
|
+
|
|
787
|
+
&--thumbnails-bottom {
|
|
788
|
+
// Default styles are already applied for bottom position
|
|
789
|
+
// This modifier exists for consistency and potential future customization
|
|
790
|
+
.c-photo-viewer__header {
|
|
791
|
+
border-radius: $border-radius-lg $border-radius-lg 0 0;
|
|
792
|
+
}
|
|
793
|
+
|
|
794
|
+
.c-photo-viewer__content {
|
|
795
|
+
border-radius: 0 0 $border-radius-lg $border-radius-lg;
|
|
796
|
+
}
|
|
797
|
+
|
|
798
|
+
.c-photo-viewer__thumbnails {
|
|
799
|
+
border-radius: 0 0 $border-radius-lg $border-radius-lg;
|
|
800
|
+
}
|
|
801
|
+
}
|
|
802
|
+
|
|
803
|
+
&--thumbnails-none {
|
|
804
|
+
.c-photo-viewer__thumbnails {
|
|
805
|
+
display: none;
|
|
806
|
+
}
|
|
807
|
+
|
|
808
|
+
.c-photo-viewer__container {
|
|
809
|
+
border-radius: $border-radius-lg;
|
|
810
|
+
}
|
|
811
|
+
|
|
812
|
+
.c-photo-viewer__header {
|
|
813
|
+
border-radius: $border-radius-lg $border-radius-lg 0 0;
|
|
814
|
+
}
|
|
815
|
+
|
|
816
|
+
.c-photo-viewer__content {
|
|
817
|
+
border-radius: 0 0 $border-radius-lg $border-radius-lg;
|
|
818
|
+
}
|
|
819
|
+
}
|
|
820
|
+
|
|
821
|
+
// Responsive adjustments for thumbnail positions
|
|
822
|
+
@media (max-width: 768px) {
|
|
798
823
|
&--thumbnails-left,
|
|
799
824
|
&--thumbnails-right {
|
|
800
825
|
.c-photo-viewer__container {
|
|
801
826
|
flex-direction: column;
|
|
827
|
+
max-width: 100vw;
|
|
828
|
+
border-radius: 0;
|
|
802
829
|
}
|
|
803
830
|
|
|
804
831
|
.c-photo-viewer__thumbnails {
|
|
805
|
-
|
|
832
|
+
border-left: none;
|
|
833
|
+
border-right: none;
|
|
834
|
+
border-bottom: none;
|
|
835
|
+
border-top: 1px solid $photoviewer-component-border-color;
|
|
836
|
+
border-radius: 0;
|
|
837
|
+
max-width: none;
|
|
838
|
+
min-width: auto;
|
|
806
839
|
order: 1;
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
max-width: 100%;
|
|
810
|
-
overflow-x: auto;
|
|
840
|
+
padding: 0.75rem;
|
|
841
|
+
display: block;
|
|
811
842
|
}
|
|
812
|
-
}
|
|
813
843
|
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
844
|
+
.c-photo-viewer__thumbnails-container {
|
|
845
|
+
flex-direction: row;
|
|
846
|
+
justify-content: center;
|
|
847
|
+
min-height: $photoviewer-thumbnail-size;
|
|
848
|
+
min-width: auto;
|
|
817
849
|
}
|
|
818
850
|
|
|
819
|
-
.c-photo-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
top: 0;
|
|
825
|
-
right: 0;
|
|
826
|
-
transform: translateX(0);
|
|
851
|
+
.c-photo-viewer__content {
|
|
852
|
+
border-radius: 0;
|
|
853
|
+
order: 0;
|
|
854
|
+
display: flex;
|
|
855
|
+
flex-direction: column;
|
|
827
856
|
}
|
|
828
857
|
|
|
829
|
-
.c-photo-
|
|
830
|
-
|
|
858
|
+
.c-photo-viewer__header {
|
|
859
|
+
border-radius: 0;
|
|
860
|
+
border-left: 1px solid $photoviewer-header-border-color;
|
|
861
|
+
border-right: 1px solid $photoviewer-header-border-color;
|
|
862
|
+
border-bottom: 1px solid $photoviewer-header-border-color;
|
|
863
|
+
flex-direction: row;
|
|
864
|
+
align-items: center;
|
|
865
|
+
justify-content: space-between;
|
|
866
|
+
padding: $photoviewer-header-padding;
|
|
831
867
|
}
|
|
832
|
-
}
|
|
833
|
-
}
|
|
834
868
|
|
|
835
|
-
|
|
836
|
-
|
|
869
|
+
.c-photo-viewer__header-left {
|
|
870
|
+
margin-bottom: 0;
|
|
871
|
+
align-self: auto;
|
|
872
|
+
}
|
|
837
873
|
|
|
838
|
-
|
|
839
|
-
|
|
874
|
+
.c-photo-viewer__actions {
|
|
875
|
+
flex-direction: row;
|
|
876
|
+
align-items: center;
|
|
877
|
+
gap: 0.5rem;
|
|
878
|
+
}
|
|
840
879
|
}
|
|
841
880
|
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
881
|
+
&--thumbnails-top {
|
|
882
|
+
.c-photo-viewer__container {
|
|
883
|
+
border-radius: 0;
|
|
884
|
+
flex-direction: column;
|
|
885
|
+
}
|
|
845
886
|
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
}
|
|
887
|
+
.c-photo-viewer__thumbnails {
|
|
888
|
+
border-radius: 0;
|
|
889
|
+
order: -1;
|
|
890
|
+
}
|
|
851
891
|
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
892
|
+
.c-photo-viewer__header {
|
|
893
|
+
border-radius: 0;
|
|
894
|
+
border-bottom: 1px solid $photoviewer-header-border-color;
|
|
895
|
+
order: 0;
|
|
896
|
+
}
|
|
855
897
|
|
|
856
|
-
|
|
857
|
-
|
|
898
|
+
.c-photo-viewer__content {
|
|
899
|
+
border-radius: 0;
|
|
900
|
+
order: 1;
|
|
901
|
+
}
|
|
858
902
|
}
|
|
859
903
|
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
904
|
+
&--thumbnails-bottom {
|
|
905
|
+
.c-photo-viewer__container {
|
|
906
|
+
border-radius: 0;
|
|
907
|
+
}
|
|
908
|
+
|
|
909
|
+
.c-photo-viewer__header {
|
|
910
|
+
border-radius: 0;
|
|
911
|
+
}
|
|
868
912
|
|
|
869
|
-
|
|
870
|
-
|
|
913
|
+
.c-photo-viewer__content {
|
|
914
|
+
border-radius: 0;
|
|
915
|
+
}
|
|
916
|
+
|
|
917
|
+
.c-photo-viewer__thumbnails {
|
|
918
|
+
border-radius: 0;
|
|
871
919
|
}
|
|
872
920
|
}
|
|
873
921
|
|
|
874
|
-
&--
|
|
875
|
-
|
|
922
|
+
&--thumbnails-none {
|
|
923
|
+
.c-photo-viewer__container {
|
|
924
|
+
border-radius: 0;
|
|
925
|
+
}
|
|
926
|
+
|
|
927
|
+
.c-photo-viewer__header {
|
|
928
|
+
border-radius: 0;
|
|
929
|
+
}
|
|
930
|
+
|
|
931
|
+
.c-photo-viewer__content {
|
|
932
|
+
border-radius: 0;
|
|
933
|
+
}
|
|
876
934
|
}
|
|
877
935
|
}
|
|
878
936
|
}
|