d1s 0.2.11 → 0.2.13
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/.next/.next/BUILD_ID +1 -1
- package/dist/.next/.next/app-build-manifest.json +28 -28
- package/dist/.next/.next/app-path-routes-manifest.json +1 -1
- package/dist/.next/.next/build-manifest.json +3 -3
- package/dist/.next/.next/cache/.rscinfo +1 -1
- package/dist/.next/.next/cache/.tsbuildinfo +1 -1
- package/dist/.next/.next/cache/webpack/client-production/0.pack +0 -0
- package/dist/.next/.next/cache/webpack/client-production/1.pack +0 -0
- package/dist/.next/.next/cache/webpack/client-production/10.pack +0 -0
- package/dist/.next/.next/cache/webpack/client-production/11.pack +0 -0
- package/dist/.next/.next/cache/webpack/client-production/12.pack +0 -0
- package/dist/.next/.next/cache/webpack/client-production/2.pack +0 -0
- package/dist/.next/.next/cache/webpack/client-production/3.pack +0 -0
- package/dist/.next/.next/cache/webpack/client-production/4.pack +0 -0
- package/dist/.next/.next/cache/webpack/client-production/5.pack +0 -0
- package/dist/.next/.next/cache/webpack/client-production/6.pack +0 -0
- package/dist/.next/.next/cache/webpack/client-production/7.pack +0 -0
- package/dist/.next/.next/cache/webpack/client-production/8.pack +0 -0
- package/dist/.next/.next/cache/webpack/client-production/9.pack +0 -0
- package/dist/.next/.next/cache/webpack/client-production/index.pack +0 -0
- package/dist/.next/.next/cache/webpack/client-production/index.pack.old +0 -0
- package/dist/.next/.next/cache/webpack/edge-server-production/index.pack +0 -0
- package/dist/.next/.next/cache/webpack/server-production/0.pack +0 -0
- package/dist/.next/.next/cache/webpack/server-production/1.pack +0 -0
- package/dist/.next/.next/cache/webpack/server-production/2.pack +0 -0
- package/dist/.next/.next/cache/webpack/server-production/3.pack +0 -0
- package/dist/.next/.next/cache/webpack/server-production/index.pack +0 -0
- package/dist/.next/.next/cache/webpack/server-production/index.pack.old +0 -0
- package/dist/.next/.next/next-minimal-server.js.nft.json +1 -1
- package/dist/.next/.next/next-server.js.nft.json +1 -1
- package/dist/.next/.next/prerender-manifest.json +1 -1
- package/dist/.next/.next/required-server-files.json +1 -1
- package/dist/.next/.next/server/app/_not-found/page.js +1 -1
- package/dist/.next/.next/server/app/_not-found/page.js.nft.json +1 -1
- package/dist/.next/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/dist/.next/.next/server/app/_not-found.html +1 -1
- package/dist/.next/.next/server/app/_not-found.rsc +4 -4
- package/dist/.next/.next/server/app/api/cloudflare/route.js +1 -1
- package/dist/.next/.next/server/app/api/cloudflare/route_client-reference-manifest.js +1 -1
- package/dist/.next/.next/server/app/api/databases/route.js +1 -1
- package/dist/.next/.next/server/app/api/databases/route_client-reference-manifest.js +1 -1
- package/dist/.next/.next/server/app/api/migrations/sync/route.js +5 -5
- package/dist/.next/.next/server/app/api/migrations/sync/route_client-reference-manifest.js +1 -1
- package/dist/.next/.next/server/app/api/migrations/sync-files/route.js +3 -3
- package/dist/.next/.next/server/app/api/migrations/sync-files/route_client-reference-manifest.js +1 -1
- package/dist/.next/.next/server/app/api/pull-data/confirm/route.js +1 -1
- package/dist/.next/.next/server/app/api/pull-data/confirm/route_client-reference-manifest.js +1 -1
- package/dist/.next/.next/server/app/api/pull-remote/confirm/route.js +2 -2
- package/dist/.next/.next/server/app/api/pull-remote/confirm/route_client-reference-manifest.js +1 -1
- package/dist/.next/.next/server/app/api/pull-remote/preview/route.js +4 -4
- package/dist/.next/.next/server/app/api/pull-remote/preview/route_client-reference-manifest.js +1 -1
- package/dist/.next/.next/server/app/api/push-remote/confirm/route.js +5 -5
- package/dist/.next/.next/server/app/api/push-remote/confirm/route_client-reference-manifest.js +1 -1
- package/dist/.next/.next/server/app/api/push-remote/preview/route.js +4 -4
- package/dist/.next/.next/server/app/api/push-remote/preview/route_client-reference-manifest.js +1 -1
- package/dist/.next/.next/server/app/api/query/route.js +3 -3
- package/dist/.next/.next/server/app/api/query/route_client-reference-manifest.js +1 -1
- package/dist/.next/.next/server/app/api/tables/[name]/route.js +5 -5
- package/dist/.next/.next/server/app/api/tables/[name]/route_client-reference-manifest.js +1 -1
- package/dist/.next/.next/server/app/api/tables/route.js +2 -2
- package/dist/.next/.next/server/app/api/tables/route_client-reference-manifest.js +1 -1
- package/dist/.next/.next/server/app/api/update/route.js +1 -1
- package/dist/.next/.next/server/app/api/update/route_client-reference-manifest.js +1 -1
- package/dist/.next/.next/server/app/index.html +2 -2
- package/dist/.next/.next/server/app/index.rsc +5 -5
- package/dist/.next/.next/server/app/page.js +7 -7
- package/dist/.next/.next/server/app/page.js.nft.json +1 -1
- package/dist/.next/.next/server/app/page_client-reference-manifest.js +1 -1
- package/dist/.next/.next/server/app-paths-manifest.json +1 -1
- package/dist/.next/.next/server/chunks/226.js +12 -12
- package/dist/.next/.next/server/chunks/391.js +1 -1
- package/dist/.next/.next/server/chunks/572.js +1 -0
- package/dist/.next/.next/server/chunks/992.js +3 -3
- package/dist/.next/.next/server/middleware-build-manifest.js +1 -1
- package/dist/.next/.next/server/next-font-manifest.js +1 -1
- package/dist/.next/.next/server/next-font-manifest.json +1 -1
- package/dist/.next/.next/server/pages/404.html +1 -1
- package/dist/.next/.next/server/pages/500.html +1 -1
- package/dist/.next/.next/server/server-reference-manifest.json +1 -1
- package/dist/.next/.next/static/chunks/{576-c4daf274bb6469a1.js → 576-18a2209e1ed26aad.js} +1 -1
- package/dist/.next/.next/static/chunks/{92-c4466e0f1ca8a3a8.js → 92-5f7522943fcb72a8.js} +1 -1
- package/dist/.next/.next/static/chunks/app/{layout-be6ee67cf0c92654.js → layout-40ec07d04681ba81.js} +1 -1
- package/dist/.next/.next/static/chunks/app/page-f05cd0fc436bf9bc.js +1 -0
- package/dist/.next/.next/static/chunks/app/page-f2bc307c0d8acdaa.js +1 -0
- package/dist/.next/.next/static/chunks/{main-app-fa35024de9bd9284.js → main-app-4506e88db72db4b7.js} +1 -1
- package/dist/.next/.next/static/css/{9f6c25c5400f83d3.css → 7c16f57d325d0d7d.css} +1 -1
- package/dist/.next/.next/static/ejYPqJ2kVicVp5EFWOZIC/_buildManifest.js +1 -0
- package/dist/.next/.next/static/ejYPqJ2kVicVp5EFWOZIC/_ssgManifest.js +1 -0
- package/dist/.next/.next/static/gABGrAoO8IPArDo_Ns_7g/_buildManifest.js +1 -0
- package/dist/.next/.next/static/gABGrAoO8IPArDo_Ns_7g/_ssgManifest.js +1 -0
- package/dist/.next/.next/static/gh-QfIUVo4FTTduYCVKT6/_buildManifest.js +1 -0
- package/dist/.next/.next/static/gh-QfIUVo4FTTduYCVKT6/_ssgManifest.js +1 -0
- package/dist/.next/.next/static/media/8d697b304b401681-s.woff2 +0 -0
- package/dist/.next/.next/static/media/9610d9e46709d722-s.woff2 +0 -0
- package/dist/.next/.next/static/thaCy2qVeNqYYhdayr13C/_buildManifest.js +1 -0
- package/dist/.next/.next/static/thaCy2qVeNqYYhdayr13C/_ssgManifest.js +1 -0
- package/dist/.next/.next/static/ybCx6L6gHqtODbKmlhU-d/_buildManifest.js +1 -0
- package/dist/.next/.next/static/ybCx6L6gHqtODbKmlhU-d/_ssgManifest.js +1 -0
- package/dist/.next/.next/trace +3 -3
- package/dist/.next/.next/types/app/api/cloudflare/route.ts +1 -1
- package/dist/.next/.next/types/app/api/databases/route.ts +1 -1
- package/dist/.next/.next/types/app/api/migrations/sync/route.ts +1 -1
- package/dist/.next/.next/types/app/api/migrations/sync-files/route.ts +1 -1
- package/dist/.next/.next/types/app/api/pull-data/confirm/route.ts +1 -1
- package/dist/.next/.next/types/app/api/pull-remote/confirm/route.ts +1 -1
- package/dist/.next/.next/types/app/api/pull-remote/preview/route.ts +1 -1
- package/dist/.next/.next/types/app/api/push-remote/confirm/route.ts +1 -1
- package/dist/.next/.next/types/app/api/push-remote/preview/route.ts +1 -1
- package/dist/.next/.next/types/app/api/query/route.ts +1 -1
- package/dist/.next/.next/types/app/api/tables/[name]/route.ts +1 -1
- package/dist/.next/.next/types/app/api/tables/route.ts +1 -1
- package/dist/.next/.next/types/app/api/update/route.ts +1 -1
- package/dist/.next/.next/types/app/page.ts +1 -1
- package/dist/.next/BUILD_ID +1 -1
- package/dist/.next/app-build-manifest.json +28 -28
- package/dist/.next/app-path-routes-manifest.json +1 -1
- package/dist/.next/build-manifest.json +3 -3
- package/dist/.next/cache/.rscinfo +1 -1
- package/dist/.next/cache/.tsbuildinfo +1 -1
- package/dist/.next/cache/webpack/client-production/0.pack +0 -0
- package/dist/.next/cache/webpack/client-production/1.pack +0 -0
- package/dist/.next/cache/webpack/client-production/2.pack +0 -0
- package/dist/.next/cache/webpack/client-production/index.pack +0 -0
- package/dist/.next/cache/webpack/client-production/index.pack.old +0 -0
- package/dist/.next/cache/webpack/edge-server-production/index.pack +0 -0
- package/dist/.next/cache/webpack/server-production/0.pack +0 -0
- package/dist/.next/cache/webpack/server-production/index.pack +0 -0
- package/dist/.next/next-minimal-server.js.nft.json +1 -1
- package/dist/.next/next-server.js.nft.json +1 -1
- package/dist/.next/prerender-manifest.json +1 -1
- package/dist/.next/required-server-files.json +1 -1
- package/dist/.next/server/app/_not-found/page.js +1 -1
- package/dist/.next/server/app/_not-found/page.js.nft.json +1 -1
- package/dist/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/dist/.next/server/app/_not-found.html +1 -1
- package/dist/.next/server/app/_not-found.rsc +4 -4
- package/dist/.next/server/app/api/cloudflare/route.js +1 -1
- package/dist/.next/server/app/api/cloudflare/route_client-reference-manifest.js +1 -1
- package/dist/.next/server/app/api/databases/route.js +1 -1
- package/dist/.next/server/app/api/databases/route_client-reference-manifest.js +1 -1
- package/dist/.next/server/app/api/migrations/sync/route.js +5 -5
- package/dist/.next/server/app/api/migrations/sync/route_client-reference-manifest.js +1 -1
- package/dist/.next/server/app/api/migrations/sync-files/route.js +3 -3
- package/dist/.next/server/app/api/migrations/sync-files/route_client-reference-manifest.js +1 -1
- package/dist/.next/server/app/api/pull-data/confirm/route.js +1 -1
- package/dist/.next/server/app/api/pull-data/confirm/route_client-reference-manifest.js +1 -1
- package/dist/.next/server/app/api/pull-remote/confirm/route.js +2 -2
- package/dist/.next/server/app/api/pull-remote/confirm/route_client-reference-manifest.js +1 -1
- package/dist/.next/server/app/api/pull-remote/preview/route.js +4 -4
- package/dist/.next/server/app/api/pull-remote/preview/route_client-reference-manifest.js +1 -1
- package/dist/.next/server/app/api/push-remote/confirm/route.js +5 -5
- package/dist/.next/server/app/api/push-remote/confirm/route_client-reference-manifest.js +1 -1
- package/dist/.next/server/app/api/push-remote/preview/route.js +4 -4
- package/dist/.next/server/app/api/push-remote/preview/route_client-reference-manifest.js +1 -1
- package/dist/.next/server/app/api/query/route.js +3 -3
- package/dist/.next/server/app/api/query/route_client-reference-manifest.js +1 -1
- package/dist/.next/server/app/api/tables/[name]/route.js +5 -5
- package/dist/.next/server/app/api/tables/[name]/route_client-reference-manifest.js +1 -1
- package/dist/.next/server/app/api/tables/route.js +2 -2
- package/dist/.next/server/app/api/tables/route_client-reference-manifest.js +1 -1
- package/dist/.next/server/app/api/update/route.js +1 -1
- package/dist/.next/server/app/api/update/route_client-reference-manifest.js +1 -1
- package/dist/.next/server/app/index.html +2 -2
- package/dist/.next/server/app/index.rsc +5 -5
- package/dist/.next/server/app/page.js +7 -7
- package/dist/.next/server/app/page.js.nft.json +1 -1
- package/dist/.next/server/app/page_client-reference-manifest.js +1 -1
- package/dist/.next/server/app-paths-manifest.json +1 -1
- package/dist/.next/server/chunks/226.js +12 -12
- package/dist/.next/server/chunks/391.js +1 -1
- package/dist/.next/server/chunks/572.js +1 -0
- package/dist/.next/server/chunks/992.js +3 -3
- package/dist/.next/server/middleware-build-manifest.js +1 -1
- package/dist/.next/server/next-font-manifest.js +1 -1
- package/dist/.next/server/next-font-manifest.json +1 -1
- package/dist/.next/server/pages/404.html +1 -1
- package/dist/.next/server/pages/500.html +1 -1
- package/dist/.next/server/server-reference-manifest.json +1 -1
- package/dist/.next/static/IX-QLbm7scYnyqWeeimal/_buildManifest.js +1 -0
- package/dist/.next/static/IX-QLbm7scYnyqWeeimal/_ssgManifest.js +1 -0
- package/dist/.next/static/chunks/{576-c4daf274bb6469a1.js → 576-18a2209e1ed26aad.js} +1 -1
- package/dist/.next/static/chunks/{92-c4466e0f1ca8a3a8.js → 92-5f7522943fcb72a8.js} +1 -1
- package/dist/.next/static/chunks/app/{layout-be6ee67cf0c92654.js → layout-40ec07d04681ba81.js} +1 -1
- package/dist/.next/static/chunks/app/page-f05cd0fc436bf9bc.js +1 -0
- package/dist/.next/static/chunks/{main-app-fa35024de9bd9284.js → main-app-4506e88db72db4b7.js} +1 -1
- package/dist/.next/static/css/{9f6c25c5400f83d3.css → 7c16f57d325d0d7d.css} +1 -1
- package/dist/.next/static/media/8d697b304b401681-s.woff2 +0 -0
- package/dist/.next/static/media/9610d9e46709d722-s.woff2 +0 -0
- package/dist/.next/trace +3 -14
- package/dist/.next/types/app/api/cloudflare/route.ts +1 -1
- package/dist/.next/types/app/api/databases/route.ts +1 -1
- package/dist/.next/types/app/api/migrations/sync/route.ts +1 -1
- package/dist/.next/types/app/api/migrations/sync-files/route.ts +1 -1
- package/dist/.next/types/app/api/pull-data/confirm/route.ts +1 -1
- package/dist/.next/types/app/api/pull-remote/confirm/route.ts +1 -1
- package/dist/.next/types/app/api/pull-remote/preview/route.ts +1 -1
- package/dist/.next/types/app/api/push-remote/confirm/route.ts +1 -1
- package/dist/.next/types/app/api/push-remote/preview/route.ts +1 -1
- package/dist/.next/types/app/api/query/route.ts +1 -1
- package/dist/.next/types/app/api/tables/[name]/route.ts +1 -1
- package/dist/.next/types/app/api/tables/route.ts +1 -1
- package/dist/.next/types/app/api/update/route.ts +1 -1
- package/dist/.next/types/app/page.ts +1 -1
- package/dist/app/api/tables/[name]/route.js +22 -10
- package/dist/app/globals.css +39 -0
- package/dist/d1-studio.js +2 -2
- package/dist/lib/data-type-handlers.js +426 -0
- package/dist/lib/sql-operations.js +32 -8
- package/dist/lib/sql-sanitizer.js +233 -0
- package/package.json +3 -9
- package/dist/.next/.next/server/chunks/90.js +0 -1
- package/dist/.next/.next/static/chunks/app/page-36ed30b2266617f3.js +0 -1
- package/dist/.next/server/chunks/90.js +0 -1
- package/dist/.next/static/chunks/app/page-36ed30b2266617f3.js +0 -1
- package/dist/app/app/api/cloudflare/route.js +0 -150
- package/dist/app/app/api/databases/route.js +0 -71
- package/dist/app/app/api/migrations/sync/route.js +0 -174
- package/dist/app/app/api/migrations/sync-files/route.js +0 -172
- package/dist/app/app/api/pull-data/confirm/route.js +0 -230
- package/dist/app/app/api/pull-remote/confirm/route.js +0 -278
- package/dist/app/app/api/pull-remote/preview/route.js +0 -144
- package/dist/app/app/api/push-remote/confirm/route.js +0 -196
- package/dist/app/app/api/push-remote/preview/route.js +0 -179
- package/dist/app/app/api/query/route.js +0 -168
- package/dist/app/app/api/tables/[name]/route.js +0 -174
- package/dist/app/app/api/tables/route.js +0 -178
- package/dist/app/app/api/update/route.js +0 -45
- package/dist/app/app/globals.css +0 -93
- package/dist/app/app/layout.jsx +0 -35
- package/dist/app/app/page.jsx +0 -34
- package/next.config.mjs +0 -18
- package/postcss.config.mjs +0 -8
- package/scripts/studio.js +0 -199
- package/scripts/test.js +0 -366
- package/src/app/api/cloudflare/route.js +0 -150
- package/src/app/api/databases/route.js +0 -71
- package/src/app/api/migrations/sync/route.js +0 -174
- package/src/app/api/migrations/sync-files/route.js +0 -172
- package/src/app/api/pull-data/confirm/route.js +0 -230
- package/src/app/api/pull-remote/confirm/route.js +0 -278
- package/src/app/api/pull-remote/preview/route.js +0 -144
- package/src/app/api/push-remote/confirm/route.js +0 -196
- package/src/app/api/push-remote/preview/route.js +0 -179
- package/src/app/api/query/route.js +0 -168
- package/src/app/api/tables/[name]/route.js +0 -174
- package/src/app/api/tables/route.js +0 -178
- package/src/app/api/update/route.js +0 -45
- package/src/app/globals.css +0 -93
- package/src/app/layout.jsx +0 -35
- package/src/app/page.jsx +0 -34
- package/src/components/cloudflare-credentials-modal.jsx +0 -94
- package/src/components/column-selector.jsx +0 -133
- package/src/components/column-sorting.jsx +0 -65
- package/src/components/delete-records-dialog.jsx +0 -64
- package/src/components/download-button.jsx +0 -205
- package/src/components/edit-error-alert.jsx +0 -30
- package/src/components/editable-cell.jsx +0 -163
- package/src/components/editable-row.jsx +0 -169
- package/src/components/environment-handler.jsx +0 -332
- package/src/components/environment-select.jsx +0 -62
- package/src/components/pull-preview-toast.jsx +0 -215
- package/src/components/push-error-alert.jsx +0 -72
- package/src/components/push-preview-toast.jsx +0 -183
- package/src/components/query-results.jsx +0 -112
- package/src/components/refresh-button.jsx +0 -61
- package/src/components/resize-columns.jsx +0 -101
- package/src/components/sidebar.jsx +0 -254
- package/src/components/sql-editor.jsx +0 -411
- package/src/components/sql-error-display.jsx +0 -167
- package/src/components/sync-migrations-button.jsx +0 -87
- package/src/components/table-error-dialog.jsx +0 -65
- package/src/components/table-toolbar.jsx +0 -285
- package/src/components/table-view.jsx +0 -843
- package/src/components/ui/alert.jsx +0 -47
- package/src/components/ui/button.jsx +0 -48
- package/src/components/ui/card.jsx +0 -50
- package/src/components/ui/checkbox.jsx +0 -24
- package/src/components/ui/collapsible.jsx +0 -11
- package/src/components/ui/dialog.jsx +0 -96
- package/src/components/ui/dropdown-menu.jsx +0 -158
- package/src/components/ui/input.jsx +0 -19
- package/src/components/ui/scroll-area.jsx +0 -40
- package/src/components/ui/select.jsx +0 -121
- package/src/components/ui/separator.jsx +0 -25
- package/src/components/ui/sheet.jsx +0 -109
- package/src/components/ui/sidebar.jsx +0 -620
- package/src/components/ui/skeleton.jsx +0 -14
- package/src/components/ui/table.jsx +0 -86
- package/src/components/ui/tabs.jsx +0 -43
- package/src/components/ui/toast.jsx +0 -86
- package/src/components/ui/toaster.jsx +0 -35
- package/src/components/ui/tooltip.jsx +0 -28
- package/src/components/update-banner.jsx +0 -93
- package/src/context/database-context.js +0 -510
- package/src/hooks/use-mobile.jsx +0 -19
- package/src/hooks/use-sql-error.ts +0 -23
- package/src/hooks/use-toast.js +0 -155
- package/src/lib/database-queue.js +0 -37
- package/src/lib/error.js +0 -20
- package/src/lib/find-wrangler-config.js +0 -74
- package/src/lib/license.js +0 -99
- package/src/lib/logger.js +0 -58
- package/src/lib/migrations.js +0 -415
- package/src/lib/parse-sql-error.js +0 -200
- package/src/lib/request-deduplication.js +0 -24
- package/src/lib/schema-operations.js +0 -106
- package/src/lib/sql-error-types.js +0 -14
- package/src/lib/sql-operations.js +0 -647
- package/src/lib/utils.js +0 -6
- package/src/lib/version-utils.js +0 -34
- /package/dist/.next/.next/static/{OUHnbB-64afrrZQL0Srn5 → FEsQ9jwPUQv5A3fwg6Opl}/_buildManifest.js +0 -0
- /package/dist/.next/.next/static/{OUHnbB-64afrrZQL0Srn5 → FEsQ9jwPUQv5A3fwg6Opl}/_ssgManifest.js +0 -0
- /package/dist/.next/.next/static/{ZBTCAyp1kO5FdEHMU-Dw2 → Y9mYu4WBghepP5oT_3OdR}/_buildManifest.js +0 -0
- /package/dist/.next/.next/static/{ZBTCAyp1kO5FdEHMU-Dw2 → Y9mYu4WBghepP5oT_3OdR}/_ssgManifest.js +0 -0
- /package/dist/.next/.next/static/{bHYW7fgIBDF8-Q33_WPoE → ae3gNmoSGm-R5LJC4UagI}/_buildManifest.js +0 -0
- /package/dist/.next/.next/static/{bHYW7fgIBDF8-Q33_WPoE → ae3gNmoSGm-R5LJC4UagI}/_ssgManifest.js +0 -0
- /package/dist/.next/{static/ZBTCAyp1kO5FdEHMU-Dw2 → .next/static/bKfUJeuvAQlBmR3TjrfkH}/_buildManifest.js +0 -0
- /package/dist/.next/{static/ZBTCAyp1kO5FdEHMU-Dw2 → .next/static/bKfUJeuvAQlBmR3TjrfkH}/_ssgManifest.js +0 -0
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import * as React from "react"
|
|
2
|
-
import { cva } from "class-variance-authority";
|
|
3
|
-
|
|
4
|
-
import { cn } from "@/lib/utils"
|
|
5
|
-
|
|
6
|
-
const alertVariants = cva(
|
|
7
|
-
"relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",
|
|
8
|
-
{
|
|
9
|
-
variants: {
|
|
10
|
-
variant: {
|
|
11
|
-
default: "bg-background text-foreground",
|
|
12
|
-
destructive:
|
|
13
|
-
"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive",
|
|
14
|
-
},
|
|
15
|
-
},
|
|
16
|
-
defaultVariants: {
|
|
17
|
-
variant: "default",
|
|
18
|
-
},
|
|
19
|
-
}
|
|
20
|
-
)
|
|
21
|
-
|
|
22
|
-
const Alert = React.forwardRef(({ className, variant, ...props }, ref) => (
|
|
23
|
-
<div
|
|
24
|
-
ref={ref}
|
|
25
|
-
role="alert"
|
|
26
|
-
className={cn(alertVariants({ variant }), className)}
|
|
27
|
-
{...props} />
|
|
28
|
-
))
|
|
29
|
-
Alert.displayName = "Alert"
|
|
30
|
-
|
|
31
|
-
const AlertTitle = React.forwardRef(({ className, ...props }, ref) => (
|
|
32
|
-
<h5
|
|
33
|
-
ref={ref}
|
|
34
|
-
className={cn("mb-1 font-medium leading-none tracking-tight", className)}
|
|
35
|
-
{...props} />
|
|
36
|
-
))
|
|
37
|
-
AlertTitle.displayName = "AlertTitle"
|
|
38
|
-
|
|
39
|
-
const AlertDescription = React.forwardRef(({ className, ...props }, ref) => (
|
|
40
|
-
<div
|
|
41
|
-
ref={ref}
|
|
42
|
-
className={cn("text-sm [&_p]:leading-relaxed", className)}
|
|
43
|
-
{...props} />
|
|
44
|
-
))
|
|
45
|
-
AlertDescription.displayName = "AlertDescription"
|
|
46
|
-
|
|
47
|
-
export { Alert, AlertTitle, AlertDescription }
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import * as React from "react"
|
|
2
|
-
import { Slot } from "@radix-ui/react-slot"
|
|
3
|
-
import { cva } from "class-variance-authority";
|
|
4
|
-
|
|
5
|
-
import { cn } from "@/lib/utils"
|
|
6
|
-
|
|
7
|
-
const buttonVariants = cva(
|
|
8
|
-
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
|
9
|
-
{
|
|
10
|
-
variants: {
|
|
11
|
-
variant: {
|
|
12
|
-
default:
|
|
13
|
-
"bg-primary text-primary-foreground shadow hover:bg-primary/90",
|
|
14
|
-
destructive:
|
|
15
|
-
"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",
|
|
16
|
-
outline:
|
|
17
|
-
"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",
|
|
18
|
-
secondary:
|
|
19
|
-
"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",
|
|
20
|
-
ghost: "hover:bg-accent hover:text-accent-foreground",
|
|
21
|
-
link: "text-primary underline-offset-4 hover:underline",
|
|
22
|
-
},
|
|
23
|
-
size: {
|
|
24
|
-
default: "h-9 px-4 py-2",
|
|
25
|
-
sm: "h-8 rounded-md px-3 text-xs",
|
|
26
|
-
lg: "h-10 rounded-md px-8",
|
|
27
|
-
icon: "h-9 w-9",
|
|
28
|
-
},
|
|
29
|
-
},
|
|
30
|
-
defaultVariants: {
|
|
31
|
-
variant: "default",
|
|
32
|
-
size: "default",
|
|
33
|
-
},
|
|
34
|
-
}
|
|
35
|
-
)
|
|
36
|
-
|
|
37
|
-
const Button = React.forwardRef(({ className, variant, size, asChild = false, ...props }, ref) => {
|
|
38
|
-
const Comp = asChild ? Slot : "button"
|
|
39
|
-
return (
|
|
40
|
-
(<Comp
|
|
41
|
-
className={cn(buttonVariants({ variant, size, className }))}
|
|
42
|
-
ref={ref}
|
|
43
|
-
{...props} />)
|
|
44
|
-
);
|
|
45
|
-
})
|
|
46
|
-
Button.displayName = "Button"
|
|
47
|
-
|
|
48
|
-
export { Button, buttonVariants }
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import * as React from "react"
|
|
2
|
-
|
|
3
|
-
import { cn } from "@/lib/utils"
|
|
4
|
-
|
|
5
|
-
const Card = React.forwardRef(({ className, ...props }, ref) => (
|
|
6
|
-
<div
|
|
7
|
-
ref={ref}
|
|
8
|
-
className={cn("rounded-xl border bg-card text-card-foreground shadow", className)}
|
|
9
|
-
{...props} />
|
|
10
|
-
))
|
|
11
|
-
Card.displayName = "Card"
|
|
12
|
-
|
|
13
|
-
const CardHeader = React.forwardRef(({ className, ...props }, ref) => (
|
|
14
|
-
<div
|
|
15
|
-
ref={ref}
|
|
16
|
-
className={cn("flex flex-col space-y-1.5 p-6", className)}
|
|
17
|
-
{...props} />
|
|
18
|
-
))
|
|
19
|
-
CardHeader.displayName = "CardHeader"
|
|
20
|
-
|
|
21
|
-
const CardTitle = React.forwardRef(({ className, ...props }, ref) => (
|
|
22
|
-
<div
|
|
23
|
-
ref={ref}
|
|
24
|
-
className={cn("font-semibold leading-none tracking-tight", className)}
|
|
25
|
-
{...props} />
|
|
26
|
-
))
|
|
27
|
-
CardTitle.displayName = "CardTitle"
|
|
28
|
-
|
|
29
|
-
const CardDescription = React.forwardRef(({ className, ...props }, ref) => (
|
|
30
|
-
<div
|
|
31
|
-
ref={ref}
|
|
32
|
-
className={cn("text-sm text-muted-foreground", className)}
|
|
33
|
-
{...props} />
|
|
34
|
-
))
|
|
35
|
-
CardDescription.displayName = "CardDescription"
|
|
36
|
-
|
|
37
|
-
const CardContent = React.forwardRef(({ className, ...props }, ref) => (
|
|
38
|
-
<div ref={ref} className={cn("p-6 pt-0", className)} {...props} />
|
|
39
|
-
))
|
|
40
|
-
CardContent.displayName = "CardContent"
|
|
41
|
-
|
|
42
|
-
const CardFooter = React.forwardRef(({ className, ...props }, ref) => (
|
|
43
|
-
<div
|
|
44
|
-
ref={ref}
|
|
45
|
-
className={cn("flex items-center p-6 pt-0", className)}
|
|
46
|
-
{...props} />
|
|
47
|
-
))
|
|
48
|
-
CardFooter.displayName = "CardFooter"
|
|
49
|
-
|
|
50
|
-
export { Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent }
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use client"
|
|
2
|
-
|
|
3
|
-
import * as React from "react"
|
|
4
|
-
import * as CheckboxPrimitive from "@radix-ui/react-checkbox"
|
|
5
|
-
import { Check } from "lucide-react"
|
|
6
|
-
|
|
7
|
-
import { cn } from "@/lib/utils"
|
|
8
|
-
|
|
9
|
-
const Checkbox = React.forwardRef(({ className, ...props }, ref) => (
|
|
10
|
-
<CheckboxPrimitive.Root
|
|
11
|
-
ref={ref}
|
|
12
|
-
className={cn(
|
|
13
|
-
"peer h-4 w-4 shrink-0 rounded-sm border border-primary shadow focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",
|
|
14
|
-
className
|
|
15
|
-
)}
|
|
16
|
-
{...props}>
|
|
17
|
-
<CheckboxPrimitive.Indicator className={cn("flex items-center justify-center text-current")}>
|
|
18
|
-
<Check className="h-4 w-4" />
|
|
19
|
-
</CheckboxPrimitive.Indicator>
|
|
20
|
-
</CheckboxPrimitive.Root>
|
|
21
|
-
))
|
|
22
|
-
Checkbox.displayName = CheckboxPrimitive.Root.displayName
|
|
23
|
-
|
|
24
|
-
export { Checkbox }
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use client"
|
|
2
|
-
|
|
3
|
-
import * as CollapsiblePrimitive from "@radix-ui/react-collapsible"
|
|
4
|
-
|
|
5
|
-
const Collapsible = CollapsiblePrimitive.Root
|
|
6
|
-
|
|
7
|
-
const CollapsibleTrigger = CollapsiblePrimitive.CollapsibleTrigger
|
|
8
|
-
|
|
9
|
-
const CollapsibleContent = CollapsiblePrimitive.CollapsibleContent
|
|
10
|
-
|
|
11
|
-
export { Collapsible, CollapsibleTrigger, CollapsibleContent }
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
"use client"
|
|
2
|
-
|
|
3
|
-
import * as React from "react"
|
|
4
|
-
import * as DialogPrimitive from "@radix-ui/react-dialog"
|
|
5
|
-
import { X } from "lucide-react"
|
|
6
|
-
|
|
7
|
-
import { cn } from "@/lib/utils"
|
|
8
|
-
|
|
9
|
-
const Dialog = DialogPrimitive.Root
|
|
10
|
-
|
|
11
|
-
const DialogTrigger = DialogPrimitive.Trigger
|
|
12
|
-
|
|
13
|
-
const DialogPortal = DialogPrimitive.Portal
|
|
14
|
-
|
|
15
|
-
const DialogClose = DialogPrimitive.Close
|
|
16
|
-
|
|
17
|
-
const DialogOverlay = React.forwardRef(({ className, ...props }, ref) => (
|
|
18
|
-
<DialogPrimitive.Overlay
|
|
19
|
-
ref={ref}
|
|
20
|
-
className={cn(
|
|
21
|
-
"fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
|
|
22
|
-
className
|
|
23
|
-
)}
|
|
24
|
-
{...props} />
|
|
25
|
-
))
|
|
26
|
-
DialogOverlay.displayName = DialogPrimitive.Overlay.displayName
|
|
27
|
-
|
|
28
|
-
const DialogContent = React.forwardRef(({ className, children, ...props }, ref) => (
|
|
29
|
-
<DialogPortal>
|
|
30
|
-
<DialogOverlay />
|
|
31
|
-
<DialogPrimitive.Content
|
|
32
|
-
ref={ref}
|
|
33
|
-
className={cn(
|
|
34
|
-
"fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",
|
|
35
|
-
className
|
|
36
|
-
)}
|
|
37
|
-
{...props}>
|
|
38
|
-
{children}
|
|
39
|
-
<DialogPrimitive.Close
|
|
40
|
-
className="absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground">
|
|
41
|
-
<X className="h-4 w-4" />
|
|
42
|
-
<span className="sr-only">Close</span>
|
|
43
|
-
</DialogPrimitive.Close>
|
|
44
|
-
</DialogPrimitive.Content>
|
|
45
|
-
</DialogPortal>
|
|
46
|
-
))
|
|
47
|
-
DialogContent.displayName = DialogPrimitive.Content.displayName
|
|
48
|
-
|
|
49
|
-
const DialogHeader = ({
|
|
50
|
-
className,
|
|
51
|
-
...props
|
|
52
|
-
}) => (
|
|
53
|
-
<div
|
|
54
|
-
className={cn("flex flex-col space-y-1.5 text-center sm:text-left", className)}
|
|
55
|
-
{...props} />
|
|
56
|
-
)
|
|
57
|
-
DialogHeader.displayName = "DialogHeader"
|
|
58
|
-
|
|
59
|
-
const DialogFooter = ({
|
|
60
|
-
className,
|
|
61
|
-
...props
|
|
62
|
-
}) => (
|
|
63
|
-
<div
|
|
64
|
-
className={cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", className)}
|
|
65
|
-
{...props} />
|
|
66
|
-
)
|
|
67
|
-
DialogFooter.displayName = "DialogFooter"
|
|
68
|
-
|
|
69
|
-
const DialogTitle = React.forwardRef(({ className, ...props }, ref) => (
|
|
70
|
-
<DialogPrimitive.Title
|
|
71
|
-
ref={ref}
|
|
72
|
-
className={cn("text-lg font-semibold leading-none tracking-tight", className)}
|
|
73
|
-
{...props} />
|
|
74
|
-
))
|
|
75
|
-
DialogTitle.displayName = DialogPrimitive.Title.displayName
|
|
76
|
-
|
|
77
|
-
const DialogDescription = React.forwardRef(({ className, ...props }, ref) => (
|
|
78
|
-
<DialogPrimitive.Description
|
|
79
|
-
ref={ref}
|
|
80
|
-
className={cn("text-sm text-muted-foreground", className)}
|
|
81
|
-
{...props} />
|
|
82
|
-
))
|
|
83
|
-
DialogDescription.displayName = DialogPrimitive.Description.displayName
|
|
84
|
-
|
|
85
|
-
export {
|
|
86
|
-
Dialog,
|
|
87
|
-
DialogPortal,
|
|
88
|
-
DialogOverlay,
|
|
89
|
-
DialogTrigger,
|
|
90
|
-
DialogClose,
|
|
91
|
-
DialogContent,
|
|
92
|
-
DialogHeader,
|
|
93
|
-
DialogFooter,
|
|
94
|
-
DialogTitle,
|
|
95
|
-
DialogDescription,
|
|
96
|
-
}
|
|
@@ -1,158 +0,0 @@
|
|
|
1
|
-
"use client"
|
|
2
|
-
|
|
3
|
-
import * as React from "react"
|
|
4
|
-
import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu"
|
|
5
|
-
import { Check, ChevronRight, Circle } from "lucide-react"
|
|
6
|
-
|
|
7
|
-
import { cn } from "@/lib/utils"
|
|
8
|
-
|
|
9
|
-
const DropdownMenu = DropdownMenuPrimitive.Root
|
|
10
|
-
|
|
11
|
-
const DropdownMenuTrigger = DropdownMenuPrimitive.Trigger
|
|
12
|
-
|
|
13
|
-
const DropdownMenuGroup = DropdownMenuPrimitive.Group
|
|
14
|
-
|
|
15
|
-
const DropdownMenuPortal = DropdownMenuPrimitive.Portal
|
|
16
|
-
|
|
17
|
-
const DropdownMenuSub = DropdownMenuPrimitive.Sub
|
|
18
|
-
|
|
19
|
-
const DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup
|
|
20
|
-
|
|
21
|
-
const DropdownMenuSubTrigger = React.forwardRef(({ className, inset, children, ...props }, ref) => (
|
|
22
|
-
<DropdownMenuPrimitive.SubTrigger
|
|
23
|
-
ref={ref}
|
|
24
|
-
className={cn(
|
|
25
|
-
"flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
|
26
|
-
inset && "pl-8",
|
|
27
|
-
className
|
|
28
|
-
)}
|
|
29
|
-
{...props}>
|
|
30
|
-
{children}
|
|
31
|
-
<ChevronRight className="ml-auto" />
|
|
32
|
-
</DropdownMenuPrimitive.SubTrigger>
|
|
33
|
-
))
|
|
34
|
-
DropdownMenuSubTrigger.displayName =
|
|
35
|
-
DropdownMenuPrimitive.SubTrigger.displayName
|
|
36
|
-
|
|
37
|
-
const DropdownMenuSubContent = React.forwardRef(({ className, ...props }, ref) => (
|
|
38
|
-
<DropdownMenuPrimitive.SubContent
|
|
39
|
-
ref={ref}
|
|
40
|
-
className={cn(
|
|
41
|
-
"z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
42
|
-
className
|
|
43
|
-
)}
|
|
44
|
-
{...props} />
|
|
45
|
-
))
|
|
46
|
-
DropdownMenuSubContent.displayName =
|
|
47
|
-
DropdownMenuPrimitive.SubContent.displayName
|
|
48
|
-
|
|
49
|
-
const DropdownMenuContent = React.forwardRef(({ className, sideOffset = 4, ...props }, ref) => (
|
|
50
|
-
<DropdownMenuPrimitive.Portal>
|
|
51
|
-
<DropdownMenuPrimitive.Content
|
|
52
|
-
ref={ref}
|
|
53
|
-
sideOffset={sideOffset}
|
|
54
|
-
className={cn(
|
|
55
|
-
"z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md",
|
|
56
|
-
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
57
|
-
className
|
|
58
|
-
)}
|
|
59
|
-
{...props} />
|
|
60
|
-
</DropdownMenuPrimitive.Portal>
|
|
61
|
-
))
|
|
62
|
-
DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName
|
|
63
|
-
|
|
64
|
-
const DropdownMenuItem = React.forwardRef(({ className, inset, ...props }, ref) => (
|
|
65
|
-
<DropdownMenuPrimitive.Item
|
|
66
|
-
ref={ref}
|
|
67
|
-
className={cn(
|
|
68
|
-
"relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",
|
|
69
|
-
inset && "pl-8",
|
|
70
|
-
className
|
|
71
|
-
)}
|
|
72
|
-
{...props} />
|
|
73
|
-
))
|
|
74
|
-
DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName
|
|
75
|
-
|
|
76
|
-
const DropdownMenuCheckboxItem = React.forwardRef(({ className, children, checked, ...props }, ref) => (
|
|
77
|
-
<DropdownMenuPrimitive.CheckboxItem
|
|
78
|
-
ref={ref}
|
|
79
|
-
className={cn(
|
|
80
|
-
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
81
|
-
className
|
|
82
|
-
)}
|
|
83
|
-
checked={checked}
|
|
84
|
-
{...props}>
|
|
85
|
-
<span className="absolute left-2 flex h-3.5 w-3.5 items-center justify-center">
|
|
86
|
-
<DropdownMenuPrimitive.ItemIndicator>
|
|
87
|
-
<Check className="h-4 w-4" />
|
|
88
|
-
</DropdownMenuPrimitive.ItemIndicator>
|
|
89
|
-
</span>
|
|
90
|
-
{children}
|
|
91
|
-
</DropdownMenuPrimitive.CheckboxItem>
|
|
92
|
-
))
|
|
93
|
-
DropdownMenuCheckboxItem.displayName =
|
|
94
|
-
DropdownMenuPrimitive.CheckboxItem.displayName
|
|
95
|
-
|
|
96
|
-
const DropdownMenuRadioItem = React.forwardRef(({ className, children, ...props }, ref) => (
|
|
97
|
-
<DropdownMenuPrimitive.RadioItem
|
|
98
|
-
ref={ref}
|
|
99
|
-
className={cn(
|
|
100
|
-
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
101
|
-
className
|
|
102
|
-
)}
|
|
103
|
-
{...props}>
|
|
104
|
-
<span className="absolute left-2 flex h-3.5 w-3.5 items-center justify-center">
|
|
105
|
-
<DropdownMenuPrimitive.ItemIndicator>
|
|
106
|
-
<Circle className="h-2 w-2 fill-current" />
|
|
107
|
-
</DropdownMenuPrimitive.ItemIndicator>
|
|
108
|
-
</span>
|
|
109
|
-
{children}
|
|
110
|
-
</DropdownMenuPrimitive.RadioItem>
|
|
111
|
-
))
|
|
112
|
-
DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName
|
|
113
|
-
|
|
114
|
-
const DropdownMenuLabel = React.forwardRef(({ className, inset, ...props }, ref) => (
|
|
115
|
-
<DropdownMenuPrimitive.Label
|
|
116
|
-
ref={ref}
|
|
117
|
-
className={cn("px-2 py-1.5 text-sm font-semibold", inset && "pl-8", className)}
|
|
118
|
-
{...props} />
|
|
119
|
-
))
|
|
120
|
-
DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName
|
|
121
|
-
|
|
122
|
-
const DropdownMenuSeparator = React.forwardRef(({ className, ...props }, ref) => (
|
|
123
|
-
<DropdownMenuPrimitive.Separator
|
|
124
|
-
ref={ref}
|
|
125
|
-
className={cn("-mx-1 my-1 h-px bg-muted", className)}
|
|
126
|
-
{...props} />
|
|
127
|
-
))
|
|
128
|
-
DropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName
|
|
129
|
-
|
|
130
|
-
const DropdownMenuShortcut = ({
|
|
131
|
-
className,
|
|
132
|
-
...props
|
|
133
|
-
}) => {
|
|
134
|
-
return (
|
|
135
|
-
(<span
|
|
136
|
-
className={cn("ml-auto text-xs tracking-widest opacity-60", className)}
|
|
137
|
-
{...props} />)
|
|
138
|
-
);
|
|
139
|
-
}
|
|
140
|
-
DropdownMenuShortcut.displayName = "DropdownMenuShortcut"
|
|
141
|
-
|
|
142
|
-
export {
|
|
143
|
-
DropdownMenu,
|
|
144
|
-
DropdownMenuTrigger,
|
|
145
|
-
DropdownMenuContent,
|
|
146
|
-
DropdownMenuItem,
|
|
147
|
-
DropdownMenuCheckboxItem,
|
|
148
|
-
DropdownMenuRadioItem,
|
|
149
|
-
DropdownMenuLabel,
|
|
150
|
-
DropdownMenuSeparator,
|
|
151
|
-
DropdownMenuShortcut,
|
|
152
|
-
DropdownMenuGroup,
|
|
153
|
-
DropdownMenuPortal,
|
|
154
|
-
DropdownMenuSub,
|
|
155
|
-
DropdownMenuSubContent,
|
|
156
|
-
DropdownMenuSubTrigger,
|
|
157
|
-
DropdownMenuRadioGroup,
|
|
158
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import * as React from "react"
|
|
2
|
-
|
|
3
|
-
import { cn } from "@/lib/utils"
|
|
4
|
-
|
|
5
|
-
const Input = React.forwardRef(({ className, type, ...props }, ref) => {
|
|
6
|
-
return (
|
|
7
|
-
(<input
|
|
8
|
-
type={type}
|
|
9
|
-
className={cn(
|
|
10
|
-
"flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
|
|
11
|
-
className
|
|
12
|
-
)}
|
|
13
|
-
ref={ref}
|
|
14
|
-
{...props} />)
|
|
15
|
-
);
|
|
16
|
-
})
|
|
17
|
-
Input.displayName = "Input"
|
|
18
|
-
|
|
19
|
-
export { Input }
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
"use client"
|
|
2
|
-
|
|
3
|
-
import * as React from "react"
|
|
4
|
-
import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area"
|
|
5
|
-
|
|
6
|
-
import { cn } from "@/lib/utils"
|
|
7
|
-
|
|
8
|
-
const ScrollArea = React.forwardRef(({ className, children, ...props }, ref) => (
|
|
9
|
-
<ScrollAreaPrimitive.Root
|
|
10
|
-
ref={ref}
|
|
11
|
-
className={cn("relative overflow-hidden", className)}
|
|
12
|
-
{...props}>
|
|
13
|
-
<ScrollAreaPrimitive.Viewport className="h-full w-full rounded-[inherit]">
|
|
14
|
-
{children}
|
|
15
|
-
</ScrollAreaPrimitive.Viewport>
|
|
16
|
-
<ScrollBar />
|
|
17
|
-
<ScrollAreaPrimitive.Corner />
|
|
18
|
-
</ScrollAreaPrimitive.Root>
|
|
19
|
-
))
|
|
20
|
-
ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName
|
|
21
|
-
|
|
22
|
-
const ScrollBar = React.forwardRef(({ className, orientation = "vertical", ...props }, ref) => (
|
|
23
|
-
<ScrollAreaPrimitive.ScrollAreaScrollbar
|
|
24
|
-
ref={ref}
|
|
25
|
-
orientation={orientation}
|
|
26
|
-
className={cn(
|
|
27
|
-
"flex touch-none select-none transition-colors",
|
|
28
|
-
orientation === "vertical" &&
|
|
29
|
-
"h-full w-2.5 border-l border-l-transparent p-[1px]",
|
|
30
|
-
orientation === "horizontal" &&
|
|
31
|
-
"h-2.5 flex-col border-t border-t-transparent p-[1px]",
|
|
32
|
-
className
|
|
33
|
-
)}
|
|
34
|
-
{...props}>
|
|
35
|
-
<ScrollAreaPrimitive.ScrollAreaThumb className="relative flex-1 rounded-full bg-border" />
|
|
36
|
-
</ScrollAreaPrimitive.ScrollAreaScrollbar>
|
|
37
|
-
))
|
|
38
|
-
ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName
|
|
39
|
-
|
|
40
|
-
export { ScrollArea, ScrollBar }
|
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
"use client"
|
|
2
|
-
|
|
3
|
-
import * as React from "react"
|
|
4
|
-
import * as SelectPrimitive from "@radix-ui/react-select"
|
|
5
|
-
import { Check, ChevronDown, ChevronUp } from "lucide-react"
|
|
6
|
-
|
|
7
|
-
import { cn } from "@/lib/utils"
|
|
8
|
-
|
|
9
|
-
const Select = SelectPrimitive.Root
|
|
10
|
-
|
|
11
|
-
const SelectGroup = SelectPrimitive.Group
|
|
12
|
-
|
|
13
|
-
const SelectValue = SelectPrimitive.Value
|
|
14
|
-
|
|
15
|
-
const SelectTrigger = React.forwardRef(({ className, children, ...props }, ref) => (
|
|
16
|
-
<SelectPrimitive.Trigger
|
|
17
|
-
ref={ref}
|
|
18
|
-
className={cn(
|
|
19
|
-
"flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",
|
|
20
|
-
className
|
|
21
|
-
)}
|
|
22
|
-
{...props}>
|
|
23
|
-
{children}
|
|
24
|
-
<SelectPrimitive.Icon asChild>
|
|
25
|
-
<ChevronDown className="h-4 w-4 opacity-50" />
|
|
26
|
-
</SelectPrimitive.Icon>
|
|
27
|
-
</SelectPrimitive.Trigger>
|
|
28
|
-
))
|
|
29
|
-
SelectTrigger.displayName = SelectPrimitive.Trigger.displayName
|
|
30
|
-
|
|
31
|
-
const SelectScrollUpButton = React.forwardRef(({ className, ...props }, ref) => (
|
|
32
|
-
<SelectPrimitive.ScrollUpButton
|
|
33
|
-
ref={ref}
|
|
34
|
-
className={cn("flex cursor-default items-center justify-center py-1", className)}
|
|
35
|
-
{...props}>
|
|
36
|
-
<ChevronUp className="h-4 w-4" />
|
|
37
|
-
</SelectPrimitive.ScrollUpButton>
|
|
38
|
-
))
|
|
39
|
-
SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName
|
|
40
|
-
|
|
41
|
-
const SelectScrollDownButton = React.forwardRef(({ className, ...props }, ref) => (
|
|
42
|
-
<SelectPrimitive.ScrollDownButton
|
|
43
|
-
ref={ref}
|
|
44
|
-
className={cn("flex cursor-default items-center justify-center py-1", className)}
|
|
45
|
-
{...props}>
|
|
46
|
-
<ChevronDown className="h-4 w-4" />
|
|
47
|
-
</SelectPrimitive.ScrollDownButton>
|
|
48
|
-
))
|
|
49
|
-
SelectScrollDownButton.displayName =
|
|
50
|
-
SelectPrimitive.ScrollDownButton.displayName
|
|
51
|
-
|
|
52
|
-
const SelectContent = React.forwardRef(({ className, children, position = "popper", ...props }, ref) => (
|
|
53
|
-
<SelectPrimitive.Portal>
|
|
54
|
-
<SelectPrimitive.Content
|
|
55
|
-
ref={ref}
|
|
56
|
-
className={cn(
|
|
57
|
-
"relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
58
|
-
position === "popper" &&
|
|
59
|
-
"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
|
|
60
|
-
className
|
|
61
|
-
)}
|
|
62
|
-
position={position}
|
|
63
|
-
{...props}>
|
|
64
|
-
<SelectScrollUpButton />
|
|
65
|
-
<SelectPrimitive.Viewport
|
|
66
|
-
className={cn("p-1", position === "popper" &&
|
|
67
|
-
"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]")}>
|
|
68
|
-
{children}
|
|
69
|
-
</SelectPrimitive.Viewport>
|
|
70
|
-
<SelectScrollDownButton />
|
|
71
|
-
</SelectPrimitive.Content>
|
|
72
|
-
</SelectPrimitive.Portal>
|
|
73
|
-
))
|
|
74
|
-
SelectContent.displayName = SelectPrimitive.Content.displayName
|
|
75
|
-
|
|
76
|
-
const SelectLabel = React.forwardRef(({ className, ...props }, ref) => (
|
|
77
|
-
<SelectPrimitive.Label
|
|
78
|
-
ref={ref}
|
|
79
|
-
className={cn("px-2 py-1.5 text-sm font-semibold", className)}
|
|
80
|
-
{...props} />
|
|
81
|
-
))
|
|
82
|
-
SelectLabel.displayName = SelectPrimitive.Label.displayName
|
|
83
|
-
|
|
84
|
-
const SelectItem = React.forwardRef(({ className, children, ...props }, ref) => (
|
|
85
|
-
<SelectPrimitive.Item
|
|
86
|
-
ref={ref}
|
|
87
|
-
className={cn(
|
|
88
|
-
"relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
89
|
-
className
|
|
90
|
-
)}
|
|
91
|
-
{...props}>
|
|
92
|
-
<span className="absolute right-2 flex h-3.5 w-3.5 items-center justify-center">
|
|
93
|
-
<SelectPrimitive.ItemIndicator>
|
|
94
|
-
<Check className="h-4 w-4" />
|
|
95
|
-
</SelectPrimitive.ItemIndicator>
|
|
96
|
-
</span>
|
|
97
|
-
<SelectPrimitive.ItemText>{children}</SelectPrimitive.ItemText>
|
|
98
|
-
</SelectPrimitive.Item>
|
|
99
|
-
))
|
|
100
|
-
SelectItem.displayName = SelectPrimitive.Item.displayName
|
|
101
|
-
|
|
102
|
-
const SelectSeparator = React.forwardRef(({ className, ...props }, ref) => (
|
|
103
|
-
<SelectPrimitive.Separator
|
|
104
|
-
ref={ref}
|
|
105
|
-
className={cn("-mx-1 my-1 h-px bg-muted", className)}
|
|
106
|
-
{...props} />
|
|
107
|
-
))
|
|
108
|
-
SelectSeparator.displayName = SelectPrimitive.Separator.displayName
|
|
109
|
-
|
|
110
|
-
export {
|
|
111
|
-
Select,
|
|
112
|
-
SelectGroup,
|
|
113
|
-
SelectValue,
|
|
114
|
-
SelectTrigger,
|
|
115
|
-
SelectContent,
|
|
116
|
-
SelectLabel,
|
|
117
|
-
SelectItem,
|
|
118
|
-
SelectSeparator,
|
|
119
|
-
SelectScrollUpButton,
|
|
120
|
-
SelectScrollDownButton,
|
|
121
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"use client"
|
|
2
|
-
|
|
3
|
-
import * as React from "react"
|
|
4
|
-
import * as SeparatorPrimitive from "@radix-ui/react-separator"
|
|
5
|
-
|
|
6
|
-
import { cn } from "@/lib/utils"
|
|
7
|
-
|
|
8
|
-
const Separator = React.forwardRef((
|
|
9
|
-
{ className, orientation = "horizontal", decorative = true, ...props },
|
|
10
|
-
ref
|
|
11
|
-
) => (
|
|
12
|
-
<SeparatorPrimitive.Root
|
|
13
|
-
ref={ref}
|
|
14
|
-
decorative={decorative}
|
|
15
|
-
orientation={orientation}
|
|
16
|
-
className={cn(
|
|
17
|
-
"shrink-0 bg-border",
|
|
18
|
-
orientation === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]",
|
|
19
|
-
className
|
|
20
|
-
)}
|
|
21
|
-
{...props} />
|
|
22
|
-
))
|
|
23
|
-
Separator.displayName = SeparatorPrimitive.Root.displayName
|
|
24
|
-
|
|
25
|
-
export { Separator }
|