@pixpilot/shadcn-ui 0.4.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AbsoluteFill.cjs +24 -1
- package/dist/AbsoluteFill.d.ts +2 -2
- package/dist/AbsoluteFill.js +21 -1
- package/dist/Alert.cjs +81 -1
- package/dist/Alert.js +77 -1
- package/dist/Button.cjs +84 -1
- package/dist/Button.d.ts +1 -1
- package/dist/Button.js +79 -1
- package/dist/CloseButtonAbsolute.cjs +20 -1
- package/dist/CloseButtonAbsolute.js +16 -1
- package/dist/CloseButtonRounded.cjs +22 -1
- package/dist/CloseButtonRounded.js +17 -1
- package/dist/Combobox.cjs +53 -1
- package/dist/Combobox.js +48 -1
- package/dist/CommandOptionList.cjs +29 -1
- package/dist/CommandOptionList.js +25 -1
- package/dist/ContentCard.cjs +27 -1
- package/dist/ContentCard.js +23 -1
- package/dist/DatePicker.cjs +38 -1
- package/dist/DatePicker.d.ts +2 -2
- package/dist/DatePicker.js +33 -1
- package/dist/LoadingOverlay.cjs +65 -1
- package/dist/LoadingOverlay.js +60 -1
- package/dist/Select.cjs +27 -1
- package/dist/Select.js +23 -1
- package/dist/Slider.cjs +19 -1
- package/dist/Slider.js +15 -1
- package/dist/ThemeToggle.cjs +98 -1
- package/dist/ThemeToggle.js +94 -1
- package/dist/_virtual/rolldown_runtime.cjs +44 -1
- package/dist/_virtual/rolldown_runtime.js +43 -1
- package/dist/confirmation-dialog/ConfirmationDialog.cjs +47 -1
- package/dist/confirmation-dialog/ConfirmationDialog.d.cts +1 -0
- package/dist/confirmation-dialog/ConfirmationDialog.js +43 -1
- package/dist/confirmation-dialog/DialogProvider.cjs +16 -1
- package/dist/confirmation-dialog/DialogProvider.js +12 -1
- package/dist/confirmation-dialog/confirmation-dialogs.cjs +14 -1
- package/dist/confirmation-dialog/confirmation-dialogs.js +12 -1
- package/dist/confirmation-dialog/index.cjs +7 -1
- package/dist/confirmation-dialog/index.js +6 -1
- package/dist/file-upload/FileUpload.cjs +68 -1
- package/dist/file-upload/FileUpload.js +63 -1
- package/dist/file-upload/FileUploadItems.cjs +36 -1
- package/dist/file-upload/FileUploadItems.js +32 -1
- package/dist/file-upload/FileUploadListItem.cjs +89 -1
- package/dist/file-upload/FileUploadListItem.js +83 -1
- package/dist/file-upload/hooks/index.cjs +4 -1
- package/dist/file-upload/hooks/index.d.cts +2 -0
- package/dist/file-upload/hooks/index.js +3 -1
- package/dist/file-upload/hooks/use-file-error.cjs +15 -1
- package/dist/file-upload/hooks/use-file-error.js +14 -1
- package/dist/file-upload/hooks/use-file-upload-progress-callbacks.cjs +34 -1
- package/dist/file-upload/hooks/use-file-upload-progress-callbacks.d.cts +1 -0
- package/dist/file-upload/hooks/use-file-upload-progress-callbacks.js +32 -1
- package/dist/file-upload/hooks/use-file-upload-store.cjs +77 -1
- package/dist/file-upload/hooks/use-file-upload-store.d.cts +2 -0
- package/dist/file-upload/hooks/use-file-upload-store.js +75 -1
- package/dist/file-upload/index.cjs +6 -1
- package/dist/file-upload/index.d.cts +2 -1
- package/dist/file-upload/index.js +5 -1
- package/dist/file-upload/utils/create-placeholder-file.cjs +12 -1
- package/dist/file-upload/utils/create-placeholder-file.js +10 -1
- package/dist/file-upload/utils/get-file-key.cjs +9 -1
- package/dist/file-upload/utils/get-file-key.d.cts +1 -0
- package/dist/file-upload/utils/get-file-key.js +7 -1
- package/dist/file-upload/utils/get-file-meta.cjs +24 -1
- package/dist/file-upload/utils/get-file-meta.d.cts +1 -0
- package/dist/file-upload/utils/get-file-meta.js +21 -1
- package/dist/file-upload/utils/index.d.cts +4 -0
- package/dist/file-upload/utils/is-file-equal.cjs +10 -1
- package/dist/file-upload/utils/is-file-equal.d.cts +1 -0
- package/dist/file-upload/utils/is-file-equal.js +8 -1
- package/dist/file-upload/utils/merge-file-metadata.cjs +27 -1
- package/dist/file-upload/utils/merge-file-metadata.d.cts +1 -0
- package/dist/file-upload/utils/merge-file-metadata.js +26 -1
- package/dist/file-upload-inline/FileUploadInline.cjs +71 -1
- package/dist/file-upload-inline/FileUploadInline.js +66 -1
- package/dist/file-upload-inline/FileUploadInlineItem.cjs +96 -1
- package/dist/file-upload-inline/FileUploadInlineItem.js +90 -1
- package/dist/file-upload-inline/defaults.cjs +12 -1
- package/dist/file-upload-inline/defaults.js +10 -1
- package/dist/file-upload-inline/index.cjs +2 -1
- package/dist/file-upload-inline/index.js +1 -1
- package/dist/file-upload-inline/utils.cjs +37 -1
- package/dist/file-upload-inline/utils.js +34 -1
- package/dist/hooks/index.cjs +2 -1
- package/dist/hooks/index.js +1 -1
- package/dist/hooks/use-media-query.cjs +9 -1
- package/dist/hooks/use-media-query.js +7 -1
- package/dist/icon-selector/IconPicker.cjs +93 -1
- package/dist/icon-selector/IconPicker.js +88 -1
- package/dist/icon-selector/constants.cjs +7 -1
- package/dist/icon-selector/constants.js +5 -0
- package/dist/icon-selector/icon-picker-container.cjs +35 -1
- package/dist/icon-selector/icon-picker-container.js +32 -1
- package/dist/icon-selector/icon-picker-content.cjs +146 -1
- package/dist/icon-selector/icon-picker-content.js +141 -1
- package/dist/icon-selector/index.cjs +2 -1
- package/dist/icon-selector/index.js +1 -1
- package/dist/icon-selector/use-async-providers.cjs +69 -1
- package/dist/icon-selector/use-async-providers.js +67 -1
- package/dist/icon-selector/utils/is-valid-provider.cjs +12 -1
- package/dist/icon-selector/utils/is-valid-provider.js +10 -1
- package/dist/icon-selector/virtualized-icon-grid.cjs +137 -1
- package/dist/icon-selector/virtualized-icon-grid.js +132 -1
- package/dist/index.cjs +76 -1
- package/dist/index.js +37 -1
- package/dist/node_modules/.pnpm/@diceui_shared@0.12.0_@floating-ui_react@0.27.16_react-dom@19.2.0_react@19.2.0__react@1_2c51ffe880f01dd537d5b6a13313daf4/node_modules/@diceui/shared/dist/index.cjs +558 -1
- package/dist/node_modules/.pnpm/@diceui_shared@0.12.0_@floating-ui_react@0.27.16_react-dom@19.2.0_react@19.2.0__react@1_2c51ffe880f01dd537d5b6a13313daf4/node_modules/@diceui/shared/dist/index.js +555 -1
- package/dist/node_modules/.pnpm/@diceui_tags-input@0.7.2_@floating-ui_react@0.27.16_react-dom@19.2.0_react@19.2.0__reac_e193dc2ff0d426ed009417f8d89778fd/node_modules/@diceui/tags-input/dist/index.cjs +566 -1
- package/dist/node_modules/.pnpm/@diceui_tags-input@0.7.2_@floating-ui_react@0.27.16_react-dom@19.2.0_react@19.2.0__reac_e193dc2ff0d426ed009417f8d89778fd/node_modules/@diceui/tags-input/dist/index.js +565 -1
- package/dist/node_modules/.pnpm/@floating-ui_core@1.7.3/node_modules/@floating-ui/core/dist/floating-ui.core.cjs +695 -1
- package/dist/node_modules/.pnpm/@floating-ui_core@1.7.3/node_modules/@floating-ui/core/dist/floating-ui.core.js +679 -1
- package/dist/node_modules/.pnpm/@floating-ui_dom@1.7.4/node_modules/@floating-ui/dom/dist/floating-ui.dom.cjs +521 -1
- package/dist/node_modules/.pnpm/@floating-ui_dom@1.7.4/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +503 -1
- package/dist/node_modules/.pnpm/@floating-ui_react-dom@2.1.6_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.cjs +282 -1
- package/dist/node_modules/.pnpm/@floating-ui_react-dom@2.1.6_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +266 -1
- package/dist/node_modules/.pnpm/@floating-ui_react@0.27.16_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@floating-ui/react/dist/floating-ui.react.esm.cjs +3767 -1
- package/dist/node_modules/.pnpm/@floating-ui_react@0.27.16_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@floating-ui/react/dist/floating-ui.react.esm.js +3747 -1
- package/dist/node_modules/.pnpm/@floating-ui_react@0.27.16_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@floating-ui/react/dist/floating-ui.react.utils.cjs +426 -1
- package/dist/node_modules/.pnpm/@floating-ui_react@0.27.16_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@floating-ui/react/dist/floating-ui.react.utils.js +379 -1
- package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.cjs +165 -1
- package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.cjs +175 -1
- package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +151 -1
- package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +138 -1
- package/dist/node_modules/.pnpm/@radix-ui_primitive@1.1.3/node_modules/@radix-ui/primitive/dist/index.cjs +13 -0
- package/dist/node_modules/.pnpm/@radix-ui_primitive@1.1.3/node_modules/@radix-ui/primitive/dist/index.js +11 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-compose-refs@1.1.2_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-compose-refs/dist/index.cjs +33 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-compose-refs@1.1.2_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-compose-refs/dist/index.js +30 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-context@1.1.2_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-context/dist/index.cjs +92 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-context@1.1.2_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-context/dist/index.js +88 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-dialog@1.1.15_@types_react-dom@19.2.3_@types_react@19.2.6__@types_react_4f1d9653b0e2175502748f45fd432185/node_modules/@radix-ui/react-dialog/dist/index.cjs +310 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-dialog@1.1.15_@types_react-dom@19.2.3_@types_react@19.2.6__@types_react_4f1d9653b0e2175502748f45fd432185/node_modules/@radix-ui/react-dialog/dist/index.js +299 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-dismissable-layer@1.1.11_@types_react-dom@19.2.3_@types_react@19.2.6__@_9ee1db7daf927866cf505b31d40047ad/node_modules/@radix-ui/react-dismissable-layer/dist/index.cjs +190 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-dismissable-layer@1.1.11_@types_react-dom@19.2.3_@types_react@19.2.6__@_9ee1db7daf927866cf505b31d40047ad/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +187 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-focus-guards@1.1.3_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-focus-guards/dist/index.cjs +34 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-focus-guards@1.1.3_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-focus-guards/dist/index.js +32 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-focus-scope@1.1.7_@types_react-dom@19.2.3_@types_react@19.2.6__@types_r_0a31b7f987af9482d13505312e1a1be9/node_modules/@radix-ui/react-focus-scope/dist/index.cjs +203 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-focus-scope@1.1.7_@types_react-dom@19.2.3_@types_react@19.2.6__@types_r_0a31b7f987af9482d13505312e1a1be9/node_modules/@radix-ui/react-focus-scope/dist/index.js +200 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-id@1.1.1_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-id/dist/index.cjs +18 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-id@1.1.1_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-id/dist/index.js +16 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-portal@1.1.9_@types_react-dom@19.2.3_@types_react@19.2.6__@types_react@_1bb4e0f97f86496802d28a2e74e2a8b9/node_modules/@radix-ui/react-portal/dist/index.cjs +29 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-portal@1.1.9_@types_react-dom@19.2.3_@types_react@19.2.6__@types_react@_1bb4e0f97f86496802d28a2e74e2a8b9/node_modules/@radix-ui/react-portal/dist/index.js +25 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-presence@1.1.5_@types_react-dom@19.2.3_@types_react@19.2.6__@types_reac_90f8e5c12233caef3399d5fd66452a13/node_modules/@radix-ui/react-presence/dist/index.cjs +110 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-presence@1.1.5_@types_react-dom@19.2.3_@types_react@19.2.6__@types_reac_90f8e5c12233caef3399d5fd66452a13/node_modules/@radix-ui/react-presence/dist/index.js +108 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-primitive@2.1.3_@types_react-dom@19.2.3_@types_react@19.2.6__@types_rea_a92a69cb1cb39305138539e4fa72f596/node_modules/@radix-ui/react-primitive/dist/index.cjs +52 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-primitive@2.1.3_@types_react-dom@19.2.3_@types_react@19.2.6__@types_rea_a92a69cb1cb39305138539e4fa72f596/node_modules/@radix-ui/react-primitive/dist/index.js +47 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-slot@1.2.3_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-slot/dist/index.cjs +92 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-slot@1.2.3_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-slot/dist/index.js +89 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-slot@1.2.4_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-slot/dist/index.cjs +103 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-slot@1.2.4_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-slot/dist/index.js +100 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-use-callback-ref@1.1.1_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-use-callback-ref/dist/index.cjs +15 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-use-callback-ref@1.1.1_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +13 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-use-controllable-state@1.2.2_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-use-controllable-state/dist/index.cjs +64 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-use-controllable-state@1.2.2_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +62 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-use-escape-keydown@1.1.1_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-use-escape-keydown/dist/index.cjs +19 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-use-escape-keydown@1.1.1_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +17 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-use-layout-effect@1.1.1_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-use-layout-effect/dist/index.cjs +9 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-use-layout-effect@1.1.1_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +7 -0
- package/dist/node_modules/.pnpm/aria-hidden@1.2.6/node_modules/aria-hidden/dist/es2015/index.js +108 -0
- package/dist/node_modules/.pnpm/aria-hidden@1.2.6/node_modules/aria-hidden/dist/es5/index.cjs +155 -0
- package/dist/node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.cjs +19 -0
- package/dist/node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.js +17 -0
- package/dist/node_modules/.pnpm/detect-node-es@1.1.0/node_modules/detect-node-es/es5/node.cjs +14 -0
- package/dist/node_modules/.pnpm/get-nonce@1.0.1/node_modules/get-nonce/dist/es2015/index.js +9 -0
- package/dist/node_modules/.pnpm/get-nonce@1.0.1/node_modules/get-nonce/dist/es5/index.cjs +22 -0
- package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll-bar/dist/es2015/component.js +46 -0
- package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +12 -0
- package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll-bar/dist/es2015/index.js +3 -0
- package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +37 -0
- package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll-bar/dist/es5/component.cjs +61 -0
- package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll-bar/dist/es5/constants.cjs +23 -0
- package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll-bar/dist/es5/index.cjs +57 -0
- package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll-bar/dist/es5/utils.cjs +49 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/Combination.js +17 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +163 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/UI.js +64 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +16 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +85 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/medium.js +7 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/sidecar.js +9 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll/dist/es5/Combination.cjs +29 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll/dist/es5/SideEffect.cjs +179 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll/dist/es5/UI.cjs +79 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll/dist/es5/aggresiveCapture.cjs +27 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll/dist/es5/handleScroll.cjs +98 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll/dist/es5/index.cjs +19 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll/dist/es5/medium.cjs +18 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll/dist/es5/sidecar.cjs +21 -0
- package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.2.6_react@19.2.0/node_modules/react-style-singleton/dist/es2015/component.js +21 -0
- package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.2.6_react@19.2.0/node_modules/react-style-singleton/dist/es2015/hook.js +27 -0
- package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.2.6_react@19.2.0/node_modules/react-style-singleton/dist/es2015/index.js +3 -0
- package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.2.6_react@19.2.0/node_modules/react-style-singleton/dist/es2015/singleton.js +43 -0
- package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.2.6_react@19.2.0/node_modules/react-style-singleton/dist/es5/component.cjs +33 -0
- package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.2.6_react@19.2.0/node_modules/react-style-singleton/dist/es5/hook.cjs +40 -0
- package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.2.6_react@19.2.0/node_modules/react-style-singleton/dist/es5/index.cjs +39 -0
- package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.2.6_react@19.2.0/node_modules/react-style-singleton/dist/es5/singleton.cjs +55 -0
- package/dist/node_modules/.pnpm/tabbable@6.3.0/node_modules/tabbable/dist/index.cjs +347 -1
- package/dist/node_modules/.pnpm/tabbable@6.3.0/node_modules/tabbable/dist/index.esm.js +268 -1
- package/dist/node_modules/.pnpm/tailwind-merge@3.4.0/node_modules/tailwind-merge/dist/bundle-mjs.cjs +1895 -0
- package/dist/node_modules/.pnpm/tailwind-merge@3.4.0/node_modules/tailwind-merge/dist/bundle-mjs.js +1893 -0
- package/dist/node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.cjs +557 -0
- package/dist/node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.js +31 -0
- package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.2.6_react@19.2.0/node_modules/use-callback-ref/dist/es2015/assignRef.js +22 -0
- package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.2.6_react@19.2.0/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +47 -0
- package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.2.6_react@19.2.0/node_modules/use-callback-ref/dist/es2015/useRef.js +42 -0
- package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.2.6_react@19.2.0/node_modules/use-callback-ref/dist/es5/assignRef.cjs +34 -0
- package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.2.6_react@19.2.0/node_modules/use-callback-ref/dist/es5/createRef.cjs +39 -0
- package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.2.6_react@19.2.0/node_modules/use-callback-ref/dist/es5/index.cjs +85 -0
- package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.2.6_react@19.2.0/node_modules/use-callback-ref/dist/es5/mergeRef.cjs +40 -0
- package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.2.6_react@19.2.0/node_modules/use-callback-ref/dist/es5/refToCallback.cjs +59 -0
- package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.2.6_react@19.2.0/node_modules/use-callback-ref/dist/es5/transformRef.cjs +34 -0
- package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.2.6_react@19.2.0/node_modules/use-callback-ref/dist/es5/useMergeRef.cjs +61 -0
- package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.2.6_react@19.2.0/node_modules/use-callback-ref/dist/es5/useRef.cjs +53 -0
- package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.2.6_react@19.2.0/node_modules/use-callback-ref/dist/es5/useTransformRef.cjs +38 -0
- package/dist/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@19.2.6_react@19.2.0/node_modules/use-sidecar/dist/es2015/exports.js +19 -0
- package/dist/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@19.2.6_react@19.2.0/node_modules/use-sidecar/dist/es2015/medium.js +84 -0
- package/dist/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@19.2.6_react@19.2.0/node_modules/use-sidecar/dist/es5/config.cjs +22 -0
- package/dist/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@19.2.6_react@19.2.0/node_modules/use-sidecar/dist/es5/env.cjs +21 -0
- package/dist/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@19.2.6_react@19.2.0/node_modules/use-sidecar/dist/es5/exports.cjs +31 -0
- package/dist/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@19.2.6_react@19.2.0/node_modules/use-sidecar/dist/es5/hoc.cjs +31 -0
- package/dist/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@19.2.6_react@19.2.0/node_modules/use-sidecar/dist/es5/hook.cjs +60 -0
- package/dist/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@19.2.6_react@19.2.0/node_modules/use-sidecar/dist/es5/index.cjs +69 -0
- package/dist/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@19.2.6_react@19.2.0/node_modules/use-sidecar/dist/es5/medium.cjs +101 -0
- package/dist/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@19.2.6_react@19.2.0/node_modules/use-sidecar/dist/es5/renderProp.cjs +58 -0
- package/dist/packages/shadcn/src/components/index.cjs +6 -1
- package/dist/packages/shadcn/src/components/index.js +5 -1
- package/dist/packages/shadcn/src/components/ui/OrContinueWithSeparator.cjs +6 -1
- package/dist/packages/shadcn/src/components/ui/OrContinueWithSeparator.js +3 -1
- package/dist/packages/shadcn/src/components/ui/alert-dialog.cjs +10 -1
- package/dist/packages/shadcn/src/components/ui/alert-dialog.js +6 -1
- package/dist/packages/shadcn/src/components/ui/alert.cjs +44 -1
- package/dist/packages/shadcn/src/components/ui/alert.js +38 -1
- package/dist/packages/shadcn/src/components/ui/avatar.cjs +5 -1
- package/dist/packages/shadcn/src/components/ui/avatar.js +2 -1
- package/dist/packages/shadcn/src/components/ui/badge.cjs +20 -1
- package/dist/packages/shadcn/src/components/ui/badge.js +16 -1
- package/dist/packages/shadcn/src/components/ui/button.cjs +50 -1
- package/dist/packages/shadcn/src/components/ui/button.js +45 -1
- package/dist/packages/shadcn/src/components/ui/calendar.cjs +8 -1
- package/dist/packages/shadcn/src/components/ui/calendar.js +4 -1
- package/dist/packages/shadcn/src/components/ui/card.cjs +5 -1
- package/dist/packages/shadcn/src/components/ui/card.js +2 -1
- package/dist/packages/shadcn/src/components/ui/checkbox.cjs +10 -1
- package/dist/packages/shadcn/src/components/ui/checkbox.js +6 -1
- package/dist/packages/shadcn/src/components/ui/command.cjs +11 -1
- package/dist/packages/shadcn/src/components/ui/command.js +7 -1
- package/dist/packages/shadcn/src/components/ui/dialog.cjs +93 -1
- package/dist/packages/shadcn/src/components/ui/dialog.js +81 -1
- package/dist/packages/shadcn/src/components/ui/dropdown-menu.cjs +7 -1
- package/dist/packages/shadcn/src/components/ui/dropdown-menu.js +3 -1
- package/dist/packages/shadcn/src/components/ui/file-upload.cjs +49 -1
- package/dist/packages/shadcn/src/components/ui/file-upload.js +45 -1
- package/dist/packages/shadcn/src/components/ui/form.cjs +12 -1
- package/dist/packages/shadcn/src/components/ui/form.js +9 -1
- package/dist/packages/shadcn/src/components/ui/index.cjs +30 -1
- package/dist/packages/shadcn/src/components/ui/index.js +29 -1
- package/dist/packages/shadcn/src/components/ui/input.cjs +5 -1
- package/dist/packages/shadcn/src/components/ui/input.js +2 -1
- package/dist/packages/shadcn/src/components/ui/label.cjs +5 -1
- package/dist/packages/shadcn/src/components/ui/label.js +2 -1
- package/dist/packages/shadcn/src/components/ui/pagination.cjs +9 -1
- package/dist/packages/shadcn/src/components/ui/pagination.js +4 -1
- package/dist/packages/shadcn/src/components/ui/popover.cjs +5 -1
- package/dist/packages/shadcn/src/components/ui/popover.js +2 -1
- package/dist/packages/shadcn/src/components/ui/radio-group.cjs +7 -1
- package/dist/packages/shadcn/src/components/ui/radio-group.js +3 -1
- package/dist/packages/shadcn/src/components/ui/select.cjs +10 -1
- package/dist/packages/shadcn/src/components/ui/select.js +6 -1
- package/dist/packages/shadcn/src/components/ui/separator.cjs +5 -1
- package/dist/packages/shadcn/src/components/ui/separator.js +2 -1
- package/dist/packages/shadcn/src/components/ui/shadcn-io/tags/index.cjs +26 -1
- package/dist/packages/shadcn/src/components/ui/shadcn-io/tags/index.js +22 -1
- package/dist/packages/shadcn/src/components/ui/shadcn-io/tags-input-inline/index.cjs +6 -1
- package/dist/packages/shadcn/src/components/ui/shadcn-io/tags-input-inline/index.js +3 -1
- package/dist/packages/shadcn/src/components/ui/sheet.cjs +7 -1
- package/dist/packages/shadcn/src/components/ui/sheet.js +3 -1
- package/dist/packages/shadcn/src/components/ui/slider.cjs +5 -1
- package/dist/packages/shadcn/src/components/ui/slider.js +2 -1
- package/dist/packages/shadcn/src/components/ui/switch.cjs +8 -1
- package/dist/packages/shadcn/src/components/ui/switch.js +5 -1
- package/dist/packages/shadcn/src/components/ui/tabs.cjs +5 -1
- package/dist/packages/shadcn/src/components/ui/tabs.js +2 -1
- package/dist/packages/shadcn/src/components/ui/textarea.cjs +5 -1
- package/dist/packages/shadcn/src/components/ui/textarea.js +2 -1
- package/dist/packages/shadcn/src/components/ui/tooltip.cjs +5 -1
- package/dist/packages/shadcn/src/components/ui/tooltip.js +2 -1
- package/dist/packages/shadcn/src/lib/utils.cjs +11 -1
- package/dist/packages/shadcn/src/lib/utils.js +10 -1
- package/dist/pagination/Pagination.cjs +156 -1
- package/dist/pagination/Pagination.js +151 -1
- package/dist/pagination/index.cjs +2 -1
- package/dist/pagination/index.js +1 -1
- package/dist/rich-text-editor/RichTextEditor.cjs +132 -1
- package/dist/rich-text-editor/RichTextEditor.js +126 -1
- package/dist/rich-text-editor/index.cjs +2 -1
- package/dist/rich-text-editor/index.js +1 -1
- package/dist/rich-text-editor/predefined-toolbar-options.cjs +84 -1
- package/dist/rich-text-editor/predefined-toolbar-options.js +81 -1
- package/dist/spinner/index.cjs +2 -1
- package/dist/spinner/index.js +1 -1
- package/dist/spinner/spinner.cjs +73 -6
- package/dist/spinner/spinner.js +70 -6
- package/dist/spinner/styles.cjs +25 -12
- package/dist/spinner/styles.js +23 -12
- package/dist/tags-input.cjs +226 -1
- package/dist/tags-input.js +222 -1
- package/dist/theme-provider/ThemeProvider.cjs +27 -1
- package/dist/theme-provider/ThemeProvider.js +23 -1
- package/dist/theme-provider/index.cjs +4 -1
- package/dist/theme-provider/index.js +4 -1
- package/dist/toast/AlertToast.cjs +36 -1
- package/dist/toast/AlertToast.js +31 -1
- package/dist/toast/index.cjs +2 -1
- package/dist/toast/index.js +1 -1
- package/dist/toast/toast.cjs +75 -1
- package/dist/toast/toast.js +66 -1
- package/package.json +3 -3
- package/dist/packages/shadcn/src/lib/index.cjs +0 -1
- package/dist/packages/shadcn/src/lib/index.js +0 -1
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
const require_rolldown_runtime = require('../../../../../../../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
const require_tslib_es6 = require('../../../../../tslib@2.8.1/node_modules/tslib/tslib.es6.cjs');
|
|
3
|
+
const require_constants$1 = require('./constants.cjs');
|
|
4
|
+
const require_index = require('../../../../../react-style-singleton@2.2.3_@types_react@19.2.6_react@19.2.0/node_modules/react-style-singleton/dist/es5/index.cjs');
|
|
5
|
+
const require_utils$1 = require('./utils.cjs');
|
|
6
|
+
|
|
7
|
+
//#region ../../node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types+react@19.2.6_react@19.2.0/node_modules/react-remove-scroll-bar/dist/es5/component.js
|
|
8
|
+
var require_component = /* @__PURE__ */ require_rolldown_runtime.__commonJS({ "../../node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types+react@19.2.6_react@19.2.0/node_modules/react-remove-scroll-bar/dist/es5/component.js": ((exports) => {
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.RemoveScrollBar = exports.useLockAttribute = exports.lockAttribute = void 0;
|
|
11
|
+
var React = (require_tslib_es6.init_tslib_es6(), require_rolldown_runtime.__toCommonJS(require_tslib_es6.tslib_es6_exports)).__importStar(require("react"));
|
|
12
|
+
var react_style_singleton_1 = require_index.require_es5();
|
|
13
|
+
var constants_1 = require_constants$1.require_constants();
|
|
14
|
+
var utils_1 = require_utils$1.require_utils();
|
|
15
|
+
var Style = (0, react_style_singleton_1.styleSingleton)();
|
|
16
|
+
exports.lockAttribute = "data-scroll-locked";
|
|
17
|
+
var getStyles = function(_a, allowRelative, gapMode, important) {
|
|
18
|
+
var left = _a.left, top = _a.top, right = _a.right, gap = _a.gap;
|
|
19
|
+
if (gapMode === void 0) gapMode = "margin";
|
|
20
|
+
return "\n .".concat(constants_1.noScrollbarsClassName, " {\n overflow: hidden ").concat(important, ";\n padding-right: ").concat(gap, "px ").concat(important, ";\n }\n body[").concat(exports.lockAttribute, "] {\n overflow: hidden ").concat(important, ";\n overscroll-behavior: contain;\n ").concat([
|
|
21
|
+
allowRelative && "position: relative ".concat(important, ";"),
|
|
22
|
+
gapMode === "margin" && "\n padding-left: ".concat(left, "px;\n padding-top: ").concat(top, "px;\n padding-right: ").concat(right, "px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(gap, "px ").concat(important, ";\n "),
|
|
23
|
+
gapMode === "padding" && "padding-right: ".concat(gap, "px ").concat(important, ";")
|
|
24
|
+
].filter(Boolean).join(""), "\n }\n \n .").concat(constants_1.zeroRightClassName, " {\n right: ").concat(gap, "px ").concat(important, ";\n }\n \n .").concat(constants_1.fullWidthClassName, " {\n margin-right: ").concat(gap, "px ").concat(important, ";\n }\n \n .").concat(constants_1.zeroRightClassName, " .").concat(constants_1.zeroRightClassName, " {\n right: 0 ").concat(important, ";\n }\n \n .").concat(constants_1.fullWidthClassName, " .").concat(constants_1.fullWidthClassName, " {\n margin-right: 0 ").concat(important, ";\n }\n \n body[").concat(exports.lockAttribute, "] {\n ").concat(constants_1.removedBarSizeVariable, ": ").concat(gap, "px;\n }\n");
|
|
25
|
+
};
|
|
26
|
+
var getCurrentUseCounter = function() {
|
|
27
|
+
var counter = parseInt(document.body.getAttribute(exports.lockAttribute) || "0", 10);
|
|
28
|
+
return isFinite(counter) ? counter : 0;
|
|
29
|
+
};
|
|
30
|
+
var useLockAttribute = function() {
|
|
31
|
+
React.useEffect(function() {
|
|
32
|
+
document.body.setAttribute(exports.lockAttribute, (getCurrentUseCounter() + 1).toString());
|
|
33
|
+
return function() {
|
|
34
|
+
var newCounter = getCurrentUseCounter() - 1;
|
|
35
|
+
if (newCounter <= 0) document.body.removeAttribute(exports.lockAttribute);
|
|
36
|
+
else document.body.setAttribute(exports.lockAttribute, newCounter.toString());
|
|
37
|
+
};
|
|
38
|
+
}, []);
|
|
39
|
+
};
|
|
40
|
+
exports.useLockAttribute = useLockAttribute;
|
|
41
|
+
/**
|
|
42
|
+
* Removes page scrollbar and blocks page scroll when mounted
|
|
43
|
+
*/
|
|
44
|
+
var RemoveScrollBar = function(_a) {
|
|
45
|
+
var noRelative = _a.noRelative, noImportant = _a.noImportant, _b = _a.gapMode, gapMode = _b === void 0 ? "margin" : _b;
|
|
46
|
+
(0, exports.useLockAttribute)();
|
|
47
|
+
var gap = React.useMemo(function() {
|
|
48
|
+
return (0, utils_1.getGapWidth)(gapMode);
|
|
49
|
+
}, [gapMode]);
|
|
50
|
+
return React.createElement(Style, { styles: getStyles(gap, !noRelative, gapMode, !noImportant ? "!important" : "") });
|
|
51
|
+
};
|
|
52
|
+
exports.RemoveScrollBar = RemoveScrollBar;
|
|
53
|
+
}) });
|
|
54
|
+
|
|
55
|
+
//#endregion
|
|
56
|
+
Object.defineProperty(exports, 'default', {
|
|
57
|
+
enumerable: true,
|
|
58
|
+
get: function () {
|
|
59
|
+
return require_component();
|
|
60
|
+
}
|
|
61
|
+
});
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
const require_rolldown_runtime = require('../../../../../../../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
|
|
3
|
+
//#region ../../node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types+react@19.2.6_react@19.2.0/node_modules/react-remove-scroll-bar/dist/es5/constants.js
|
|
4
|
+
var require_constants = /* @__PURE__ */ require_rolldown_runtime.__commonJS({ "../../node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types+react@19.2.6_react@19.2.0/node_modules/react-remove-scroll-bar/dist/es5/constants.js": ((exports) => {
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.removedBarSizeVariable = exports.noScrollbarsClassName = exports.fullWidthClassName = exports.zeroRightClassName = void 0;
|
|
7
|
+
exports.zeroRightClassName = "right-scroll-bar-position";
|
|
8
|
+
exports.fullWidthClassName = "width-before-scroll-bar";
|
|
9
|
+
exports.noScrollbarsClassName = "with-scroll-bars-hidden";
|
|
10
|
+
/**
|
|
11
|
+
* Name of a CSS variable containing the amount of "hidden" scrollbar
|
|
12
|
+
* ! might be undefined ! use will fallback!
|
|
13
|
+
*/
|
|
14
|
+
exports.removedBarSizeVariable = "--removed-body-scroll-bar-size";
|
|
15
|
+
}) });
|
|
16
|
+
|
|
17
|
+
//#endregion
|
|
18
|
+
Object.defineProperty(exports, 'default', {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function () {
|
|
21
|
+
return require_constants();
|
|
22
|
+
}
|
|
23
|
+
});
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
const require_rolldown_runtime = require('../../../../../../../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
const require_constants$1 = require('./constants.cjs');
|
|
3
|
+
const require_utils$1 = require('./utils.cjs');
|
|
4
|
+
const require_component$1 = require('./component.cjs');
|
|
5
|
+
|
|
6
|
+
//#region ../../node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types+react@19.2.6_react@19.2.0/node_modules/react-remove-scroll-bar/dist/es5/index.js
|
|
7
|
+
var require_es5 = /* @__PURE__ */ require_rolldown_runtime.__commonJS({ "../../node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types+react@19.2.6_react@19.2.0/node_modules/react-remove-scroll-bar/dist/es5/index.js": ((exports) => {
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.getGapWidth = exports.removedBarSizeVariable = exports.noScrollbarsClassName = exports.fullWidthClassName = exports.zeroRightClassName = exports.RemoveScrollBar = void 0;
|
|
10
|
+
var component_1 = require_component$1.require_component();
|
|
11
|
+
Object.defineProperty(exports, "RemoveScrollBar", {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
get: function() {
|
|
14
|
+
return component_1.RemoveScrollBar;
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
var constants_1 = require_constants$1.require_constants();
|
|
18
|
+
Object.defineProperty(exports, "zeroRightClassName", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function() {
|
|
21
|
+
return constants_1.zeroRightClassName;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
Object.defineProperty(exports, "fullWidthClassName", {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function() {
|
|
27
|
+
return constants_1.fullWidthClassName;
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
Object.defineProperty(exports, "noScrollbarsClassName", {
|
|
31
|
+
enumerable: true,
|
|
32
|
+
get: function() {
|
|
33
|
+
return constants_1.noScrollbarsClassName;
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
Object.defineProperty(exports, "removedBarSizeVariable", {
|
|
37
|
+
enumerable: true,
|
|
38
|
+
get: function() {
|
|
39
|
+
return constants_1.removedBarSizeVariable;
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
var utils_1 = require_utils$1.require_utils();
|
|
43
|
+
Object.defineProperty(exports, "getGapWidth", {
|
|
44
|
+
enumerable: true,
|
|
45
|
+
get: function() {
|
|
46
|
+
return utils_1.getGapWidth;
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
}) });
|
|
50
|
+
|
|
51
|
+
//#endregion
|
|
52
|
+
Object.defineProperty(exports, 'default', {
|
|
53
|
+
enumerable: true,
|
|
54
|
+
get: function () {
|
|
55
|
+
return require_es5();
|
|
56
|
+
}
|
|
57
|
+
});
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
const require_rolldown_runtime = require('../../../../../../../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
|
|
3
|
+
//#region ../../node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types+react@19.2.6_react@19.2.0/node_modules/react-remove-scroll-bar/dist/es5/utils.js
|
|
4
|
+
var require_utils = /* @__PURE__ */ require_rolldown_runtime.__commonJS({ "../../node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types+react@19.2.6_react@19.2.0/node_modules/react-remove-scroll-bar/dist/es5/utils.js": ((exports) => {
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.getGapWidth = exports.zeroGap = void 0;
|
|
7
|
+
exports.zeroGap = {
|
|
8
|
+
left: 0,
|
|
9
|
+
top: 0,
|
|
10
|
+
right: 0,
|
|
11
|
+
gap: 0
|
|
12
|
+
};
|
|
13
|
+
var parse = function(x) {
|
|
14
|
+
return parseInt(x || "", 10) || 0;
|
|
15
|
+
};
|
|
16
|
+
var getOffset = function(gapMode) {
|
|
17
|
+
var cs = window.getComputedStyle(document.body);
|
|
18
|
+
var left = cs[gapMode === "padding" ? "paddingLeft" : "marginLeft"];
|
|
19
|
+
var top = cs[gapMode === "padding" ? "paddingTop" : "marginTop"];
|
|
20
|
+
var right = cs[gapMode === "padding" ? "paddingRight" : "marginRight"];
|
|
21
|
+
return [
|
|
22
|
+
parse(left),
|
|
23
|
+
parse(top),
|
|
24
|
+
parse(right)
|
|
25
|
+
];
|
|
26
|
+
};
|
|
27
|
+
var getGapWidth = function(gapMode) {
|
|
28
|
+
if (gapMode === void 0) gapMode = "margin";
|
|
29
|
+
if (typeof window === "undefined") return exports.zeroGap;
|
|
30
|
+
var offsets = getOffset(gapMode);
|
|
31
|
+
var documentWidth = document.documentElement.clientWidth;
|
|
32
|
+
var windowWidth = window.innerWidth;
|
|
33
|
+
return {
|
|
34
|
+
left: offsets[0],
|
|
35
|
+
top: offsets[1],
|
|
36
|
+
right: offsets[2],
|
|
37
|
+
gap: Math.max(0, windowWidth - documentWidth + offsets[2] - offsets[0])
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
exports.getGapWidth = getGapWidth;
|
|
41
|
+
}) });
|
|
42
|
+
|
|
43
|
+
//#endregion
|
|
44
|
+
Object.defineProperty(exports, 'default', {
|
|
45
|
+
enumerable: true,
|
|
46
|
+
get: function () {
|
|
47
|
+
return require_utils();
|
|
48
|
+
}
|
|
49
|
+
});
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { __assign } from "../../../../../tslib@2.8.1/node_modules/tslib/tslib.es6.js";
|
|
2
|
+
import { RemoveScroll } from "./UI.js";
|
|
3
|
+
import sidecar_default from "./sidecar.js";
|
|
4
|
+
import * as React$1 from "react";
|
|
5
|
+
|
|
6
|
+
//#region ../../node_modules/.pnpm/react-remove-scroll@2.7.1_@types+react@19.2.6_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/Combination.js
|
|
7
|
+
var ReactRemoveScroll = React$1.forwardRef(function(props, ref) {
|
|
8
|
+
return React$1.createElement(RemoveScroll, __assign({}, props, {
|
|
9
|
+
ref,
|
|
10
|
+
sideCar: sidecar_default
|
|
11
|
+
}));
|
|
12
|
+
});
|
|
13
|
+
ReactRemoveScroll.classNames = RemoveScroll.classNames;
|
|
14
|
+
var Combination_default = ReactRemoveScroll;
|
|
15
|
+
|
|
16
|
+
//#endregion
|
|
17
|
+
export { Combination_default as default };
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
import { __spreadArray } from "../../../../../tslib@2.8.1/node_modules/tslib/tslib.es6.js";
|
|
2
|
+
import { styleSingleton } from "../../../../../react-style-singleton@2.2.3_@types_react@19.2.6_react@19.2.0/node_modules/react-style-singleton/dist/es2015/component.js";
|
|
3
|
+
import "../../../../../react-style-singleton@2.2.3_@types_react@19.2.6_react@19.2.0/node_modules/react-style-singleton/dist/es2015/index.js";
|
|
4
|
+
import { RemoveScrollBar } from "../../../../../react-remove-scroll-bar@2.3.8_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll-bar/dist/es2015/component.js";
|
|
5
|
+
import "../../../../../react-remove-scroll-bar@2.3.8_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll-bar/dist/es2015/index.js";
|
|
6
|
+
import { nonPassive } from "./aggresiveCapture.js";
|
|
7
|
+
import { handleScroll, locationCouldBeScrolled } from "./handleScroll.js";
|
|
8
|
+
import * as React$1 from "react";
|
|
9
|
+
|
|
10
|
+
//#region ../../node_modules/.pnpm/react-remove-scroll@2.7.1_@types+react@19.2.6_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/SideEffect.js
|
|
11
|
+
var getTouchXY = function(event) {
|
|
12
|
+
return "changedTouches" in event ? [event.changedTouches[0].clientX, event.changedTouches[0].clientY] : [0, 0];
|
|
13
|
+
};
|
|
14
|
+
var getDeltaXY = function(event) {
|
|
15
|
+
return [event.deltaX, event.deltaY];
|
|
16
|
+
};
|
|
17
|
+
var extractRef = function(ref) {
|
|
18
|
+
return ref && "current" in ref ? ref.current : ref;
|
|
19
|
+
};
|
|
20
|
+
var deltaCompare = function(x, y) {
|
|
21
|
+
return x[0] === y[0] && x[1] === y[1];
|
|
22
|
+
};
|
|
23
|
+
var generateStyle = function(id) {
|
|
24
|
+
return "\n .block-interactivity-".concat(id, " {pointer-events: none;}\n .allow-interactivity-").concat(id, " {pointer-events: all;}\n");
|
|
25
|
+
};
|
|
26
|
+
var idCounter = 0;
|
|
27
|
+
var lockStack = [];
|
|
28
|
+
function RemoveScrollSideCar(props) {
|
|
29
|
+
var shouldPreventQueue = React$1.useRef([]);
|
|
30
|
+
var touchStartRef = React$1.useRef([0, 0]);
|
|
31
|
+
var activeAxis = React$1.useRef();
|
|
32
|
+
var id = React$1.useState(idCounter++)[0];
|
|
33
|
+
var Style = React$1.useState(styleSingleton)[0];
|
|
34
|
+
var lastProps = React$1.useRef(props);
|
|
35
|
+
React$1.useEffect(function() {
|
|
36
|
+
lastProps.current = props;
|
|
37
|
+
}, [props]);
|
|
38
|
+
React$1.useEffect(function() {
|
|
39
|
+
if (props.inert) {
|
|
40
|
+
document.body.classList.add("block-interactivity-".concat(id));
|
|
41
|
+
var allow_1 = __spreadArray([props.lockRef.current], (props.shards || []).map(extractRef), true).filter(Boolean);
|
|
42
|
+
allow_1.forEach(function(el) {
|
|
43
|
+
return el.classList.add("allow-interactivity-".concat(id));
|
|
44
|
+
});
|
|
45
|
+
return function() {
|
|
46
|
+
document.body.classList.remove("block-interactivity-".concat(id));
|
|
47
|
+
allow_1.forEach(function(el) {
|
|
48
|
+
return el.classList.remove("allow-interactivity-".concat(id));
|
|
49
|
+
});
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
}, [
|
|
53
|
+
props.inert,
|
|
54
|
+
props.lockRef.current,
|
|
55
|
+
props.shards
|
|
56
|
+
]);
|
|
57
|
+
var shouldCancelEvent = React$1.useCallback(function(event, parent) {
|
|
58
|
+
if ("touches" in event && event.touches.length === 2 || event.type === "wheel" && event.ctrlKey) return !lastProps.current.allowPinchZoom;
|
|
59
|
+
var touch = getTouchXY(event);
|
|
60
|
+
var touchStart = touchStartRef.current;
|
|
61
|
+
var deltaX = "deltaX" in event ? event.deltaX : touchStart[0] - touch[0];
|
|
62
|
+
var deltaY = "deltaY" in event ? event.deltaY : touchStart[1] - touch[1];
|
|
63
|
+
var currentAxis;
|
|
64
|
+
var target = event.target;
|
|
65
|
+
var moveDirection = Math.abs(deltaX) > Math.abs(deltaY) ? "h" : "v";
|
|
66
|
+
if ("touches" in event && moveDirection === "h" && target.type === "range") return false;
|
|
67
|
+
var canBeScrolledInMainDirection = locationCouldBeScrolled(moveDirection, target);
|
|
68
|
+
if (!canBeScrolledInMainDirection) return true;
|
|
69
|
+
if (canBeScrolledInMainDirection) currentAxis = moveDirection;
|
|
70
|
+
else {
|
|
71
|
+
currentAxis = moveDirection === "v" ? "h" : "v";
|
|
72
|
+
canBeScrolledInMainDirection = locationCouldBeScrolled(moveDirection, target);
|
|
73
|
+
}
|
|
74
|
+
if (!canBeScrolledInMainDirection) return false;
|
|
75
|
+
if (!activeAxis.current && "changedTouches" in event && (deltaX || deltaY)) activeAxis.current = currentAxis;
|
|
76
|
+
if (!currentAxis) return true;
|
|
77
|
+
var cancelingAxis = activeAxis.current || currentAxis;
|
|
78
|
+
return handleScroll(cancelingAxis, parent, event, cancelingAxis === "h" ? deltaX : deltaY, true);
|
|
79
|
+
}, []);
|
|
80
|
+
var shouldPrevent = React$1.useCallback(function(_event) {
|
|
81
|
+
var event = _event;
|
|
82
|
+
if (!lockStack.length || lockStack[lockStack.length - 1] !== Style) return;
|
|
83
|
+
var delta = "deltaY" in event ? getDeltaXY(event) : getTouchXY(event);
|
|
84
|
+
var sourceEvent = shouldPreventQueue.current.filter(function(e) {
|
|
85
|
+
return e.name === event.type && (e.target === event.target || event.target === e.shadowParent) && deltaCompare(e.delta, delta);
|
|
86
|
+
})[0];
|
|
87
|
+
if (sourceEvent && sourceEvent.should) {
|
|
88
|
+
if (event.cancelable) event.preventDefault();
|
|
89
|
+
return;
|
|
90
|
+
}
|
|
91
|
+
if (!sourceEvent) {
|
|
92
|
+
var shardNodes = (lastProps.current.shards || []).map(extractRef).filter(Boolean).filter(function(node) {
|
|
93
|
+
return node.contains(event.target);
|
|
94
|
+
});
|
|
95
|
+
if (shardNodes.length > 0 ? shouldCancelEvent(event, shardNodes[0]) : !lastProps.current.noIsolation) {
|
|
96
|
+
if (event.cancelable) event.preventDefault();
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}, []);
|
|
100
|
+
var shouldCancel = React$1.useCallback(function(name, delta, target, should) {
|
|
101
|
+
var event = {
|
|
102
|
+
name,
|
|
103
|
+
delta,
|
|
104
|
+
target,
|
|
105
|
+
should,
|
|
106
|
+
shadowParent: getOutermostShadowParent(target)
|
|
107
|
+
};
|
|
108
|
+
shouldPreventQueue.current.push(event);
|
|
109
|
+
setTimeout(function() {
|
|
110
|
+
shouldPreventQueue.current = shouldPreventQueue.current.filter(function(e) {
|
|
111
|
+
return e !== event;
|
|
112
|
+
});
|
|
113
|
+
}, 1);
|
|
114
|
+
}, []);
|
|
115
|
+
var scrollTouchStart = React$1.useCallback(function(event) {
|
|
116
|
+
touchStartRef.current = getTouchXY(event);
|
|
117
|
+
activeAxis.current = void 0;
|
|
118
|
+
}, []);
|
|
119
|
+
var scrollWheel = React$1.useCallback(function(event) {
|
|
120
|
+
shouldCancel(event.type, getDeltaXY(event), event.target, shouldCancelEvent(event, props.lockRef.current));
|
|
121
|
+
}, []);
|
|
122
|
+
var scrollTouchMove = React$1.useCallback(function(event) {
|
|
123
|
+
shouldCancel(event.type, getTouchXY(event), event.target, shouldCancelEvent(event, props.lockRef.current));
|
|
124
|
+
}, []);
|
|
125
|
+
React$1.useEffect(function() {
|
|
126
|
+
lockStack.push(Style);
|
|
127
|
+
props.setCallbacks({
|
|
128
|
+
onScrollCapture: scrollWheel,
|
|
129
|
+
onWheelCapture: scrollWheel,
|
|
130
|
+
onTouchMoveCapture: scrollTouchMove
|
|
131
|
+
});
|
|
132
|
+
document.addEventListener("wheel", shouldPrevent, nonPassive);
|
|
133
|
+
document.addEventListener("touchmove", shouldPrevent, nonPassive);
|
|
134
|
+
document.addEventListener("touchstart", scrollTouchStart, nonPassive);
|
|
135
|
+
return function() {
|
|
136
|
+
lockStack = lockStack.filter(function(inst) {
|
|
137
|
+
return inst !== Style;
|
|
138
|
+
});
|
|
139
|
+
document.removeEventListener("wheel", shouldPrevent, nonPassive);
|
|
140
|
+
document.removeEventListener("touchmove", shouldPrevent, nonPassive);
|
|
141
|
+
document.removeEventListener("touchstart", scrollTouchStart, nonPassive);
|
|
142
|
+
};
|
|
143
|
+
}, []);
|
|
144
|
+
var removeScrollBar = props.removeScrollBar, inert = props.inert;
|
|
145
|
+
return React$1.createElement(React$1.Fragment, null, inert ? React$1.createElement(Style, { styles: generateStyle(id) }) : null, removeScrollBar ? React$1.createElement(RemoveScrollBar, {
|
|
146
|
+
noRelative: props.noRelative,
|
|
147
|
+
gapMode: props.gapMode
|
|
148
|
+
}) : null);
|
|
149
|
+
}
|
|
150
|
+
function getOutermostShadowParent(node) {
|
|
151
|
+
var shadowParent = null;
|
|
152
|
+
while (node !== null) {
|
|
153
|
+
if (node instanceof ShadowRoot) {
|
|
154
|
+
shadowParent = node.host;
|
|
155
|
+
node = node.host;
|
|
156
|
+
}
|
|
157
|
+
node = node.parentNode;
|
|
158
|
+
}
|
|
159
|
+
return shadowParent;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
//#endregion
|
|
163
|
+
export { RemoveScrollSideCar };
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { __assign, __rest } from "../../../../../tslib@2.8.1/node_modules/tslib/tslib.es6.js";
|
|
2
|
+
import { fullWidthClassName, zeroRightClassName } from "../../../../../react-remove-scroll-bar@2.3.8_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll-bar/dist/es2015/constants.js";
|
|
3
|
+
import { useMergeRefs } from "../../../../../use-callback-ref@1.3.3_@types_react@19.2.6_react@19.2.0/node_modules/use-callback-ref/dist/es2015/useMergeRef.js";
|
|
4
|
+
import { effectCar } from "./medium.js";
|
|
5
|
+
import * as React$1 from "react";
|
|
6
|
+
|
|
7
|
+
//#region ../../node_modules/.pnpm/react-remove-scroll@2.7.1_@types+react@19.2.6_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/UI.js
|
|
8
|
+
var nothing = function() {};
|
|
9
|
+
/**
|
|
10
|
+
* Removes scrollbar from the page and contain the scroll within the Lock
|
|
11
|
+
*/
|
|
12
|
+
var RemoveScroll = React$1.forwardRef(function(props, parentRef) {
|
|
13
|
+
var ref = React$1.useRef(null);
|
|
14
|
+
var _a = React$1.useState({
|
|
15
|
+
onScrollCapture: nothing,
|
|
16
|
+
onWheelCapture: nothing,
|
|
17
|
+
onTouchMoveCapture: nothing
|
|
18
|
+
}), callbacks = _a[0], setCallbacks = _a[1];
|
|
19
|
+
var forwardProps = props.forwardProps, children = props.children, className = props.className, removeScrollBar = props.removeScrollBar, enabled = props.enabled, shards = props.shards, sideCar = props.sideCar, noRelative = props.noRelative, noIsolation = props.noIsolation, inert = props.inert, allowPinchZoom = props.allowPinchZoom, _b = props.as, Container = _b === void 0 ? "div" : _b, gapMode = props.gapMode, rest = __rest(props, [
|
|
20
|
+
"forwardProps",
|
|
21
|
+
"children",
|
|
22
|
+
"className",
|
|
23
|
+
"removeScrollBar",
|
|
24
|
+
"enabled",
|
|
25
|
+
"shards",
|
|
26
|
+
"sideCar",
|
|
27
|
+
"noRelative",
|
|
28
|
+
"noIsolation",
|
|
29
|
+
"inert",
|
|
30
|
+
"allowPinchZoom",
|
|
31
|
+
"as",
|
|
32
|
+
"gapMode"
|
|
33
|
+
]);
|
|
34
|
+
var SideCar = sideCar;
|
|
35
|
+
var containerRef = useMergeRefs([ref, parentRef]);
|
|
36
|
+
var containerProps = __assign(__assign({}, rest), callbacks);
|
|
37
|
+
return React$1.createElement(React$1.Fragment, null, enabled && React$1.createElement(SideCar, {
|
|
38
|
+
sideCar: effectCar,
|
|
39
|
+
removeScrollBar,
|
|
40
|
+
shards,
|
|
41
|
+
noRelative,
|
|
42
|
+
noIsolation,
|
|
43
|
+
inert,
|
|
44
|
+
setCallbacks,
|
|
45
|
+
allowPinchZoom: !!allowPinchZoom,
|
|
46
|
+
lockRef: ref,
|
|
47
|
+
gapMode
|
|
48
|
+
}), forwardProps ? React$1.cloneElement(React$1.Children.only(children), __assign(__assign({}, containerProps), { ref: containerRef })) : React$1.createElement(Container, __assign({}, containerProps, {
|
|
49
|
+
className,
|
|
50
|
+
ref: containerRef
|
|
51
|
+
}), children));
|
|
52
|
+
});
|
|
53
|
+
RemoveScroll.defaultProps = {
|
|
54
|
+
enabled: true,
|
|
55
|
+
removeScrollBar: true,
|
|
56
|
+
inert: false
|
|
57
|
+
};
|
|
58
|
+
RemoveScroll.classNames = {
|
|
59
|
+
fullWidth: fullWidthClassName,
|
|
60
|
+
zeroRight: zeroRightClassName
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
//#endregion
|
|
64
|
+
export { RemoveScroll };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
//#region ../../node_modules/.pnpm/react-remove-scroll@2.7.1_@types+react@19.2.6_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js
|
|
2
|
+
var passiveSupported = false;
|
|
3
|
+
if (typeof window !== "undefined") try {
|
|
4
|
+
var options = Object.defineProperty({}, "passive", { get: function() {
|
|
5
|
+
passiveSupported = true;
|
|
6
|
+
return true;
|
|
7
|
+
} });
|
|
8
|
+
window.addEventListener("test", options, options);
|
|
9
|
+
window.removeEventListener("test", options, options);
|
|
10
|
+
} catch (err) {
|
|
11
|
+
passiveSupported = false;
|
|
12
|
+
}
|
|
13
|
+
var nonPassive = passiveSupported ? { passive: false } : false;
|
|
14
|
+
|
|
15
|
+
//#endregion
|
|
16
|
+
export { nonPassive };
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
//#region ../../node_modules/.pnpm/react-remove-scroll@2.7.1_@types+react@19.2.6_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/handleScroll.js
|
|
2
|
+
var alwaysContainsScroll = function(node) {
|
|
3
|
+
return node.tagName === "TEXTAREA";
|
|
4
|
+
};
|
|
5
|
+
var elementCanBeScrolled = function(node, overflow) {
|
|
6
|
+
if (!(node instanceof Element)) return false;
|
|
7
|
+
var styles = window.getComputedStyle(node);
|
|
8
|
+
return styles[overflow] !== "hidden" && !(styles.overflowY === styles.overflowX && !alwaysContainsScroll(node) && styles[overflow] === "visible");
|
|
9
|
+
};
|
|
10
|
+
var elementCouldBeVScrolled = function(node) {
|
|
11
|
+
return elementCanBeScrolled(node, "overflowY");
|
|
12
|
+
};
|
|
13
|
+
var elementCouldBeHScrolled = function(node) {
|
|
14
|
+
return elementCanBeScrolled(node, "overflowX");
|
|
15
|
+
};
|
|
16
|
+
var locationCouldBeScrolled = function(axis, node) {
|
|
17
|
+
var ownerDocument = node.ownerDocument;
|
|
18
|
+
var current = node;
|
|
19
|
+
do {
|
|
20
|
+
if (typeof ShadowRoot !== "undefined" && current instanceof ShadowRoot) current = current.host;
|
|
21
|
+
if (elementCouldBeScrolled(axis, current)) {
|
|
22
|
+
var _a = getScrollVariables(axis, current);
|
|
23
|
+
if (_a[1] > _a[2]) return true;
|
|
24
|
+
}
|
|
25
|
+
current = current.parentNode;
|
|
26
|
+
} while (current && current !== ownerDocument.body);
|
|
27
|
+
return false;
|
|
28
|
+
};
|
|
29
|
+
var getVScrollVariables = function(_a) {
|
|
30
|
+
return [
|
|
31
|
+
_a.scrollTop,
|
|
32
|
+
_a.scrollHeight,
|
|
33
|
+
_a.clientHeight
|
|
34
|
+
];
|
|
35
|
+
};
|
|
36
|
+
var getHScrollVariables = function(_a) {
|
|
37
|
+
return [
|
|
38
|
+
_a.scrollLeft,
|
|
39
|
+
_a.scrollWidth,
|
|
40
|
+
_a.clientWidth
|
|
41
|
+
];
|
|
42
|
+
};
|
|
43
|
+
var elementCouldBeScrolled = function(axis, node) {
|
|
44
|
+
return axis === "v" ? elementCouldBeVScrolled(node) : elementCouldBeHScrolled(node);
|
|
45
|
+
};
|
|
46
|
+
var getScrollVariables = function(axis, node) {
|
|
47
|
+
return axis === "v" ? getVScrollVariables(node) : getHScrollVariables(node);
|
|
48
|
+
};
|
|
49
|
+
var getDirectionFactor = function(axis, direction) {
|
|
50
|
+
/**
|
|
51
|
+
* If the element's direction is rtl (right-to-left), then scrollLeft is 0 when the scrollbar is at its rightmost position,
|
|
52
|
+
* and then increasingly negative as you scroll towards the end of the content.
|
|
53
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollLeft
|
|
54
|
+
*/
|
|
55
|
+
return axis === "h" && direction === "rtl" ? -1 : 1;
|
|
56
|
+
};
|
|
57
|
+
var handleScroll = function(axis, endTarget, event, sourceDelta, noOverscroll) {
|
|
58
|
+
var directionFactor = getDirectionFactor(axis, window.getComputedStyle(endTarget).direction);
|
|
59
|
+
var delta = directionFactor * sourceDelta;
|
|
60
|
+
var target = event.target;
|
|
61
|
+
var targetInLock = endTarget.contains(target);
|
|
62
|
+
var shouldCancelScroll = false;
|
|
63
|
+
var isDeltaPositive = delta > 0;
|
|
64
|
+
var availableScroll = 0;
|
|
65
|
+
var availableScrollTop = 0;
|
|
66
|
+
do {
|
|
67
|
+
if (!target) break;
|
|
68
|
+
var _a = getScrollVariables(axis, target), position = _a[0];
|
|
69
|
+
var elementScroll = _a[1] - _a[2] - directionFactor * position;
|
|
70
|
+
if (position || elementScroll) {
|
|
71
|
+
if (elementCouldBeScrolled(axis, target)) {
|
|
72
|
+
availableScroll += elementScroll;
|
|
73
|
+
availableScrollTop += position;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
var parent_1 = target.parentNode;
|
|
77
|
+
target = parent_1 && parent_1.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? parent_1.host : parent_1;
|
|
78
|
+
} while (!targetInLock && target !== document.body || targetInLock && (endTarget.contains(target) || endTarget === target));
|
|
79
|
+
if (isDeltaPositive && (noOverscroll && Math.abs(availableScroll) < 1 || !noOverscroll && delta > availableScroll)) shouldCancelScroll = true;
|
|
80
|
+
else if (!isDeltaPositive && (noOverscroll && Math.abs(availableScrollTop) < 1 || !noOverscroll && -delta > availableScrollTop)) shouldCancelScroll = true;
|
|
81
|
+
return shouldCancelScroll;
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
//#endregion
|
|
85
|
+
export { handleScroll, locationCouldBeScrolled };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { createSidecarMedium } from "../../../../../use-sidecar@1.1.3_@types_react@19.2.6_react@19.2.0/node_modules/use-sidecar/dist/es2015/medium.js";
|
|
2
|
+
|
|
3
|
+
//#region ../../node_modules/.pnpm/react-remove-scroll@2.7.1_@types+react@19.2.6_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/medium.js
|
|
4
|
+
var effectCar = createSidecarMedium();
|
|
5
|
+
|
|
6
|
+
//#endregion
|
|
7
|
+
export { effectCar };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { exportSidecar } from "../../../../../use-sidecar@1.1.3_@types_react@19.2.6_react@19.2.0/node_modules/use-sidecar/dist/es2015/exports.js";
|
|
2
|
+
import { effectCar } from "./medium.js";
|
|
3
|
+
import { RemoveScrollSideCar } from "./SideEffect.js";
|
|
4
|
+
|
|
5
|
+
//#region ../../node_modules/.pnpm/react-remove-scroll@2.7.1_@types+react@19.2.6_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/sidecar.js
|
|
6
|
+
var sidecar_default = exportSidecar(effectCar, RemoveScrollSideCar);
|
|
7
|
+
|
|
8
|
+
//#endregion
|
|
9
|
+
export { sidecar_default as default };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
const require_rolldown_runtime = require('../../../../../../../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
const require_tslib_es6 = require('../../../../../tslib@2.8.1/node_modules/tslib/tslib.es6.cjs');
|
|
3
|
+
const require_UI$1 = require('./UI.cjs');
|
|
4
|
+
const require_sidecar$1 = require('./sidecar.cjs');
|
|
5
|
+
|
|
6
|
+
//#region ../../node_modules/.pnpm/react-remove-scroll@2.7.1_@types+react@19.2.6_react@19.2.0/node_modules/react-remove-scroll/dist/es5/Combination.js
|
|
7
|
+
var require_Combination = /* @__PURE__ */ require_rolldown_runtime.__commonJS({ "../../node_modules/.pnpm/react-remove-scroll@2.7.1_@types+react@19.2.6_react@19.2.0/node_modules/react-remove-scroll/dist/es5/Combination.js": ((exports) => {
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
var tslib_1 = (require_tslib_es6.init_tslib_es6(), require_rolldown_runtime.__toCommonJS(require_tslib_es6.tslib_es6_exports));
|
|
10
|
+
var React = tslib_1.__importStar(require("react"));
|
|
11
|
+
var UI_1 = require_UI$1.require_UI();
|
|
12
|
+
var sidecar_1 = tslib_1.__importDefault(require_sidecar$1.require_sidecar());
|
|
13
|
+
var ReactRemoveScroll = React.forwardRef(function(props, ref) {
|
|
14
|
+
return React.createElement(UI_1.RemoveScroll, tslib_1.__assign({}, props, {
|
|
15
|
+
ref,
|
|
16
|
+
sideCar: sidecar_1.default
|
|
17
|
+
}));
|
|
18
|
+
});
|
|
19
|
+
ReactRemoveScroll.classNames = UI_1.RemoveScroll.classNames;
|
|
20
|
+
exports.default = ReactRemoveScroll;
|
|
21
|
+
}) });
|
|
22
|
+
|
|
23
|
+
//#endregion
|
|
24
|
+
Object.defineProperty(exports, 'default', {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function () {
|
|
27
|
+
return require_Combination();
|
|
28
|
+
}
|
|
29
|
+
});
|