@inntechcorp/it-design 4.0.0-beta.5 → 4.0.0-beta.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +71 -0
- package/MIGRATION.md +16 -1
- package/dist/cjs/_bundled/@radix-ui/primitive/dist/index.js +1 -1
- package/dist/cjs/_bundled/@radix-ui/react-compose-refs/dist/index.js +1 -1
- package/dist/cjs/_bundled/@radix-ui/react-context/dist/index.js +1 -1
- package/dist/cjs/_bundled/@radix-ui/react-dialog/dist/index.js +1 -1
- package/dist/cjs/_bundled/@radix-ui/react-dismissable-layer/dist/index.js +1 -1
- package/dist/cjs/_bundled/@radix-ui/react-focus-guards/dist/index.js +1 -1
- package/dist/cjs/_bundled/@radix-ui/react-focus-scope/dist/index.js +1 -1
- package/dist/cjs/_bundled/@radix-ui/react-id/dist/index.js +1 -1
- package/dist/cjs/_bundled/@radix-ui/react-portal/dist/index.js +1 -1
- package/dist/cjs/_bundled/@radix-ui/react-presence/dist/index.js +1 -1
- package/dist/cjs/_bundled/@radix-ui/react-primitive/dist/index.js +1 -1
- package/dist/cjs/_bundled/@radix-ui/react-slot/dist/index.js +1 -1
- package/dist/cjs/_bundled/@radix-ui/react-use-callback-ref/dist/index.js +1 -1
- package/dist/cjs/_bundled/@radix-ui/react-use-controllable-state/dist/index.js +1 -1
- package/dist/cjs/_bundled/@radix-ui/react-use-effect-event/dist/index.js +1 -0
- package/dist/cjs/back-top/index.js +1 -1
- 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 -1
- package/dist/cjs/blocks/casino-featured/index.js +1 -1
- package/dist/cjs/blocks/game-box/index.js +1 -1
- package/dist/cjs/blocks/game-carousel/index.js +1 -1
- package/dist/cjs/blocks/game-providers/logos.js +1 -1
- package/dist/cjs/blocks/game-shell/useDrawerChrome.js +1 -1
- package/dist/cjs/blocks/header/index.js +1 -1
- package/dist/cjs/blocks/login/index.js +1 -0
- package/dist/cjs/blocks/mega-menu/index.js +1 -1
- package/dist/cjs/blocks/multiple-jackpots/index.js +1 -1
- package/dist/cjs/blocks/signup/index.js +1 -0
- package/dist/cjs/blocks/slider/index.js +1 -1
- package/dist/cjs/blocks/tournaments/index.js +1 -1
- package/dist/cjs/blocks/user-hub/bonus.js +1 -1
- package/dist/cjs/blocks/user-hub/profile.js +1 -1
- package/dist/cjs/blocks/user-hub/table.js +1 -1
- package/dist/cjs/context/PortalDocumentContext.js +1 -1
- package/dist/cjs/context-menu/ContextMenu.js +1 -1
- package/dist/cjs/dialog/Dialog.js +1 -1
- package/dist/cjs/dropdown-menu/CheckIcon.js +1 -1
- package/dist/cjs/dropdown-menu/processChildren.js +1 -1
- package/dist/cjs/dropdown-menu/useMenuItemChrome.js +1 -1
- package/dist/cjs/dropdown-menu/useSubMenuRegistry.js +1 -1
- package/dist/cjs/floating/createFloatingTrigger.js +1 -1
- package/dist/cjs/helpers/phone/usePhoneCountry.js +1 -1
- package/dist/cjs/helpers/theme/createTheme.js +1 -1
- package/dist/cjs/helpers/theme/importShadcnTheme.js +1 -1
- package/dist/cjs/hooks/useFocusTrap.js +1 -1
- package/dist/cjs/hooks/useLoadMoreSentinel.js +1 -1
- package/dist/cjs/hooks/useOnESCKeyDown.js +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/modal/container/ModalContainer.js +1 -1
- package/dist/cjs/modal/index.js +1 -1
- package/dist/cjs/router/ITDLink.js +1 -1
- package/dist/cjs/router/context.js +1 -1
- package/dist/cjs/router/matchActive.js +1 -1
- package/dist/cjs/toast/index.js +1 -1
- package/dist/css/accordion.css +2 -2
- package/dist/css/alert.css +1 -1
- package/dist/css/announcement-bar.css +1 -1
- package/dist/css/auth-page.css +3 -3
- package/dist/css/avatar.css +1 -1
- package/dist/css/back-top.css +1 -1
- package/dist/css/badge.css +85 -81
- package/dist/css/base.css +22 -16
- package/dist/css/block-form.css +5 -3
- package/dist/css/blocks-shared.css +8 -6
- package/dist/css/button-group.css +1 -1
- package/dist/css/button.css +8 -6
- package/dist/css/calendar.css +1 -1
- package/dist/css/card.css +1 -1
- package/dist/css/casino-featured.css +1 -1
- package/dist/css/chart.css +1 -1
- package/dist/css/checkbox.css +2 -2
- package/dist/css/code-input.css +5 -5
- package/dist/css/color-input.css +1 -1
- package/dist/css/coming-soon.css +1 -1
- package/dist/css/common.css +1 -1
- package/dist/css/components.css +1 -1
- package/dist/css/cropper.css +10 -6
- package/dist/css/datepicker.css +1 -1
- package/dist/css/default-avatar.css +1 -1
- package/dist/css/dialog.css +1 -1
- package/dist/css/dropdown-menu.css +1 -1
- package/dist/css/field.css +1 -1
- package/dist/css/filter-tabs.css +1 -1
- package/dist/css/flex.css +1 -1
- package/dist/css/floating.css +1 -1
- package/dist/css/footer.css +1 -1
- package/dist/css/form.css +1 -1
- package/dist/css/game-box.css +3 -3
- package/dist/css/game-carousel.css +1 -1
- package/dist/css/game-categories.css +1 -1
- package/dist/css/game-filter.css +1 -1
- package/dist/css/game-navigator.css +1 -1
- package/dist/css/game-providers.css +1 -1
- package/dist/css/game-search.css +1 -1
- package/dist/css/game-shell.css +3 -1
- package/dist/css/header.css +3 -3
- package/dist/css/help.css +1 -1
- package/dist/css/home-sections.css +1 -1
- package/dist/css/hovercard.css +1 -1
- package/dist/css/hstrip.css +1 -1
- package/dist/css/html-header.css +1 -1
- package/dist/css/image.css +1 -1
- package/dist/css/input.css +1 -1
- package/dist/css/label.css +1 -1
- package/dist/css/last-winners.css +1 -1
- package/dist/css/login.css +1 -1
- package/dist/css/mega-menu.css +3 -1
- package/dist/css/min-width-gate.css +1 -1
- package/dist/css/mobile-bottom-nav.css +1 -1
- package/dist/css/modal.css +8 -8
- package/dist/css/multiple-jackpots.css +3 -1
- package/dist/css/notifications-panel.css +2 -2
- package/dist/css/page.css +2 -2
- package/dist/css/popover.css +1 -1
- package/dist/css/post-viewer.css +1 -1
- package/dist/css/progress.css +1 -1
- package/dist/css/promotions-grid.css +3 -3
- package/dist/css/properties.css +1 -1
- package/dist/css/radio.css +1 -1
- package/dist/css/raffle.css +1 -1
- package/dist/css/rangepicker.css +1 -1
- package/dist/css/reset.css +2 -2
- package/dist/css/result.css +1 -1
- package/dist/css/select.css +1 -1
- package/dist/css/separator.css +1 -1
- package/dist/css/sheet.css +1 -1
- package/dist/css/signup.css +1 -1
- package/dist/css/skeleton.css +2 -2
- package/dist/css/slider.css +1 -1
- package/dist/css/spin.css +1 -1
- package/dist/css/stat-card.css +1 -1
- package/dist/css/sub-page-header.css +1 -1
- package/dist/css/svg-loader.css +1 -1
- package/dist/css/switch.css +1 -1
- package/dist/css/table.css +6 -4
- package/dist/css/tabs.css +1 -1
- package/dist/css/textarea.css +1 -1
- package/dist/css/toggle-group.css +1 -1
- package/dist/css/tooltip.css +1 -1
- package/dist/css/tournaments.css +8 -7
- package/dist/css/upload.css +1 -1
- package/dist/css/user-hub.css +2 -2
- package/dist/css/utilities.css +1 -1
- package/dist/css/vendor.css +4 -1
- package/dist/es/_bundled/@radix-ui/primitive/dist/index.js +1 -1
- package/dist/es/_bundled/@radix-ui/react-compose-refs/dist/index.js +1 -1
- package/dist/es/_bundled/@radix-ui/react-context/dist/index.js +1 -1
- package/dist/es/_bundled/@radix-ui/react-dialog/dist/index.js +1 -1
- package/dist/es/_bundled/@radix-ui/react-dismissable-layer/dist/index.js +1 -1
- package/dist/es/_bundled/@radix-ui/react-focus-guards/dist/index.js +1 -1
- package/dist/es/_bundled/@radix-ui/react-focus-scope/dist/index.js +1 -1
- package/dist/es/_bundled/@radix-ui/react-id/dist/index.js +1 -1
- package/dist/es/_bundled/@radix-ui/react-portal/dist/index.js +1 -1
- package/dist/es/_bundled/@radix-ui/react-presence/dist/index.js +1 -1
- package/dist/es/_bundled/@radix-ui/react-primitive/dist/index.js +1 -1
- package/dist/es/_bundled/@radix-ui/react-slot/dist/index.js +1 -1
- package/dist/es/_bundled/@radix-ui/react-use-callback-ref/dist/index.js +1 -1
- package/dist/es/_bundled/@radix-ui/react-use-controllable-state/dist/index.js +1 -1
- package/dist/es/_bundled/@radix-ui/react-use-effect-event/dist/index.js +1 -0
- package/dist/es/back-top/index.js +1 -1
- 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 -1
- package/dist/es/blocks/casino-featured/index.js +1 -1
- package/dist/es/blocks/game-box/index.js +1 -1
- package/dist/es/blocks/game-carousel/index.js +1 -1
- package/dist/es/blocks/game-providers/logos.js +1 -1
- package/dist/es/blocks/game-shell/useDrawerChrome.js +1 -1
- package/dist/es/blocks/header/index.js +1 -1
- package/dist/es/blocks/login/index.js +1 -0
- package/dist/es/blocks/mega-menu/index.js +1 -1
- package/dist/es/blocks/multiple-jackpots/index.js +1 -1
- package/dist/es/blocks/signup/index.js +1 -0
- package/dist/es/blocks/slider/index.js +1 -1
- package/dist/es/blocks/tournaments/index.js +1 -1
- package/dist/es/blocks/user-hub/bonus.js +1 -1
- package/dist/es/blocks/user-hub/cashier.js +1 -1
- package/dist/es/blocks/user-hub/history.js +1 -1
- package/dist/es/blocks/user-hub/profile.js +1 -1
- package/dist/es/blocks/user-hub/raffles.js +1 -1
- package/dist/es/blocks/user-hub/table.js +1 -1
- package/dist/es/context/ITDContext.js +1 -1
- package/dist/es/context/PortalDocumentContext.js +1 -1
- package/dist/es/context-menu/ContextMenu.js +1 -1
- package/dist/es/dialog/Dialog.js +1 -1
- package/dist/es/dropdown-menu/CheckIcon.js +1 -1
- package/dist/es/dropdown-menu/processChildren.js +1 -1
- package/dist/es/dropdown-menu/useMenuItemChrome.js +1 -1
- package/dist/es/dropdown-menu/useSubMenuRegistry.js +1 -1
- package/dist/es/floating/createFloatingTrigger.js +1 -1
- package/dist/es/helpers/phone/usePhoneCountry.js +1 -1
- package/dist/es/helpers/theme/createTheme.js +1 -1
- package/dist/es/helpers/theme/importShadcnTheme.js +1 -1
- package/dist/es/hooks/useFocusTrap.js +1 -1
- package/dist/es/hooks/useLoadMoreSentinel.js +1 -1
- package/dist/es/hooks/useOnESCKeyDown.js +1 -1
- package/dist/es/index.js +1 -1
- package/dist/es/modal/container/ModalContainer.js +1 -1
- package/dist/es/modal/index.js +1 -1
- package/dist/es/page/blocks.js +1 -1
- package/dist/es/page/blocks.query.js +1 -1
- package/dist/es/page/editor/theme.js +1 -1
- package/dist/es/router/ITDLink.js +1 -1
- package/dist/es/router/context.js +1 -1
- package/dist/es/router/matchActive.js +1 -1
- package/dist/es/toast/index.js +1 -1
- package/dist/global.css +187 -155
- package/dist/index.d.ts +667 -186
- 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 +8 -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 +21 -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 +4 -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 +6 -0
- package/dist/types/blocks/mega-menu/index.d.ts +4 -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 +186 -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 +36 -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 +29 -35
- package/dist/cjs/_bundled/@radix-ui/react-use-escape-keydown/dist/index.js +0 -1
- package/dist/es/_bundled/@radix-ui/react-use-escape-keydown/dist/index.js +0 -1
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { AuthPage as default, AuthPageTitle, AuthPageSeparator, ForceChangePassword, ResetPassword, EmailVerification } from '../../../index';
|
|
2
|
+
export type { AuthPageProps, AuthPageTitleProps, ForceChangePasswordProps, ForceChangePasswordValues, ResetPasswordProps, ResetPasswordValues, EmailVerificationProps, EmailVerificationState } from '../../../index';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { default as GameShellSettings } from './blocks/game-shell/Settings';
|
|
2
|
+
export { default as GameShellSwipeHint } from './blocks/game-shell/SwipeHint';
|
|
3
|
+
export { default as GameShellBrowse } from './blocks/game-shell/Browse';
|
|
4
|
+
export { default as CasinoFeatured, CasinoFeaturedWinners } from '../../../index';
|
|
5
|
+
export type { GameShellSettingsProps, GameShellSettingsAction } from './blocks/game-shell/Settings';
|
|
6
|
+
export type { GameShellSwipeHintProps } from './blocks/game-shell/SwipeHint';
|
|
7
|
+
export type {
|
|
8
|
+
CasinoFeaturedProps, CasinoFeaturedItem, CasinoFeaturedTournament, CasinoWinnersProps } from '../../../index';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DefaultAvatar as default } from '../../../index';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export { default as PageRenderer } from './page';
|
|
2
|
+
export {
|
|
3
|
+
PageProvider, usePageContext, useActionProps, normalizeAction, actionHasTarget, pageBlocks, pageKey, blockName, BLOCK_MANIFEST, BLOCK_ENTRIES, KNOWN_BLOCKS, PAGE_TYPES, pageTypeLabel, blocksForPageType, applySampleImages, applySampleRefs, sampleAnswer, sampleArt, sampleSlider, applyLayout, } from './page';
|
|
4
|
+
export type { SampleSource, PageLayout, PageLayoutPages } from './page';
|
|
5
|
+
export {
|
|
6
|
+
BlockForm, BlockPreview, CodeEditor, findCssError, resolveSiteTheme, SITE_THEME_FIELDS, SITE_THEME_DEFAULTS, defaultData, readField, writeField, useEditorBridge, editableBlock, dropTargetAt, moveIndex, arrayMove, wrap, unwrap, PAGE_EDITOR_CHANNEL, PAGE_EDITOR_PROTOCOL, PageCustomCode, PageBackground, PAGE_BACKGROUND_FIELDS, pageBackgroundFields, pageChecks, PAGE_SETTLE_DEADLINE, worstLevel, decodeCustomCode, parseCustomCode, pageVisibility, useViewer, } from './page';
|
|
7
|
+
export type {
|
|
8
|
+
BlockFormProps, BlockPreviewProps, CodeEditorProps, SiteThemeSettings, ResolvedSiteTheme, FieldOption, FieldSchema, FieldsSchema, FieldSource, EditorBridge, EditorBridgeOptions, EditorCommand, EditorEvent, EditorEnvelope, EditorRect, SiteChromeSettings, EditorBlockRect, DropTarget, } from './page';
|
|
9
|
+
export { default as ALink } from './alink';
|
|
10
|
+
|
|
11
|
+
/* THE ROUTING SEAM. Wire `router` on ITDProvider to hand ITD your router;
|
|
12
|
+
leave it unset and links are plain anchors reading the window. */
|
|
13
|
+
export {
|
|
14
|
+
ITDRouterContext, useITDRouterAdapter, useITDLocation, useITDNavigate, useITDHref, useITDSearchParams, matchActive, pathnameOf, ITDLink, } from './router';
|
|
15
|
+
export type {
|
|
16
|
+
ITDLocation, ITDNavigateOptions, ITDLinkRenderProps, ITDRouterAdapter, ITDLinkProps, MatchActiveOptions, } from './router';
|
|
17
|
+
export { default as Spin } from './spin';
|
|
18
|
+
|
|
19
|
+
// ---- Site blocks (the CMS page-builder components; see lib/SITE-BLOCKS-CONTRACT.md) ----
|
|
20
|
+
export { default as GameBox } from '../../../index';
|
|
21
|
+
export type { GameBoxProps, GameBoxLiveData } from '../../../index';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { default as MobileGameCategories } from './blocks/game-categories/Mobile';
|
|
2
|
+
export { default as MobileGameSearch } from '../../../index';
|
|
3
|
+
export type { MobileGameCategoriesProps } from './blocks/game-categories/Mobile';
|
|
4
|
+
export type { MobileGameSearchProps } from '../../../index';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export type { HubPayLogo, HubPayMethod, HubPayFilterOption, HubWdAccount, HubPayField, HubTypeFieldMap, } from './blocks/user-hub/cashier';
|
|
2
|
+
/* auth blocks: the sign-in/sign-up/completion panels and the legacy auth
|
|
3
|
+
page. Public API - consumers reach them from the barrel or lazily via
|
|
4
|
+
`@inntechcorp/it-design/blocks/<name>`. */
|
|
5
|
+
export { default as LoginPanel } from '../../../index';
|
|
6
|
+
export type { LoginPanelProps, LoginTexts, LoginCredentials, LoginIdentifier, LoginAlternate, LoginStep, PasswordlessChannel } from '../../../index';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { default as AnnouncementBar } from './announcement-bar';
|
|
2
|
+
export type { AnnouncementBarProps, AnnouncementBarHideMode } from './announcement-bar';
|
|
3
|
+
export { default as MegaMenu } from '../../../index';
|
|
4
|
+
export type { MegaMenuProps, MegaMenuEntry, MegaMenuLink } from '../../../index';
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
export { trCalendarLocale as trCalendar, enCalendar as enCalendarLocale };
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated Renamed to {@link locales}. `resources` is kept as an alias for
|
|
5
|
+
* back-compat during the v4 beta and will be removed before the stable release.
|
|
6
|
+
*/
|
|
7
|
+
export const resources = locales;
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* CONTEXT PROVIDER
|
|
11
|
+
*/
|
|
12
|
+
export { ITDProvider, useITD } from './context/ITDContext';
|
|
13
|
+
export { FormDefaultsContext, useDefaultVariant } from './context/FormDefaultsContext';
|
|
14
|
+
export type { FormDefaults } from './context/FormDefaultsContext';
|
|
15
|
+
export { PortalDocumentProvider, usePortalDocument } from './context/PortalDocumentContext';
|
|
16
|
+
export { defineITDConfig } from './helpers/config/defineITDConfig';
|
|
17
|
+
export type { ITDInitConfig } from './helpers/config/defineITDConfig';
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* CONTEXT
|
|
21
|
+
*/
|
|
22
|
+
export { default as ITDContext } from './context/ITDContext';
|
|
23
|
+
export { default as ITDThemeProvider } from './context/ITDThemeProvider';
|
|
24
|
+
export type { ITDTheme } from './types/Theme';
|
|
25
|
+
export {
|
|
26
|
+
defineTokenSet, resolveTokenSet, validateTokenSet, TokenSetError, } from './helpers/theme/tokenSet';
|
|
27
|
+
export type { TokenSet, TokenDef } from './helpers/theme/tokenSet';
|
|
28
|
+
export { importShadcnTheme } from './helpers/theme/importShadcnTheme';
|
|
29
|
+
export type { ShadcnImportResult, ITDImportConfig } from './helpers/theme/importShadcnTheme';
|
|
30
|
+
export { default as lightTheme } from './helpers/theme/light';
|
|
31
|
+
export { default as darkTheme } from './helpers/theme/dark';
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* HELPERS
|
|
35
|
+
*/
|
|
36
|
+
export * from './helpers';
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* HOOKS
|
|
40
|
+
*/
|
|
41
|
+
export * from './hooks';
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* HTML
|
|
45
|
+
*/
|
|
46
|
+
export * from './html/header';
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* ICONS
|
|
50
|
+
*/
|
|
51
|
+
export * from './icons';
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* UTILS
|
|
55
|
+
*/
|
|
56
|
+
export { cn } from './utils/cn';
|
|
57
|
+
export { default as InlineSVGCached } from './utils/InlineSVGCached';
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* FORWARDED REF COMPONENTS
|
|
61
|
+
*/
|
|
62
|
+
export { default as Select, SelectItem, SelectGroup, SelectLabel, SelectSeparator } from './select';
|
|
63
|
+
export { default as Form } from './form';
|
|
64
|
+
export { default as Checkbox } from './checkbox';
|
|
65
|
+
export { default as Accordion } from './accordion/index';
|
|
66
|
+
export { default as Calendar } from './calendar';
|
|
67
|
+
export { default as DatePicker } from './datepicker';
|
|
68
|
+
export { default as RangePicker } from './rangepicker';
|
|
69
|
+
export { default as ColorInput } from './color-input';
|
|
70
|
+
export { default as Input } from './input';
|
|
71
|
+
export { default as CodeInput } from './code-input';
|
|
72
|
+
export { default as TextArea } from './textarea';
|
|
73
|
+
export { default as Switch } from './switch';
|
|
74
|
+
export { default as Upload } from './upload';
|
|
75
|
+
export { default as ImageCropper } from './cropper';
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* COMPONENTS (HAS SUB COMPONENTS)
|
|
79
|
+
*/
|
|
80
|
+
export { default as ModalManager } from './modal';
|
|
81
|
+
export { Toaster } from './toast';
|
|
82
|
+
export { toast } from 'sonner';
|
|
83
|
+
export { useModal, useModalContent } from './modal';
|
|
84
|
+
export { RadioGroup, RadioGroupItem } from './radio';
|
|
85
|
+
export { ToggleGroup, ToggleGroupItem } from './toggle-group';
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* COMPONENTS
|
|
89
|
+
*/
|
|
90
|
+
export { default as Image } from './image';
|
|
91
|
+
export { default as ConsoleLog } from './logger';
|
|
92
|
+
export { default as Button } from './button';
|
|
93
|
+
export { default as ButtonGroup, ButtonGroupText } from './button-group';
|
|
94
|
+
export type {
|
|
95
|
+
ButtonGroupProps, ButtonGroupTextProps, ButtonGroupOrientation, ButtonGroupVariant, } from './types/ButtonGroupProps';
|
|
96
|
+
export { default as Badge } from './badge';
|
|
97
|
+
export {
|
|
98
|
+
DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuCheckboxItem, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSub, DropdownMenuSubTrigger, DropdownMenuSubContent, } from './dropdown-menu';
|
|
99
|
+
export {
|
|
100
|
+
ContextMenu, ContextMenuTrigger, ContextMenuContent, ContextMenuItem, ContextMenuLabel, ContextMenuSeparator, ContextMenuCheckboxItem, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSub, ContextMenuSubTrigger, ContextMenuSubContent, } from './context-menu';
|
|
101
|
+
export { default as Alert, AlertTitle, AlertDescription } from './alert/index';
|
|
102
|
+
export { default as Result } from './result';
|
|
103
|
+
export { default as StatCard } from './stat-card';
|
|
104
|
+
export { default as LineChart } from './chart';
|
|
105
|
+
export { default as ComingSoon } from './coming-soon';
|
|
106
|
+
export { default as PromotionsGrid } from '../../../index';
|
|
107
|
+
export type { SvgToPngOptions } from './helpers/image/SVGUrlToPNGDataUrl';
|
|
108
|
+
export type {
|
|
109
|
+
GameShellBrowseProps, GameBrowseTab, GameBrowseGame, GameBrowseProvider, GameBrowseJackpot, GameBrowseWinner, } from './blocks/game-shell/Browse';
|
|
110
|
+
export { default as BackTop } from './back-top';
|
|
111
|
+
export { default as Progress } from './progress';
|
|
112
|
+
export { default as Skeleton } from './skeleton';
|
|
113
|
+
export type { SkeletonProps, SkeletonVariant, SkeletonAnimation } from './skeleton';
|
|
114
|
+
export { default as Amount, MaskProvider, useAmountMask } from './amount';
|
|
115
|
+
export type { AmountProps, MaskProviderProps, AmountMaskContextValue } from './amount';
|
|
116
|
+
export { default as TinyScrollbar } from './tinyscrollbar';
|
|
117
|
+
export { Tabs, TabsList, TabsTrigger, TabsContent } from './tabs';
|
|
118
|
+
export { Avatar, AvatarImage, AvatarFallback } from './avatar';
|
|
119
|
+
export { default as Label } from './label';
|
|
120
|
+
export { default as Separator } from './separator';
|
|
121
|
+
export {
|
|
122
|
+
Field, FieldGroup, FieldLabel, FieldDescription, FieldSeparator, FieldSet, FieldLegend, FieldContent, FieldTitle, FieldError, } from './field';
|
|
123
|
+
export {
|
|
124
|
+
Card, CardHeader, CardTitle, CardDescription, CardAction, CardTabs, CardContent, CardFooter, } from './card';
|
|
125
|
+
export { Popover, PopoverTrigger, PopoverContent } from './popover';
|
|
126
|
+
export { Tooltip, TooltipTrigger, TooltipContent } from './tooltip';
|
|
127
|
+
export { HoverCard, HoverCardTrigger, HoverCardContent } from './hovercard';
|
|
128
|
+
export {
|
|
129
|
+
Dialog, DialogTrigger, DialogContent, DialogHeader, DialogTitle, DialogDescription, DialogFooter, DialogClose, } from './dialog';
|
|
130
|
+
export {
|
|
131
|
+
AlertDialog, AlertDialogTrigger, AlertDialogContent, AlertDialogHeader, AlertDialogTitle, AlertDialogDescription, AlertDialogFooter, AlertDialogCancel, AlertDialogAction, } from './dialog';
|
|
132
|
+
export type { AlertDialogContentProps, DialogSide } from './dialog';
|
|
133
|
+
export {
|
|
134
|
+
Sheet, SheetTrigger, SheetContent, SheetHeader, SheetTitle, SheetDescription, SheetFooter, SheetClose, } from './dialog';
|
|
135
|
+
export type { SheetContentProps, SheetSide } from './dialog';
|
|
136
|
+
export { default as Table } from './table';
|
|
137
|
+
export {
|
|
138
|
+
TableWrapper, TablePrimitive as Table, TableHeader, TableBody, TableFooter, TableRowPrimitive as TableRow, TableHead, TableCell, TableCaption, } from './table/primitives';
|
|
139
|
+
export { default as Flex } from './flex';
|
|
140
|
+
|
|
141
|
+
export type { FormContextType } from './form/context/FormContext';
|
|
142
|
+
export type { ToasterProps } from './toast';
|
|
143
|
+
export type { ITDContextType, ITDProviderProps } from './context/ITDContext';
|
|
144
|
+
|
|
145
|
+
export type { QueryValueProps } from './types/QueryValueProps';
|
|
146
|
+
export type { AccordionProps } from './types/AccordionProps';
|
|
147
|
+
export type { AccordionSubMenuProps } from './types/AccordionSubMenuProps';
|
|
148
|
+
export type { AccordionItemProps } from './types/AccordionItemProps';
|
|
149
|
+
export type { InputProps, InputVariant } from './types/InputProps';
|
|
150
|
+
export type { CodeInputProps } from './types/CodeInputProps';
|
|
151
|
+
export type { LabelProps } from './types/LabelProps';
|
|
152
|
+
export type { SeparatorProps } from './separator';
|
|
153
|
+
export type { FieldProps, FieldLegendProps } from './field';
|
|
154
|
+
export type { DatePickerProps } from './types/DatePickerProps';
|
|
155
|
+
export type {
|
|
156
|
+
RangePickerProps, RangeValue, RangeValueProps, RangePreset, } from './types/RangePickerProps';
|
|
157
|
+
export type { CalendarProps, CalendarValueProps, CalendarDayProps } from './types/CalendarProps';
|
|
158
|
+
export type { CalendarLocale } from './calendar';
|
|
159
|
+
export type { TextAreaProps, TextAreaVariant, TextAreaEvent } from './types/TextAreaProps';
|
|
160
|
+
export type { RadioGroupProps, RadioGroupItemProps } from './radio';
|
|
161
|
+
export type { ToggleGroupProps, ToggleGroupItemProps } from './toggle-group';
|
|
162
|
+
export type {
|
|
163
|
+
SelectProps, SelectToggleProps, SelectOptionProps, SelectValue, } from './types/SelectProps';
|
|
164
|
+
export type {
|
|
165
|
+
CheckboxProps, CheckboxGroupProps, GroupCheckboxOptionType, CheckboxEvent, } from './types/CheckboxProps';
|
|
166
|
+
export type { ITDImperativeFuncProps } from './types/ITDImperativeFuncProps';
|
|
167
|
+
export type { SingleQueryProps } from './types/SingleQueryProps';
|
|
168
|
+
export type { ButtonProps, ButtonVariants, ButtonStates, ButtonSize } from './types/ButtonProps';
|
|
169
|
+
export type { BadgeProps, BadgeVariant, BadgeColor } from './types/BadgeProps';
|
|
170
|
+
export type {
|
|
171
|
+
DropdownMenuProps, DropdownMenuTriggerProps, DropdownMenuContentProps, DropdownMenuItemProps, DropdownMenuLabelProps, DropdownMenuSeparatorProps, DropdownMenuCheckboxItemProps, DropdownMenuRadioGroupProps, DropdownMenuRadioItemProps, DropdownMenuSubProps, DropdownMenuSubTriggerProps, DropdownMenuSubContentProps, } from './types/DropdownMenuProps';
|
|
172
|
+
export type {
|
|
173
|
+
ContextMenuProps, ContextMenuTriggerProps, ContextMenuContentProps, ContextMenuItemProps, ContextMenuLabelProps, ContextMenuSeparatorProps, ContextMenuCheckboxItemProps, ContextMenuRadioGroupProps, ContextMenuRadioItemProps, ContextMenuSubProps, ContextMenuSubTriggerProps, ContextMenuSubContentProps, } from './context-menu';
|
|
174
|
+
export type {
|
|
175
|
+
FormProps, FormRuleProps, FormValueProps, FormItemProps, FormSubComponentProps, FieldUpdateProps, } from './types/FormProps';
|
|
176
|
+
export type { AlertProps, AlertType } from './types/AlertProps';
|
|
177
|
+
export type { SwitchProps } from './types/SwitchProps';
|
|
178
|
+
export type { ModalProps, ModalContentProps, ModalRefProps } from './types/ModalProps';
|
|
179
|
+
export type {
|
|
180
|
+
UploadProps, UploadProgressProps, UploadResultMessageProps, CropSettings, } from './types/UploadProps';
|
|
181
|
+
export type { ImageCropperProps, ImageCropperRef, CropArea } from './cropper';
|
|
182
|
+
export type { ResultProps } from './types/ResultProps';
|
|
183
|
+
export type { StatCardProps, StatCardTrend } from './types/StatCardProps';
|
|
184
|
+
export type { LineChartProps, ChartSeries } from './types/ChartProps';
|
|
185
|
+
export type { ComingSoonProps } from './coming-soon';
|
|
186
|
+
export type { PromotionsGridProps, PromotionCardData } from '../../../index';
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export { Spacer as default } from '../../../index';
|
|
2
|
+
export { HubPayLogoBadge, HubPayFilter, HubPayFieldRow, HubPayModalCard, HubPayModalTiles, HubPayName, HubDepositModal, HubWithdrawModal, HubAccountModal, } from './blocks/user-hub/cashier';
|
|
3
|
+
export { default as HubDepositPage } from './blocks/user-hub/deposit';
|
|
4
|
+
export type { HubPayRow, HubPayTableRow } from './blocks/user-hub/deposit';
|
|
5
|
+
export { default as HubWithdrawPage } from './blocks/user-hub/withdraw';
|
|
6
|
+
export {
|
|
7
|
+
HubTable, useHubMobile, HUB_NAME_KEYS, HubStatusBadge, HUB_STATUS_TONE, HubCopyBtn, HubHistName, HubDt, HubComingSoon, } from './blocks/user-hub/table';
|
|
8
|
+
export type { HubTableMarker, HubStatusTone } from './blocks/user-hub/table';
|
|
9
|
+
export {
|
|
10
|
+
HubSettingsDetails, HubChangePassword, HubNotificationPrefs, HubSecurity, } from './blocks/user-hub/settings';
|
|
11
|
+
export type {
|
|
12
|
+
HubSettingsField, HubSettingsGroup, HubSecurityRow, } from './blocks/user-hub/settings';
|
|
13
|
+
export {
|
|
14
|
+
HubGameHistory, HubPaymentHistory, HubBonusHistory, HubFreespinHistory, } from './blocks/user-hub/history';
|
|
15
|
+
export type {
|
|
16
|
+
HubGameRow, HubPayHRow, HubBonusRow, HubFsRow, HubHistFilter, } from './blocks/user-hub/history';
|
|
17
|
+
export {
|
|
18
|
+
HubStatusCard, HubBonusRequest, HubBonusActivation, HubActiveBonus, } from './blocks/user-hub/bonus';
|
|
19
|
+
export type {
|
|
20
|
+
HubStatusField, HubBonusReqRow, HubBonusActRow, HubWagerRow, HubActiveBonusData, } from './blocks/user-hub/bonus';
|
|
21
|
+
export {
|
|
22
|
+
HubFreespinActivation, HubRaffleActive, HubRaffleJoined, HubTicketsModal, HubPrizesModal, HUB_PRIZE_TONE, } from './blocks/user-hub/raffles';
|
|
23
|
+
export type {
|
|
24
|
+
HubFsActRow, HubRaffleRow, HubRafflePrize, HubPrizeTone, } from './blocks/user-hub/raffles';
|
|
25
|
+
export { HubNewTicketForm, HubMessageInbox, HubTicketThread } from './blocks/user-hub/messages';
|
|
26
|
+
export type { HubMsg, HubTicket } from './blocks/user-hub/messages';
|
|
27
|
+
export {
|
|
28
|
+
HubProfileSummary, HubMedals, HubStatistics, HubMedalButton, HubMedalDetail, } from './blocks/user-hub/profile';
|
|
29
|
+
export type {
|
|
30
|
+
HubMedal, HubGameStat, HubTopSlot, HubStat, HubRewardTier, HubRewardTip, HubVipSummary, } from './blocks/user-hub/profile';
|
|
31
|
+
export { HubVipClub, HubVipLevels, hubVipMedalSrc } from './blocks/user-hub/vip';
|
|
32
|
+
export type {
|
|
33
|
+
HubVipArt, HubVipTier, HubVipBonus, HubVipLevel, HubVipGroup, HubVipHero, } from './blocks/user-hub/vip';
|
|
34
|
+
export { isTouchDevice, applyTouchMode } from './helpers/device/touchDevice';
|
|
35
|
+
export { default as SVGUrlToPNGDataUrl } from './helpers/image/SVGUrlToPNGDataUrl';
|
|
36
|
+
export type { SpacerProps } from '../../../index';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inntechcorp/it-design",
|
|
3
|
-
"version": "4.0.0-beta.
|
|
3
|
+
"version": "4.0.0-beta.7",
|
|
4
4
|
"description": "All in one Design library for web applications.",
|
|
5
5
|
"author": "Inn.Tech",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -58,11 +58,10 @@
|
|
|
58
58
|
"dayjs": "^1.11.19",
|
|
59
59
|
"fast-deep-equal": "^3.1.3",
|
|
60
60
|
"lodash-es": "^4.17.22",
|
|
61
|
-
"lucide-react": "^
|
|
61
|
+
"lucide-react": "^1.39.0",
|
|
62
62
|
"overlayscrollbars": "^2.13.0",
|
|
63
63
|
"prismjs": "^1.30.0",
|
|
64
64
|
"react-horizontal-scrolling-menu": "^8.2.0",
|
|
65
|
-
"react-nanny": "^2.15.0",
|
|
66
65
|
"react-number-format": "^5.4.4",
|
|
67
66
|
"react-transition-group": "^4.4.5",
|
|
68
67
|
"recharts": "^3.10.1",
|
|
@@ -79,7 +78,7 @@
|
|
|
79
78
|
"@babel/runtime": "7.28.4",
|
|
80
79
|
"@chromatic-com/storybook": "^5.0.1",
|
|
81
80
|
"@rollup/plugin-babel": "6.1.0",
|
|
82
|
-
"@rollup/plugin-commonjs": "29.0.
|
|
81
|
+
"@rollup/plugin-commonjs": "29.0.3",
|
|
83
82
|
"@rollup/plugin-image": "^3.0.3",
|
|
84
83
|
"@rollup/plugin-json": "6.1.0",
|
|
85
84
|
"@rollup/plugin-node-resolve": "16.0.3",
|
|
@@ -88,64 +87,57 @@
|
|
|
88
87
|
"@storybook/addon-links": "^10.2.19",
|
|
89
88
|
"@storybook/addon-onboarding": "^10.2.19",
|
|
90
89
|
"@storybook/addon-vitest": "^10.2.19",
|
|
91
|
-
"@storybook/builder-vite": "^10.2.19",
|
|
92
90
|
"@storybook/react-vite": "^10.2.19",
|
|
93
91
|
"@testing-library/dom": "^10.4.1",
|
|
94
|
-
"@testing-library/jest-dom": "
|
|
95
|
-
"@testing-library/react": "16.3.
|
|
96
|
-
"@testing-library/user-event": "14.6.1",
|
|
92
|
+
"@testing-library/jest-dom": "7.0.1",
|
|
93
|
+
"@testing-library/react": "16.3.3",
|
|
97
94
|
"@types/lodash-es": "^4.17.12",
|
|
98
|
-
"@types/node": "
|
|
99
|
-
"@types/react": "19.2.
|
|
100
|
-
"@types/react-dom": "19.2.
|
|
95
|
+
"@types/node": "26.4.1",
|
|
96
|
+
"@types/react": "19.2.18",
|
|
97
|
+
"@types/react-dom": "19.2.5",
|
|
101
98
|
"@vitejs/plugin-react": "5.1.2",
|
|
102
99
|
"@vitest/browser-playwright": "^4.1.0",
|
|
103
100
|
"@vitest/coverage-v8": "^4.1.0",
|
|
104
101
|
"@vueless/storybook-dark-mode": "^10.0.7",
|
|
105
|
-
"autoprefixer": "10.4
|
|
106
|
-
"cssnano": "
|
|
102
|
+
"autoprefixer": "10.5.4",
|
|
103
|
+
"cssnano": "9.0.2",
|
|
107
104
|
"embla-carousel": "8.6.0",
|
|
108
105
|
"embla-carousel-autoplay": "8.6.0",
|
|
109
106
|
"embla-carousel-react": "8.6.0",
|
|
110
|
-
"eslint-plugin-storybook": "10.1.10",
|
|
111
107
|
"husky": "^9.1.7",
|
|
112
|
-
"i18next": "
|
|
113
|
-
"jsdom": "^
|
|
108
|
+
"i18next": "26.4.1",
|
|
109
|
+
"jsdom": "^30.0.1",
|
|
114
110
|
"lint-staged": "^17.0.5",
|
|
115
111
|
"patch-package": "^8.0.1",
|
|
116
112
|
"playwright": "^1.58.2",
|
|
117
|
-
"postcss": "8.5.
|
|
118
|
-
"postcss-
|
|
119
|
-
"postcss-
|
|
120
|
-
"postcss-import": "16.1.1",
|
|
121
|
-
"postcss-nesting": "13.0.2",
|
|
113
|
+
"postcss": "8.5.26",
|
|
114
|
+
"postcss-import": "17.0.0",
|
|
115
|
+
"postcss-nesting": "14.0.1",
|
|
122
116
|
"postcss-normalize": "13.0.1",
|
|
123
|
-
"postcss-preset-env": "
|
|
117
|
+
"postcss-preset-env": "11.5.1",
|
|
124
118
|
"prettier": "^3.8.3",
|
|
125
|
-
"react": "19.2.
|
|
126
|
-
"react-dom": "19.2.
|
|
127
|
-
"react-i18next": "
|
|
119
|
+
"react": "19.2.8",
|
|
120
|
+
"react-dom": "19.2.8",
|
|
121
|
+
"react-i18next": "17.0.13",
|
|
128
122
|
"react-router-dom": "^7.11.0",
|
|
129
|
-
"rollup": "4.
|
|
123
|
+
"rollup": "4.63.1",
|
|
130
124
|
"rollup-plugin-copy": "^3.5.0",
|
|
131
|
-
"rollup-plugin-dts": "6.
|
|
125
|
+
"rollup-plugin-dts": "6.5.1",
|
|
132
126
|
"rollup-plugin-local-resolve": "^1.0.7",
|
|
133
127
|
"rollup-plugin-node-builtins": "^2.1.2",
|
|
134
128
|
"rollup-plugin-node-globals": "^1.4.0",
|
|
135
129
|
"rollup-plugin-node-polyfills": "^0.2.1",
|
|
136
130
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
137
131
|
"rollup-plugin-sourcemaps": "^0.6.3",
|
|
138
|
-
"rollup-plugin-styles": "4.0.0",
|
|
139
132
|
"rollup-plugin-terser": "^7.0.2",
|
|
140
|
-
"rollup-plugin-typescript2": "0.
|
|
133
|
+
"rollup-plugin-typescript2": "0.37.0",
|
|
141
134
|
"rollup-plugin-visualizer": "6.0.5",
|
|
142
135
|
"storybook": "^10.2.19",
|
|
143
|
-
"tslib": "2.8.1",
|
|
144
136
|
"typescript": "5.9.3",
|
|
145
137
|
"vaul": "1.1.2",
|
|
146
138
|
"vite": "7.3.0",
|
|
147
|
-
"vite-plugin-svgr": "
|
|
148
|
-
"vite-tsconfig-paths": "6.
|
|
139
|
+
"vite-plugin-svgr": "5.2.0",
|
|
140
|
+
"vite-tsconfig-paths": "6.1.1",
|
|
149
141
|
"vitest": "^4.1.0"
|
|
150
142
|
},
|
|
151
143
|
"peerDependencies": {
|
|
@@ -182,9 +174,6 @@
|
|
|
182
174
|
"last 1 safari version"
|
|
183
175
|
]
|
|
184
176
|
},
|
|
185
|
-
"resolutions": {
|
|
186
|
-
"jackspeak": "2.1.1"
|
|
187
|
-
},
|
|
188
177
|
"exports": {
|
|
189
178
|
".": {
|
|
190
179
|
"import": {
|
|
@@ -196,6 +185,11 @@
|
|
|
196
185
|
"default": "./dist/cjs/index.js"
|
|
197
186
|
}
|
|
198
187
|
},
|
|
188
|
+
"./blocks/*": {
|
|
189
|
+
"types": "./dist/types/blocks/*/index.d.ts",
|
|
190
|
+
"import": "./dist/es/blocks/*/index.js",
|
|
191
|
+
"require": "./dist/cjs/blocks/*/index.js"
|
|
192
|
+
},
|
|
199
193
|
"./global.css": "./dist/global.css",
|
|
200
194
|
"./dist/global.css": "./dist/global.css",
|
|
201
195
|
"./css/properties.css": "./dist/css/properties.css",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var e=require("react"),t=require("../../react-use-callback-ref/dist/index.js");function r(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 c=r(e);exports.useEscapeKeydown=function(e,r=globalThis?.document){const n=t.useCallbackRef(e);c.useEffect(()=>{const e=e=>{"Escape"===e.key&&n(e)};return r.addEventListener("keydown",e,{capture:!0}),()=>r.removeEventListener("keydown",e,{capture:!0})},[n,r])};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import*as e from"react";import{useCallbackRef as t}from"../../react-use-callback-ref/dist/index.js";function r(r,n=globalThis?.document){const o=t(r);e.useEffect(()=>{const e=e=>{"Escape"===e.key&&o(e)};return n.addEventListener("keydown",e,{capture:!0}),()=>n.removeEventListener("keydown",e,{capture:!0})},[o,n])}export{r as useEscapeKeydown};
|