@memobit/libs 2.1.0 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Accordion/Accordion.css +1 -0
- package/dist/components/Accordion/Accordion2.js +79 -0
- package/dist/components/AlertDialog/AlertDialog.css +1 -0
- package/dist/components/AlertDialog/AlertDialog2.js +26 -0
- package/dist/components/AnalogClock/AnalogClock.css +1 -0
- package/dist/components/AnalogClock/AnalogClock2.js +293 -0
- package/dist/components/AngleSlider/AngleSlider.css +1 -0
- package/dist/components/AngleSlider/AngleSlider2.js +135 -0
- package/dist/components/AppHeader/AppHeader.css +1 -0
- package/dist/components/AppHeader/AppHeader2.js +44 -0
- package/dist/components/Auth/ChangePasswordModal/ChangePasswordModal.css +1 -0
- package/dist/components/Auth/ChangePasswordModal/ChangePasswordModal2.js +138 -0
- package/dist/components/Auth/Login/Login.css +1 -0
- package/dist/components/Auth/Login/Login2.js +155 -0
- package/dist/components/Auth/MfaSetupModal/MfaSetupModal.css +1 -0
- package/dist/components/Auth/MfaSetupModal/MfaSetupModal2.js +327 -0
- package/dist/components/AvatarInitials/AvatarInitials.css +1 -0
- package/dist/components/AvatarInitials/AvatarInitials2.js +73 -0
- package/dist/components/BMI/BMI.css +1 -0
- package/dist/components/BMI/BMI2.js +53 -0
- package/dist/components/BMI/bmiUtils.js +265 -0
- package/dist/components/Badge/Badge.css +1 -0
- package/dist/components/Badge/Badge2.js +30 -0
- package/dist/components/Banner/Banner.css +1 -0
- package/dist/components/Banner/Banner2.js +57 -0
- package/dist/components/Blockquote/Blockquote.css +1 -0
- package/dist/components/Blockquote/Blockquote2.js +55 -0
- package/dist/components/Breadcrumb/Breadcrumb.css +1 -0
- package/dist/components/Breadcrumb/Breadcrumb2.js +36 -0
- package/dist/components/BulkActionBar/BulkActionBar.css +1 -0
- package/dist/components/BulkActionBar/BulkActionBar2.js +39 -0
- package/dist/components/Button/Button.css +1 -0
- package/dist/components/Button/Button2.js +32 -0
- package/dist/components/Calendar/Calendar.css +1 -0
- package/dist/components/Calendar/Calendar2.js +279 -0
- package/dist/components/CalendarHeatmap/CalendarHeatmap.css +1 -0
- package/dist/components/CalendarHeatmap/CalendarHeatmap2.js +91 -0
- package/dist/components/Card/Card.css +1 -0
- package/dist/components/Card/Card2.js +47 -0
- package/dist/components/Checkbox/Checkbox.css +1 -0
- package/dist/components/Checkbox/Checkbox2.js +35 -0
- package/dist/components/Chip/Chip.css +1 -0
- package/dist/components/Chip/Chip2.js +31 -0
- package/dist/components/CollapsibleSection/CollapsibleSection.css +1 -0
- package/dist/components/CollapsibleSection/CollapsibleSection2.js +68 -0
- package/dist/components/ColorPicker/ColorPicker.css +1 -0
- package/dist/components/ColorPicker/ColorPicker2.js +257 -0
- package/dist/components/CommandPalette/CommandPalette.css +1 -0
- package/dist/components/CommandPalette/CommandPalette2.js +97 -0
- package/dist/components/Confetti/Confetti.css +1 -0
- package/dist/components/Confetti/Confetti2.js +175 -0
- package/dist/components/ConfirmDialog/ConfirmDialog.css +1 -0
- package/dist/components/ConfirmDialog/ConfirmDialog2.js +37 -0
- package/dist/components/ConfirmPopover/ConfirmPopover.css +1 -0
- package/dist/components/ConfirmPopover/ConfirmPopover2.js +55 -0
- package/dist/components/ContextMenu/ContextMenu.css +1 -0
- package/dist/components/ContextMenu/ContextMenu2.js +53 -0
- package/dist/components/ContextToast/ContextToast.css +1 -0
- package/dist/components/ContextToast/ContextToast2.js +96 -0
- package/dist/components/ControlPanel/ControlPanel.css +1 -0
- package/dist/components/ControlPanel/ControlPanel.types.js +21 -0
- package/dist/components/ControlPanel/ControlPanel2.js +137 -0
- package/dist/components/ControlPanel/ControlPanelContext.js +31 -0
- package/dist/components/ControlPanel/ControlPanelFilter.js +386 -0
- package/dist/components/ControlPanel/ControlPanelNav.js +74 -0
- package/dist/components/ControlPanel/ControlPanelOptions.js +197 -0
- package/dist/components/CopyButton/CopyButton.css +1 -0
- package/dist/components/CopyButton/CopyButton2.js +48 -0
- package/dist/components/CountryWithFlag/CountryWithFlag.css +1 -0
- package/dist/components/CountryWithFlag/CountryWithFlag2.js +21 -0
- package/dist/components/DataView/DataView.CardView.js +189 -0
- package/dist/components/DataView/DataView.ColumnSelector.js +51 -0
- package/dist/components/DataView/DataView.MiniSort.js +25 -0
- package/dist/components/DataView/DataView.css +1 -0
- package/dist/components/DataView/DataView2.js +433 -0
- package/dist/components/DatePicker/DatePicker.css +1 -0
- package/dist/components/DatePicker/DatePicker2.js +151 -0
- package/dist/components/DateRangePicker/DateRangePicker.css +1 -0
- package/dist/components/DateRangePicker/DateRangePicker2.js +223 -0
- package/dist/components/DayAgenda/DayAgenda.css +1 -0
- package/dist/components/DayAgenda/DayAgenda2.js +120 -0
- package/dist/components/DiffViewer/DiffViewer.css +1 -0
- package/dist/components/DiffViewer/DiffViewer2.js +270 -0
- package/dist/components/Drawer/Drawer.css +1 -0
- package/dist/components/Drawer/Drawer2.js +119 -0
- package/dist/components/Dropdown/Dropdown.css +1 -0
- package/dist/components/Dropdown/Dropdown2.js +413 -0
- package/dist/components/EmojiPicker/EmojiPicker.css +1 -0
- package/dist/components/EmojiPicker/EmojiPicker2.js +789 -0
- package/dist/components/EmojiPicker/emojiKeywords/activities.js +508 -0
- package/dist/components/EmojiPicker/emojiKeywords/animals.js +501 -0
- package/dist/components/EmojiPicker/emojiKeywords/food.js +540 -0
- package/dist/components/EmojiPicker/emojiKeywords/index.js +21 -0
- package/dist/components/EmojiPicker/emojiKeywords/objects.js +652 -0
- package/dist/components/EmojiPicker/emojiKeywords/people.js +488 -0
- package/dist/components/EmojiPicker/emojiKeywords/smileys.js +538 -0
- package/dist/components/EmojiPicker/emojiKeywords/symbols.js +597 -0
- package/dist/components/EmojiPicker/emojiKeywords/travel.js +507 -0
- package/dist/components/EmptyState/EmptyState.css +1 -0
- package/dist/components/EmptyState/EmptyState2.js +47 -0
- package/dist/components/ErrorBoundary/ErrorBoundary.css +1 -0
- package/dist/components/ErrorBoundary/ErrorBoundary2.js +37 -0
- package/dist/components/EventCalendar/EventCalendar.Chip.js +45 -0
- package/dist/components/EventCalendar/EventCalendar.Month.js +118 -0
- package/dist/components/EventCalendar/EventCalendar.Week.js +131 -0
- package/dist/components/EventCalendar/EventCalendar.css +1 -0
- package/dist/components/EventCalendar/EventCalendar.helpers.js +72 -0
- package/dist/components/EventCalendar/EventCalendar2.js +157 -0
- package/dist/components/FileDropzone/FileDropzone.css +1 -0
- package/dist/components/FileDropzone/FileDropzone2.js +71 -0
- package/dist/components/Flag/Flag.css +1 -0
- package/dist/components/Flag/Flag2.js +36 -0
- package/dist/components/FloatButton/FloatButton.css +1 -0
- package/dist/components/FloatButton/FloatButton2.js +68 -0
- package/dist/components/FloatingWindow/FloatingWindow.css +1 -0
- package/dist/components/FloatingWindow/FloatingWindow2.js +203 -0
- package/dist/components/FolderBrowserModal/FolderBrowserModal.css +1 -0
- package/dist/components/FolderBrowserModal/FolderBrowserModal2.js +144 -0
- package/dist/components/Grid/Col.js +17 -0
- package/dist/components/Grid/Grid.css +1 -0
- package/dist/components/Grid/Grid2.js +28 -0
- package/dist/components/Icon/Icon.css +1 -0
- package/dist/components/Icon/Icon2.js +23 -0
- package/dist/components/IconPicker/IconPicker.css +1 -0
- package/dist/components/IconPicker/IconPicker2.js +51 -0
- package/dist/components/InfiniteScroll/InfiniteScroll.css +1 -0
- package/dist/components/InfiniteScroll/InfiniteScroll2.js +66 -0
- package/dist/components/InputDate/InputDate.css +1 -0
- package/dist/components/InputDate/InputDate2.js +87 -0
- package/dist/components/InputEmail/InputEmail.css +1 -0
- package/dist/components/InputEmail/InputEmail2.js +73 -0
- package/dist/components/InputFile/InputFile.css +1 -0
- package/dist/components/InputFile/InputFile2.js +41 -0
- package/dist/components/InputMask/InputMask.css +1 -0
- package/dist/components/InputMask/InputMask2.js +163 -0
- package/dist/components/InputNumber/InputNumber.css +1 -0
- package/dist/components/InputNumber/InputNumber2.js +60 -0
- package/dist/components/InputPIN/InputPIN.css +1 -0
- package/dist/components/InputPIN/InputPIN2.js +121 -0
- package/dist/components/InputPassword/InputPassword.css +1 -0
- package/dist/components/InputPassword/InputPassword2.js +47 -0
- package/dist/components/InputPhone/InputPhone.css +1 -0
- package/dist/components/InputPhone/InputPhone2.js +82 -0
- package/dist/components/InputSearch/InputSearch.css +1 -0
- package/dist/components/InputSearch/InputSearch2.js +53 -0
- package/dist/components/InputText/InputText.css +1 -0
- package/dist/components/InputText/InputText2.js +47 -0
- package/dist/components/InputTextarea/InputTextarea.css +1 -0
- package/dist/components/InputTextarea/InputTextarea2.js +46 -0
- package/dist/components/InputTime/InputTime.css +1 -0
- package/dist/components/InputTime/InputTime2.js +85 -0
- package/dist/components/InputUrl/InputUrl.css +1 -0
- package/dist/components/InputUrl/InputUrl2.js +65 -0
- package/dist/components/JourneyWizard/JourneyWizard.css +1 -0
- package/dist/components/JourneyWizard/JourneyWizard2.js +147 -0
- package/dist/components/List/List.css +1 -0
- package/dist/components/List/List2.js +28 -0
- package/dist/components/Loading/Loading.css +1 -0
- package/dist/components/Loading/Loading2.js +11 -0
- package/dist/components/MenuHamburger/MenuHamburger.css +1 -0
- package/dist/components/MenuHamburger/MenuHamburger2.js +65 -0
- package/dist/components/MiniSort/MiniSort.css +1 -0
- package/dist/components/MiniSort/MiniSort2.js +52 -0
- package/dist/components/MiniStatsCard/MiniStatsCard.css +1 -0
- package/dist/components/MiniStatsCard/MiniStatsCard2.js +67 -0
- package/dist/components/Minimap/Minimap.css +1 -0
- package/dist/components/Minimap/Minimap2.js +62 -0
- package/dist/components/Modal/Modal.css +1 -0
- package/dist/components/Modal/Modal2.js +87 -0
- package/dist/components/NavBar/NavBar.css +1 -0
- package/dist/components/NavBar/NavBar2.js +64 -0
- package/dist/components/NotificationPanel/NotificationPanel.css +1 -0
- package/dist/components/NotificationPanel/NotificationPanel2.js +66 -0
- package/dist/components/Pagination/Pagination.css +1 -0
- package/dist/components/Pagination/Pagination2.js +92 -0
- package/dist/components/PieChart/PieChart.css +1 -0
- package/dist/components/PieChart/PieChart2.js +142 -0
- package/dist/components/Popover/Popover.css +1 -0
- package/dist/components/Popover/Popover2.js +109 -0
- package/dist/components/Popover/hooks/Popover.hook.js +33 -0
- package/dist/components/ProgressBar/ProgressBar.css +1 -0
- package/dist/components/ProgressBar/ProgressBar2.js +48 -0
- package/dist/components/ProgressRing/ProgressRing.css +1 -0
- package/dist/components/ProgressRing/ProgressRing2.js +54 -0
- package/dist/components/QuantitySelector/QuantitySelector.css +1 -0
- package/dist/components/QuantitySelector/QuantitySelector2.js +94 -0
- package/dist/components/QuickAdd/QuickAdd.css +1 -0
- package/dist/components/QuickAdd/QuickAdd2.js +56 -0
- package/dist/components/QuickNumberUpdate/QuickNumberUpdate.css +1 -0
- package/dist/components/QuickNumberUpdate/QuickNumberUpdate2.js +52 -0
- package/dist/components/QuickOptionUpdate/QuickOptionUpdate.css +1 -0
- package/dist/components/QuickOptionUpdate/QuickOptionUpdate2.js +67 -0
- package/dist/components/Radio/Radio.css +1 -0
- package/dist/components/Radio/Radio2.js +36 -0
- package/dist/components/RangeSlider/RangeSlider.css +1 -0
- package/dist/components/RangeSlider/RangeSlider2.js +157 -0
- package/dist/components/Rating/Rating.css +1 -0
- package/dist/components/Rating/Rating2.js +148 -0
- package/dist/components/Rating/RatingIcon.js +102 -0
- package/dist/components/RichTextEditor/RichTextEditor.css +1 -0
- package/dist/components/RichTextEditor/RichTextEditor2.js +212 -0
- package/dist/components/RichTextEditor/RteLinkPrompt.js +42 -0
- package/dist/components/RichTextEditor/RteTableToolbar.js +95 -0
- package/dist/components/RichTextEditor/RteToolbar.js +106 -0
- package/dist/components/RichTextEditor/helpers.js +73 -0
- package/dist/components/RichTextEditor/hooks/useEditorHistory.js +39 -0
- package/dist/components/RichTextEditor/hooks/useLinkPrompt.js +61 -0
- package/dist/components/RichTextEditor/hooks/useTableOps.js +134 -0
- package/dist/components/RollingNumber/RollingNumber.css +1 -0
- package/dist/components/RollingNumber/RollingNumber2.js +71 -0
- package/dist/components/ScrollToTop/ScrollToTop.css +1 -0
- package/dist/components/ScrollToTop/ScrollToTop2.js +40 -0
- package/dist/components/Separator/Separator.css +1 -0
- package/dist/components/Separator/Separator2.js +39 -0
- package/dist/components/Sidebar/Sidebar.css +1 -0
- package/dist/components/Sidebar/Sidebar2.js +115 -0
- package/dist/components/Sidebar/SidebarContext.js +31 -0
- package/dist/components/SignalStrength/SignalStrength.css +1 -0
- package/dist/components/SignalStrength/SignalStrength2.js +56 -0
- package/dist/components/Skeleton/Skeleton.css +1 -0
- package/dist/components/Skeleton/Skeleton2.js +50 -0
- package/dist/components/Slider/Slider.css +1 -0
- package/dist/components/Slider/Slider2.js +39 -0
- package/dist/components/SplitPanel/SplitPanel.css +1 -0
- package/dist/components/SplitPanel/SplitPanel2.js +69 -0
- package/dist/components/Splitter/Splitter.css +1 -0
- package/dist/components/Splitter/Splitter2.js +89 -0
- package/dist/components/StackedBar/StackedBar.css +1 -0
- package/dist/components/StackedBar/StackedBar2.js +50 -0
- package/dist/components/Stats/Stats.css +1 -0
- package/dist/components/Stats/Stats2.js +26 -0
- package/dist/components/StickyBar/StickyBar.css +1 -0
- package/dist/components/StickyBar/StickyBar2.js +29 -0
- package/dist/components/SuggestionsList/SuggestionsList.css +1 -0
- package/dist/components/SuggestionsList/SuggestionsList2.js +121 -0
- package/dist/components/ThemeSettings/ThemeContext.js +138 -0
- package/dist/components/ThemeSettings/ThemeContextValue.js +5 -0
- package/dist/components/ThemeSettings/ThemeSettings.css +1 -0
- package/dist/components/ThemeSettings/ThemeSettings2.js +245 -0
- package/dist/components/ThemeSettings/themeConfig.js +7 -0
- package/dist/components/ThemeSettings/useTheme.js +10 -0
- package/dist/components/TimePicker/TimePicker.css +1 -0
- package/dist/components/TimePicker/TimePicker2.js +118 -0
- package/dist/components/TimePicker/TimeSpinner.js +59 -0
- package/dist/components/Timeline/Timeline.css +1 -0
- package/dist/components/Timeline/Timeline2.js +57 -0
- package/dist/components/TimelineMarkers/TimelineMarkers.css +1 -0
- package/dist/components/TimelineMarkers/TimelineMarkers2.js +73 -0
- package/dist/components/TipsOfTheDay/TipsOfTheDay.css +1 -0
- package/dist/components/TipsOfTheDay/TipsOfTheDay2.js +24 -0
- package/dist/components/Toast/Toast.css +1 -0
- package/dist/components/Toast/Toast2.js +39 -0
- package/dist/components/ToggleButtons/ToggleButtons.css +1 -0
- package/dist/components/ToggleButtons/ToggleButtons2.js +47 -0
- package/dist/components/ToggleSwitch/ToggleSwitch.css +1 -0
- package/dist/components/ToggleSwitch/ToggleSwitch2.js +27 -0
- package/dist/components/Toolbar/Toolbar.css +1 -0
- package/dist/components/Toolbar/Toolbar2.js +129 -0
- package/dist/components/Tooltip/Tooltip.css +1 -0
- package/dist/components/Tooltip/Tooltip2.js +93 -0
- package/dist/components/TourHud/TourHud.css +1 -0
- package/dist/components/TourHud/TourHud2.js +70 -0
- package/dist/components/Transition/Transition.css +1 -0
- package/dist/components/Transition/Transition2.js +68 -0
- package/dist/components/Tree/Tree.css +1 -0
- package/dist/components/Tree/Tree2.js +95 -0
- package/dist/components/VirtualList/VirtualList.css +1 -0
- package/dist/components/VirtualList/VirtualList2.js +64 -0
- package/dist/components/WHtR/WHtR.css +1 -0
- package/dist/components/WHtR/WHtR2.js +115 -0
- package/dist/contexts/AuthContext/AuthContext.js +113 -0
- package/dist/helpers/AppPersistenceStorage.js +50 -0
- package/dist/helpers/Datetime.js +114 -0
- package/dist/helpers/Format.js +21 -0
- package/dist/helpers/Highlight.js +36 -0
- package/dist/helpers/HtmlContent.js +118 -0
- package/dist/helpers/LogicalOperators.js +15 -0
- package/dist/helpers/Numbers.js +15 -0
- package/dist/helpers/Pagination.js +7 -0
- package/dist/helpers/Search.js +15 -0
- package/dist/helpers/Strings.js +10 -0
- package/dist/helpers/Urls.js +68 -0
- package/dist/helpers/VersionInfo.js +36 -0
- package/dist/hooks/useAppPersistence.js +51 -0
- package/dist/hooks/useAuth/useAuth.js +10 -0
- package/dist/hooks/useBodyScrollLock.js +31 -0
- package/dist/hooks/useBreakpoint.js +65 -0
- package/dist/hooks/useComponentEffect.js +8 -0
- package/dist/hooks/useSwipe.js +45 -0
- package/dist/index.css +1 -2
- package/dist/index.d.ts +6 -10
- package/dist/index.esm.js +1 -17738
- package/dist/index.js +348 -0
- package/dist/mfa.js +4 -0
- package/dist/node_modules/qrcode.react/lib/esm/index.js +979 -0
- package/dist/validators/Vin.js +69 -0
- package/dist/version.js +8 -0
- package/dist/version.json +4 -4
- package/package.json +11 -75
- package/dist/mfa.esm.js +0 -1293
- package/dist/styles/themes.scss +0 -74
- package/dist/styles/theming/_profile-theme.scss +0 -317
- package/dist/styles/theming/amber-meridian.scss +0 -271
- package/dist/styles/theming/archive-indigo.scss +0 -270
- package/dist/styles/theming/arctic-blue.scss +0 -266
- package/dist/styles/theming/asphalt-code.scss +0 -271
- package/dist/styles/theming/atelier-media.scss +0 -272
- package/dist/styles/theming/audit-ember.scss +0 -286
- package/dist/styles/theming/azure-night.scss +0 -269
- package/dist/styles/theming/blossom-meadow.scss +0 -273
- package/dist/styles/theming/blueprint-clay.scss +0 -271
- package/dist/styles/theming/blush-market.scss +0 -271
- package/dist/styles/theming/brass-chronicle.scss +0 -271
- package/dist/styles/theming/carbon-velocity.scss +0 -270
- package/dist/styles/theming/chalk-circuit.scss +0 -271
- package/dist/styles/theming/chrono-atlas.scss +0 -279
- package/dist/styles/theming/citrus-vital.scss +0 -34
- package/dist/styles/theming/clinical-aqua.scss +0 -270
- package/dist/styles/theming/cobalt-pulse.scss +0 -272
- package/dist/styles/theming/command-slate.scss +0 -34
- package/dist/styles/theming/crawler-dusk.scss +0 -270
- package/dist/styles/theming/crimson-dusk.scss +0 -269
- package/dist/styles/theming/cyber-forest.scss +0 -269
- package/dist/styles/theming/dashdarkx.scss +0 -269
- package/dist/styles/theming/ember-night.scss +0 -269
- package/dist/styles/theming/emerald-ledger.scss +0 -271
- package/dist/styles/theming/frost-petal.scss +0 -269
- package/dist/styles/theming/garden-harvest.scss +0 -271
- package/dist/styles/theming/gilded-bear.scss +0 -271
- package/dist/styles/theming/graphite-shell.scss +0 -270
- package/dist/styles/theming/horizon-amber.scss +0 -270
- package/dist/styles/theming/horizon-drift.scss +0 -271
- package/dist/styles/theming/ivory-serif.scss +0 -271
- package/dist/styles/theming/lavender-mist.scss +0 -269
- package/dist/styles/theming/light-blue.scss +0 -269
- package/dist/styles/theming/lumen.scss +0 -276
- package/dist/styles/theming/luna.scss +0 -269
- package/dist/styles/theming/mesh-circuit.scss +0 -271
- package/dist/styles/theming/midnight-amber.scss +0 -273
- package/dist/styles/theming/midnight-atlas.scss +0 -35
- package/dist/styles/theming/midnight-folio.scss +0 -34
- package/dist/styles/theming/mint-meadow.scss +0 -269
- package/dist/styles/theming/mintone.scss +0 -269
- package/dist/styles/theming/neon-tokyo.scss +0 -269
- package/dist/styles/theming/noir-marquee.scss +0 -34
- package/dist/styles/theming/ocean-breeze.scss +0 -269
- package/dist/styles/theming/ocean-depths.scss +0 -269
- package/dist/styles/theming/orbital-night.scss +0 -276
- package/dist/styles/theming/sandstone.scss +0 -269
- package/dist/styles/theming/sandy-parchment.scss +0 -270
- package/dist/styles/theming/screening-room.scss +0 -34
- package/dist/styles/theming/signal-burst.scss +0 -271
- package/dist/styles/theming/signal-clarity.scss +0 -34
- package/dist/styles/theming/slate-bazaar.scss +0 -34
- package/dist/styles/theming/slate-focus.scss +0 -270
- package/dist/styles/theming/spectrum-vault.scss +0 -271
- package/dist/styles/theming/tailwind-vue-dark.scss +0 -269
- package/dist/styles/theming/terminal-phosphor.scss +0 -272
- package/dist/styles/theming/terracotta-kitchen.scss +0 -271
- package/dist/styles/theming/twilight-pulse.scss +0 -269
- package/dist/styles/theming/vault-guard.scss +0 -271
- package/dist/styles/theming/velvet-reel.scss +0 -272
- package/dist/styles/theming/velvet-tome.scss +0 -271
- package/dist/styles/theming/verdant-pulse.scss +0 -34
- package/dist/styles/theming/vital-aurora.scss +0 -45
- package/dist/styles/theming/vital-signal.scss +0 -270
- package/dist/useAuth-BBqdDG2z.js +0 -467
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
var i = /[̀-ͯ]/g, c = (o) => o.normalize("NFD").replace(i, "").toLowerCase(), s = (o, n) => {
|
|
2
|
+
const r = o.toLowerCase(), e = n.toLowerCase();
|
|
3
|
+
if (r.includes(e)) return !0;
|
|
4
|
+
const h = 1 - 1 / Math.max(e.length, 4);
|
|
5
|
+
let a = 0, t = 0;
|
|
6
|
+
for (let l = 0; l < e.length; l++) {
|
|
7
|
+
for (; t < r.length && r[t] !== e[l]; ) t++;
|
|
8
|
+
t < r.length && (a++, t++);
|
|
9
|
+
}
|
|
10
|
+
return a / e.length >= h;
|
|
11
|
+
};
|
|
12
|
+
export {
|
|
13
|
+
c as foldDiacritics,
|
|
14
|
+
s as fuzzyMatch
|
|
15
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
var i = (r) => r.toLowerCase().replace(/ /g, "-").replace(/[^\w-]+/g, ""), l = (r, n = 20, e = 20, u = "...") => {
|
|
2
|
+
if (!r || r.length === 0) return "";
|
|
3
|
+
const g = n + e + u.length;
|
|
4
|
+
return r.length <= g ? r : `${r.substring(0, n)}${u}${r.substring(r.length - e)}`;
|
|
5
|
+
}, s = (r, n = 100, e = "...") => !r || r.trim() === "" ? "" : r.length <= n ? r : r.substring(0, n).trim() + e;
|
|
6
|
+
export {
|
|
7
|
+
l as shortenText,
|
|
8
|
+
i as slugify,
|
|
9
|
+
s as truncateText
|
|
10
|
+
};
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
var s = (a) => new URL(a).host, i = (a) => {
|
|
2
|
+
try {
|
|
3
|
+
const r = new URL(a.trim());
|
|
4
|
+
return r.search = "", r.hash = "", r.toString().replace(/\/$/, "");
|
|
5
|
+
} catch {
|
|
6
|
+
return a.trim();
|
|
7
|
+
}
|
|
8
|
+
}, c = /* @__PURE__ */ new Set([
|
|
9
|
+
"gclid",
|
|
10
|
+
"gclsrc",
|
|
11
|
+
"gad_source",
|
|
12
|
+
"gad_campaignid",
|
|
13
|
+
"gbraid",
|
|
14
|
+
"wbraid",
|
|
15
|
+
"dclid",
|
|
16
|
+
"utm_source",
|
|
17
|
+
"utm_medium",
|
|
18
|
+
"utm_campaign",
|
|
19
|
+
"utm_term",
|
|
20
|
+
"utm_content",
|
|
21
|
+
"utm_id",
|
|
22
|
+
"fbclid",
|
|
23
|
+
"fb_action_ids",
|
|
24
|
+
"fb_action_types",
|
|
25
|
+
"fb_source",
|
|
26
|
+
"fb_ref",
|
|
27
|
+
"msclkid",
|
|
28
|
+
"hsa_cam",
|
|
29
|
+
"hsa_grp",
|
|
30
|
+
"hsa_mt",
|
|
31
|
+
"hsa_src",
|
|
32
|
+
"hsa_ad",
|
|
33
|
+
"hsa_acc",
|
|
34
|
+
"hsa_net",
|
|
35
|
+
"hsa_ver",
|
|
36
|
+
"hsa_la",
|
|
37
|
+
"hsa_ol",
|
|
38
|
+
"hsa_kw",
|
|
39
|
+
"mc_cid",
|
|
40
|
+
"mc_eid",
|
|
41
|
+
"_ga",
|
|
42
|
+
"_gl",
|
|
43
|
+
"_hsenc",
|
|
44
|
+
"_hsmi",
|
|
45
|
+
"_openstat",
|
|
46
|
+
"yclid",
|
|
47
|
+
"ymclid",
|
|
48
|
+
"twclid",
|
|
49
|
+
"ttclid",
|
|
50
|
+
"li_fat_id",
|
|
51
|
+
"igshid",
|
|
52
|
+
"ref",
|
|
53
|
+
"referrer",
|
|
54
|
+
"source"
|
|
55
|
+
]), _ = (a) => {
|
|
56
|
+
try {
|
|
57
|
+
const r = new URL(a.trim()), t = new URLSearchParams(r.search);
|
|
58
|
+
for (const e of [...t.keys()]) c.has(e) && t.delete(e);
|
|
59
|
+
return r.search = t.toString(), r.hash = "", r.toString().replace(/\/$/, "");
|
|
60
|
+
} catch {
|
|
61
|
+
return a.trim();
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
export {
|
|
65
|
+
s as extractDomainFromUrl,
|
|
66
|
+
i as stripQueryString,
|
|
67
|
+
_ as stripTrackingParams
|
|
68
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { LIB_BUILD_DATE as t, LIB_COMMIT as n, LIB_VERSION as d } from "../version.js";
|
|
2
|
+
var r = (i) => {
|
|
3
|
+
const o = document.getElementById("mb-version-toast");
|
|
4
|
+
if (o) {
|
|
5
|
+
o.remove();
|
|
6
|
+
return;
|
|
7
|
+
}
|
|
8
|
+
const e = document.createElement("div");
|
|
9
|
+
e.id = "mb-version-toast", e.style.cssText = [
|
|
10
|
+
"position:fixed",
|
|
11
|
+
"bottom:16px",
|
|
12
|
+
"right:16px",
|
|
13
|
+
"z-index:2147483647",
|
|
14
|
+
"background:rgba(0,0,0,0.88)",
|
|
15
|
+
"color:#fff",
|
|
16
|
+
"padding:12px 16px",
|
|
17
|
+
"border-radius:8px",
|
|
18
|
+
"font:12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace",
|
|
19
|
+
"box-shadow:0 4px 16px rgba(0,0,0,0.35)",
|
|
20
|
+
"pointer-events:none"
|
|
21
|
+
].join(";"), e.textContent = `app ${i.app} (${i.commit}) - lib build ${i.libBuildNumber} - built ${i.buildDate}`, document.body.appendChild(e), setTimeout(() => e.remove(), 5e3);
|
|
22
|
+
}, a = (i) => {
|
|
23
|
+
const o = {
|
|
24
|
+
...i,
|
|
25
|
+
lib: d,
|
|
26
|
+
libBuildNumber: 434,
|
|
27
|
+
libCommit: n,
|
|
28
|
+
libBuildDate: t
|
|
29
|
+
};
|
|
30
|
+
window.__VERSIONS__ = o, console.info(`%c build %c app ${o.app} (${o.commit}) - lib build ${o.libBuildNumber} - ${o.buildDate} `, "background:#222;color:#0f0;padding:2px 6px;border-radius:3px 0 0 3px;font-weight:bold", "background:#333;color:#eee;padding:2px 6px;border-radius:0 3px 3px 0"), window.addEventListener("keydown", (e) => {
|
|
31
|
+
e.ctrlKey && e.altKey && (e.key === "v" || e.key === "V") && (e.preventDefault(), r(o));
|
|
32
|
+
});
|
|
33
|
+
};
|
|
34
|
+
export {
|
|
35
|
+
a as initVersionInfo
|
|
36
|
+
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { AppPersistenceStorage as o } from "../helpers/AppPersistenceStorage.js";
|
|
2
|
+
import { useCallback as a, useState as A } from "react";
|
|
3
|
+
function S(e, g) {
|
|
4
|
+
const c = {
|
|
5
|
+
pages: g.pages ?? {},
|
|
6
|
+
theme: g.theme
|
|
7
|
+
}, [l, r] = A(() => o.load(e, c)), u = a((s, n) => {
|
|
8
|
+
r((t) => {
|
|
9
|
+
const m = {
|
|
10
|
+
...t,
|
|
11
|
+
pages: {
|
|
12
|
+
...t.pages,
|
|
13
|
+
[s]: n
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
return o.save(e, m), m;
|
|
17
|
+
});
|
|
18
|
+
}, [e]), h = a((s) => {
|
|
19
|
+
r((n) => {
|
|
20
|
+
const t = {
|
|
21
|
+
...n,
|
|
22
|
+
theme: s
|
|
23
|
+
};
|
|
24
|
+
return o.save(e, t), t;
|
|
25
|
+
});
|
|
26
|
+
}, [e]), i = a((s) => {
|
|
27
|
+
r((n) => {
|
|
28
|
+
const t = {
|
|
29
|
+
...n,
|
|
30
|
+
pages: {
|
|
31
|
+
...n.pages,
|
|
32
|
+
[s]: c.pages[s]
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
return o.save(e, t), t;
|
|
36
|
+
});
|
|
37
|
+
}, [e]), x = a(() => {
|
|
38
|
+
r(c), o.clearAll(e);
|
|
39
|
+
}, [e]);
|
|
40
|
+
return {
|
|
41
|
+
pages: l.pages,
|
|
42
|
+
theme: l.theme,
|
|
43
|
+
setPage: u,
|
|
44
|
+
setTheme: h,
|
|
45
|
+
clearPage: i,
|
|
46
|
+
clearAll: x
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
export {
|
|
50
|
+
S as useAppPersistence
|
|
51
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AuthContext as r } from "../../contexts/AuthContext/AuthContext.js";
|
|
2
|
+
import { useContext as o } from "react";
|
|
3
|
+
var n = () => {
|
|
4
|
+
const t = o(r);
|
|
5
|
+
if (t === void 0) throw new Error("useAuth must be used within an AuthProvider");
|
|
6
|
+
return t;
|
|
7
|
+
};
|
|
8
|
+
export {
|
|
9
|
+
n as useAuth
|
|
10
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { useEffect as u, useRef as i } from "react";
|
|
2
|
+
var b = (e) => {
|
|
3
|
+
const o = i(null);
|
|
4
|
+
u(() => {
|
|
5
|
+
const d = () => {
|
|
6
|
+
if (!o.current) return;
|
|
7
|
+
const { overflow: t, position: l, top: n, left: y, right: r, width: s, scrollY: c } = o.current;
|
|
8
|
+
document.body.style.overflow = t, document.body.style.position = l, document.body.style.top = n, document.body.style.left = y, document.body.style.right = r, document.body.style.width = s, window.scrollTo(0, c), o.current = null;
|
|
9
|
+
};
|
|
10
|
+
if (e) {
|
|
11
|
+
if (!o.current) {
|
|
12
|
+
const t = window.scrollY;
|
|
13
|
+
o.current = {
|
|
14
|
+
overflow: document.body.style.overflow,
|
|
15
|
+
position: document.body.style.position,
|
|
16
|
+
top: document.body.style.top,
|
|
17
|
+
left: document.body.style.left,
|
|
18
|
+
right: document.body.style.right,
|
|
19
|
+
width: document.body.style.width,
|
|
20
|
+
scrollY: t
|
|
21
|
+
}, document.body.style.overflow = "hidden", document.body.style.position = "fixed", document.body.style.top = `-${t}px`, document.body.style.left = "0", document.body.style.right = "0", document.body.style.width = "100%";
|
|
22
|
+
}
|
|
23
|
+
} else d();
|
|
24
|
+
return () => {
|
|
25
|
+
d();
|
|
26
|
+
};
|
|
27
|
+
}, [e]);
|
|
28
|
+
};
|
|
29
|
+
export {
|
|
30
|
+
b as useBodyScrollLock
|
|
31
|
+
};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { useCallback as o, useEffect as b, useState as x } from "react";
|
|
2
|
+
var r = {
|
|
3
|
+
mobile: {
|
|
4
|
+
min: 0,
|
|
5
|
+
max: 767
|
|
6
|
+
},
|
|
7
|
+
tablet: {
|
|
8
|
+
min: 768,
|
|
9
|
+
max: 991
|
|
10
|
+
},
|
|
11
|
+
desktop: {
|
|
12
|
+
min: 992,
|
|
13
|
+
max: 1199
|
|
14
|
+
},
|
|
15
|
+
largeDesktop: {
|
|
16
|
+
min: 1200,
|
|
17
|
+
max: 1 / 0
|
|
18
|
+
}
|
|
19
|
+
}, f = {
|
|
20
|
+
mobile: "(max-width: 767px)",
|
|
21
|
+
tablet: "(min-width: 768px) and (max-width: 991px)",
|
|
22
|
+
desktop: "(min-width: 992px) and (max-width: 1199px)",
|
|
23
|
+
largeDesktop: "(min-width: 1200px)"
|
|
24
|
+
}, s = () => {
|
|
25
|
+
if (typeof window > "u") return "desktop";
|
|
26
|
+
const e = window.innerWidth;
|
|
27
|
+
return e <= r.mobile.max ? "mobile" : e >= r.tablet.min && e <= r.tablet.max ? "tablet" : e >= r.desktop.min && e <= r.desktop.max ? "desktop" : "largeDesktop";
|
|
28
|
+
}, i = (e) => [
|
|
29
|
+
"mobile",
|
|
30
|
+
"tablet",
|
|
31
|
+
"desktop",
|
|
32
|
+
"largeDesktop"
|
|
33
|
+
].indexOf(e), w = () => {
|
|
34
|
+
const [e, d] = x(s), p = o((t) => i(e) > i(t), [e]), m = o((t) => i(e) < i(t), [e]), u = o((t) => i(e) >= i(t), [e]), l = o((t) => i(e) <= i(t), [e]);
|
|
35
|
+
return b(() => {
|
|
36
|
+
if (typeof window > "u") return;
|
|
37
|
+
const t = Object.entries(f).map(([n, k]) => ({
|
|
38
|
+
breakpoint: n,
|
|
39
|
+
mql: window.matchMedia(k)
|
|
40
|
+
})), a = () => {
|
|
41
|
+
d(s());
|
|
42
|
+
};
|
|
43
|
+
return t.forEach(({ mql: n }) => {
|
|
44
|
+
n.addEventListener ? n.addEventListener("change", a) : n.addListener(a);
|
|
45
|
+
}), d(s()), () => {
|
|
46
|
+
t.forEach(({ mql: n }) => {
|
|
47
|
+
n.removeEventListener ? n.removeEventListener("change", a) : n.removeListener(a);
|
|
48
|
+
});
|
|
49
|
+
};
|
|
50
|
+
}, []), {
|
|
51
|
+
currentBreakpoint: e,
|
|
52
|
+
isMobile: e === "mobile",
|
|
53
|
+
isTablet: e === "tablet",
|
|
54
|
+
isDesktop: e === "desktop",
|
|
55
|
+
isLargeDesktop: e === "largeDesktop",
|
|
56
|
+
isAbove: p,
|
|
57
|
+
isBelow: m,
|
|
58
|
+
isAtLeast: u,
|
|
59
|
+
isAtMost: l
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
export {
|
|
63
|
+
r as breakpoints,
|
|
64
|
+
w as useBreakpoint
|
|
65
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { useCallback as o, useRef as m } from "react";
|
|
2
|
+
var x = ({ enabled: n = !0, maxDurationMs: s = 800, onSwipeDown: l, onSwipeLeft: a, onSwipeRight: h, onSwipeUp: i, restraint: e = 80, threshold: r = 60 }) => {
|
|
3
|
+
const c = m(null);
|
|
4
|
+
return {
|
|
5
|
+
onTouchStart: o((u) => {
|
|
6
|
+
if (!n || u.touches.length !== 1) {
|
|
7
|
+
c.current = null;
|
|
8
|
+
return;
|
|
9
|
+
}
|
|
10
|
+
const t = u.touches[0];
|
|
11
|
+
c.current = {
|
|
12
|
+
x: t.clientX,
|
|
13
|
+
y: t.clientY,
|
|
14
|
+
time: Date.now()
|
|
15
|
+
};
|
|
16
|
+
}, [n]),
|
|
17
|
+
onTouchEnd: o((u) => {
|
|
18
|
+
const t = c.current;
|
|
19
|
+
if (c.current = null, !n || !t || u.changedTouches.length !== 1) return;
|
|
20
|
+
const f = u.changedTouches[0], T = f.clientX - t.x, g = f.clientY - t.y;
|
|
21
|
+
if (Date.now() - t.time > s) return;
|
|
22
|
+
const X = Math.abs(T), Y = Math.abs(g);
|
|
23
|
+
if (X >= r && Y <= e) {
|
|
24
|
+
T < 0 ? a?.() : h?.();
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
Y >= r && X <= e && (g < 0 ? i?.() : l?.());
|
|
28
|
+
}, [
|
|
29
|
+
n,
|
|
30
|
+
s,
|
|
31
|
+
l,
|
|
32
|
+
a,
|
|
33
|
+
h,
|
|
34
|
+
i,
|
|
35
|
+
e,
|
|
36
|
+
r
|
|
37
|
+
]),
|
|
38
|
+
onTouchCancel: o(() => {
|
|
39
|
+
c.current = null;
|
|
40
|
+
}, [])
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
export {
|
|
44
|
+
x as useSwipe
|
|
45
|
+
};
|