@pixpilot/shadcn-ui 0.4.1 → 0.4.2
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 +8 -7
- package/dist/Alert.js +12 -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.js +3 -4
- package/dist/confirmation-dialog/index.cjs +0 -1
- package/dist/file-upload/FileUpload.d.ts +2 -2
- 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/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/FileUploadInline.d.ts +2 -2
- 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/node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.cjs +0 -1
- package/dist/node_modules/.pnpm/tailwind-merge@3.4.0/node_modules/tailwind-merge/dist/bundle-mjs.cjs +0 -1
- package/dist/packages/shadcn/src/lib/utils.cjs +0 -1
- package/dist/pagination/index.cjs +0 -1
- package/dist/rich-text-editor/index.cjs +0 -1
- 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/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/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/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
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
const require_rolldown_runtime = require('../../../../_virtual/rolldown_runtime.cjs');
|
|
2
1
|
const require_clsx = require('../../../../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.cjs');
|
|
3
2
|
const require_bundle_mjs = require('../../../../node_modules/.pnpm/tailwind-merge@3.4.0/node_modules/tailwind-merge/dist/bundle-mjs.cjs');
|
|
4
3
|
|
package/dist/spinner/index.cjs
CHANGED
package/dist/spinner/styles.cjs
CHANGED
package/dist/toast/AlertToast.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Alert } from "../Alert.js";
|
|
1
|
+
import { Alert as Alert$1 } from "../Alert.js";
|
|
2
2
|
import { cn } from "@pixpilot/shadcn";
|
|
3
3
|
import { XIcon } from "lucide-react";
|
|
4
4
|
import React from "react";
|
|
@@ -7,7 +7,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
7
7
|
//#region src/toast/AlertToast.tsx
|
|
8
8
|
const AlertToast = (props) => {
|
|
9
9
|
const { duration, onClose,...rest } = props;
|
|
10
|
-
return /* @__PURE__ */ jsx(Alert, {
|
|
10
|
+
return /* @__PURE__ */ jsx(Alert$1, {
|
|
11
11
|
icon: true,
|
|
12
12
|
...rest,
|
|
13
13
|
className: cn("shadow-md", props.className, { "pr-3": onClose }),
|
package/dist/toast/index.cjs
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pixpilot/shadcn-ui",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.4.
|
|
4
|
+
"version": "0.4.2",
|
|
5
5
|
"description": "Custom UI components and utilities built with shadcn/ui.",
|
|
6
6
|
"author": "m.doaie <m.doaie@hotmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"pretty-bytes": "^7.1.0",
|
|
45
45
|
"react-responsive": "^10.0.1",
|
|
46
46
|
"sonner": "2.0.7",
|
|
47
|
-
"@pixpilot/shadcn": "0.3.
|
|
47
|
+
"@pixpilot/shadcn": "0.3.1"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@storybook/react": "^8.5.3",
|
|
@@ -59,9 +59,9 @@
|
|
|
59
59
|
"typescript": "^5.9.3",
|
|
60
60
|
"@internal/eslint-config": "0.3.0",
|
|
61
61
|
"@internal/prettier-config": "0.0.1",
|
|
62
|
+
"@internal/tsconfig": "0.1.0",
|
|
62
63
|
"@internal/tsdown-config": "0.1.0",
|
|
63
|
-
"@internal/vitest-config": "0.1.0"
|
|
64
|
-
"@internal/tsconfig": "0.1.0"
|
|
64
|
+
"@internal/vitest-config": "0.1.0"
|
|
65
65
|
},
|
|
66
66
|
"prettier": "@internal/prettier-config",
|
|
67
67
|
"scripts": {
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
//#region rolldown:runtime
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __esm = (fn, res) => function() {
|
|
9
|
-
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
10
|
-
};
|
|
11
|
-
var __commonJS = (cb, mod) => function() {
|
|
12
|
-
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
13
|
-
};
|
|
14
|
-
var __export = (all) => {
|
|
15
|
-
let target = {};
|
|
16
|
-
for (var name in all) __defProp(target, name, {
|
|
17
|
-
get: all[name],
|
|
18
|
-
enumerable: true
|
|
19
|
-
});
|
|
20
|
-
return target;
|
|
21
|
-
};
|
|
22
|
-
var __copyProps = (to, from, except, desc) => {
|
|
23
|
-
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
24
|
-
key = keys[i];
|
|
25
|
-
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
26
|
-
get: ((k) => from[k]).bind(null, key),
|
|
27
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
return to;
|
|
31
|
-
};
|
|
32
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
33
|
-
value: mod,
|
|
34
|
-
enumerable: true
|
|
35
|
-
}) : target, mod));
|
|
36
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
37
|
-
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, { get: (a, b) => (typeof require !== "undefined" ? require : a)[b] }) : x)(function(x) {
|
|
38
|
-
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
39
|
-
throw Error("Calling `require` for \"" + x + "\" in an environment that doesn't expose the `require` function.");
|
|
40
|
-
});
|
|
41
|
-
|
|
42
|
-
//#endregion
|
|
43
|
-
export { __commonJS, __esm, __export, __require, __toCommonJS, __toESM };
|
|
@@ -1,558 +0,0 @@
|
|
|
1
|
-
const require_rolldown_runtime = require('../../../../../../../_virtual/rolldown_runtime.cjs');
|
|
2
|
-
const require_floating_ui_react_esm = require('../../../../../@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');
|
|
3
|
-
|
|
4
|
-
//#region ../../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
|
|
5
|
-
var require_dist = /* @__PURE__ */ require_rolldown_runtime.__commonJS({ "../../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": ((exports) => {
|
|
6
|
-
var React32 = require("react");
|
|
7
|
-
var react = (require_floating_ui_react_esm.init_floating_ui_react_esm(), require_rolldown_runtime.__toCommonJS(require_floating_ui_react_esm.floating_ui_react_esm_exports));
|
|
8
|
-
var ReactDOM = require("react-dom");
|
|
9
|
-
function _interopNamespace(e) {
|
|
10
|
-
if (e && e.__esModule) return e;
|
|
11
|
-
var n = Object.create(null);
|
|
12
|
-
if (e) Object.keys(e).forEach(function(k) {
|
|
13
|
-
if (k !== "default") {
|
|
14
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
15
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
16
|
-
enumerable: true,
|
|
17
|
-
get: function() {
|
|
18
|
-
return e[k];
|
|
19
|
-
}
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
});
|
|
23
|
-
n.default = e;
|
|
24
|
-
return Object.freeze(n);
|
|
25
|
-
}
|
|
26
|
-
var React32__namespace = /* @__PURE__ */ _interopNamespace(React32);
|
|
27
|
-
var ReactDOM__namespace = /* @__PURE__ */ _interopNamespace(ReactDOM);
|
|
28
|
-
var DATA_ITEM_ATTR = "data-dice-collection-item";
|
|
29
|
-
var DirectionContext = React32__namespace.createContext(void 0);
|
|
30
|
-
function useDirection(dirProp) {
|
|
31
|
-
const contextDir = React32__namespace.useContext(DirectionContext);
|
|
32
|
-
return dirProp ?? contextDir ?? "ltr";
|
|
33
|
-
}
|
|
34
|
-
var useIsomorphicLayoutEffect = typeof window !== "undefined" ? React32__namespace.useLayoutEffect : React32__namespace.useEffect;
|
|
35
|
-
function useCallbackRef(callback) {
|
|
36
|
-
const callbackRef = React32__namespace.useRef(callback);
|
|
37
|
-
React32__namespace.useEffect(() => {
|
|
38
|
-
callbackRef.current = callback;
|
|
39
|
-
});
|
|
40
|
-
return React32__namespace.useMemo(() => (...args) => callbackRef.current?.(...args), []);
|
|
41
|
-
}
|
|
42
|
-
function compareNodePosition(a, b) {
|
|
43
|
-
const position = a.compareDocumentPosition(b);
|
|
44
|
-
if (position & Node.DOCUMENT_POSITION_FOLLOWING || position & Node.DOCUMENT_POSITION_CONTAINED_BY) return -1;
|
|
45
|
-
if (position & Node.DOCUMENT_POSITION_PRECEDING || position & Node.DOCUMENT_POSITION_CONTAINS) return 1;
|
|
46
|
-
return 0;
|
|
47
|
-
}
|
|
48
|
-
function useControllableState({ prop, defaultProp, onChange = () => {} }) {
|
|
49
|
-
const [uncontrolledProp, setUncontrolledProp] = useUncontrolledState({
|
|
50
|
-
defaultProp,
|
|
51
|
-
onChange
|
|
52
|
-
});
|
|
53
|
-
const isControlled = prop !== void 0;
|
|
54
|
-
const value = isControlled ? prop : uncontrolledProp;
|
|
55
|
-
const handleChange = useCallbackRef(onChange);
|
|
56
|
-
return [value, React32__namespace.useCallback((nextValue) => {
|
|
57
|
-
if (isControlled) {
|
|
58
|
-
const value2 = typeof nextValue === "function" ? nextValue(prop) : nextValue;
|
|
59
|
-
if (value2 !== prop) handleChange(value2);
|
|
60
|
-
} else setUncontrolledProp(nextValue);
|
|
61
|
-
}, [
|
|
62
|
-
isControlled,
|
|
63
|
-
prop,
|
|
64
|
-
setUncontrolledProp,
|
|
65
|
-
handleChange
|
|
66
|
-
])];
|
|
67
|
-
}
|
|
68
|
-
function useUncontrolledState({ defaultProp, onChange }) {
|
|
69
|
-
const uncontrolledState = React32__namespace.useState(defaultProp);
|
|
70
|
-
const [value] = uncontrolledState;
|
|
71
|
-
const prevValueRef = React32__namespace.useRef(value);
|
|
72
|
-
const handleChange = useCallbackRef(onChange);
|
|
73
|
-
React32__namespace.useEffect(() => {
|
|
74
|
-
if (prevValueRef.current !== value) {
|
|
75
|
-
handleChange(value);
|
|
76
|
-
prevValueRef.current = value;
|
|
77
|
-
}
|
|
78
|
-
}, [value, handleChange]);
|
|
79
|
-
return uncontrolledState;
|
|
80
|
-
}
|
|
81
|
-
var LRUCache = class {
|
|
82
|
-
cache;
|
|
83
|
-
maxSize;
|
|
84
|
-
keyOrder;
|
|
85
|
-
constructor(maxSize) {
|
|
86
|
-
this.cache = /* @__PURE__ */ new Map();
|
|
87
|
-
this.maxSize = maxSize;
|
|
88
|
-
this.keyOrder = [];
|
|
89
|
-
}
|
|
90
|
-
get(key) {
|
|
91
|
-
const value = this.cache.get(key);
|
|
92
|
-
if (value !== void 0) {
|
|
93
|
-
const index = this.keyOrder.indexOf(key);
|
|
94
|
-
if (index > -1) {
|
|
95
|
-
this.keyOrder.splice(index, 1);
|
|
96
|
-
this.keyOrder.push(key);
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
return value;
|
|
100
|
-
}
|
|
101
|
-
set(key, value) {
|
|
102
|
-
if (this.cache.has(key)) {
|
|
103
|
-
this.cache.set(key, value);
|
|
104
|
-
const index = this.keyOrder.indexOf(key);
|
|
105
|
-
if (index > -1) this.keyOrder.splice(index, 1);
|
|
106
|
-
} else {
|
|
107
|
-
if (this.keyOrder.length >= this.maxSize) {
|
|
108
|
-
const lruKey = this.keyOrder.shift();
|
|
109
|
-
if (lruKey !== void 0) this.cache.delete(lruKey);
|
|
110
|
-
}
|
|
111
|
-
this.cache.set(key, value);
|
|
112
|
-
}
|
|
113
|
-
this.keyOrder.push(key);
|
|
114
|
-
}
|
|
115
|
-
clear() {
|
|
116
|
-
this.cache.clear();
|
|
117
|
-
this.keyOrder.length = 0;
|
|
118
|
-
}
|
|
119
|
-
get size() {
|
|
120
|
-
return this.cache.size;
|
|
121
|
-
}
|
|
122
|
-
};
|
|
123
|
-
var collatorCache = new LRUCache(10);
|
|
124
|
-
var normalizedCache = new LRUCache(1e3);
|
|
125
|
-
function useFormControl(form) {
|
|
126
|
-
const [trigger, setTrigger] = React32__namespace.useState(null);
|
|
127
|
-
return {
|
|
128
|
-
isFormControl: trigger ? form || !!trigger.closest("form") : true,
|
|
129
|
-
trigger,
|
|
130
|
-
onTriggerChange: setTrigger
|
|
131
|
-
};
|
|
132
|
-
}
|
|
133
|
-
function useFormReset({ form, defaultValue, onReset }) {
|
|
134
|
-
const onResetCallback = useCallbackRef(onReset);
|
|
135
|
-
React32__namespace.useEffect(() => {
|
|
136
|
-
if (!form) return;
|
|
137
|
-
function onFormReset() {
|
|
138
|
-
if (defaultValue !== void 0) onResetCallback?.(defaultValue);
|
|
139
|
-
}
|
|
140
|
-
form.addEventListener("reset", onFormReset);
|
|
141
|
-
return () => form.removeEventListener("reset", onFormReset);
|
|
142
|
-
}, [
|
|
143
|
-
form,
|
|
144
|
-
defaultValue,
|
|
145
|
-
onResetCallback
|
|
146
|
-
]);
|
|
147
|
-
}
|
|
148
|
-
var useLayoutEffect4 = globalThis?.document ? React32__namespace.useLayoutEffect : () => {};
|
|
149
|
-
var useReactId = React32__namespace[" useId ".trim().toString()] || (() => void 0);
|
|
150
|
-
var count = 0;
|
|
151
|
-
function useId(deterministicId) {
|
|
152
|
-
const [id, setId] = React32__namespace.useState(typeof useReactId === "function" ? useReactId() : void 0);
|
|
153
|
-
useLayoutEffect4(() => {
|
|
154
|
-
if (!deterministicId) setId((reactId) => reactId ?? String(count++));
|
|
155
|
-
}, [deterministicId]);
|
|
156
|
-
return deterministicId || (id ? `dice-${id}` : "");
|
|
157
|
-
}
|
|
158
|
-
function useItemCollection({ ref, attr = DATA_ITEM_ATTR }) {
|
|
159
|
-
const getItems = React32__namespace.useCallback(() => {
|
|
160
|
-
const collectionNode = ref.current;
|
|
161
|
-
if (!collectionNode) return [];
|
|
162
|
-
const items = Array.from(collectionNode.querySelectorAll(`[${attr}]`));
|
|
163
|
-
if (items.length === 0) return [];
|
|
164
|
-
return items.sort(compareNodePosition);
|
|
165
|
-
}, [ref, attr]);
|
|
166
|
-
return {
|
|
167
|
-
getItems,
|
|
168
|
-
getEnabledItems: React32__namespace.useCallback(() => {
|
|
169
|
-
return getItems().filter((item) => item.getAttribute("aria-disabled") !== "true");
|
|
170
|
-
}, [getItems])
|
|
171
|
-
};
|
|
172
|
-
}
|
|
173
|
-
function useMounted() {
|
|
174
|
-
const [mounted, setMounted] = React32__namespace.useState(false);
|
|
175
|
-
useLayoutEffect4(() => {
|
|
176
|
-
setMounted(true);
|
|
177
|
-
}, []);
|
|
178
|
-
return mounted;
|
|
179
|
-
}
|
|
180
|
-
function usePrevious(value) {
|
|
181
|
-
const ref = React32__namespace.useRef({
|
|
182
|
-
value,
|
|
183
|
-
previous: value
|
|
184
|
-
});
|
|
185
|
-
return React32__namespace.useMemo(() => {
|
|
186
|
-
if (ref.current.value !== value) {
|
|
187
|
-
ref.current.previous = ref.current.value;
|
|
188
|
-
ref.current.value = value;
|
|
189
|
-
}
|
|
190
|
-
return ref.current.previous;
|
|
191
|
-
}, [value]);
|
|
192
|
-
}
|
|
193
|
-
function useSize(element) {
|
|
194
|
-
const [size2, setSize] = React32__namespace.useState(void 0);
|
|
195
|
-
useLayoutEffect4(() => {
|
|
196
|
-
if (element) {
|
|
197
|
-
setSize({
|
|
198
|
-
width: element.offsetWidth,
|
|
199
|
-
height: element.offsetHeight
|
|
200
|
-
});
|
|
201
|
-
const resizeObserver = new ResizeObserver((entries) => {
|
|
202
|
-
if (!Array.isArray(entries)) return;
|
|
203
|
-
if (!entries.length) return;
|
|
204
|
-
const entry = entries[0];
|
|
205
|
-
let width;
|
|
206
|
-
let height;
|
|
207
|
-
if (entry && "borderBoxSize" in entry) {
|
|
208
|
-
const borderSizeEntry = entry.borderBoxSize;
|
|
209
|
-
const borderSize = Array.isArray(borderSizeEntry) ? borderSizeEntry[0] : borderSizeEntry;
|
|
210
|
-
width = borderSize.inlineSize;
|
|
211
|
-
height = borderSize.blockSize;
|
|
212
|
-
} else {
|
|
213
|
-
width = element.offsetWidth;
|
|
214
|
-
height = element.offsetHeight;
|
|
215
|
-
}
|
|
216
|
-
setSize({
|
|
217
|
-
width,
|
|
218
|
-
height
|
|
219
|
-
});
|
|
220
|
-
});
|
|
221
|
-
resizeObserver.observe(element, { box: "border-box" });
|
|
222
|
-
return () => resizeObserver.unobserve(element);
|
|
223
|
-
}
|
|
224
|
-
setSize(void 0);
|
|
225
|
-
}, [element]);
|
|
226
|
-
return size2;
|
|
227
|
-
}
|
|
228
|
-
function useStateMachine(config) {
|
|
229
|
-
const [state, setState] = React32__namespace.useState(config.initial);
|
|
230
|
-
return [state, React32__namespace.useCallback((event) => {
|
|
231
|
-
setState((currentState) => {
|
|
232
|
-
return config.states[currentState]?.[event] ?? currentState;
|
|
233
|
-
});
|
|
234
|
-
}, [config.states])];
|
|
235
|
-
}
|
|
236
|
-
function composeEventHandlers(originalEventHandler, ourEventHandler, { checkForDefaultPrevented = true } = {}) {
|
|
237
|
-
return function handleEvent(event) {
|
|
238
|
-
originalEventHandler?.(event);
|
|
239
|
-
if (checkForDefaultPrevented === false || !event.defaultPrevented) return ourEventHandler?.(event);
|
|
240
|
-
};
|
|
241
|
-
}
|
|
242
|
-
function setRef(ref, value) {
|
|
243
|
-
if (typeof ref === "function") return ref(value);
|
|
244
|
-
if (ref !== null && ref !== void 0) ref.current = value;
|
|
245
|
-
}
|
|
246
|
-
function composeRefs(...refs) {
|
|
247
|
-
return (node) => {
|
|
248
|
-
let hasCleanup = false;
|
|
249
|
-
const cleanups = refs.map((ref) => {
|
|
250
|
-
const cleanup = setRef(ref, node);
|
|
251
|
-
if (!hasCleanup && typeof cleanup === "function") hasCleanup = true;
|
|
252
|
-
return cleanup;
|
|
253
|
-
});
|
|
254
|
-
if (hasCleanup) return () => {
|
|
255
|
-
for (let i = 0; i < cleanups.length; i++) {
|
|
256
|
-
const cleanup = cleanups[i];
|
|
257
|
-
if (typeof cleanup === "function") cleanup();
|
|
258
|
-
else setRef(refs[i], null);
|
|
259
|
-
}
|
|
260
|
-
};
|
|
261
|
-
};
|
|
262
|
-
}
|
|
263
|
-
function useComposedRefs(...refs) {
|
|
264
|
-
return React32__namespace.useCallback(composeRefs(...refs), refs);
|
|
265
|
-
}
|
|
266
|
-
var visuallyHidden = {
|
|
267
|
-
border: 0,
|
|
268
|
-
clip: "rect(0 0 0 0)",
|
|
269
|
-
clipPath: "inset(50%)",
|
|
270
|
-
height: "1px",
|
|
271
|
-
margin: "-1px",
|
|
272
|
-
overflow: "hidden",
|
|
273
|
-
padding: 0,
|
|
274
|
-
position: "absolute",
|
|
275
|
-
whiteSpace: "nowrap",
|
|
276
|
-
width: "1px"
|
|
277
|
-
};
|
|
278
|
-
function VisuallyHiddenInput(props) {
|
|
279
|
-
const { control, value, checked, bubbles = true, type = "hidden", onReset, style,...inputProps } = props;
|
|
280
|
-
const isCheckInput = type === "checkbox" || type === "radio" || type === "switch";
|
|
281
|
-
const inputRef = React32__namespace.useRef(null);
|
|
282
|
-
const prevValue = usePrevious(type === "hidden" ? value : checked);
|
|
283
|
-
const controlSize = useSize(control);
|
|
284
|
-
React32__namespace.useEffect(() => {
|
|
285
|
-
const input = inputRef.current;
|
|
286
|
-
if (!input) return;
|
|
287
|
-
const inputProto = window.HTMLInputElement.prototype;
|
|
288
|
-
const propertyKey = isCheckInput ? "checked" : "value";
|
|
289
|
-
const eventType = isCheckInput ? "click" : "input";
|
|
290
|
-
const currentValue = isCheckInput ? checked : JSON.stringify(value);
|
|
291
|
-
const setter = Object.getOwnPropertyDescriptor(inputProto, propertyKey).set;
|
|
292
|
-
if (prevValue !== currentValue && setter) {
|
|
293
|
-
const event = new Event(eventType, { bubbles });
|
|
294
|
-
setter.call(input, currentValue);
|
|
295
|
-
input.dispatchEvent(event);
|
|
296
|
-
}
|
|
297
|
-
}, [
|
|
298
|
-
prevValue,
|
|
299
|
-
value,
|
|
300
|
-
checked,
|
|
301
|
-
bubbles,
|
|
302
|
-
isCheckInput
|
|
303
|
-
]);
|
|
304
|
-
useFormReset({
|
|
305
|
-
form: inputRef.current?.form ?? null,
|
|
306
|
-
defaultValue: isCheckInput ? checked : value,
|
|
307
|
-
onReset: (resetValue) => {
|
|
308
|
-
onReset?.(resetValue);
|
|
309
|
-
}
|
|
310
|
-
});
|
|
311
|
-
return /* @__PURE__ */ React32__namespace.createElement("input", {
|
|
312
|
-
type,
|
|
313
|
-
...inputProps,
|
|
314
|
-
ref: inputRef,
|
|
315
|
-
"aria-hidden": isCheckInput,
|
|
316
|
-
tabIndex: -1,
|
|
317
|
-
defaultChecked: isCheckInput ? checked : void 0,
|
|
318
|
-
style: {
|
|
319
|
-
...props.style,
|
|
320
|
-
...controlSize,
|
|
321
|
-
...visuallyHidden
|
|
322
|
-
}
|
|
323
|
-
});
|
|
324
|
-
}
|
|
325
|
-
function createContext3(rootComponentName, defaultValue) {
|
|
326
|
-
const Context = React32__namespace.createContext(defaultValue);
|
|
327
|
-
Context.displayName = rootComponentName;
|
|
328
|
-
function Provider(props) {
|
|
329
|
-
const { children,...contextValue } = props;
|
|
330
|
-
const value = React32__namespace.useMemo(() => contextValue, Object.values(contextValue));
|
|
331
|
-
return /* @__PURE__ */ React32__namespace.createElement(Context.Provider, { value }, children);
|
|
332
|
-
}
|
|
333
|
-
Provider.displayName = `${rootComponentName}Provider`;
|
|
334
|
-
function useContext3(consumerName, optional) {
|
|
335
|
-
const context = React32__namespace.useContext(Context);
|
|
336
|
-
if (!context && !optional) throw new Error(`\`${consumerName}\` must be used within \`${rootComponentName}\``);
|
|
337
|
-
if (context) return context;
|
|
338
|
-
if (defaultValue !== void 0) return defaultValue;
|
|
339
|
-
}
|
|
340
|
-
return [Provider, useContext3];
|
|
341
|
-
}
|
|
342
|
-
function getElementRef(element) {
|
|
343
|
-
if (!React32__namespace.isValidElement(element)) return void 0;
|
|
344
|
-
let getter = Object.getOwnPropertyDescriptor(element.props, "ref")?.get;
|
|
345
|
-
let mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
|
|
346
|
-
if (mayWarn) return element.ref;
|
|
347
|
-
getter = Object.getOwnPropertyDescriptor(element, "ref")?.get;
|
|
348
|
-
mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
|
|
349
|
-
if (mayWarn) return element.props.ref;
|
|
350
|
-
return element.props.ref || element.ref;
|
|
351
|
-
}
|
|
352
|
-
var isSlottable = function isSlottable2(child) {
|
|
353
|
-
return React32__namespace.isValidElement(child) && child.type === Slottable;
|
|
354
|
-
};
|
|
355
|
-
function mergeProps(slotProps, childProps) {
|
|
356
|
-
const overrideProps = { ...childProps };
|
|
357
|
-
for (const propName in childProps) {
|
|
358
|
-
const slotPropValue = slotProps[propName];
|
|
359
|
-
const childPropValue = childProps[propName];
|
|
360
|
-
if (/^on[A-Z]/.test(propName)) {
|
|
361
|
-
if (typeof slotPropValue === "function" && typeof childPropValue === "function") overrideProps[propName] = (...args) => {
|
|
362
|
-
childPropValue(...args);
|
|
363
|
-
slotPropValue(...args);
|
|
364
|
-
};
|
|
365
|
-
else if (typeof slotPropValue === "function") overrideProps[propName] = slotPropValue;
|
|
366
|
-
} else if (propName === "style" && slotPropValue && childPropValue) overrideProps[propName] = {
|
|
367
|
-
...slotPropValue,
|
|
368
|
-
...childPropValue
|
|
369
|
-
};
|
|
370
|
-
else if (propName === "className") overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(" ");
|
|
371
|
-
}
|
|
372
|
-
return {
|
|
373
|
-
...slotProps,
|
|
374
|
-
...overrideProps
|
|
375
|
-
};
|
|
376
|
-
}
|
|
377
|
-
var SlotClone = React32__namespace.forwardRef((props, forwardedRef) => {
|
|
378
|
-
const { children,...slotProps } = props;
|
|
379
|
-
if (!React32__namespace.isValidElement(children)) return React32__namespace.Children.count(children) > 1 ? React32__namespace.Children.only(null) : null;
|
|
380
|
-
const childrenRef = getElementRef(children);
|
|
381
|
-
const mergedProps = mergeProps(slotProps, children.props);
|
|
382
|
-
if (typeof children.type === "string") return React32__namespace.cloneElement(children, {
|
|
383
|
-
...mergedProps,
|
|
384
|
-
ref: forwardedRef ? composeRefs(forwardedRef, childrenRef) : childrenRef
|
|
385
|
-
});
|
|
386
|
-
return React32__namespace.cloneElement(children, {
|
|
387
|
-
...mergedProps,
|
|
388
|
-
ref: forwardedRef ? composeRefs(forwardedRef, childrenRef) : childrenRef
|
|
389
|
-
});
|
|
390
|
-
});
|
|
391
|
-
SlotClone.displayName = "SlotClone";
|
|
392
|
-
var Slot = React32__namespace.forwardRef((props, forwardedRef) => {
|
|
393
|
-
const { children,...slotProps } = props;
|
|
394
|
-
const childrenArray = React32__namespace.Children.toArray(children);
|
|
395
|
-
const slottable = childrenArray.find(isSlottable);
|
|
396
|
-
if (!slottable) return /* @__PURE__ */ React32__namespace.createElement(SlotClone, {
|
|
397
|
-
...slotProps,
|
|
398
|
-
ref: forwardedRef
|
|
399
|
-
}, children);
|
|
400
|
-
if (!React32__namespace.isValidElement(slottable)) return null;
|
|
401
|
-
const newElement = slottable.props.children;
|
|
402
|
-
const newChildren = childrenArray.map((child) => {
|
|
403
|
-
if (child === slottable) {
|
|
404
|
-
if (React32__namespace.Children.count(newElement) > 1) return React32__namespace.Children.only(null);
|
|
405
|
-
return React32__namespace.isValidElement(newElement) ? newElement.props.children : null;
|
|
406
|
-
}
|
|
407
|
-
return child;
|
|
408
|
-
});
|
|
409
|
-
return /* @__PURE__ */ React32__namespace.createElement(SlotClone, {
|
|
410
|
-
...slotProps,
|
|
411
|
-
ref: forwardedRef
|
|
412
|
-
}, React32__namespace.isValidElement(newElement) ? React32__namespace.cloneElement(newElement, void 0, newChildren) : null);
|
|
413
|
-
});
|
|
414
|
-
Slot.displayName = "Slot";
|
|
415
|
-
var Slottable = React32__namespace.memo(function Slottable2({ children }) {
|
|
416
|
-
return /* @__PURE__ */ React32__namespace.createElement(React32__namespace.Fragment, null, children);
|
|
417
|
-
});
|
|
418
|
-
Slottable.displayName = "Slottable";
|
|
419
|
-
function createPrimitive(element) {
|
|
420
|
-
const Primitive2 = React32__namespace.forwardRef((props, forwardedRef) => {
|
|
421
|
-
const { asChild,...primitiveProps } = props;
|
|
422
|
-
if (asChild) return React32__namespace.createElement(Slot, {
|
|
423
|
-
...primitiveProps,
|
|
424
|
-
ref: forwardedRef
|
|
425
|
-
});
|
|
426
|
-
return React32__namespace.createElement(element, {
|
|
427
|
-
...primitiveProps,
|
|
428
|
-
ref: forwardedRef
|
|
429
|
-
});
|
|
430
|
-
});
|
|
431
|
-
Primitive2.displayName = `Primitive.${String(element)}`;
|
|
432
|
-
return Primitive2;
|
|
433
|
-
}
|
|
434
|
-
var cache = /* @__PURE__ */ new Map();
|
|
435
|
-
var Primitive = new Proxy({}, { get: (_, element) => {
|
|
436
|
-
const key = element;
|
|
437
|
-
if (!cache.has(key)) cache.set(key, createPrimitive(key));
|
|
438
|
-
return cache.get(key);
|
|
439
|
-
} });
|
|
440
|
-
var Portal = React32__namespace.forwardRef((props, forwardedRef) => {
|
|
441
|
-
const { container: containerProp,...portalProps } = props;
|
|
442
|
-
const mounted = useMounted();
|
|
443
|
-
const container = containerProp ?? (mounted ? globalThis.document?.body : null);
|
|
444
|
-
if (!container) return null;
|
|
445
|
-
return ReactDOM__namespace.createPortal(/* @__PURE__ */ React32__namespace.createElement(Primitive.div, {
|
|
446
|
-
...portalProps,
|
|
447
|
-
ref: forwardedRef
|
|
448
|
-
}), container);
|
|
449
|
-
});
|
|
450
|
-
Portal.displayName = "Portal";
|
|
451
|
-
var Presence = (props) => {
|
|
452
|
-
const { present, children } = props;
|
|
453
|
-
const presence = usePresence(present);
|
|
454
|
-
const child = typeof children === "function" ? children({ present: presence.isPresent }) : React32__namespace.Children.only(children);
|
|
455
|
-
const ref = useComposedRefs(presence.ref, getElementRef(child));
|
|
456
|
-
return typeof children === "function" || presence.isPresent ? React32__namespace.cloneElement(child, { ref }) : null;
|
|
457
|
-
};
|
|
458
|
-
Presence.displayName = "Presence";
|
|
459
|
-
function usePresence(present) {
|
|
460
|
-
const [node, setNode] = React32__namespace.useState();
|
|
461
|
-
const stylesRef = React32__namespace.useRef({});
|
|
462
|
-
const prevPresentRef = React32__namespace.useRef(present);
|
|
463
|
-
const prevAnimationNameRef = React32__namespace.useRef("none");
|
|
464
|
-
const [state, send] = useStateMachine({
|
|
465
|
-
initial: present ? "mounted" : "unmounted",
|
|
466
|
-
states: {
|
|
467
|
-
mounted: {
|
|
468
|
-
UNMOUNT: "unmounted",
|
|
469
|
-
ANIMATION_OUT: "unmountSuspended"
|
|
470
|
-
},
|
|
471
|
-
unmountSuspended: {
|
|
472
|
-
MOUNT: "mounted",
|
|
473
|
-
ANIMATION_END: "unmounted"
|
|
474
|
-
},
|
|
475
|
-
unmounted: { MOUNT: "mounted" }
|
|
476
|
-
}
|
|
477
|
-
});
|
|
478
|
-
React32__namespace.useEffect(() => {
|
|
479
|
-
const currentAnimationName = getAnimationName(stylesRef.current);
|
|
480
|
-
prevAnimationNameRef.current = state === "mounted" ? currentAnimationName : "none";
|
|
481
|
-
}, [state]);
|
|
482
|
-
useLayoutEffect4(() => {
|
|
483
|
-
const styles = stylesRef.current;
|
|
484
|
-
const wasPresent = prevPresentRef.current;
|
|
485
|
-
if (wasPresent !== present) {
|
|
486
|
-
const prevAnimationName = prevAnimationNameRef.current;
|
|
487
|
-
const currentAnimationName = getAnimationName(styles);
|
|
488
|
-
if (present) send("MOUNT");
|
|
489
|
-
else if (currentAnimationName === "none" || styles?.display === "none") send("UNMOUNT");
|
|
490
|
-
else if (wasPresent && prevAnimationName !== currentAnimationName) send("ANIMATION_OUT");
|
|
491
|
-
else send("UNMOUNT");
|
|
492
|
-
prevPresentRef.current = present;
|
|
493
|
-
}
|
|
494
|
-
}, [present, send]);
|
|
495
|
-
useLayoutEffect4(() => {
|
|
496
|
-
if (node) {
|
|
497
|
-
let onAnimationEnd2 = function(event) {
|
|
498
|
-
const isCurrentAnimation = getAnimationName(stylesRef.current).includes(event.animationName);
|
|
499
|
-
if (event.target === node && isCurrentAnimation) {
|
|
500
|
-
send("ANIMATION_END");
|
|
501
|
-
if (!prevPresentRef.current) {
|
|
502
|
-
const currentFillMode = node.style.animationFillMode;
|
|
503
|
-
node.style.animationFillMode = "forwards";
|
|
504
|
-
timeoutId = ownerWindow.setTimeout(() => {
|
|
505
|
-
if (node.style.animationFillMode === "forwards") node.style.animationFillMode = currentFillMode;
|
|
506
|
-
});
|
|
507
|
-
}
|
|
508
|
-
}
|
|
509
|
-
}, onAnimationStart2 = function(event) {
|
|
510
|
-
if (event.target === node) prevAnimationNameRef.current = getAnimationName(stylesRef.current);
|
|
511
|
-
};
|
|
512
|
-
let timeoutId;
|
|
513
|
-
const ownerWindow = node.ownerDocument.defaultView ?? window;
|
|
514
|
-
node.addEventListener("animationstart", onAnimationStart2);
|
|
515
|
-
node.addEventListener("animationcancel", onAnimationEnd2);
|
|
516
|
-
node.addEventListener("animationend", onAnimationEnd2);
|
|
517
|
-
return () => {
|
|
518
|
-
ownerWindow.clearTimeout(timeoutId);
|
|
519
|
-
node.removeEventListener("animationstart", onAnimationStart2);
|
|
520
|
-
node.removeEventListener("animationcancel", onAnimationEnd2);
|
|
521
|
-
node.removeEventListener("animationend", onAnimationEnd2);
|
|
522
|
-
};
|
|
523
|
-
}
|
|
524
|
-
send("ANIMATION_END");
|
|
525
|
-
}, [node, send]);
|
|
526
|
-
return {
|
|
527
|
-
isPresent: ["mounted", "unmountSuspended"].includes(state),
|
|
528
|
-
ref: React32__namespace.useCallback((node2) => {
|
|
529
|
-
if (node2) stylesRef.current = getComputedStyle(node2);
|
|
530
|
-
setNode(node2);
|
|
531
|
-
}, [])
|
|
532
|
-
};
|
|
533
|
-
}
|
|
534
|
-
function getAnimationName(styles) {
|
|
535
|
-
return styles?.animationName || "none";
|
|
536
|
-
}
|
|
537
|
-
exports.DATA_ITEM_ATTR = DATA_ITEM_ATTR;
|
|
538
|
-
exports.Presence = Presence;
|
|
539
|
-
exports.Primitive = Primitive;
|
|
540
|
-
exports.VisuallyHiddenInput = VisuallyHiddenInput;
|
|
541
|
-
exports.composeEventHandlers = composeEventHandlers;
|
|
542
|
-
exports.composeRefs = composeRefs;
|
|
543
|
-
exports.createContext = createContext3;
|
|
544
|
-
exports.useComposedRefs = useComposedRefs;
|
|
545
|
-
exports.useControllableState = useControllableState;
|
|
546
|
-
exports.useDirection = useDirection;
|
|
547
|
-
exports.useFormControl = useFormControl;
|
|
548
|
-
exports.useId = useId;
|
|
549
|
-
exports.useItemCollection = useItemCollection;
|
|
550
|
-
}) });
|
|
551
|
-
|
|
552
|
-
//#endregion
|
|
553
|
-
Object.defineProperty(exports, 'default', {
|
|
554
|
-
enumerable: true,
|
|
555
|
-
get: function () {
|
|
556
|
-
return require_dist();
|
|
557
|
-
}
|
|
558
|
-
});
|