@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,479 @@
|
|
|
1
|
+
// Component Mixins
|
|
2
|
+
// =============================================================================
|
|
3
|
+
|
|
4
|
+
@use 'sass:color';
|
|
5
|
+
@use '../01-settings/settings.config' as *;
|
|
6
|
+
@use '../01-settings/settings.colors' as colors;
|
|
7
|
+
@use '../01-settings/settings.border-radius' as *;
|
|
8
|
+
@use '../01-settings/settings.box-shadow' as *;
|
|
9
|
+
@use '../01-settings/settings.breakpoints' as *;
|
|
10
|
+
@use 'tools.to-rgb' as *;
|
|
11
|
+
|
|
12
|
+
// Base component mixin
|
|
13
|
+
// Provides common base styles for all components
|
|
14
|
+
@mixin component-base {
|
|
15
|
+
// Reset box model
|
|
16
|
+
box-sizing: border-box;
|
|
17
|
+
|
|
18
|
+
// Default font settings
|
|
19
|
+
font-family: var(--#{$prefix}body-font-family);
|
|
20
|
+
font-size: var(--#{$prefix}body-font-size);
|
|
21
|
+
line-height: var(--#{$prefix}body-line-height);
|
|
22
|
+
|
|
23
|
+
// Default color settings
|
|
24
|
+
color: var(--#{$prefix}body-color);
|
|
25
|
+
|
|
26
|
+
// Default border settings
|
|
27
|
+
border: var(--#{$prefix}border-width) var(--#{$prefix}border-style) transparent;
|
|
28
|
+
border-radius: var(--#{$prefix}border-radius);
|
|
29
|
+
|
|
30
|
+
// Default transition
|
|
31
|
+
transition: all 0.2s ease-in-out;
|
|
32
|
+
|
|
33
|
+
// Default cursor
|
|
34
|
+
cursor: default;
|
|
35
|
+
|
|
36
|
+
// Default outline
|
|
37
|
+
outline: none;
|
|
38
|
+
|
|
39
|
+
// Default position
|
|
40
|
+
position: relative;
|
|
41
|
+
|
|
42
|
+
// Default display
|
|
43
|
+
display: inline-block;
|
|
44
|
+
|
|
45
|
+
// Default text decoration
|
|
46
|
+
text-decoration: none;
|
|
47
|
+
|
|
48
|
+
// Default list style
|
|
49
|
+
list-style: none;
|
|
50
|
+
|
|
51
|
+
// Default margin and padding reset
|
|
52
|
+
margin: 0;
|
|
53
|
+
padding: 0;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
// Focus ring mixin
|
|
57
|
+
// Provides consistent focus styling for interactive elements
|
|
58
|
+
@mixin focus-ring($color: var(--#{$prefix}focus-border-color), $width: 2px, $offset: 2px) {
|
|
59
|
+
&:focus-visible {
|
|
60
|
+
outline: $width solid $color;
|
|
61
|
+
outline-offset: $offset;
|
|
62
|
+
box-shadow: 0 0 0 $width $color;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
// Interactive component mixin
|
|
67
|
+
// Provides hover and focus states for interactive components
|
|
68
|
+
@mixin component-interactive(
|
|
69
|
+
$hover-bg: var(--#{$prefix}primary-hover),
|
|
70
|
+
$hover-color: var(--#{$prefix}primary-text-emphasis),
|
|
71
|
+
$active-bg: var(--#{$prefix}primary-7),
|
|
72
|
+
$active-color: var(--#{$prefix}primary-text-emphasis)
|
|
73
|
+
) {
|
|
74
|
+
cursor: pointer;
|
|
75
|
+
|
|
76
|
+
&:hover {
|
|
77
|
+
background-color: $hover-bg;
|
|
78
|
+
color: $hover-color;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
&:active {
|
|
82
|
+
background-color: $active-bg;
|
|
83
|
+
color: $active-color;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
@include focus-ring;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
// Disabled component mixin
|
|
90
|
+
// Provides consistent disabled state styling
|
|
91
|
+
@mixin component-disabled {
|
|
92
|
+
opacity: 0.6;
|
|
93
|
+
cursor: not-allowed;
|
|
94
|
+
pointer-events: none;
|
|
95
|
+
|
|
96
|
+
&:hover,
|
|
97
|
+
&:focus,
|
|
98
|
+
&:active {
|
|
99
|
+
background-color: inherit;
|
|
100
|
+
color: inherit;
|
|
101
|
+
transform: none;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
// Loading component mixin
|
|
106
|
+
// Provides consistent loading state styling
|
|
107
|
+
@mixin component-loading {
|
|
108
|
+
pointer-events: none;
|
|
109
|
+
opacity: 0.7;
|
|
110
|
+
position: relative;
|
|
111
|
+
|
|
112
|
+
&::after {
|
|
113
|
+
content: '';
|
|
114
|
+
position: absolute;
|
|
115
|
+
top: 50%;
|
|
116
|
+
left: 50%;
|
|
117
|
+
width: 16px;
|
|
118
|
+
height: 16px;
|
|
119
|
+
margin: -8px 0 0 -8px;
|
|
120
|
+
border: 2px solid var(--#{$prefix}border-primary-subtle);
|
|
121
|
+
border-top: 2px solid var(--#{$prefix}primary-border-subtle);
|
|
122
|
+
border-radius: 50%;
|
|
123
|
+
animation: component-spin 1s linear infinite;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
// Selected component mixin
|
|
128
|
+
// Provides consistent selected state styling
|
|
129
|
+
@mixin component-selected(
|
|
130
|
+
$bg: var(--#{$prefix}brand-bg-subtle),
|
|
131
|
+
$color: var(--#{$prefix}brand-text-emphasis),
|
|
132
|
+
$border: var(--#{$prefix}brand-border-subtle)
|
|
133
|
+
) {
|
|
134
|
+
background-color: $bg;
|
|
135
|
+
color: $color;
|
|
136
|
+
border-color: $border;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
// Active component mixin
|
|
140
|
+
// Provides consistent active state styling
|
|
141
|
+
@mixin component-active(
|
|
142
|
+
$bg: var(--#{$prefix}primary-7),
|
|
143
|
+
$color: var(--#{$prefix}primary-text-emphasis),
|
|
144
|
+
$border: var(--#{$prefix}primary)
|
|
145
|
+
) {
|
|
146
|
+
background-color: $bg;
|
|
147
|
+
color: $color;
|
|
148
|
+
border-color: $border;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
// Error component mixin
|
|
152
|
+
// Provides consistent error state styling
|
|
153
|
+
@mixin component-error(
|
|
154
|
+
$bg: var(--#{$prefix}error-bg-subtle),
|
|
155
|
+
$color: var(--#{$prefix}error-text-emphasis),
|
|
156
|
+
$border: var(--#{$prefix}error-border-subtle)
|
|
157
|
+
) {
|
|
158
|
+
background-color: $bg;
|
|
159
|
+
color: $color;
|
|
160
|
+
border-color: $border;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
// Success component mixin
|
|
164
|
+
// Provides consistent success state styling
|
|
165
|
+
@mixin component-success(
|
|
166
|
+
$bg: var(--#{$prefix}success-bg-subtle),
|
|
167
|
+
$color: var(--#{$prefix}success-text-emphasis),
|
|
168
|
+
$border: var(--#{$prefix}success-border-subtle)
|
|
169
|
+
) {
|
|
170
|
+
background-color: $bg;
|
|
171
|
+
color: $color;
|
|
172
|
+
border-color: $border;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
// Warning component mixin
|
|
176
|
+
// Provides consistent warning state styling
|
|
177
|
+
@mixin component-warning(
|
|
178
|
+
$bg: var(--#{$prefix}warning-bg-subtle),
|
|
179
|
+
$color: var(--#{$prefix}warning-text-emphasis),
|
|
180
|
+
$border: var(--#{$prefix}warning-border-subtle)
|
|
181
|
+
) {
|
|
182
|
+
background-color: $bg;
|
|
183
|
+
color: $color;
|
|
184
|
+
border-color: $border;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
// Info component mixin
|
|
188
|
+
// Provides consistent info state styling
|
|
189
|
+
@mixin component-info(
|
|
190
|
+
$bg: var(--#{$prefix}info-bg-subtle),
|
|
191
|
+
$color: var(--#{$prefix}info-text-emphasis),
|
|
192
|
+
$border: var(--#{$prefix}info-border-subtle)
|
|
193
|
+
) {
|
|
194
|
+
background-color: $bg;
|
|
195
|
+
color: $color;
|
|
196
|
+
border-color: $border;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
// Responsive component mixin
|
|
200
|
+
// Provides responsive behavior for components
|
|
201
|
+
@mixin component-responsive($breakpoint: 'md') {
|
|
202
|
+
@media (max-width: map-get($grid-breakpoints, $breakpoint)) {
|
|
203
|
+
@content;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
// Accessibility component mixin
|
|
208
|
+
// Provides accessibility enhancements
|
|
209
|
+
@mixin component-accessibility {
|
|
210
|
+
// High contrast mode support
|
|
211
|
+
@media (prefers-contrast: high) {
|
|
212
|
+
border-width: 2px;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
// Reduced motion support
|
|
216
|
+
@media (prefers-reduced-motion: reduce) {
|
|
217
|
+
transition: none;
|
|
218
|
+
animation: none;
|
|
219
|
+
|
|
220
|
+
&:hover {
|
|
221
|
+
transform: none;
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
// Focus visible support
|
|
226
|
+
&:focus-visible {
|
|
227
|
+
@include focus-ring;
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
// Component size mixin
|
|
232
|
+
// Provides consistent sizing for components
|
|
233
|
+
@mixin component-size($size: 'md') {
|
|
234
|
+
@if $size == 'sm' {
|
|
235
|
+
font-size: 0.875rem;
|
|
236
|
+
padding: var(--#{$prefix}border-radius-sm) var(--#{$prefix}border-radius);
|
|
237
|
+
} @else if $size == 'md' {
|
|
238
|
+
font-size: var(--#{$prefix}body-font-size);
|
|
239
|
+
padding: var(--#{$prefix}border-radius) calc(var(--#{$prefix}border-radius) + 0.25rem);
|
|
240
|
+
} @else if $size == 'lg' {
|
|
241
|
+
font-size: 1.125rem;
|
|
242
|
+
padding: calc(var(--#{$prefix}border-radius) + 0.125rem)
|
|
243
|
+
calc(var(--#{$prefix}border-radius) + 0.5rem);
|
|
244
|
+
} @else if $size == 'xl' {
|
|
245
|
+
font-size: 1.25rem;
|
|
246
|
+
padding: calc(var(--#{$prefix}border-radius) + 0.25rem)
|
|
247
|
+
calc(var(--#{$prefix}border-radius) + 0.75rem);
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
// Component variant mixin
|
|
252
|
+
// Provides consistent variant styling
|
|
253
|
+
@mixin component-variant($variant: 'primary') {
|
|
254
|
+
@if $variant == 'primary' {
|
|
255
|
+
background-color: var(--#{$prefix}brand-bg-subtle);
|
|
256
|
+
color: var(--#{$prefix}brand-text-emphasis);
|
|
257
|
+
border-color: var(--#{$prefix}brand-border-subtle);
|
|
258
|
+
} @else if $variant == 'secondary' {
|
|
259
|
+
background-color: var(--#{$prefix}secondary-bg-subtle);
|
|
260
|
+
color: var(--#{$prefix}secondary-text-emphasis);
|
|
261
|
+
border-color: var(--#{$prefix}secondary-border-subtle);
|
|
262
|
+
} @else if $variant == 'success' {
|
|
263
|
+
@include component-success;
|
|
264
|
+
} @else if $variant == 'error' {
|
|
265
|
+
@include component-error;
|
|
266
|
+
} @else if $variant == 'warning' {
|
|
267
|
+
@include component-warning;
|
|
268
|
+
} @else if $variant == 'info' {
|
|
269
|
+
@include component-info;
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
// Component animation mixin
|
|
274
|
+
// Provides consistent animations for components
|
|
275
|
+
@mixin component-animation($type: 'fade') {
|
|
276
|
+
@if $type == 'fade' {
|
|
277
|
+
opacity: 0;
|
|
278
|
+
animation: component-fade-in 0.3s ease-in-out forwards;
|
|
279
|
+
} @else if $type == 'slide' {
|
|
280
|
+
transform: translateY(20px);
|
|
281
|
+
opacity: 0;
|
|
282
|
+
animation: component-slide-in 0.3s ease-out forwards;
|
|
283
|
+
} @else if $type == 'scale' {
|
|
284
|
+
transform: scale(0.9);
|
|
285
|
+
opacity: 0;
|
|
286
|
+
animation: component-scale-in 0.2s ease-out forwards;
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
// Component shadow mixin
|
|
291
|
+
// Provides consistent shadow styling
|
|
292
|
+
@mixin component-shadow($level: 'md') {
|
|
293
|
+
@if $level == 'sm' {
|
|
294
|
+
box-shadow: var(--#{$prefix}box-shadow-sm);
|
|
295
|
+
} @else if $level == 'md' {
|
|
296
|
+
box-shadow: var(--#{$prefix}box-shadow);
|
|
297
|
+
} @else if $level == 'lg' {
|
|
298
|
+
box-shadow: var(--#{$prefix}box-shadow-lg);
|
|
299
|
+
} @else if $level == 'xl' {
|
|
300
|
+
box-shadow: var(--#{$prefix}box-shadow-xl);
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
// Component border mixin
|
|
305
|
+
// Provides consistent border styling
|
|
306
|
+
@mixin component-border(
|
|
307
|
+
$style: 'solid',
|
|
308
|
+
$width: var(--#{$prefix}border-width),
|
|
309
|
+
$color: var(--#{$prefix}border-primary-subtle)
|
|
310
|
+
) {
|
|
311
|
+
border: $width $style $color;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
// Component radius mixin
|
|
315
|
+
// Provides consistent border radius styling
|
|
316
|
+
@mixin component-radius($radius: 'md') {
|
|
317
|
+
@if $radius == 'sm' {
|
|
318
|
+
border-radius: var(--#{$prefix}border-radius-sm);
|
|
319
|
+
} @else if $radius == 'md' {
|
|
320
|
+
border-radius: var(--#{$prefix}border-radius);
|
|
321
|
+
} @else if $radius == 'lg' {
|
|
322
|
+
border-radius: var(--#{$prefix}border-radius-lg);
|
|
323
|
+
} @else if $radius == 'xl' {
|
|
324
|
+
border-radius: var(--#{$prefix}border-radius-xl);
|
|
325
|
+
} @else if $radius == 'full' {
|
|
326
|
+
border-radius: var(--#{$prefix}border-radius-pill);
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
// Component typography mixin
|
|
331
|
+
// Provides consistent typography styling
|
|
332
|
+
@mixin component-typography($size: 'base', $weight: 'normal', $line-height: 'base') {
|
|
333
|
+
@if $size == 'base' {
|
|
334
|
+
font-size: var(--#{$prefix}body-font-size);
|
|
335
|
+
} @else if $size == 'sm' {
|
|
336
|
+
font-size: 0.875rem;
|
|
337
|
+
} @else if $size == 'lg' {
|
|
338
|
+
font-size: 1.125rem;
|
|
339
|
+
} @else if $size == 'xl' {
|
|
340
|
+
font-size: 1.25rem;
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
@if $weight == 'normal' {
|
|
344
|
+
font-weight: var(--#{$prefix}body-font-weight);
|
|
345
|
+
} @else if $weight == 'medium' {
|
|
346
|
+
font-weight: 500;
|
|
347
|
+
} @else if $weight == 'semibold' {
|
|
348
|
+
font-weight: 600;
|
|
349
|
+
} @else if $weight == 'bold' {
|
|
350
|
+
font-weight: 700;
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
@if $line-height == 'base' {
|
|
354
|
+
line-height: var(--#{$prefix}body-line-height);
|
|
355
|
+
} @else if $line-height == 'tight' {
|
|
356
|
+
line-height: 1.2;
|
|
357
|
+
} @else if $line-height == 'relaxed' {
|
|
358
|
+
line-height: 1.6;
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
// Component spacing mixin
|
|
363
|
+
// Provides consistent spacing styling
|
|
364
|
+
@mixin component-spacing($padding: 'md', $margin: 'none') {
|
|
365
|
+
@if $padding == 'sm' {
|
|
366
|
+
padding: var(--#{$prefix}border-radius-sm);
|
|
367
|
+
} @else if $padding == 'md' {
|
|
368
|
+
padding: var(--#{$prefix}border-radius);
|
|
369
|
+
} @else if $padding == 'lg' {
|
|
370
|
+
padding: calc(var(--#{$prefix}border-radius) + 0.25rem);
|
|
371
|
+
} @else if $padding == 'xl' {
|
|
372
|
+
padding: calc(var(--#{$prefix}border-radius) + 0.5rem);
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
@if $margin != 'none' {
|
|
376
|
+
margin: var(--#{$prefix}border-radius);
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
// Component layout mixin
|
|
381
|
+
// Provides consistent layout styling
|
|
382
|
+
@mixin component-layout($display: 'block', $position: 'relative') {
|
|
383
|
+
display: $display;
|
|
384
|
+
position: $position;
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
// Component flexbox mixin
|
|
388
|
+
// Provides consistent flexbox styling
|
|
389
|
+
@mixin component-flex(
|
|
390
|
+
$direction: 'row',
|
|
391
|
+
$justify: 'flex-start',
|
|
392
|
+
$align: 'stretch',
|
|
393
|
+
$wrap: 'nowrap'
|
|
394
|
+
) {
|
|
395
|
+
display: flex;
|
|
396
|
+
flex-direction: $direction;
|
|
397
|
+
justify-content: $justify;
|
|
398
|
+
align-items: $align;
|
|
399
|
+
flex-wrap: $wrap;
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
// Component grid mixin
|
|
403
|
+
// Provides consistent grid styling
|
|
404
|
+
@mixin component-grid($columns: 1, $gap: 'md') {
|
|
405
|
+
display: grid;
|
|
406
|
+
grid-template-columns: repeat($columns, 1fr);
|
|
407
|
+
gap: var(--#{$prefix}border-radius);
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
// Component overflow mixin
|
|
411
|
+
// Provides consistent overflow styling
|
|
412
|
+
@mixin component-overflow($overflow: 'visible') {
|
|
413
|
+
overflow: $overflow;
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
// Component z-index mixin
|
|
417
|
+
// Provides consistent z-index styling
|
|
418
|
+
@mixin component-z-index($level: 'base') {
|
|
419
|
+
@if $level == 'base' {
|
|
420
|
+
z-index: 1;
|
|
421
|
+
} @else if $level == 'dropdown' {
|
|
422
|
+
z-index: 1000;
|
|
423
|
+
} @else if $level == 'sticky' {
|
|
424
|
+
z-index: 1020;
|
|
425
|
+
} @else if $level == 'fixed' {
|
|
426
|
+
z-index: 1030;
|
|
427
|
+
} @else if $level == 'modal' {
|
|
428
|
+
z-index: 1050;
|
|
429
|
+
} @else if $level == 'popover' {
|
|
430
|
+
z-index: 1060;
|
|
431
|
+
} @else if $level == 'tooltip' {
|
|
432
|
+
z-index: 1070;
|
|
433
|
+
} @else if $level == 'toast' {
|
|
434
|
+
z-index: 1080;
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
// Component animations
|
|
439
|
+
// =============================================================================
|
|
440
|
+
|
|
441
|
+
@keyframes component-spin {
|
|
442
|
+
0% {
|
|
443
|
+
transform: rotate(0deg);
|
|
444
|
+
}
|
|
445
|
+
100% {
|
|
446
|
+
transform: rotate(360deg);
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
@keyframes component-fade-in {
|
|
451
|
+
from {
|
|
452
|
+
opacity: 0;
|
|
453
|
+
}
|
|
454
|
+
to {
|
|
455
|
+
opacity: 1;
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
@keyframes component-slide-in {
|
|
460
|
+
from {
|
|
461
|
+
transform: translateY(20px);
|
|
462
|
+
opacity: 0;
|
|
463
|
+
}
|
|
464
|
+
to {
|
|
465
|
+
transform: translateY(0);
|
|
466
|
+
opacity: 1;
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
@keyframes component-scale-in {
|
|
471
|
+
from {
|
|
472
|
+
transform: scale(0.9);
|
|
473
|
+
opacity: 0;
|
|
474
|
+
}
|
|
475
|
+
to {
|
|
476
|
+
transform: scale(1);
|
|
477
|
+
opacity: 1;
|
|
478
|
+
}
|
|
479
|
+
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -49,7 +49,14 @@ $utility-defaults: (
|
|
|
49
49
|
$infix: if($state, if(meta.type-of($state) == 'string', '#{$state}#{$infix}', $infix), $infix);
|
|
50
50
|
|
|
51
51
|
// Don't prefix if value key is null (e.g. with shadow-none utility)
|
|
52
|
-
|
|
52
|
+
// Escape key to ensure valid CSS selector (e.g. 1.5 -> 1\.5)
|
|
53
|
+
$escaped-key: if($key, _escape-key($key), null);
|
|
54
|
+
|
|
55
|
+
$class-name: if(
|
|
56
|
+
$escaped-key,
|
|
57
|
+
'#{$property-class}-#{$escaped-key}#{$infix}',
|
|
58
|
+
'#{$property-class}#{$infix}'
|
|
59
|
+
);
|
|
53
60
|
|
|
54
61
|
@if map.get($utility, class) == null {
|
|
55
62
|
.#{$class-name} {
|
|
@@ -58,7 +65,7 @@ $utility-defaults: (
|
|
|
58
65
|
}
|
|
59
66
|
}
|
|
60
67
|
} @else {
|
|
61
|
-
.#{map.get($utility, class)}#{$infix}#{if($key, '-#{$key}', '')} {
|
|
68
|
+
.#{map.get($utility, class)}#{$infix}#{if($escaped-key, '-#{$escaped-key}', '')} {
|
|
62
69
|
@each $property in $properties {
|
|
63
70
|
#{$property}: $value if(map.get($utility, rtl), null, !important);
|
|
64
71
|
}
|
|
@@ -125,6 +132,20 @@ $utility-defaults: (
|
|
|
125
132
|
@return if($breakpoint == null, '', '-#{$breakpoint}');
|
|
126
133
|
}
|
|
127
134
|
|
|
135
|
+
// Helper function to escape keys for safe CSS class names
|
|
136
|
+
@function _escape-key($key) {
|
|
137
|
+
$key-str: #{$key};
|
|
138
|
+
$escaped: '';
|
|
139
|
+
$len: string.length($key-str);
|
|
140
|
+
|
|
141
|
+
@for $i from 1 through $len {
|
|
142
|
+
$char: string.slice($key-str, $i, $i);
|
|
143
|
+
$escaped: $escaped + if($char == '.', '\\.', $char);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
@return $escaped;
|
|
147
|
+
}
|
|
148
|
+
|
|
128
149
|
// Helper function to create value lists
|
|
129
150
|
@function zip($keys, $values) {
|
|
130
151
|
$result: ();
|
|
File without changes
|
|
File without changes
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
$gradient: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0)) !default;
|
|
13
13
|
|
|
14
14
|
:root,
|
|
15
|
-
[data-#{config.$prefix}
|
|
15
|
+
[data-#{config.$prefix}color-mode='light'] {
|
|
16
16
|
// Note: Custom variable values only support SassScript inside `#{}`.
|
|
17
17
|
|
|
18
18
|
// Colors
|
|
@@ -33,6 +33,10 @@ $gradient: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255
|
|
|
33
33
|
--#{config.$prefix}gray-#{$color}: #{$value};
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
+
@each $color, $value in color-maps.$primarys {
|
|
37
|
+
--#{config.$prefix}primary-#{$color}: #{$value};
|
|
38
|
+
}
|
|
39
|
+
|
|
36
40
|
@each $color, $value in color-maps.$theme-colors-text {
|
|
37
41
|
--#{config.$prefix}#{$color}-text-emphasis: #{$value};
|
|
38
42
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|