@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,55 +0,0 @@
|
|
|
1
|
-
const require_rolldown_runtime = require('../../../../../../../_virtual/rolldown_runtime.cjs');
|
|
2
|
-
const require_index = require('../../../../../get-nonce@1.0.1/node_modules/get-nonce/dist/es5/index.cjs');
|
|
3
|
-
|
|
4
|
-
//#region ../../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.js
|
|
5
|
-
var require_singleton = /* @__PURE__ */ require_rolldown_runtime.__commonJS({ "../../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.js": ((exports) => {
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.stylesheetSingleton = void 0;
|
|
8
|
-
var get_nonce_1 = require_index.require_es5();
|
|
9
|
-
function makeStyleTag() {
|
|
10
|
-
if (!document) return null;
|
|
11
|
-
var tag = document.createElement("style");
|
|
12
|
-
tag.type = "text/css";
|
|
13
|
-
var nonce = (0, get_nonce_1.getNonce)();
|
|
14
|
-
if (nonce) tag.setAttribute("nonce", nonce);
|
|
15
|
-
return tag;
|
|
16
|
-
}
|
|
17
|
-
function injectStyles(tag, css) {
|
|
18
|
-
if (tag.styleSheet) tag.styleSheet.cssText = css;
|
|
19
|
-
else tag.appendChild(document.createTextNode(css));
|
|
20
|
-
}
|
|
21
|
-
function insertStyleTag(tag) {
|
|
22
|
-
(document.head || document.getElementsByTagName("head")[0]).appendChild(tag);
|
|
23
|
-
}
|
|
24
|
-
var stylesheetSingleton = function() {
|
|
25
|
-
var counter = 0;
|
|
26
|
-
var stylesheet = null;
|
|
27
|
-
return {
|
|
28
|
-
add: function(style) {
|
|
29
|
-
if (counter == 0) {
|
|
30
|
-
if (stylesheet = makeStyleTag()) {
|
|
31
|
-
injectStyles(stylesheet, style);
|
|
32
|
-
insertStyleTag(stylesheet);
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
counter++;
|
|
36
|
-
},
|
|
37
|
-
remove: function() {
|
|
38
|
-
counter--;
|
|
39
|
-
if (!counter && stylesheet) {
|
|
40
|
-
stylesheet.parentNode && stylesheet.parentNode.removeChild(stylesheet);
|
|
41
|
-
stylesheet = null;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
};
|
|
45
|
-
};
|
|
46
|
-
exports.stylesheetSingleton = stylesheetSingleton;
|
|
47
|
-
}) });
|
|
48
|
-
|
|
49
|
-
//#endregion
|
|
50
|
-
Object.defineProperty(exports, 'default', {
|
|
51
|
-
enumerable: true,
|
|
52
|
-
get: function () {
|
|
53
|
-
return require_singleton();
|
|
54
|
-
}
|
|
55
|
-
});
|
|
@@ -1,347 +0,0 @@
|
|
|
1
|
-
const require_rolldown_runtime = require('../../../../../../_virtual/rolldown_runtime.cjs');
|
|
2
|
-
|
|
3
|
-
//#region ../../node_modules/.pnpm/tabbable@6.3.0/node_modules/tabbable/dist/index.js
|
|
4
|
-
var require_dist = /* @__PURE__ */ require_rolldown_runtime.__commonJS({ "../../node_modules/.pnpm/tabbable@6.3.0/node_modules/tabbable/dist/index.js": ((exports) => {
|
|
5
|
-
var candidateSelectors = [
|
|
6
|
-
"input:not([inert])",
|
|
7
|
-
"select:not([inert])",
|
|
8
|
-
"textarea:not([inert])",
|
|
9
|
-
"a[href]:not([inert])",
|
|
10
|
-
"button:not([inert])",
|
|
11
|
-
"[tabindex]:not(slot):not([inert])",
|
|
12
|
-
"audio[controls]:not([inert])",
|
|
13
|
-
"video[controls]:not([inert])",
|
|
14
|
-
"[contenteditable]:not([contenteditable=\"false\"]):not([inert])",
|
|
15
|
-
"details>summary:first-of-type:not([inert])",
|
|
16
|
-
"details:not([inert])"
|
|
17
|
-
];
|
|
18
|
-
var candidateSelector = /* @__PURE__ */ candidateSelectors.join(",");
|
|
19
|
-
var NoElement = typeof Element === "undefined";
|
|
20
|
-
var matches = NoElement ? function() {} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector;
|
|
21
|
-
var getRootNode = !NoElement && Element.prototype.getRootNode ? function(element) {
|
|
22
|
-
var _element$getRootNode;
|
|
23
|
-
return element === null || element === void 0 ? void 0 : (_element$getRootNode = element.getRootNode) === null || _element$getRootNode === void 0 ? void 0 : _element$getRootNode.call(element);
|
|
24
|
-
} : function(element) {
|
|
25
|
-
return element === null || element === void 0 ? void 0 : element.ownerDocument;
|
|
26
|
-
};
|
|
27
|
-
/**
|
|
28
|
-
* Determines if a node is inert or in an inert ancestor.
|
|
29
|
-
* @param {Element} [node]
|
|
30
|
-
* @param {boolean} [lookUp] If true and `node` is not inert, looks up at ancestors to
|
|
31
|
-
* see if any of them are inert. If false, only `node` itself is considered.
|
|
32
|
-
* @returns {boolean} True if inert itself or by way of being in an inert ancestor.
|
|
33
|
-
* False if `node` is falsy.
|
|
34
|
-
*/
|
|
35
|
-
var _isInert = function isInert(node, lookUp) {
|
|
36
|
-
var _node$getAttribute;
|
|
37
|
-
if (lookUp === void 0) lookUp = true;
|
|
38
|
-
var inertAtt = node === null || node === void 0 ? void 0 : (_node$getAttribute = node.getAttribute) === null || _node$getAttribute === void 0 ? void 0 : _node$getAttribute.call(node, "inert");
|
|
39
|
-
return inertAtt === "" || inertAtt === "true" || lookUp && node && _isInert(node.parentNode);
|
|
40
|
-
};
|
|
41
|
-
/**
|
|
42
|
-
* Determines if a node's content is editable.
|
|
43
|
-
* @param {Element} [node]
|
|
44
|
-
* @returns True if it's content-editable; false if it's not or `node` is falsy.
|
|
45
|
-
*/
|
|
46
|
-
var isContentEditable = function isContentEditable$1(node) {
|
|
47
|
-
var _node$getAttribute2;
|
|
48
|
-
var attValue = node === null || node === void 0 ? void 0 : (_node$getAttribute2 = node.getAttribute) === null || _node$getAttribute2 === void 0 ? void 0 : _node$getAttribute2.call(node, "contenteditable");
|
|
49
|
-
return attValue === "" || attValue === "true";
|
|
50
|
-
};
|
|
51
|
-
/**
|
|
52
|
-
* @param {Element} el container to check in
|
|
53
|
-
* @param {boolean} includeContainer add container to check
|
|
54
|
-
* @param {(node: Element) => boolean} filter filter candidates
|
|
55
|
-
* @returns {Element[]}
|
|
56
|
-
*/
|
|
57
|
-
var getCandidates = function getCandidates$1(el, includeContainer, filter) {
|
|
58
|
-
if (_isInert(el)) return [];
|
|
59
|
-
var candidates = Array.prototype.slice.apply(el.querySelectorAll(candidateSelector));
|
|
60
|
-
if (includeContainer && matches.call(el, candidateSelector)) candidates.unshift(el);
|
|
61
|
-
candidates = candidates.filter(filter);
|
|
62
|
-
return candidates;
|
|
63
|
-
};
|
|
64
|
-
/**
|
|
65
|
-
* @callback GetShadowRoot
|
|
66
|
-
* @param {Element} element to check for shadow root
|
|
67
|
-
* @returns {ShadowRoot|boolean} ShadowRoot if available or boolean indicating if a shadowRoot is attached but not available.
|
|
68
|
-
*/
|
|
69
|
-
/**
|
|
70
|
-
* @callback ShadowRootFilter
|
|
71
|
-
* @param {Element} shadowHostNode the element which contains shadow content
|
|
72
|
-
* @returns {boolean} true if a shadow root could potentially contain valid candidates.
|
|
73
|
-
*/
|
|
74
|
-
/**
|
|
75
|
-
* @typedef {Object} CandidateScope
|
|
76
|
-
* @property {Element} scopeParent contains inner candidates
|
|
77
|
-
* @property {Element[]} candidates list of candidates found in the scope parent
|
|
78
|
-
*/
|
|
79
|
-
/**
|
|
80
|
-
* @typedef {Object} IterativeOptions
|
|
81
|
-
* @property {GetShadowRoot|boolean} getShadowRoot true if shadow support is enabled; falsy if not;
|
|
82
|
-
* if a function, implies shadow support is enabled and either returns the shadow root of an element
|
|
83
|
-
* or a boolean stating if it has an undisclosed shadow root
|
|
84
|
-
* @property {(node: Element) => boolean} filter filter candidates
|
|
85
|
-
* @property {boolean} flatten if true then result will flatten any CandidateScope into the returned list
|
|
86
|
-
* @property {ShadowRootFilter} shadowRootFilter filter shadow roots;
|
|
87
|
-
*/
|
|
88
|
-
/**
|
|
89
|
-
* @param {Element[]} elements list of element containers to match candidates from
|
|
90
|
-
* @param {boolean} includeContainer add container list to check
|
|
91
|
-
* @param {IterativeOptions} options
|
|
92
|
-
* @returns {Array.<Element|CandidateScope>}
|
|
93
|
-
*/
|
|
94
|
-
var _getCandidatesIteratively = function getCandidatesIteratively(elements, includeContainer, options) {
|
|
95
|
-
var candidates = [];
|
|
96
|
-
var elementsToCheck = Array.from(elements);
|
|
97
|
-
while (elementsToCheck.length) {
|
|
98
|
-
var element = elementsToCheck.shift();
|
|
99
|
-
if (_isInert(element, false)) continue;
|
|
100
|
-
if (element.tagName === "SLOT") {
|
|
101
|
-
var assigned = element.assignedElements();
|
|
102
|
-
var nestedCandidates = _getCandidatesIteratively(assigned.length ? assigned : element.children, true, options);
|
|
103
|
-
if (options.flatten) candidates.push.apply(candidates, nestedCandidates);
|
|
104
|
-
else candidates.push({
|
|
105
|
-
scopeParent: element,
|
|
106
|
-
candidates: nestedCandidates
|
|
107
|
-
});
|
|
108
|
-
} else {
|
|
109
|
-
if (matches.call(element, candidateSelector) && options.filter(element) && (includeContainer || !elements.includes(element))) candidates.push(element);
|
|
110
|
-
var shadowRoot = element.shadowRoot || typeof options.getShadowRoot === "function" && options.getShadowRoot(element);
|
|
111
|
-
var validShadowRoot = !_isInert(shadowRoot, false) && (!options.shadowRootFilter || options.shadowRootFilter(element));
|
|
112
|
-
if (shadowRoot && validShadowRoot) {
|
|
113
|
-
var _nestedCandidates = _getCandidatesIteratively(shadowRoot === true ? element.children : shadowRoot.children, true, options);
|
|
114
|
-
if (options.flatten) candidates.push.apply(candidates, _nestedCandidates);
|
|
115
|
-
else candidates.push({
|
|
116
|
-
scopeParent: element,
|
|
117
|
-
candidates: _nestedCandidates
|
|
118
|
-
});
|
|
119
|
-
} else elementsToCheck.unshift.apply(elementsToCheck, element.children);
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
return candidates;
|
|
123
|
-
};
|
|
124
|
-
/**
|
|
125
|
-
* @private
|
|
126
|
-
* Determines if the node has an explicitly specified `tabindex` attribute.
|
|
127
|
-
* @param {HTMLElement} node
|
|
128
|
-
* @returns {boolean} True if so; false if not.
|
|
129
|
-
*/
|
|
130
|
-
var hasTabIndex = function hasTabIndex$1(node) {
|
|
131
|
-
return !isNaN(parseInt(node.getAttribute("tabindex"), 10));
|
|
132
|
-
};
|
|
133
|
-
/**
|
|
134
|
-
* Determine the tab index of a given node.
|
|
135
|
-
* @param {HTMLElement} node
|
|
136
|
-
* @returns {number} Tab order (negative, 0, or positive number).
|
|
137
|
-
* @throws {Error} If `node` is falsy.
|
|
138
|
-
*/
|
|
139
|
-
var getTabIndex = function getTabIndex$1(node) {
|
|
140
|
-
if (!node) throw new Error("No node provided");
|
|
141
|
-
if (node.tabIndex < 0) {
|
|
142
|
-
if ((/^(AUDIO|VIDEO|DETAILS)$/.test(node.tagName) || isContentEditable(node)) && !hasTabIndex(node)) return 0;
|
|
143
|
-
}
|
|
144
|
-
return node.tabIndex;
|
|
145
|
-
};
|
|
146
|
-
/**
|
|
147
|
-
* Determine the tab index of a given node __for sort order purposes__.
|
|
148
|
-
* @param {HTMLElement} node
|
|
149
|
-
* @param {boolean} [isScope] True for a custom element with shadow root or slot that, by default,
|
|
150
|
-
* has tabIndex -1, but needs to be sorted by document order in order for its content to be
|
|
151
|
-
* inserted into the correct sort position.
|
|
152
|
-
* @returns {number} Tab order (negative, 0, or positive number).
|
|
153
|
-
*/
|
|
154
|
-
var getSortOrderTabIndex = function getSortOrderTabIndex$1(node, isScope) {
|
|
155
|
-
var tabIndex = getTabIndex(node);
|
|
156
|
-
if (tabIndex < 0 && isScope && !hasTabIndex(node)) return 0;
|
|
157
|
-
return tabIndex;
|
|
158
|
-
};
|
|
159
|
-
var sortOrderedTabbables = function sortOrderedTabbables$1(a, b) {
|
|
160
|
-
return a.tabIndex === b.tabIndex ? a.documentOrder - b.documentOrder : a.tabIndex - b.tabIndex;
|
|
161
|
-
};
|
|
162
|
-
var isInput = function isInput$1(node) {
|
|
163
|
-
return node.tagName === "INPUT";
|
|
164
|
-
};
|
|
165
|
-
var isHiddenInput = function isHiddenInput$1(node) {
|
|
166
|
-
return isInput(node) && node.type === "hidden";
|
|
167
|
-
};
|
|
168
|
-
var isDetailsWithSummary = function isDetailsWithSummary$1(node) {
|
|
169
|
-
return node.tagName === "DETAILS" && Array.prototype.slice.apply(node.children).some(function(child) {
|
|
170
|
-
return child.tagName === "SUMMARY";
|
|
171
|
-
});
|
|
172
|
-
};
|
|
173
|
-
var getCheckedRadio = function getCheckedRadio$1(nodes, form) {
|
|
174
|
-
for (var i = 0; i < nodes.length; i++) if (nodes[i].checked && nodes[i].form === form) return nodes[i];
|
|
175
|
-
};
|
|
176
|
-
var isTabbableRadio = function isTabbableRadio$1(node) {
|
|
177
|
-
if (!node.name) return true;
|
|
178
|
-
var radioScope = node.form || getRootNode(node);
|
|
179
|
-
var queryRadios = function queryRadios$1(name) {
|
|
180
|
-
return radioScope.querySelectorAll("input[type=\"radio\"][name=\"" + name + "\"]");
|
|
181
|
-
};
|
|
182
|
-
var radioSet;
|
|
183
|
-
if (typeof window !== "undefined" && typeof window.CSS !== "undefined" && typeof window.CSS.escape === "function") radioSet = queryRadios(window.CSS.escape(node.name));
|
|
184
|
-
else try {
|
|
185
|
-
radioSet = queryRadios(node.name);
|
|
186
|
-
} catch (err) {
|
|
187
|
-
console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s", err.message);
|
|
188
|
-
return false;
|
|
189
|
-
}
|
|
190
|
-
var checked = getCheckedRadio(radioSet, node.form);
|
|
191
|
-
return !checked || checked === node;
|
|
192
|
-
};
|
|
193
|
-
var isRadio = function isRadio$1(node) {
|
|
194
|
-
return isInput(node) && node.type === "radio";
|
|
195
|
-
};
|
|
196
|
-
var isNonTabbableRadio = function isNonTabbableRadio$1(node) {
|
|
197
|
-
return isRadio(node) && !isTabbableRadio(node);
|
|
198
|
-
};
|
|
199
|
-
var isNodeAttached = function isNodeAttached$1(node) {
|
|
200
|
-
var _nodeRoot;
|
|
201
|
-
var nodeRoot = node && getRootNode(node);
|
|
202
|
-
var nodeRootHost = (_nodeRoot = nodeRoot) === null || _nodeRoot === void 0 ? void 0 : _nodeRoot.host;
|
|
203
|
-
var attached = false;
|
|
204
|
-
if (nodeRoot && nodeRoot !== node) {
|
|
205
|
-
var _nodeRootHost, _nodeRootHost$ownerDo, _node$ownerDocument;
|
|
206
|
-
attached = !!((_nodeRootHost = nodeRootHost) !== null && _nodeRootHost !== void 0 && (_nodeRootHost$ownerDo = _nodeRootHost.ownerDocument) !== null && _nodeRootHost$ownerDo !== void 0 && _nodeRootHost$ownerDo.contains(nodeRootHost) || node !== null && node !== void 0 && (_node$ownerDocument = node.ownerDocument) !== null && _node$ownerDocument !== void 0 && _node$ownerDocument.contains(node));
|
|
207
|
-
while (!attached && nodeRootHost) {
|
|
208
|
-
var _nodeRoot2, _nodeRootHost2, _nodeRootHost2$ownerD;
|
|
209
|
-
nodeRoot = getRootNode(nodeRootHost);
|
|
210
|
-
nodeRootHost = (_nodeRoot2 = nodeRoot) === null || _nodeRoot2 === void 0 ? void 0 : _nodeRoot2.host;
|
|
211
|
-
attached = !!((_nodeRootHost2 = nodeRootHost) !== null && _nodeRootHost2 !== void 0 && (_nodeRootHost2$ownerD = _nodeRootHost2.ownerDocument) !== null && _nodeRootHost2$ownerD !== void 0 && _nodeRootHost2$ownerD.contains(nodeRootHost));
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
return attached;
|
|
215
|
-
};
|
|
216
|
-
var isZeroArea = function isZeroArea$1(node) {
|
|
217
|
-
var _node$getBoundingClie = node.getBoundingClientRect(), width = _node$getBoundingClie.width, height = _node$getBoundingClie.height;
|
|
218
|
-
return width === 0 && height === 0;
|
|
219
|
-
};
|
|
220
|
-
var isHidden = function isHidden$1(node, _ref) {
|
|
221
|
-
var displayCheck = _ref.displayCheck, getShadowRoot = _ref.getShadowRoot;
|
|
222
|
-
if (displayCheck === "full-native") {
|
|
223
|
-
if ("checkVisibility" in node) return !node.checkVisibility({
|
|
224
|
-
checkOpacity: false,
|
|
225
|
-
opacityProperty: false,
|
|
226
|
-
contentVisibilityAuto: true,
|
|
227
|
-
visibilityProperty: true,
|
|
228
|
-
checkVisibilityCSS: true
|
|
229
|
-
});
|
|
230
|
-
}
|
|
231
|
-
if (getComputedStyle(node).visibility === "hidden") return true;
|
|
232
|
-
var nodeUnderDetails = matches.call(node, "details>summary:first-of-type") ? node.parentElement : node;
|
|
233
|
-
if (matches.call(nodeUnderDetails, "details:not([open]) *")) return true;
|
|
234
|
-
if (!displayCheck || displayCheck === "full" || displayCheck === "full-native" || displayCheck === "legacy-full") {
|
|
235
|
-
if (typeof getShadowRoot === "function") {
|
|
236
|
-
var originalNode = node;
|
|
237
|
-
while (node) {
|
|
238
|
-
var parentElement = node.parentElement;
|
|
239
|
-
var rootNode = getRootNode(node);
|
|
240
|
-
if (parentElement && !parentElement.shadowRoot && getShadowRoot(parentElement) === true) return isZeroArea(node);
|
|
241
|
-
else if (node.assignedSlot) node = node.assignedSlot;
|
|
242
|
-
else if (!parentElement && rootNode !== node.ownerDocument) node = rootNode.host;
|
|
243
|
-
else node = parentElement;
|
|
244
|
-
}
|
|
245
|
-
node = originalNode;
|
|
246
|
-
}
|
|
247
|
-
if (isNodeAttached(node)) return !node.getClientRects().length;
|
|
248
|
-
if (displayCheck !== "legacy-full") return true;
|
|
249
|
-
} else if (displayCheck === "non-zero-area") return isZeroArea(node);
|
|
250
|
-
return false;
|
|
251
|
-
};
|
|
252
|
-
var isDisabledFromFieldset = function isDisabledFromFieldset$1(node) {
|
|
253
|
-
if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(node.tagName)) {
|
|
254
|
-
var parentNode = node.parentElement;
|
|
255
|
-
while (parentNode) {
|
|
256
|
-
if (parentNode.tagName === "FIELDSET" && parentNode.disabled) {
|
|
257
|
-
for (var i = 0; i < parentNode.children.length; i++) {
|
|
258
|
-
var child = parentNode.children.item(i);
|
|
259
|
-
if (child.tagName === "LEGEND") return matches.call(parentNode, "fieldset[disabled] *") ? true : !child.contains(node);
|
|
260
|
-
}
|
|
261
|
-
return true;
|
|
262
|
-
}
|
|
263
|
-
parentNode = parentNode.parentElement;
|
|
264
|
-
}
|
|
265
|
-
}
|
|
266
|
-
return false;
|
|
267
|
-
};
|
|
268
|
-
var isNodeMatchingSelectorFocusable = function isNodeMatchingSelectorFocusable$1(options, node) {
|
|
269
|
-
if (node.disabled || _isInert(node) || isHiddenInput(node) || isHidden(node, options) || isDetailsWithSummary(node) || isDisabledFromFieldset(node)) return false;
|
|
270
|
-
return true;
|
|
271
|
-
};
|
|
272
|
-
var isNodeMatchingSelectorTabbable = function isNodeMatchingSelectorTabbable$1(options, node) {
|
|
273
|
-
if (isNonTabbableRadio(node) || getTabIndex(node) < 0 || !isNodeMatchingSelectorFocusable(options, node)) return false;
|
|
274
|
-
return true;
|
|
275
|
-
};
|
|
276
|
-
var isShadowRootTabbable = function isShadowRootTabbable$1(shadowHostNode) {
|
|
277
|
-
var tabIndex = parseInt(shadowHostNode.getAttribute("tabindex"), 10);
|
|
278
|
-
if (isNaN(tabIndex) || tabIndex >= 0) return true;
|
|
279
|
-
return false;
|
|
280
|
-
};
|
|
281
|
-
/**
|
|
282
|
-
* @param {Array.<Element|CandidateScope>} candidates
|
|
283
|
-
* @returns Element[]
|
|
284
|
-
*/
|
|
285
|
-
var _sortByOrder = function sortByOrder(candidates) {
|
|
286
|
-
var regularTabbables = [];
|
|
287
|
-
var orderedTabbables = [];
|
|
288
|
-
candidates.forEach(function(item, i) {
|
|
289
|
-
var isScope = !!item.scopeParent;
|
|
290
|
-
var element = isScope ? item.scopeParent : item;
|
|
291
|
-
var candidateTabindex = getSortOrderTabIndex(element, isScope);
|
|
292
|
-
var elements = isScope ? _sortByOrder(item.candidates) : element;
|
|
293
|
-
if (candidateTabindex === 0) isScope ? regularTabbables.push.apply(regularTabbables, elements) : regularTabbables.push(element);
|
|
294
|
-
else orderedTabbables.push({
|
|
295
|
-
documentOrder: i,
|
|
296
|
-
tabIndex: candidateTabindex,
|
|
297
|
-
item,
|
|
298
|
-
isScope,
|
|
299
|
-
content: elements
|
|
300
|
-
});
|
|
301
|
-
});
|
|
302
|
-
return orderedTabbables.sort(sortOrderedTabbables).reduce(function(acc, sortable) {
|
|
303
|
-
sortable.isScope ? acc.push.apply(acc, sortable.content) : acc.push(sortable.content);
|
|
304
|
-
return acc;
|
|
305
|
-
}, []).concat(regularTabbables);
|
|
306
|
-
};
|
|
307
|
-
var tabbable = function tabbable$1(container, options) {
|
|
308
|
-
options = options || {};
|
|
309
|
-
var candidates;
|
|
310
|
-
if (options.getShadowRoot) candidates = _getCandidatesIteratively([container], options.includeContainer, {
|
|
311
|
-
filter: isNodeMatchingSelectorTabbable.bind(null, options),
|
|
312
|
-
flatten: false,
|
|
313
|
-
getShadowRoot: options.getShadowRoot,
|
|
314
|
-
shadowRootFilter: isShadowRootTabbable
|
|
315
|
-
});
|
|
316
|
-
else candidates = getCandidates(container, options.includeContainer, isNodeMatchingSelectorTabbable.bind(null, options));
|
|
317
|
-
return _sortByOrder(candidates);
|
|
318
|
-
};
|
|
319
|
-
var focusable = function focusable$1(container, options) {
|
|
320
|
-
options = options || {};
|
|
321
|
-
var candidates;
|
|
322
|
-
if (options.getShadowRoot) candidates = _getCandidatesIteratively([container], options.includeContainer, {
|
|
323
|
-
filter: isNodeMatchingSelectorFocusable.bind(null, options),
|
|
324
|
-
flatten: true,
|
|
325
|
-
getShadowRoot: options.getShadowRoot
|
|
326
|
-
});
|
|
327
|
-
else candidates = getCandidates(container, options.includeContainer, isNodeMatchingSelectorFocusable.bind(null, options));
|
|
328
|
-
return candidates;
|
|
329
|
-
};
|
|
330
|
-
var isTabbable = function isTabbable$1(node, options) {
|
|
331
|
-
options = options || {};
|
|
332
|
-
if (!node) throw new Error("No node provided");
|
|
333
|
-
if (matches.call(node, candidateSelector) === false) return false;
|
|
334
|
-
return isNodeMatchingSelectorTabbable(options, node);
|
|
335
|
-
};
|
|
336
|
-
exports.focusable = focusable;
|
|
337
|
-
exports.isTabbable = isTabbable;
|
|
338
|
-
exports.tabbable = tabbable;
|
|
339
|
-
}) });
|
|
340
|
-
|
|
341
|
-
//#endregion
|
|
342
|
-
Object.defineProperty(exports, 'default', {
|
|
343
|
-
enumerable: true,
|
|
344
|
-
get: function () {
|
|
345
|
-
return require_dist();
|
|
346
|
-
}
|
|
347
|
-
});
|
|
@@ -1,268 +0,0 @@
|
|
|
1
|
-
import { __esm } from "../../../../../../_virtual/rolldown_runtime.js";
|
|
2
|
-
|
|
3
|
-
//#region ../../node_modules/.pnpm/tabbable@6.3.0/node_modules/tabbable/dist/index.esm.js
|
|
4
|
-
var candidateSelectors, candidateSelector, NoElement, matches, getRootNode, _isInert, isContentEditable, getCandidates, _getCandidatesIteratively, hasTabIndex, getTabIndex, getSortOrderTabIndex, sortOrderedTabbables, isInput, isHiddenInput, isDetailsWithSummary, getCheckedRadio, isTabbableRadio, isRadio, isNonTabbableRadio, isNodeAttached, isZeroArea, isHidden, isDisabledFromFieldset, isNodeMatchingSelectorFocusable, isNodeMatchingSelectorTabbable, isShadowRootTabbable, _sortByOrder, tabbable, focusable, isTabbable;
|
|
5
|
-
var init_index_esm = __esm({ "../../node_modules/.pnpm/tabbable@6.3.0/node_modules/tabbable/dist/index.esm.js": (() => {
|
|
6
|
-
candidateSelectors = [
|
|
7
|
-
"input:not([inert])",
|
|
8
|
-
"select:not([inert])",
|
|
9
|
-
"textarea:not([inert])",
|
|
10
|
-
"a[href]:not([inert])",
|
|
11
|
-
"button:not([inert])",
|
|
12
|
-
"[tabindex]:not(slot):not([inert])",
|
|
13
|
-
"audio[controls]:not([inert])",
|
|
14
|
-
"video[controls]:not([inert])",
|
|
15
|
-
"[contenteditable]:not([contenteditable=\"false\"]):not([inert])",
|
|
16
|
-
"details>summary:first-of-type:not([inert])",
|
|
17
|
-
"details:not([inert])"
|
|
18
|
-
];
|
|
19
|
-
candidateSelector = /* @__PURE__ */ candidateSelectors.join(",");
|
|
20
|
-
NoElement = typeof Element === "undefined";
|
|
21
|
-
matches = NoElement ? function() {} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector;
|
|
22
|
-
getRootNode = !NoElement && Element.prototype.getRootNode ? function(element) {
|
|
23
|
-
var _element$getRootNode;
|
|
24
|
-
return element === null || element === void 0 ? void 0 : (_element$getRootNode = element.getRootNode) === null || _element$getRootNode === void 0 ? void 0 : _element$getRootNode.call(element);
|
|
25
|
-
} : function(element) {
|
|
26
|
-
return element === null || element === void 0 ? void 0 : element.ownerDocument;
|
|
27
|
-
};
|
|
28
|
-
_isInert = function isInert(node, lookUp) {
|
|
29
|
-
var _node$getAttribute;
|
|
30
|
-
if (lookUp === void 0) lookUp = true;
|
|
31
|
-
var inertAtt = node === null || node === void 0 ? void 0 : (_node$getAttribute = node.getAttribute) === null || _node$getAttribute === void 0 ? void 0 : _node$getAttribute.call(node, "inert");
|
|
32
|
-
return inertAtt === "" || inertAtt === "true" || lookUp && node && _isInert(node.parentNode);
|
|
33
|
-
};
|
|
34
|
-
isContentEditable = function isContentEditable$1(node) {
|
|
35
|
-
var _node$getAttribute2;
|
|
36
|
-
var attValue = node === null || node === void 0 ? void 0 : (_node$getAttribute2 = node.getAttribute) === null || _node$getAttribute2 === void 0 ? void 0 : _node$getAttribute2.call(node, "contenteditable");
|
|
37
|
-
return attValue === "" || attValue === "true";
|
|
38
|
-
};
|
|
39
|
-
getCandidates = function getCandidates$1(el, includeContainer, filter) {
|
|
40
|
-
if (_isInert(el)) return [];
|
|
41
|
-
var candidates = Array.prototype.slice.apply(el.querySelectorAll(candidateSelector));
|
|
42
|
-
if (includeContainer && matches.call(el, candidateSelector)) candidates.unshift(el);
|
|
43
|
-
candidates = candidates.filter(filter);
|
|
44
|
-
return candidates;
|
|
45
|
-
};
|
|
46
|
-
_getCandidatesIteratively = function getCandidatesIteratively(elements, includeContainer, options) {
|
|
47
|
-
var candidates = [];
|
|
48
|
-
var elementsToCheck = Array.from(elements);
|
|
49
|
-
while (elementsToCheck.length) {
|
|
50
|
-
var element = elementsToCheck.shift();
|
|
51
|
-
if (_isInert(element, false)) continue;
|
|
52
|
-
if (element.tagName === "SLOT") {
|
|
53
|
-
var assigned = element.assignedElements();
|
|
54
|
-
var nestedCandidates = _getCandidatesIteratively(assigned.length ? assigned : element.children, true, options);
|
|
55
|
-
if (options.flatten) candidates.push.apply(candidates, nestedCandidates);
|
|
56
|
-
else candidates.push({
|
|
57
|
-
scopeParent: element,
|
|
58
|
-
candidates: nestedCandidates
|
|
59
|
-
});
|
|
60
|
-
} else {
|
|
61
|
-
if (matches.call(element, candidateSelector) && options.filter(element) && (includeContainer || !elements.includes(element))) candidates.push(element);
|
|
62
|
-
var shadowRoot = element.shadowRoot || typeof options.getShadowRoot === "function" && options.getShadowRoot(element);
|
|
63
|
-
var validShadowRoot = !_isInert(shadowRoot, false) && (!options.shadowRootFilter || options.shadowRootFilter(element));
|
|
64
|
-
if (shadowRoot && validShadowRoot) {
|
|
65
|
-
var _nestedCandidates = _getCandidatesIteratively(shadowRoot === true ? element.children : shadowRoot.children, true, options);
|
|
66
|
-
if (options.flatten) candidates.push.apply(candidates, _nestedCandidates);
|
|
67
|
-
else candidates.push({
|
|
68
|
-
scopeParent: element,
|
|
69
|
-
candidates: _nestedCandidates
|
|
70
|
-
});
|
|
71
|
-
} else elementsToCheck.unshift.apply(elementsToCheck, element.children);
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
return candidates;
|
|
75
|
-
};
|
|
76
|
-
hasTabIndex = function hasTabIndex$1(node) {
|
|
77
|
-
return !isNaN(parseInt(node.getAttribute("tabindex"), 10));
|
|
78
|
-
};
|
|
79
|
-
getTabIndex = function getTabIndex$1(node) {
|
|
80
|
-
if (!node) throw new Error("No node provided");
|
|
81
|
-
if (node.tabIndex < 0) {
|
|
82
|
-
if ((/^(AUDIO|VIDEO|DETAILS)$/.test(node.tagName) || isContentEditable(node)) && !hasTabIndex(node)) return 0;
|
|
83
|
-
}
|
|
84
|
-
return node.tabIndex;
|
|
85
|
-
};
|
|
86
|
-
getSortOrderTabIndex = function getSortOrderTabIndex$1(node, isScope) {
|
|
87
|
-
var tabIndex = getTabIndex(node);
|
|
88
|
-
if (tabIndex < 0 && isScope && !hasTabIndex(node)) return 0;
|
|
89
|
-
return tabIndex;
|
|
90
|
-
};
|
|
91
|
-
sortOrderedTabbables = function sortOrderedTabbables$1(a, b) {
|
|
92
|
-
return a.tabIndex === b.tabIndex ? a.documentOrder - b.documentOrder : a.tabIndex - b.tabIndex;
|
|
93
|
-
};
|
|
94
|
-
isInput = function isInput$1(node) {
|
|
95
|
-
return node.tagName === "INPUT";
|
|
96
|
-
};
|
|
97
|
-
isHiddenInput = function isHiddenInput$1(node) {
|
|
98
|
-
return isInput(node) && node.type === "hidden";
|
|
99
|
-
};
|
|
100
|
-
isDetailsWithSummary = function isDetailsWithSummary$1(node) {
|
|
101
|
-
return node.tagName === "DETAILS" && Array.prototype.slice.apply(node.children).some(function(child) {
|
|
102
|
-
return child.tagName === "SUMMARY";
|
|
103
|
-
});
|
|
104
|
-
};
|
|
105
|
-
getCheckedRadio = function getCheckedRadio$1(nodes, form) {
|
|
106
|
-
for (var i = 0; i < nodes.length; i++) if (nodes[i].checked && nodes[i].form === form) return nodes[i];
|
|
107
|
-
};
|
|
108
|
-
isTabbableRadio = function isTabbableRadio$1(node) {
|
|
109
|
-
if (!node.name) return true;
|
|
110
|
-
var radioScope = node.form || getRootNode(node);
|
|
111
|
-
var queryRadios = function queryRadios$1(name) {
|
|
112
|
-
return radioScope.querySelectorAll("input[type=\"radio\"][name=\"" + name + "\"]");
|
|
113
|
-
};
|
|
114
|
-
var radioSet;
|
|
115
|
-
if (typeof window !== "undefined" && typeof window.CSS !== "undefined" && typeof window.CSS.escape === "function") radioSet = queryRadios(window.CSS.escape(node.name));
|
|
116
|
-
else try {
|
|
117
|
-
radioSet = queryRadios(node.name);
|
|
118
|
-
} catch (err) {
|
|
119
|
-
console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s", err.message);
|
|
120
|
-
return false;
|
|
121
|
-
}
|
|
122
|
-
var checked = getCheckedRadio(radioSet, node.form);
|
|
123
|
-
return !checked || checked === node;
|
|
124
|
-
};
|
|
125
|
-
isRadio = function isRadio$1(node) {
|
|
126
|
-
return isInput(node) && node.type === "radio";
|
|
127
|
-
};
|
|
128
|
-
isNonTabbableRadio = function isNonTabbableRadio$1(node) {
|
|
129
|
-
return isRadio(node) && !isTabbableRadio(node);
|
|
130
|
-
};
|
|
131
|
-
isNodeAttached = function isNodeAttached$1(node) {
|
|
132
|
-
var _nodeRoot;
|
|
133
|
-
var nodeRoot = node && getRootNode(node);
|
|
134
|
-
var nodeRootHost = (_nodeRoot = nodeRoot) === null || _nodeRoot === void 0 ? void 0 : _nodeRoot.host;
|
|
135
|
-
var attached = false;
|
|
136
|
-
if (nodeRoot && nodeRoot !== node) {
|
|
137
|
-
var _nodeRootHost, _nodeRootHost$ownerDo, _node$ownerDocument;
|
|
138
|
-
attached = !!((_nodeRootHost = nodeRootHost) !== null && _nodeRootHost !== void 0 && (_nodeRootHost$ownerDo = _nodeRootHost.ownerDocument) !== null && _nodeRootHost$ownerDo !== void 0 && _nodeRootHost$ownerDo.contains(nodeRootHost) || node !== null && node !== void 0 && (_node$ownerDocument = node.ownerDocument) !== null && _node$ownerDocument !== void 0 && _node$ownerDocument.contains(node));
|
|
139
|
-
while (!attached && nodeRootHost) {
|
|
140
|
-
var _nodeRoot2, _nodeRootHost2, _nodeRootHost2$ownerD;
|
|
141
|
-
nodeRoot = getRootNode(nodeRootHost);
|
|
142
|
-
nodeRootHost = (_nodeRoot2 = nodeRoot) === null || _nodeRoot2 === void 0 ? void 0 : _nodeRoot2.host;
|
|
143
|
-
attached = !!((_nodeRootHost2 = nodeRootHost) !== null && _nodeRootHost2 !== void 0 && (_nodeRootHost2$ownerD = _nodeRootHost2.ownerDocument) !== null && _nodeRootHost2$ownerD !== void 0 && _nodeRootHost2$ownerD.contains(nodeRootHost));
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
return attached;
|
|
147
|
-
};
|
|
148
|
-
isZeroArea = function isZeroArea$1(node) {
|
|
149
|
-
var _node$getBoundingClie = node.getBoundingClientRect(), width = _node$getBoundingClie.width, height = _node$getBoundingClie.height;
|
|
150
|
-
return width === 0 && height === 0;
|
|
151
|
-
};
|
|
152
|
-
isHidden = function isHidden$1(node, _ref) {
|
|
153
|
-
var displayCheck = _ref.displayCheck, getShadowRoot = _ref.getShadowRoot;
|
|
154
|
-
if (displayCheck === "full-native") {
|
|
155
|
-
if ("checkVisibility" in node) return !node.checkVisibility({
|
|
156
|
-
checkOpacity: false,
|
|
157
|
-
opacityProperty: false,
|
|
158
|
-
contentVisibilityAuto: true,
|
|
159
|
-
visibilityProperty: true,
|
|
160
|
-
checkVisibilityCSS: true
|
|
161
|
-
});
|
|
162
|
-
}
|
|
163
|
-
if (getComputedStyle(node).visibility === "hidden") return true;
|
|
164
|
-
var nodeUnderDetails = matches.call(node, "details>summary:first-of-type") ? node.parentElement : node;
|
|
165
|
-
if (matches.call(nodeUnderDetails, "details:not([open]) *")) return true;
|
|
166
|
-
if (!displayCheck || displayCheck === "full" || displayCheck === "full-native" || displayCheck === "legacy-full") {
|
|
167
|
-
if (typeof getShadowRoot === "function") {
|
|
168
|
-
var originalNode = node;
|
|
169
|
-
while (node) {
|
|
170
|
-
var parentElement = node.parentElement;
|
|
171
|
-
var rootNode = getRootNode(node);
|
|
172
|
-
if (parentElement && !parentElement.shadowRoot && getShadowRoot(parentElement) === true) return isZeroArea(node);
|
|
173
|
-
else if (node.assignedSlot) node = node.assignedSlot;
|
|
174
|
-
else if (!parentElement && rootNode !== node.ownerDocument) node = rootNode.host;
|
|
175
|
-
else node = parentElement;
|
|
176
|
-
}
|
|
177
|
-
node = originalNode;
|
|
178
|
-
}
|
|
179
|
-
if (isNodeAttached(node)) return !node.getClientRects().length;
|
|
180
|
-
if (displayCheck !== "legacy-full") return true;
|
|
181
|
-
} else if (displayCheck === "non-zero-area") return isZeroArea(node);
|
|
182
|
-
return false;
|
|
183
|
-
};
|
|
184
|
-
isDisabledFromFieldset = function isDisabledFromFieldset$1(node) {
|
|
185
|
-
if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(node.tagName)) {
|
|
186
|
-
var parentNode = node.parentElement;
|
|
187
|
-
while (parentNode) {
|
|
188
|
-
if (parentNode.tagName === "FIELDSET" && parentNode.disabled) {
|
|
189
|
-
for (var i = 0; i < parentNode.children.length; i++) {
|
|
190
|
-
var child = parentNode.children.item(i);
|
|
191
|
-
if (child.tagName === "LEGEND") return matches.call(parentNode, "fieldset[disabled] *") ? true : !child.contains(node);
|
|
192
|
-
}
|
|
193
|
-
return true;
|
|
194
|
-
}
|
|
195
|
-
parentNode = parentNode.parentElement;
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
return false;
|
|
199
|
-
};
|
|
200
|
-
isNodeMatchingSelectorFocusable = function isNodeMatchingSelectorFocusable$1(options, node) {
|
|
201
|
-
if (node.disabled || _isInert(node) || isHiddenInput(node) || isHidden(node, options) || isDetailsWithSummary(node) || isDisabledFromFieldset(node)) return false;
|
|
202
|
-
return true;
|
|
203
|
-
};
|
|
204
|
-
isNodeMatchingSelectorTabbable = function isNodeMatchingSelectorTabbable$1(options, node) {
|
|
205
|
-
if (isNonTabbableRadio(node) || getTabIndex(node) < 0 || !isNodeMatchingSelectorFocusable(options, node)) return false;
|
|
206
|
-
return true;
|
|
207
|
-
};
|
|
208
|
-
isShadowRootTabbable = function isShadowRootTabbable$1(shadowHostNode) {
|
|
209
|
-
var tabIndex = parseInt(shadowHostNode.getAttribute("tabindex"), 10);
|
|
210
|
-
if (isNaN(tabIndex) || tabIndex >= 0) return true;
|
|
211
|
-
return false;
|
|
212
|
-
};
|
|
213
|
-
_sortByOrder = function sortByOrder(candidates) {
|
|
214
|
-
var regularTabbables = [];
|
|
215
|
-
var orderedTabbables = [];
|
|
216
|
-
candidates.forEach(function(item, i) {
|
|
217
|
-
var isScope = !!item.scopeParent;
|
|
218
|
-
var element = isScope ? item.scopeParent : item;
|
|
219
|
-
var candidateTabindex = getSortOrderTabIndex(element, isScope);
|
|
220
|
-
var elements = isScope ? _sortByOrder(item.candidates) : element;
|
|
221
|
-
if (candidateTabindex === 0) isScope ? regularTabbables.push.apply(regularTabbables, elements) : regularTabbables.push(element);
|
|
222
|
-
else orderedTabbables.push({
|
|
223
|
-
documentOrder: i,
|
|
224
|
-
tabIndex: candidateTabindex,
|
|
225
|
-
item,
|
|
226
|
-
isScope,
|
|
227
|
-
content: elements
|
|
228
|
-
});
|
|
229
|
-
});
|
|
230
|
-
return orderedTabbables.sort(sortOrderedTabbables).reduce(function(acc, sortable) {
|
|
231
|
-
sortable.isScope ? acc.push.apply(acc, sortable.content) : acc.push(sortable.content);
|
|
232
|
-
return acc;
|
|
233
|
-
}, []).concat(regularTabbables);
|
|
234
|
-
};
|
|
235
|
-
tabbable = function tabbable$1(container, options) {
|
|
236
|
-
options = options || {};
|
|
237
|
-
var candidates;
|
|
238
|
-
if (options.getShadowRoot) candidates = _getCandidatesIteratively([container], options.includeContainer, {
|
|
239
|
-
filter: isNodeMatchingSelectorTabbable.bind(null, options),
|
|
240
|
-
flatten: false,
|
|
241
|
-
getShadowRoot: options.getShadowRoot,
|
|
242
|
-
shadowRootFilter: isShadowRootTabbable
|
|
243
|
-
});
|
|
244
|
-
else candidates = getCandidates(container, options.includeContainer, isNodeMatchingSelectorTabbable.bind(null, options));
|
|
245
|
-
return _sortByOrder(candidates);
|
|
246
|
-
};
|
|
247
|
-
focusable = function focusable$1(container, options) {
|
|
248
|
-
options = options || {};
|
|
249
|
-
var candidates;
|
|
250
|
-
if (options.getShadowRoot) candidates = _getCandidatesIteratively([container], options.includeContainer, {
|
|
251
|
-
filter: isNodeMatchingSelectorFocusable.bind(null, options),
|
|
252
|
-
flatten: true,
|
|
253
|
-
getShadowRoot: options.getShadowRoot
|
|
254
|
-
});
|
|
255
|
-
else candidates = getCandidates(container, options.includeContainer, isNodeMatchingSelectorFocusable.bind(null, options));
|
|
256
|
-
return candidates;
|
|
257
|
-
};
|
|
258
|
-
isTabbable = function isTabbable$1(node, options) {
|
|
259
|
-
options = options || {};
|
|
260
|
-
if (!node) throw new Error("No node provided");
|
|
261
|
-
if (matches.call(node, candidateSelector) === false) return false;
|
|
262
|
-
return isNodeMatchingSelectorTabbable(options, node);
|
|
263
|
-
};
|
|
264
|
-
}) });
|
|
265
|
-
|
|
266
|
-
//#endregion
|
|
267
|
-
init_index_esm();
|
|
268
|
-
export { focusable, init_index_esm, isTabbable, tabbable };
|