@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
|
@@ -0,0 +1,623 @@
|
|
|
1
|
+
// ============================================================================
|
|
2
|
+
// VIDEO PLAYER COMPONENT
|
|
3
|
+
// ============================================================================
|
|
4
|
+
|
|
5
|
+
@use '../01-settings/settings.config' as *;
|
|
6
|
+
@use '../01-settings/settings.video-player' as *;
|
|
7
|
+
@use '../01-settings/settings.colors' as *;
|
|
8
|
+
|
|
9
|
+
.c-video-player {
|
|
10
|
+
--atomix-video-player-bg: #{$video-player-bg};
|
|
11
|
+
--atomix-video-player-border-radius: #{$video-player-border-radius};
|
|
12
|
+
--atomix-video-player-controls-padding: #{$video-player-controls-padding};
|
|
13
|
+
--atomix-video-player-progress-height: #{$video-player-progress-height};
|
|
14
|
+
--atomix-video-player-button-size: #{$video-player-button-size};
|
|
15
|
+
--atomix-video-player-font-size: #{$video-player-font-size};
|
|
16
|
+
--atomix-video-player-transition: #{$video-player-transition};
|
|
17
|
+
--atomix-video-player-volume-width: #{$video-player-volume-width};
|
|
18
|
+
--atomix-video-player-volume-width-mobile: #{$video-player-volume-width-mobile};
|
|
19
|
+
--atomix-video-player-volume-height: #{$video-player-volume-height};
|
|
20
|
+
--atomix-video-player-volume-height-hover: #{$video-player-volume-height-hover};
|
|
21
|
+
--atomix-video-player-volume-thumb-size: #{$video-player-volume-thumb-size};
|
|
22
|
+
--atomix-video-player-volume-bg: #{$video-player-volume-bg};
|
|
23
|
+
--atomix-video-player-volume-bg-hover: #{$video-player-volume-bg-hover};
|
|
24
|
+
--atomix-video-player-volume-fill: #{$video-player-volume-fill};
|
|
25
|
+
--atomix-video-player-volume-fill-hover: #{$video-player-volume-fill-hover};
|
|
26
|
+
--atomix-video-player-volume-fill-active: #{$video-player-volume-fill-active};
|
|
27
|
+
--atomix-video-player-subtitle-bg: #{$video-player-subtitle-bg};
|
|
28
|
+
--atomix-video-player-subtitle-color: #{$video-player-subtitle-color};
|
|
29
|
+
--atomix-video-player-subtitle-font-size: #{$video-player-subtitle-font-size};
|
|
30
|
+
--atomix-video-player-subtitle-font-weight: #{$video-player-subtitle-font-weight};
|
|
31
|
+
--atomix-video-player-subtitle-line-height: #{$video-player-subtitle-line-height};
|
|
32
|
+
--atomix-video-player-subtitle-border-radius: #{$video-player-subtitle-border-radius};
|
|
33
|
+
--atomix-video-player-subtitle-text-shadow: #{$video-player-subtitle-text-shadow};
|
|
34
|
+
--atomix-video-player-subtitle-box-shadow: #{$video-player-subtitle-box-shadow};
|
|
35
|
+
|
|
36
|
+
position: relative;
|
|
37
|
+
width: 100%;
|
|
38
|
+
background: var(--#{$prefix}-video-player-bg, #000);
|
|
39
|
+
border-radius: var(--#{$prefix}-video-player-border-radius, 0.5rem);
|
|
40
|
+
overflow: hidden;
|
|
41
|
+
font-family: var(--#{$prefix}-font-family-base);
|
|
42
|
+
|
|
43
|
+
// &:focus-within,
|
|
44
|
+
// &:focus {
|
|
45
|
+
// outline: 2px solid var(--#{$prefix}primary);
|
|
46
|
+
// outline-offset: 2px;
|
|
47
|
+
// }
|
|
48
|
+
|
|
49
|
+
// Video element
|
|
50
|
+
&__video {
|
|
51
|
+
width: 100%;
|
|
52
|
+
height: 100%;
|
|
53
|
+
display: block;
|
|
54
|
+
object-fit: cover;
|
|
55
|
+
|
|
56
|
+
// Subtitle styling
|
|
57
|
+
&::cue {
|
|
58
|
+
background: var(--#{$prefix}video-player-subtitle-bg);
|
|
59
|
+
color: var(--#{$prefix}video-player-subtitle-color);
|
|
60
|
+
font-size: var(--#{$prefix}video-player-subtitle-font-size);
|
|
61
|
+
font-weight: var(--#{$prefix}video-player-subtitle-font-weight);
|
|
62
|
+
line-height: var(--#{$prefix}video-player-subtitle-line-height);
|
|
63
|
+
padding: var(--#{$prefix}video-player-subtitle-padding);
|
|
64
|
+
border-radius: var(--#{$prefix}video-player-subtitle-border-radius);
|
|
65
|
+
text-shadow: var(--#{$prefix}video-player-subtitle-text-shadow);
|
|
66
|
+
white-space: pre-line;
|
|
67
|
+
text-align: center;
|
|
68
|
+
width: auto;
|
|
69
|
+
height: auto;
|
|
70
|
+
display: inline-block;
|
|
71
|
+
box-shadow: var(--#{$prefix}video-player-subtitle-box-shadow);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
&::cue(.large) {
|
|
75
|
+
font-size: calc(var(--#{$prefix}video-player-subtitle-font-size) * 1.2);
|
|
76
|
+
padding: calc(var(--#{$prefix}video-player-subtitle-padding) * 1.3);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
&::cue(.small) {
|
|
80
|
+
font-size: calc(var(--#{$prefix}video-player-subtitle-font-size) * 0.85);
|
|
81
|
+
padding: calc(var(--#{$prefix}video-player-subtitle-padding) * 0.8);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
// YouTube variant
|
|
86
|
+
&--youtube {
|
|
87
|
+
.c-video-player__video {
|
|
88
|
+
border: none;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
// Hide custom controls for YouTube
|
|
92
|
+
.c-video-player__controls {
|
|
93
|
+
display: none;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
// Loading state
|
|
98
|
+
&__loading {
|
|
99
|
+
position: absolute;
|
|
100
|
+
top: 50%;
|
|
101
|
+
left: 50%;
|
|
102
|
+
transform: translate(-50%, -50%);
|
|
103
|
+
z-index: 2;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
&__spinner {
|
|
107
|
+
width: 2.5rem;
|
|
108
|
+
height: 2.5rem;
|
|
109
|
+
border: 3px solid rgba(255, 255, 255, 0.3);
|
|
110
|
+
border-top: 3px solid var(--#{$prefix}primary);
|
|
111
|
+
border-radius: 50%;
|
|
112
|
+
animation: spin 1s linear infinite;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
@keyframes spin {
|
|
116
|
+
0% {
|
|
117
|
+
transform: rotate(0deg);
|
|
118
|
+
}
|
|
119
|
+
100% {
|
|
120
|
+
transform: rotate(360deg);
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
// Controls container
|
|
125
|
+
&__controls {
|
|
126
|
+
position: absolute;
|
|
127
|
+
bottom: 0;
|
|
128
|
+
left: 0;
|
|
129
|
+
right: 0;
|
|
130
|
+
background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
|
|
131
|
+
padding: 1.25rem 1rem 1rem;
|
|
132
|
+
opacity: 0;
|
|
133
|
+
visibility: hidden;
|
|
134
|
+
transition: all 0.3s ease;
|
|
135
|
+
z-index: 3;
|
|
136
|
+
|
|
137
|
+
&--visible {
|
|
138
|
+
opacity: 1;
|
|
139
|
+
visibility: visible;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
// Progress container
|
|
144
|
+
&__progress-container {
|
|
145
|
+
margin-bottom: 0.75rem;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
&__progress-bar {
|
|
149
|
+
position: relative;
|
|
150
|
+
height: 0.25rem;
|
|
151
|
+
background: rgba(255, 255, 255, 0.3);
|
|
152
|
+
border-radius: 0.125rem;
|
|
153
|
+
cursor: pointer;
|
|
154
|
+
transition: height 0.2s ease;
|
|
155
|
+
|
|
156
|
+
&:hover {
|
|
157
|
+
height: 0.375rem;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
&__progress-buffered {
|
|
162
|
+
position: absolute;
|
|
163
|
+
top: 0;
|
|
164
|
+
left: 0;
|
|
165
|
+
height: 100%;
|
|
166
|
+
background: rgba(255, 255, 255, 0.5);
|
|
167
|
+
border-radius: 0.125rem;
|
|
168
|
+
transition: width 0.1s ease;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
&__progress-played {
|
|
172
|
+
position: absolute;
|
|
173
|
+
top: 0;
|
|
174
|
+
left: 0;
|
|
175
|
+
height: 100%;
|
|
176
|
+
background: var(--#{$prefix}primary);
|
|
177
|
+
border-radius: 0.125rem;
|
|
178
|
+
transition: width 0.1s ease;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
&__progress-thumb {
|
|
182
|
+
position: absolute;
|
|
183
|
+
top: 50%;
|
|
184
|
+
width: 0.75rem;
|
|
185
|
+
height: 0.75rem;
|
|
186
|
+
background: var(--#{$prefix}primary);
|
|
187
|
+
border-radius: 50%;
|
|
188
|
+
transform: translate(-50%, -50%);
|
|
189
|
+
opacity: 0;
|
|
190
|
+
transition: opacity 0.2s ease;
|
|
191
|
+
|
|
192
|
+
.c-video-player__progress-bar:hover & {
|
|
193
|
+
opacity: 1;
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
// Controls row
|
|
198
|
+
&__controls-row {
|
|
199
|
+
display: flex;
|
|
200
|
+
align-items: center;
|
|
201
|
+
justify-content: space-between;
|
|
202
|
+
gap: 0.5rem;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
&__controls-left,
|
|
206
|
+
&__controls-right {
|
|
207
|
+
display: flex;
|
|
208
|
+
align-items: center;
|
|
209
|
+
gap: 0.5rem;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
// Control buttons
|
|
213
|
+
&__control-button {
|
|
214
|
+
display: flex;
|
|
215
|
+
align-items: center;
|
|
216
|
+
justify-content: center;
|
|
217
|
+
width: 2.5rem;
|
|
218
|
+
height: 2.5rem;
|
|
219
|
+
background: transparent;
|
|
220
|
+
border: none;
|
|
221
|
+
color: var(--#{$prefix}primary);
|
|
222
|
+
border-radius: 0.25rem;
|
|
223
|
+
cursor: pointer;
|
|
224
|
+
transition: all 0.2s ease;
|
|
225
|
+
|
|
226
|
+
&:hover {
|
|
227
|
+
background: rgba(255, 255, 255, 0.2);
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
&:focus {
|
|
231
|
+
outline: 2px solid var(--#{$prefix}primary);
|
|
232
|
+
outline-offset: 2px;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
&:disabled {
|
|
236
|
+
opacity: 0.5;
|
|
237
|
+
cursor: not-allowed;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
svg {
|
|
241
|
+
width: 1.25rem;
|
|
242
|
+
height: 1.25rem;
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
// Volume control
|
|
247
|
+
&__volume-container {
|
|
248
|
+
display: flex;
|
|
249
|
+
align-items: center;
|
|
250
|
+
gap: 0.5rem;
|
|
251
|
+
position: relative;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
&__volume-slider {
|
|
255
|
+
width: var(--#{$prefix}video-player-volume-width, 5rem);
|
|
256
|
+
opacity: 0;
|
|
257
|
+
visibility: hidden;
|
|
258
|
+
transform: translateX(-0.5rem);
|
|
259
|
+
transition: all 0.2s ease;
|
|
260
|
+
padding: 0.5rem;
|
|
261
|
+
margin: -0.5rem;
|
|
262
|
+
|
|
263
|
+
.c-video-player__volume-container:hover &,
|
|
264
|
+
.c-video-player__volume-container:focus-within & {
|
|
265
|
+
opacity: 1;
|
|
266
|
+
visibility: visible;
|
|
267
|
+
transform: translateX(0);
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
&__volume-bar {
|
|
272
|
+
position: relative;
|
|
273
|
+
height: var(--#{$prefix}video-player-volume-height, 0.25rem);
|
|
274
|
+
background: var(--#{$prefix}video-player-volume-bg, rgba(255, 255, 255, 0.3));
|
|
275
|
+
border-radius: 0.125rem;
|
|
276
|
+
cursor: pointer;
|
|
277
|
+
transition: all 0.2s ease;
|
|
278
|
+
|
|
279
|
+
&:hover,
|
|
280
|
+
&:focus-within {
|
|
281
|
+
height: var(--#{$prefix}-video-player-volume-height-hover, 0.375rem);
|
|
282
|
+
background: var(--#{$prefix}-video-player-volume-bg-hover, rgba(255, 255, 255, 0.5));
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
&:active {
|
|
286
|
+
background: var(--#{$prefix}-video-player-volume-bg-hover, rgba(255, 255, 255, 0.5));
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
&:focus {
|
|
290
|
+
outline: 2px solid var(--#{$prefix}primary);
|
|
291
|
+
outline-offset: 2px;
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
&__volume-fill {
|
|
296
|
+
position: relative;
|
|
297
|
+
height: 100%;
|
|
298
|
+
background: var(--#{$prefix}-video-player-volume-fill, var(--#{$prefix}primary));
|
|
299
|
+
border-radius: 0.125rem;
|
|
300
|
+
transition: all 0.1s ease;
|
|
301
|
+
|
|
302
|
+
.c-video-player__volume-bar:hover & {
|
|
303
|
+
background: var(--#{$prefix}-video-player-volume-fill-hover, var(--#{$prefix}primary));
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
.c-video-player__volume-bar:active & {
|
|
307
|
+
background: var(--#{$prefix}-video-player-volume-fill-active, var(--#{$prefix}primary));
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
&::after {
|
|
311
|
+
content: '';
|
|
312
|
+
position: absolute;
|
|
313
|
+
top: 50%;
|
|
314
|
+
right: calc(var(--#{$prefix}video-player-volume-thumb-size, 0.75rem) / -2);
|
|
315
|
+
width: var(--#{$prefix}video-player-volume-thumb-size, 0.75rem);
|
|
316
|
+
height: var(--#{$prefix}video-player-volume-thumb-size, 0.75rem);
|
|
317
|
+
background: white;
|
|
318
|
+
border: 2px solid var(--#{$prefix}video-player-volume-fill, var(--#{$prefix}primary));
|
|
319
|
+
border-radius: 50%;
|
|
320
|
+
transform: translateY(-50%);
|
|
321
|
+
opacity: 0;
|
|
322
|
+
transition: all 0.2s ease;
|
|
323
|
+
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
.c-video-player__volume-bar:hover &::after,
|
|
327
|
+
.c-video-player__volume-bar:focus-within &::after {
|
|
328
|
+
opacity: 1;
|
|
329
|
+
transform: translateY(-50%) scale(1.1);
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
// Time display
|
|
334
|
+
&__time-display {
|
|
335
|
+
display: flex;
|
|
336
|
+
align-items: center;
|
|
337
|
+
gap: 0.25rem;
|
|
338
|
+
color: white;
|
|
339
|
+
font-size: 0.875rem;
|
|
340
|
+
font-weight: 500;
|
|
341
|
+
min-width: 5rem;
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
// Settings menu
|
|
345
|
+
&__settings-container {
|
|
346
|
+
position: relative;
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
&__settings-menu {
|
|
350
|
+
position: absolute;
|
|
351
|
+
bottom: 3.125rem;
|
|
352
|
+
right: 0;
|
|
353
|
+
min-width: 12.5rem;
|
|
354
|
+
background: rgba(var(--#{$prefix}primary-rgb), 0.7);
|
|
355
|
+
border-radius: 0.5rem;
|
|
356
|
+
padding: 0.5rem;
|
|
357
|
+
backdrop-filter: blur(10px);
|
|
358
|
+
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
&__settings-tabs {
|
|
362
|
+
display: flex;
|
|
363
|
+
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
|
|
364
|
+
margin-bottom: 0.5rem;
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
&__settings-tab {
|
|
368
|
+
flex: 1;
|
|
369
|
+
padding: 0.5rem 0.75rem;
|
|
370
|
+
background: transparent;
|
|
371
|
+
border: none;
|
|
372
|
+
color: rgba(255, 255, 255, 0.7);
|
|
373
|
+
font-size: 0.75rem;
|
|
374
|
+
cursor: pointer;
|
|
375
|
+
transition: color 0.2s ease;
|
|
376
|
+
|
|
377
|
+
&--active {
|
|
378
|
+
color: white;
|
|
379
|
+
border-bottom: 2px solid var(--#{$prefix}primary);
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
&:hover {
|
|
383
|
+
color: white;
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
&__settings-content {
|
|
388
|
+
max-height: 12.5rem;
|
|
389
|
+
overflow-y: auto;
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
&__settings-options {
|
|
393
|
+
display: flex;
|
|
394
|
+
flex-direction: column;
|
|
395
|
+
gap: 0.125rem;
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
&__settings-option {
|
|
399
|
+
padding: 0.5rem 0.75rem;
|
|
400
|
+
background: transparent;
|
|
401
|
+
border: none;
|
|
402
|
+
color: rgba(255, 255, 255, 0.8);
|
|
403
|
+
font-size: 0.875rem;
|
|
404
|
+
text-align: left;
|
|
405
|
+
cursor: pointer;
|
|
406
|
+
border-radius: 0.25rem;
|
|
407
|
+
transition: all 0.2s ease;
|
|
408
|
+
|
|
409
|
+
&:hover {
|
|
410
|
+
background: rgba(255, 255, 255, 0.1);
|
|
411
|
+
color: white;
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
&--active {
|
|
415
|
+
background: var(--#{$prefix}primary);
|
|
416
|
+
color: white;
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
// Responsive design
|
|
421
|
+
@media (max-width: 768px) {
|
|
422
|
+
&__controls {
|
|
423
|
+
padding: 1rem 0.75rem 0.75rem;
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
&__controls-row {
|
|
427
|
+
gap: 0.25rem;
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
&__controls-left,
|
|
431
|
+
&__controls-right {
|
|
432
|
+
gap: 0.25rem;
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
&__control-button {
|
|
436
|
+
width: 2.25rem;
|
|
437
|
+
height: 2.25rem;
|
|
438
|
+
|
|
439
|
+
svg {
|
|
440
|
+
width: 1.125rem;
|
|
441
|
+
height: 1.125rem;
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
&__volume-slider {
|
|
446
|
+
width: var(--#{$prefix}video-player-volume-width-mobile, 3.75rem);
|
|
447
|
+
opacity: 1;
|
|
448
|
+
visibility: visible;
|
|
449
|
+
transform: translateX(0);
|
|
450
|
+
padding: 0.25rem;
|
|
451
|
+
margin: -0.25rem;
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
&__volume-bar {
|
|
455
|
+
height: var(--#{$prefix}video-player-volume-height-hover, 0.375rem);
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
&__time-display {
|
|
459
|
+
font-size: 0.75rem;
|
|
460
|
+
min-width: 4.375rem;
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
&__settings-menu {
|
|
464
|
+
min-width: 10rem;
|
|
465
|
+
right: -1.25rem;
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
// Mobile subtitle adjustments
|
|
469
|
+
&__video::cue {
|
|
470
|
+
font-size: #{$video-player-subtitle-font-size-mobile};
|
|
471
|
+
padding: calc(#{$video-player-subtitle-padding-y} * 0.8)
|
|
472
|
+
calc(#{$video-player-subtitle-padding-x} * 0.8);
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
&__subtitles {
|
|
476
|
+
bottom: 4rem;
|
|
477
|
+
max-width: 95%;
|
|
478
|
+
|
|
479
|
+
&-text {
|
|
480
|
+
font-size: #{$video-player-subtitle-font-size-mobile};
|
|
481
|
+
padding: calc(#{$video-player-subtitle-padding-y} * 0.8)
|
|
482
|
+
calc(#{$video-player-subtitle-padding-x} * 0.8);
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
// Fullscreen styles
|
|
488
|
+
&:fullscreen {
|
|
489
|
+
.c-video-player__controls {
|
|
490
|
+
padding: 1.5rem 1.25rem 1.25rem;
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
.c-video-player__control-button {
|
|
494
|
+
width: 3rem;
|
|
495
|
+
height: 3rem;
|
|
496
|
+
|
|
497
|
+
svg {
|
|
498
|
+
width: 1.5rem;
|
|
499
|
+
height: 1.5rem;
|
|
500
|
+
}
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
.c-video-player__time-display {
|
|
504
|
+
font-size: 1rem;
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
// Fullscreen subtitle adjustments
|
|
508
|
+
.c-video-player__video::cue {
|
|
509
|
+
font-size: #{$video-player-subtitle-font-size-fullscreen};
|
|
510
|
+
padding: calc(#{$video-player-subtitle-padding-y} * 1.3)
|
|
511
|
+
calc(#{$video-player-subtitle-padding-x} * 1.3);
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
.c-video-player__subtitles {
|
|
515
|
+
bottom: 6rem;
|
|
516
|
+
|
|
517
|
+
&-text {
|
|
518
|
+
font-size: #{$video-player-subtitle-font-size-fullscreen};
|
|
519
|
+
padding: calc(#{$video-player-subtitle-padding-y} * 1.3)
|
|
520
|
+
calc(#{$video-player-subtitle-padding-x} * 1.3);
|
|
521
|
+
}
|
|
522
|
+
}
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
// Picture-in-picture styles
|
|
526
|
+
&:picture-in-picture {
|
|
527
|
+
.c-video-player__controls {
|
|
528
|
+
display: none;
|
|
529
|
+
}
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
// Dark theme support
|
|
533
|
+
@media (prefers-color-scheme: dark) {
|
|
534
|
+
--#{$prefix}-video-player-bg: #000;
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
// Light theme support
|
|
538
|
+
@media (prefers-color-scheme: light) {
|
|
539
|
+
--#{$prefix}-video-player-bg: #000;
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
// High contrast mode
|
|
543
|
+
@media (prefers-contrast: high) {
|
|
544
|
+
.c-video-player__progress-bar {
|
|
545
|
+
background: rgba(255, 255, 255, 0.8);
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
.c-video-player__control-button {
|
|
549
|
+
border: 1px solid rgba(255, 255, 255, 0.5);
|
|
550
|
+
}
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
// Ambient mode
|
|
554
|
+
&--ambient {
|
|
555
|
+
overflow: visible;
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
&__ambient-canvas {
|
|
559
|
+
position: absolute;
|
|
560
|
+
top: 50%;
|
|
561
|
+
left: 50%;
|
|
562
|
+
transform: translate(-50%, -50%);
|
|
563
|
+
width: 120%;
|
|
564
|
+
height: 120%;
|
|
565
|
+
z-index: -1;
|
|
566
|
+
filter: blur(40px);
|
|
567
|
+
pointer-events: none;
|
|
568
|
+
display: none;
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
&--ambient &__ambient-canvas {
|
|
572
|
+
display: block;
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
// Subtitle track styling (fallback for browsers that don't support ::cue)
|
|
576
|
+
&__subtitles {
|
|
577
|
+
position: absolute;
|
|
578
|
+
bottom: 5rem;
|
|
579
|
+
left: 50%;
|
|
580
|
+
transform: translateX(-50%);
|
|
581
|
+
z-index: var(--#{$prefix}-video-player-subtitles-z, 4);
|
|
582
|
+
pointer-events: none;
|
|
583
|
+
text-align: center;
|
|
584
|
+
max-width: 90%;
|
|
585
|
+
width: auto;
|
|
586
|
+
height: auto;
|
|
587
|
+
|
|
588
|
+
&-text {
|
|
589
|
+
display: inline-block;
|
|
590
|
+
background: var(--#{$prefix}-video-player-subtitle-bg);
|
|
591
|
+
color: var(--#{$prefix}-video-player-subtitle-color);
|
|
592
|
+
font-size: var(--#{$prefix}-video-player-subtitle-font-size);
|
|
593
|
+
font-weight: var(--#{$prefix}video-player-subtitle-font-weight);
|
|
594
|
+
line-height: var(--#{$prefix}video-player-subtitle-line-height);
|
|
595
|
+
padding: var(--#{$prefix}video-player-subtitle-padding);
|
|
596
|
+
border-radius: var(--#{$prefix}video-player-subtitle-border-radius);
|
|
597
|
+
text-shadow: var(--#{$prefix}video-player-subtitle-text-shadow);
|
|
598
|
+
margin: 0.125rem;
|
|
599
|
+
white-space: pre-line;
|
|
600
|
+
word-wrap: break-word;
|
|
601
|
+
max-width: 100%;
|
|
602
|
+
box-shadow: var(--#{$prefix}video-player-subtitle-box-shadow);
|
|
603
|
+
}
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
// Reduced motion
|
|
607
|
+
@media (prefers-reduced-motion: reduce) {
|
|
608
|
+
.c-video-player__controls,
|
|
609
|
+
.c-video-player__progress-played,
|
|
610
|
+
.c-video-player__progress-buffered,
|
|
611
|
+
.c-video-player__volume-fill {
|
|
612
|
+
transition: none;
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
.c-video-player__spinner {
|
|
616
|
+
animation: none;
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
&--ambient .c-video-player__ambient-canvas {
|
|
620
|
+
display: none;
|
|
621
|
+
}
|
|
622
|
+
}
|
|
623
|
+
}
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
@forward 'components.button';
|
|
9
9
|
@forward 'components.datepicker';
|
|
10
10
|
@forward 'components.card';
|
|
11
|
+
@forward 'components.chart';
|
|
11
12
|
@forward 'components.checkbox-group';
|
|
12
13
|
@forward 'components.checkbox';
|
|
13
14
|
@forward 'components.color-mode-toggle';
|
|
@@ -37,6 +38,7 @@
|
|
|
37
38
|
@forward 'components.select';
|
|
38
39
|
@forward 'components.side-menu';
|
|
39
40
|
@forward 'components.skeleton';
|
|
41
|
+
@forward 'components.slider';
|
|
40
42
|
@forward 'components.spinner';
|
|
41
43
|
@forward 'components.steps';
|
|
42
44
|
@forward 'components.tabs';
|
|
@@ -45,5 +47,6 @@
|
|
|
45
47
|
@forward 'components.toggle';
|
|
46
48
|
@forward 'components.tooltip';
|
|
47
49
|
@forward 'components.upload';
|
|
50
|
+
@forward 'components.video-player';
|
|
48
51
|
@forward 'components.photoviewer';
|
|
49
52
|
@forward 'components.image-gallery';
|