@pixpilot/shadcn-ui 0.4.1 → 0.4.3
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.d.ts +2 -2
- package/dist/Alert.cjs +10 -8
- package/dist/Alert.js +13 -12
- package/dist/Button.d.cts +1 -1
- package/dist/ContentCard.d.cts +1 -1
- package/dist/DatePicker.d.cts +1 -1
- package/dist/DatePicker.d.ts +2 -2
- package/dist/Select.d.cts +1 -1
- package/dist/_virtual/rolldown_runtime.cjs +0 -19
- package/dist/confirmation-dialog/ConfirmationDialog.cjs +2 -3
- package/dist/confirmation-dialog/ConfirmationDialog.d.cts +0 -1
- package/dist/confirmation-dialog/ConfirmationDialog.js +3 -4
- package/dist/confirmation-dialog/index.cjs +0 -1
- package/dist/file-upload/FileUploadListItem.cjs +1 -2
- package/dist/file-upload/FileUploadListItem.js +2 -3
- package/dist/file-upload/hooks/index.cjs +0 -1
- package/dist/file-upload/hooks/use-file-error.cjs +3 -3
- package/dist/file-upload/hooks/use-file-error.js +2 -3
- package/dist/file-upload/hooks/use-file-upload-progress-callbacks.cjs +3 -3
- package/dist/file-upload/hooks/use-file-upload-progress-callbacks.js +2 -3
- package/dist/file-upload/index.cjs +0 -1
- package/dist/file-upload/index.d.cts +1 -2
- package/dist/file-upload/utils/create-placeholder-file.cjs +0 -1
- package/dist/file-upload/utils/get-file-key.cjs +0 -1
- package/dist/file-upload/utils/get-file-meta.cjs +0 -1
- package/dist/file-upload/utils/is-file-equal.cjs +0 -1
- package/dist/file-upload/utils/merge-file-metadata.cjs +0 -1
- package/dist/file-upload-inline/FileUploadInlineItem.cjs +1 -3
- package/dist/file-upload-inline/FileUploadInlineItem.js +2 -4
- package/dist/file-upload-inline/defaults.cjs +0 -1
- package/dist/file-upload-inline/index.cjs +0 -1
- package/dist/file-upload-inline/utils.cjs +0 -1
- package/dist/hooks/index.cjs +0 -1
- package/dist/icon-selector/IconPicker.cjs +1 -1
- package/dist/icon-selector/IconPicker.d.cts +0 -1
- package/dist/icon-selector/IconPicker.d.ts +0 -1
- package/dist/icon-selector/IconPicker.js +1 -1
- package/dist/icon-selector/constants.cjs +0 -1
- package/dist/icon-selector/index.cjs +0 -1
- package/dist/icon-selector/index.d.cts +2 -2
- package/dist/icon-selector/index.d.ts +2 -2
- package/dist/icon-selector/utils/is-valid-provider.cjs +0 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/pagination/index.cjs +0 -1
- package/dist/rich-text-editor/index.cjs +0 -1
- package/dist/shadcn/src/lib/index.cjs +1 -0
- package/dist/shadcn/src/lib/index.js +1 -0
- package/dist/shadcn/src/lib/utils.cjs +13 -0
- package/dist/shadcn/src/lib/utils.js +10 -0
- package/dist/spinner/index.cjs +0 -1
- package/dist/spinner/styles.cjs +0 -1
- package/dist/toast/AlertToast.js +2 -2
- package/dist/toast/index.cjs +0 -1
- package/package.json +4 -4
- package/dist/_virtual/rolldown_runtime.js +0 -43
- package/dist/file-upload/hooks/index.d.cts +0 -2
- package/dist/file-upload/hooks/use-file-upload-progress-callbacks.d.cts +0 -1
- package/dist/file-upload/hooks/use-file-upload-store.d.cts +0 -2
- package/dist/file-upload/utils/get-file-key.d.cts +0 -1
- package/dist/file-upload/utils/get-file-meta.d.cts +0 -1
- package/dist/file-upload/utils/index.d.cts +0 -4
- package/dist/file-upload/utils/is-file-equal.d.cts +0 -1
- package/dist/file-upload/utils/merge-file-metadata.d.cts +0 -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 +0 -558
- 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 +0 -555
- 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 +0 -566
- 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 +0 -565
- package/dist/node_modules/.pnpm/@floating-ui_core@1.7.3/node_modules/@floating-ui/core/dist/floating-ui.core.cjs +0 -695
- package/dist/node_modules/.pnpm/@floating-ui_core@1.7.3/node_modules/@floating-ui/core/dist/floating-ui.core.js +0 -679
- package/dist/node_modules/.pnpm/@floating-ui_dom@1.7.4/node_modules/@floating-ui/dom/dist/floating-ui.dom.cjs +0 -521
- package/dist/node_modules/.pnpm/@floating-ui_dom@1.7.4/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +0 -503
- 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 +0 -282
- 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 +0 -266
- 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 +0 -3767
- 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 +0 -3747
- 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 +0 -426
- 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 +0 -379
- package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.cjs +0 -165
- package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.cjs +0 -175
- package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +0 -151
- package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +0 -138
- package/dist/node_modules/.pnpm/@radix-ui_primitive@1.1.3/node_modules/@radix-ui/primitive/dist/index.cjs +0 -13
- package/dist/node_modules/.pnpm/@radix-ui_primitive@1.1.3/node_modules/@radix-ui/primitive/dist/index.js +0 -11
- 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 +0 -33
- 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 +0 -30
- 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 +0 -92
- 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 +0 -88
- 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 +0 -310
- 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 +0 -299
- 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 +0 -190
- 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 +0 -187
- 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 +0 -34
- 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 +0 -32
- 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 +0 -203
- 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 +0 -200
- 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 +0 -18
- 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 +0 -16
- 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 +0 -29
- 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 +0 -25
- 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 +0 -110
- 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 +0 -108
- 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 +0 -52
- 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 +0 -47
- 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 +0 -92
- 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 +0 -89
- 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 +0 -103
- 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 +0 -100
- 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 +0 -15
- 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 +0 -13
- 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 +0 -64
- 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 +0 -62
- 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 +0 -19
- 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 +0 -17
- 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 +0 -9
- 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 +0 -7
- package/dist/node_modules/.pnpm/aria-hidden@1.2.6/node_modules/aria-hidden/dist/es2015/index.js +0 -108
- package/dist/node_modules/.pnpm/aria-hidden@1.2.6/node_modules/aria-hidden/dist/es5/index.cjs +0 -155
- package/dist/node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.cjs +0 -19
- package/dist/node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.js +0 -17
- package/dist/node_modules/.pnpm/detect-node-es@1.1.0/node_modules/detect-node-es/es5/node.cjs +0 -14
- package/dist/node_modules/.pnpm/get-nonce@1.0.1/node_modules/get-nonce/dist/es2015/index.js +0 -9
- package/dist/node_modules/.pnpm/get-nonce@1.0.1/node_modules/get-nonce/dist/es5/index.cjs +0 -22
- 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 +0 -46
- 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 +0 -12
- 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 +0 -3
- 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 +0 -37
- 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 +0 -61
- 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 +0 -23
- 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 +0 -57
- 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 +0 -49
- 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 +0 -17
- 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 +0 -163
- 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 +0 -64
- 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 +0 -16
- 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 +0 -85
- 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 +0 -7
- 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 +0 -9
- 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 +0 -29
- 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 +0 -179
- 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 +0 -79
- 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 +0 -27
- 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 +0 -98
- 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 +0 -19
- 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 +0 -18
- 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 +0 -21
- 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 +0 -21
- 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 +0 -27
- 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 +0 -3
- 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 +0 -43
- 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 +0 -33
- 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 +0 -40
- 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 +0 -39
- 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 +0 -55
- package/dist/node_modules/.pnpm/tabbable@6.3.0/node_modules/tabbable/dist/index.cjs +0 -347
- package/dist/node_modules/.pnpm/tabbable@6.3.0/node_modules/tabbable/dist/index.esm.js +0 -268
- package/dist/node_modules/.pnpm/tailwind-merge@3.4.0/node_modules/tailwind-merge/dist/bundle-mjs.cjs +0 -1895
- package/dist/node_modules/.pnpm/tailwind-merge@3.4.0/node_modules/tailwind-merge/dist/bundle-mjs.js +0 -1893
- package/dist/node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.cjs +0 -557
- package/dist/node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.js +0 -31
- 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 +0 -22
- 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 +0 -47
- 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 +0 -42
- 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 +0 -34
- 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 +0 -39
- 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 +0 -85
- 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 +0 -40
- 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 +0 -59
- 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 +0 -34
- 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 +0 -61
- 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 +0 -53
- 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 +0 -38
- 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 +0 -19
- 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 +0 -84
- 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 +0 -22
- 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 +0 -21
- 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 +0 -31
- 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 +0 -31
- 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 +0 -60
- 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 +0 -69
- 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 +0 -101
- 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 +0 -58
- package/dist/packages/shadcn/src/components/index.cjs +0 -6
- package/dist/packages/shadcn/src/components/index.js +0 -5
- package/dist/packages/shadcn/src/components/ui/OrContinueWithSeparator.cjs +0 -6
- package/dist/packages/shadcn/src/components/ui/OrContinueWithSeparator.js +0 -3
- package/dist/packages/shadcn/src/components/ui/alert-dialog.cjs +0 -10
- package/dist/packages/shadcn/src/components/ui/alert-dialog.js +0 -6
- package/dist/packages/shadcn/src/components/ui/alert.cjs +0 -44
- package/dist/packages/shadcn/src/components/ui/alert.js +0 -38
- package/dist/packages/shadcn/src/components/ui/avatar.cjs +0 -5
- package/dist/packages/shadcn/src/components/ui/avatar.js +0 -2
- package/dist/packages/shadcn/src/components/ui/badge.cjs +0 -20
- package/dist/packages/shadcn/src/components/ui/badge.js +0 -16
- package/dist/packages/shadcn/src/components/ui/button.cjs +0 -50
- package/dist/packages/shadcn/src/components/ui/button.js +0 -45
- package/dist/packages/shadcn/src/components/ui/calendar.cjs +0 -8
- package/dist/packages/shadcn/src/components/ui/calendar.js +0 -4
- package/dist/packages/shadcn/src/components/ui/card.cjs +0 -5
- package/dist/packages/shadcn/src/components/ui/card.js +0 -2
- package/dist/packages/shadcn/src/components/ui/checkbox.cjs +0 -10
- package/dist/packages/shadcn/src/components/ui/checkbox.js +0 -6
- package/dist/packages/shadcn/src/components/ui/command.cjs +0 -11
- package/dist/packages/shadcn/src/components/ui/command.js +0 -7
- package/dist/packages/shadcn/src/components/ui/dialog.cjs +0 -93
- package/dist/packages/shadcn/src/components/ui/dialog.js +0 -81
- package/dist/packages/shadcn/src/components/ui/dropdown-menu.cjs +0 -7
- package/dist/packages/shadcn/src/components/ui/dropdown-menu.js +0 -3
- package/dist/packages/shadcn/src/components/ui/file-upload.cjs +0 -49
- package/dist/packages/shadcn/src/components/ui/file-upload.js +0 -45
- package/dist/packages/shadcn/src/components/ui/form.cjs +0 -12
- package/dist/packages/shadcn/src/components/ui/form.js +0 -9
- package/dist/packages/shadcn/src/components/ui/index.cjs +0 -30
- package/dist/packages/shadcn/src/components/ui/index.js +0 -29
- package/dist/packages/shadcn/src/components/ui/input.cjs +0 -5
- package/dist/packages/shadcn/src/components/ui/input.js +0 -2
- package/dist/packages/shadcn/src/components/ui/label.cjs +0 -5
- package/dist/packages/shadcn/src/components/ui/label.js +0 -2
- package/dist/packages/shadcn/src/components/ui/pagination.cjs +0 -9
- package/dist/packages/shadcn/src/components/ui/pagination.js +0 -4
- package/dist/packages/shadcn/src/components/ui/popover.cjs +0 -5
- package/dist/packages/shadcn/src/components/ui/popover.js +0 -2
- package/dist/packages/shadcn/src/components/ui/radio-group.cjs +0 -7
- package/dist/packages/shadcn/src/components/ui/radio-group.js +0 -3
- package/dist/packages/shadcn/src/components/ui/select.cjs +0 -10
- package/dist/packages/shadcn/src/components/ui/select.js +0 -6
- package/dist/packages/shadcn/src/components/ui/separator.cjs +0 -5
- package/dist/packages/shadcn/src/components/ui/separator.js +0 -2
- package/dist/packages/shadcn/src/components/ui/shadcn-io/tags/index.cjs +0 -26
- package/dist/packages/shadcn/src/components/ui/shadcn-io/tags/index.js +0 -22
- package/dist/packages/shadcn/src/components/ui/shadcn-io/tags-input-inline/index.cjs +0 -6
- package/dist/packages/shadcn/src/components/ui/shadcn-io/tags-input-inline/index.js +0 -3
- package/dist/packages/shadcn/src/components/ui/sheet.cjs +0 -7
- package/dist/packages/shadcn/src/components/ui/sheet.js +0 -3
- package/dist/packages/shadcn/src/components/ui/slider.cjs +0 -5
- package/dist/packages/shadcn/src/components/ui/slider.js +0 -2
- package/dist/packages/shadcn/src/components/ui/switch.cjs +0 -8
- package/dist/packages/shadcn/src/components/ui/switch.js +0 -5
- package/dist/packages/shadcn/src/components/ui/tabs.cjs +0 -5
- package/dist/packages/shadcn/src/components/ui/tabs.js +0 -2
- package/dist/packages/shadcn/src/components/ui/textarea.cjs +0 -5
- package/dist/packages/shadcn/src/components/ui/textarea.js +0 -2
- package/dist/packages/shadcn/src/components/ui/tooltip.cjs +0 -5
- package/dist/packages/shadcn/src/components/ui/tooltip.js +0 -2
- package/dist/packages/shadcn/src/lib/utils.cjs +0 -11
- package/dist/packages/shadcn/src/lib/utils.js +0 -10
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import * as React$1 from "react";
|
|
2
|
-
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
|
|
4
|
-
//#region ../../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.mjs
|
|
5
|
-
function createContext2(rootComponentName, defaultContext) {
|
|
6
|
-
const Context = React$1.createContext(defaultContext);
|
|
7
|
-
const Provider = (props) => {
|
|
8
|
-
const { children,...context } = props;
|
|
9
|
-
const value = React$1.useMemo(() => context, Object.values(context));
|
|
10
|
-
return /* @__PURE__ */ jsx(Context.Provider, {
|
|
11
|
-
value,
|
|
12
|
-
children
|
|
13
|
-
});
|
|
14
|
-
};
|
|
15
|
-
Provider.displayName = rootComponentName + "Provider";
|
|
16
|
-
function useContext2(consumerName) {
|
|
17
|
-
const context = React$1.useContext(Context);
|
|
18
|
-
if (context) return context;
|
|
19
|
-
if (defaultContext !== void 0) return defaultContext;
|
|
20
|
-
throw new Error(`\`${consumerName}\` must be used within \`${rootComponentName}\``);
|
|
21
|
-
}
|
|
22
|
-
return [Provider, useContext2];
|
|
23
|
-
}
|
|
24
|
-
function createContextScope(scopeName, createContextScopeDeps = []) {
|
|
25
|
-
let defaultContexts = [];
|
|
26
|
-
function createContext3(rootComponentName, defaultContext) {
|
|
27
|
-
const BaseContext = React$1.createContext(defaultContext);
|
|
28
|
-
const index = defaultContexts.length;
|
|
29
|
-
defaultContexts = [...defaultContexts, defaultContext];
|
|
30
|
-
const Provider = (props) => {
|
|
31
|
-
const { scope, children,...context } = props;
|
|
32
|
-
const Context = scope?.[scopeName]?.[index] || BaseContext;
|
|
33
|
-
const value = React$1.useMemo(() => context, Object.values(context));
|
|
34
|
-
return /* @__PURE__ */ jsx(Context.Provider, {
|
|
35
|
-
value,
|
|
36
|
-
children
|
|
37
|
-
});
|
|
38
|
-
};
|
|
39
|
-
Provider.displayName = rootComponentName + "Provider";
|
|
40
|
-
function useContext2(consumerName, scope) {
|
|
41
|
-
const Context = scope?.[scopeName]?.[index] || BaseContext;
|
|
42
|
-
const context = React$1.useContext(Context);
|
|
43
|
-
if (context) return context;
|
|
44
|
-
if (defaultContext !== void 0) return defaultContext;
|
|
45
|
-
throw new Error(`\`${consumerName}\` must be used within \`${rootComponentName}\``);
|
|
46
|
-
}
|
|
47
|
-
return [Provider, useContext2];
|
|
48
|
-
}
|
|
49
|
-
const createScope = () => {
|
|
50
|
-
const scopeContexts = defaultContexts.map((defaultContext) => {
|
|
51
|
-
return React$1.createContext(defaultContext);
|
|
52
|
-
});
|
|
53
|
-
return function useScope(scope) {
|
|
54
|
-
const contexts = scope?.[scopeName] || scopeContexts;
|
|
55
|
-
return React$1.useMemo(() => ({ [`__scope${scopeName}`]: {
|
|
56
|
-
...scope,
|
|
57
|
-
[scopeName]: contexts
|
|
58
|
-
} }), [scope, contexts]);
|
|
59
|
-
};
|
|
60
|
-
};
|
|
61
|
-
createScope.scopeName = scopeName;
|
|
62
|
-
return [createContext3, composeContextScopes(createScope, ...createContextScopeDeps)];
|
|
63
|
-
}
|
|
64
|
-
function composeContextScopes(...scopes) {
|
|
65
|
-
const baseScope = scopes[0];
|
|
66
|
-
if (scopes.length === 1) return baseScope;
|
|
67
|
-
const createScope = () => {
|
|
68
|
-
const scopeHooks = scopes.map((createScope2) => ({
|
|
69
|
-
useScope: createScope2(),
|
|
70
|
-
scopeName: createScope2.scopeName
|
|
71
|
-
}));
|
|
72
|
-
return function useComposedScopes(overrideScopes) {
|
|
73
|
-
const nextScopes = scopeHooks.reduce((nextScopes2, { useScope, scopeName }) => {
|
|
74
|
-
const currentScope = useScope(overrideScopes)[`__scope${scopeName}`];
|
|
75
|
-
return {
|
|
76
|
-
...nextScopes2,
|
|
77
|
-
...currentScope
|
|
78
|
-
};
|
|
79
|
-
}, {});
|
|
80
|
-
return React$1.useMemo(() => ({ [`__scope${baseScope.scopeName}`]: nextScopes }), [nextScopes]);
|
|
81
|
-
};
|
|
82
|
-
};
|
|
83
|
-
createScope.scopeName = baseScope.scopeName;
|
|
84
|
-
return createScope;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
//#endregion
|
|
88
|
-
export { createContext2, createContextScope };
|
|
@@ -1,310 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const require_rolldown_runtime = require('../../../../../../../_virtual/rolldown_runtime.cjs');
|
|
5
|
-
const require_index = require('../../../../../@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');
|
|
6
|
-
const require_index$1 = require('../../../../../@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');
|
|
7
|
-
const require_index$2 = require('../../../../../@radix-ui_primitive@1.1.3/node_modules/@radix-ui/primitive/dist/index.cjs');
|
|
8
|
-
const require_index$3 = require('../../../../../@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');
|
|
9
|
-
const require_index$4 = require('../../../../../@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');
|
|
10
|
-
const require_index$5 = require('../../../../../@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');
|
|
11
|
-
const require_index$6 = require('../../../../../@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');
|
|
12
|
-
const require_index$7 = require('../../../../../@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');
|
|
13
|
-
const require_index$8 = require('../../../../../@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');
|
|
14
|
-
const require_index$9 = require('../../../../../@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');
|
|
15
|
-
const require_index$10 = require('../../../../../@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');
|
|
16
|
-
const require_index$11 = require('../../../../../@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');
|
|
17
|
-
const require_index$12 = require('../../../../../react-remove-scroll@2.7.1_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll/dist/es5/index.cjs');
|
|
18
|
-
const require_index$13 = require('../../../../../aria-hidden@1.2.6/node_modules/aria-hidden/dist/es5/index.cjs');
|
|
19
|
-
let react = require("react");
|
|
20
|
-
react = require_rolldown_runtime.__toESM(react);
|
|
21
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
22
|
-
react_jsx_runtime = require_rolldown_runtime.__toESM(react_jsx_runtime);
|
|
23
|
-
|
|
24
|
-
//#region ../../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.mjs
|
|
25
|
-
var import_es5 = /* @__PURE__ */ require_rolldown_runtime.__toESM(require_index$12.require_es5(), 1);
|
|
26
|
-
var import_es5$1 = /* @__PURE__ */ require_rolldown_runtime.__toESM(require_index$13.require_es5(), 1);
|
|
27
|
-
var DIALOG_NAME = "Dialog";
|
|
28
|
-
var [createDialogContext, createDialogScope] = require_index$1.createContextScope(DIALOG_NAME);
|
|
29
|
-
var [DialogProvider, useDialogContext] = createDialogContext(DIALOG_NAME);
|
|
30
|
-
var Dialog = (props) => {
|
|
31
|
-
const { __scopeDialog, children, open: openProp, defaultOpen, onOpenChange, modal = true } = props;
|
|
32
|
-
const triggerRef = react.useRef(null);
|
|
33
|
-
const contentRef = react.useRef(null);
|
|
34
|
-
const [open, setOpen] = require_index$4.useControllableState({
|
|
35
|
-
prop: openProp,
|
|
36
|
-
defaultProp: defaultOpen ?? false,
|
|
37
|
-
onChange: onOpenChange,
|
|
38
|
-
caller: DIALOG_NAME
|
|
39
|
-
});
|
|
40
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(DialogProvider, {
|
|
41
|
-
scope: __scopeDialog,
|
|
42
|
-
triggerRef,
|
|
43
|
-
contentRef,
|
|
44
|
-
contentId: require_index$3.useId(),
|
|
45
|
-
titleId: require_index$3.useId(),
|
|
46
|
-
descriptionId: require_index$3.useId(),
|
|
47
|
-
open,
|
|
48
|
-
onOpenChange: setOpen,
|
|
49
|
-
onOpenToggle: react.useCallback(() => setOpen((prevOpen) => !prevOpen), [setOpen]),
|
|
50
|
-
modal,
|
|
51
|
-
children
|
|
52
|
-
});
|
|
53
|
-
};
|
|
54
|
-
Dialog.displayName = DIALOG_NAME;
|
|
55
|
-
var TRIGGER_NAME = "DialogTrigger";
|
|
56
|
-
var DialogTrigger = react.forwardRef((props, forwardedRef) => {
|
|
57
|
-
const { __scopeDialog,...triggerProps } = props;
|
|
58
|
-
const context = useDialogContext(TRIGGER_NAME, __scopeDialog);
|
|
59
|
-
const composedTriggerRef = require_index.useComposedRefs(forwardedRef, context.triggerRef);
|
|
60
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_index$6.Primitive.button, {
|
|
61
|
-
type: "button",
|
|
62
|
-
"aria-haspopup": "dialog",
|
|
63
|
-
"aria-expanded": context.open,
|
|
64
|
-
"aria-controls": context.contentId,
|
|
65
|
-
"data-state": getState(context.open),
|
|
66
|
-
...triggerProps,
|
|
67
|
-
ref: composedTriggerRef,
|
|
68
|
-
onClick: require_index$2.composeEventHandlers(props.onClick, context.onOpenToggle)
|
|
69
|
-
});
|
|
70
|
-
});
|
|
71
|
-
DialogTrigger.displayName = TRIGGER_NAME;
|
|
72
|
-
var PORTAL_NAME = "DialogPortal";
|
|
73
|
-
var [PortalProvider, usePortalContext] = createDialogContext(PORTAL_NAME, { forceMount: void 0 });
|
|
74
|
-
var DialogPortal = (props) => {
|
|
75
|
-
const { __scopeDialog, forceMount, children, container } = props;
|
|
76
|
-
const context = useDialogContext(PORTAL_NAME, __scopeDialog);
|
|
77
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(PortalProvider, {
|
|
78
|
-
scope: __scopeDialog,
|
|
79
|
-
forceMount,
|
|
80
|
-
children: react.Children.map(children, (child) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_index$10.Presence, {
|
|
81
|
-
present: forceMount || context.open,
|
|
82
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_index$9.Portal, {
|
|
83
|
-
asChild: true,
|
|
84
|
-
container,
|
|
85
|
-
children: child
|
|
86
|
-
})
|
|
87
|
-
}))
|
|
88
|
-
});
|
|
89
|
-
};
|
|
90
|
-
DialogPortal.displayName = PORTAL_NAME;
|
|
91
|
-
var OVERLAY_NAME = "DialogOverlay";
|
|
92
|
-
var DialogOverlay = react.forwardRef((props, forwardedRef) => {
|
|
93
|
-
const portalContext = usePortalContext(OVERLAY_NAME, props.__scopeDialog);
|
|
94
|
-
const { forceMount = portalContext.forceMount,...overlayProps } = props;
|
|
95
|
-
const context = useDialogContext(OVERLAY_NAME, props.__scopeDialog);
|
|
96
|
-
return context.modal ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_index$10.Presence, {
|
|
97
|
-
present: forceMount || context.open,
|
|
98
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(DialogOverlayImpl, {
|
|
99
|
-
...overlayProps,
|
|
100
|
-
ref: forwardedRef
|
|
101
|
-
})
|
|
102
|
-
}) : null;
|
|
103
|
-
});
|
|
104
|
-
DialogOverlay.displayName = OVERLAY_NAME;
|
|
105
|
-
var Slot = require_index$5.createSlot("DialogOverlay.RemoveScroll");
|
|
106
|
-
var DialogOverlayImpl = react.forwardRef((props, forwardedRef) => {
|
|
107
|
-
const { __scopeDialog,...overlayProps } = props;
|
|
108
|
-
const context = useDialogContext(OVERLAY_NAME, __scopeDialog);
|
|
109
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(import_es5.RemoveScroll, {
|
|
110
|
-
as: Slot,
|
|
111
|
-
allowPinchZoom: true,
|
|
112
|
-
shards: [context.contentRef],
|
|
113
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_index$6.Primitive.div, {
|
|
114
|
-
"data-state": getState(context.open),
|
|
115
|
-
...overlayProps,
|
|
116
|
-
ref: forwardedRef,
|
|
117
|
-
style: {
|
|
118
|
-
pointerEvents: "auto",
|
|
119
|
-
...overlayProps.style
|
|
120
|
-
}
|
|
121
|
-
})
|
|
122
|
-
});
|
|
123
|
-
});
|
|
124
|
-
var CONTENT_NAME = "DialogContent";
|
|
125
|
-
var DialogContent = react.forwardRef((props, forwardedRef) => {
|
|
126
|
-
const portalContext = usePortalContext(CONTENT_NAME, props.__scopeDialog);
|
|
127
|
-
const { forceMount = portalContext.forceMount,...contentProps } = props;
|
|
128
|
-
const context = useDialogContext(CONTENT_NAME, props.__scopeDialog);
|
|
129
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_index$10.Presence, {
|
|
130
|
-
present: forceMount || context.open,
|
|
131
|
-
children: context.modal ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(DialogContentModal, {
|
|
132
|
-
...contentProps,
|
|
133
|
-
ref: forwardedRef
|
|
134
|
-
}) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(DialogContentNonModal, {
|
|
135
|
-
...contentProps,
|
|
136
|
-
ref: forwardedRef
|
|
137
|
-
})
|
|
138
|
-
});
|
|
139
|
-
});
|
|
140
|
-
DialogContent.displayName = CONTENT_NAME;
|
|
141
|
-
var DialogContentModal = react.forwardRef((props, forwardedRef) => {
|
|
142
|
-
const context = useDialogContext(CONTENT_NAME, props.__scopeDialog);
|
|
143
|
-
const contentRef = react.useRef(null);
|
|
144
|
-
const composedRefs = require_index.useComposedRefs(forwardedRef, context.contentRef, contentRef);
|
|
145
|
-
react.useEffect(() => {
|
|
146
|
-
const content = contentRef.current;
|
|
147
|
-
if (content) return (0, import_es5$1.hideOthers)(content);
|
|
148
|
-
}, []);
|
|
149
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(DialogContentImpl, {
|
|
150
|
-
...props,
|
|
151
|
-
ref: composedRefs,
|
|
152
|
-
trapFocus: context.open,
|
|
153
|
-
disableOutsidePointerEvents: true,
|
|
154
|
-
onCloseAutoFocus: require_index$2.composeEventHandlers(props.onCloseAutoFocus, (event) => {
|
|
155
|
-
event.preventDefault();
|
|
156
|
-
context.triggerRef.current?.focus();
|
|
157
|
-
}),
|
|
158
|
-
onPointerDownOutside: require_index$2.composeEventHandlers(props.onPointerDownOutside, (event) => {
|
|
159
|
-
const originalEvent = event.detail.originalEvent;
|
|
160
|
-
const ctrlLeftClick = originalEvent.button === 0 && originalEvent.ctrlKey === true;
|
|
161
|
-
if (originalEvent.button === 2 || ctrlLeftClick) event.preventDefault();
|
|
162
|
-
}),
|
|
163
|
-
onFocusOutside: require_index$2.composeEventHandlers(props.onFocusOutside, (event) => event.preventDefault())
|
|
164
|
-
});
|
|
165
|
-
});
|
|
166
|
-
var DialogContentNonModal = react.forwardRef((props, forwardedRef) => {
|
|
167
|
-
const context = useDialogContext(CONTENT_NAME, props.__scopeDialog);
|
|
168
|
-
const hasInteractedOutsideRef = react.useRef(false);
|
|
169
|
-
const hasPointerDownOutsideRef = react.useRef(false);
|
|
170
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(DialogContentImpl, {
|
|
171
|
-
...props,
|
|
172
|
-
ref: forwardedRef,
|
|
173
|
-
trapFocus: false,
|
|
174
|
-
disableOutsidePointerEvents: false,
|
|
175
|
-
onCloseAutoFocus: (event) => {
|
|
176
|
-
props.onCloseAutoFocus?.(event);
|
|
177
|
-
if (!event.defaultPrevented) {
|
|
178
|
-
if (!hasInteractedOutsideRef.current) context.triggerRef.current?.focus();
|
|
179
|
-
event.preventDefault();
|
|
180
|
-
}
|
|
181
|
-
hasInteractedOutsideRef.current = false;
|
|
182
|
-
hasPointerDownOutsideRef.current = false;
|
|
183
|
-
},
|
|
184
|
-
onInteractOutside: (event) => {
|
|
185
|
-
props.onInteractOutside?.(event);
|
|
186
|
-
if (!event.defaultPrevented) {
|
|
187
|
-
hasInteractedOutsideRef.current = true;
|
|
188
|
-
if (event.detail.originalEvent.type === "pointerdown") hasPointerDownOutsideRef.current = true;
|
|
189
|
-
}
|
|
190
|
-
const target = event.target;
|
|
191
|
-
if (context.triggerRef.current?.contains(target)) event.preventDefault();
|
|
192
|
-
if (event.detail.originalEvent.type === "focusin" && hasPointerDownOutsideRef.current) event.preventDefault();
|
|
193
|
-
}
|
|
194
|
-
});
|
|
195
|
-
});
|
|
196
|
-
var DialogContentImpl = react.forwardRef((props, forwardedRef) => {
|
|
197
|
-
const { __scopeDialog, trapFocus, onOpenAutoFocus, onCloseAutoFocus,...contentProps } = props;
|
|
198
|
-
const context = useDialogContext(CONTENT_NAME, __scopeDialog);
|
|
199
|
-
const contentRef = react.useRef(null);
|
|
200
|
-
const composedRefs = require_index.useComposedRefs(forwardedRef, contentRef);
|
|
201
|
-
require_index$11.useFocusGuards();
|
|
202
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_index$8.FocusScope, {
|
|
203
|
-
asChild: true,
|
|
204
|
-
loop: true,
|
|
205
|
-
trapped: trapFocus,
|
|
206
|
-
onMountAutoFocus: onOpenAutoFocus,
|
|
207
|
-
onUnmountAutoFocus: onCloseAutoFocus,
|
|
208
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_index$7.DismissableLayer, {
|
|
209
|
-
role: "dialog",
|
|
210
|
-
id: context.contentId,
|
|
211
|
-
"aria-describedby": context.descriptionId,
|
|
212
|
-
"aria-labelledby": context.titleId,
|
|
213
|
-
"data-state": getState(context.open),
|
|
214
|
-
...contentProps,
|
|
215
|
-
ref: composedRefs,
|
|
216
|
-
onDismiss: () => context.onOpenChange(false)
|
|
217
|
-
})
|
|
218
|
-
}), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(TitleWarning, { titleId: context.titleId }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(DescriptionWarning, {
|
|
219
|
-
contentRef,
|
|
220
|
-
descriptionId: context.descriptionId
|
|
221
|
-
})] })] });
|
|
222
|
-
});
|
|
223
|
-
var TITLE_NAME = "DialogTitle";
|
|
224
|
-
var DialogTitle = react.forwardRef((props, forwardedRef) => {
|
|
225
|
-
const { __scopeDialog,...titleProps } = props;
|
|
226
|
-
const context = useDialogContext(TITLE_NAME, __scopeDialog);
|
|
227
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_index$6.Primitive.h2, {
|
|
228
|
-
id: context.titleId,
|
|
229
|
-
...titleProps,
|
|
230
|
-
ref: forwardedRef
|
|
231
|
-
});
|
|
232
|
-
});
|
|
233
|
-
DialogTitle.displayName = TITLE_NAME;
|
|
234
|
-
var DESCRIPTION_NAME = "DialogDescription";
|
|
235
|
-
var DialogDescription = react.forwardRef((props, forwardedRef) => {
|
|
236
|
-
const { __scopeDialog,...descriptionProps } = props;
|
|
237
|
-
const context = useDialogContext(DESCRIPTION_NAME, __scopeDialog);
|
|
238
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_index$6.Primitive.p, {
|
|
239
|
-
id: context.descriptionId,
|
|
240
|
-
...descriptionProps,
|
|
241
|
-
ref: forwardedRef
|
|
242
|
-
});
|
|
243
|
-
});
|
|
244
|
-
DialogDescription.displayName = DESCRIPTION_NAME;
|
|
245
|
-
var CLOSE_NAME = "DialogClose";
|
|
246
|
-
var DialogClose = react.forwardRef((props, forwardedRef) => {
|
|
247
|
-
const { __scopeDialog,...closeProps } = props;
|
|
248
|
-
const context = useDialogContext(CLOSE_NAME, __scopeDialog);
|
|
249
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_index$6.Primitive.button, {
|
|
250
|
-
type: "button",
|
|
251
|
-
...closeProps,
|
|
252
|
-
ref: forwardedRef,
|
|
253
|
-
onClick: require_index$2.composeEventHandlers(props.onClick, () => context.onOpenChange(false))
|
|
254
|
-
});
|
|
255
|
-
});
|
|
256
|
-
DialogClose.displayName = CLOSE_NAME;
|
|
257
|
-
function getState(open) {
|
|
258
|
-
return open ? "open" : "closed";
|
|
259
|
-
}
|
|
260
|
-
var TITLE_WARNING_NAME = "DialogTitleWarning";
|
|
261
|
-
var [WarningProvider, useWarningContext] = require_index$1.createContext2(TITLE_WARNING_NAME, {
|
|
262
|
-
contentName: CONTENT_NAME,
|
|
263
|
-
titleName: TITLE_NAME,
|
|
264
|
-
docsSlug: "dialog"
|
|
265
|
-
});
|
|
266
|
-
var TitleWarning = ({ titleId }) => {
|
|
267
|
-
const titleWarningContext = useWarningContext(TITLE_WARNING_NAME);
|
|
268
|
-
const MESSAGE = `\`${titleWarningContext.contentName}\` requires a \`${titleWarningContext.titleName}\` for the component to be accessible for screen reader users.
|
|
269
|
-
|
|
270
|
-
If you want to hide the \`${titleWarningContext.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
271
|
-
|
|
272
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${titleWarningContext.docsSlug}`;
|
|
273
|
-
react.useEffect(() => {
|
|
274
|
-
if (titleId) {
|
|
275
|
-
if (!document.getElementById(titleId)) console.error(MESSAGE);
|
|
276
|
-
}
|
|
277
|
-
}, [MESSAGE, titleId]);
|
|
278
|
-
return null;
|
|
279
|
-
};
|
|
280
|
-
var DESCRIPTION_WARNING_NAME = "DialogDescriptionWarning";
|
|
281
|
-
var DescriptionWarning = ({ contentRef, descriptionId }) => {
|
|
282
|
-
const MESSAGE = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${useWarningContext(DESCRIPTION_WARNING_NAME).contentName}}.`;
|
|
283
|
-
react.useEffect(() => {
|
|
284
|
-
const describedById = contentRef.current?.getAttribute("aria-describedby");
|
|
285
|
-
if (descriptionId && describedById) {
|
|
286
|
-
if (!document.getElementById(descriptionId)) console.warn(MESSAGE);
|
|
287
|
-
}
|
|
288
|
-
}, [
|
|
289
|
-
MESSAGE,
|
|
290
|
-
contentRef,
|
|
291
|
-
descriptionId
|
|
292
|
-
]);
|
|
293
|
-
return null;
|
|
294
|
-
};
|
|
295
|
-
var Root = Dialog;
|
|
296
|
-
var Portal$1 = DialogPortal;
|
|
297
|
-
var Overlay = DialogOverlay;
|
|
298
|
-
var Content = DialogContent;
|
|
299
|
-
var Title = DialogTitle;
|
|
300
|
-
var Description = DialogDescription;
|
|
301
|
-
var Close = DialogClose;
|
|
302
|
-
|
|
303
|
-
//#endregion
|
|
304
|
-
exports.Close = Close;
|
|
305
|
-
exports.Content = Content;
|
|
306
|
-
exports.Description = Description;
|
|
307
|
-
exports.Overlay = Overlay;
|
|
308
|
-
exports.Portal = Portal$1;
|
|
309
|
-
exports.Root = Root;
|
|
310
|
-
exports.Title = Title;
|