convex-cms 0.0.6 → 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +68 -101
- package/admin/src/components/BreakingChangesWarningDialog.tsx +5 -5
- package/admin/src/components/BulkOperationModal.tsx +14 -14
- package/admin/src/components/ContentEntryEditor.tsx +8 -8
- package/admin/src/components/ContentTypeFormModal.tsx +122 -82
- package/admin/src/components/Header.tsx +5 -2
- package/admin/src/components/SchemaDriftWarning.tsx +126 -0
- package/admin/src/components/TaxonomyEditor.tsx +2 -2
- package/admin/src/components/TermTree.tsx +3 -3
- package/admin/src/components/UploadDropzone.tsx +7 -7
- package/admin/src/components/VersionCompare.tsx +13 -13
- package/admin/src/components/VersionHistory.tsx +2 -2
- package/admin/src/components/VersionRollbackModal.tsx +5 -5
- package/admin/src/components/cmsds/CmsButton.tsx +2 -2
- package/admin/src/components/cmsds/CmsDialog.tsx +4 -1
- package/admin/src/components/cmsds/CmsStatusBadge.tsx +5 -5
- package/admin/src/components/fields/JsonField.tsx +1 -1
- package/admin/src/components/fields/ReferenceField.tsx +9 -9
- package/admin/src/components/fields/TagField.tsx +1 -1
- package/admin/src/contexts/SettingsConfigContext.tsx +10 -3
- package/admin/src/embed/index.tsx +29 -9
- package/admin/src/embed/pages/ContentTypeEntries.tsx +25 -0
- package/admin/src/embed/pages/Entry.tsx +114 -0
- package/admin/src/embed/pages/Media.tsx +3 -1
- package/admin/src/embed/pages/NewEntry.tsx +83 -0
- package/admin/src/embed/pages/index.ts +3 -0
- package/admin/src/pages/ContentPage.tsx +27 -20
- package/admin/src/pages/ContentTypeEntriesPage.tsx +466 -0
- package/admin/src/pages/ContentTypesPage.tsx +65 -19
- package/admin/src/pages/DashboardPage.tsx +3 -0
- package/admin/src/pages/SettingsPage.tsx +4 -4
- package/admin/src/pages/index.ts +1 -0
- package/admin/src/routes/__root.tsx +10 -10
- package/admin/src/routes/entries/$entryId.tsx +1 -1
- package/admin/src/routes/entries/type/$contentTypeId.tsx +1 -1
- package/admin/src/styles/globals.css +31 -5
- package/admin/src/styles/tailwind-config.css +25 -0
- package/admin/src/styles/theme.css +50 -0
- package/admin-dist/nitro.json +1 -1
- package/admin-dist/public/assets/CmsEmptyState-6-PLaXtD.js +1 -0
- package/admin-dist/public/assets/CmsPageHeader-SoF4Epu9.js +1 -0
- package/admin-dist/public/assets/CmsStatusBadge-D7kYaohx.js +1 -0
- package/admin-dist/public/assets/{CmsSurface-DBy5Lumx.js → CmsSurface-BvksBm6W.js} +1 -1
- package/admin-dist/public/assets/CmsToolbar-DlZPMe2B.js +1 -0
- package/admin-dist/public/assets/ContentEntryEditor-C6n9xLS9.js +4 -0
- package/admin-dist/public/assets/TaxonomyFilter-CFX1_g8s.js +1 -0
- package/admin-dist/public/assets/_contentTypeId-DTv8UoTp.js +1 -0
- package/admin-dist/public/assets/_entryId-D3lr5Dvy.js +1 -0
- package/admin-dist/public/assets/alert-BAHTL6ao.js +1 -0
- package/admin-dist/public/assets/badge-oJv4Eai8.js +1 -0
- package/admin-dist/public/assets/{circle-check-big-CpLxAvEj.js → circle-check-big-3OHxNDhO.js} +1 -1
- package/admin-dist/public/assets/command-DwgQs69u.js +1 -0
- package/admin-dist/public/assets/content-CKQ4QwW2.js +1 -0
- package/admin-dist/public/assets/content-types-BrttaLpc.js +1 -0
- package/admin-dist/public/assets/globals-CoCRjt0K.css +1 -0
- package/admin-dist/public/assets/index-DOkgTSx0.js +1 -0
- package/admin-dist/public/assets/main-DV6oxWnU.js +102 -0
- package/admin-dist/public/assets/media-B2i-mCbx.js +1 -0
- package/admin-dist/public/assets/new._contentTypeId-VF63rpic.js +1 -0
- package/admin-dist/public/assets/pencil-CX1CiTDD.js +1 -0
- package/admin-dist/public/assets/refresh-cw-Cm-YOeFI.js +1 -0
- package/admin-dist/public/assets/{rotate-ccw-BZpZtw0N.js → rotate-ccw-B45JsL5f.js} +1 -1
- package/admin-dist/public/assets/scroll-area-b3A1HHR7.js +1 -0
- package/admin-dist/public/assets/{search-BvgYr-c9.js → search-DKKh_DdH.js} +1 -1
- package/admin-dist/public/assets/settings-CGVDEV1r.js +1 -0
- package/admin-dist/public/assets/switch-BTMY8Qnk.js +1 -0
- package/admin-dist/public/assets/tabs-DUQwUoIb.js +1 -0
- package/admin-dist/public/assets/tanstack-adapter-f7AHmQ5L.js +1 -0
- package/admin-dist/public/assets/taxonomies-DvMppdiD.js +1 -0
- package/admin-dist/public/assets/trash-D7e0uKd9.js +1 -0
- package/admin-dist/public/assets/{useBreadcrumbLabel-D00rvqjw.js → useBreadcrumbLabel-CF2KYwsw.js} +1 -1
- package/admin-dist/public/assets/usePermissions-DWBImEOW.js +1 -0
- package/admin-dist/server/_chunks/_libs/@date-fns/tz.mjs +2 -2
- package/admin-dist/server/_chunks/_libs/@radix-ui/react-avatar.mjs +1 -1
- package/admin-dist/server/_chunks/_libs/@radix-ui/react-collection.mjs +1 -1
- package/admin-dist/server/_chunks/_libs/@radix-ui/react-context.mjs +2 -2
- package/admin-dist/server/_chunks/_libs/@radix-ui/react-dialog.mjs +2 -2
- package/admin-dist/server/_chunks/_libs/@radix-ui/react-label.mjs +1 -1
- package/admin-dist/server/_chunks/_libs/@radix-ui/react-menu.mjs +1 -1
- package/admin-dist/server/_chunks/_libs/@radix-ui/react-popover.mjs +1 -1
- package/admin-dist/server/_chunks/_libs/@radix-ui/react-primitive.mjs +6 -72
- package/admin-dist/server/_chunks/_libs/@radix-ui/react-select.mjs +1 -1
- package/admin-dist/server/_chunks/_libs/@radix-ui/react-separator.mjs +1 -1
- package/admin-dist/server/_chunks/_libs/@radix-ui/react-slot.mjs +20 -435
- package/admin-dist/server/_chunks/_libs/@radix-ui/react-visually-hidden.mjs +30 -3
- package/admin-dist/server/_chunks/_libs/@tanstack/history.mjs +0 -376
- package/admin-dist/server/_chunks/_libs/@tanstack/react-router.mjs +168 -383
- package/admin-dist/server/_chunks/_libs/@tanstack/router-core.mjs +451 -1195
- package/admin-dist/server/_chunks/_libs/react-dom.mjs +5 -5
- package/admin-dist/server/_chunks/_libs/react.mjs +2 -2
- package/admin-dist/server/_libs/cmdk.mjs +1 -1
- package/admin-dist/server/_libs/convex.mjs +3 -3
- package/admin-dist/server/_libs/cookie-es.mjs +1 -58
- package/admin-dist/server/_libs/date-fns.mjs +1 -1
- package/admin-dist/server/_libs/lucide-react.mjs +117 -103
- package/admin-dist/server/_libs/seroval-plugins.mjs +1 -58
- package/admin-dist/server/_libs/seroval.mjs +1 -1765
- package/admin-dist/server/_libs/zod.mjs +1 -1
- package/admin-dist/server/_ssr/CmsEmptyState-BM8DghTl.mjs +38 -0
- package/admin-dist/server/_ssr/{CmsPageHeader-ClNPU7Up.mjs → CmsPageHeader-BHUmrIWD.mjs} +1 -1
- package/admin-dist/server/_ssr/{CmsStatusBadge-CojMbrY7.mjs → CmsStatusBadge-D0Zb0oRl.mjs} +7 -7
- package/admin-dist/server/_ssr/{CmsSurface-Dcv440rp.mjs → CmsSurface-B2eBr-47.mjs} +1 -1
- package/admin-dist/server/_ssr/{CmsToolbar-BKv1nL6u.mjs → CmsToolbar-BCrwg7OL.mjs} +2 -3
- package/admin-dist/server/_ssr/{ContentEntryEditor-weiXSBdZ.mjs → ContentEntryEditor-Cjfm0uhr.mjs} +46 -49
- package/admin-dist/server/_ssr/{TaxonomyFilter-BPQ57Mwk.mjs → TaxonomyFilter-C4pD0kfM.mjs} +4 -5
- package/admin-dist/server/_ssr/{_contentTypeId-DyyauLOs.mjs → _contentTypeId-CiDiX-p7.mjs} +34 -43
- package/admin-dist/server/_ssr/{_entryId-9Cafwxmw.mjs → _entryId-9GxatOkL.mjs} +35 -47
- package/admin-dist/server/_ssr/_tanstack-start-manifest_v-CC7UrHKE.mjs +4 -0
- package/admin-dist/server/_ssr/badge-EI998zba.mjs +39 -0
- package/admin-dist/server/_ssr/{command-CEf8YBxY.mjs → command-BLAWQhUw.mjs} +2 -2
- package/admin-dist/server/_ssr/{config.server-D7JHDcDv.mjs → config.server-BOr7Jxr4.mjs} +5 -14
- package/admin-dist/server/_ssr/{content-ZFWVzO25.mjs → content-BHX39L4D.mjs} +63 -63
- package/admin-dist/server/_ssr/content-types-DCzrBhTH.mjs +459 -0
- package/admin-dist/server/_ssr/{index-BlSIlH4Z.mjs → index-DwM_5VNP.mjs} +114 -30
- package/admin-dist/server/_ssr/index.mjs +3459 -62
- package/admin-dist/server/_ssr/{media-CD2_NUMw.mjs → media-CbzgTRRQ.mjs} +31 -43
- package/admin-dist/server/_ssr/{new._contentTypeId-dmZy6PBX.mjs → new._contentTypeId-6Ph-Gtlw.mjs} +33 -45
- package/admin-dist/server/_ssr/router-vd1nySeP.mjs +3041 -0
- package/admin-dist/server/_ssr/{scroll-area-BH_1K-WT.mjs → scroll-area--B9snFTJ.mjs} +1 -1
- package/admin-dist/server/_ssr/{settings-DVdsoWoh.mjs → settings-DlTO2JSj.mjs} +34 -43
- package/admin-dist/server/_ssr/{switch-DX_X8vZl.mjs → switch-C05NgNW0.mjs} +1 -1
- package/admin-dist/server/_ssr/{tabs-4FWM0sn8.mjs → tabs-DAk2J5xy.mjs} +9 -10
- package/admin-dist/server/_ssr/{tanstack-adapter-D3ZcKtbY.mjs → tanstack-adapter-DWbaPByn.mjs} +15 -1
- package/admin-dist/server/_ssr/{taxonomies-BHFfO9Yr.mjs → taxonomies-B8nqce6u.mjs} +35 -44
- package/admin-dist/server/_ssr/{trash-9tUB2KwI.mjs → trash-zdlZgpTo.mjs} +30 -39
- package/admin-dist/server/_ssr/{useBreadcrumbLabel-DVme3DSb.mjs → useBreadcrumbLabel-DpEKyG1h.mjs} +1 -1
- package/admin-dist/server/_ssr/{usePermissions-zAQj-ruE.mjs → usePermissions-olYRd9S9.mjs} +1 -1
- package/admin-dist/server/index.mjs +168 -203
- package/dist/cli/templates/cmsClient.d.ts +1 -1
- package/dist/cli/templates/cmsClient.d.ts.map +1 -1
- package/dist/cli/templates/cmsClient.js +30 -11
- package/dist/cli/templates/cmsClient.js.map +1 -1
- package/dist/cli/templates/cmsConfig.d.ts +1 -1
- package/dist/cli/templates/cmsConfig.d.ts.map +1 -1
- package/dist/cli/templates/cmsConfig.js +3 -3
- package/dist/client/admin/contentLock.d.ts +4 -4
- package/dist/client/admin/contentLock.d.ts.map +1 -1
- package/dist/client/admin/contentLock.js +1 -1
- package/dist/client/admin/contentLock.js.map +1 -1
- package/dist/client/admin/contentTypes.d.ts +328 -290
- package/dist/client/admin/contentTypes.d.ts.map +1 -1
- package/dist/client/admin/contentTypes.js +307 -9
- package/dist/client/admin/contentTypes.js.map +1 -1
- package/dist/client/admin/entries.d.ts +18 -19
- package/dist/client/admin/entries.d.ts.map +1 -1
- package/dist/client/admin/entries.js +33 -8
- package/dist/client/admin/entries.js.map +1 -1
- package/dist/client/admin/index.d.ts +694 -642
- package/dist/client/admin/index.d.ts.map +1 -1
- package/dist/client/admin/index.js +45 -5
- package/dist/client/admin/index.js.map +1 -1
- package/dist/client/admin/media.d.ts.map +1 -1
- package/dist/client/admin/taxonomies.d.ts.map +1 -1
- package/dist/client/admin/trash.d.ts +3 -4
- package/dist/client/admin/trash.d.ts.map +1 -1
- package/dist/client/admin/types.d.ts +185 -4
- package/dist/client/admin/types.d.ts.map +1 -1
- package/dist/client/admin/validators.d.ts +2009 -25
- package/dist/client/admin/validators.d.ts.map +1 -1
- package/dist/client/admin/validators.js +15 -4
- package/dist/client/admin/validators.js.map +1 -1
- package/dist/client/admin/versions.d.ts +1 -1
- package/dist/client/admin/versions.d.ts.map +1 -1
- package/dist/client/agentTools.d.ts +1 -4
- package/dist/client/agentTools.d.ts.map +1 -1
- package/dist/client/agentTools.js +9 -21
- package/dist/client/agentTools.js.map +1 -1
- package/dist/client/config.d.ts +10 -0
- package/dist/client/config.d.ts.map +1 -1
- package/dist/client/config.js +1 -0
- package/dist/client/config.js.map +1 -1
- package/dist/client/defineContent.d.ts +338 -0
- package/dist/client/defineContent.d.ts.map +1 -0
- package/dist/client/defineContent.js +368 -0
- package/dist/client/defineContent.js.map +1 -0
- package/dist/client/index.d.ts +2 -0
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +2 -0
- package/dist/client/index.js.map +1 -1
- package/dist/client/queryBuilder.d.ts +0 -15
- package/dist/client/queryBuilder.d.ts.map +1 -1
- package/dist/client/queryBuilder.js +0 -23
- package/dist/client/queryBuilder.js.map +1 -1
- package/dist/client/registry.d.ts +77 -0
- package/dist/client/registry.d.ts.map +1 -0
- package/dist/client/registry.js +95 -0
- package/dist/client/registry.js.map +1 -0
- package/dist/client/schema/defineContentType.d.ts +36 -24
- package/dist/client/schema/defineContentType.d.ts.map +1 -1
- package/dist/client/schema/defineContentType.js +176 -128
- package/dist/client/schema/defineContentType.js.map +1 -1
- package/dist/client/schema/typedClient.d.ts.map +1 -1
- package/dist/client/schema/typedClient.js +2 -10
- package/dist/client/schema/typedClient.js.map +1 -1
- package/dist/client/schema/types.d.ts +16 -9
- package/dist/client/schema/types.d.ts.map +1 -1
- package/dist/client/schema/types.js.map +1 -1
- package/dist/client/utils/toSlug.d.ts +60 -0
- package/dist/client/utils/toSlug.d.ts.map +1 -0
- package/dist/client/utils/toSlug.js +31 -0
- package/dist/client/utils/toSlug.js.map +1 -0
- package/dist/client/wrapper.d.ts +2 -2
- package/dist/client/wrapper.d.ts.map +1 -1
- package/dist/client/wrapper.js +22 -30
- package/dist/client/wrapper.js.map +1 -1
- package/dist/component/_generated/component.d.ts +24 -28
- package/dist/component/_generated/component.d.ts.map +1 -1
- package/dist/component/authorizationHooks.d.ts +1 -1
- package/dist/component/authorizationHooks.d.ts.map +1 -1
- package/dist/component/authorizationHooks.js +2 -2
- package/dist/component/authorizationHooks.js.map +1 -1
- package/dist/component/bulkOperations.d.ts.map +1 -1
- package/dist/component/bulkOperations.js +7 -4
- package/dist/component/bulkOperations.js.map +1 -1
- package/dist/component/contentEntries.d.ts +18 -56
- package/dist/component/contentEntries.d.ts.map +1 -1
- package/dist/component/contentEntries.js +45 -137
- package/dist/component/contentEntries.js.map +1 -1
- package/dist/component/contentEntryMutations.d.ts +14 -14
- package/dist/component/contentEntryMutations.d.ts.map +1 -1
- package/dist/component/contentEntryMutations.js +40 -43
- package/dist/component/contentEntryMutations.js.map +1 -1
- package/dist/component/contentEntryValidation.d.ts +3 -3
- package/dist/component/contentEntryValidation.js +6 -9
- package/dist/component/contentEntryValidation.js.map +1 -1
- package/dist/component/contentLock.d.ts +7 -7
- package/dist/component/contentLock.js +3 -3
- package/dist/component/contentLock.js.map +1 -1
- package/dist/component/contentTypeMigration.d.ts +1 -1
- package/dist/component/contentTypeMigration.js +2 -2
- package/dist/component/contentTypeMigration.js.map +1 -1
- package/dist/component/contentTypeMutations.d.ts.map +1 -1
- package/dist/component/contentTypeMutations.js +7 -6
- package/dist/component/contentTypeMutations.js.map +1 -1
- package/dist/component/convex.config.d.ts.map +1 -1
- package/dist/component/convex.config.js +1 -1
- package/dist/component/convex.config.js.map +1 -1
- package/dist/component/eventEmitter.d.ts +0 -1
- package/dist/component/eventEmitter.d.ts.map +1 -1
- package/dist/component/eventEmitter.js.map +1 -1
- package/dist/component/exportImport.d.ts +37 -37
- package/dist/component/exportImport.d.ts.map +1 -1
- package/dist/component/exportImport.js +34 -34
- package/dist/component/exportImport.js.map +1 -1
- package/dist/component/lib/deepReferenceResolver.d.ts +2 -2
- package/dist/component/lib/deepReferenceResolver.d.ts.map +1 -1
- package/dist/component/lib/deepReferenceResolver.js +13 -8
- package/dist/component/lib/deepReferenceResolver.js.map +1 -1
- package/dist/component/lib/ragContentChunker.d.ts +3 -3
- package/dist/component/lib/ragContentChunker.d.ts.map +1 -1
- package/dist/component/lib/ragContentChunker.js +4 -4
- package/dist/component/lib/ragContentChunker.js.map +1 -1
- package/dist/component/lib/referenceResolver.d.ts.map +1 -1
- package/dist/component/lib/referenceResolver.js +10 -17
- package/dist/component/lib/referenceResolver.js.map +1 -1
- package/dist/component/mediaAssetMutations.js +4 -4
- package/dist/component/mediaAssetMutations.js.map +1 -1
- package/dist/component/ragContentIndexer.d.ts +2 -2
- package/dist/component/ragContentIndexer.d.ts.map +1 -1
- package/dist/component/ragContentIndexer.js +44 -48
- package/dist/component/ragContentIndexer.js.map +1 -1
- package/dist/component/roles.d.ts +3 -3
- package/dist/component/scheduledPublish.d.ts +4 -4
- package/dist/component/scheduledPublish.js +3 -3
- package/dist/component/scheduledPublish.js.map +1 -1
- package/dist/component/schema.d.ts +18 -18
- package/dist/component/schema.js +5 -5
- package/dist/component/schema.js.map +1 -1
- package/dist/component/trash.d.ts +6 -9
- package/dist/component/trash.d.ts.map +1 -1
- package/dist/component/trash.js +12 -36
- package/dist/component/trash.js.map +1 -1
- package/dist/component/userContext.d.ts +1 -2
- package/dist/component/userContext.d.ts.map +1 -1
- package/dist/component/userContext.js +1 -2
- package/dist/component/userContext.js.map +1 -1
- package/dist/component/validators.d.ts +27 -33
- package/dist/component/validators.d.ts.map +1 -1
- package/dist/component/validators.js +3 -5
- package/dist/component/validators.js.map +1 -1
- package/dist/component/versionMutations.d.ts +1 -1
- package/dist/component/webhookTrigger.d.ts +14 -14
- package/dist/test.d.ts +30 -30
- package/dist/test.d.ts.map +1 -1
- package/dist/test.js +24 -24
- package/dist/test.js.map +1 -1
- package/package.json +1 -1
- package/admin-dist/public/assets/CmsEmptyState-Do_erIgn.js +0 -5
- package/admin-dist/public/assets/CmsPageHeader-qDwPGi48.js +0 -1
- package/admin-dist/public/assets/CmsStatusBadge-Dd9uToHE.js +0 -1
- package/admin-dist/public/assets/CmsToolbar-D1-Y-7SK.js +0 -1
- package/admin-dist/public/assets/ContentEntryEditor-CWBiIx52.js +0 -4
- package/admin-dist/public/assets/TaxonomyFilter-CdYQawxb.js +0 -1
- package/admin-dist/public/assets/_contentTypeId-D9VMP6Gs.js +0 -1
- package/admin-dist/public/assets/_entryId-2FlCfqE7.js +0 -1
- package/admin-dist/public/assets/alert-GxZx0y5c.js +0 -1
- package/admin-dist/public/assets/badge-BAlGIjop.js +0 -1
- package/admin-dist/public/assets/command-di7XCqcv.js +0 -1
- package/admin-dist/public/assets/content-D8zELsDG.js +0 -1
- package/admin-dist/public/assets/content-types-BmzD0krT.js +0 -2
- package/admin-dist/public/assets/globals-BvFfH-v9.css +0 -1
- package/admin-dist/public/assets/index-zqfj4T_v.js +0 -1
- package/admin-dist/public/assets/label-B6PPtKR5.js +0 -1
- package/admin-dist/public/assets/link-2-W2fVnVOf.js +0 -1
- package/admin-dist/public/assets/list-F8O0lZXC.js +0 -1
- package/admin-dist/public/assets/main-dZT72bAG.js +0 -97
- package/admin-dist/public/assets/media-CETueFbV.js +0 -1
- package/admin-dist/public/assets/new._contentTypeId-BV2-TyyR.js +0 -1
- package/admin-dist/public/assets/plus-AABQIF0N.js +0 -1
- package/admin-dist/public/assets/scroll-area-CDfk-zrz.js +0 -1
- package/admin-dist/public/assets/select-BuiHcMzS.js +0 -1
- package/admin-dist/public/assets/settings-DBxbYDvn.js +0 -1
- package/admin-dist/public/assets/switch-DiJvolcs.js +0 -1
- package/admin-dist/public/assets/tabs-Cgz6G_Xy.js +0 -1
- package/admin-dist/public/assets/tanstack-adapter-BknsSgra.js +0 -1
- package/admin-dist/public/assets/taxonomies-DOErsLl5.js +0 -1
- package/admin-dist/public/assets/textarea-CgggMxUX.js +0 -1
- package/admin-dist/public/assets/trash-BU4ANuaW.js +0 -1
- package/admin-dist/public/assets/triangle-alert-lvCbwp0s.js +0 -1
- package/admin-dist/public/assets/usePermissions-D7tQowaF.js +0 -1
- package/admin-dist/server/_libs/h3-v2.mjs +0 -277
- package/admin-dist/server/_ssr/CmsButton-DbzfJru_.mjs +0 -125
- package/admin-dist/server/_ssr/CmsEmptyState-CuvcXr3Z.mjs +0 -290
- package/admin-dist/server/_ssr/_tanstack-start-manifest_v-Dk-FIYPN.mjs +0 -4
- package/admin-dist/server/_ssr/content-types-D25lUE-j.mjs +0 -1312
- package/admin-dist/server/_ssr/label-PblVvdRv.mjs +0 -22
- package/admin-dist/server/_ssr/router-x6Ab8T4s.mjs +0 -1622
- package/admin-dist/server/_ssr/select-CrfEkFJw.mjs +0 -142
- package/admin-dist/server/_ssr/textarea-CZVaroMc.mjs +0 -18
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { r as reactExports, j as jsxRuntimeExports, R as React } from "../react.mjs";
|
|
2
2
|
import { c as composeRefs } from "./react-compose-refs.mjs";
|
|
3
3
|
// @__NO_SIDE_EFFECTS__
|
|
4
|
-
function createSlot$
|
|
5
|
-
const SlotClone = /* @__PURE__ */ createSlotClone$
|
|
4
|
+
function createSlot$1(ownerName) {
|
|
5
|
+
const SlotClone = /* @__PURE__ */ createSlotClone$1(ownerName);
|
|
6
6
|
const Slot2 = reactExports.forwardRef((props, forwardedRef) => {
|
|
7
7
|
const { children, ...slotProps } = props;
|
|
8
8
|
const childrenArray = reactExports.Children.toArray(children);
|
|
9
|
-
const slottable = childrenArray.find(isSlottable$
|
|
9
|
+
const slottable = childrenArray.find(isSlottable$1);
|
|
10
10
|
if (slottable) {
|
|
11
11
|
const newElement = slottable.props.children;
|
|
12
12
|
const newChildren = childrenArray.map((child) => {
|
|
@@ -25,12 +25,12 @@ function createSlot$6(ownerName) {
|
|
|
25
25
|
return Slot2;
|
|
26
26
|
}
|
|
27
27
|
// @__NO_SIDE_EFFECTS__
|
|
28
|
-
function createSlotClone$
|
|
28
|
+
function createSlotClone$1(ownerName) {
|
|
29
29
|
const SlotClone = reactExports.forwardRef((props, forwardedRef) => {
|
|
30
30
|
const { children, ...slotProps } = props;
|
|
31
31
|
if (reactExports.isValidElement(children)) {
|
|
32
|
-
const childrenRef = getElementRef$
|
|
33
|
-
const props2 = mergeProps$
|
|
32
|
+
const childrenRef = getElementRef$1(children);
|
|
33
|
+
const props2 = mergeProps$1(slotProps, children.props);
|
|
34
34
|
if (children.type !== reactExports.Fragment) {
|
|
35
35
|
props2.ref = forwardedRef ? composeRefs(forwardedRef, childrenRef) : childrenRef;
|
|
36
36
|
}
|
|
@@ -41,11 +41,11 @@ function createSlotClone$6(ownerName) {
|
|
|
41
41
|
SlotClone.displayName = `${ownerName}.SlotClone`;
|
|
42
42
|
return SlotClone;
|
|
43
43
|
}
|
|
44
|
-
var SLOTTABLE_IDENTIFIER$
|
|
45
|
-
function isSlottable$
|
|
46
|
-
return reactExports.isValidElement(child) && typeof child.type === "function" && "__radixId" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER$
|
|
44
|
+
var SLOTTABLE_IDENTIFIER$1 = /* @__PURE__ */ Symbol("radix.slottable");
|
|
45
|
+
function isSlottable$1(child) {
|
|
46
|
+
return reactExports.isValidElement(child) && typeof child.type === "function" && "__radixId" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER$1;
|
|
47
47
|
}
|
|
48
|
-
function mergeProps$
|
|
48
|
+
function mergeProps$1(slotProps, childProps) {
|
|
49
49
|
const overrideProps = { ...childProps };
|
|
50
50
|
for (const propName in childProps) {
|
|
51
51
|
const slotPropValue = slotProps[propName];
|
|
@@ -69,7 +69,7 @@ function mergeProps$6(slotProps, childProps) {
|
|
|
69
69
|
}
|
|
70
70
|
return { ...slotProps, ...overrideProps };
|
|
71
71
|
}
|
|
72
|
-
function getElementRef$
|
|
72
|
+
function getElementRef$1(element) {
|
|
73
73
|
let getter = Object.getOwnPropertyDescriptor(element.props, "ref")?.get;
|
|
74
74
|
let mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
|
|
75
75
|
if (mayWarn) {
|
|
@@ -82,7 +82,7 @@ function getElementRef$6(element) {
|
|
|
82
82
|
}
|
|
83
83
|
return element.props.ref || element.ref;
|
|
84
84
|
}
|
|
85
|
-
var REACT_LAZY_TYPE = Symbol.for("react.lazy");
|
|
85
|
+
var REACT_LAZY_TYPE = /* @__PURE__ */ Symbol.for("react.lazy");
|
|
86
86
|
var use = React[" use ".trim().toString()];
|
|
87
87
|
function isPromiseLike(value) {
|
|
88
88
|
return typeof value === "object" && value !== null && "then" in value;
|
|
@@ -91,15 +91,15 @@ function isLazyComponent(element) {
|
|
|
91
91
|
return element != null && typeof element === "object" && "$$typeof" in element && element.$$typeof === REACT_LAZY_TYPE && "_payload" in element && isPromiseLike(element._payload);
|
|
92
92
|
}
|
|
93
93
|
// @__NO_SIDE_EFFECTS__
|
|
94
|
-
function createSlot
|
|
95
|
-
const SlotClone = /* @__PURE__ */ createSlotClone
|
|
94
|
+
function createSlot(ownerName) {
|
|
95
|
+
const SlotClone = /* @__PURE__ */ createSlotClone(ownerName);
|
|
96
96
|
const Slot2 = reactExports.forwardRef((props, forwardedRef) => {
|
|
97
97
|
let { children, ...slotProps } = props;
|
|
98
98
|
if (isLazyComponent(children) && typeof use === "function") {
|
|
99
99
|
children = use(children._payload);
|
|
100
100
|
}
|
|
101
101
|
const childrenArray = reactExports.Children.toArray(children);
|
|
102
|
-
const slottable = childrenArray.find(isSlottable
|
|
102
|
+
const slottable = childrenArray.find(isSlottable);
|
|
103
103
|
if (slottable) {
|
|
104
104
|
const newElement = slottable.props.children;
|
|
105
105
|
const newChildren = childrenArray.map((child) => {
|
|
@@ -117,424 +117,14 @@ function createSlot$5(ownerName) {
|
|
|
117
117
|
Slot2.displayName = `${ownerName}.Slot`;
|
|
118
118
|
return Slot2;
|
|
119
119
|
}
|
|
120
|
-
var Slot = /* @__PURE__ */ createSlot
|
|
120
|
+
var Slot = /* @__PURE__ */ createSlot("Slot");
|
|
121
121
|
// @__NO_SIDE_EFFECTS__
|
|
122
|
-
function createSlotClone
|
|
122
|
+
function createSlotClone(ownerName) {
|
|
123
123
|
const SlotClone = reactExports.forwardRef((props, forwardedRef) => {
|
|
124
124
|
let { children, ...slotProps } = props;
|
|
125
125
|
if (isLazyComponent(children) && typeof use === "function") {
|
|
126
126
|
children = use(children._payload);
|
|
127
127
|
}
|
|
128
|
-
if (reactExports.isValidElement(children)) {
|
|
129
|
-
const childrenRef = getElementRef$5(children);
|
|
130
|
-
const props2 = mergeProps$5(slotProps, children.props);
|
|
131
|
-
if (children.type !== reactExports.Fragment) {
|
|
132
|
-
props2.ref = forwardedRef ? composeRefs(forwardedRef, childrenRef) : childrenRef;
|
|
133
|
-
}
|
|
134
|
-
return reactExports.cloneElement(children, props2);
|
|
135
|
-
}
|
|
136
|
-
return reactExports.Children.count(children) > 1 ? reactExports.Children.only(null) : null;
|
|
137
|
-
});
|
|
138
|
-
SlotClone.displayName = `${ownerName}.SlotClone`;
|
|
139
|
-
return SlotClone;
|
|
140
|
-
}
|
|
141
|
-
var SLOTTABLE_IDENTIFIER$5 = Symbol("radix.slottable");
|
|
142
|
-
function isSlottable$5(child) {
|
|
143
|
-
return reactExports.isValidElement(child) && typeof child.type === "function" && "__radixId" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER$5;
|
|
144
|
-
}
|
|
145
|
-
function mergeProps$5(slotProps, childProps) {
|
|
146
|
-
const overrideProps = { ...childProps };
|
|
147
|
-
for (const propName in childProps) {
|
|
148
|
-
const slotPropValue = slotProps[propName];
|
|
149
|
-
const childPropValue = childProps[propName];
|
|
150
|
-
const isHandler = /^on[A-Z]/.test(propName);
|
|
151
|
-
if (isHandler) {
|
|
152
|
-
if (slotPropValue && childPropValue) {
|
|
153
|
-
overrideProps[propName] = (...args) => {
|
|
154
|
-
const result = childPropValue(...args);
|
|
155
|
-
slotPropValue(...args);
|
|
156
|
-
return result;
|
|
157
|
-
};
|
|
158
|
-
} else if (slotPropValue) {
|
|
159
|
-
overrideProps[propName] = slotPropValue;
|
|
160
|
-
}
|
|
161
|
-
} else if (propName === "style") {
|
|
162
|
-
overrideProps[propName] = { ...slotPropValue, ...childPropValue };
|
|
163
|
-
} else if (propName === "className") {
|
|
164
|
-
overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(" ");
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
return { ...slotProps, ...overrideProps };
|
|
168
|
-
}
|
|
169
|
-
function getElementRef$5(element) {
|
|
170
|
-
let getter = Object.getOwnPropertyDescriptor(element.props, "ref")?.get;
|
|
171
|
-
let mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
|
|
172
|
-
if (mayWarn) {
|
|
173
|
-
return element.ref;
|
|
174
|
-
}
|
|
175
|
-
getter = Object.getOwnPropertyDescriptor(element, "ref")?.get;
|
|
176
|
-
mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
|
|
177
|
-
if (mayWarn) {
|
|
178
|
-
return element.props.ref;
|
|
179
|
-
}
|
|
180
|
-
return element.props.ref || element.ref;
|
|
181
|
-
}
|
|
182
|
-
// @__NO_SIDE_EFFECTS__
|
|
183
|
-
function createSlot$4(ownerName) {
|
|
184
|
-
const SlotClone = /* @__PURE__ */ createSlotClone$4(ownerName);
|
|
185
|
-
const Slot2 = reactExports.forwardRef((props, forwardedRef) => {
|
|
186
|
-
const { children, ...slotProps } = props;
|
|
187
|
-
const childrenArray = reactExports.Children.toArray(children);
|
|
188
|
-
const slottable = childrenArray.find(isSlottable$4);
|
|
189
|
-
if (slottable) {
|
|
190
|
-
const newElement = slottable.props.children;
|
|
191
|
-
const newChildren = childrenArray.map((child) => {
|
|
192
|
-
if (child === slottable) {
|
|
193
|
-
if (reactExports.Children.count(newElement) > 1) return reactExports.Children.only(null);
|
|
194
|
-
return reactExports.isValidElement(newElement) ? newElement.props.children : null;
|
|
195
|
-
} else {
|
|
196
|
-
return child;
|
|
197
|
-
}
|
|
198
|
-
});
|
|
199
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(SlotClone, { ...slotProps, ref: forwardedRef, children: reactExports.isValidElement(newElement) ? reactExports.cloneElement(newElement, void 0, newChildren) : null });
|
|
200
|
-
}
|
|
201
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(SlotClone, { ...slotProps, ref: forwardedRef, children });
|
|
202
|
-
});
|
|
203
|
-
Slot2.displayName = `${ownerName}.Slot`;
|
|
204
|
-
return Slot2;
|
|
205
|
-
}
|
|
206
|
-
// @__NO_SIDE_EFFECTS__
|
|
207
|
-
function createSlotClone$4(ownerName) {
|
|
208
|
-
const SlotClone = reactExports.forwardRef((props, forwardedRef) => {
|
|
209
|
-
const { children, ...slotProps } = props;
|
|
210
|
-
if (reactExports.isValidElement(children)) {
|
|
211
|
-
const childrenRef = getElementRef$4(children);
|
|
212
|
-
const props2 = mergeProps$4(slotProps, children.props);
|
|
213
|
-
if (children.type !== reactExports.Fragment) {
|
|
214
|
-
props2.ref = forwardedRef ? composeRefs(forwardedRef, childrenRef) : childrenRef;
|
|
215
|
-
}
|
|
216
|
-
return reactExports.cloneElement(children, props2);
|
|
217
|
-
}
|
|
218
|
-
return reactExports.Children.count(children) > 1 ? reactExports.Children.only(null) : null;
|
|
219
|
-
});
|
|
220
|
-
SlotClone.displayName = `${ownerName}.SlotClone`;
|
|
221
|
-
return SlotClone;
|
|
222
|
-
}
|
|
223
|
-
var SLOTTABLE_IDENTIFIER$4 = Symbol("radix.slottable");
|
|
224
|
-
function isSlottable$4(child) {
|
|
225
|
-
return reactExports.isValidElement(child) && typeof child.type === "function" && "__radixId" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER$4;
|
|
226
|
-
}
|
|
227
|
-
function mergeProps$4(slotProps, childProps) {
|
|
228
|
-
const overrideProps = { ...childProps };
|
|
229
|
-
for (const propName in childProps) {
|
|
230
|
-
const slotPropValue = slotProps[propName];
|
|
231
|
-
const childPropValue = childProps[propName];
|
|
232
|
-
const isHandler = /^on[A-Z]/.test(propName);
|
|
233
|
-
if (isHandler) {
|
|
234
|
-
if (slotPropValue && childPropValue) {
|
|
235
|
-
overrideProps[propName] = (...args) => {
|
|
236
|
-
const result = childPropValue(...args);
|
|
237
|
-
slotPropValue(...args);
|
|
238
|
-
return result;
|
|
239
|
-
};
|
|
240
|
-
} else if (slotPropValue) {
|
|
241
|
-
overrideProps[propName] = slotPropValue;
|
|
242
|
-
}
|
|
243
|
-
} else if (propName === "style") {
|
|
244
|
-
overrideProps[propName] = { ...slotPropValue, ...childPropValue };
|
|
245
|
-
} else if (propName === "className") {
|
|
246
|
-
overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(" ");
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
return { ...slotProps, ...overrideProps };
|
|
250
|
-
}
|
|
251
|
-
function getElementRef$4(element) {
|
|
252
|
-
let getter = Object.getOwnPropertyDescriptor(element.props, "ref")?.get;
|
|
253
|
-
let mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
|
|
254
|
-
if (mayWarn) {
|
|
255
|
-
return element.ref;
|
|
256
|
-
}
|
|
257
|
-
getter = Object.getOwnPropertyDescriptor(element, "ref")?.get;
|
|
258
|
-
mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
|
|
259
|
-
if (mayWarn) {
|
|
260
|
-
return element.props.ref;
|
|
261
|
-
}
|
|
262
|
-
return element.props.ref || element.ref;
|
|
263
|
-
}
|
|
264
|
-
// @__NO_SIDE_EFFECTS__
|
|
265
|
-
function createSlot$3(ownerName) {
|
|
266
|
-
const SlotClone = /* @__PURE__ */ createSlotClone$3(ownerName);
|
|
267
|
-
const Slot2 = reactExports.forwardRef((props, forwardedRef) => {
|
|
268
|
-
const { children, ...slotProps } = props;
|
|
269
|
-
const childrenArray = reactExports.Children.toArray(children);
|
|
270
|
-
const slottable = childrenArray.find(isSlottable$3);
|
|
271
|
-
if (slottable) {
|
|
272
|
-
const newElement = slottable.props.children;
|
|
273
|
-
const newChildren = childrenArray.map((child) => {
|
|
274
|
-
if (child === slottable) {
|
|
275
|
-
if (reactExports.Children.count(newElement) > 1) return reactExports.Children.only(null);
|
|
276
|
-
return reactExports.isValidElement(newElement) ? newElement.props.children : null;
|
|
277
|
-
} else {
|
|
278
|
-
return child;
|
|
279
|
-
}
|
|
280
|
-
});
|
|
281
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(SlotClone, { ...slotProps, ref: forwardedRef, children: reactExports.isValidElement(newElement) ? reactExports.cloneElement(newElement, void 0, newChildren) : null });
|
|
282
|
-
}
|
|
283
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(SlotClone, { ...slotProps, ref: forwardedRef, children });
|
|
284
|
-
});
|
|
285
|
-
Slot2.displayName = `${ownerName}.Slot`;
|
|
286
|
-
return Slot2;
|
|
287
|
-
}
|
|
288
|
-
// @__NO_SIDE_EFFECTS__
|
|
289
|
-
function createSlotClone$3(ownerName) {
|
|
290
|
-
const SlotClone = reactExports.forwardRef((props, forwardedRef) => {
|
|
291
|
-
const { children, ...slotProps } = props;
|
|
292
|
-
if (reactExports.isValidElement(children)) {
|
|
293
|
-
const childrenRef = getElementRef$3(children);
|
|
294
|
-
const props2 = mergeProps$3(slotProps, children.props);
|
|
295
|
-
if (children.type !== reactExports.Fragment) {
|
|
296
|
-
props2.ref = forwardedRef ? composeRefs(forwardedRef, childrenRef) : childrenRef;
|
|
297
|
-
}
|
|
298
|
-
return reactExports.cloneElement(children, props2);
|
|
299
|
-
}
|
|
300
|
-
return reactExports.Children.count(children) > 1 ? reactExports.Children.only(null) : null;
|
|
301
|
-
});
|
|
302
|
-
SlotClone.displayName = `${ownerName}.SlotClone`;
|
|
303
|
-
return SlotClone;
|
|
304
|
-
}
|
|
305
|
-
var SLOTTABLE_IDENTIFIER$3 = Symbol("radix.slottable");
|
|
306
|
-
function isSlottable$3(child) {
|
|
307
|
-
return reactExports.isValidElement(child) && typeof child.type === "function" && "__radixId" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER$3;
|
|
308
|
-
}
|
|
309
|
-
function mergeProps$3(slotProps, childProps) {
|
|
310
|
-
const overrideProps = { ...childProps };
|
|
311
|
-
for (const propName in childProps) {
|
|
312
|
-
const slotPropValue = slotProps[propName];
|
|
313
|
-
const childPropValue = childProps[propName];
|
|
314
|
-
const isHandler = /^on[A-Z]/.test(propName);
|
|
315
|
-
if (isHandler) {
|
|
316
|
-
if (slotPropValue && childPropValue) {
|
|
317
|
-
overrideProps[propName] = (...args) => {
|
|
318
|
-
const result = childPropValue(...args);
|
|
319
|
-
slotPropValue(...args);
|
|
320
|
-
return result;
|
|
321
|
-
};
|
|
322
|
-
} else if (slotPropValue) {
|
|
323
|
-
overrideProps[propName] = slotPropValue;
|
|
324
|
-
}
|
|
325
|
-
} else if (propName === "style") {
|
|
326
|
-
overrideProps[propName] = { ...slotPropValue, ...childPropValue };
|
|
327
|
-
} else if (propName === "className") {
|
|
328
|
-
overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(" ");
|
|
329
|
-
}
|
|
330
|
-
}
|
|
331
|
-
return { ...slotProps, ...overrideProps };
|
|
332
|
-
}
|
|
333
|
-
function getElementRef$3(element) {
|
|
334
|
-
let getter = Object.getOwnPropertyDescriptor(element.props, "ref")?.get;
|
|
335
|
-
let mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
|
|
336
|
-
if (mayWarn) {
|
|
337
|
-
return element.ref;
|
|
338
|
-
}
|
|
339
|
-
getter = Object.getOwnPropertyDescriptor(element, "ref")?.get;
|
|
340
|
-
mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
|
|
341
|
-
if (mayWarn) {
|
|
342
|
-
return element.props.ref;
|
|
343
|
-
}
|
|
344
|
-
return element.props.ref || element.ref;
|
|
345
|
-
}
|
|
346
|
-
// @__NO_SIDE_EFFECTS__
|
|
347
|
-
function createSlot$2(ownerName) {
|
|
348
|
-
const SlotClone = /* @__PURE__ */ createSlotClone$2(ownerName);
|
|
349
|
-
const Slot2 = reactExports.forwardRef((props, forwardedRef) => {
|
|
350
|
-
const { children, ...slotProps } = props;
|
|
351
|
-
const childrenArray = reactExports.Children.toArray(children);
|
|
352
|
-
const slottable = childrenArray.find(isSlottable$2);
|
|
353
|
-
if (slottable) {
|
|
354
|
-
const newElement = slottable.props.children;
|
|
355
|
-
const newChildren = childrenArray.map((child) => {
|
|
356
|
-
if (child === slottable) {
|
|
357
|
-
if (reactExports.Children.count(newElement) > 1) return reactExports.Children.only(null);
|
|
358
|
-
return reactExports.isValidElement(newElement) ? newElement.props.children : null;
|
|
359
|
-
} else {
|
|
360
|
-
return child;
|
|
361
|
-
}
|
|
362
|
-
});
|
|
363
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(SlotClone, { ...slotProps, ref: forwardedRef, children: reactExports.isValidElement(newElement) ? reactExports.cloneElement(newElement, void 0, newChildren) : null });
|
|
364
|
-
}
|
|
365
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(SlotClone, { ...slotProps, ref: forwardedRef, children });
|
|
366
|
-
});
|
|
367
|
-
Slot2.displayName = `${ownerName}.Slot`;
|
|
368
|
-
return Slot2;
|
|
369
|
-
}
|
|
370
|
-
// @__NO_SIDE_EFFECTS__
|
|
371
|
-
function createSlotClone$2(ownerName) {
|
|
372
|
-
const SlotClone = reactExports.forwardRef((props, forwardedRef) => {
|
|
373
|
-
const { children, ...slotProps } = props;
|
|
374
|
-
if (reactExports.isValidElement(children)) {
|
|
375
|
-
const childrenRef = getElementRef$2(children);
|
|
376
|
-
const props2 = mergeProps$2(slotProps, children.props);
|
|
377
|
-
if (children.type !== reactExports.Fragment) {
|
|
378
|
-
props2.ref = forwardedRef ? composeRefs(forwardedRef, childrenRef) : childrenRef;
|
|
379
|
-
}
|
|
380
|
-
return reactExports.cloneElement(children, props2);
|
|
381
|
-
}
|
|
382
|
-
return reactExports.Children.count(children) > 1 ? reactExports.Children.only(null) : null;
|
|
383
|
-
});
|
|
384
|
-
SlotClone.displayName = `${ownerName}.SlotClone`;
|
|
385
|
-
return SlotClone;
|
|
386
|
-
}
|
|
387
|
-
var SLOTTABLE_IDENTIFIER$2 = Symbol("radix.slottable");
|
|
388
|
-
function isSlottable$2(child) {
|
|
389
|
-
return reactExports.isValidElement(child) && typeof child.type === "function" && "__radixId" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER$2;
|
|
390
|
-
}
|
|
391
|
-
function mergeProps$2(slotProps, childProps) {
|
|
392
|
-
const overrideProps = { ...childProps };
|
|
393
|
-
for (const propName in childProps) {
|
|
394
|
-
const slotPropValue = slotProps[propName];
|
|
395
|
-
const childPropValue = childProps[propName];
|
|
396
|
-
const isHandler = /^on[A-Z]/.test(propName);
|
|
397
|
-
if (isHandler) {
|
|
398
|
-
if (slotPropValue && childPropValue) {
|
|
399
|
-
overrideProps[propName] = (...args) => {
|
|
400
|
-
const result = childPropValue(...args);
|
|
401
|
-
slotPropValue(...args);
|
|
402
|
-
return result;
|
|
403
|
-
};
|
|
404
|
-
} else if (slotPropValue) {
|
|
405
|
-
overrideProps[propName] = slotPropValue;
|
|
406
|
-
}
|
|
407
|
-
} else if (propName === "style") {
|
|
408
|
-
overrideProps[propName] = { ...slotPropValue, ...childPropValue };
|
|
409
|
-
} else if (propName === "className") {
|
|
410
|
-
overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(" ");
|
|
411
|
-
}
|
|
412
|
-
}
|
|
413
|
-
return { ...slotProps, ...overrideProps };
|
|
414
|
-
}
|
|
415
|
-
function getElementRef$2(element) {
|
|
416
|
-
let getter = Object.getOwnPropertyDescriptor(element.props, "ref")?.get;
|
|
417
|
-
let mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
|
|
418
|
-
if (mayWarn) {
|
|
419
|
-
return element.ref;
|
|
420
|
-
}
|
|
421
|
-
getter = Object.getOwnPropertyDescriptor(element, "ref")?.get;
|
|
422
|
-
mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
|
|
423
|
-
if (mayWarn) {
|
|
424
|
-
return element.props.ref;
|
|
425
|
-
}
|
|
426
|
-
return element.props.ref || element.ref;
|
|
427
|
-
}
|
|
428
|
-
// @__NO_SIDE_EFFECTS__
|
|
429
|
-
function createSlot$1(ownerName) {
|
|
430
|
-
const SlotClone = /* @__PURE__ */ createSlotClone$1(ownerName);
|
|
431
|
-
const Slot2 = reactExports.forwardRef((props, forwardedRef) => {
|
|
432
|
-
const { children, ...slotProps } = props;
|
|
433
|
-
const childrenArray = reactExports.Children.toArray(children);
|
|
434
|
-
const slottable = childrenArray.find(isSlottable$1);
|
|
435
|
-
if (slottable) {
|
|
436
|
-
const newElement = slottable.props.children;
|
|
437
|
-
const newChildren = childrenArray.map((child) => {
|
|
438
|
-
if (child === slottable) {
|
|
439
|
-
if (reactExports.Children.count(newElement) > 1) return reactExports.Children.only(null);
|
|
440
|
-
return reactExports.isValidElement(newElement) ? newElement.props.children : null;
|
|
441
|
-
} else {
|
|
442
|
-
return child;
|
|
443
|
-
}
|
|
444
|
-
});
|
|
445
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(SlotClone, { ...slotProps, ref: forwardedRef, children: reactExports.isValidElement(newElement) ? reactExports.cloneElement(newElement, void 0, newChildren) : null });
|
|
446
|
-
}
|
|
447
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(SlotClone, { ...slotProps, ref: forwardedRef, children });
|
|
448
|
-
});
|
|
449
|
-
Slot2.displayName = `${ownerName}.Slot`;
|
|
450
|
-
return Slot2;
|
|
451
|
-
}
|
|
452
|
-
// @__NO_SIDE_EFFECTS__
|
|
453
|
-
function createSlotClone$1(ownerName) {
|
|
454
|
-
const SlotClone = reactExports.forwardRef((props, forwardedRef) => {
|
|
455
|
-
const { children, ...slotProps } = props;
|
|
456
|
-
if (reactExports.isValidElement(children)) {
|
|
457
|
-
const childrenRef = getElementRef$1(children);
|
|
458
|
-
const props2 = mergeProps$1(slotProps, children.props);
|
|
459
|
-
if (children.type !== reactExports.Fragment) {
|
|
460
|
-
props2.ref = forwardedRef ? composeRefs(forwardedRef, childrenRef) : childrenRef;
|
|
461
|
-
}
|
|
462
|
-
return reactExports.cloneElement(children, props2);
|
|
463
|
-
}
|
|
464
|
-
return reactExports.Children.count(children) > 1 ? reactExports.Children.only(null) : null;
|
|
465
|
-
});
|
|
466
|
-
SlotClone.displayName = `${ownerName}.SlotClone`;
|
|
467
|
-
return SlotClone;
|
|
468
|
-
}
|
|
469
|
-
var SLOTTABLE_IDENTIFIER$1 = Symbol("radix.slottable");
|
|
470
|
-
function isSlottable$1(child) {
|
|
471
|
-
return reactExports.isValidElement(child) && typeof child.type === "function" && "__radixId" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER$1;
|
|
472
|
-
}
|
|
473
|
-
function mergeProps$1(slotProps, childProps) {
|
|
474
|
-
const overrideProps = { ...childProps };
|
|
475
|
-
for (const propName in childProps) {
|
|
476
|
-
const slotPropValue = slotProps[propName];
|
|
477
|
-
const childPropValue = childProps[propName];
|
|
478
|
-
const isHandler = /^on[A-Z]/.test(propName);
|
|
479
|
-
if (isHandler) {
|
|
480
|
-
if (slotPropValue && childPropValue) {
|
|
481
|
-
overrideProps[propName] = (...args) => {
|
|
482
|
-
const result = childPropValue(...args);
|
|
483
|
-
slotPropValue(...args);
|
|
484
|
-
return result;
|
|
485
|
-
};
|
|
486
|
-
} else if (slotPropValue) {
|
|
487
|
-
overrideProps[propName] = slotPropValue;
|
|
488
|
-
}
|
|
489
|
-
} else if (propName === "style") {
|
|
490
|
-
overrideProps[propName] = { ...slotPropValue, ...childPropValue };
|
|
491
|
-
} else if (propName === "className") {
|
|
492
|
-
overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(" ");
|
|
493
|
-
}
|
|
494
|
-
}
|
|
495
|
-
return { ...slotProps, ...overrideProps };
|
|
496
|
-
}
|
|
497
|
-
function getElementRef$1(element) {
|
|
498
|
-
let getter = Object.getOwnPropertyDescriptor(element.props, "ref")?.get;
|
|
499
|
-
let mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
|
|
500
|
-
if (mayWarn) {
|
|
501
|
-
return element.ref;
|
|
502
|
-
}
|
|
503
|
-
getter = Object.getOwnPropertyDescriptor(element, "ref")?.get;
|
|
504
|
-
mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
|
|
505
|
-
if (mayWarn) {
|
|
506
|
-
return element.props.ref;
|
|
507
|
-
}
|
|
508
|
-
return element.props.ref || element.ref;
|
|
509
|
-
}
|
|
510
|
-
// @__NO_SIDE_EFFECTS__
|
|
511
|
-
function createSlot(ownerName) {
|
|
512
|
-
const SlotClone = /* @__PURE__ */ createSlotClone(ownerName);
|
|
513
|
-
const Slot2 = reactExports.forwardRef((props, forwardedRef) => {
|
|
514
|
-
const { children, ...slotProps } = props;
|
|
515
|
-
const childrenArray = reactExports.Children.toArray(children);
|
|
516
|
-
const slottable = childrenArray.find(isSlottable);
|
|
517
|
-
if (slottable) {
|
|
518
|
-
const newElement = slottable.props.children;
|
|
519
|
-
const newChildren = childrenArray.map((child) => {
|
|
520
|
-
if (child === slottable) {
|
|
521
|
-
if (reactExports.Children.count(newElement) > 1) return reactExports.Children.only(null);
|
|
522
|
-
return reactExports.isValidElement(newElement) ? newElement.props.children : null;
|
|
523
|
-
} else {
|
|
524
|
-
return child;
|
|
525
|
-
}
|
|
526
|
-
});
|
|
527
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(SlotClone, { ...slotProps, ref: forwardedRef, children: reactExports.isValidElement(newElement) ? reactExports.cloneElement(newElement, void 0, newChildren) : null });
|
|
528
|
-
}
|
|
529
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(SlotClone, { ...slotProps, ref: forwardedRef, children });
|
|
530
|
-
});
|
|
531
|
-
Slot2.displayName = `${ownerName}.Slot`;
|
|
532
|
-
return Slot2;
|
|
533
|
-
}
|
|
534
|
-
// @__NO_SIDE_EFFECTS__
|
|
535
|
-
function createSlotClone(ownerName) {
|
|
536
|
-
const SlotClone = reactExports.forwardRef((props, forwardedRef) => {
|
|
537
|
-
const { children, ...slotProps } = props;
|
|
538
128
|
if (reactExports.isValidElement(children)) {
|
|
539
129
|
const childrenRef = getElementRef(children);
|
|
540
130
|
const props2 = mergeProps(slotProps, children.props);
|
|
@@ -548,7 +138,7 @@ function createSlotClone(ownerName) {
|
|
|
548
138
|
SlotClone.displayName = `${ownerName}.SlotClone`;
|
|
549
139
|
return SlotClone;
|
|
550
140
|
}
|
|
551
|
-
var SLOTTABLE_IDENTIFIER = Symbol("radix.slottable");
|
|
141
|
+
var SLOTTABLE_IDENTIFIER = /* @__PURE__ */ Symbol("radix.slottable");
|
|
552
142
|
function isSlottable(child) {
|
|
553
143
|
return reactExports.isValidElement(child) && typeof child.type === "function" && "__radixId" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER;
|
|
554
144
|
}
|
|
@@ -591,11 +181,6 @@ function getElementRef(element) {
|
|
|
591
181
|
}
|
|
592
182
|
export {
|
|
593
183
|
Slot as S,
|
|
594
|
-
createSlot
|
|
595
|
-
createSlot$
|
|
596
|
-
createSlot$6 as c,
|
|
597
|
-
createSlot$3 as d,
|
|
598
|
-
createSlot$2 as e,
|
|
599
|
-
createSlot$1 as f,
|
|
600
|
-
createSlot as g
|
|
184
|
+
createSlot as a,
|
|
185
|
+
createSlot$1 as c
|
|
601
186
|
};
|
|
@@ -1,5 +1,32 @@
|
|
|
1
1
|
import { r as reactExports, j as jsxRuntimeExports } from "../react.mjs";
|
|
2
|
-
import { P as Primitive } from "./react-primitive.mjs";
|
|
2
|
+
import { P as Primitive, a as Primitive$1 } from "./react-primitive.mjs";
|
|
3
|
+
var VISUALLY_HIDDEN_STYLES$1 = Object.freeze({
|
|
4
|
+
// See: https://github.com/twbs/bootstrap/blob/main/scss/mixins/_visually-hidden.scss
|
|
5
|
+
position: "absolute",
|
|
6
|
+
border: 0,
|
|
7
|
+
width: 1,
|
|
8
|
+
height: 1,
|
|
9
|
+
padding: 0,
|
|
10
|
+
margin: -1,
|
|
11
|
+
overflow: "hidden",
|
|
12
|
+
clip: "rect(0, 0, 0, 0)",
|
|
13
|
+
whiteSpace: "nowrap",
|
|
14
|
+
wordWrap: "normal"
|
|
15
|
+
});
|
|
16
|
+
var NAME$1 = "VisuallyHidden";
|
|
17
|
+
var VisuallyHidden$1 = reactExports.forwardRef(
|
|
18
|
+
(props, forwardedRef) => {
|
|
19
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
20
|
+
Primitive.span,
|
|
21
|
+
{
|
|
22
|
+
...props,
|
|
23
|
+
ref: forwardedRef,
|
|
24
|
+
style: { ...VISUALLY_HIDDEN_STYLES$1, ...props.style }
|
|
25
|
+
}
|
|
26
|
+
);
|
|
27
|
+
}
|
|
28
|
+
);
|
|
29
|
+
VisuallyHidden$1.displayName = NAME$1;
|
|
3
30
|
var VISUALLY_HIDDEN_STYLES = Object.freeze({
|
|
4
31
|
// See: https://github.com/twbs/bootstrap/blob/main/scss/mixins/_visually-hidden.scss
|
|
5
32
|
position: "absolute",
|
|
@@ -17,7 +44,7 @@ var NAME = "VisuallyHidden";
|
|
|
17
44
|
var VisuallyHidden = reactExports.forwardRef(
|
|
18
45
|
(props, forwardedRef) => {
|
|
19
46
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
20
|
-
Primitive.span,
|
|
47
|
+
Primitive$1.span,
|
|
21
48
|
{
|
|
22
49
|
...props,
|
|
23
50
|
ref: forwardedRef,
|
|
@@ -28,6 +55,6 @@ var VisuallyHidden = reactExports.forwardRef(
|
|
|
28
55
|
);
|
|
29
56
|
VisuallyHidden.displayName = NAME;
|
|
30
57
|
export {
|
|
31
|
-
VISUALLY_HIDDEN_STYLES as V,
|
|
58
|
+
VISUALLY_HIDDEN_STYLES$1 as V,
|
|
32
59
|
VisuallyHidden as a
|
|
33
60
|
};
|