@inntechcorp/it-design 3.1.24 → 4.0.0-beta.10
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/ACCESSIBILITY.md +524 -0
- package/CHANGELOG.md +257 -0
- package/LICENSE +201 -0
- package/MIGRATION.md +181 -0
- package/README.md +266 -24
- package/dist/cjs/_bundled/@radix-ui/primitive/dist/index.js +1 -0
- package/dist/cjs/_bundled/@radix-ui/react-compose-refs/dist/index.js +1 -0
- package/dist/cjs/_bundled/@radix-ui/react-context/dist/index.js +1 -0
- package/dist/cjs/_bundled/@radix-ui/react-dialog/dist/index.js +1 -0
- package/dist/cjs/_bundled/@radix-ui/react-dismissable-layer/dist/index.js +1 -0
- package/dist/cjs/_bundled/@radix-ui/react-focus-guards/dist/index.js +1 -0
- package/dist/cjs/_bundled/@radix-ui/react-focus-scope/dist/index.js +1 -0
- package/dist/cjs/_bundled/@radix-ui/react-id/dist/index.js +1 -0
- package/dist/cjs/_bundled/@radix-ui/react-portal/dist/index.js +1 -0
- package/dist/cjs/_bundled/@radix-ui/react-presence/dist/index.js +1 -0
- package/dist/cjs/_bundled/@radix-ui/react-primitive/dist/index.js +1 -0
- package/dist/cjs/_bundled/@radix-ui/react-slot/dist/index.js +1 -0
- package/dist/cjs/_bundled/@radix-ui/react-use-callback-ref/dist/index.js +1 -0
- package/dist/cjs/_bundled/@radix-ui/react-use-controllable-state/dist/index.js +1 -0
- package/dist/cjs/_bundled/@radix-ui/react-use-effect-event/dist/index.js +1 -0
- package/dist/cjs/_bundled/@radix-ui/react-use-layout-effect/dist/index.js +1 -0
- package/dist/cjs/_bundled/aria-hidden/dist/es2015/index.js +1 -0
- package/dist/cjs/_bundled/embla-carousel/esm/embla-carousel.esm.js +1 -0
- package/dist/cjs/_bundled/embla-carousel-autoplay/esm/embla-carousel-autoplay.esm.js +1 -0
- package/dist/cjs/_bundled/embla-carousel-react/esm/embla-carousel-react.esm.js +1 -0
- package/dist/cjs/_bundled/embla-carousel-reactive-utils/esm/embla-carousel-reactive-utils.esm.js +1 -0
- package/dist/cjs/_bundled/get-nonce/dist/es2015/index.js +1 -0
- package/dist/cjs/_bundled/react-remove-scroll/dist/es2015/Combination.js +1 -0
- package/dist/cjs/_bundled/react-remove-scroll/dist/es2015/SideEffect.js +1 -0
- package/dist/cjs/_bundled/react-remove-scroll/dist/es2015/UI.js +1 -0
- package/dist/cjs/_bundled/react-remove-scroll/dist/es2015/aggresiveCapture.js +1 -0
- package/dist/cjs/_bundled/react-remove-scroll/dist/es2015/handleScroll.js +1 -0
- package/dist/cjs/_bundled/react-remove-scroll/dist/es2015/medium.js +1 -0
- package/dist/cjs/_bundled/react-remove-scroll/dist/es2015/sidecar.js +1 -0
- package/dist/cjs/_bundled/react-remove-scroll-bar/dist/es2015/component.js +1 -0
- package/dist/cjs/_bundled/react-remove-scroll-bar/dist/es2015/constants.js +1 -0
- package/dist/cjs/_bundled/react-remove-scroll-bar/dist/es2015/utils.js +1 -0
- package/dist/cjs/_bundled/react-style-singleton/dist/es2015/component.js +1 -0
- package/dist/cjs/_bundled/react-style-singleton/dist/es2015/hook.js +1 -0
- package/dist/cjs/_bundled/react-style-singleton/dist/es2015/singleton.js +1 -0
- package/dist/cjs/_bundled/use-callback-ref/dist/es2015/assignRef.js +1 -0
- package/dist/cjs/_bundled/use-callback-ref/dist/es2015/useMergeRef.js +1 -0
- package/dist/cjs/_bundled/use-callback-ref/dist/es2015/useRef.js +1 -0
- package/dist/cjs/_bundled/use-sidecar/dist/es2015/exports.js +1 -0
- package/dist/cjs/_bundled/use-sidecar/dist/es2015/medium.js +1 -0
- package/dist/cjs/_bundled/vaul/dist/index.js +1 -0
- package/dist/cjs/_virtual/_tslib.js +1 -0
- package/dist/cjs/accordion/index.js +1 -0
- package/dist/cjs/accordion/item/Item.js +1 -0
- package/dist/cjs/accordion/submenu/SubMenu.js +1 -0
- package/dist/cjs/alert/Description.js +1 -0
- package/dist/cjs/alert/Title.js +1 -0
- package/dist/cjs/alert/index.js +1 -0
- package/dist/cjs/alink/index.js +1 -0
- package/dist/cjs/amount/index.js +1 -0
- package/dist/cjs/announcement-bar/index.js +1 -0
- package/dist/cjs/avatar/index.js +1 -0
- package/dist/cjs/back-top/index.js +1 -0
- package/dist/cjs/badge/index.js +1 -0
- package/dist/cjs/blocks/auth-complete/index.js +1 -0
- package/dist/cjs/blocks/auth-page/index.js +1 -0
- package/dist/cjs/blocks/banner/index.js +1 -0
- package/dist/cjs/blocks/box-title/index.js +1 -0
- package/dist/cjs/blocks/casino-featured/index.js +1 -0
- package/dist/cjs/blocks/default-avatar/index.js +1 -0
- package/dist/cjs/blocks/embla/useEmblaState.js +1 -0
- package/dist/cjs/blocks/featured-games/index.js +1 -0
- package/dist/cjs/blocks/filter-tabs/index.js +1 -0
- package/dist/cjs/blocks/footer/index.js +1 -0
- package/dist/cjs/blocks/game-box/index.js +1 -0
- package/dist/cjs/blocks/game-carousel/index.js +1 -0
- package/dist/cjs/blocks/game-categories/Carousel.js +1 -0
- package/dist/cjs/blocks/game-categories/Mobile.js +1 -0
- package/dist/cjs/blocks/game-categories/index.js +1 -0
- package/dist/cjs/blocks/game-filter/index.js +1 -0
- package/dist/cjs/blocks/game-navigator/index.js +1 -0
- package/dist/cjs/blocks/game-providers/index.js +1 -0
- package/dist/cjs/blocks/game-providers/logos.js +1 -0
- package/dist/cjs/blocks/game-search/index.js +1 -0
- package/dist/cjs/blocks/game-shell/Browse.js +1 -0
- package/dist/cjs/blocks/game-shell/Settings.js +1 -0
- package/dist/cjs/blocks/game-shell/SwipeHint.js +1 -0
- package/dist/cjs/blocks/game-shell/index.js +1 -0
- package/dist/cjs/blocks/game-shell/useDrawerChrome.js +1 -0
- package/dist/cjs/blocks/games-grid/index.js +1 -0
- package/dist/cjs/blocks/header/index.js +1 -0
- package/dist/cjs/blocks/help/index.js +1 -0
- package/dist/cjs/blocks/last-winners/index.js +1 -0
- package/dist/cjs/blocks/layout-boxes/index.js +1 -0
- package/dist/cjs/blocks/login/index.js +1 -0
- package/dist/cjs/blocks/mega-menu/index.js +1 -0
- package/dist/cjs/blocks/min-width-gate/index.js +1 -0
- package/dist/cjs/blocks/mobile-bottom-nav/index.js +1 -0
- package/dist/cjs/blocks/multiple-jackpots/TierCarousel.js +1 -0
- package/dist/cjs/blocks/multiple-jackpots/index.js +1 -0
- package/dist/cjs/blocks/notifications/index.js +1 -0
- package/dist/cjs/blocks/post-viewer/index.js +1 -0
- package/dist/cjs/blocks/promotions-grid/index.js +1 -0
- package/dist/cjs/blocks/raffle/index.js +1 -0
- package/dist/cjs/blocks/signup/index.js +1 -0
- package/dist/cjs/blocks/slider/index.js +1 -0
- package/dist/cjs/blocks/slider-double/index.js +1 -0
- package/dist/cjs/blocks/spacer/index.js +1 -0
- package/dist/cjs/blocks/sub-page-header/index.js +1 -0
- package/dist/cjs/blocks/tournaments/index.js +1 -0
- package/dist/cjs/blocks/user-hub/bonus.js +1 -0
- package/dist/cjs/blocks/user-hub/cashier.js +1 -0
- package/dist/cjs/blocks/user-hub/deposit.js +1 -0
- package/dist/cjs/blocks/user-hub/history.js +1 -0
- package/dist/cjs/blocks/user-hub/index.js +1 -0
- package/dist/cjs/blocks/user-hub/messages.js +1 -0
- package/dist/cjs/blocks/user-hub/platform.js +1 -0
- package/dist/cjs/blocks/user-hub/profile.js +1 -0
- package/dist/cjs/blocks/user-hub/raffles.js +1 -0
- package/dist/cjs/blocks/user-hub/settings.js +1 -0
- package/dist/cjs/blocks/user-hub/table.js +1 -0
- package/dist/cjs/blocks/user-hub/vip.js +1 -0
- package/dist/cjs/blocks/user-hub/withdraw.js +1 -0
- package/dist/cjs/button/index.js +1 -0
- package/dist/cjs/button-group/ButtonGroupContext.js +1 -0
- package/dist/cjs/button-group/index.js +1 -0
- package/dist/cjs/calendar/dates.js +1 -0
- package/dist/cjs/calendar/day/Day.js +1 -0
- package/dist/cjs/calendar/header/Header.js +1 -0
- package/dist/cjs/calendar/index.js +1 -0
- package/dist/cjs/calendar/range/RangeCalendar.js +1 -0
- package/dist/cjs/calendar/time/Time.js +1 -0
- package/dist/cjs/card/Card.js +1 -0
- package/dist/cjs/card/CardAction.js +1 -0
- package/dist/cjs/card/CardContent.js +1 -0
- package/dist/cjs/card/CardDescription.js +1 -0
- package/dist/cjs/card/CardFooter.js +1 -0
- package/dist/cjs/card/CardHeader.js +1 -0
- package/dist/cjs/card/CardTabs.js +1 -0
- package/dist/cjs/card/CardTitle.js +1 -0
- package/dist/cjs/chart/Fullscreen.js +1 -0
- package/dist/cjs/chart/index.js +1 -0
- package/dist/cjs/chart/palette.js +1 -0
- package/dist/cjs/checkbox/index.js +1 -0
- package/dist/cjs/code-input/index.js +1 -0
- package/dist/cjs/color-input/index.js +1 -0
- package/dist/cjs/coming-soon/index.js +1 -0
- package/dist/cjs/context/FormDefaultsContext.js +1 -0
- package/dist/cjs/context/ITDContext.js +1 -0
- package/dist/cjs/context/ITDThemeProvider.js +1 -0
- package/dist/cjs/context/PortalDocumentContext.js +1 -0
- package/dist/cjs/context-menu/ContextMenu.js +1 -0
- package/dist/cjs/context-menu/ContextMenuTrigger.js +1 -0
- package/dist/cjs/cropper/index.js +1 -0
- package/dist/cjs/data/phones.json.js +1 -0
- package/dist/cjs/datepicker/index.js +1 -0
- package/dist/cjs/dialog/Dialog.js +1 -0
- package/dist/cjs/dropdown-menu/CheckIcon.js +1 -0
- package/dist/cjs/dropdown-menu/DropdownMenu.js +1 -0
- package/dist/cjs/dropdown-menu/DropdownMenuCheckboxItem.js +1 -0
- package/dist/cjs/dropdown-menu/DropdownMenuContent.js +1 -0
- package/dist/cjs/dropdown-menu/DropdownMenuItem.js +1 -0
- package/dist/cjs/dropdown-menu/DropdownMenuLabel.js +1 -0
- package/dist/cjs/dropdown-menu/DropdownMenuRadioGroup.js +1 -0
- package/dist/cjs/dropdown-menu/DropdownMenuRadioItem.js +1 -0
- package/dist/cjs/dropdown-menu/DropdownMenuSeparator.js +1 -0
- package/dist/cjs/dropdown-menu/DropdownMenuSub.js +1 -0
- package/dist/cjs/dropdown-menu/DropdownMenuSubContent.js +1 -0
- package/dist/cjs/dropdown-menu/DropdownMenuSubTrigger.js +1 -0
- package/dist/cjs/dropdown-menu/DropdownMenuTrigger.js +1 -0
- package/dist/cjs/dropdown-menu/MenuItemContext.js +1 -0
- package/dist/cjs/dropdown-menu/processChildren.js +1 -0
- package/dist/cjs/dropdown-menu/useMenuItemChrome.js +1 -0
- package/dist/cjs/dropdown-menu/useMenuKeyboard.js +1 -0
- package/dist/cjs/dropdown-menu/usePointerGraceArea.js +1 -0
- package/dist/cjs/dropdown-menu/useSubMenuRegistry.js +1 -0
- package/dist/cjs/enums/enum.js +1 -0
- package/dist/cjs/field/index.js +1 -0
- package/dist/cjs/flex/index.js +1 -0
- package/dist/cjs/floating/Arrow.js +1 -0
- package/dist/cjs/floating/FloatingContent.js +1 -0
- package/dist/cjs/floating/createFloatingTrigger.js +1 -0
- package/dist/cjs/form/context/FormContext.js +1 -0
- package/dist/cjs/form/context/FormRegistry.js +1 -0
- package/dist/cjs/form/context/FormStore.js +1 -0
- package/dist/cjs/form/control/Control.js +1 -0
- package/dist/cjs/form/group/Group.js +1 -0
- package/dist/cjs/form/index.js +1 -0
- package/dist/cjs/form/item/Item.js +1 -0
- package/dist/cjs/form/validation/TCIdentity.js +1 -0
- package/dist/cjs/form/validation/Validator.js +1 -0
- package/dist/cjs/form/wrapper/FormWrapper.js +1 -0
- package/dist/cjs/helpers/array/ChunkArray.js +1 -0
- package/dist/cjs/helpers/aspectratio/DetermineNewHeight.js +1 -0
- package/dist/cjs/helpers/aspectratio/DetermineNewWidth.js +1 -0
- package/dist/cjs/helpers/base64/Base64Decode.js +1 -0
- package/dist/cjs/helpers/base64/Base64Encode.js +1 -0
- package/dist/cjs/helpers/binary/FormatBytes.js +1 -0
- package/dist/cjs/helpers/binary/GetExtensionByMimeType.js +1 -0
- package/dist/cjs/helpers/binary/GetTypeByFileType.js +1 -0
- package/dist/cjs/helpers/checker/CheckFileURL.js +1 -0
- package/dist/cjs/helpers/checker/FileChecker.js +1 -0
- package/dist/cjs/helpers/classname/GetClassNameByPlatform.js +1 -0
- package/dist/cjs/helpers/config/defineITDConfig.js +1 -0
- package/dist/cjs/helpers/country/GetCountryCodeByCurrencyCode.js +1 -0
- package/dist/cjs/helpers/country/GetCountryCodeByLanguage.js +1 -0
- package/dist/cjs/helpers/css/FindSelector.js +1 -0
- package/dist/cjs/helpers/currency/ConvertCurrency.js +1 -0
- package/dist/cjs/helpers/currency/GetByCurrency.js +1 -0
- package/dist/cjs/helpers/currency/GetCurrencyFormat.js +1 -0
- package/dist/cjs/helpers/currency/GetCurrencySymbol.js +1 -0
- package/dist/cjs/helpers/currency/GetDecimalByCurrency.js +1 -0
- package/dist/cjs/helpers/datetime/FormatDate.js +1 -0
- package/dist/cjs/helpers/datetime/FormatDateTime.js +1 -0
- package/dist/cjs/helpers/datetime/FormatSimpleDate.js +1 -0
- package/dist/cjs/helpers/datetime/FormatSimpleDateTime.js +1 -0
- package/dist/cjs/helpers/datetime/FormatTime.js +1 -0
- package/dist/cjs/helpers/datetime/dayjsSetup.js +1 -0
- package/dist/cjs/helpers/device/touchDevice.js +1 -0
- package/dist/cjs/helpers/format/ToKebabCase.js +1 -0
- package/dist/cjs/helpers/image/SVGUrlToPNGDataUrl.js +1 -0
- package/dist/cjs/helpers/json/IsValidJSON.js +1 -0
- package/dist/cjs/helpers/math/AddZero.js +1 -0
- package/dist/cjs/helpers/phone/index.js +1 -0
- package/dist/cjs/helpers/phone/usePhoneCountry.js +1 -0
- package/dist/cjs/helpers/platform/index.js +1 -0
- package/dist/cjs/helpers/promise/Wait.js +1 -0
- package/dist/cjs/helpers/remover/RemoveUnits.js +1 -0
- package/dist/cjs/helpers/string/UniUpperCase.js +1 -0
- package/dist/cjs/helpers/svg/SVGLoader.js +1 -0
- package/dist/cjs/helpers/theme/AddDefaultThemeStyle.js +1 -0
- package/dist/cjs/helpers/theme/Color.js +1 -0
- package/dist/cjs/helpers/theme/GenerateColorScale.js +1 -0
- package/dist/cjs/helpers/theme/colorOps.js +1 -0
- package/dist/cjs/helpers/theme/contrast.js +1 -0
- package/dist/cjs/helpers/theme/createTheme.js +1 -0
- package/dist/cjs/helpers/theme/cssVariables.js +1 -0
- package/dist/cjs/helpers/theme/dark.js +1 -0
- package/dist/cjs/helpers/theme/exampleSitePreset.js +1 -0
- package/dist/cjs/helpers/theme/importShadcnTheme.js +1 -0
- package/dist/cjs/helpers/theme/light.js +1 -0
- package/dist/cjs/helpers/theme/presets.js +1 -0
- package/dist/cjs/helpers/theme/shadowScale.js +1 -0
- package/dist/cjs/helpers/theme/sitePreset.js +1 -0
- package/dist/cjs/helpers/theme/tokenSet.js +1 -0
- package/dist/cjs/helpers/unit/AddDefaultUnit.js +1 -0
- package/dist/cjs/helpers/unit/cssVars.js +1 -0
- package/dist/cjs/hooks/useAddExternalCSS.js +1 -0
- package/dist/cjs/hooks/useAvoidCollision.js +1 -0
- package/dist/cjs/hooks/useComponentSize.js +1 -0
- package/dist/cjs/hooks/useConnectionStatus.js +1 -0
- package/dist/cjs/hooks/useConstructor.js +1 -0
- package/dist/cjs/hooks/useContextBridge.js +1 -0
- package/dist/cjs/hooks/useCoreFetch.js +1 -0
- package/dist/cjs/hooks/useFloatingPosition.js +1 -0
- package/dist/cjs/hooks/useFloatingTrigger.js +1 -0
- package/dist/cjs/hooks/useFocusTrap.js +1 -0
- package/dist/cjs/hooks/useKeyboardShortcut.js +1 -0
- package/dist/cjs/hooks/useLoadMoreSentinel.js +1 -0
- package/dist/cjs/hooks/useMediaQuery.js +1 -0
- package/dist/cjs/hooks/useMultiQuery.js +1 -0
- package/dist/cjs/hooks/useNaturalRatio.js +1 -0
- package/dist/cjs/hooks/useOnClickOutside.js +1 -0
- package/dist/cjs/hooks/useOnESCKeyDown.js +1 -0
- package/dist/cjs/hooks/useOnResize.js +1 -0
- package/dist/cjs/hooks/useOrientation.js +1 -0
- package/dist/cjs/hooks/useReCaptcha.js +1 -0
- package/dist/cjs/hooks/useRealm.js +1 -0
- package/dist/cjs/hooks/useSingleQuery.js +1 -0
- package/dist/cjs/hovercard/HoverCard.js +1 -0
- package/dist/cjs/hovercard/HoverCardContent.js +1 -0
- package/dist/cjs/hovercard/HoverCardTrigger.js +1 -0
- package/dist/cjs/hovercard/hoverCardContext.js +1 -0
- package/dist/cjs/html/header/H1.js +1 -0
- package/dist/cjs/html/header/H2.js +1 -0
- package/dist/cjs/html/header/H3.js +1 -0
- package/dist/cjs/html/header/H4.js +1 -0
- package/dist/cjs/icons/Arrow.js +1 -0
- package/dist/cjs/icons/BackToTop.js +1 -0
- package/dist/cjs/icons/Checkmark.js +1 -0
- package/dist/cjs/icons/FileDocument.js +1 -0
- package/dist/cjs/icons/FileExcel.js +1 -0
- package/dist/cjs/icons/FilePdf.js +1 -0
- package/dist/cjs/icons/InlineSelectArrow.js +1 -0
- package/dist/cjs/icons/Lock.js +1 -0
- package/dist/cjs/icons/NoData.js +1 -0
- package/dist/cjs/icons/Picture.js +1 -0
- package/dist/cjs/icons/Trash.js +1 -0
- package/dist/cjs/icons/Upload.js +1 -0
- package/dist/cjs/icons/ZoomIn.js +1 -0
- package/dist/cjs/icons/ZoomOut.js +1 -0
- package/dist/cjs/image/index.js +1 -0
- package/dist/cjs/index.js +1 -0
- package/dist/cjs/input/index.js +1 -0
- package/dist/cjs/label/index.js +1 -0
- package/dist/cjs/locale/useITDLocale.js +1 -0
- package/dist/cjs/locales/en/calendar.json.js +1 -0
- package/dist/cjs/locales/en/itd.json.js +1 -0
- package/dist/cjs/locales/tr/calendar.json.js +1 -0
- package/dist/cjs/locales/tr/itd.json.js +1 -0
- package/dist/cjs/logger/index.js +1 -0
- package/dist/cjs/modal/container/ModalContainer.js +1 -0
- package/dist/cjs/modal/context/ModalContext.js +1 -0
- package/dist/cjs/modal/index.js +1 -0
- package/dist/cjs/modal/modal/Modal.js +1 -0
- package/dist/cjs/modal/useModalContent.js +1 -0
- package/dist/cjs/package.json +3 -0
- package/dist/cjs/page/BlockBoundary.js +1 -0
- package/dist/cjs/page/background.js +1 -0
- package/dist/cjs/page/blocks.js +1 -0
- package/dist/cjs/page/blocks.query.js +1 -0
- package/dist/cjs/page/checks.js +1 -0
- package/dist/cjs/page/context.js +1 -0
- package/dist/cjs/page/customCode.js +1 -0
- package/dist/cjs/page/editor/BlockForm.js +1 -0
- package/dist/cjs/page/editor/BlockPreview.js +1 -0
- package/dist/cjs/page/editor/CodeEditor.js +1 -0
- package/dist/cjs/page/editor/dropIndex.js +1 -0
- package/dist/cjs/page/editor/protocol.js +1 -0
- package/dist/cjs/page/editor/theme.js +1 -0
- package/dist/cjs/page/editor/useEditorBridge.js +1 -0
- package/dist/cjs/page/fields.js +1 -0
- package/dist/cjs/page/index.js +1 -0
- package/dist/cjs/page/layouts.js +1 -0
- package/dist/cjs/page/pageTypes.js +1 -0
- package/dist/cjs/page/sample.js +1 -0
- package/dist/cjs/page/settle.js +1 -0
- package/dist/cjs/page/types.js +1 -0
- package/dist/cjs/popover/Popover.js +1 -0
- package/dist/cjs/popover/PopoverContent.js +1 -0
- package/dist/cjs/popover/PopoverTrigger.js +1 -0
- package/dist/cjs/primitives/Slot.js +1 -0
- package/dist/cjs/primitives/overlayStack.js +1 -0
- package/dist/cjs/primitives/scrollLock.js +1 -0
- package/dist/cjs/progress/index.js +1 -0
- package/dist/cjs/radio/RadioGroup.js +1 -0
- package/dist/cjs/radio/RadioGroupContext.js +1 -0
- package/dist/cjs/radio/RadioGroupItem.js +1 -0
- package/dist/cjs/rangepicker/index.js +1 -0
- package/dist/cjs/result/index.js +1 -0
- package/dist/cjs/router/BlockLink.js +1 -0
- package/dist/cjs/router/ITDLink.js +1 -0
- package/dist/cjs/router/context.js +1 -0
- package/dist/cjs/router/hooks.js +1 -0
- package/dist/cjs/router/matchActive.js +1 -0
- package/dist/cjs/select/SelectGroup.js +1 -0
- package/dist/cjs/select/SelectItem.js +1 -0
- package/dist/cjs/select/SelectLabel.js +1 -0
- package/dist/cjs/select/SelectSeparator.js +1 -0
- package/dist/cjs/select/dropdown/Dropdown.js +1 -0
- package/dist/cjs/select/index.js +1 -0
- package/dist/cjs/select/option/Option.js +1 -0
- package/dist/cjs/select/selector/Selector.js +1 -0
- package/dist/cjs/select/selector/selectorinput/SelectorInput.js +1 -0
- package/dist/cjs/separator/index.js +1 -0
- package/dist/cjs/skeleton/index.js +1 -0
- package/dist/cjs/spin/index.js +1 -0
- package/dist/cjs/stat-card/index.js +1 -0
- package/dist/cjs/switch/index.js +1 -0
- package/dist/cjs/table/index.js +1 -0
- package/dist/cjs/table/paths.js +1 -0
- package/dist/cjs/table/primitives.js +1 -0
- package/dist/cjs/table/sort.js +1 -0
- package/dist/cjs/tabs/Tabs.js +1 -0
- package/dist/cjs/tabs/TabsContent.js +1 -0
- package/dist/cjs/tabs/TabsContext.js +1 -0
- package/dist/cjs/tabs/TabsList.js +1 -0
- package/dist/cjs/tabs/TabsTrigger.js +1 -0
- package/dist/cjs/textarea/index.js +1 -0
- package/dist/cjs/tinyscrollbar/index.js +1 -0
- package/dist/cjs/toast/index.js +1 -0
- package/dist/cjs/toggle-group/index.js +1 -0
- package/dist/cjs/tooltip/Tooltip.js +1 -0
- package/dist/cjs/tooltip/TooltipContent.js +1 -0
- package/dist/cjs/tooltip/TooltipTrigger.js +1 -0
- package/dist/cjs/tooltip/tooltipContext.js +1 -0
- package/dist/cjs/types/InputProps.js +1 -0
- package/dist/cjs/upload/index.js +1 -0
- package/dist/cjs/utils/CommonStyledComponents.js +1 -0
- package/dist/cjs/utils/ErrorAnnouncement.js +1 -0
- package/dist/cjs/utils/GetButtonSizeSlug.js +1 -0
- package/dist/cjs/utils/GetSizeBySizeSlug.js +1 -0
- package/dist/cjs/utils/GetSizeSlugBySize.js +1 -0
- package/dist/cjs/utils/InlineSVGCached.js +1 -0
- package/dist/cjs/utils/cn.js +1 -0
- package/dist/cjs/utils/focusModality.js +1 -0
- package/dist/css/accordion.css +13 -0
- package/dist/css/alert.css +1 -0
- package/dist/css/alink.css +1 -0
- package/dist/css/amount.css +1 -0
- package/dist/css/announcement-bar.css +1 -0
- package/dist/css/auth-page.css +3 -0
- package/dist/css/avatar.css +1 -0
- package/dist/css/back-top.css +1 -0
- package/dist/css/badge.css +245 -0
- package/dist/css/base.css +111 -0
- package/dist/css/block-form.css +5 -0
- package/dist/css/blocks-shared.css +15 -0
- package/dist/css/button-group.css +1 -0
- package/dist/css/button.css +11 -0
- package/dist/css/calendar.css +1 -0
- package/dist/css/card.css +1 -0
- package/dist/css/casino-featured.css +1 -0
- package/dist/css/chart.css +1 -0
- package/dist/css/checkbox.css +3 -0
- package/dist/css/code-input.css +7 -0
- package/dist/css/color-input.css +1 -0
- package/dist/css/coming-soon.css +1 -0
- package/dist/css/common.css +1 -0
- package/dist/css/components.css +1 -0
- package/dist/css/cropper.css +17 -0
- package/dist/css/datepicker.css +1 -0
- package/dist/css/default-avatar.css +1 -0
- package/dist/css/dialog.css +1 -0
- package/dist/css/dropdown-menu.css +1 -0
- package/dist/css/field.css +1 -0
- package/dist/css/filter-tabs.css +1 -0
- package/dist/css/flex.css +1 -0
- package/dist/css/floating.css +1 -0
- package/dist/css/footer.css +1 -0
- package/dist/css/form.css +1 -0
- package/dist/css/game-box.css +9 -0
- package/dist/css/game-carousel.css +1 -0
- package/dist/css/game-categories.css +1 -0
- package/dist/css/game-filter.css +1 -0
- package/dist/css/game-navigator.css +1 -0
- package/dist/css/game-providers.css +1 -0
- package/dist/css/game-search.css +1 -0
- package/dist/css/game-shell.css +3 -0
- package/dist/css/header.css +7 -0
- package/dist/css/help.css +1 -0
- package/dist/css/home-sections.css +1 -0
- package/dist/css/hovercard.css +1 -0
- package/dist/css/hstrip.css +1 -0
- package/dist/css/html-header.css +1 -0
- package/dist/css/image.css +1 -0
- package/dist/css/input.css +1 -0
- package/dist/css/label.css +1 -0
- package/dist/css/last-winners.css +1 -0
- package/dist/css/login.css +1 -0
- package/dist/css/mega-menu.css +3 -0
- package/dist/css/min-width-gate.css +1 -0
- package/dist/css/mobile-bottom-nav.css +1 -0
- package/dist/css/modal.css +11 -0
- package/dist/css/multiple-jackpots.css +7 -0
- package/dist/css/notifications-panel.css +5 -0
- package/dist/css/page.css +5 -0
- package/dist/css/popover.css +1 -0
- package/dist/css/post-viewer.css +1 -0
- package/dist/css/progress.css +1 -0
- package/dist/css/promotions-grid.css +7 -0
- package/dist/css/properties.css +5 -0
- package/dist/css/provider.css +1 -0
- package/dist/css/radio.css +1 -0
- package/dist/css/raffle.css +1 -0
- package/dist/css/rangepicker.css +1 -0
- package/dist/css/reset.css +5 -0
- package/dist/css/result.css +1 -0
- package/dist/css/select.css +1 -0
- package/dist/css/separator.css +1 -0
- package/dist/css/sheet.css +1 -0
- package/dist/css/signup.css +1 -0
- package/dist/css/skeleton.css +3 -0
- package/dist/css/slider.css +1 -0
- package/dist/css/spin.css +1 -0
- package/dist/css/stat-card.css +1 -0
- package/dist/css/sub-page-header.css +1 -0
- package/dist/css/svg-loader.css +1 -0
- package/dist/css/switch.css +1 -0
- package/dist/css/table.css +7 -0
- package/dist/css/tabs.css +1 -0
- package/dist/css/textarea.css +1 -0
- package/dist/css/tinyscrollbar.css +1 -0
- package/dist/css/toggle-group.css +1 -0
- package/dist/css/tooltip.css +1 -0
- package/dist/css/tournaments.css +16 -0
- package/dist/css/upload.css +1 -0
- package/dist/css/user-hub.css +3 -0
- package/dist/css/utilities.css +1 -0
- package/dist/css/vendor.css +12 -0
- package/dist/es/_bundled/@radix-ui/primitive/dist/index.js +1 -0
- package/dist/es/_bundled/@radix-ui/react-compose-refs/dist/index.js +1 -0
- package/dist/es/_bundled/@radix-ui/react-context/dist/index.js +1 -0
- package/dist/es/_bundled/@radix-ui/react-dialog/dist/index.js +1 -0
- package/dist/es/_bundled/@radix-ui/react-dismissable-layer/dist/index.js +1 -0
- package/dist/es/_bundled/@radix-ui/react-focus-guards/dist/index.js +1 -0
- package/dist/es/_bundled/@radix-ui/react-focus-scope/dist/index.js +1 -0
- package/dist/es/_bundled/@radix-ui/react-id/dist/index.js +1 -0
- package/dist/es/_bundled/@radix-ui/react-portal/dist/index.js +1 -0
- package/dist/es/_bundled/@radix-ui/react-presence/dist/index.js +1 -0
- package/dist/es/_bundled/@radix-ui/react-primitive/dist/index.js +1 -0
- package/dist/es/_bundled/@radix-ui/react-slot/dist/index.js +1 -0
- package/dist/es/_bundled/@radix-ui/react-use-callback-ref/dist/index.js +1 -0
- package/dist/es/_bundled/@radix-ui/react-use-controllable-state/dist/index.js +1 -0
- package/dist/es/_bundled/@radix-ui/react-use-effect-event/dist/index.js +1 -0
- package/dist/es/_bundled/@radix-ui/react-use-layout-effect/dist/index.js +1 -0
- package/dist/es/_bundled/aria-hidden/dist/es2015/index.js +1 -0
- package/dist/es/_bundled/embla-carousel/esm/embla-carousel.esm.js +1 -0
- package/dist/es/_bundled/embla-carousel-autoplay/esm/embla-carousel-autoplay.esm.js +1 -0
- package/dist/es/_bundled/embla-carousel-react/esm/embla-carousel-react.esm.js +1 -0
- package/dist/es/_bundled/embla-carousel-reactive-utils/esm/embla-carousel-reactive-utils.esm.js +1 -0
- package/dist/es/_bundled/get-nonce/dist/es2015/index.js +1 -0
- package/dist/es/_bundled/react-remove-scroll/dist/es2015/Combination.js +1 -0
- package/dist/es/_bundled/react-remove-scroll/dist/es2015/SideEffect.js +1 -0
- package/dist/es/_bundled/react-remove-scroll/dist/es2015/UI.js +1 -0
- package/dist/es/_bundled/react-remove-scroll/dist/es2015/aggresiveCapture.js +1 -0
- package/dist/es/_bundled/react-remove-scroll/dist/es2015/handleScroll.js +1 -0
- package/dist/es/_bundled/react-remove-scroll/dist/es2015/medium.js +1 -0
- package/dist/es/_bundled/react-remove-scroll/dist/es2015/sidecar.js +1 -0
- package/dist/es/_bundled/react-remove-scroll-bar/dist/es2015/component.js +1 -0
- package/dist/es/_bundled/react-remove-scroll-bar/dist/es2015/constants.js +1 -0
- package/dist/es/_bundled/react-remove-scroll-bar/dist/es2015/utils.js +1 -0
- package/dist/es/_bundled/react-style-singleton/dist/es2015/component.js +1 -0
- package/dist/es/_bundled/react-style-singleton/dist/es2015/hook.js +1 -0
- package/dist/es/_bundled/react-style-singleton/dist/es2015/singleton.js +1 -0
- package/dist/es/_bundled/use-callback-ref/dist/es2015/assignRef.js +1 -0
- package/dist/es/_bundled/use-callback-ref/dist/es2015/useMergeRef.js +1 -0
- package/dist/es/_bundled/use-callback-ref/dist/es2015/useRef.js +1 -0
- package/dist/es/_bundled/use-sidecar/dist/es2015/exports.js +1 -0
- package/dist/es/_bundled/use-sidecar/dist/es2015/medium.js +1 -0
- package/dist/es/_bundled/vaul/dist/index.js +1 -0
- package/dist/es/_virtual/_tslib.js +1 -0
- package/dist/es/accordion/index.js +1 -0
- package/dist/es/accordion/item/Item.js +1 -0
- package/dist/es/accordion/submenu/SubMenu.js +1 -0
- package/dist/es/alert/Description.js +1 -0
- package/dist/es/alert/Title.js +1 -0
- package/dist/es/alert/index.js +1 -0
- package/dist/es/alink/index.js +1 -0
- package/dist/es/amount/index.js +1 -0
- package/dist/es/announcement-bar/index.js +1 -0
- package/dist/es/avatar/index.js +1 -0
- package/dist/es/back-top/index.js +1 -0
- package/dist/es/badge/index.js +1 -0
- package/dist/es/blocks/auth-complete/index.js +1 -0
- package/dist/es/blocks/auth-page/index.js +1 -0
- package/dist/es/blocks/banner/index.js +1 -0
- package/dist/es/blocks/box-title/index.js +1 -0
- package/dist/es/blocks/casino-featured/index.js +1 -0
- package/dist/es/blocks/default-avatar/index.js +1 -0
- package/dist/es/blocks/embla/useEmblaState.js +1 -0
- package/dist/es/blocks/featured-games/index.js +1 -0
- package/dist/es/blocks/filter-tabs/index.js +1 -0
- package/dist/es/blocks/footer/index.js +1 -0
- package/dist/es/blocks/game-box/index.js +1 -0
- package/dist/es/blocks/game-carousel/index.js +1 -0
- package/dist/es/blocks/game-categories/Carousel.js +1 -0
- package/dist/es/blocks/game-categories/Mobile.js +1 -0
- package/dist/es/blocks/game-categories/index.js +1 -0
- package/dist/es/blocks/game-filter/index.js +1 -0
- package/dist/es/blocks/game-navigator/index.js +1 -0
- package/dist/es/blocks/game-providers/index.js +1 -0
- package/dist/es/blocks/game-providers/logos.js +1 -0
- package/dist/es/blocks/game-search/index.js +1 -0
- package/dist/es/blocks/game-shell/Browse.js +1 -0
- package/dist/es/blocks/game-shell/Settings.js +1 -0
- package/dist/es/blocks/game-shell/SwipeHint.js +1 -0
- package/dist/es/blocks/game-shell/index.js +1 -0
- package/dist/es/blocks/game-shell/useDrawerChrome.js +1 -0
- package/dist/es/blocks/games-grid/index.js +1 -0
- package/dist/es/blocks/header/index.js +1 -0
- package/dist/es/blocks/help/index.js +1 -0
- package/dist/es/blocks/last-winners/index.js +1 -0
- package/dist/es/blocks/layout-boxes/index.js +1 -0
- package/dist/es/blocks/login/index.js +1 -0
- package/dist/es/blocks/mega-menu/index.js +1 -0
- package/dist/es/blocks/min-width-gate/index.js +1 -0
- package/dist/es/blocks/mobile-bottom-nav/index.js +1 -0
- package/dist/es/blocks/multiple-jackpots/TierCarousel.js +1 -0
- package/dist/es/blocks/multiple-jackpots/index.js +1 -0
- package/dist/es/blocks/notifications/index.js +1 -0
- package/dist/es/blocks/post-viewer/index.js +1 -0
- package/dist/es/blocks/promotions-grid/index.js +1 -0
- package/dist/es/blocks/raffle/index.js +1 -0
- package/dist/es/blocks/signup/index.js +1 -0
- package/dist/es/blocks/slider/index.js +1 -0
- package/dist/es/blocks/slider-double/index.js +1 -0
- package/dist/es/blocks/spacer/index.js +1 -0
- package/dist/es/blocks/sub-page-header/index.js +1 -0
- package/dist/es/blocks/tournaments/index.js +1 -0
- package/dist/es/blocks/user-hub/bonus.js +1 -0
- package/dist/es/blocks/user-hub/cashier.js +1 -0
- package/dist/es/blocks/user-hub/deposit.js +1 -0
- package/dist/es/blocks/user-hub/history.js +1 -0
- package/dist/es/blocks/user-hub/index.js +1 -0
- package/dist/es/blocks/user-hub/messages.js +1 -0
- package/dist/es/blocks/user-hub/platform.js +1 -0
- package/dist/es/blocks/user-hub/profile.js +1 -0
- package/dist/es/blocks/user-hub/raffles.js +1 -0
- package/dist/es/blocks/user-hub/settings.js +1 -0
- package/dist/es/blocks/user-hub/table.js +1 -0
- package/dist/es/blocks/user-hub/vip.js +1 -0
- package/dist/es/blocks/user-hub/withdraw.js +1 -0
- package/dist/es/button/index.js +1 -0
- package/dist/es/button-group/ButtonGroupContext.js +1 -0
- package/dist/es/button-group/index.js +1 -0
- package/dist/es/calendar/dates.js +1 -0
- package/dist/es/calendar/day/Day.js +1 -0
- package/dist/es/calendar/header/Header.js +1 -0
- package/dist/es/calendar/index.js +1 -0
- package/dist/es/calendar/range/RangeCalendar.js +1 -0
- package/dist/es/calendar/time/Time.js +1 -0
- package/dist/es/card/Card.js +1 -0
- package/dist/es/card/CardAction.js +1 -0
- package/dist/es/card/CardContent.js +1 -0
- package/dist/es/card/CardDescription.js +1 -0
- package/dist/es/card/CardFooter.js +1 -0
- package/dist/es/card/CardHeader.js +1 -0
- package/dist/es/card/CardTabs.js +1 -0
- package/dist/es/card/CardTitle.js +1 -0
- package/dist/es/chart/Fullscreen.js +1 -0
- package/dist/es/chart/index.js +1 -0
- package/dist/es/chart/palette.js +1 -0
- package/dist/es/checkbox/index.js +1 -0
- package/dist/es/code-input/index.js +1 -0
- package/dist/es/color-input/index.js +1 -0
- package/dist/es/coming-soon/index.js +1 -0
- package/dist/es/context/FormDefaultsContext.js +1 -0
- package/dist/es/context/ITDContext.js +1 -0
- package/dist/es/context/ITDThemeProvider.js +1 -0
- package/dist/es/context/PortalDocumentContext.js +1 -0
- package/dist/es/context-menu/ContextMenu.js +1 -0
- package/dist/es/context-menu/ContextMenuTrigger.js +1 -0
- package/dist/es/cropper/index.js +1 -0
- package/dist/es/data/phones.json.js +1 -0
- package/dist/es/datepicker/index.js +1 -0
- package/dist/es/dialog/Dialog.js +1 -0
- package/dist/es/dropdown-menu/CheckIcon.js +1 -0
- package/dist/es/dropdown-menu/DropdownMenu.js +1 -0
- package/dist/es/dropdown-menu/DropdownMenuCheckboxItem.js +1 -0
- package/dist/es/dropdown-menu/DropdownMenuContent.js +1 -0
- package/dist/es/dropdown-menu/DropdownMenuItem.js +1 -0
- package/dist/es/dropdown-menu/DropdownMenuLabel.js +1 -0
- package/dist/es/dropdown-menu/DropdownMenuRadioGroup.js +1 -0
- package/dist/es/dropdown-menu/DropdownMenuRadioItem.js +1 -0
- package/dist/es/dropdown-menu/DropdownMenuSeparator.js +1 -0
- package/dist/es/dropdown-menu/DropdownMenuSub.js +1 -0
- package/dist/es/dropdown-menu/DropdownMenuSubContent.js +1 -0
- package/dist/es/dropdown-menu/DropdownMenuSubTrigger.js +1 -0
- package/dist/es/dropdown-menu/DropdownMenuTrigger.js +1 -0
- package/dist/es/dropdown-menu/MenuItemContext.js +1 -0
- package/dist/es/dropdown-menu/processChildren.js +1 -0
- package/dist/es/dropdown-menu/useMenuItemChrome.js +1 -0
- package/dist/es/dropdown-menu/useMenuKeyboard.js +1 -0
- package/dist/es/dropdown-menu/usePointerGraceArea.js +1 -0
- package/dist/es/dropdown-menu/useSubMenuRegistry.js +1 -0
- package/dist/es/enums/enum.js +1 -0
- package/dist/es/field/index.js +1 -0
- package/dist/es/flex/index.js +1 -0
- package/dist/es/floating/Arrow.js +1 -0
- package/dist/es/floating/FloatingContent.js +1 -0
- package/dist/es/floating/createFloatingTrigger.js +1 -0
- package/dist/es/form/context/FormContext.js +1 -0
- package/dist/es/form/context/FormRegistry.js +1 -0
- package/dist/es/form/context/FormStore.js +1 -0
- package/dist/es/form/control/Control.js +1 -0
- package/dist/es/form/group/Group.js +1 -0
- package/dist/es/form/index.js +1 -0
- package/dist/es/form/item/Item.js +1 -0
- package/dist/es/form/validation/TCIdentity.js +1 -0
- package/dist/es/form/validation/Validator.js +1 -0
- package/dist/es/form/wrapper/FormWrapper.js +1 -0
- package/dist/es/helpers/array/ChunkArray.js +1 -0
- package/dist/es/helpers/aspectratio/DetermineNewHeight.js +1 -0
- package/dist/es/helpers/aspectratio/DetermineNewWidth.js +1 -0
- package/dist/es/helpers/base64/Base64Decode.js +1 -0
- package/dist/es/helpers/base64/Base64Encode.js +1 -0
- package/dist/es/helpers/binary/FormatBytes.js +1 -0
- package/dist/es/helpers/binary/GetExtensionByMimeType.js +1 -0
- package/dist/es/helpers/binary/GetTypeByFileType.js +1 -0
- package/dist/es/helpers/checker/CheckFileURL.js +1 -0
- package/dist/es/helpers/checker/FileChecker.js +1 -0
- package/dist/es/helpers/classname/GetClassNameByPlatform.js +1 -0
- package/dist/es/helpers/config/defineITDConfig.js +1 -0
- package/dist/es/helpers/country/GetCountryCodeByCurrencyCode.js +1 -0
- package/dist/es/helpers/country/GetCountryCodeByLanguage.js +1 -0
- package/dist/es/helpers/css/FindSelector.js +1 -0
- package/dist/es/helpers/currency/ConvertCurrency.js +1 -0
- package/dist/es/helpers/currency/GetByCurrency.js +1 -0
- package/dist/es/helpers/currency/GetCurrencyFormat.js +1 -0
- package/dist/es/helpers/currency/GetCurrencySymbol.js +1 -0
- package/dist/es/helpers/currency/GetDecimalByCurrency.js +1 -0
- package/dist/es/helpers/datetime/FormatDate.js +1 -0
- package/dist/es/helpers/datetime/FormatDateTime.js +1 -0
- package/dist/es/helpers/datetime/FormatSimpleDate.js +1 -0
- package/dist/es/helpers/datetime/FormatSimpleDateTime.js +1 -0
- package/dist/es/helpers/datetime/FormatTime.js +1 -0
- package/dist/es/helpers/datetime/dayjsSetup.js +1 -0
- package/dist/es/helpers/device/touchDevice.js +1 -0
- package/dist/es/helpers/format/ToKebabCase.js +1 -0
- package/dist/es/helpers/image/SVGUrlToPNGDataUrl.js +1 -0
- package/dist/es/helpers/json/IsValidJSON.js +1 -0
- package/dist/es/helpers/math/AddZero.js +1 -0
- package/dist/es/helpers/phone/index.js +1 -0
- package/dist/es/helpers/phone/usePhoneCountry.js +1 -0
- package/dist/es/helpers/platform/index.js +1 -0
- package/dist/es/helpers/promise/Wait.js +1 -0
- package/dist/es/helpers/remover/RemoveUnits.js +1 -0
- package/dist/es/helpers/string/UniUpperCase.js +1 -0
- package/dist/es/helpers/svg/SVGLoader.js +1 -0
- package/dist/es/helpers/theme/AddDefaultThemeStyle.js +1 -0
- package/dist/es/helpers/theme/Color.js +1 -0
- package/dist/es/helpers/theme/GenerateColorScale.js +1 -0
- package/dist/es/helpers/theme/colorOps.js +1 -0
- package/dist/es/helpers/theme/contrast.js +1 -0
- package/dist/es/helpers/theme/createTheme.js +1 -0
- package/dist/es/helpers/theme/cssVariables.js +1 -0
- package/dist/es/helpers/theme/dark.js +1 -0
- package/dist/es/helpers/theme/exampleSitePreset.js +1 -0
- package/dist/es/helpers/theme/importShadcnTheme.js +1 -0
- package/dist/es/helpers/theme/light.js +1 -0
- package/dist/es/helpers/theme/presets.js +1 -0
- package/dist/es/helpers/theme/shadowScale.js +1 -0
- package/dist/es/helpers/theme/sitePreset.js +1 -0
- package/dist/es/helpers/theme/tokenSet.js +1 -0
- package/dist/es/helpers/unit/AddDefaultUnit.js +1 -0
- package/dist/es/helpers/unit/cssVars.js +1 -0
- package/dist/es/hooks/useAddExternalCSS.js +1 -0
- package/dist/es/hooks/useAvoidCollision.js +1 -0
- package/dist/es/hooks/useComponentSize.js +1 -0
- package/dist/es/hooks/useConnectionStatus.js +1 -0
- package/dist/es/hooks/useConstructor.js +1 -0
- package/dist/es/hooks/useContextBridge.js +1 -0
- package/dist/es/hooks/useCoreFetch.js +1 -0
- package/dist/es/hooks/useFloatingPosition.js +1 -0
- package/dist/es/hooks/useFloatingTrigger.js +1 -0
- package/dist/es/hooks/useFocusTrap.js +1 -0
- package/dist/es/hooks/useKeyboardShortcut.js +1 -0
- package/dist/es/hooks/useLoadMoreSentinel.js +1 -0
- package/dist/es/hooks/useMediaQuery.js +1 -0
- package/dist/es/hooks/useMultiQuery.js +1 -0
- package/dist/es/hooks/useNaturalRatio.js +1 -0
- package/dist/es/hooks/useOnClickOutside.js +1 -0
- package/dist/es/hooks/useOnESCKeyDown.js +1 -0
- package/dist/es/hooks/useOnResize.js +1 -0
- package/dist/es/hooks/useOrientation.js +1 -0
- package/dist/es/hooks/useReCaptcha.js +1 -0
- package/dist/es/hooks/useRealm.js +1 -0
- package/dist/es/hooks/useSingleQuery.js +1 -0
- package/dist/es/hovercard/HoverCard.js +1 -0
- package/dist/es/hovercard/HoverCardContent.js +1 -0
- package/dist/es/hovercard/HoverCardTrigger.js +1 -0
- package/dist/es/hovercard/hoverCardContext.js +1 -0
- package/dist/es/html/header/H1.js +1 -0
- package/dist/es/html/header/H2.js +1 -0
- package/dist/es/html/header/H3.js +1 -0
- package/dist/es/html/header/H4.js +1 -0
- package/dist/es/icons/Arrow.js +1 -0
- package/dist/es/icons/BackToTop.js +1 -0
- package/dist/es/icons/Checkmark.js +1 -0
- package/dist/es/icons/FileDocument.js +1 -0
- package/dist/es/icons/FileExcel.js +1 -0
- package/dist/es/icons/FilePdf.js +1 -0
- package/dist/es/icons/InlineSelectArrow.js +1 -0
- package/dist/es/icons/Lock.js +1 -0
- package/dist/es/icons/NoData.js +1 -0
- package/dist/es/icons/Picture.js +1 -0
- package/dist/es/icons/Trash.js +1 -0
- package/dist/es/icons/Upload.js +1 -0
- package/dist/es/icons/ZoomIn.js +1 -0
- package/dist/es/icons/ZoomOut.js +1 -0
- package/dist/es/image/index.js +1 -0
- package/dist/es/index.js +1 -0
- package/dist/es/input/index.js +1 -0
- package/dist/es/label/index.js +1 -0
- package/dist/es/locale/useITDLocale.js +1 -0
- package/dist/es/locales/en/calendar.json.js +1 -0
- package/dist/es/locales/en/itd.json.js +1 -0
- package/dist/es/locales/tr/calendar.json.js +1 -0
- package/dist/es/locales/tr/itd.json.js +1 -0
- package/dist/es/logger/index.js +1 -0
- package/dist/es/modal/container/ModalContainer.js +1 -0
- package/dist/es/modal/context/ModalContext.js +1 -0
- package/dist/es/modal/index.js +1 -0
- package/dist/es/modal/modal/Modal.js +1 -0
- package/dist/es/modal/useModalContent.js +1 -0
- package/dist/es/package.json +3 -0
- package/dist/es/page/BlockBoundary.js +1 -0
- package/dist/es/page/background.js +1 -0
- package/dist/es/page/blocks.js +1 -0
- package/dist/es/page/blocks.query.js +1 -0
- package/dist/es/page/checks.js +1 -0
- package/dist/es/page/context.js +1 -0
- package/dist/es/page/customCode.js +1 -0
- package/dist/es/page/editor/BlockForm.js +1 -0
- package/dist/es/page/editor/BlockPreview.js +1 -0
- package/dist/es/page/editor/CodeEditor.js +1 -0
- package/dist/es/page/editor/dropIndex.js +1 -0
- package/dist/es/page/editor/protocol.js +1 -0
- package/dist/es/page/editor/theme.js +1 -0
- package/dist/es/page/editor/useEditorBridge.js +1 -0
- package/dist/es/page/fields.js +1 -0
- package/dist/es/page/index.js +1 -0
- package/dist/es/page/layouts.js +1 -0
- package/dist/es/page/pageTypes.js +1 -0
- package/dist/es/page/sample.js +1 -0
- package/dist/es/page/settle.js +1 -0
- package/dist/es/page/types.js +1 -0
- package/dist/es/popover/Popover.js +1 -0
- package/dist/es/popover/PopoverContent.js +1 -0
- package/dist/es/popover/PopoverTrigger.js +1 -0
- package/dist/es/primitives/Slot.js +1 -0
- package/dist/es/primitives/overlayStack.js +1 -0
- package/dist/es/primitives/scrollLock.js +1 -0
- package/dist/es/progress/index.js +1 -0
- package/dist/es/radio/RadioGroup.js +1 -0
- package/dist/es/radio/RadioGroupContext.js +1 -0
- package/dist/es/radio/RadioGroupItem.js +1 -0
- package/dist/es/rangepicker/index.js +1 -0
- package/dist/es/result/index.js +1 -0
- package/dist/es/router/BlockLink.js +1 -0
- package/dist/es/router/ITDLink.js +1 -0
- package/dist/es/router/context.js +1 -0
- package/dist/es/router/hooks.js +1 -0
- package/dist/es/router/matchActive.js +1 -0
- package/dist/es/select/SelectGroup.js +1 -0
- package/dist/es/select/SelectItem.js +1 -0
- package/dist/es/select/SelectLabel.js +1 -0
- package/dist/es/select/SelectSeparator.js +1 -0
- package/dist/es/select/dropdown/Dropdown.js +1 -0
- package/dist/es/select/index.js +1 -0
- package/dist/es/select/option/Option.js +1 -0
- package/dist/es/select/selector/Selector.js +1 -0
- package/dist/es/select/selector/selectorinput/SelectorInput.js +1 -0
- package/dist/es/separator/index.js +1 -0
- package/dist/es/skeleton/index.js +1 -0
- package/dist/es/spin/index.js +1 -0
- package/dist/es/stat-card/index.js +1 -0
- package/dist/es/switch/index.js +1 -0
- package/dist/es/table/index.js +1 -0
- package/dist/es/table/paths.js +1 -0
- package/dist/es/table/primitives.js +1 -0
- package/dist/es/table/sort.js +1 -0
- package/dist/es/tabs/Tabs.js +1 -0
- package/dist/es/tabs/TabsContent.js +1 -0
- package/dist/es/tabs/TabsContext.js +1 -0
- package/dist/es/tabs/TabsList.js +1 -0
- package/dist/es/tabs/TabsTrigger.js +1 -0
- package/dist/es/textarea/index.js +1 -0
- package/dist/es/tinyscrollbar/index.js +1 -0
- package/dist/es/toast/index.js +1 -0
- package/dist/es/toggle-group/index.js +1 -0
- package/dist/es/tooltip/Tooltip.js +1 -0
- package/dist/es/tooltip/TooltipContent.js +1 -0
- package/dist/es/tooltip/TooltipTrigger.js +1 -0
- package/dist/es/tooltip/tooltipContext.js +1 -0
- package/dist/es/types/InputProps.js +1 -0
- package/dist/es/upload/index.js +1 -0
- package/dist/es/utils/CommonStyledComponents.js +1 -0
- package/dist/es/utils/ErrorAnnouncement.js +1 -0
- package/dist/es/utils/GetButtonSizeSlug.js +1 -0
- package/dist/es/utils/GetSizeBySizeSlug.js +1 -0
- package/dist/es/utils/GetSizeSlugBySize.js +1 -0
- package/dist/es/utils/InlineSVGCached.js +1 -0
- package/dist/es/utils/cn.js +1 -0
- package/dist/es/utils/focusModality.js +1 -0
- package/dist/global.css +464 -96
- package/dist/index.d.ts +10852 -1589
- package/dist/locales/calendar.json +12 -15
- package/dist/locales/en/calendar.json +12 -15
- package/dist/locales/en/itd.json +85 -27
- package/dist/locales/itd.json +86 -29
- package/dist/locales/tr/calendar.json +12 -15
- package/dist/locales/tr/itd.json +86 -29
- package/dist/types/blocks/auth-complete/index.d.ts +2 -0
- package/dist/types/blocks/auth-page/index.d.ts +2 -0
- package/dist/types/blocks/banner/index.d.ts +2 -0
- package/dist/types/blocks/box-title/index.d.ts +2 -0
- package/dist/types/blocks/casino-featured/index.d.ts +2 -0
- package/dist/types/blocks/default-avatar/index.d.ts +1 -0
- package/dist/types/blocks/featured-games/index.d.ts +2 -0
- package/dist/types/blocks/filter-tabs/index.d.ts +2 -0
- package/dist/types/blocks/footer/index.d.ts +2 -0
- package/dist/types/blocks/game-box/index.d.ts +2 -0
- package/dist/types/blocks/game-carousel/index.d.ts +2 -0
- package/dist/types/blocks/game-categories/index.d.ts +2 -0
- package/dist/types/blocks/game-filter/index.d.ts +2 -0
- package/dist/types/blocks/game-navigator/index.d.ts +2 -0
- package/dist/types/blocks/game-providers/index.d.ts +2 -0
- package/dist/types/blocks/game-search/index.d.ts +2 -0
- package/dist/types/blocks/game-shell/index.d.ts +2 -0
- package/dist/types/blocks/games-grid/index.d.ts +2 -0
- package/dist/types/blocks/header/index.d.ts +2 -0
- package/dist/types/blocks/help/index.d.ts +2 -0
- package/dist/types/blocks/last-winners/index.d.ts +2 -0
- package/dist/types/blocks/layout-boxes/index.d.ts +2 -0
- package/dist/types/blocks/login/index.d.ts +2 -0
- package/dist/types/blocks/mega-menu/index.d.ts +2 -0
- package/dist/types/blocks/min-width-gate/index.d.ts +2 -0
- package/dist/types/blocks/mobile-bottom-nav/index.d.ts +2 -0
- package/dist/types/blocks/multiple-jackpots/index.d.ts +2 -0
- package/dist/types/blocks/notifications/index.d.ts +2 -0
- package/dist/types/blocks/post-viewer/index.d.ts +2 -0
- package/dist/types/blocks/promotions-grid/index.d.ts +2 -0
- package/dist/types/blocks/raffle/index.d.ts +2 -0
- package/dist/types/blocks/signup/index.d.ts +2 -0
- package/dist/types/blocks/slider/index.d.ts +2 -0
- package/dist/types/blocks/slider-double/index.d.ts +2 -0
- package/dist/types/blocks/spacer/index.d.ts +2 -0
- package/dist/types/blocks/sub-page-header/index.d.ts +2 -0
- package/dist/types/blocks/tournaments/index.d.ts +2 -0
- package/dist/types/blocks/user-hub/index.d.ts +2 -0
- package/package.json +136 -113
- package/dist/accordion/index.d.ts +0 -14
- package/dist/accordion/item/Item.d.ts +0 -3
- package/dist/accordion/item/styled.d.ts +0 -6
- package/dist/accordion/submenu/SubMenu.d.ts +0 -2
- package/dist/accordion/submenu/styled.d.ts +0 -15
- package/dist/alert/alert.style.error.d.ts +0 -4
- package/dist/alert/alert.style.info.d.ts +0 -4
- package/dist/alert/alert.style.success.d.ts +0 -4
- package/dist/alert/alert.style.warning.d.ts +0 -4
- package/dist/alert/index.d.ts +0 -6
- package/dist/alert/styled.d.ts +0 -8
- package/dist/alink/index.d.ts +0 -10
- package/dist/alink/styled.d.ts +0 -2
- package/dist/back-top/index.d.ts +0 -1
- package/dist/back-top/styled.d.ts +0 -5
- package/dist/button/button.style.SVG.d.ts +0 -4
- package/dist/button/button.style.circle.d.ts +0 -4
- package/dist/button/button.style.default.d.ts +0 -4
- package/dist/button/button.style.filled.d.ts +0 -4
- package/dist/button/button.style.ghost.d.ts +0 -4
- package/dist/button/button.style.icon.d.ts +0 -5
- package/dist/button/button.style.link.d.ts +0 -4
- package/dist/button/button.style.outline.d.ts +0 -4
- package/dist/button/button.style.size.d.ts +0 -4
- package/dist/button/button.style.solid.d.ts +0 -4
- package/dist/button/button.style.strecth.d.ts +0 -4
- package/dist/button/index.d.ts +0 -3
- package/dist/button/styled.d.ts +0 -12
- package/dist/calendar/dates.d.ts +0 -2
- package/dist/calendar/day/Day.d.ts +0 -5
- package/dist/calendar/day/styled.d.ts +0 -7
- package/dist/calendar/header/Header.d.ts +0 -1
- package/dist/calendar/header/styled.d.ts +0 -7
- package/dist/calendar/index.d.ts +0 -10
- package/dist/calendar/styled.d.ts +0 -7
- package/dist/card/index.d.ts +0 -3
- package/dist/card/styles.d.ts +0 -15
- package/dist/checkbox/group/index.d.ts +0 -3
- package/dist/checkbox/group/styled.d.ts +0 -2
- package/dist/checkbox/index.d.ts +0 -10
- package/dist/checkbox/styled.d.ts +0 -9
- package/dist/context/ITDContext.d.ts +0 -22
- package/dist/context/styled.d.ts +0 -2
- package/dist/cropper/index.d.ts +0 -44
- package/dist/datepicker/index.d.ts +0 -3
- package/dist/datepicker/styled.d.ts +0 -9
- package/dist/enums/enum.d.ts +0 -79
- package/dist/flex/index.d.ts +0 -3
- package/dist/flex/styled.d.ts +0 -10
- package/dist/form/context/FormContext.d.ts +0 -34
- package/dist/form/context/FormStore.d.ts +0 -11
- package/dist/form/control/Control.d.ts +0 -7
- package/dist/form/control/styled.d.ts +0 -4
- package/dist/form/group/Group.d.ts +0 -17
- package/dist/form/group/styled.d.ts +0 -5
- package/dist/form/index.d.ts +0 -20
- package/dist/form/item/Item.d.ts +0 -18
- package/dist/form/validation/TCIdentity.d.ts +0 -1
- package/dist/form/validation/Validator.d.ts +0 -20
- package/dist/form/wrapper/FormWrapper.d.ts +0 -14
- package/dist/helpers/array/ChunkArray.d.ts +0 -7
- package/dist/helpers/aspectratio/DetermineNewHeight.d.ts +0 -1
- package/dist/helpers/aspectratio/DetermineNewWidth.d.ts +0 -1
- package/dist/helpers/base64/Base64Decode.d.ts +0 -1
- package/dist/helpers/base64/Base64Encode.d.ts +0 -1
- package/dist/helpers/binary/FormatBytes.d.ts +0 -1
- package/dist/helpers/binary/GetTypeByFileType.d.ts +0 -2
- package/dist/helpers/checker/CheckFileURL.d.ts +0 -1
- package/dist/helpers/checker/FileChecker.d.ts +0 -7
- package/dist/helpers/country/GetCountryCodeByCurrencyCode.d.ts +0 -1
- package/dist/helpers/country/GetCountryCodeByLanguage.d.ts +0 -1
- package/dist/helpers/css/FindSelector.d.ts +0 -1
- package/dist/helpers/currency/ConvertCurrency.d.ts +0 -1
- package/dist/helpers/currency/GetByCurrency.d.ts +0 -1
- package/dist/helpers/currency/GetCurrencyFormat.d.ts +0 -1
- package/dist/helpers/currency/GetCurrencySymbol.d.ts +0 -1
- package/dist/helpers/currency/GetDecimalByCurrency.d.ts +0 -1
- package/dist/helpers/datetime/FormatDate.d.ts +0 -1
- package/dist/helpers/datetime/FormatDateTime.d.ts +0 -1
- package/dist/helpers/datetime/FormatSimpleDate.d.ts +0 -1
- package/dist/helpers/datetime/FormatSimpleDateTime.d.ts +0 -1
- package/dist/helpers/datetime/FormatTime.d.ts +0 -2
- package/dist/helpers/datetime/dayjsSetup.d.ts +0 -2
- package/dist/helpers/format/ToKebabCase.d.ts +0 -27
- package/dist/helpers/index.d.ts +0 -32
- package/dist/helpers/json/IsValidJSON.d.ts +0 -1
- package/dist/helpers/math/AddZero.d.ts +0 -1
- package/dist/helpers/promise/Wait.d.ts +0 -1
- package/dist/helpers/remover/RemoveUnits.d.ts +0 -1
- package/dist/helpers/string/UniUpperCase.d.ts +0 -6
- package/dist/helpers/svg/SVGLoader.d.ts +0 -2
- package/dist/helpers/svg/styles.d.ts +0 -5
- package/dist/helpers/theme/AddDefaultThemeStyle.d.ts +0 -4
- package/dist/helpers/theme/UpdateThemeStyle.d.ts +0 -5
- package/dist/helpers/unit/AddDefaultUnit.d.ts +0 -1
- package/dist/helpers/url/ValidURL.d.ts +0 -1
- package/dist/hooks/index.d.ts +0 -15
- package/dist/hooks/useAddExternalCSS.d.ts +0 -14
- package/dist/hooks/useAvoidCollision.d.ts +0 -16
- package/dist/hooks/useComponentSize.d.ts +0 -6
- package/dist/hooks/useConnectionStatus.d.ts +0 -11
- package/dist/hooks/useConstructor.d.ts +0 -11
- package/dist/hooks/useContextBridge.d.ts +0 -7
- package/dist/hooks/useCoreFetch.d.ts +0 -37
- package/dist/hooks/useKeyboardShortcut.d.ts +0 -6
- package/dist/hooks/useMultiQuery.d.ts +0 -7
- package/dist/hooks/useOnClickOutside.d.ts +0 -12
- package/dist/hooks/useOnESCKeyDown.d.ts +0 -10
- package/dist/hooks/useOnResize.d.ts +0 -10
- package/dist/hooks/useOrientation.d.ts +0 -3
- package/dist/hooks/useReCaptcha.d.ts +0 -7
- package/dist/hooks/useSingleQuery.d.ts +0 -18
- package/dist/html/header/H1.d.ts +0 -5
- package/dist/html/header/H2.d.ts +0 -5
- package/dist/html/header/H3.d.ts +0 -5
- package/dist/html/header/H4.d.ts +0 -5
- package/dist/html/header/index.d.ts +0 -4
- package/dist/html/header/styled.d.ts +0 -5
- package/dist/icons/Arrow.d.ts +0 -6
- package/dist/icons/BackToTop.d.ts +0 -6
- package/dist/icons/Checkmark.d.ts +0 -6
- package/dist/icons/FileDocument.d.ts +0 -6
- package/dist/icons/FileExcel.d.ts +0 -5
- package/dist/icons/FilePdf.d.ts +0 -5
- package/dist/icons/InlineSelectArrow.d.ts +0 -6
- package/dist/icons/Lock.d.ts +0 -6
- package/dist/icons/NoData.d.ts +0 -7
- package/dist/icons/Picture.d.ts +0 -6
- package/dist/icons/Remove.d.ts +0 -7
- package/dist/icons/Trash.d.ts +0 -6
- package/dist/icons/Upload.d.ts +0 -6
- package/dist/icons/ZoomIn.d.ts +0 -6
- package/dist/icons/ZoomOut.d.ts +0 -6
- package/dist/icons/index.d.ts +0 -14
- package/dist/image/index.d.ts +0 -12
- package/dist/image/styled.d.ts +0 -4
- package/dist/index.cjs.js +0 -5612
- package/dist/index.d.mts +0 -716
- package/dist/index.esm.js +0 -5612
- package/dist/input/index.d.ts +0 -8
- package/dist/input/styled.d.ts +0 -29
- package/dist/link/index.d.ts +0 -11
- package/dist/modal/container/ModalContainer.d.ts +0 -24
- package/dist/modal/container/styled.d.ts +0 -5
- package/dist/modal/context/ModalContext.d.ts +0 -68
- package/dist/modal/index.d.ts +0 -29
- package/dist/modal/modal/Modal.d.ts +0 -16
- package/dist/modal/modal/styled.d.ts +0 -22
- package/dist/notification/context/NotificationsContext.d.ts +0 -7
- package/dist/notification/index.d.ts +0 -14
- package/dist/progress/index.d.ts +0 -2
- package/dist/progress/styled.d.ts +0 -6
- package/dist/radio/button/RadioButton.d.ts +0 -2
- package/dist/radio/button/styled.d.ts +0 -12
- package/dist/radio/group/Group.d.ts +0 -5
- package/dist/radio/group/styled.d.ts +0 -9
- package/dist/radio/index.d.ts +0 -9
- package/dist/result/index.d.ts +0 -6
- package/dist/result/styled.d.ts +0 -16
- package/dist/select/index.d.ts +0 -9
- package/dist/select/menu/Menu.d.ts +0 -14
- package/dist/select/menu/styled.d.ts +0 -8
- package/dist/select/option/Option.d.ts +0 -17
- package/dist/select/option/styled.d.ts +0 -5
- package/dist/select/style.settings.d.ts +0 -31
- package/dist/select/styled.d.ts +0 -7
- package/dist/select/toggle/Toggle.d.ts +0 -3
- package/dist/select/toggle/label/floating/FloatingLabel.d.ts +0 -12
- package/dist/select/toggle/label/floating/styled.d.ts +0 -8
- package/dist/select/toggle/label/single/SingleLabel.d.ts +0 -18
- package/dist/select/toggle/label/single/styled.d.ts +0 -2
- package/dist/select/toggle/styled.d.ts +0 -24
- package/dist/spin/index.d.ts +0 -9
- package/dist/spin/styled.d.ts +0 -10
- package/dist/status/index.d.ts +0 -2
- package/dist/status/styled.d.ts +0 -6
- package/dist/stories/Accordion.d.ts +0 -6
- package/dist/stories/Accordion.stories.d.ts +0 -19
- package/dist/stories/Alert.d.ts +0 -2
- package/dist/stories/Alert.stories.d.ts +0 -20
- package/dist/stories/Button.d.ts +0 -3
- package/dist/stories/Button.stories.d.ts +0 -26
- package/dist/stories/ButtonIcon.d.ts +0 -2
- package/dist/stories/Card.d.ts +0 -2
- package/dist/stories/Card.stories.d.ts +0 -18
- package/dist/stories/Checkbox.d.ts +0 -2
- package/dist/stories/Checkbox.stories.d.ts +0 -20
- package/dist/stories/CheckboxGroup.d.ts +0 -2
- package/dist/stories/CheckboxGroup.stories.d.ts +0 -17
- package/dist/stories/CheckboxGroupControl.d.ts +0 -2
- package/dist/stories/CheckboxGroupControl.stories.d.ts +0 -17
- package/dist/stories/DatePicker.d.ts +0 -3
- package/dist/stories/DatePicker.stories.d.ts +0 -19
- package/dist/stories/Form.d.ts +0 -2
- package/dist/stories/Form.stories.d.ts +0 -19
- package/dist/stories/Header.d.ts +0 -3
- package/dist/stories/Header.stories.d.ts +0 -18
- package/dist/stories/Input.d.ts +0 -3
- package/dist/stories/Input.stories.d.ts +0 -19
- package/dist/stories/ModalManager.d.ts +0 -3
- package/dist/stories/ModalManager.stories.d.ts +0 -21
- package/dist/stories/NoDataIcon.d.ts +0 -2
- package/dist/stories/Page.d.ts +0 -3
- package/dist/stories/Page.stories.d.ts +0 -12
- package/dist/stories/Progress.d.ts +0 -2
- package/dist/stories/Progress.stories.d.ts +0 -20
- package/dist/stories/RadioGroup.d.ts +0 -2
- package/dist/stories/RadioGroup.stories.d.ts +0 -14
- package/dist/stories/Result.d.ts +0 -2
- package/dist/stories/Result.stories.d.ts +0 -16
- package/dist/stories/Select.d.ts +0 -3
- package/dist/stories/Select.stories.d.ts +0 -24
- package/dist/stories/Status.d.ts +0 -2
- package/dist/stories/Status.stories.d.ts +0 -49
- package/dist/stories/Switch.d.ts +0 -2
- package/dist/stories/Switch.stories.d.ts +0 -23
- package/dist/stories/Table.d.ts +0 -2
- package/dist/stories/Table.stories.d.ts +0 -29
- package/dist/stories/Tabs.d.ts +0 -2
- package/dist/stories/Tabs.stories.d.ts +0 -24
- package/dist/stories/TextArea.d.ts +0 -3
- package/dist/stories/TextArea.stories.d.ts +0 -18
- package/dist/stories/Upload.d.ts +0 -2
- package/dist/stories/Upload.stories.d.ts +0 -24
- package/dist/stories/root/index.d.ts +0 -6
- package/dist/stories/select.styled.d.ts +0 -2
- package/dist/switch/index.d.ts +0 -3
- package/dist/switch/styled.d.ts +0 -5
- package/dist/table/index.d.ts +0 -9
- package/dist/table/styled.d.ts +0 -13
- package/dist/tabs/index.d.ts +0 -3
- package/dist/tabs/styles.d.ts +0 -13
- package/dist/textarea/index.d.ts +0 -3
- package/dist/textarea/styled.d.ts +0 -8
- package/dist/tinyscrollbar/index.d.ts +0 -9
- package/dist/tinyscrollbar/scroll.styled.d.ts +0 -2
- package/dist/tinyscrollbar/styled.d.ts +0 -6
- package/dist/types/AccordionItemProps.d.ts +0 -9
- package/dist/types/AccordionProps.d.ts +0 -12
- package/dist/types/AccordionSubMenuProps.d.ts +0 -18
- package/dist/types/AlertProps.d.ts +0 -13
- package/dist/types/ButtonProps.d.ts +0 -44
- package/dist/types/CalendarProps.d.ts +0 -31
- package/dist/types/CardProps.d.ts +0 -17
- package/dist/types/CheckboxProps.d.ts +0 -41
- package/dist/types/ChildrenProps.d.ts +0 -3
- package/dist/types/DatePickerProps.d.ts +0 -22
- package/dist/types/FlexProps.d.ts +0 -16
- package/dist/types/FormProps.d.ts +0 -51
- package/dist/types/ITDImperativeFuncProps.d.ts +0 -11
- package/dist/types/ITDProps.d.ts +0 -4
- package/dist/types/InputProps.d.ts +0 -48
- package/dist/types/ModalProps.d.ts +0 -219
- package/dist/types/NotificationsProps.d.ts +0 -9
- package/dist/types/ProgressProps.d.ts +0 -8
- package/dist/types/QueryValueProps.d.ts +0 -1
- package/dist/types/RadioProps.d.ts +0 -38
- package/dist/types/ResultProps.d.ts +0 -13
- package/dist/types/SelectProps.d.ts +0 -64
- package/dist/types/SingleQueryProps.d.ts +0 -7
- package/dist/types/StatusProps.d.ts +0 -11
- package/dist/types/SwitchProps.d.ts +0 -10
- package/dist/types/TableProps.d.ts +0 -36
- package/dist/types/TabsProps.d.ts +0 -16
- package/dist/types/TextAreaProps.d.ts +0 -28
- package/dist/types/UploadProps.d.ts +0 -88
- package/dist/upload/index.d.ts +0 -13
- package/dist/upload/styled.d.ts +0 -46
- package/dist/utils/GetIconSizeBySize.d.ts +0 -2
- package/dist/utils/GetSizeBySizeSlug.d.ts +0 -3
- package/dist/utils/GetSizeSlugBySize.d.ts +0 -3
- package/dist/utils/InlineSVGCached.d.ts +0 -11
- package/dist/utils/index.d.ts +0 -4
package/README.md
CHANGED
|
@@ -1,37 +1,279 @@
|
|
|
1
|
-
#
|
|
1
|
+
# ITD Design System
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
> Modern, erişilebilir ve kompozisyona dayalı React bileşen kütüphanesi
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
[](https://www.npmjs.com/package/@inntechcorp/it-design)
|
|
6
|
+
[](./LICENSE)
|
|
7
|
+
[](https://www.w3.org/WAI/WCAG21/quickref/)
|
|
7
8
|
|
|
8
|
-
|
|
9
|
+
**ITD Design System**, Inn.Tech sitelerinin ve panellerinin arkasındaki üretim UI
|
|
10
|
+
kütüphanesidir: iki tohumdan türeyen OKLCH tema motoru (light/dark), shadcn tarzı
|
|
11
|
+
kompozisyon, WCAG 2.1 AA erişilebilirlik, iframe/panel gömmelerinde doğru çalışan
|
|
12
|
+
realm-aware overlay'ler, site blokları (slider, oyun vitrinleri, footer, user hub,
|
|
13
|
+
sayfa editörü) ve panel bileşenleri (StatCard, Table, Charts).
|
|
9
14
|
|
|
10
|
-
|
|
15
|
+
v3'ten mi geliyorsunuz? [MIGRATION.md](./MIGRATION.md) ve aşağıdaki
|
|
16
|
+
"V4'e Geçiş Süreci" bölümüne bakın.
|
|
11
17
|
|
|
12
|
-
|
|
13
|
-
`[!] (plugin styles) Error: You must provide the URL of lib/mappings.wasm by calling SourceMapConsumer.initialize({ 'lib/mappings.wasm': ... }) before using SourceMapConsumer`
|
|
14
|
-
`lib/multiselect/style.module.scss`
|
|
18
|
+
## Sürümler
|
|
15
19
|
|
|
16
|
-
|
|
17
|
-
|
|
20
|
+
| npm tag | Sürüm | Kim için |
|
|
21
|
+
| -------- | ------------- | --------------------------------------------------- |
|
|
22
|
+
| `latest` | `3.1.x` | Mevcut v3 siteleri (bakım modunda) |
|
|
23
|
+
| `next` | `4.0.0-beta.x`| Aktif geliştirme hattı: tüm yeni bileşenler burada |
|
|
18
24
|
|
|
19
|
-
|
|
25
|
+
İki build arasında ne değiştiğini [CHANGELOG.md](./CHANGELOG.md) anlatır
|
|
26
|
+
(her sürümde Breaking / Added / Fixed olarak).
|
|
20
27
|
|
|
21
|
-
|
|
28
|
+
## Gereksinimler
|
|
22
29
|
|
|
23
|
-
|
|
30
|
+
- **React 19.1+** ve **react-dom 19.1+** (peer dependency)
|
|
31
|
+
- **i18next** ve **react-i18next** (peer dependency; form doğrulama mesajları
|
|
32
|
+
bir kez kaydettiğiniz i18next namespace'inden gelir, bkz. Hızlı Başlangıç 3. adım)
|
|
24
33
|
|
|
25
|
-
|
|
34
|
+
npm 7+ peer dependency'leri kendisi kurar. Yarn 1 kullanıyorsanız elle ekleyin.
|
|
35
|
+
|
|
36
|
+
## Kurulum
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
# v4 beta (onerilen: yeni projeler ve panel)
|
|
40
|
+
npm install @inntechcorp/it-design@next
|
|
41
|
+
|
|
42
|
+
# v3 (mevcut siteler)
|
|
43
|
+
npm install @inntechcorp/it-design
|
|
44
|
+
|
|
45
|
+
# yarn (peer'lari elle ekleyin)
|
|
46
|
+
yarn add @inntechcorp/it-design@next react react-dom i18next react-i18next
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
## Hızlı Başlangıç
|
|
50
|
+
|
|
51
|
+
**1. Stylesheet'i uygulama kökünde bir kez import edin.** Runtime'da stil
|
|
52
|
+
enjeksiyonu yoktur; bu adımı atlarsanız her bileşen stilsiz render olur.
|
|
53
|
+
|
|
54
|
+
```tsx
|
|
55
|
+
import '@inntechcorp/it-design/global.css';
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
**2. Uygulamayı `ITDProvider` ile sarın.** Toast (`Toaster`) ve modal provider'ı
|
|
59
|
+
kendisi mount eder, kendinizinkini eklemeyin.
|
|
60
|
+
|
|
61
|
+
```tsx
|
|
62
|
+
import { ITDProvider } from '@inntechcorp/it-design';
|
|
63
|
+
|
|
64
|
+
function App() {
|
|
65
|
+
return (
|
|
66
|
+
<ITDProvider theme="dark" language="tr" country="tr">
|
|
67
|
+
<YourApp />
|
|
68
|
+
</ITDProvider>
|
|
69
|
+
);
|
|
70
|
+
}
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
**3. Herhangi bir `<Form>` render etmeden önce i18next'i başlatın.** Kütüphane
|
|
74
|
+
locale'lerini sizin kaydetmeniz için export eder:
|
|
75
|
+
|
|
76
|
+
```tsx
|
|
77
|
+
import i18next from 'i18next';
|
|
78
|
+
import { initReactI18next } from 'react-i18next';
|
|
79
|
+
import { locales } from '@inntechcorp/it-design';
|
|
80
|
+
|
|
81
|
+
i18next.use(initReactI18next).init({
|
|
82
|
+
lng: 'tr',
|
|
83
|
+
fallbackLng: 'en',
|
|
84
|
+
resources: locales, // tr + en, namespace'ler: itd, calendar
|
|
85
|
+
ns: ['itd', 'calendar'],
|
|
86
|
+
defaultNS: 'itd',
|
|
87
|
+
interpolation: { escapeValue: false },
|
|
88
|
+
});
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
**4. Bileşen kullanın:**
|
|
92
|
+
|
|
93
|
+
```tsx
|
|
94
|
+
import { Button, Input, Card, CardHeader, CardTitle, CardContent } from '@inntechcorp/it-design';
|
|
95
|
+
|
|
96
|
+
<Card>
|
|
97
|
+
<CardHeader>
|
|
98
|
+
<CardTitle>Merhaba</CardTitle>
|
|
99
|
+
</CardHeader>
|
|
100
|
+
<CardContent>
|
|
101
|
+
<Input placeholder="Bir şeyler yazın..." />
|
|
102
|
+
<Button variant="filled">Kaydet</Button>
|
|
103
|
+
</CardContent>
|
|
104
|
+
</Card>;
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
## Tema
|
|
108
|
+
|
|
109
|
+
Tüm renk sistemi **iki tohumdan** türer: `surfaceBase` (zemin karakteri) ve
|
|
110
|
+
`primaryBase` (marka rengi). ~130 token OKLCH matematiğiyle üretilir ve
|
|
111
|
+
on-color'lar kontrast ölçümünden geçer.
|
|
112
|
+
|
|
113
|
+
```tsx
|
|
114
|
+
<ITDProvider
|
|
115
|
+
theme="dark"
|
|
116
|
+
surfaceBase="oklch(0.44 0.04 260)" // Slate preset'i: lacivert karakter
|
|
117
|
+
primaryBase="oklch(0.62 0.18 250)" // marka mavisi
|
|
118
|
+
>
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
Bilinmesi gerekenler:
|
|
122
|
+
|
|
123
|
+
- **Stok tema her iki modda da nötr gridir.** Renk tonu (slate, midnight, marka
|
|
124
|
+
laciverti) her zaman bilinçli bir seçimdir, kaza değil. Hazır yüzey
|
|
125
|
+
preset'leri: `neutral`, `stone`, `gray`, `slate`, `zinc`, `midnight`.
|
|
126
|
+
- **Site pinleri** `customTheme` ile verilir (görünüm başına kesin değerler,
|
|
127
|
+
`{token}` referansları desteklenir). tweakcn/shadcn temaları
|
|
128
|
+
`importShadcnTheme` ile içeri alınabilir.
|
|
129
|
+
- **Instance-override token kalıbı:** bileşenlerin bir kısmı, tek instance'ı
|
|
130
|
+
tema dokunmadan özelleştirmek için dokümante CSS değişkenleri taşır
|
|
131
|
+
(`--itd-badge-text`, `--itd-stat-card-bg`, `--itd-chart-series-1..4`,
|
|
132
|
+
`--itd-stat-card-info-max-width` gibi). Her bileşenin token listesi kendi
|
|
133
|
+
CSS dosyasının başındadır.
|
|
134
|
+
- Yerleşim kuralları ve karar tablosu için:
|
|
135
|
+
[THEMING.md](./lib/helpers/theme/THEMING.md) (İngilizce).
|
|
136
|
+
|
|
137
|
+
## Yazı Tipleri
|
|
138
|
+
|
|
139
|
+
Varsayılan `--itd-font-sans` yığını **Geist** ile başlar ama paket `@font-face`
|
|
140
|
+
kuralı taşımaz. Geist'i kendiniz yükleyin (örn. `next/font`) veya değişkeni
|
|
141
|
+
override edin; yoksa sessizce sistem fontuna düşersiniz:
|
|
142
|
+
|
|
143
|
+
```css
|
|
144
|
+
:root {
|
|
145
|
+
--itd-font-sans: 'YourFont', ui-sans-serif, system-ui, sans-serif;
|
|
146
|
+
}
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
## Yönlendirme (Routing)
|
|
150
|
+
|
|
151
|
+
**Kütüphane router getirmez.** `<Button href>`, `<ALink>`, link sekmeleri ve
|
|
152
|
+
akordeon gerçek anchor render eder; hiçbir şey yapılandırılmazsa tarayıcı
|
|
153
|
+
navigasyonu çalışır (statik site veya Next.js için kurulum gerekmez).
|
|
26
154
|
|
|
27
|
-
|
|
28
|
-
you may not use this work except in compliance with the License.
|
|
29
|
-
You may obtain a copy of the License in the LICENSE file, or at:
|
|
155
|
+
Kendi router'ınızla gezinmek için ITD'ye bir kez adapter verin:
|
|
30
156
|
|
|
31
|
-
|
|
157
|
+
```tsx
|
|
158
|
+
import { useLocation, useNavigate } from 'react-router-dom'; // veya sizinki
|
|
159
|
+
|
|
160
|
+
function Providers({ children }) {
|
|
161
|
+
// Router'inizin navigasyonda yeniden render ettigi bir bilesenin ICINDE kurun:
|
|
162
|
+
// `location` bir deger ve kimligi reaktivite sinyalidir
|
|
163
|
+
const location = useLocation();
|
|
164
|
+
const navigate = useNavigate();
|
|
165
|
+
const router = useMemo(
|
|
166
|
+
() => ({ location, navigate: (to, o) => navigate(to, o) }),
|
|
167
|
+
[location, navigate]
|
|
168
|
+
);
|
|
169
|
+
|
|
170
|
+
return <ITDProvider router={router}>{children}</ITDProvider>;
|
|
171
|
+
}
|
|
172
|
+
```
|
|
173
|
+
|
|
174
|
+
`href` bir uygulama yolunu render edilecek href'e çevirir (basename, locale
|
|
175
|
+
öneki), `Link` ise navigasyonu framework'ün kendi bileşenine (next/link)
|
|
176
|
+
devretmenizi sağlar. Aynı dikiş doğrudan da kullanılabilir: `useITDLocation`,
|
|
177
|
+
`useITDNavigate`, `useITDSearchParams`, `ITDLink`.
|
|
178
|
+
|
|
179
|
+
## CSS giriş noktaları
|
|
180
|
+
|
|
181
|
+
```tsx
|
|
182
|
+
// Secenek 1: hepsi (onerilen)
|
|
183
|
+
import '@inntechcorp/it-design/global.css';
|
|
184
|
+
|
|
185
|
+
// Secenek 2: a la carte
|
|
186
|
+
import '@inntechcorp/it-design/css/properties.css'; // kayitli custom property'ler
|
|
187
|
+
import '@inntechcorp/it-design/css/reset.css'; // reset katmani
|
|
188
|
+
import '@inntechcorp/it-design/css/base.css'; // tasarim token'lari
|
|
189
|
+
import '@inntechcorp/it-design/css/components.css'; // paylasilan gecis siniflari
|
|
190
|
+
import '@inntechcorp/it-design/css/button.css'; // kullandiginiz her bilesen icin bir dosya
|
|
191
|
+
import '@inntechcorp/it-design/css/vendor.css'; // TinyScrollbar + carousel bloklari icin
|
|
192
|
+
import '@inntechcorp/it-design/css/utilities.css'; // opsiyonel; Tailwind varsa atlayin
|
|
193
|
+
```
|
|
194
|
+
|
|
195
|
+
`components.css` yalnızca paylaşılan geçiş sınıflarını tutar; her bileşenin
|
|
196
|
+
gerçek stilleri kendi dosyasındadır (`button.css`, `input.css`, `select.css`,
|
|
197
|
+
`chart.css`, ...). `global.css` hepsini paketler ve önerilen yoldur. Ayrıntı:
|
|
198
|
+
[Global CSS Kılavuzu](./lib/GLOBAL-CSS-README.md).
|
|
199
|
+
|
|
200
|
+
## Bileşenler
|
|
201
|
+
|
|
202
|
+
- **Yerleşim ve yapı:** `Card`, `Flex`, `Separator`, `Tabs`, `Accordion`
|
|
203
|
+
- **Form:** `Form`, `Field`, `Input`, `TextArea`, `Select`, `Checkbox`,
|
|
204
|
+
`RadioGroup`, `Switch`, `Upload`, `DatePicker`, `RangePicker`, `Calendar`,
|
|
205
|
+
`CodeInput`, `ColorInput`, `Amount`
|
|
206
|
+
- **Geri bildirim:** `Alert`, `Modal` (`useModal`), `Toaster`/`toast`, `Spin`,
|
|
207
|
+
`Progress`, `Skeleton`, `Result`, `Badge`
|
|
208
|
+
- **Overlay:** `Tooltip`, `Popover`, `HoverCard`, `DropdownMenu`,
|
|
209
|
+
`ContextMenu`, `Dialog`, `Sheet`
|
|
210
|
+
- **Veri:** `Table` (sıralama, satır genişletme, loading/empty), `StatCard`
|
|
211
|
+
(panel özet kutusu), **Charts** (`LineChart`: token'lı seri renkleri,
|
|
212
|
+
Amount'lu tooltip, `mobile="expand"` ile mobilde tam ekran görüntüleyici),
|
|
213
|
+
`Avatar`, `Image`, `TinyScrollbar`
|
|
214
|
+
- **Site blokları:** `blocks/` altındaki sayfa bölümleri (slider'lar, oyun
|
|
215
|
+
vitrinleri, header/footer, user hub, turnuvalar, sayfa editörü köprüsü)
|
|
216
|
+
|
|
217
|
+
Dokunmatik cihaz davranışları (`hover` kapıları, StatCard'ın alt-sheet'i,
|
|
218
|
+
chart'ın tam ekran görüntüleyicisi) provider'ın işaretlediği `.itd-touch`
|
|
219
|
+
realm'inden okunur; ekstra kurulum gerekmez.
|
|
220
|
+
|
|
221
|
+
Eksiksiz envanter için: [COMPONENTS.md](./COMPONENTS.md) (İngilizce; export,
|
|
222
|
+
dosya ve tek cümlelik açıklama eşlemesi). Oynamak için: repo'da
|
|
223
|
+
`yarn storybook`.
|
|
224
|
+
|
|
225
|
+
## V4'e Geçiş Süreci
|
|
226
|
+
|
|
227
|
+
Durum: v4 aktif geliştirmede ve **`next` tag'inde** yayınlanıyor; `latest` v3
|
|
228
|
+
hattında sabit. Beta süresince deprecated alias'lar çalışır, stable öncesi
|
|
229
|
+
kaldırılır.
|
|
230
|
+
|
|
231
|
+
Önerilen sıra:
|
|
232
|
+
|
|
233
|
+
1. **Paketi beta'ya çekin:** `npm i @inntechcorp/it-design@next`
|
|
234
|
+
2. **`global.css` import edin** (v4'te zorunlu; runtime stil enjeksiyonu yok).
|
|
235
|
+
3. **[MIGRATION.md](./MIGRATION.md) kırılmalarını uygulayın:** kaldırılan
|
|
236
|
+
bileşenler (Notification, Collapse), kompozisyona geçenler (Tabs, Card,
|
|
237
|
+
Radio), yeniden adlandırılan export'lar, Modal hook API'si.
|
|
238
|
+
4. **Tema tohumlarınızı seçin.** Stok tema nötr gridir; v3 sitenizin renk
|
|
239
|
+
karakterini korumak istiyorsanız `surfaceBase`/`primaryBase` ve gerekiyorsa
|
|
240
|
+
`customTheme` pinlerini verin.
|
|
241
|
+
5. **Sürüm atlarken [CHANGELOG.md](./CHANGELOG.md) okuyun.** Kırılmalar her
|
|
242
|
+
girdinin en üstünde işaretlidir.
|
|
243
|
+
|
|
244
|
+
## Yol Haritası
|
|
245
|
+
|
|
246
|
+
Stable 4.0.0 öncesi planlananlar:
|
|
247
|
+
|
|
248
|
+
- **Pagination** bileşeni
|
|
249
|
+
- **Yeni chart tipleri** (Bar, Area) aynı token paleti üzerinde
|
|
250
|
+
- **Table**: satır seçimi, yapışkan başlık gibi kalan CoreDataTable özellikleri
|
|
251
|
+
- **İkon registry'si**: sitelerin ikon setini tek yerden değiştirebilmesi
|
|
252
|
+
- **ToggleGroup** varyantları (default/solid/outline)
|
|
253
|
+
- Deprecated alias'ların kaldırılması ve stable yayın
|
|
254
|
+
|
|
255
|
+
## Dokümantasyon
|
|
256
|
+
|
|
257
|
+
Paketle gelenler:
|
|
258
|
+
|
|
259
|
+
- [MIGRATION.md](./MIGRATION.md): v3'ten v4'e kırılmalar ve karşılıkları
|
|
260
|
+
- [CHANGELOG.md](./CHANGELOG.md): sürümler arası değişiklikler (İngilizce)
|
|
261
|
+
- [ACCESSIBILITY.md](./ACCESSIBILITY.md): WCAG uyumu, klavye navigasyonu,
|
|
262
|
+
ekran okuyucu desteği
|
|
263
|
+
|
|
264
|
+
Repo'da olanlar:
|
|
265
|
+
|
|
266
|
+
- [COMPONENTS.md](./COMPONENTS.md): bileşen envanteri (İngilizce)
|
|
267
|
+
- [THEMING.md](./lib/helpers/theme/THEMING.md): tema yerleşim kuralları ve
|
|
268
|
+
tüketici tuzakları (İngilizce)
|
|
269
|
+
- [Global CSS Kılavuzu](./lib/GLOBAL-CSS-README.md): modüler CSS, token'lar,
|
|
270
|
+
utility'ler
|
|
271
|
+
- [Site Blocks Contract](./lib/SITE-BLOCKS-CONTRACT.md): blok, site
|
|
272
|
+
entegrasyonu ve panel builder sözleşmesi (İngilizce)
|
|
273
|
+
- Storybook: repo'da `yarn storybook`
|
|
274
|
+
|
|
275
|
+
## Lisans
|
|
276
|
+
|
|
277
|
+
Copyright 2024 Inn.Tech LLC.
|
|
32
278
|
|
|
33
|
-
|
|
34
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
35
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
36
|
-
See the License for the specific language governing permissions and
|
|
37
|
-
limitations under the License.
|
|
279
|
+
[Apache License, Version 2.0](./LICENSE) ile lisanslanmıştır.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var e=Object.defineProperty,t=(t,n)=>e(t,"name",{value:n,configurable:!0}),n=!("undefined"==typeof window||!window.document||!window.document.createElement);function o(e,n,{checkForDefaultPrevented:o=!0}={}){return t(function(t){if(e?.(t),!1===o||!t||!t.defaultPrevented)return n?.(t)},"handleEvent")}function r(e){if(!n)throw new Error("Cannot access window outside of the DOM");return e?.ownerDocument?.defaultView??window}function c(e){if(!n)throw new Error("Cannot access document outside of the DOM");return e?.ownerDocument??document}function i(e,t=!1){const{activeElement:n}=c(e);if(!n?.nodeName)return null;if(u(n)&&n.contentDocument)return i(n.contentDocument.body,t);if(t){const e=n.getAttribute("aria-activedescendant");if(e){const t=c(n).getElementById(e);if(t)return t}}return n}function u(e){return"IFRAME"===e.tagName}t(o,"composeEventHandlers"),t(r,"getOwnerWindow"),t(c,"getOwnerDocument"),t(i,"getActiveElement"),t(u,"isFrame"),exports.canUseDOM=n,exports.composeEventHandlers=o,exports.getActiveElement=i,exports.getOwnerDocument=c,exports.getOwnerWindow=r,exports.isFrame=u;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";function e(e){var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}var t=e(require("react")),n=Object.defineProperty,r=(e,t)=>n(e,"name",{value:t,configurable:!0});function o(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function u(...e){return t=>{let n=!1;const r=e.map(e=>{const r=o(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){const n=r[t];"function"==typeof n?n():o(e[t],null)}}}}function c(...e){return t.useCallback(u(...e),e)}r(o,"setRef"),r(u,"composeRefs"),r(c,"useComposedRefs"),exports.composeRefs=u,exports.useComposedRefs=c;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var e=require("react"),t=require("react/jsx-runtime");function r(e){var t=Object.create(null);return e&&Object.keys(e).forEach(function(r){if("default"!==r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}}),t.default=e,Object.freeze(t)}var o=r(e),n=Object.defineProperty,c=(e,t)=>n(e,"name",{value:t,configurable:!0});function s(e,r){const n=o.createContext(r);n.displayName=e+"Context";const s=c(e=>{const{children:r,...c}=e,s=o.useMemo(()=>c,Object.values(c));return t.jsx(n.Provider,{value:s,children:r})},"Provider");function u(t,c={}){const{optional:s=!1}=c,u=o.useContext(n);if(u)return u;if(void 0!==r)return r;if(!s)throw new Error(`\`${t}\` must be used within \`${e}\``)}return s.displayName=e+"Provider",c(u,"useContext"),[s,u]}function u(e,r=[]){let n=[];function s(r,s){const u=o.createContext(s);u.displayName=r+"Context";const i=n.length;n=[...n,s];const a=c(r=>{const{scope:n,children:c,...s}=r,a=n?.[e]?.[i]||u,p=o.useMemo(()=>s,Object.values(s));return t.jsx(a.Provider,{value:p,children:c})},"Provider");function p(t,n,c={}){const{optional:a=!1}=c,p=n?.[e]?.[i]||u,f=o.useContext(p);if(f)return f;if(void 0!==s)return s;if(!a)throw new Error(`\`${t}\` must be used within \`${r}\``)}return a.displayName=r+"Provider",c(p,"useContext"),[a,p]}c(s,"createContext");const u=c(()=>{const t=n.map(e=>o.createContext(e));return c(function(r){const n=r?.[e]||t;return o.useMemo(()=>({[`__scope${e}`]:{...r,[e]:n}}),[r,n])},"useScope")},"createScope");return u.scopeName=e,[s,i(u,...r)]}function i(...e){const t=e[0];if(1===e.length)return t;const r=c(()=>{const r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return c(function(e){const n=r.reduce((t,{useScope:r,scopeName:o})=>({...t,...r(e)[`__scope${o}`]}),{});return o.useMemo(()=>({[`__scope${t.scopeName}`]:n}),[n])},"useComposedScopes")},"createScope");return r.scopeName=t.scopeName,r}c(s,"createContext"),c(u,"createContextScope"),c(i,"composeContextScopes"),exports.createContext=s,exports.createContextScope=u;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var e=require("react"),t=require("../../primitive/dist/index.js"),o=require("../../react-compose-refs/dist/index.js"),r=require("../../react-context/dist/index.js"),n=require("../../react-id/dist/index.js"),s=require("../../react-use-controllable-state/dist/index.js"),i=require("../../react-dismissable-layer/dist/index.js"),a=require("../../react-focus-scope/dist/index.js"),c=require("../../react-portal/dist/index.js"),u=require("../../react-presence/dist/index.js"),l=require("../../react-primitive/dist/index.js"),d=require("../../react-focus-guards/dist/index.js"),p=require("../../../react-remove-scroll/dist/es2015/Combination.js"),f=require("../../../aria-hidden/dist/es2015/index.js"),g=require("../../react-slot/dist/index.js"),D=require("react/jsx-runtime");function x(e){var t=Object.create(null);return e&&Object.keys(e).forEach(function(o){if("default"!==o){var r=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,r.get?r:{enumerable:!0,get:function(){return e[o]}})}}),t.default=e,Object.freeze(t)}var j=x(e),v=Object.defineProperty,m=(e,t)=>v(e,"name",{value:t,configurable:!0}),O="Dialog",[C,P]=r.createContextScope(O),[h,b]=C(O),R=m(e=>{const{__scopeDialog:t,children:o,open:r,defaultOpen:i,onOpenChange:a,modal:c=!0}=e,u=j.useRef(null),l=j.useRef(null),[d,p]=s.useControllableState({prop:r,defaultProp:i??!1,onChange:a,caller:O}),[f,g]=j.useState(0),[x,v]=j.useState(0);return D.jsx(h,{scope:t,triggerRef:u,contentRef:l,contentId:n.useId(),titleId:n.useId(),descriptionId:n.useId(),titlePresent:f>0,descriptionPresent:x>0,setTitleCount:g,setDescriptionCount:v,open:d,onOpenChange:p,onOpenToggle:j.useCallback(()=>p(e=>!e),[p]),modal:c,children:o})},"Dialog"),y="DialogPortal",[_,q]=C(y,{forceMount:void 0}),F=m(e=>{const{__scopeDialog:t,forceMount:o,children:r,container:n}=e,s=b(y,t);return D.jsx(_,{scope:t,forceMount:o,children:j.Children.map(r,e=>D.jsx(u.Presence,{present:o||s.open,children:D.jsx(c.Portal,{asChild:!0,container:n,children:e})}))})},"DialogPortal"),I="DialogOverlay",w=j.forwardRef(m(function(e,t){const o=q(I,e.__scopeDialog),{forceMount:r=o.forceMount,...n}=e,s=b(I,e.__scopeDialog);return s.modal?D.jsx(u.Presence,{present:r||s.open,children:D.jsx(M,{...n,ref:t})}):null},"DialogOverlay")),E=g.createSlot("DialogOverlay.RemoveScroll"),M=j.forwardRef(m(function(e,t){const{__scopeDialog:r,...n}=e,s=b(I,r),a=i.useDismissableLayerSurface(),c=o.useComposedRefs(t,a);return D.jsx(p.default,{as:E,allowPinchZoom:!0,shards:[s.contentRef],children:D.jsx(l.Primitive.div,{"data-state":T(s.open),...n,ref:c,style:{pointerEvents:"auto",...n.style}})})},"DialogOverlayImpl")),S="DialogContent",A=j.forwardRef(m(function(e,t){const o=q(S,e.__scopeDialog),{forceMount:r=o.forceMount,...n}=e,s=b(S,e.__scopeDialog);return D.jsx(u.Presence,{present:r||s.open,children:s.modal?D.jsx(H,{...n,ref:t}):D.jsx(k,{...n,ref:t})})},"DialogContent")),H=j.forwardRef(m(function(e,r){const n=b(S,e.__scopeDialog),s=j.useRef(null),i=o.useComposedRefs(r,n.contentRef,s);return j.useEffect(()=>{const e=s.current;if(e)return f.hideOthers(e)},[]),D.jsx(L,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,onCloseAutoFocus:t.composeEventHandlers(e.onCloseAutoFocus,e=>{e.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:t.composeEventHandlers(e.onPointerDownOutside,e=>{const t=e.detail.originalEvent,o=0===t.button&&!0===t.ctrlKey;(2===t.button||o)&&e.preventDefault()}),onFocusOutside:t.composeEventHandlers(e.onFocusOutside,e=>e.preventDefault())})},"DialogContentModal")),k=j.forwardRef(m(function(e,t){const o=b(S,e.__scopeDialog),r=j.useRef(!1),n=j.useRef(!1);return D.jsx(L,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||o.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,n.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(n.current=!0));const s=t.target,i=o.triggerRef.current?.contains(s);i&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&n.current&&t.preventDefault()}})},"DialogContentNonModal")),L=j.forwardRef(m(function(e,t){const{__scopeDialog:o,trapFocus:r,onOpenAutoFocus:n,onCloseAutoFocus:s,...c}=e,u=b(S,o);return d.useFocusGuards(),D.jsx(D.Fragment,{children:D.jsx(a.FocusScope,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:n,onUnmountAutoFocus:s,children:D.jsx(i.DismissableLayer,{role:"dialog",id:u.contentId,"aria-describedby":u.descriptionPresent?u.descriptionId:void 0,"aria-labelledby":u.titlePresent?u.titleId:void 0,"data-state":T(u.open),...c,ref:t,deferPointerDownOutside:!0,onDismiss:()=>u.onOpenChange(!1)})})})},"DialogContentImpl"));function T(e){return e?"open":"closed"}m(T,"getState"),exports.Content=A,exports.Dialog=R,exports.DialogContent=A,exports.DialogOverlay=w,exports.DialogPortal=F,exports.Overlay=w,exports.Portal=F,exports.Root=R,exports.createDialogScope=P;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var e=require("react"),t=require("../../primitive/dist/index.js"),n=require("../../react-primitive/dist/index.js"),r=require("../../react-compose-refs/dist/index.js"),s=require("../../react-use-callback-ref/dist/index.js"),i=require("react/jsx-runtime");function o(e){var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}var u,a=o(e),c=Object.defineProperty,d=(e,t)=>c(e,"name",{value:t,configurable:!0}),l="dismissableLayer.update",f=a.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),v=a.forwardRef(d(function(e,o){const{disableOutsidePointerEvents:c=!1,deferPointerDownOutside:v=!1,onEscapeKeyDown:m,onPointerDownOutside:p,onFocusOutside:D,onInteractOutside:y,onDismiss:O,...h}=e,P=a.useContext(f),[C,L]=a.useState(null),g=C?.ownerDocument??globalThis?.document,[,k]=a.useState({}),S=r.useComposedRefs(o,L),R=Array.from(P.layers),[x]=[...P.layersWithOutsidePointerEventsDisabled].slice(-1),j=x?R.indexOf(x):-1,F=C?R.indexOf(C):-1,W=P.layersWithOutsidePointerEventsDisabled.size>0,B=F>=j,I=a.useRef(!1),T=E(e=>{p?.(e),y?.(e),e.defaultPrevented||O?.()},{ownerDocument:g,deferPointerDownOutside:v,isDeferredPointerDownOutsideRef:I,dismissableSurfaces:P.dismissableSurfaces,shouldHandlePointerDownOutside:a.useCallback(e=>{if(!(e instanceof Node))return!1;const t=[...P.branches].some(t=>t.contains(e));return B&&!t},[P.branches,B])}),q=b(e=>{if(v&&I.current)return;const t=e.target;[...P.branches].some(e=>e.contains(t))||(D?.(e),y?.(e),e.defaultPrevented||O?.())},g),H=!!C&&F===R.length-1,z=s.useCallbackRef(e=>{"Escape"===e.key&&(m?.(e),!e.defaultPrevented&&O&&(e.preventDefault(),O()))});return a.useEffect(()=>{if(H)return g.addEventListener("keydown",z,{capture:!0}),()=>g.removeEventListener("keydown",z,{capture:!0})},[g,H,z]),a.useEffect(()=>{if(C)return c&&(0===P.layersWithOutsidePointerEventsDisabled.size&&(u=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),P.layersWithOutsidePointerEventsDisabled.add(C)),P.layers.add(C),w(),()=>{c&&(P.layersWithOutsidePointerEventsDisabled.delete(C),0===P.layersWithOutsidePointerEventsDisabled.size&&(g.body.style.pointerEvents=u))}},[C,g,c,P]),a.useEffect(()=>()=>{C&&(P.layers.delete(C),P.layersWithOutsidePointerEventsDisabled.delete(C),w())},[C,P]),a.useEffect(()=>{const e=d(()=>k({}),"handleUpdate");return document.addEventListener(l,e),()=>document.removeEventListener(l,e)},[]),i.jsx(n.Primitive.div,{...h,ref:S,style:{pointerEvents:W?B?"auto":"none":void 0,...e.style},onFocusCapture:t.composeEventHandlers(e.onFocusCapture,q.onFocusCapture),onBlurCapture:t.composeEventHandlers(e.onBlurCapture,q.onBlurCapture),onPointerDownCapture:t.composeEventHandlers(e.onPointerDownCapture,T.onPointerDownCapture)})},"DismissableLayer"));function m(){const e=a.useContext(f),[t,n]=a.useState(null);return a.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}d(m,"useDismissableLayerSurface");var p=d(()=>!0,"IS_TRUE");function E(e,t){const{ownerDocument:n=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:i,dismissableSurfaces:o,shouldHandlePointerDownOutside:u=p}=t,c=s.useCallbackRef(e),l=a.useRef(!1),f=a.useRef(!1),v=a.useRef(new Map),m=a.useRef(()=>{});return a.useEffect(()=>{function e(){f.current=!1,i.current=!1,v.current.clear()}function t(){return Array.from(v.current.values()).some(Boolean)}function s(e){if(!f.current)return;const t=e.target;t instanceof Node&&[...o].some(e=>e.contains(t))||v.current.set(e.type,!0),"click"===e.type&&window.setTimeout(()=>{f.current&&m.current()},0)}function a(e){f.current&&v.current.set(e.type,!1)}d(e,"resetOutsideInteraction"),d(t,"isOutsideInteractionIntercepted"),d(s,"handleInteractionCapture"),d(a,"handleInteractionBubble");const p=d(s=>{if(s.target&&!l.current){let o=function(){n.removeEventListener("click",m.current);const r=t();e(),r||D("dismissableLayer.pointerDownOutside",c,a,{discrete:!0})};if(d(o,"handleAndDispatchPointerDownOutsideEvent"),!u(s.target))return n.removeEventListener("click",m.current),e(),void(l.current=!1);const a={originalEvent:s};f.current=!0,i.current=r&&0===s.button,v.current.clear(),r&&0===s.button?(n.removeEventListener("click",m.current),m.current=o,n.addEventListener("click",m.current,{once:!0})):o()}else n.removeEventListener("click",m.current),e();l.current=!1},"handlePointerDown"),E=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(const e of E)n.addEventListener(e,s,!0),n.addEventListener(e,a);const b=window.setTimeout(()=>{n.addEventListener("pointerdown",p)},0);return()=>{window.clearTimeout(b),n.removeEventListener("pointerdown",p),n.removeEventListener("click",m.current);for(const e of E)n.removeEventListener(e,s,!0),n.removeEventListener(e,a)}},[n,c,r,i,o,u]),{onPointerDownCapture:d(()=>l.current=!0,"onPointerDownCapture")}}function b(e,t=globalThis?.document){const n=s.useCallbackRef(e),r=a.useRef(!1);return a.useEffect(()=>{const e=d(e=>{if(e.target&&!r.current){D("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})}},"handleFocus");return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:d(()=>r.current=!0,"onFocusCapture"),onBlurCapture:d(()=>r.current=!1,"onBlurCapture")}}function w(){const e=new CustomEvent(l);document.dispatchEvent(e)}function D(e,t,r,{discrete:s}){const i=r.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&i.addEventListener(e,t,{once:!0}),s?n.dispatchDiscreteCustomEvent(i,o):i.dispatchEvent(o)}d(E,"usePointerDownOutside"),d(b,"useFocusOutside"),d(w,"dispatchUpdate"),d(D,"handleAndDispatchCustomEvent"),exports.DismissableLayer=v,exports.useDismissableLayerSurface=m;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";function e(e){var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}var t=e(require("react")),n=Object.defineProperty,r=(e,t)=>n(e,"name",{value:t,configurable:!0}),o=0,u=null;function c(e){return s(),e.children}function s(){t.useEffect(()=>{u||(u={start:a(),end:a()});const{start:e,end:t}=u;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),o++,()=>{1===o&&(u?.start.remove(),u?.end.remove(),u=null),o=Math.max(0,o-1)}},[])}function a(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}r(c,"FocusGuards"),r(s,"useFocusGuards"),r(a,"createFocusGuard"),exports.FocusGuards=c,exports.Root=c,exports.useFocusGuards=s;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var e=require("react"),t=require("../../react-compose-refs/dist/index.js"),n=require("../../react-primitive/dist/index.js"),c=require("../../react-use-callback-ref/dist/index.js"),r=require("react/jsx-runtime");function o(e){var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if("default"!==n){var c=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,c.get?c:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}var u=o(e),i=Object.defineProperty,s=(e,t)=>i(e,"name",{value:t,configurable:!0}),a="focusScope.autoFocusOnMount",d="focusScope.autoFocusOnUnmount",f={bubbles:!1,cancelable:!0},l=u.forwardRef(s(function(e,o){const{loop:i=!1,trapped:l=!1,onMountAutoFocus:b,onUnmountAutoFocus:E,...y}=e,[F,T]=u.useState(null),L=c.useCallbackRef(b),k=c.useCallbackRef(E),C=u.useRef(null),N=t.useComposedRefs(o,T),O=u.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;u.useEffect(()=>{if(l){let e=function(e){if(O.paused||!F)return;const t=e.target;F.contains(t)?C.current=t:h(C.current,{select:!0})},t=function(e){if(O.paused||!F)return;const t=e.relatedTarget;null!==t&&(F.contains(t)||h(C.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&h(F)};s(e,"handleFocusIn"),s(t,"handleFocusOut"),s(n,"handleMutations"),document.addEventListener("focusin",e),document.addEventListener("focusout",t);const c=new MutationObserver(n);return F&&c.observe(F,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),c.disconnect()}}},[l,F,O.paused]),u.useEffect(()=>{if(F){S.add(O);const e=document.activeElement;if(!F.contains(e)){const t=new CustomEvent(a,f);F.addEventListener(a,L),F.dispatchEvent(t),t.defaultPrevented||(m(g(p(F)),{select:!0}),document.activeElement===e&&h(F))}return()=>{F.removeEventListener(a,L),setTimeout(()=>{const t=new CustomEvent(d,f);F.addEventListener(d,k),F.dispatchEvent(t),t.defaultPrevented||h(e??document.body,{select:!0}),F.removeEventListener(d,k),S.remove(O)},0)}}},[F,L,k,O]);const j=u.useCallback(e=>{if(!i&&!l)return;if(O.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=document.activeElement;if(t&&n){const t=e.currentTarget,[c,r]=v(t);c&&r?e.shiftKey||n!==r?e.shiftKey&&n===c&&(e.preventDefault(),i&&h(r,{select:!0})):(e.preventDefault(),i&&h(c,{select:!0})):n===t&&e.preventDefault()}},[i,l,O.paused]);return r.jsx(n.Primitive.div,{tabIndex:-1,...y,ref:N,onKeyDown:j})},"FocusScope"));function m(e,{select:t=!1}={}){const n=document.activeElement;for(const c of e)if(h(c,{select:t}),document.activeElement!==n)return}function v(e){const t=p(e);return[b(t,e),b(t.reverse(),e)]}function p(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:s(e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},"acceptNode")});for(;n.nextNode();)t.push(n.currentNode);return t}function b(e,t){const n="function"==typeof t.checkVisibility&&t.checkVisibility({checkVisibilityCSS:!0});for(const c of e){if(!(n?!c.checkVisibility({checkVisibilityCSS:!0}):E(c,{upTo:t})))return c}}function E(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function y(e){return e instanceof HTMLInputElement&&"select"in e}function h(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&y(e)&&t&&e.select()}}s(m,"focusFirst"),s(v,"getTabbableEdges"),s(p,"getTabbableCandidates"),s(b,"findVisible"),s(E,"isHidden"),s(y,"isSelectableInput"),s(h,"focus");var S=F();function F(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=T(e,t),e.unshift(t)},remove(t){e=T(e,t),e[0]?.resume()}}}function T(e,t){const n=[...e],c=n.indexOf(t);return-1!==c&&n.splice(c,1),n}function g(e){return e.filter(e=>"A"!==e.tagName)}s(F,"createFocusScopesStack"),s(T,"arrayRemove"),s(g,"removeLinks"),exports.FocusScope=l;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var e=require("react"),t=require("../../react-use-layout-effect/dist/index.js");function r(e){var t=Object.create(null);return e&&Object.keys(e).forEach(function(r){if("default"!==r){var u=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,u.get?u:{enumerable:!0,get:function(){return e[r]}})}}),t.default=e,Object.freeze(t)}var u=r(e),n=Object.defineProperty,c=u[" useId ".trim().toString()]||(()=>{}),a=0;function i(e){const[r,n]=u.useState(c());return t.useLayoutEffect(()=>{e||n(e=>e??String(a++))},[e]),e||(r?`radix-${r}`:"")}n(i,"name",{value:"useId",configurable:!0}),exports.useId=i;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var e=require("react"),r=require("react-dom"),t=require("../../react-primitive/dist/index.js"),i=require("../../react-use-layout-effect/dist/index.js"),a=require("react/jsx-runtime");function c(e){var r=Object.create(null);return e&&Object.keys(e).forEach(function(t){if("default"!==t){var i=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,i.get?i:{enumerable:!0,get:function(){return e[t]}})}}),r.default=e,Object.freeze(r)}var n=c(e),u=c(r),o=Object.defineProperty,f=(e,r)=>o(e,"name",{value:r,configurable:!0}),s=n.forwardRef(f(function(e,r){const{container:c,...o}=e,[f,s]=n.useState(!1);i.useLayoutEffect(()=>s(!0),[]);const l=c||f&&globalThis?.document?.body;return l?u.createPortal(a.jsx(t.Primitive.div,{...o,ref:r}),l):null},"Portal"));exports.Portal=s;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var e=require("react"),n=require("../../react-use-layout-effect/dist/index.js");function t(e){var n=Object.create(null);return e&&Object.keys(e).forEach(function(t){if("default"!==t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}}),n.default=e,Object.freeze(n)}var r=t(e),u=Object.defineProperty,o=(e,n)=>u(e,"name",{value:n,configurable:!0});function i(e,n){return r.useReducer((e,t)=>n[e][t]??e,e)}o(i,"useStateMachine");var c=o(e=>{const{present:n,children:t}=e,u=s(n),o="function"==typeof t?t({present:u.isPresent}):r.Children.only(t),i=f(u.ref,d(o));return"function"==typeof t||u.isPresent?r.cloneElement(o,{ref:i}):null},"Presence");function s(e){const[t,u]=r.useState(),c=r.useRef(null),s=r.useRef(e),a=r.useRef("none"),f=r.useRef(void 0),d=e?"mounted":"unmounted",[m,p]=i(d,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return r.useEffect(()=>{"mounted"===m?(a.current=f.current??l(c.current),f.current=void 0):a.current="none"},[m]),n.useLayoutEffect(()=>{const n=c.current,t=s.current;if(t!==e){const r=a.current,u=l(n);if(e)f.current=u,p("MOUNT");else if("none"===u||"none"===n?.display)p("UNMOUNT");else{p(t&&r!==u?"ANIMATION_OUT":"UNMOUNT")}s.current=e}},[e,p]),n.useLayoutEffect(()=>{if(t){let e;const n=t.ownerDocument.defaultView??window,r=o(r=>{const u=l(c.current).includes(CSS.escape(r.animationName));if(r.target===t&&u&&(p("ANIMATION_END"),!s.current)){const r=t.style.animationFillMode;t.style.animationFillMode="forwards",e=n.setTimeout(()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=r)})}},"handleAnimationEnd"),u=o(e=>{e.target===t&&(a.current=l(c.current))},"handleAnimationStart");return t.addEventListener("animationstart",u),t.addEventListener("animationcancel",r),t.addEventListener("animationend",r),()=>{n.clearTimeout(e),t.removeEventListener("animationstart",u),t.removeEventListener("animationcancel",r),t.removeEventListener("animationend",r)}}p("ANIMATION_END")},[t,p]),{isPresent:["mounted","unmountSuspended"].includes(m),ref:r.useCallback(e=>{if(e){const n=getComputedStyle(e);c.current=n,f.current=l(n)}else c.current=null;u(e)},[])}}function a(e,n){if("function"==typeof e)return e(n);null!=e&&(e.current=n)}function f(...e){const n=r.useRef(e);return n.current=e,r.useCallback(e=>{const t=n.current;let r=!1;const u=t.map(n=>{const t=a(n,e);return r||"function"!=typeof t||(r=!0),t});if(r)return()=>{for(let e=0;e<u.length;e++){const n=u[e];"function"==typeof n?n():a(t[e],null)}}},[])}function l(e){return e?.animationName||"none"}function d(e){let n=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,t=n&&"isReactWarning"in n&&n.isReactWarning;return t?e.ref:(n=Object.getOwnPropertyDescriptor(e,"ref")?.get,t=n&&"isReactWarning"in n&&n.isReactWarning,t?e.props.ref:e.props.ref||e.ref)}o(s,"usePresence"),o(a,"setRef"),o(f,"useStableComposedRefs"),o(l,"getAnimationName"),o(d,"getElementRef"),exports.Presence=c;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var e=require("react"),t=require("react-dom"),r=require("../../react-slot/dist/index.js"),i=require("react/jsx-runtime");function n(e){var t=Object.create(null);return e&&Object.keys(e).forEach(function(r){if("default"!==r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}}),t.default=e,Object.freeze(t)}var c=n(e),a=n(t),u=Object.defineProperty,o=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{const n=r.createSlot(`Primitive.${t}`),a=c.forwardRef((e,r)=>{const{asChild:c,...a}=e,u=c?n:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),i.jsx(u,{...a,ref:r})});return a.displayName=`Primitive.${t}`,{...e,[t]:a}},{});function s(e,t){e&&a.flushSync(()=>e.dispatchEvent(t))}u(s,"name",{value:"dispatchDiscreteCustomEvent",configurable:!0}),exports.Primitive=o,exports.dispatchDiscreteCustomEvent=s;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var e=require("react"),t=require("../../react-compose-refs/dist/index.js");function r(e){var t=Object.create(null);return e&&Object.keys(e).forEach(function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}}),t.default=e,Object.freeze(t)}var n=r(e),o=Object.defineProperty,l=(e,t)=>o(e,"name",{value:t,configurable:!0});function i(e){const r=n.forwardRef((r,o)=>{let{children:l,...i}=r,c=null,a=!1;const u=[];y(l)&&"function"==typeof g&&(l=g(l._payload)),n.Children.forEach(l,e=>{if(d(e)){a=!0;const t=e;let r="child"in t.props?t.props.child:t.props.children;y(r)&&"function"==typeof g&&(r=g(r._payload)),c=s(t,r),u.push(c?.props?.children)}else u.push(e)}),c?c=n.cloneElement(c,void 0,u):!a&&1===n.Children.count(l)&&n.isValidElement(l)&&(c=l);const b=c?f(c):void 0,S=t.useComposedRefs(o,b);if(!c){if(l||0===l)throw new Error(a?h(e):m(e));return l}const E=p(i,c.props??{});return c.type!==n.Fragment&&(E.ref=o?S:b),n.cloneElement(c,E)});return r.displayName=`${e}.Slot`,r}l(i,"createSlot");var c=Symbol.for("radix.slottable");function a(e){const t=l(e=>"child"in e?e.children(e.child):e.children,"Slottable");return t.displayName=`${e}.Slottable`,t.__radixId=c,t}l(a,"createSlottable");var s=l((e,t)=>{if("child"in e.props){const t=e.props.child;return n.isValidElement(t)?n.cloneElement(t,void 0,e.props.children(t.props.children)):null}return n.isValidElement(t)?t:null},"getSlottableElementFromSlottable");function p(e,t){const r={...t};for(const n in t){const o=e[n],l=t[n];/^on[A-Z]/.test(n)?o&&l?r[n]=(...e)=>{const t=l(...e);return o(...e),t}:o&&(r[n]=o):"style"===n?r[n]={...o,...l}:"className"===n&&(r[n]=[o,l].filter(Boolean).join(" "))}return{...e,...r}}function f(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function d(e){return n.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===c}l(p,"mergeProps"),l(f,"getElementRef"),l(d,"isSlottable");var u=Symbol.for("react.lazy");function y(e){return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===u&&"_payload"in e&&b(e._payload)}function b(e){return"object"==typeof e&&null!==e&&"then"in e}l(y,"isLazyComponent"),l(b,"isPromiseLike");var m=l(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),h=l(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),g=n[" use ".trim().toString()];exports.createSlot=i,exports.createSlottable=a;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";function e(e){var r=Object.create(null);return e&&Object.keys(e).forEach(function(t){if("default"!==t){var c=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,c.get?c:{enumerable:!0,get:function(){return e[t]}})}}),r.default=e,Object.freeze(r)}var r=e(require("react"));function t(e){const t=r.useRef(e);return r.useEffect(()=>{t.current=e}),r.useMemo(()=>(...e)=>t.current?.(...e),[])}(0,Object.defineProperty)(t,"name",{value:"useCallbackRef",configurable:!0}),exports.useCallbackRef=t;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var e=require("react"),t=require("../../react-use-layout-effect/dist/index.js"),r=require("../../react-use-effect-event/dist/index.js");function n(e){var t=Object.create(null);return e&&Object.keys(e).forEach(function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}}),t.default=e,Object.freeze(t)}var u=n(e),o=Object.defineProperty,c=(e,t)=>o(e,"name",{value:t,configurable:!0}),s=u[" useInsertionEffect ".trim().toString()]||t.useLayoutEffect;function a({prop:e,defaultProp:t,onChange:r=c(()=>{},"onChange"),caller:n}){const[o,s,a]=f({defaultProp:t,onChange:r}),i=void 0!==e;return[i?e:o,u.useCallback(t=>{if(i){const r=l(t)?t(e):t;r!==e&&a.current?.(r)}else s(t)},[i,e,s,a])]}function f({defaultProp:e,onChange:t}){const[r,n]=u.useState(e),o=u.useRef(r),c=u.useRef(t);return s(()=>{c.current=t},[t]),u.useEffect(()=>{o.current!==r&&(c.current?.(r),o.current=r)},[r,o]),[r,n,c]}function l(e){return"function"==typeof e}c(a,"useControllableState"),c(f,"useUncontrolledState"),c(l,"isFunction");var i=Symbol("RADIX:SYNC_STATE");function d(e,t,n,o){const{prop:c,defaultProp:s,onChange:a,caller:f}=t,l=void 0!==c,d=r.useEffectEvent(a),p=[{...n,state:s}];o&&p.push(o);const[b,v]=u.useReducer((t,r)=>{if(r.type===i)return{...t,state:r.state};const n=e(t,r);return l&&!Object.is(n.state,t.state)&&d(n.state),n},...p),C=b.state,g=u.useRef(C);u.useEffect(()=>{g.current!==C&&(g.current=C,l||d(C))},[C,g,l]);const j=u.useMemo(()=>void 0!==c?{...b,state:c}:b,[b,c]);return u.useEffect(()=>{l&&!Object.is(c,b.state)&&v({type:i,state:c})},[c,b.state,l]),[j,v]}c(d,"useControllableStateReducer"),exports.useControllableState=a,exports.useControllableStateReducer=d;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var e=require("../../react-use-layout-effect/dist/index.js");function t(e){var t=Object.create(null);return e&&Object.keys(e).forEach(function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}}),t.default=e,Object.freeze(t)}var r=t(require("react")),n=Object.defineProperty,u=r[" useEffectEvent ".trim().toString()],c=r[" useInsertionEffect ".trim().toString()];function f(t){if("function"==typeof u)return u(t);const n=r.useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return"function"==typeof c?c(()=>{n.current=t}):e.useLayoutEffect(()=>{n.current=t}),r.useMemo(()=>(...e)=>n.current?.(...e),[])}n(f,"name",{value:"useEffectEvent",configurable:!0}),exports.useEffectEvent=f;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";function e(e){var t=Object.create(null);return e&&Object.keys(e).forEach(function(r){if("default"!==r){var c=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,c.get?c:{enumerable:!0,get:function(){return e[r]}})}}),t.default=e,Object.freeze(t)}var t=e(require("react")),r=globalThis?.document?t.useLayoutEffect:()=>{};exports.useLayoutEffect=r;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var e=new WeakMap,r=new WeakMap,t={},n=0,a=function(e){return e&&(e.host||a(e.parentNode))},o=function(o,i,u,c){var s=function(e,r){return r.map(function(r){if(e.contains(r))return r;var t=a(r);return t&&e.contains(t)?t:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(e){return Boolean(e)})}(i,Array.isArray(o)?o:[o]);t[u]||(t[u]=new WeakMap);var f=t[u],l=[],d=new Set,h=new Set(s),p=function(e){e&&!d.has(e)&&(d.add(e),p(e.parentNode))};s.forEach(p);var y=function(t){t&&!h.has(t)&&Array.prototype.forEach.call(t.children,function(t){if(d.has(t))y(t);else try{var n=t.getAttribute(c),a=null!==n&&"false"!==n,o=(e.get(t)||0)+1,i=(f.get(t)||0)+1;e.set(t,o),f.set(t,i),l.push(t),1===o&&a&&r.set(t,!0),1===i&&t.setAttribute(u,"true"),a||t.setAttribute(c,"true")}catch(e){console.error("aria-hidden: cannot operate on ",t,e)}})};return y(i),d.clear(),n++,function(){l.forEach(function(t){var n=e.get(t)-1,a=f.get(t)-1;e.set(t,n),f.set(t,a),n||(r.has(t)||t.removeAttribute(c),r.delete(t)),a||t.removeAttribute(u)}),--n||(e=new WeakMap,e=new WeakMap,r=new WeakMap,t={})}};exports.hideOthers=function(e,r,t){void 0===t&&(t="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),a=function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e);return a?(n.push.apply(n,Array.from(a.querySelectorAll("[aria-live], script"))),o(n,a,t,"aria-hidden")):function(){return null}};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";function n(n){return"number"==typeof n}function t(n){return"string"==typeof n}function e(n){return"boolean"==typeof n}function r(n){return"[object Object]"===Object.prototype.toString.call(n)}function o(n){return Math.abs(n)}function i(n){return Math.sign(n)}function c(n,t){return o(n-t)}function u(n){return f(n).map(Number)}function s(n){return n[a(n)]}function a(n){return Math.max(0,n.length-1)}function d(n,t){return t===a(n)}function l(n,t=0){return Array.from(Array(n),(n,e)=>t+e)}function f(n){return Object.keys(n)}function p(n,t){return[n,t].reduce((n,t)=>(f(t).forEach(e=>{const o=n[e],i=t[e],c=r(o)&&r(i);n[e]=c?p(o,i):i}),n),{})}function m(n,t){return void 0!==t.MouseEvent&&n instanceof t.MouseEvent}function g(){let n=[];const t={add:function(e,r,o,i={passive:!0}){let c;if("addEventListener"in e)e.addEventListener(r,o,i),c=()=>e.removeEventListener(r,o,i);else{const n=e;n.addListener(o),c=()=>n.removeListener(o)}return n.push(c),t},clear:function(){n=n.filter(n=>n())}};return t}function h(n,t,e,r){const o=g(),i=1e3/60;let c=null,u=0,s=0;function a(n){if(!s)return;c||(c=n,e(),e());const o=n-c;for(c=n,u+=o;u>=i;)e(),u-=i;r(u/i),s&&(s=t.requestAnimationFrame(a))}function d(){t.cancelAnimationFrame(s),c=null,u=0,s=0}return{init:function(){o.add(n,"visibilitychange",()=>{n.hidden&&(c=null,u=0)})},destroy:function(){d(),o.clear()},start:function(){s||(s=t.requestAnimationFrame(a))},stop:d,update:e,render:r}}function x(n=0,t=0){const e=o(n-t);function r(t){return t<n}function i(n){return n>t}function c(n){return r(n)||i(n)}return{length:e,max:t,min:n,constrain:function(e){return c(e)?r(e)?n:t:e},reachedAny:c,reachedMax:i,reachedMin:r,removeOffset:function(n){return e?n-e*Math.ceil((n-t)/e):n}}}function y(n,t,e){const{constrain:r}=x(0,n),i=n+1;let c=u(t);function u(n){return e?o((i+n)%i):r(n)}function s(){return c}function a(){return y(n,s(),e)}const d={get:s,set:function(n){return c=u(n),d},add:function(n){return a().set(s()+n)},clone:a};return d}function v(n,t,r,u,s,a,d,l,f,p,h,y,v,b,S,w,L,E,D){const{cross:I,direction:M}=n,A=["INPUT","SELECT","TEXTAREA"],F={passive:!1},O=g(),T=g(),P=x(50,225).constrain(b.measure(20)),z={mouse:300,touch:400},H={mouse:500,touch:600},k=S?43:25;let V=!1,B=0,C=0,N=!1,R=!1,j=!1,G=!1;function q(n){if(!m(n,u)&&n.touches.length>=2)return U(n);const t=a.readPoint(n),e=a.readPoint(n,I),r=c(t,B),o=c(e,C);if(!R){if(!n.cancelable)return U(n);if(R=r>o,!R)return U(n)}const i=a.pointerMove(n);r>w&&(j=!0),p.useFriction(.3).useDuration(.75),l.start(),s.add(M(i)),n.preventDefault()}function U(n){const t=h.byDistance(0,!1).index!==y.get(),e=a.pointerUp(n)*(S?H:z)[G?"mouse":"touch"],r=function(n,t){const e=y.add(-1*i(n)),r=h.byDistance(n,!S).distance;return S||o(n)<P?r:L&&t?.5*r:h.byIndex(e.get(),0).distance}(M(e),t),u=function(n,t){if(0===n||0===t)return 0;if(o(n)<=o(t))return 0;const e=c(o(n),o(t));return o(e/n)}(e,r),s=k-10*u,d=E+u/50;R=!1,N=!1,T.clear(),p.useDuration(s).useFriction(d),f.distance(r,!S),G=!1,v.emit("pointerUp")}function W(n){j&&(n.stopPropagation(),n.preventDefault(),j=!1)}return{init:function(n){if(!D)return;function o(o){(e(D)||D(n,o))&&function(n){const e=m(n,u);if(G=e,j=S&&e&&!n.buttons&&V,V=c(s.get(),d.get())>=2,e&&0!==n.button)return;if(function(n){const t=n.nodeName||"";return A.includes(t)}(n.target))return;N=!0,a.pointerDown(n),p.useFriction(0).useDuration(0),s.set(d),function(){const n=G?r:t;T.add(n,"touchmove",q,F).add(n,"touchend",U).add(n,"mousemove",q,F).add(n,"mouseup",U)}(),B=a.readPoint(n),C=a.readPoint(n,I),v.emit("pointerDown")}(o)}const i=t;O.add(i,"dragstart",n=>n.preventDefault(),F).add(i,"touchmove",()=>{},F).add(i,"touchend",()=>{}).add(i,"touchstart",o).add(i,"mousedown",o).add(i,"touchcancel",U).add(i,"contextmenu",U).add(i,"click",W,!0)},destroy:function(){O.clear(),T.clear()},pointerDown:function(){return N}}}function b(n,t){let e,r;function i(n){return n.timeStamp}function c(e,r){const o="client"+("x"===(r||n.scroll)?"X":"Y");return(m(e,t)?e:e.touches[0])[o]}return{pointerDown:function(n){return e=n,r=n,c(n)},pointerMove:function(n){const t=c(n)-c(r),o=i(n)-i(e)>170;return r=n,o&&(e=n),t},pointerUp:function(n){if(!e||!r)return 0;const t=c(r)-c(e),u=i(n)-i(e),s=i(n)-i(r)>170,a=t/u;return u&&!s&&o(a)>.1?a:0},readPoint:c}}function S(n,t,r,i,c,u,s){const a=[n].concat(i);let d,l,f=[],p=!1;function m(n){return c.measureSize(s.measure(n))}return{init:function(c){u&&(l=m(n),f=i.map(m),d=new ResizeObserver(r=>{(e(u)||u(c,r))&&function(e){for(const r of e){if(p)return;const e=r.target===n,u=i.indexOf(r.target),s=e?l:f[u];if(o(m(e?n:i[u])-s)>=.5){c.reInit(),t.emit("resize");break}}}(r)}),r.requestAnimationFrame(()=>{a.forEach(n=>d.observe(n))}))},destroy:function(){p=!0,d&&d.disconnect()}}}function w(n,t,e,r,i){const c=i.measure(10),u=i.measure(50),s=x(.1,.99);let a=!1;function d(){return!a&&(!!n.reachedAny(e.get())&&!!n.reachedAny(t.get()))}return{shouldConstrain:d,constrain:function(i){if(!d())return;const a=n.reachedMin(t.get())?"min":"max",l=o(n[a]-t.get()),f=e.get()-t.get(),p=s.constrain(l/u);e.subtract(f*p),!i&&o(f)<c&&(e.set(n.constrain(e.get())),r.useDuration(25).useBaseFriction())},toggleActive:function(n){a=!n}}}function L(n,t,e,r){const o=t.min+.1,i=t.max+.1,{reachedMin:c,reachedMax:u}=x(o,i);return{loop:function(t){if(!function(n){return 1===n?u(e.get()):-1===n&&c(e.get())}(t))return;const o=n*(-1*t);r.forEach(n=>n.add(o))}}}function E(n,t,e,r,c){const{reachedAny:u,removeOffset:a,constrain:d}=r;function l(n){return n.concat().sort((n,t)=>o(n)-o(t))[0]}function f(t,r){const o=[t,t+e,t-e];if(!n)return t;if(!r)return l(o);const c=o.filter(n=>i(n)===r);return c.length?l(c):s(o)-e}return{byDistance:function(e,r){const i=c.get()+e,{index:s,distance:l}=function(e){const r=n?a(e):d(e),i=t.map((n,t)=>({diff:f(n-r,0),index:t})).sort((n,t)=>o(n.diff)-o(t.diff)),{index:c}=i[0];return{index:c,distance:r}}(i),p=!n&&u(i);return!r||p?{index:s,distance:e}:{index:s,distance:e+f(t[s]-l,0)}},byIndex:function(n,e){return{index:n,distance:f(t[n]-c.get(),e)}},shortcut:f}}function D(t,r,o,i,c,u,s,a){const d={passive:!0,capture:!0};let l=0;function f(n){"Tab"===n.code&&(l=(new Date).getTime())}return{init:function(p){a&&(u.add(document,"keydown",f,!1),r.forEach((r,f)=>{u.add(r,"focus",r=>{(e(a)||a(p,r))&&function(e){if((new Date).getTime()-l>10)return;s.emit("slideFocusStart"),t.scrollLeft=0;const r=o.findIndex(n=>n.includes(e));n(r)&&(c.useDuration(0),i.index(r,0),s.emit("slideFocus"))}(f)},d)}))}}}function I(t){let e=t;function r(t){return n(t)?t:t.get()}return{get:function(){return e},set:function(n){e=r(n)},add:function(n){e+=r(n)},subtract:function(n){e-=r(n)}}}function M(n,t){const e="x"===n.scroll?function(n){return`translate3d(${n}px,0px,0px)`}:function(n){return`translate3d(0px,${n}px,0px)`},r=t.style;let o=null,i=!1;return{clear:function(){i||(r.transform="",t.getAttribute("style")||t.removeAttribute("style"))},to:function(t){if(i)return;const c=(u=n.direction(t),Math.round(100*u)/100);var u;c!==o&&(r.transform=e(c),o=c)},toggleActive:function(n){i=!n}}}function A(n,t,e,r,o,i,c,s,a){const d=u(o),l=u(o).reverse(),f=function(){const n=c[0];return g(m(l,n),e,!1)}().concat(function(){const n=t-c[0]-1;return g(m(d,n),-e,!0)}());function p(n,t){return n.reduce((n,t)=>n-o[t],t)}function m(n,t){return n.reduce((n,e)=>p(n,t)>0?n.concat([e]):n,[])}function g(o,c,u){const d=function(n){return i.map((e,o)=>({start:e-r[o]+.5+n,end:e+t-.5+n}))}(c);return o.map(t=>{const r=u?0:-e,o=u?e:0,i=u?"end":"start",c=d[t][i];return{index:t,loopPoint:c,slideLocation:I(-1),translate:M(n,a[t]),target:()=>s.get()>c?r:o}})}return{canLoop:function(){return f.every(({index:n})=>p(d.filter(t=>t!==n),t)<=.1)},clear:function(){f.forEach(n=>n.translate.clear())},loop:function(){f.forEach(n=>{const{target:t,translate:e,slideLocation:r}=n,o=t();o!==r.get()&&(e.to(o),r.set(o))})},loopPoints:f}}function F(n,t,r){let o,i=!1;return{init:function(c){r&&(o=new MutationObserver(n=>{i||(e(r)||r(c,n))&&function(n){for(const e of n)if("childList"===e.type){c.reInit(),t.emit("slidesChanged");break}}(n)}),o.observe(n,{childList:!0}))},destroy:function(){o&&o.disconnect(),i=!0}}}function O(n,t,e,r){const o={};let i,c=null,u=null,s=!1;return{init:function(){i=new IntersectionObserver(n=>{s||(n.forEach(n=>{const e=t.indexOf(n.target);o[e]=n}),c=null,u=null,e.emit("slidesInView"))},{root:n.parentElement,threshold:r}),t.forEach(n=>i.observe(n))},destroy:function(){i&&i.disconnect(),s=!0},get:function(n=!0){if(n&&c)return c;if(!n&&u)return u;const t=function(n){return f(o).reduce((t,e)=>{const r=parseInt(e),{isIntersecting:i}=o[r];return(n&&i||!n&&!i)&&t.push(r),t},[])}(n);return n&&(c=t),n||(u=t),t}}}function T(t,e,r,i,c,d,l,f,p){const{startEdge:m,endEdge:g,direction:h}=t,x=n(r);return{groupSlides:function(n){return x?function(n,t){return u(n).filter(n=>n%t===0).map(e=>n.slice(e,e+t))}(n,r):function(n){return n.length?u(n).reduce((t,r,u)=>{const x=s(t)||0,y=0===x,v=r===a(n),b=c[m]-d[x][m],S=c[m]-d[r][g],w=!i&&y?h(l):0,L=o(S-(!i&&v?h(f):0)-(b+w));return u&&L>e+p&&t.push(r),v&&t.push(n.length),t},[]).map((t,e,r)=>{const o=Math.max(r[e-1]||0);return n.slice(o,t)}):[]}(n)}}}function P(n,e,r,f,p,m,P){const{align:z,axis:H,direction:k,startIndex:V,loop:B,duration:C,dragFree:N,dragThreshold:R,inViewThreshold:j,slidesToScroll:G,skipSnaps:q,containScroll:U,watchResize:W,watchSlides:$,watchDrag:Q,watchFocus:X}=m,_={measure:function(n){const{offsetTop:t,offsetLeft:e,offsetWidth:r,offsetHeight:o}=n;return{top:t,right:e+r,bottom:t+o,left:e,width:r,height:o}}},Y=_.measure(e),J=r.map(_.measure),K=function(n,t){const e="rtl"===t,r="y"===n,o=!r&&e?-1:1;return{scroll:r?"y":"x",cross:r?"x":"y",startEdge:r?"top":e?"right":"left",endEdge:r?"bottom":e?"left":"right",measureSize:function(n){const{height:t,width:e}=n;return r?t:e},direction:function(n){return n*o}}}(H,k),Z=K.measureSize(Y),nn=function(n){return{measure:function(t){return n*(t/100)}}}(Z),tn=function(n,e){const r={start:function(){return 0},center:function(n){return o(n)/2},end:o};function o(n){return e-n}return{measure:function(o,i){return t(n)?r[n](o):n(e,o,i)}}}(z,Z),en=!B&&!!U,rn=B||!!U,{slideSizes:on,slideSizesWithGaps:cn,startGap:un,endGap:sn}=function(n,t,e,r,i,c){const{measureSize:u,startEdge:a,endEdge:l}=n,f=e[0]&&i,p=function(){if(!f)return 0;const n=e[0];return o(t[a]-n[a])}(),m=function(){if(!f)return 0;const n=c.getComputedStyle(s(r));return parseFloat(n.getPropertyValue(`margin-${l}`))}(),g=e.map(u),h=e.map((n,t,e)=>{const r=!t,o=d(e,t);return r?g[t]+p:o?g[t]+m:e[t+1][a]-n[a]}).map(o);return{slideSizes:g,slideSizesWithGaps:h,startGap:p,endGap:m}}(K,Y,J,r,rn,p),an=T(K,Z,G,B,Y,J,un,sn,2),{snaps:dn,snapsAligned:ln}=function(n,t,e,r,i){const{startEdge:c,endEdge:u}=n,{groupSlides:a}=i,d=a(r).map(n=>s(n)[u]-n[0][c]).map(o).map(t.measure),l=r.map(n=>e[c]-n[c]).map(n=>-o(n)),f=a(l).map(n=>n[0]).map((n,t)=>n+d[t]);return{snaps:l,snapsAligned:f}}(K,tn,Y,J,an),fn=-s(dn)+s(cn),{snapsContained:pn,scrollContainLimit:mn}=function(n,t,e,r,o){const i=x(-t+n,0),u=e.map((n,t)=>{const{min:r,max:o}=i,c=i.constrain(n),u=!t,s=d(e,t);return u?o:s||l(r,c)?r:l(o,c)?o:c}).map(n=>parseFloat(n.toFixed(3))),a=function(){const n=u[0],t=s(u);return x(u.lastIndexOf(n),u.indexOf(t)+1)}();function l(n,t){return c(n,t)<=1}return{snapsContained:function(){if(t<=n+o)return[i.max];if("keepSnaps"===r)return u;const{min:e,max:c}=a;return u.slice(e,c)}(),scrollContainLimit:a}}(Z,fn,ln,U,2),gn=en?pn:ln,{limit:hn}=function(n,t,e){const r=t[0];return{limit:x(e?r-n:s(t),r)}}(fn,gn,B),xn=y(a(gn),V,B),yn=xn.clone(),vn=u(r),bn=h(f,p,()=>(({dragHandler:n,scrollBody:t,scrollBounds:e,options:{loop:r}})=>{r||e.constrain(n.pointerDown()),t.seek()})(Hn),n=>(({scrollBody:n,translate:t,location:e,offsetLocation:r,previousLocation:o,scrollLooper:i,slideLooper:c,dragHandler:u,animation:s,eventHandler:a,scrollBounds:d,options:{loop:l}},f)=>{const p=n.settled(),m=!d.shouldConstrain(),g=l?p:p&&m,h=g&&!u.pointerDown();h&&s.stop();const x=e.get()*f+o.get()*(1-f);r.set(x),l&&(i.loop(n.direction()),c.loop()),t.to(r.get()),h&&a.emit("settle"),g||a.emit("scroll")})(Hn,n)),Sn=gn[xn.get()],wn=I(Sn),Ln=I(Sn),En=I(Sn),Dn=I(Sn),In=function(n,t,e,r,c,u){let s=0,a=0,d=c,l=u,f=n.get(),p=0;function m(n){return d=n,h}function g(n){return l=n,h}const h={direction:function(){return a},duration:function(){return d},velocity:function(){return s},seek:function(){const t=r.get()-n.get();let o=0;return d?(e.set(n),s+=t/d,s*=l,f+=s,n.add(s),o=f-p):(s=0,e.set(r),n.set(r),o=t),a=i(o),p=f,h},settled:function(){return o(r.get()-t.get())<.001},useBaseFriction:function(){return g(u)},useBaseDuration:function(){return m(c)},useFriction:g,useDuration:m};return h}(wn,En,Ln,Dn,C,.68),Mn=E(B,gn,fn,hn,Dn),An=function(n,t,e,r,o,i,c){function u(o){const u=o.distance,s=o.index!==t.get();i.add(u),u&&(r.duration()?n.start():(n.update(),n.render(1),n.update())),s&&(e.set(t.get()),t.set(o.index),c.emit("select"))}return{distance:function(n,t){u(o.byDistance(n,t))},index:function(n,e){const r=t.clone().set(n);u(o.byIndex(r.get(),e))}}}(bn,xn,yn,In,Mn,Dn,P),Fn=function(n){const{max:t,length:e}=n;return{get:function(n){return e?(n-t)/-e:0}}}(hn),On=g(),Tn=O(e,r,P,j),{slideRegistry:Pn}=function(n,t,e,r,o,i){const{groupSlides:c}=o,{min:u,max:f}=r;return{slideRegistry:function(){const r=c(i),o=!n||"keepSnaps"===t;return 1===e.length?[i]:o?r:r.slice(u,f).map((n,t,e)=>{const r=!t,o=d(e,t);return r?l(s(e[0])+1):o?l(a(i)-s(e)[0]+1,s(e)[0]):n})}()}}(en,U,gn,mn,an,vn),zn=D(n,r,Pn,An,In,On,P,X),Hn={ownerDocument:f,ownerWindow:p,eventHandler:P,containerRect:Y,slideRects:J,animation:bn,axis:K,dragHandler:v(K,n,f,p,Dn,b(K,p),wn,bn,An,In,Mn,xn,P,nn,N,R,q,.68,Q),eventStore:On,percentOfView:nn,index:xn,indexPrevious:yn,limit:hn,location:wn,offsetLocation:En,previousLocation:Ln,options:m,resizeHandler:S(e,P,p,r,K,W,_),scrollBody:In,scrollBounds:w(hn,En,Dn,In,nn),scrollLooper:L(fn,hn,En,[wn,En,Ln,Dn]),scrollProgress:Fn,scrollSnapList:gn.map(Fn.get),scrollSnaps:gn,scrollTarget:Mn,scrollTo:An,slideLooper:A(K,Z,fn,on,cn,dn,gn,En,r),slideFocus:zn,slidesHandler:F(e,P,$),slidesInView:Tn,slideIndexes:vn,slideRegistry:Pn,slidesToScroll:an,target:Dn,translate:M(K,e)};return Hn}Object.defineProperty(exports,"__esModule",{value:!0});const z={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function H(n){function t(n,t){return p(n,t||{})}const e={mergeOptions:t,optionsAtMedia:function(e){const r=e.breakpoints||{},o=f(r).filter(t=>n.matchMedia(t).matches).map(n=>r[n]).reduce((n,e)=>t(n,e),{});return t(e,o)},optionsMediaQueries:function(t){return t.map(n=>f(n.breakpoints||{})).reduce((n,t)=>n.concat(t),[]).map(n.matchMedia)}};return e}function k(n,e,r){const o=n.ownerDocument,i=o.defaultView,c=H(i),u=function(n){let t=[];return{init:function(e,r){return t=r.filter(({options:t})=>!1!==n.optionsAtMedia(t).active),t.forEach(t=>t.init(e,n)),r.reduce((n,t)=>Object.assign(n,{[t.name]:t}),{})},destroy:function(){t=t.filter(n=>n.destroy())}}}(c),s=g(),a=function(){let n,t={};function e(n){return t[n]||[]}const r={init:function(t){n=t},emit:function(t){return e(t).forEach(e=>e(n,t)),r},off:function(n,o){return t[n]=e(n).filter(n=>n!==o),r},on:function(n,o){return t[n]=e(n).concat([o]),r},clear:function(){t={}}};return r}(),{mergeOptions:d,optionsAtMedia:l,optionsMediaQueries:f}=c,{on:p,off:m,emit:h}=a,x=A;let y,v,b,S,w=!1,L=d(z,k.globalOptions),E=d(L),D=[];function I(t){const e=P(n,b,S,o,i,t,a);if(t.loop&&!e.slideLooper.canLoop()){return I(Object.assign({},t,{loop:!1}))}return e}function M(e,r){w||(L=d(L,e),E=l(L),D=r||D,function(){const{container:e,slides:r}=E,o=t(e)?n.querySelector(e):e;b=o||n.children[0];const i=t(r)?b.querySelectorAll(r):r;S=[].slice.call(i||b.children)}(),y=I(E),f([L,...D.map(({options:n})=>n)]).forEach(n=>s.add(n,"change",A)),E.active&&(y.translate.to(y.location.get()),y.animation.init(),y.slidesInView.init(),y.slideFocus.init(V),y.eventHandler.init(V),y.resizeHandler.init(V),y.slidesHandler.init(V),y.options.loop&&y.slideLooper.loop(),b.offsetParent&&S.length&&y.dragHandler.init(V),v=u.init(V,D)))}function A(n,t){const e=T();F(),M(d({startIndex:e},n),t),a.emit("reInit")}function F(){y.dragHandler.destroy(),y.eventStore.clear(),y.translate.clear(),y.slideLooper.clear(),y.resizeHandler.destroy(),y.slidesHandler.destroy(),y.slidesInView.destroy(),y.animation.destroy(),u.destroy(),s.clear()}function O(n,t,e){E.active&&!w&&(y.scrollBody.useBaseFriction().useDuration(!0===t?0:E.duration),y.scrollTo.index(n,e||0))}function T(){return y.index.get()}const V={canScrollNext:function(){return y.index.add(1).get()!==T()},canScrollPrev:function(){return y.index.add(-1).get()!==T()},containerNode:function(){return b},internalEngine:function(){return y},destroy:function(){w||(w=!0,s.clear(),F(),a.emit("destroy"),a.clear())},off:m,on:p,emit:h,plugins:function(){return v},previousScrollSnap:function(){return y.indexPrevious.get()},reInit:x,rootNode:function(){return n},scrollNext:function(n){O(y.index.add(1).get(),n,-1)},scrollPrev:function(n){O(y.index.add(-1).get(),n,1)},scrollProgress:function(){return y.scrollProgress.get(y.offsetLocation.get())},scrollSnapList:function(){return y.scrollSnapList},scrollTo:O,selectedScrollSnap:T,slideNodes:function(){return S},slidesInView:function(){return y.slidesInView.get()},slidesNotInView:function(){return y.slidesInView.get(!1)}};return M(e,r),setTimeout(()=>a.emit("init"),0),V}k.globalOptions=void 0,exports.default=k;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const n={active:!0,breakpoints:{},delay:4e3,jump:!1,playOnInit:!0,stopOnFocusIn:!0,stopOnInteraction:!0,stopOnMouseEnter:!1,stopOnLastSnap:!1,rootNode:null};function t(o={}){let e,i,r,s,a=null,l=0,u=!1,c=!1,p=!1,f=!1;function d(){r||(O()?p=!0:(u||i.emit("autoplay:play"),function(){const{ownerWindow:n}=i.internalEngine();n.clearTimeout(l),l=n.setTimeout(I,s[i.selectedScrollSnap()]),a=(new Date).getTime(),i.emit("autoplay:timerset")}(),u=!0))}function m(){r||(u&&i.emit("autoplay:stop"),function(){const{ownerWindow:n}=i.internalEngine();n.clearTimeout(l),l=0,a=null,i.emit("autoplay:timerstopped")}(),u=!1)}function y(){if(O())return p=u,m();p&&d()}function O(){const{ownerDocument:n}=i.internalEngine();return"hidden"===n.visibilityState}function g(){c||m()}function S(){c||d()}function w(){c=!0,m()}function E(){c=!1,d()}function I(){const{index:n}=i.internalEngine(),t=n.clone().add(1).get(),o=i.scrollSnapList().length-1,r=e.stopOnLastSnap&&t===o;if(i.canScrollNext()?i.scrollNext(f):i.scrollTo(0,f),i.emit("autoplay:select"),r)return m();d()}return{name:"autoplay",options:o,init:function(a,l){i=a;const{mergeOptions:u,optionsAtMedia:c}=l,p=u(n,t.globalOptions),O=u(p,o);if(e=c(O),i.scrollSnapList().length<=1)return;f=e.jump,r=!1,s=function(n,t){const o=n.scrollSnapList();return"number"==typeof t?o.map(()=>t):t(o,n)}(i,e.delay);const{eventStore:I,ownerDocument:v}=i.internalEngine(),b=!!i.internalEngine().options.watchDrag,D=function(n,t){const o=n.rootNode();return t&&t(o)||o}(i,e.rootNode);I.add(v,"visibilitychange",y),b&&i.on("pointerDown",g),b&&!e.stopOnInteraction&&i.on("pointerUp",S),e.stopOnMouseEnter&&I.add(D,"mouseenter",w),e.stopOnMouseEnter&&!e.stopOnInteraction&&I.add(D,"mouseleave",E),e.stopOnFocusIn&&i.on("slideFocusStart",m),e.stopOnFocusIn&&!e.stopOnInteraction&&I.add(i.containerNode(),"focusout",d),e.playOnInit&&d()},destroy:function(){i.off("pointerDown",g).off("pointerUp",S).off("slideFocusStart",m),m(),r=!0,u=!1},play:function(n){void 0!==n&&(f=n),d()},stop:function(){u&&m()},reset:function(){u&&d()},isPlaying:function(){return u},timeUntilNext:function(){return a?s[i.selectedScrollSnap()]-((new Date).getTime()-a):null}}}t.globalOptions=void 0,exports.default=t;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),r=require("../../embla-carousel-reactive-utils/esm/embla-carousel-reactive-utils.esm.js"),t=require("../../embla-carousel/esm/embla-carousel.esm.js");function u(s={},a=[]){const l=e.useRef(s),c=e.useRef(a),[n,o]=e.useState(),[i,f]=e.useState(),b=e.useCallback(()=>{n&&n.reInit(l.current,c.current)},[n]);return e.useEffect(()=>{r.areOptionsEqual(l.current,s)||(l.current=s,b())},[s,b]),e.useEffect(()=>{r.arePluginsEqual(c.current,a)||(c.current=a,b())},[a,b]),e.useEffect(()=>{if(r.canUseDOM()&&i){t.default.globalOptions=u.globalOptions;const e=t.default(i,l.current,c.current);return o(e),()=>e.destroy()}o(void 0)},[i,o]),[f,n]}u.globalOptions=void 0,exports.default=u;
|
package/dist/cjs/_bundled/embla-carousel-reactive-utils/esm/embla-carousel-reactive-utils.esm.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";function t(t){return function(t){return"[object Object]"===Object.prototype.toString.call(t)}(t)||Array.isArray(t)}function n(e,r){const o=Object.keys(e),i=Object.keys(r);if(o.length!==i.length)return!1;return JSON.stringify(Object.keys(e.breakpoints||{}))===JSON.stringify(Object.keys(r.breakpoints||{}))&&o.every(o=>{const i=e[o],c=r[o];return"function"==typeof i?`${i}`==`${c}`:t(i)&&t(c)?n(i,c):i===c})}function e(t){return t.concat().sort((t,n)=>t.name>n.name?1:-1).map(t=>t.options)}exports.areOptionsEqual=n,exports.arePluginsEqual=function(t,r){if(t.length!==r.length)return!1;const o=e(t),i=e(r);return o.every((t,e)=>n(t,i[e]))},exports.canUseDOM=function(){return!("undefined"==typeof window||!window.document||!window.document.createElement)},exports.sortAndMapPluginToOptions=e;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";exports.getNonce=function(){if("undefined"!=typeof __webpack_nonce__)return __webpack_nonce__};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../../_virtual/_tslib.js"),r=require("react"),t=require("./UI.js"),a=require("./sidecar.js");function c(e){var r=Object.create(null);return e&&Object.keys(e).forEach(function(t){if("default"!==t){var a=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,a.get?a:{enumerable:!0,get:function(){return e[t]}})}}),r.default=e,Object.freeze(r)}var s=c(r),u=s.forwardRef(function(r,c){return s.createElement(t.RemoveScroll,e.__assign({},r,{ref:c,sideCar:a.default}))});u.classNames=t.RemoveScroll.classNames,exports.default=u;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var e=require("../../../../_virtual/_tslib.js"),t=require("react"),n=require("../../../react-remove-scroll-bar/dist/es2015/component.js"),r=require("../../../react-style-singleton/dist/es2015/component.js"),a=require("./aggresiveCapture.js"),c=require("./handleScroll.js");function o(e){var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}var u=o(t),l=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},i=function(e){return[e.deltaX,e.deltaY]},s=function(e){return e&&"current"in e?e.current:e},f=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},d=0,v=[];function h(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}exports.RemoveScrollSideCar=function(t){var o=u.useRef([]),m=u.useRef([0,0]),g=u.useRef(),p=u.useState(d++)[0],b=u.useState(r.styleSingleton)[0],y=u.useRef(t);u.useEffect(function(){y.current=t},[t]),u.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(p));var n=e.__spreadArray([t.lockRef.current],(t.shards||[]).map(s),!0).filter(Boolean);return n.forEach(function(e){return e.classList.add("allow-interactivity-".concat(p))}),function(){document.body.classList.remove("block-interactivity-".concat(p)),n.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(p))})}}},[t.inert,t.lockRef.current,t.shards]);var k=u.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!y.current.allowPinchZoom;var n,r=l(e),a=m.current,o="deltaX"in e?e.deltaX:a[0]-r[0],u="deltaY"in e?e.deltaY:a[1]-r[1],i=e.target,s=Math.abs(o)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===s&&"range"===i.type)return!1;var f=window.getSelection(),d=f&&f.anchorNode;if(!!d&&(d===i||d.contains(i)))return!1;var v=c.locationCouldBeScrolled(s,i);if(!v)return!0;if(v?n=s:(n="v"===s?"h":"v",v=c.locationCouldBeScrolled(s,i)),!v)return!1;if(!g.current&&"changedTouches"in e&&(o||u)&&(g.current=n),!n)return!0;var h=g.current||n;return c.handleScroll(h,t,e,"h"===h?o:u)},[]),E=u.useCallback(function(e){var t=e;if(v.length&&v[v.length-1]===b){var n="deltaY"in t?i(t):l(t),r=o.current.filter(function(e){return e.name===t.type&&(e.target===t.target||t.target===e.shadowParent)&&(r=e.delta,a=n,r[0]===a[0]&&r[1]===a[1]);var r,a})[0];if(r&&r.should)t.cancelable&&t.preventDefault();else if(!r){var a=(y.current.shards||[]).map(s).filter(Boolean).filter(function(e){return e.contains(t.target)});(a.length>0?k(t,a[0]):!y.current.noIsolation)&&t.cancelable&&t.preventDefault()}}},[]),C=u.useCallback(function(e,t,n,r){var a={name:e,delta:t,target:n,should:r,shadowParent:h(n)};o.current.push(a),setTimeout(function(){o.current=o.current.filter(function(e){return e!==a})},1)},[]),S=u.useCallback(function(e){m.current=l(e),g.current=void 0},[]),w=u.useCallback(function(e){C(e.type,i(e),e.target,k(e,t.lockRef.current))},[]),R=u.useCallback(function(e){C(e.type,l(e),e.target,k(e,t.lockRef.current))},[]);u.useEffect(function(){return v.push(b),t.setCallbacks({onScrollCapture:w,onWheelCapture:w,onTouchMoveCapture:R}),document.addEventListener("wheel",E,a.nonPassive),document.addEventListener("touchmove",E,a.nonPassive),document.addEventListener("touchstart",S,a.nonPassive),function(){v=v.filter(function(e){return e!==b}),document.removeEventListener("wheel",E,a.nonPassive),document.removeEventListener("touchmove",E,a.nonPassive),document.removeEventListener("touchstart",S,a.nonPassive)}},[]);var P=t.removeScrollBar,j=t.inert;return u.createElement(u.Fragment,null,j?u.createElement(b,{styles:f(p)}):null,P?u.createElement(n.RemoveScrollBar,{noRelative:t.noRelative,gapMode:t.gapMode}):null)},exports.getDeltaXY=i,exports.getTouchXY=l;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var e=require("../../../../_virtual/_tslib.js"),r=require("react"),a=require("../../../react-remove-scroll-bar/dist/es2015/constants.js"),l=require("./medium.js"),s=require("../../../use-callback-ref/dist/es2015/useMergeRef.js");function o(e){var r=Object.create(null);return e&&Object.keys(e).forEach(function(a){if("default"!==a){var l=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(r,a,l.get?l:{enumerable:!0,get:function(){return e[a]}})}}),r.default=e,Object.freeze(r)}var t=o(r),n=function(){},i=t.forwardRef(function(r,a){var o=t.useRef(null),i=t.useState({onScrollCapture:n,onWheelCapture:n,onTouchMoveCapture:n}),c=i[0],u=i[1],d=r.forwardProps,f=r.children,m=r.className,v=r.removeScrollBar,g=r.enabled,h=r.shards,_=r.sideCar,b=r.noRelative,p=r.noIsolation,C=r.inert,R=r.allowPinchZoom,j=r.as,P=void 0===j?"div":j,w=r.gapMode,S=e.__rest(r,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),M=_,N=s.useMergeRefs([o,a]),O=e.__assign(e.__assign({},S),c);return t.createElement(t.Fragment,null,g&&t.createElement(M,{sideCar:l.effectCar,removeScrollBar:v,shards:h,noRelative:b,noIsolation:p,inert:C,setCallbacks:u,allowPinchZoom:!!R,lockRef:o,gapMode:w}),d?t.cloneElement(t.Children.only(f),e.__assign(e.__assign({},O),{ref:N})):t.createElement(P,e.__assign({},O,{className:m,ref:N}),f))});i.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},i.classNames={fullWidth:a.fullWidthClassName,zeroRight:a.zeroRightClassName},exports.RemoveScroll=i;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var e=!1;if("undefined"!=typeof window)try{var t=Object.defineProperty({},"passive",{get:function(){return e=!0,!0}});window.addEventListener("test",t,t),window.removeEventListener("test",t,t)}catch(t){e=!1}var n=!!e&&{passive:!1};exports.nonPassive=n;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var t=function(t,o){if(!(t instanceof Element))return!1;var e=window.getComputedStyle(t);return"hidden"!==e[o]&&!(e.overflowY===e.overflowX&&!function(t){return"TEXTAREA"===t.tagName}(t)&&"visible"===e[o])},o=function(o,e){return"v"===o?function(o){return t(o,"overflowY")}(e):function(o){return t(o,"overflowX")}(e)},e=function(t,o){return"v"===t?[(e=o).scrollTop,e.scrollHeight,e.clientHeight]:function(t){return[t.scrollLeft,t.scrollWidth,t.clientWidth]}(o);var e};exports.handleScroll=function(t,n,r,i,u){var l=function(t,o){return"h"===t&&"rtl"===o?-1:1}(t,window.getComputedStyle(n).direction),c=l*i,a=r.target,d=n.contains(a),f=!1,s=c>0,h=0,v=0;do{if(!a)break;var w=e(t,a),p=w[0],N=w[1]-w[2]-l*p;(p||N)&&o(t,a)&&(h+=N,v+=p);var b=a.parentNode;a=b&&b.nodeType===Node.DOCUMENT_FRAGMENT_NODE?b.host:b}while(!d&&a!==document.body||d&&(n.contains(a)||n===a));return(s&&Math.abs(h)<1||!s&&Math.abs(v)<1)&&(f=!0),f},exports.locationCouldBeScrolled=function(t,n){var r=n.ownerDocument,i=n;do{if("undefined"!=typeof ShadowRoot&&i instanceof ShadowRoot&&(i=i.host),o(t,i)){var u=e(t,i);if(u[1]>u[2])return!0}i=i.parentNode}while(i&&i!==r.body);return!1};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var e=require("../../../use-sidecar/dist/es2015/medium.js").createSidecarMedium();exports.effectCar=e;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./SideEffect.js"),r=require("./medium.js"),s=require("../../../use-sidecar/dist/es2015/exports.js").exportSidecar(r.effectCar,e.RemoveScrollSideCar);exports.default=s;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var t=require("react"),n=require("../../../react-style-singleton/dist/es2015/component.js"),e=require("./constants.js"),o=require("./utils.js");function c(t){var n=Object.create(null);return t&&Object.keys(t).forEach(function(e){if("default"!==e){var o=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(n,e,o.get?o:{enumerable:!0,get:function(){return t[e]}})}}),n.default=t,Object.freeze(n)}var r=c(t),a=n.styleSingleton(),i="data-scroll-locked",l=function(t,n,o,c){var r=t.left,a=t.top,l=t.right,s=t.gap;return void 0===o&&(o="margin"),"\n .".concat(e.noScrollbarsClassName," {\n overflow: hidden ").concat(c,";\n padding-right: ").concat(s,"px ").concat(c,";\n }\n body[").concat(i,"] {\n overflow: hidden ").concat(c,";\n overscroll-behavior: contain;\n ").concat([n&&"position: relative ".concat(c,";"),"margin"===o&&"\n padding-left: ".concat(r,"px;\n padding-top: ").concat(a,"px;\n padding-right: ").concat(l,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(s,"px ").concat(c,";\n "),"padding"===o&&"padding-right: ".concat(s,"px ").concat(c,";")].filter(Boolean).join(""),"\n }\n \n .").concat(e.zeroRightClassName," {\n right: ").concat(s,"px ").concat(c,";\n }\n \n .").concat(e.fullWidthClassName," {\n margin-right: ").concat(s,"px ").concat(c,";\n }\n \n .").concat(e.zeroRightClassName," .").concat(e.zeroRightClassName," {\n right: 0 ").concat(c,";\n }\n \n .").concat(e.fullWidthClassName," .").concat(e.fullWidthClassName," {\n margin-right: 0 ").concat(c,";\n }\n \n body[").concat(i,"] {\n ").concat(e.removedBarSizeVariable,": ").concat(s,"px;\n }\n")},s=function(){var t=parseInt(document.body.getAttribute(i)||"0",10);return isFinite(t)?t:0},u=function(){r.useEffect(function(){return document.body.setAttribute(i,(s()+1).toString()),function(){var t=s()-1;t<=0?document.body.removeAttribute(i):document.body.setAttribute(i,t.toString())}},[])};exports.RemoveScrollBar=function(t){var n=t.noRelative,e=t.noImportant,c=t.gapMode,i=void 0===c?"margin":c;u();var s=r.useMemo(function(){return o.getGapWidth(i)},[i]);return r.createElement(a,{styles:l(s,!n,i,e?"":"!important")})},exports.lockAttribute=i,exports.useLockAttribute=u;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";exports.fullWidthClassName="width-before-scroll-bar",exports.noScrollbarsClassName="with-scroll-bars-hidden",exports.removedBarSizeVariable="--removed-body-scroll-bar-size",exports.zeroRightClassName="right-scroll-bar-position";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var t={left:0,top:0,right:0,gap:0},n=function(t){return parseInt(t||"",10)||0};exports.getGapWidth=function(i){if(void 0===i&&(i="margin"),"undefined"==typeof window)return t;var e=function(t){var i=window.getComputedStyle(document.body),e=i["padding"===t?"paddingLeft":"marginLeft"],d=i["padding"===t?"paddingTop":"marginTop"],r=i["padding"===t?"paddingRight":"marginRight"];return[n(e),n(d),n(r)]}(i),d=document.documentElement.clientWidth,r=window.innerWidth;return{left:e[0],top:e[1],right:e[2],gap:Math.max(0,r-d+e[2]-e[0])}},exports.zeroGap=t;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var n=require("./hook.js");exports.styleSingleton=function(){var t=n.styleHookSingleton();return function(n){var e=n.styles,r=n.dynamic;return t(e,r),null}};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var e=require("react"),t=require("./singleton.js");function r(e){var t=Object.create(null);return e&&Object.keys(e).forEach(function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}}),t.default=e,Object.freeze(t)}var n=r(e);exports.styleHookSingleton=function(){var e=t.stylesheetSingleton();return function(t,r){n.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var e=require("../../../get-nonce/dist/es2015/index.js");exports.stylesheetSingleton=function(){var t=0,n=null;return{add:function(r){var o,d;0==t&&(n=function(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var n=e.getNonce();return n&&t.setAttribute("nonce",n),t}())&&(d=r,(o=n).styleSheet?o.styleSheet.cssText=d:o.appendChild(document.createTextNode(d)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(n)),t++},remove:function(){! --t&&n&&(n.parentNode&&n.parentNode.removeChild(n),n=null)}}};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";exports.assignRef=function(t,n){return"function"==typeof t?t(n):t&&(t.current=n),t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var e=require("react"),r=require("./assignRef.js"),t=require("./useRef.js");function n(e){var r=Object.create(null);return e&&Object.keys(e).forEach(function(t){if("default"!==t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}}),r.default=e,Object.freeze(r)}var f=n(e),u="undefined"!=typeof window?f.useLayoutEffect:f.useEffect,a=new WeakMap;exports.useMergeRefs=function(e,n){var f=t.useCallbackRef(null,function(t){return e.forEach(function(e){return r.assignRef(e,t)})});return u(function(){var t=a.get(f);if(t){var n=new Set(t),u=new Set(e),c=f.current;n.forEach(function(e){u.has(e)||r.assignRef(e,null)}),u.forEach(function(e){n.has(e)||r.assignRef(e,c)})}a.set(f,e)},[e]),f};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var e=require("react");exports.useCallbackRef=function(a,r){var c=e.useState(function(){return{value:a,callback:r,facade:{get current(){return c.value},set current(e){var a=c.value;a!==e&&(c.value=e,c.callback(e,a))}}}})[0];return c.callback=r,c.facade};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var e=require("../../../../_virtual/_tslib.js");function r(e){var r=Object.create(null);return e&&Object.keys(e).forEach(function(t){if("default"!==t){var i=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,i.get?i:{enumerable:!0,get:function(){return e[t]}})}}),r.default=e,Object.freeze(r)}var t=r(require("react")),i=function(r){var i=r.sideCar,a=e.__rest(r,["sideCar"]);if(!i)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=i.read();if(!n)throw new Error("Sidecar medium not found");return t.createElement(n,e.__assign({},a))};i.isSideCarExport=!0,exports.exportSidecar=function(e,r){return e.useMedium(r),i};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var n=require("../../../../_virtual/_tslib.js");function r(n){return n}exports.createSidecarMedium=function(e){void 0===e&&(e={});var t=function(n,e){void 0===e&&(e=r);var t=[],u=!1;return{read:function(){if(u)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return t.length?t[t.length-1]:n},useMedium:function(n){var r=e(n,u);return t.push(r),function(){t=t.filter(function(n){return n!==r})}},assignSyncMedium:function(n){for(u=!0;t.length;){var r=t;t=[],r.forEach(n)}t={push:function(r){return n(r)},filter:function(){return t}}},assignMedium:function(n){u=!0;var r=[];if(t.length){var e=t;t=[],e.forEach(n),r=t}var i=function(){var e=r;r=[],e.forEach(n)},o=function(){return Promise.resolve().then(i)};o(),t={push:function(n){r.push(n),o()},filter:function(n){return r=r.filter(n),t}}}}}(null);return t.options=n.__assign({async:!0,ssr:!1},e),t};
|