@carlonicora/nextjs-jsonapi 1.4.0 → 1.6.0
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 +208 -127
- package/dist/{ApiResponseInterface-DDI7QQPR.d.ts → ApiResponseInterface-CfcC7pPC.d.mts} +11 -2
- package/dist/{ApiResponseInterface-BHN5D9r5.d.mts → ApiResponseInterface-DTBJaV5R.d.ts} +11 -2
- package/dist/{BlockNoteEditor-QV6ESIQA.js → BlockNoteEditor-7FM7B737.js} +19 -24
- package/dist/BlockNoteEditor-7FM7B737.js.map +1 -0
- package/dist/{BlockNoteEditor-U2IHUVUF.mjs → BlockNoteEditor-RVL76ZAS.mjs} +11 -16
- package/dist/BlockNoteEditor-RVL76ZAS.mjs.map +1 -0
- package/dist/JsonApiRequest-KOKGVPBI.js +25 -0
- package/dist/{JsonApiRequest-UJ7FGIVI.js.map → JsonApiRequest-KOKGVPBI.js.map} +1 -1
- package/dist/{JsonApiRequest-6UR7DIAR.mjs → JsonApiRequest-VCCRO732.mjs} +2 -2
- package/dist/chunk-2Z56AS2S.js +2723 -0
- package/dist/chunk-2Z56AS2S.js.map +1 -0
- package/dist/{chunk-HTLEKZND.mjs → chunk-37NJZ2VD.mjs} +281 -1019
- package/dist/chunk-37NJZ2VD.mjs.map +1 -0
- package/dist/{chunk-2K3Q24UF.js → chunk-3ZPK4QOB.js} +24 -14
- package/dist/chunk-3ZPK4QOB.js.map +1 -0
- package/dist/chunk-AGWQ75PQ.js +142 -0
- package/dist/chunk-AGWQ75PQ.js.map +1 -0
- package/dist/{chunk-32HM6MDD.js → chunk-CSM6AIAP.js} +1 -1
- package/dist/{chunk-32HM6MDD.js.map → chunk-CSM6AIAP.js.map} +1 -1
- package/dist/{chunk-IKBA4AHN.mjs → chunk-F4Y3GZG4.mjs} +3 -3
- package/dist/{chunk-YF5XQZDR.mjs → chunk-F5UNXZ3J.mjs} +1 -1
- package/dist/chunk-F5UNXZ3J.mjs.map +1 -0
- package/dist/chunk-IGOWVLJH.mjs +142 -0
- package/dist/chunk-IGOWVLJH.mjs.map +1 -0
- package/dist/{chunk-HAG77QBV.mjs → chunk-K4W5QXL5.mjs} +1 -1
- package/dist/chunk-KFL5ZFM4.mjs +2723 -0
- package/dist/chunk-KFL5ZFM4.mjs.map +1 -0
- package/dist/{chunk-HR4H2FP7.mjs → chunk-KJ4ETLJB.mjs} +24 -14
- package/dist/chunk-KJ4ETLJB.mjs.map +1 -0
- package/dist/chunk-LOSPCUCF.js +637 -0
- package/dist/chunk-LOSPCUCF.js.map +1 -0
- package/dist/{chunk-E2HRC2OG.js → chunk-SVX7E6RR.js} +10360 -6256
- package/dist/chunk-SVX7E6RR.js.map +1 -0
- package/dist/{chunk-EFJEWLRL.js → chunk-YUO55Q5A.js} +1 -1
- package/dist/chunk-YUO55Q5A.js.map +1 -0
- package/dist/chunk-ZQTFZKLJ.mjs +12089 -0
- package/dist/chunk-ZQTFZKLJ.mjs.map +1 -0
- package/dist/{chunk-PMXG5WBC.js → chunk-ZUEEIQHW.js} +3 -3
- package/dist/{chunk-PMXG5WBC.js.map → chunk-ZUEEIQHW.js.map} +1 -1
- package/dist/client/index.d.mts +161 -11
- package/dist/client/index.d.ts +161 -11
- package/dist/client/index.js +74 -12
- package/dist/client/index.js.map +1 -1
- package/dist/client/index.mjs +73 -11
- package/dist/components/index.d.mts +762 -73
- package/dist/components/index.d.ts +762 -73
- package/dist/components/index.js +465 -12
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +466 -13
- package/dist/config-B43zxEvn.d.mts +69 -0
- package/dist/config-D2OUrI_G.d.ts +69 -0
- package/dist/content.fields-Ck5lkQ5d.d.mts +47 -0
- package/dist/content.fields-Ck5lkQ5d.d.ts +47 -0
- package/dist/{content.interface-C_PGZMuy.d.ts → content.interface-Bs8a7uW6.d.mts} +2 -3
- package/dist/{content.interface-D_WS6CrB.d.mts → content.interface-UtsJ-mzs.d.ts} +2 -3
- package/dist/contexts/index.d.mts +13 -6
- package/dist/contexts/index.d.ts +13 -6
- package/dist/contexts/index.js +10 -12
- package/dist/contexts/index.js.map +1 -1
- package/dist/contexts/index.mjs +9 -11
- package/dist/core/index.d.mts +539 -8
- package/dist/core/index.d.ts +539 -8
- package/dist/core/index.js +104 -2
- package/dist/core/index.js.map +1 -1
- package/dist/core/index.mjs +105 -3
- package/dist/index.d.mts +131 -70
- package/dist/index.d.ts +131 -70
- package/dist/index.js +97 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +118 -28
- package/dist/notification.interface-BdcwkuQE.d.mts +228 -0
- package/dist/notification.interface-BdcwkuQE.d.ts +228 -0
- package/dist/request-GBLBPYFM.js +8 -0
- package/dist/request-GBLBPYFM.js.map +1 -0
- package/dist/request-XABCMU25.mjs +8 -0
- package/dist/{AbstractService-wLid8dB0.d.ts → s3.interface-D7ttGatc.d.ts} +36 -26
- package/dist/{AbstractService-BsY6W3Ej.d.mts → s3.interface-DlaMDRTn.d.mts} +36 -26
- package/dist/scripts/generate-web-module/generator.d.ts.map +1 -1
- package/dist/scripts/generate-web-module/generator.js +8 -5
- package/dist/scripts/generate-web-module/generator.js.map +1 -1
- package/dist/scripts/generate-web-module/index.js +1 -1
- package/dist/scripts/generate-web-module/index.js.map +1 -1
- package/dist/scripts/generate-web-module/templates/components/editor.template.js +8 -1
- package/dist/scripts/generate-web-module/templates/components/editor.template.js.map +1 -1
- package/dist/scripts/generate-web-module/transformers/parent-detector.d.ts +4 -3
- package/dist/scripts/generate-web-module/transformers/parent-detector.d.ts.map +1 -1
- package/dist/scripts/generate-web-module/transformers/parent-detector.js +9 -3
- package/dist/scripts/generate-web-module/transformers/parent-detector.js.map +1 -1
- package/dist/scripts/generate-web-module/transformers/relationship-resolver.d.ts +11 -0
- package/dist/scripts/generate-web-module/transformers/relationship-resolver.d.ts.map +1 -1
- package/dist/scripts/generate-web-module/transformers/relationship-resolver.js +36 -9
- package/dist/scripts/generate-web-module/transformers/relationship-resolver.js.map +1 -1
- package/dist/scripts/generate-web-module/types/json-schema.interface.d.ts +2 -0
- package/dist/scripts/generate-web-module/types/json-schema.interface.d.ts.map +1 -1
- package/dist/scripts/generate-web-module/types/template-data.interface.d.ts +1 -0
- package/dist/scripts/generate-web-module/types/template-data.interface.d.ts.map +1 -1
- package/dist/scripts/generate-web-module/utils/i18n-updater.d.ts +4 -3
- package/dist/scripts/generate-web-module/utils/i18n-updater.d.ts.map +1 -1
- package/dist/scripts/generate-web-module/utils/i18n-updater.js +9 -9
- package/dist/scripts/generate-web-module/utils/i18n-updater.js.map +1 -1
- package/dist/scripts/generate-web-module/validators/json-schema-validator.js +3 -3
- package/dist/scripts/generate-web-module/validators/json-schema-validator.js.map +1 -1
- package/dist/server/index.d.mts +299 -4
- package/dist/server/index.d.ts +299 -4
- package/dist/server/index.js +215 -5
- package/dist/server/index.js.map +1 -1
- package/dist/server/index.mjs +214 -4
- package/dist/server/index.mjs.map +1 -1
- package/dist/token-2UWQJY5T.js +8 -0
- package/dist/token-2UWQJY5T.js.map +1 -0
- package/dist/token-EOK3N45S.mjs +8 -0
- package/dist/{useSocket-DzMKRKCA.d.ts → useSocket-8vwK_R_c.d.ts} +1 -1
- package/dist/{useSocket-Cn7fB_B1.d.mts → useSocket-BWJUXuOl.d.mts} +1 -1
- package/package.json +12 -52
- package/scripts/generate-web-module/generator.ts +8 -5
- package/scripts/generate-web-module/index.ts +1 -1
- package/scripts/generate-web-module/templates/components/editor.template.ts +7 -2
- package/scripts/generate-web-module/transformers/parent-detector.ts +10 -3
- package/scripts/generate-web-module/transformers/relationship-resolver.ts +36 -9
- package/scripts/generate-web-module/types/json-schema.interface.ts +2 -0
- package/scripts/generate-web-module/types/template-data.interface.ts +1 -0
- package/scripts/generate-web-module/utils/i18n-updater.ts +9 -9
- package/scripts/generate-web-module/validators/json-schema-validator.ts +3 -3
- package/src/client/JsonApiClient.ts +248 -0
- package/src/client/config.ts +78 -0
- package/src/client/index.ts +6 -1
- package/src/components/containers/TabsContainer.tsx +1 -1
- package/src/components/editors/BlockNoteEditor.tsx +3 -1
- package/src/components/index.ts +4 -0
- package/src/components/navigations/Breadcrumb.tsx +1 -1
- package/src/components/navigations/Header.tsx +2 -2
- package/src/contexts/CommonContext.tsx +1 -1
- package/src/contexts/SocketContext.tsx +1 -1
- package/src/contexts/index.ts +3 -0
- package/src/core/abstracts/ClientAbstractService.ts +255 -0
- package/src/core/abstracts/ServerAbstractService.ts +180 -0
- package/src/core/abstracts/index.ts +2 -0
- package/src/core/index.ts +32 -3
- package/src/discord/config.ts +15 -0
- package/src/discord/index.ts +1 -0
- package/src/features/auth/components/details/LandingComponent.tsx +2 -2
- package/src/features/auth/components/forms/AcceptInvitation.tsx +1 -1
- package/src/features/auth/components/forms/ActivateAccount.tsx +1 -1
- package/src/features/auth/components/forms/Cookies.tsx +2 -1
- package/src/features/auth/components/forms/ForgotPassword.tsx +1 -1
- package/src/features/auth/components/forms/Login.tsx +1 -1
- package/src/features/auth/components/forms/Logout.tsx +1 -1
- package/src/features/auth/components/forms/RefreshUser.tsx +2 -1
- package/src/features/auth/components/forms/Register.tsx +1 -1
- package/src/features/auth/components/forms/ResetPassword.tsx +1 -1
- package/src/features/auth/data/auth.service.ts +1 -1
- package/src/features/auth/data/index.ts +0 -1
- package/src/features/auth/utils/AuthCookies.ts +1 -1
- package/src/features/company/components/forms/CompanyConfigurationEditor.tsx +4 -2
- package/src/features/company/components/forms/CompanyDeleter.tsx +2 -1
- package/src/features/company/components/forms/CompanyEditor.tsx +6 -3
- package/src/features/company/components/forms/CompanyLicense.tsx +4 -2
- package/src/features/company/components/lists/CompaniesList.tsx +2 -1
- package/src/features/company/data/index.ts +0 -1
- package/src/features/content/components/lists/ContentsListById.tsx +2 -1
- package/src/features/content/components/lists/RelevantContentsList.tsx +2 -1
- package/src/features/content/data/index.ts +0 -1
- package/src/features/feature/data/index.ts +0 -1
- package/src/features/notification/components/lists/NotificationsList.tsx +2 -1
- package/src/features/notification/contexts/NotificationContext.tsx +2 -1
- package/src/features/notification/data/index.ts +0 -1
- package/src/features/push/data/index.ts +0 -1
- package/src/features/role/components/forms/RemoveUserFromRole.tsx +4 -2
- package/src/features/role/components/forms/UserRoleAdd.tsx +2 -1
- package/src/features/role/components/lists/RolesList.tsx +2 -1
- package/src/features/role/components/lists/UserRolesList.tsx +2 -1
- package/src/features/role/data/index.ts +0 -1
- package/src/features/s3/data/index.ts +0 -1
- package/src/features/user/components/forms/RoleUserAdd.tsx +4 -2
- package/src/features/user/components/forms/UserDeleter.tsx +2 -1
- package/src/features/user/components/forms/UserEditor.tsx +6 -3
- package/src/features/user/components/forms/UserMultiSelect.tsx +2 -1
- package/src/features/user/components/forms/UserReactivator.tsx +2 -1
- package/src/features/user/components/forms/UserResentInvitationEmail.tsx +2 -1
- package/src/features/user/components/forms/UserSelector.tsx +2 -1
- package/src/features/user/components/lists/AdminUsersList.tsx +2 -1
- package/src/features/user/components/lists/CompanyUsersList.tsx +2 -1
- package/src/features/user/components/lists/RelevantUsersList.tsx +2 -1
- package/src/features/user/components/lists/RoleUsersList.tsx +2 -1
- package/src/features/user/components/lists/UsersListByContentIds.tsx +2 -1
- package/src/features/user/data/index.ts +0 -1
- package/src/features/user/hooks/useUserSearch.ts +2 -1
- package/src/features/user/index.ts +1 -0
- package/src/hooks/useDataListRetriever.ts +4 -4
- package/src/hooks/usePageTracker.ts +1 -1
- package/src/hooks/usePushNotifications.ts +3 -2
- package/src/hooks/useSocket.ts +1 -1
- package/src/index.ts +7 -2
- package/src/roles/config.ts +0 -15
- package/src/roles/index.ts +1 -9
- package/src/server/JsonApiServer.ts +249 -0
- package/src/server/cache.ts +1 -1
- package/src/server/index.ts +13 -0
- package/src/server/request.ts +32 -18
- package/src/server/token.ts +1 -1
- package/dist/ApiData-DPKNfY-9.d.mts +0 -10
- package/dist/ApiData-DPKNfY-9.d.ts +0 -10
- package/dist/ApiDataInterface-DPP8s46n.d.mts +0 -21
- package/dist/ApiDataInterface-DPP8s46n.d.ts +0 -21
- package/dist/BlockNoteEditor-QV6ESIQA.js.map +0 -1
- package/dist/BlockNoteEditor-U2IHUVUF.mjs.map +0 -1
- package/dist/JsonApiRequest-UJ7FGIVI.js +0 -25
- package/dist/atoms/index.d.mts +0 -12
- package/dist/atoms/index.d.ts +0 -12
- package/dist/atoms/index.js +0 -9
- package/dist/atoms/index.js.map +0 -1
- package/dist/atoms/index.mjs +0 -9
- package/dist/chunk-2K3Q24UF.js.map +0 -1
- package/dist/chunk-3FBCC4G3.js +0 -8
- package/dist/chunk-3FBCC4G3.js.map +0 -1
- package/dist/chunk-3UELCPIN.js +0 -46
- package/dist/chunk-3UELCPIN.js.map +0 -1
- package/dist/chunk-5IET37O4.js +0 -4210
- package/dist/chunk-5IET37O4.js.map +0 -1
- package/dist/chunk-AYHKQWHH.js +0 -68
- package/dist/chunk-AYHKQWHH.js.map +0 -1
- package/dist/chunk-DEYKTLA3.js +0 -1131
- package/dist/chunk-DEYKTLA3.js.map +0 -1
- package/dist/chunk-E2HRC2OG.js.map +0 -1
- package/dist/chunk-EFJEWLRL.js.map +0 -1
- package/dist/chunk-FMBQZAIP.mjs +0 -490
- package/dist/chunk-FMBQZAIP.mjs.map +0 -1
- package/dist/chunk-HR4H2FP7.mjs.map +0 -1
- package/dist/chunk-HTLEKZND.mjs.map +0 -1
- package/dist/chunk-JGFWIT2E.mjs +0 -1131
- package/dist/chunk-JGFWIT2E.mjs.map +0 -1
- package/dist/chunk-P2F54I7Q.mjs +0 -4210
- package/dist/chunk-P2F54I7Q.mjs.map +0 -1
- package/dist/chunk-PO5Q3H5I.js +0 -1375
- package/dist/chunk-PO5Q3H5I.js.map +0 -1
- package/dist/chunk-Q2N6SQYW.mjs +0 -8
- package/dist/chunk-Q2N6SQYW.mjs.map +0 -1
- package/dist/chunk-Q4FXESVT.js +0 -490
- package/dist/chunk-Q4FXESVT.js.map +0 -1
- package/dist/chunk-R2ONK22M.mjs +0 -7985
- package/dist/chunk-R2ONK22M.mjs.map +0 -1
- package/dist/chunk-SM63SZCP.mjs +0 -68
- package/dist/chunk-SM63SZCP.mjs.map +0 -1
- package/dist/chunk-SZZYEG3P.mjs +0 -46
- package/dist/chunk-SZZYEG3P.mjs.map +0 -1
- package/dist/chunk-YF5XQZDR.mjs.map +0 -1
- package/dist/config-BmnK65TD.d.mts +0 -35
- package/dist/config-BmnK65TD.d.ts +0 -35
- package/dist/config-DQeAo9Kf.d.mts +0 -49
- package/dist/config-DQeAo9Kf.d.ts +0 -49
- package/dist/content.fields-cHPdM8GJ.d.mts +0 -27
- package/dist/content.fields-cHPdM8GJ.d.ts +0 -27
- package/dist/d3.link.interface-ClC4Irqp.d.mts +0 -21
- package/dist/d3.link.interface-ClC4Irqp.d.ts +0 -21
- package/dist/features/index.d.mts +0 -476
- package/dist/features/index.d.ts +0 -476
- package/dist/features/index.js +0 -87
- package/dist/features/index.js.map +0 -1
- package/dist/features/index.mjs +0 -87
- package/dist/hooks/index.d.mts +0 -69
- package/dist/hooks/index.d.ts +0 -69
- package/dist/hooks/index.js +0 -56
- package/dist/hooks/index.js.map +0 -1
- package/dist/hooks/index.mjs +0 -56
- package/dist/hooks/index.mjs.map +0 -1
- package/dist/interfaces/index.d.mts +0 -4
- package/dist/interfaces/index.d.ts +0 -4
- package/dist/interfaces/index.js +0 -2
- package/dist/interfaces/index.js.map +0 -1
- package/dist/interfaces/index.mjs +0 -2
- package/dist/interfaces/index.mjs.map +0 -1
- package/dist/notification.interface-BBgMUdLR.d.mts +0 -14
- package/dist/notification.interface-gyvT-Z2F.d.ts +0 -14
- package/dist/permissions/index.d.mts +0 -41
- package/dist/permissions/index.d.ts +0 -41
- package/dist/permissions/index.js +0 -14
- package/dist/permissions/index.js.map +0 -1
- package/dist/permissions/index.mjs +0 -14
- package/dist/permissions/index.mjs.map +0 -1
- package/dist/request-7FE3LJLV.mjs +0 -9
- package/dist/request-7FE3LJLV.mjs.map +0 -1
- package/dist/request-QFS7NEIE.js +0 -9
- package/dist/request-QFS7NEIE.js.map +0 -1
- package/dist/roles/index.d.mts +0 -39
- package/dist/roles/index.d.ts +0 -39
- package/dist/roles/index.js +0 -18
- package/dist/roles/index.js.map +0 -1
- package/dist/roles/index.mjs +0 -18
- package/dist/roles/index.mjs.map +0 -1
- package/dist/shadcnui/index.d.mts +0 -698
- package/dist/shadcnui/index.d.ts +0 -698
- package/dist/shadcnui/index.js +0 -468
- package/dist/shadcnui/index.js.map +0 -1
- package/dist/shadcnui/index.mjs +0 -467
- package/dist/shadcnui/index.mjs.map +0 -1
- package/dist/token-IJSPOMW6.mjs +0 -9
- package/dist/token-IJSPOMW6.mjs.map +0 -1
- package/dist/token-UYE7CV6X.js +0 -9
- package/dist/token-UYE7CV6X.js.map +0 -1
- package/dist/types-B2QRyqyK.d.ts +0 -39
- package/dist/types-CgvNmxTd.d.mts +0 -39
- package/dist/types-t2PyXhDu.d.mts +0 -116
- package/dist/types-t2PyXhDu.d.ts +0 -116
- package/dist/user.interface-CAsTIbuQ.d.mts +0 -85
- package/dist/user.interface-CbWqMaaU.d.ts +0 -85
- package/dist/utils/index.d.mts +0 -224
- package/dist/utils/index.d.ts +0 -224
- package/dist/utils/index.js +0 -46
- package/dist/utils/index.js.map +0 -1
- package/dist/utils/index.mjs +0 -46
- package/dist/utils/index.mjs.map +0 -1
- /package/dist/{JsonApiRequest-6UR7DIAR.mjs.map → JsonApiRequest-VCCRO732.mjs.map} +0 -0
- /package/dist/{chunk-IKBA4AHN.mjs.map → chunk-F4Y3GZG4.mjs.map} +0 -0
- /package/dist/{chunk-HAG77QBV.mjs.map → chunk-K4W5QXL5.mjs.map} +0 -0
- /package/dist/{atoms/index.mjs.map → request-XABCMU25.mjs.map} +0 -0
- /package/dist/{features/index.mjs.map → token-EOK3N45S.mjs.map} +0 -0
package/dist/chunk-5IET37O4.js
DELETED
|
@@ -1,4210 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
var _chunkDEYKTLA3js = require('./chunk-DEYKTLA3.js');
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
var _chunk7QVYU63Ejs = require('./chunk-7QVYU63E.js');
|
|
10
|
-
|
|
11
|
-
// src/shadcnui/ui/accordion.tsx
|
|
12
|
-
var _reactaccordion = require('@radix-ui/react-accordion'); var AccordionPrimitive = _interopRequireWildcard(_reactaccordion);
|
|
13
|
-
var _reacticons = require('@radix-ui/react-icons');
|
|
14
|
-
var _react = require('react'); var React = _interopRequireWildcard(_react); var React2 = _interopRequireWildcard(_react); var React3 = _interopRequireWildcard(_react); var React4 = _interopRequireWildcard(_react); var React5 = _interopRequireWildcard(_react); var React6 = _interopRequireWildcard(_react); var React7 = _interopRequireWildcard(_react); var React8 = _interopRequireWildcard(_react); var React9 = _interopRequireWildcard(_react); var React11 = _interopRequireWildcard(_react); var React10 = _interopRequireWildcard(_react); var React12 = _interopRequireWildcard(_react); var React13 = _interopRequireWildcard(_react); var React14 = _interopRequireWildcard(_react); var React16 = _interopRequireWildcard(_react); var React15 = _interopRequireWildcard(_react); var React17 = _interopRequireWildcard(_react); var React18 = _interopRequireWildcard(_react); var React19 = _interopRequireWildcard(_react); var React20 = _interopRequireWildcard(_react); var React21 = _interopRequireWildcard(_react); var React22 = _interopRequireWildcard(_react); var React23 = _interopRequireWildcard(_react); var React24 = _interopRequireWildcard(_react); var React25 = _interopRequireWildcard(_react); var React26 = _interopRequireWildcard(_react); var React27 = _interopRequireWildcard(_react); var React28 = _interopRequireWildcard(_react); var React29 = _interopRequireWildcard(_react); var React30 = _interopRequireWildcard(_react); var React31 = _interopRequireWildcard(_react); var React32 = _interopRequireWildcard(_react);
|
|
15
|
-
var _jsxruntime = require('react/jsx-runtime');
|
|
16
|
-
var Accordion = AccordionPrimitive.Root;
|
|
17
|
-
var AccordionItem = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AccordionPrimitive.Item, { ref, className: _chunkDEYKTLA3js.cn.call(void 0, "border-b", className), ...props }));
|
|
18
|
-
AccordionItem.displayName = "AccordionItem";
|
|
19
|
-
var AccordionTrigger = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AccordionPrimitive.Header, { className: "flex", asChild: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20
|
-
AccordionPrimitive.Trigger,
|
|
21
|
-
{
|
|
22
|
-
ref,
|
|
23
|
-
className: _chunkDEYKTLA3js.cn.call(void 0, "flex flex-1 items-center justify-between py-4 text-sm font-medium transition-all", className),
|
|
24
|
-
...props,
|
|
25
|
-
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center", children: [
|
|
26
|
-
children,
|
|
27
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reacticons.ChevronDownIcon, { className: "h-4 w-4 shrink-0 bg-transparent text-muted-foreground transition-transform duration-200 [&[data-state=open]>svg]:rotate-180" })
|
|
28
|
-
] })
|
|
29
|
-
}
|
|
30
|
-
) }));
|
|
31
|
-
AccordionTrigger.displayName = AccordionPrimitive.Trigger.displayName;
|
|
32
|
-
var AccordionContent = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33
|
-
AccordionPrimitive.Content,
|
|
34
|
-
{
|
|
35
|
-
ref,
|
|
36
|
-
className: "overflow-hidden text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",
|
|
37
|
-
...props,
|
|
38
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkDEYKTLA3js.cn.call(void 0, "pb-4 pt-0", className), children })
|
|
39
|
-
}
|
|
40
|
-
));
|
|
41
|
-
AccordionContent.displayName = AccordionPrimitive.Content.displayName;
|
|
42
|
-
|
|
43
|
-
// src/shadcnui/ui/alert.tsx
|
|
44
|
-
var _classvarianceauthority = require('class-variance-authority');
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
var alertVariants = _classvarianceauthority.cva.call(void 0,
|
|
48
|
-
"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",
|
|
49
|
-
{
|
|
50
|
-
variants: {
|
|
51
|
-
variant: {
|
|
52
|
-
default: "bg-background text-foreground",
|
|
53
|
-
destructive: "border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"
|
|
54
|
-
}
|
|
55
|
-
},
|
|
56
|
-
defaultVariants: {
|
|
57
|
-
variant: "default"
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
);
|
|
61
|
-
var Alert = React2.forwardRef(({ className, variant, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, role: "alert", className: _chunkDEYKTLA3js.cn.call(void 0, alertVariants({ variant }), className), ...props }));
|
|
62
|
-
Alert.displayName = "Alert";
|
|
63
|
-
var AlertTitle = React2.forwardRef(
|
|
64
|
-
({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h5", { ref, className: _chunkDEYKTLA3js.cn.call(void 0, "mb-1 font-medium leading-none tracking-tight", className), ...props })
|
|
65
|
-
);
|
|
66
|
-
AlertTitle.displayName = "AlertTitle";
|
|
67
|
-
var AlertDescription = React2.forwardRef(
|
|
68
|
-
({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, className: _chunkDEYKTLA3js.cn.call(void 0, "text-sm [&_p]:leading-relaxed", className), ...props })
|
|
69
|
-
);
|
|
70
|
-
AlertDescription.displayName = "AlertDescription";
|
|
71
|
-
|
|
72
|
-
// src/shadcnui/ui/alert-dialog.tsx
|
|
73
|
-
var _reactalertdialog = require('@radix-ui/react-alert-dialog'); var AlertDialogPrimitive = _interopRequireWildcard(_reactalertdialog);
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
// src/shadcnui/ui/button.tsx
|
|
77
|
-
var _reactslot = require('@radix-ui/react-slot');
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
var buttonVariants = _classvarianceauthority.cva.call(void 0,
|
|
81
|
-
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
|
|
82
|
-
{
|
|
83
|
-
variants: {
|
|
84
|
-
variant: {
|
|
85
|
-
default: "bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",
|
|
86
|
-
destructive: "bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",
|
|
87
|
-
outline: "border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",
|
|
88
|
-
secondary: "bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",
|
|
89
|
-
ghost: "hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",
|
|
90
|
-
ghostdestructive: "hover:bg-destructive hover:text-primary-foreground",
|
|
91
|
-
link: "text-primary underline-offset-4 hover:underline"
|
|
92
|
-
},
|
|
93
|
-
size: {
|
|
94
|
-
default: "h-9 px-4 py-2 has-[>svg]:px-3",
|
|
95
|
-
sm: "h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",
|
|
96
|
-
lg: "h-10 rounded-md px-6 has-[>svg]:px-4",
|
|
97
|
-
icon: "size-9"
|
|
98
|
-
}
|
|
99
|
-
},
|
|
100
|
-
defaultVariants: {
|
|
101
|
-
variant: "default",
|
|
102
|
-
size: "default"
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
);
|
|
106
|
-
function Button({
|
|
107
|
-
className,
|
|
108
|
-
variant,
|
|
109
|
-
size,
|
|
110
|
-
asChild = false,
|
|
111
|
-
...props
|
|
112
|
-
}) {
|
|
113
|
-
const Comp = asChild ? _reactslot.Slot : "button";
|
|
114
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Comp, { "data-slot": "button", className: _chunkDEYKTLA3js.cn.call(void 0, buttonVariants({ variant, size, className })), ...props });
|
|
115
|
-
}
|
|
116
|
-
_chunk7QVYU63Ejs.__name.call(void 0, Button, "Button");
|
|
117
|
-
|
|
118
|
-
// src/shadcnui/ui/alert-dialog.tsx
|
|
119
|
-
|
|
120
|
-
var AlertDialog = AlertDialogPrimitive.Root;
|
|
121
|
-
var AlertDialogTrigger = AlertDialogPrimitive.Trigger;
|
|
122
|
-
var AlertDialogPortal = AlertDialogPrimitive.Portal;
|
|
123
|
-
var AlertDialogOverlay = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
124
|
-
AlertDialogPrimitive.Overlay,
|
|
125
|
-
{
|
|
126
|
-
className: _chunkDEYKTLA3js.cn.call(void 0,
|
|
127
|
-
"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",
|
|
128
|
-
className
|
|
129
|
-
),
|
|
130
|
-
...props,
|
|
131
|
-
ref
|
|
132
|
-
}
|
|
133
|
-
));
|
|
134
|
-
AlertDialogOverlay.displayName = AlertDialogPrimitive.Overlay.displayName;
|
|
135
|
-
var AlertDialogContent = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, AlertDialogPortal, { children: [
|
|
136
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AlertDialogOverlay, {}),
|
|
137
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
138
|
-
AlertDialogPrimitive.Content,
|
|
139
|
-
{
|
|
140
|
-
ref,
|
|
141
|
-
className: _chunkDEYKTLA3js.cn.call(void 0,
|
|
142
|
-
"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",
|
|
143
|
-
className
|
|
144
|
-
),
|
|
145
|
-
...props
|
|
146
|
-
}
|
|
147
|
-
)
|
|
148
|
-
] }));
|
|
149
|
-
AlertDialogContent.displayName = AlertDialogPrimitive.Content.displayName;
|
|
150
|
-
var AlertDialogHeader = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({
|
|
151
|
-
className,
|
|
152
|
-
...props
|
|
153
|
-
}) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
154
|
-
"div",
|
|
155
|
-
{
|
|
156
|
-
className: _chunkDEYKTLA3js.cn.call(void 0,
|
|
157
|
-
"flex flex-col space-y-2 text-center sm:text-left",
|
|
158
|
-
className
|
|
159
|
-
),
|
|
160
|
-
...props
|
|
161
|
-
}
|
|
162
|
-
), "AlertDialogHeader");
|
|
163
|
-
AlertDialogHeader.displayName = "AlertDialogHeader";
|
|
164
|
-
var AlertDialogFooter = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({
|
|
165
|
-
className,
|
|
166
|
-
...props
|
|
167
|
-
}) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
168
|
-
"div",
|
|
169
|
-
{
|
|
170
|
-
className: _chunkDEYKTLA3js.cn.call(void 0,
|
|
171
|
-
"flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",
|
|
172
|
-
className
|
|
173
|
-
),
|
|
174
|
-
...props
|
|
175
|
-
}
|
|
176
|
-
), "AlertDialogFooter");
|
|
177
|
-
AlertDialogFooter.displayName = "AlertDialogFooter";
|
|
178
|
-
var AlertDialogTitle = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
179
|
-
AlertDialogPrimitive.Title,
|
|
180
|
-
{
|
|
181
|
-
ref,
|
|
182
|
-
className: _chunkDEYKTLA3js.cn.call(void 0, "text-lg font-semibold", className),
|
|
183
|
-
...props
|
|
184
|
-
}
|
|
185
|
-
));
|
|
186
|
-
AlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName;
|
|
187
|
-
var AlertDialogDescription = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
188
|
-
AlertDialogPrimitive.Description,
|
|
189
|
-
{
|
|
190
|
-
ref,
|
|
191
|
-
className: _chunkDEYKTLA3js.cn.call(void 0, "text-sm text-muted-foreground", className),
|
|
192
|
-
...props
|
|
193
|
-
}
|
|
194
|
-
));
|
|
195
|
-
AlertDialogDescription.displayName = AlertDialogPrimitive.Description.displayName;
|
|
196
|
-
var AlertDialogAction = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
197
|
-
AlertDialogPrimitive.Action,
|
|
198
|
-
{
|
|
199
|
-
ref,
|
|
200
|
-
className: _chunkDEYKTLA3js.cn.call(void 0, buttonVariants(), className),
|
|
201
|
-
...props
|
|
202
|
-
}
|
|
203
|
-
));
|
|
204
|
-
AlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName;
|
|
205
|
-
var AlertDialogCancel = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
206
|
-
AlertDialogPrimitive.Cancel,
|
|
207
|
-
{
|
|
208
|
-
ref,
|
|
209
|
-
className: _chunkDEYKTLA3js.cn.call(void 0,
|
|
210
|
-
buttonVariants({ variant: "outline" }),
|
|
211
|
-
"mt-2 sm:mt-0",
|
|
212
|
-
className
|
|
213
|
-
),
|
|
214
|
-
...props
|
|
215
|
-
}
|
|
216
|
-
));
|
|
217
|
-
AlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName;
|
|
218
|
-
|
|
219
|
-
// src/shadcnui/ui/avatar.tsx
|
|
220
|
-
var _reactavatar = require('@radix-ui/react-avatar'); var AvatarPrimitive = _interopRequireWildcard(_reactavatar);
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
var Avatar = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
224
|
-
AvatarPrimitive.Root,
|
|
225
|
-
{
|
|
226
|
-
ref,
|
|
227
|
-
className: _chunkDEYKTLA3js.cn.call(void 0,
|
|
228
|
-
"relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",
|
|
229
|
-
className
|
|
230
|
-
),
|
|
231
|
-
...props
|
|
232
|
-
}
|
|
233
|
-
));
|
|
234
|
-
Avatar.displayName = AvatarPrimitive.Root.displayName;
|
|
235
|
-
var AvatarImage = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
236
|
-
AvatarPrimitive.Image,
|
|
237
|
-
{
|
|
238
|
-
ref,
|
|
239
|
-
className: _chunkDEYKTLA3js.cn.call(void 0, "aspect-square h-full w-full", className),
|
|
240
|
-
...props
|
|
241
|
-
}
|
|
242
|
-
));
|
|
243
|
-
AvatarImage.displayName = AvatarPrimitive.Image.displayName;
|
|
244
|
-
var AvatarFallback = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
245
|
-
AvatarPrimitive.Fallback,
|
|
246
|
-
{
|
|
247
|
-
ref,
|
|
248
|
-
className: _chunkDEYKTLA3js.cn.call(void 0,
|
|
249
|
-
"flex h-full w-full items-center justify-center rounded-full bg-muted",
|
|
250
|
-
className
|
|
251
|
-
),
|
|
252
|
-
...props
|
|
253
|
-
}
|
|
254
|
-
));
|
|
255
|
-
AvatarFallback.displayName = AvatarPrimitive.Fallback.displayName;
|
|
256
|
-
|
|
257
|
-
// src/shadcnui/ui/badge.tsx
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
var badgeVariants = _classvarianceauthority.cva.call(void 0,
|
|
261
|
-
"inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
|
|
262
|
-
{
|
|
263
|
-
variants: {
|
|
264
|
-
variant: {
|
|
265
|
-
default: "border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",
|
|
266
|
-
secondary: "border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",
|
|
267
|
-
destructive: "border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",
|
|
268
|
-
outline: "text-foreground",
|
|
269
|
-
blue: "border-transparent bg-sky-500 text-primary-foreground rounded-full",
|
|
270
|
-
green: "border-transparent bg-emerald-500 text-primary-foreground rounded-full",
|
|
271
|
-
red: "border-transparent bg-red-500 text-primary-foreground rounded-full",
|
|
272
|
-
yellow: "border-transparent bg-yellow-500 text-primary-foreground rounded-full",
|
|
273
|
-
purple: "border-transparent bg-purple-500 text-primary-foreground rounded-full",
|
|
274
|
-
pink: "border-transparent bg-pink-500 text-primary-foreground rounded-full",
|
|
275
|
-
gray: "border-transparent bg-gray-500 text-primary-foreground rounded-full",
|
|
276
|
-
orange: "border-transparent bg-orange-500 text-primary-foreground rounded-full",
|
|
277
|
-
teal: "border-transparent bg-teal-500 text-primary-foreground rounded-full",
|
|
278
|
-
lime: "border-transparent bg-lime-500 text-primary-foreground rounded-full"
|
|
279
|
-
}
|
|
280
|
-
},
|
|
281
|
-
defaultVariants: {
|
|
282
|
-
variant: "default"
|
|
283
|
-
}
|
|
284
|
-
}
|
|
285
|
-
);
|
|
286
|
-
function Badge({ className, variant, ...props }) {
|
|
287
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkDEYKTLA3js.cn.call(void 0, badgeVariants({ variant }), className), ...props });
|
|
288
|
-
}
|
|
289
|
-
_chunk7QVYU63Ejs.__name.call(void 0, Badge, "Badge");
|
|
290
|
-
|
|
291
|
-
// src/shadcnui/ui/breadcrumb.tsx
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
var Breadcrumb = React5.forwardRef(({ ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "nav", { ref, "aria-label": "breadcrumb", ...props }));
|
|
297
|
-
Breadcrumb.displayName = "Breadcrumb";
|
|
298
|
-
var BreadcrumbList = React5.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
299
|
-
"ol",
|
|
300
|
-
{
|
|
301
|
-
ref,
|
|
302
|
-
className: _chunkDEYKTLA3js.cn.call(void 0,
|
|
303
|
-
"flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",
|
|
304
|
-
className
|
|
305
|
-
),
|
|
306
|
-
...props
|
|
307
|
-
}
|
|
308
|
-
));
|
|
309
|
-
BreadcrumbList.displayName = "BreadcrumbList";
|
|
310
|
-
var BreadcrumbItem = React5.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
311
|
-
"li",
|
|
312
|
-
{
|
|
313
|
-
ref,
|
|
314
|
-
className: _chunkDEYKTLA3js.cn.call(void 0, "inline-flex items-center gap-1.5", className),
|
|
315
|
-
...props
|
|
316
|
-
}
|
|
317
|
-
));
|
|
318
|
-
BreadcrumbItem.displayName = "BreadcrumbItem";
|
|
319
|
-
var BreadcrumbLink = React5.forwardRef(({ asChild, className, ...props }, ref) => {
|
|
320
|
-
const Comp = asChild ? _reactslot.Slot : "a";
|
|
321
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
322
|
-
Comp,
|
|
323
|
-
{
|
|
324
|
-
ref,
|
|
325
|
-
className: _chunkDEYKTLA3js.cn.call(void 0, "transition-colors hover:text-foreground", className),
|
|
326
|
-
...props
|
|
327
|
-
}
|
|
328
|
-
);
|
|
329
|
-
});
|
|
330
|
-
BreadcrumbLink.displayName = "BreadcrumbLink";
|
|
331
|
-
var BreadcrumbPage = React5.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
332
|
-
"span",
|
|
333
|
-
{
|
|
334
|
-
ref,
|
|
335
|
-
role: "link",
|
|
336
|
-
"aria-disabled": "true",
|
|
337
|
-
"aria-current": "page",
|
|
338
|
-
className: _chunkDEYKTLA3js.cn.call(void 0, "font-normal text-foreground", className),
|
|
339
|
-
...props
|
|
340
|
-
}
|
|
341
|
-
));
|
|
342
|
-
BreadcrumbPage.displayName = "BreadcrumbPage";
|
|
343
|
-
var BreadcrumbSeparator = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({
|
|
344
|
-
children,
|
|
345
|
-
className,
|
|
346
|
-
...props
|
|
347
|
-
}) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
348
|
-
"li",
|
|
349
|
-
{
|
|
350
|
-
role: "presentation",
|
|
351
|
-
"aria-hidden": "true",
|
|
352
|
-
className: _chunkDEYKTLA3js.cn.call(void 0, "[&>svg]:h-3.5 [&>svg]:w-3.5", className),
|
|
353
|
-
...props,
|
|
354
|
-
children: _nullishCoalesce(children, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reacticons.ChevronRightIcon, {})))
|
|
355
|
-
}
|
|
356
|
-
), "BreadcrumbSeparator");
|
|
357
|
-
BreadcrumbSeparator.displayName = "BreadcrumbSeparator";
|
|
358
|
-
var BreadcrumbEllipsis = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({
|
|
359
|
-
className,
|
|
360
|
-
...props
|
|
361
|
-
}) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
362
|
-
"span",
|
|
363
|
-
{
|
|
364
|
-
role: "presentation",
|
|
365
|
-
"aria-hidden": "true",
|
|
366
|
-
className: _chunkDEYKTLA3js.cn.call(void 0, "flex h-9 w-9 items-center justify-center", className),
|
|
367
|
-
...props,
|
|
368
|
-
children: [
|
|
369
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reacticons.DotsHorizontalIcon, { className: "h-4 w-4" }),
|
|
370
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "sr-only", children: "More" })
|
|
371
|
-
]
|
|
372
|
-
}
|
|
373
|
-
), "BreadcrumbEllipsis");
|
|
374
|
-
BreadcrumbEllipsis.displayName = "BreadcrumbElipssis";
|
|
375
|
-
|
|
376
|
-
// src/shadcnui/ui/calendar.tsx
|
|
377
|
-
var _reactdaypicker = require('react-day-picker');
|
|
378
|
-
|
|
379
|
-
function Calendar({ className, classNames, showOutsideDays = true, ...props }) {
|
|
380
|
-
const defaultClassNames = _reactdaypicker.getDefaultClassNames.call(void 0, );
|
|
381
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
382
|
-
_reactdaypicker.DayPicker,
|
|
383
|
-
{
|
|
384
|
-
showOutsideDays,
|
|
385
|
-
className: _chunkDEYKTLA3js.cn.call(void 0, "p-3", className),
|
|
386
|
-
classNames: {
|
|
387
|
-
months: `relative flex ${defaultClassNames.month}`,
|
|
388
|
-
month_caption: `relative mx-10 flex h-7 items-center justify-center ${defaultClassNames.month_caption}`,
|
|
389
|
-
weekdays: _chunkDEYKTLA3js.cn.call(void 0, "flex flex-row", _optionalChain([classNames, 'optionalAccess', _ => _.weekdays])),
|
|
390
|
-
weekday: _chunkDEYKTLA3js.cn.call(void 0, "w-8 text-sm font-normal text-muted-foreground", _optionalChain([classNames, 'optionalAccess', _2 => _2.weekday])),
|
|
391
|
-
month: _chunkDEYKTLA3js.cn.call(void 0, "w-full", _optionalChain([classNames, 'optionalAccess', _3 => _3.month])),
|
|
392
|
-
caption_label: _chunkDEYKTLA3js.cn.call(void 0, "truncate text-sm font-medium", _optionalChain([classNames, 'optionalAccess', _4 => _4.caption_label])),
|
|
393
|
-
button_next: _chunkDEYKTLA3js.cn.call(void 0,
|
|
394
|
-
buttonVariants({ variant: "outline" }),
|
|
395
|
-
"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100 absolute right-1 [&_svg]:fill-foreground",
|
|
396
|
-
_optionalChain([classNames, 'optionalAccess', _5 => _5.button_next])
|
|
397
|
-
),
|
|
398
|
-
button_previous: _chunkDEYKTLA3js.cn.call(void 0,
|
|
399
|
-
buttonVariants({ variant: "outline" }),
|
|
400
|
-
"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100 absolute left-1 [&_svg]:fill-foreground",
|
|
401
|
-
_optionalChain([classNames, 'optionalAccess', _6 => _6.button_previous])
|
|
402
|
-
),
|
|
403
|
-
nav: _chunkDEYKTLA3js.cn.call(void 0, "flex items-start", _optionalChain([classNames, 'optionalAccess', _7 => _7.nav])),
|
|
404
|
-
month_grid: _chunkDEYKTLA3js.cn.call(void 0, "mx-auto mt-4", _optionalChain([classNames, 'optionalAccess', _8 => _8.month_grid])),
|
|
405
|
-
week: _chunkDEYKTLA3js.cn.call(void 0, "mt-2 flex w-max items-start", _optionalChain([classNames, 'optionalAccess', _9 => _9.week])),
|
|
406
|
-
day: _chunkDEYKTLA3js.cn.call(void 0, "flex size-8 flex-1 items-center justify-center p-0 text-sm", _optionalChain([classNames, 'optionalAccess', _10 => _10.day])),
|
|
407
|
-
day_button: _chunkDEYKTLA3js.cn.call(void 0,
|
|
408
|
-
"size-8 rounded-md p-0 font-normal transition-none aria-selected:opacity-100",
|
|
409
|
-
_optionalChain([classNames, 'optionalAccess', _11 => _11.day_button])
|
|
410
|
-
),
|
|
411
|
-
range_start: _chunkDEYKTLA3js.cn.call(void 0,
|
|
412
|
-
"bg-accent [&>button]:bg-primary [&>button]:text-primary-foreground [&>button]:hover:bg-primary [&>button]:hover:text-primary-foreground day-range-start rounded-s-md",
|
|
413
|
-
_optionalChain([classNames, 'optionalAccess', _12 => _12.range_start])
|
|
414
|
-
),
|
|
415
|
-
range_middle: _chunkDEYKTLA3js.cn.call(void 0,
|
|
416
|
-
"bg-accent !text-foreground [&>button]:bg-transparent [&>button]:!text-foreground [&>button]:hover:bg-transparent [&>button]:hover:!text-foreground",
|
|
417
|
-
_optionalChain([classNames, 'optionalAccess', _13 => _13.range_middle])
|
|
418
|
-
),
|
|
419
|
-
range_end: _chunkDEYKTLA3js.cn.call(void 0,
|
|
420
|
-
"bg-accent [&>button]:bg-primary [&>button]:text-primary-foreground [&>button]:hover:bg-primary [&>button]:hover:text-primary-foreground day-range-end rounded-e-md",
|
|
421
|
-
_optionalChain([classNames, 'optionalAccess', _14 => _14.range_end])
|
|
422
|
-
),
|
|
423
|
-
selected: _chunkDEYKTLA3js.cn.call(void 0,
|
|
424
|
-
"[&>button]:bg-primary [&>button]:text-primary-foreground [&>button]:hover:bg-primary [&>button]:hover:text-primary-foreground",
|
|
425
|
-
_optionalChain([classNames, 'optionalAccess', _15 => _15.selected])
|
|
426
|
-
),
|
|
427
|
-
today: _chunkDEYKTLA3js.cn.call(void 0, "[&>button]:bg-accent [&>button]:text-accent-foreground", _optionalChain([classNames, 'optionalAccess', _16 => _16.today])),
|
|
428
|
-
outside: _chunkDEYKTLA3js.cn.call(void 0,
|
|
429
|
-
"day-outside text-muted-foreground opacity-50 aria-selected:bg-accent/50 aria-selected:text-muted-foreground aria-selected:opacity-30",
|
|
430
|
-
_optionalChain([classNames, 'optionalAccess', _17 => _17.outside])
|
|
431
|
-
),
|
|
432
|
-
disabled: _chunkDEYKTLA3js.cn.call(void 0, "text-muted-foreground opacity-50", _optionalChain([classNames, 'optionalAccess', _18 => _18.disabled])),
|
|
433
|
-
hidden: _chunkDEYKTLA3js.cn.call(void 0, "invisible flex-1", _optionalChain([classNames, 'optionalAccess', _19 => _19.hidden])),
|
|
434
|
-
...classNames
|
|
435
|
-
},
|
|
436
|
-
...props
|
|
437
|
-
}
|
|
438
|
-
);
|
|
439
|
-
}
|
|
440
|
-
_chunk7QVYU63Ejs.__name.call(void 0, Calendar, "Calendar");
|
|
441
|
-
Calendar.displayName = "Calendar";
|
|
442
|
-
|
|
443
|
-
// src/shadcnui/ui/card.tsx
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
var Card = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, className: _chunkDEYKTLA3js.cn.call(void 0, "rounded-xl border bg-card text-card-foreground shadow", className), ...props }));
|
|
447
|
-
Card.displayName = "Card";
|
|
448
|
-
var CardHeader = React6.forwardRef(
|
|
449
|
-
({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, className: _chunkDEYKTLA3js.cn.call(void 0, "flex flex-col space-y-1.5 p-6", className), ...props })
|
|
450
|
-
);
|
|
451
|
-
CardHeader.displayName = "CardHeader";
|
|
452
|
-
var CardTitle = React6.forwardRef(
|
|
453
|
-
({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, className: _chunkDEYKTLA3js.cn.call(void 0, "font-semibold leading-none tracking-tight", className), ...props })
|
|
454
|
-
);
|
|
455
|
-
CardTitle.displayName = "CardTitle";
|
|
456
|
-
var CardDescription = React6.forwardRef(
|
|
457
|
-
({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, className: _chunkDEYKTLA3js.cn.call(void 0, "text-sm text-muted-foreground", className), ...props })
|
|
458
|
-
);
|
|
459
|
-
CardDescription.displayName = "CardDescription";
|
|
460
|
-
var CardContent = React6.forwardRef(
|
|
461
|
-
({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, className: _chunkDEYKTLA3js.cn.call(void 0, "p-6 pt-0", className), ...props })
|
|
462
|
-
);
|
|
463
|
-
CardContent.displayName = "CardContent";
|
|
464
|
-
var CardFooter = React6.forwardRef(
|
|
465
|
-
({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, className: _chunkDEYKTLA3js.cn.call(void 0, "flex items-center p-6 pt-0", className), ...props })
|
|
466
|
-
);
|
|
467
|
-
CardFooter.displayName = "CardFooter";
|
|
468
|
-
|
|
469
|
-
// src/shadcnui/ui/carousel.tsx
|
|
470
|
-
|
|
471
|
-
var _emblacarouselreact = require('embla-carousel-react'); var _emblacarouselreact2 = _interopRequireDefault(_emblacarouselreact);
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
var CarouselContext = React7.createContext(null);
|
|
475
|
-
function useCarousel() {
|
|
476
|
-
const context = React7.useContext(CarouselContext);
|
|
477
|
-
if (!context) {
|
|
478
|
-
throw new Error("useCarousel must be used within a <Carousel />");
|
|
479
|
-
}
|
|
480
|
-
return context;
|
|
481
|
-
}
|
|
482
|
-
_chunk7QVYU63Ejs.__name.call(void 0, useCarousel, "useCarousel");
|
|
483
|
-
var Carousel = React7.forwardRef(
|
|
484
|
-
({ orientation = "horizontal", opts, setApi, plugins, className, children, ...props }, ref) => {
|
|
485
|
-
const [carouselRef, api] = _emblacarouselreact2.default.call(void 0,
|
|
486
|
-
{
|
|
487
|
-
...opts,
|
|
488
|
-
axis: orientation === "horizontal" ? "x" : "y"
|
|
489
|
-
},
|
|
490
|
-
plugins
|
|
491
|
-
);
|
|
492
|
-
const [canScrollPrev, setCanScrollPrev] = React7.useState(false);
|
|
493
|
-
const [canScrollNext, setCanScrollNext] = React7.useState(false);
|
|
494
|
-
const onSelect = React7.useCallback((api2) => {
|
|
495
|
-
if (!api2) {
|
|
496
|
-
return;
|
|
497
|
-
}
|
|
498
|
-
setCanScrollPrev(api2.canScrollPrev());
|
|
499
|
-
setCanScrollNext(api2.canScrollNext());
|
|
500
|
-
}, []);
|
|
501
|
-
const scrollPrev = React7.useCallback(() => {
|
|
502
|
-
_optionalChain([api, 'optionalAccess', _20 => _20.scrollPrev, 'call', _21 => _21()]);
|
|
503
|
-
}, [api]);
|
|
504
|
-
const scrollNext = React7.useCallback(() => {
|
|
505
|
-
_optionalChain([api, 'optionalAccess', _22 => _22.scrollNext, 'call', _23 => _23()]);
|
|
506
|
-
}, [api]);
|
|
507
|
-
const handleKeyDown = React7.useCallback(
|
|
508
|
-
(event) => {
|
|
509
|
-
if (event.key === "ArrowLeft") {
|
|
510
|
-
event.preventDefault();
|
|
511
|
-
scrollPrev();
|
|
512
|
-
} else if (event.key === "ArrowRight") {
|
|
513
|
-
event.preventDefault();
|
|
514
|
-
scrollNext();
|
|
515
|
-
}
|
|
516
|
-
},
|
|
517
|
-
[scrollPrev, scrollNext]
|
|
518
|
-
);
|
|
519
|
-
React7.useEffect(() => {
|
|
520
|
-
if (!api || !setApi) {
|
|
521
|
-
return;
|
|
522
|
-
}
|
|
523
|
-
setApi(api);
|
|
524
|
-
}, [api, setApi]);
|
|
525
|
-
React7.useEffect(() => {
|
|
526
|
-
if (!api) {
|
|
527
|
-
return;
|
|
528
|
-
}
|
|
529
|
-
onSelect(api);
|
|
530
|
-
api.on("reInit", onSelect);
|
|
531
|
-
api.on("select", onSelect);
|
|
532
|
-
return () => {
|
|
533
|
-
_optionalChain([api, 'optionalAccess', _24 => _24.off, 'call', _25 => _25("select", onSelect)]);
|
|
534
|
-
};
|
|
535
|
-
}, [api, onSelect]);
|
|
536
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
537
|
-
CarouselContext.Provider,
|
|
538
|
-
{
|
|
539
|
-
value: {
|
|
540
|
-
carouselRef,
|
|
541
|
-
api,
|
|
542
|
-
opts,
|
|
543
|
-
orientation: orientation || (_optionalChain([opts, 'optionalAccess', _26 => _26.axis]) === "y" ? "vertical" : "horizontal"),
|
|
544
|
-
scrollPrev,
|
|
545
|
-
scrollNext,
|
|
546
|
-
canScrollPrev,
|
|
547
|
-
canScrollNext
|
|
548
|
-
},
|
|
549
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
550
|
-
"div",
|
|
551
|
-
{
|
|
552
|
-
ref,
|
|
553
|
-
onKeyDownCapture: handleKeyDown,
|
|
554
|
-
className: _chunkDEYKTLA3js.cn.call(void 0, "relative", className),
|
|
555
|
-
role: "region",
|
|
556
|
-
"aria-roledescription": "carousel",
|
|
557
|
-
...props,
|
|
558
|
-
children
|
|
559
|
-
}
|
|
560
|
-
)
|
|
561
|
-
}
|
|
562
|
-
);
|
|
563
|
-
}
|
|
564
|
-
);
|
|
565
|
-
Carousel.displayName = "Carousel";
|
|
566
|
-
var CarouselContent = React7.forwardRef(
|
|
567
|
-
({ className, ...props }, ref) => {
|
|
568
|
-
const { carouselRef, orientation } = useCarousel();
|
|
569
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: carouselRef, className: "overflow-hidden", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
570
|
-
"div",
|
|
571
|
-
{
|
|
572
|
-
ref,
|
|
573
|
-
className: _chunkDEYKTLA3js.cn.call(void 0, "flex", orientation === "horizontal" ? "-ml-4" : "-mt-4 flex-col", className),
|
|
574
|
-
...props
|
|
575
|
-
}
|
|
576
|
-
) });
|
|
577
|
-
}
|
|
578
|
-
);
|
|
579
|
-
CarouselContent.displayName = "CarouselContent";
|
|
580
|
-
var CarouselItem = React7.forwardRef(
|
|
581
|
-
({ className, ...props }, ref) => {
|
|
582
|
-
const { orientation } = useCarousel();
|
|
583
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
584
|
-
"div",
|
|
585
|
-
{
|
|
586
|
-
ref,
|
|
587
|
-
role: "group",
|
|
588
|
-
"aria-roledescription": "slide",
|
|
589
|
-
className: _chunkDEYKTLA3js.cn.call(void 0, "min-w-0 shrink-0 grow-0 basis-full", orientation === "horizontal" ? "pl-4" : "pt-4", className),
|
|
590
|
-
...props
|
|
591
|
-
}
|
|
592
|
-
);
|
|
593
|
-
}
|
|
594
|
-
);
|
|
595
|
-
CarouselItem.displayName = "CarouselItem";
|
|
596
|
-
var CarouselPrevious = React7.forwardRef(
|
|
597
|
-
({ className, variant = "outline", size = "icon", ...props }, ref) => {
|
|
598
|
-
const { orientation, scrollPrev, canScrollPrev } = useCarousel();
|
|
599
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
600
|
-
Button,
|
|
601
|
-
{
|
|
602
|
-
ref,
|
|
603
|
-
variant,
|
|
604
|
-
size,
|
|
605
|
-
className: _chunkDEYKTLA3js.cn.call(void 0,
|
|
606
|
-
"absolute h-8 w-8 rounded-full",
|
|
607
|
-
orientation === "horizontal" ? "-left-12 top-1/2 -translate-y-1/2" : "-top-12 left-1/2 -translate-x-1/2 rotate-90",
|
|
608
|
-
className
|
|
609
|
-
),
|
|
610
|
-
disabled: !canScrollPrev,
|
|
611
|
-
onClick: scrollPrev,
|
|
612
|
-
...props,
|
|
613
|
-
children: [
|
|
614
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reacticons.ArrowLeftIcon, { className: "h-4 w-4" }),
|
|
615
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "sr-only", children: "Previous slide" })
|
|
616
|
-
]
|
|
617
|
-
}
|
|
618
|
-
);
|
|
619
|
-
}
|
|
620
|
-
);
|
|
621
|
-
CarouselPrevious.displayName = "CarouselPrevious";
|
|
622
|
-
var CarouselNext = React7.forwardRef(
|
|
623
|
-
({ className, variant = "outline", size = "icon", ...props }, ref) => {
|
|
624
|
-
const { orientation, scrollNext, canScrollNext } = useCarousel();
|
|
625
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
626
|
-
Button,
|
|
627
|
-
{
|
|
628
|
-
ref,
|
|
629
|
-
variant,
|
|
630
|
-
size,
|
|
631
|
-
className: _chunkDEYKTLA3js.cn.call(void 0,
|
|
632
|
-
"absolute h-8 w-8 rounded-full",
|
|
633
|
-
orientation === "horizontal" ? "-right-12 top-1/2 -translate-y-1/2" : "-bottom-12 left-1/2 -translate-x-1/2 rotate-90",
|
|
634
|
-
className
|
|
635
|
-
),
|
|
636
|
-
disabled: !canScrollNext,
|
|
637
|
-
onClick: scrollNext,
|
|
638
|
-
...props,
|
|
639
|
-
children: [
|
|
640
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reacticons.ArrowRightIcon, { className: "h-4 w-4" }),
|
|
641
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "sr-only", children: "Next slide" })
|
|
642
|
-
]
|
|
643
|
-
}
|
|
644
|
-
);
|
|
645
|
-
}
|
|
646
|
-
);
|
|
647
|
-
CarouselNext.displayName = "CarouselNext";
|
|
648
|
-
|
|
649
|
-
// src/shadcnui/ui/chart.tsx
|
|
650
|
-
|
|
651
|
-
var _recharts = require('recharts'); var RechartsPrimitive = _interopRequireWildcard(_recharts);
|
|
652
|
-
|
|
653
|
-
var THEMES = { light: "", dark: ".dark" };
|
|
654
|
-
var ChartContext = React8.createContext(null);
|
|
655
|
-
function useChart() {
|
|
656
|
-
const context = React8.useContext(ChartContext);
|
|
657
|
-
if (!context) {
|
|
658
|
-
throw new Error("useChart must be used within a <ChartContainer />");
|
|
659
|
-
}
|
|
660
|
-
return context;
|
|
661
|
-
}
|
|
662
|
-
_chunk7QVYU63Ejs.__name.call(void 0, useChart, "useChart");
|
|
663
|
-
function ChartContainer({
|
|
664
|
-
id,
|
|
665
|
-
className,
|
|
666
|
-
children,
|
|
667
|
-
config,
|
|
668
|
-
...props
|
|
669
|
-
}) {
|
|
670
|
-
const uniqueId = React8.useId();
|
|
671
|
-
const chartId = `chart-${id || uniqueId.replace(/:/g, "")}`;
|
|
672
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ChartContext.Provider, { value: { config }, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
673
|
-
"div",
|
|
674
|
-
{
|
|
675
|
-
"data-slot": "chart",
|
|
676
|
-
"data-chart": chartId,
|
|
677
|
-
className: _chunkDEYKTLA3js.cn.call(void 0,
|
|
678
|
-
"[&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border flex aspect-video justify-center text-xs [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-hidden [&_.recharts-sector]:outline-hidden [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-surface]:outline-hidden",
|
|
679
|
-
className
|
|
680
|
-
),
|
|
681
|
-
...props,
|
|
682
|
-
children: [
|
|
683
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ChartStyle, { id: chartId, config }),
|
|
684
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, RechartsPrimitive.ResponsiveContainer, { children })
|
|
685
|
-
]
|
|
686
|
-
}
|
|
687
|
-
) });
|
|
688
|
-
}
|
|
689
|
-
_chunk7QVYU63Ejs.__name.call(void 0, ChartContainer, "ChartContainer");
|
|
690
|
-
var ChartStyle = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ id, config }) => {
|
|
691
|
-
const colorConfig = Object.entries(config).filter(([, config2]) => config2.theme || config2.color);
|
|
692
|
-
if (!colorConfig.length) {
|
|
693
|
-
return null;
|
|
694
|
-
}
|
|
695
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
696
|
-
"style",
|
|
697
|
-
{
|
|
698
|
-
dangerouslySetInnerHTML: {
|
|
699
|
-
__html: Object.entries(THEMES).map(
|
|
700
|
-
([theme, prefix]) => `
|
|
701
|
-
${prefix} [data-chart=${id}] {
|
|
702
|
-
${colorConfig.map(([key, itemConfig]) => {
|
|
703
|
-
const color = _optionalChain([itemConfig, 'access', _27 => _27.theme, 'optionalAccess', _28 => _28[theme]]) || itemConfig.color;
|
|
704
|
-
return color ? ` --color-${key}: ${color};` : null;
|
|
705
|
-
}).join("\n")}
|
|
706
|
-
}
|
|
707
|
-
`
|
|
708
|
-
).join("\n")
|
|
709
|
-
}
|
|
710
|
-
}
|
|
711
|
-
);
|
|
712
|
-
}, "ChartStyle");
|
|
713
|
-
var ChartTooltip = RechartsPrimitive.Tooltip;
|
|
714
|
-
function ChartTooltipContent({
|
|
715
|
-
active,
|
|
716
|
-
payload,
|
|
717
|
-
label,
|
|
718
|
-
className,
|
|
719
|
-
indicator = "dot",
|
|
720
|
-
hideLabel = false,
|
|
721
|
-
hideIndicator = false,
|
|
722
|
-
labelFormatter,
|
|
723
|
-
formatter,
|
|
724
|
-
labelClassName,
|
|
725
|
-
color,
|
|
726
|
-
nameKey,
|
|
727
|
-
labelKey
|
|
728
|
-
}) {
|
|
729
|
-
const { config } = useChart();
|
|
730
|
-
const tooltipLabel = React8.useMemo(() => {
|
|
731
|
-
if (hideLabel || !_optionalChain([payload, 'optionalAccess', _29 => _29.length])) {
|
|
732
|
-
return null;
|
|
733
|
-
}
|
|
734
|
-
const [item] = payload;
|
|
735
|
-
const key = `${labelKey || _optionalChain([item, 'optionalAccess', _30 => _30.dataKey]) || _optionalChain([item, 'optionalAccess', _31 => _31.name]) || "value"}`;
|
|
736
|
-
const itemConfig = getPayloadConfigFromPayload(config, item, key);
|
|
737
|
-
const value = (() => {
|
|
738
|
-
const v = !labelKey && typeof label === "string" ? _nullishCoalesce(_optionalChain([config, 'access', _32 => _32[label], 'optionalAccess', _33 => _33.label]), () => ( label)) : _optionalChain([itemConfig, 'optionalAccess', _34 => _34.label]);
|
|
739
|
-
return typeof v === "string" || typeof v === "number" ? v : void 0;
|
|
740
|
-
})();
|
|
741
|
-
if (labelFormatter) {
|
|
742
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkDEYKTLA3js.cn.call(void 0, "font-medium", labelClassName), children: labelFormatter(value, payload) });
|
|
743
|
-
}
|
|
744
|
-
if (!value) {
|
|
745
|
-
return null;
|
|
746
|
-
}
|
|
747
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkDEYKTLA3js.cn.call(void 0, "font-medium", labelClassName), children: value });
|
|
748
|
-
}, [label, labelFormatter, payload, hideLabel, labelClassName, config, labelKey]);
|
|
749
|
-
if (!active || !_optionalChain([payload, 'optionalAccess', _35 => _35.length])) {
|
|
750
|
-
return null;
|
|
751
|
-
}
|
|
752
|
-
const nestLabel = payload.length === 1 && indicator !== "dot";
|
|
753
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
754
|
-
"div",
|
|
755
|
-
{
|
|
756
|
-
className: _chunkDEYKTLA3js.cn.call(void 0,
|
|
757
|
-
"border-border/50 bg-background grid min-w-[8rem] items-start gap-1.5 rounded-lg border px-2.5 py-1.5 text-xs shadow-xl",
|
|
758
|
-
className
|
|
759
|
-
),
|
|
760
|
-
children: [
|
|
761
|
-
!nestLabel ? tooltipLabel : null,
|
|
762
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "grid gap-1.5", children: payload.map((item, index) => {
|
|
763
|
-
const key = `${nameKey || item.name || item.dataKey || "value"}`;
|
|
764
|
-
const itemConfig = getPayloadConfigFromPayload(config, item, key);
|
|
765
|
-
const indicatorColor = color || item.payload.fill || item.color;
|
|
766
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
767
|
-
"div",
|
|
768
|
-
{
|
|
769
|
-
className: _chunkDEYKTLA3js.cn.call(void 0,
|
|
770
|
-
"[&>svg]:text-muted-foreground flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5",
|
|
771
|
-
indicator === "dot" && "items-center"
|
|
772
|
-
),
|
|
773
|
-
children: formatter && _optionalChain([item, 'optionalAccess', _36 => _36.value]) !== void 0 && item.name ? formatter(item.value, item.name, item, index, item.payload) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
774
|
-
_optionalChain([itemConfig, 'optionalAccess', _37 => _37.icon]) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, itemConfig.icon, {}) : !hideIndicator && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
775
|
-
"div",
|
|
776
|
-
{
|
|
777
|
-
className: _chunkDEYKTLA3js.cn.call(void 0, "shrink-0 rounded-[2px] border-[var(--color-border)] bg-[var(--color-bg)]", {
|
|
778
|
-
"h-2.5 w-2.5": indicator === "dot",
|
|
779
|
-
"w-1": indicator === "line",
|
|
780
|
-
"w-0 border-[1.5px] border-dashed bg-transparent": indicator === "dashed",
|
|
781
|
-
"my-0.5": nestLabel && indicator === "dashed"
|
|
782
|
-
}),
|
|
783
|
-
style: {
|
|
784
|
-
"--color-bg": indicatorColor,
|
|
785
|
-
"--color-border": indicatorColor
|
|
786
|
-
}
|
|
787
|
-
}
|
|
788
|
-
),
|
|
789
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
790
|
-
"div",
|
|
791
|
-
{
|
|
792
|
-
className: _chunkDEYKTLA3js.cn.call(void 0, "flex flex-1 justify-between leading-none", nestLabel ? "items-end" : "items-center"),
|
|
793
|
-
children: [
|
|
794
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "grid gap-1.5", children: [
|
|
795
|
-
nestLabel ? tooltipLabel : null,
|
|
796
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-muted-foreground", children: _optionalChain([itemConfig, 'optionalAccess', _38 => _38.label]) || item.name })
|
|
797
|
-
] }),
|
|
798
|
-
item.value && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-foreground font-mono font-medium tabular-nums", children: item.value.toLocaleString() })
|
|
799
|
-
]
|
|
800
|
-
}
|
|
801
|
-
)
|
|
802
|
-
] })
|
|
803
|
-
},
|
|
804
|
-
item.dataKey
|
|
805
|
-
);
|
|
806
|
-
}) })
|
|
807
|
-
]
|
|
808
|
-
}
|
|
809
|
-
);
|
|
810
|
-
}
|
|
811
|
-
_chunk7QVYU63Ejs.__name.call(void 0, ChartTooltipContent, "ChartTooltipContent");
|
|
812
|
-
var ChartLegend = RechartsPrimitive.Legend;
|
|
813
|
-
function ChartLegendContent({
|
|
814
|
-
className,
|
|
815
|
-
hideIcon = false,
|
|
816
|
-
payload,
|
|
817
|
-
verticalAlign = "bottom",
|
|
818
|
-
nameKey
|
|
819
|
-
}) {
|
|
820
|
-
const { config } = useChart();
|
|
821
|
-
if (!_optionalChain([payload, 'optionalAccess', _39 => _39.length])) {
|
|
822
|
-
return null;
|
|
823
|
-
}
|
|
824
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkDEYKTLA3js.cn.call(void 0, "flex items-center justify-center gap-4", verticalAlign === "top" ? "pb-3" : "pt-3", className), children: payload.map((item) => {
|
|
825
|
-
const key = `${nameKey || item.dataKey || "value"}`;
|
|
826
|
-
const itemConfig = getPayloadConfigFromPayload(config, item, key);
|
|
827
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
828
|
-
"div",
|
|
829
|
-
{
|
|
830
|
-
className: _chunkDEYKTLA3js.cn.call(void 0, "[&>svg]:text-muted-foreground flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3"),
|
|
831
|
-
children: [
|
|
832
|
-
_optionalChain([itemConfig, 'optionalAccess', _40 => _40.icon]) && !hideIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, itemConfig.icon, {}) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
833
|
-
"div",
|
|
834
|
-
{
|
|
835
|
-
className: "h-2 w-2 shrink-0 rounded-[2px]",
|
|
836
|
-
style: {
|
|
837
|
-
backgroundColor: item.color
|
|
838
|
-
}
|
|
839
|
-
}
|
|
840
|
-
),
|
|
841
|
-
_optionalChain([itemConfig, 'optionalAccess', _41 => _41.label])
|
|
842
|
-
]
|
|
843
|
-
},
|
|
844
|
-
item.value
|
|
845
|
-
);
|
|
846
|
-
}) });
|
|
847
|
-
}
|
|
848
|
-
_chunk7QVYU63Ejs.__name.call(void 0, ChartLegendContent, "ChartLegendContent");
|
|
849
|
-
function getPayloadConfigFromPayload(config, payload, key) {
|
|
850
|
-
if (typeof payload !== "object" || payload === null) {
|
|
851
|
-
return void 0;
|
|
852
|
-
}
|
|
853
|
-
const payloadPayload = "payload" in payload && typeof payload.payload === "object" && payload.payload !== null ? payload.payload : void 0;
|
|
854
|
-
let configLabelKey = key;
|
|
855
|
-
if (key in payload && typeof payload[key] === "string") {
|
|
856
|
-
configLabelKey = payload[key];
|
|
857
|
-
} else if (payloadPayload && key in payloadPayload && typeof payloadPayload[key] === "string") {
|
|
858
|
-
configLabelKey = payloadPayload[key];
|
|
859
|
-
}
|
|
860
|
-
return configLabelKey in config ? config[configLabelKey] : config[key];
|
|
861
|
-
}
|
|
862
|
-
_chunk7QVYU63Ejs.__name.call(void 0, getPayloadConfigFromPayload, "getPayloadConfigFromPayload");
|
|
863
|
-
|
|
864
|
-
// src/shadcnui/ui/checkbox.tsx
|
|
865
|
-
var _reactcheckbox = require('@radix-ui/react-checkbox'); var CheckboxPrimitive = _interopRequireWildcard(_reactcheckbox);
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
var Checkbox = React9.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
870
|
-
CheckboxPrimitive.Root,
|
|
871
|
-
{
|
|
872
|
-
ref,
|
|
873
|
-
className: _chunkDEYKTLA3js.cn.call(void 0,
|
|
874
|
-
"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",
|
|
875
|
-
className
|
|
876
|
-
),
|
|
877
|
-
...props,
|
|
878
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
879
|
-
CheckboxPrimitive.Indicator,
|
|
880
|
-
{
|
|
881
|
-
className: _chunkDEYKTLA3js.cn.call(void 0, "flex items-center justify-center text-current"),
|
|
882
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reacticons.CheckIcon, { className: "h-4 w-4" })
|
|
883
|
-
}
|
|
884
|
-
)
|
|
885
|
-
}
|
|
886
|
-
));
|
|
887
|
-
Checkbox.displayName = CheckboxPrimitive.Root.displayName;
|
|
888
|
-
|
|
889
|
-
// src/shadcnui/ui/collapsible.tsx
|
|
890
|
-
var _reactcollapsible = require('@radix-ui/react-collapsible'); var CollapsiblePrimitive = _interopRequireWildcard(_reactcollapsible);
|
|
891
|
-
var Collapsible = CollapsiblePrimitive.Root;
|
|
892
|
-
var CollapsibleTrigger2 = CollapsiblePrimitive.CollapsibleTrigger;
|
|
893
|
-
var CollapsibleContent2 = CollapsiblePrimitive.CollapsibleContent;
|
|
894
|
-
|
|
895
|
-
// src/shadcnui/ui/command.tsx
|
|
896
|
-
|
|
897
|
-
var _cmdk = require('cmdk');
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
// src/shadcnui/ui/dialog.tsx
|
|
901
|
-
var _reactdialog = require('@radix-ui/react-dialog'); var DialogPrimitive = _interopRequireWildcard(_reactdialog); var SheetPrimitive = _interopRequireWildcard(_reactdialog);
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
var Dialog = DialogPrimitive.Root;
|
|
906
|
-
var DialogTrigger = DialogPrimitive.Trigger;
|
|
907
|
-
var DialogPortal = DialogPrimitive.Portal;
|
|
908
|
-
var DialogClose = DialogPrimitive.Close;
|
|
909
|
-
var DialogOverlay = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
910
|
-
DialogPrimitive.Overlay,
|
|
911
|
-
{
|
|
912
|
-
ref,
|
|
913
|
-
className: _chunkDEYKTLA3js.cn.call(void 0,
|
|
914
|
-
"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",
|
|
915
|
-
className
|
|
916
|
-
),
|
|
917
|
-
...props
|
|
918
|
-
}
|
|
919
|
-
));
|
|
920
|
-
DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
|
|
921
|
-
var DialogContent = React10.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, DialogPortal, { children: [
|
|
922
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, DialogOverlay, {}),
|
|
923
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
924
|
-
DialogPrimitive.Content,
|
|
925
|
-
{
|
|
926
|
-
ref,
|
|
927
|
-
className: _chunkDEYKTLA3js.cn.call(void 0,
|
|
928
|
-
"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",
|
|
929
|
-
className
|
|
930
|
-
),
|
|
931
|
-
...props,
|
|
932
|
-
children: [
|
|
933
|
-
children,
|
|
934
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, DialogPrimitive.Close, { 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", children: [
|
|
935
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reacticons.Cross2Icon, { className: "h-4 w-4" }),
|
|
936
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "sr-only", children: "Close" })
|
|
937
|
-
] })
|
|
938
|
-
]
|
|
939
|
-
}
|
|
940
|
-
)
|
|
941
|
-
] }));
|
|
942
|
-
DialogContent.displayName = DialogPrimitive.Content.displayName;
|
|
943
|
-
var DialogHeader = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ className, ...props }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkDEYKTLA3js.cn.call(void 0, "flex flex-col space-y-1.5 text-center sm:text-left", className), ...props }), "DialogHeader");
|
|
944
|
-
DialogHeader.displayName = "DialogHeader";
|
|
945
|
-
var DialogFooter = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ className, ...props }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkDEYKTLA3js.cn.call(void 0, "flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", className), ...props }), "DialogFooter");
|
|
946
|
-
DialogFooter.displayName = "DialogFooter";
|
|
947
|
-
var DialogTitle = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
948
|
-
DialogPrimitive.Title,
|
|
949
|
-
{
|
|
950
|
-
ref,
|
|
951
|
-
className: _chunkDEYKTLA3js.cn.call(void 0, "text-lg font-semibold leading-none tracking-tight", className),
|
|
952
|
-
...props
|
|
953
|
-
}
|
|
954
|
-
));
|
|
955
|
-
DialogTitle.displayName = DialogPrimitive.Title.displayName;
|
|
956
|
-
var DialogDescription = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DialogPrimitive.Description, { ref, className: _chunkDEYKTLA3js.cn.call(void 0, "text-sm text-muted-foreground", className), ...props }));
|
|
957
|
-
DialogDescription.displayName = DialogPrimitive.Description.displayName;
|
|
958
|
-
|
|
959
|
-
// src/shadcnui/ui/command.tsx
|
|
960
|
-
|
|
961
|
-
var Command = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
962
|
-
_cmdk.Command,
|
|
963
|
-
{
|
|
964
|
-
ref,
|
|
965
|
-
className: _chunkDEYKTLA3js.cn.call(void 0,
|
|
966
|
-
"flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",
|
|
967
|
-
className
|
|
968
|
-
),
|
|
969
|
-
...props
|
|
970
|
-
}
|
|
971
|
-
));
|
|
972
|
-
Command.displayName = _cmdk.Command.displayName;
|
|
973
|
-
var CommandDialog = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ children, ...props }) => {
|
|
974
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Dialog, { ...props, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DialogContent, { className: "overflow-hidden p-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Command, { className: "[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5", children }) }) });
|
|
975
|
-
}, "CommandDialog");
|
|
976
|
-
var CommandInput = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
|
|
977
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reacticons.MagnifyingGlassIcon, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
|
|
978
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
979
|
-
_cmdk.Command.Input,
|
|
980
|
-
{
|
|
981
|
-
ref,
|
|
982
|
-
className: _chunkDEYKTLA3js.cn.call(void 0,
|
|
983
|
-
"flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",
|
|
984
|
-
className
|
|
985
|
-
),
|
|
986
|
-
...props
|
|
987
|
-
}
|
|
988
|
-
)
|
|
989
|
-
] }));
|
|
990
|
-
CommandInput.displayName = _cmdk.Command.Input.displayName;
|
|
991
|
-
var CommandList = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
992
|
-
_cmdk.Command.List,
|
|
993
|
-
{
|
|
994
|
-
ref,
|
|
995
|
-
className: _chunkDEYKTLA3js.cn.call(void 0, "max-h-[300px] overflow-y-auto overflow-x-hidden", className),
|
|
996
|
-
...props
|
|
997
|
-
}
|
|
998
|
-
));
|
|
999
|
-
CommandList.displayName = _cmdk.Command.List.displayName;
|
|
1000
|
-
var CommandEmpty = React11.forwardRef((props, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1001
|
-
_cmdk.Command.Empty,
|
|
1002
|
-
{
|
|
1003
|
-
ref,
|
|
1004
|
-
className: "py-6 text-center text-sm",
|
|
1005
|
-
...props
|
|
1006
|
-
}
|
|
1007
|
-
));
|
|
1008
|
-
CommandEmpty.displayName = _cmdk.Command.Empty.displayName;
|
|
1009
|
-
var CommandGroup = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1010
|
-
_cmdk.Command.Group,
|
|
1011
|
-
{
|
|
1012
|
-
ref,
|
|
1013
|
-
className: _chunkDEYKTLA3js.cn.call(void 0,
|
|
1014
|
-
"overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",
|
|
1015
|
-
className
|
|
1016
|
-
),
|
|
1017
|
-
...props
|
|
1018
|
-
}
|
|
1019
|
-
));
|
|
1020
|
-
CommandGroup.displayName = _cmdk.Command.Group.displayName;
|
|
1021
|
-
var CommandSeparator = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1022
|
-
_cmdk.Command.Separator,
|
|
1023
|
-
{
|
|
1024
|
-
ref,
|
|
1025
|
-
className: _chunkDEYKTLA3js.cn.call(void 0, "-mx-1 h-px bg-border", className),
|
|
1026
|
-
...props
|
|
1027
|
-
}
|
|
1028
|
-
));
|
|
1029
|
-
CommandSeparator.displayName = _cmdk.Command.Separator.displayName;
|
|
1030
|
-
var CommandItem = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1031
|
-
_cmdk.Command.Item,
|
|
1032
|
-
{
|
|
1033
|
-
ref,
|
|
1034
|
-
className: _chunkDEYKTLA3js.cn.call(void 0,
|
|
1035
|
-
"relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
|
1036
|
-
className
|
|
1037
|
-
),
|
|
1038
|
-
...props
|
|
1039
|
-
}
|
|
1040
|
-
));
|
|
1041
|
-
CommandItem.displayName = _cmdk.Command.Item.displayName;
|
|
1042
|
-
var CommandShortcut = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({
|
|
1043
|
-
className,
|
|
1044
|
-
...props
|
|
1045
|
-
}) => {
|
|
1046
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1047
|
-
"span",
|
|
1048
|
-
{
|
|
1049
|
-
className: _chunkDEYKTLA3js.cn.call(void 0,
|
|
1050
|
-
"ml-auto text-xs tracking-widest text-muted-foreground",
|
|
1051
|
-
className
|
|
1052
|
-
),
|
|
1053
|
-
...props
|
|
1054
|
-
}
|
|
1055
|
-
);
|
|
1056
|
-
}, "CommandShortcut");
|
|
1057
|
-
CommandShortcut.displayName = "CommandShortcut";
|
|
1058
|
-
|
|
1059
|
-
// src/shadcnui/ui/context-menu.tsx
|
|
1060
|
-
var _reactcontextmenu = require('@radix-ui/react-context-menu'); var ContextMenuPrimitive = _interopRequireWildcard(_reactcontextmenu);
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
var ContextMenu = ContextMenuPrimitive.Root;
|
|
1065
|
-
var ContextMenuTrigger = ContextMenuPrimitive.Trigger;
|
|
1066
|
-
var ContextMenuGroup = ContextMenuPrimitive.Group;
|
|
1067
|
-
var ContextMenuPortal = ContextMenuPrimitive.Portal;
|
|
1068
|
-
var ContextMenuSub = ContextMenuPrimitive.Sub;
|
|
1069
|
-
var ContextMenuRadioGroup = ContextMenuPrimitive.RadioGroup;
|
|
1070
|
-
var ContextMenuSubTrigger = React12.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1071
|
-
ContextMenuPrimitive.SubTrigger,
|
|
1072
|
-
{
|
|
1073
|
-
ref,
|
|
1074
|
-
className: _chunkDEYKTLA3js.cn.call(void 0,
|
|
1075
|
-
"flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",
|
|
1076
|
-
inset && "pl-8",
|
|
1077
|
-
className
|
|
1078
|
-
),
|
|
1079
|
-
...props,
|
|
1080
|
-
children: [
|
|
1081
|
-
children,
|
|
1082
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reacticons.ChevronRightIcon, { className: "ml-auto h-4 w-4" })
|
|
1083
|
-
]
|
|
1084
|
-
}
|
|
1085
|
-
));
|
|
1086
|
-
ContextMenuSubTrigger.displayName = ContextMenuPrimitive.SubTrigger.displayName;
|
|
1087
|
-
var ContextMenuSubContent = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1088
|
-
ContextMenuPrimitive.SubContent,
|
|
1089
|
-
{
|
|
1090
|
-
ref,
|
|
1091
|
-
className: _chunkDEYKTLA3js.cn.call(void 0,
|
|
1092
|
-
"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",
|
|
1093
|
-
className
|
|
1094
|
-
),
|
|
1095
|
-
...props
|
|
1096
|
-
}
|
|
1097
|
-
));
|
|
1098
|
-
ContextMenuSubContent.displayName = ContextMenuPrimitive.SubContent.displayName;
|
|
1099
|
-
var ContextMenuContent = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ContextMenuPrimitive.Portal, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1100
|
-
ContextMenuPrimitive.Content,
|
|
1101
|
-
{
|
|
1102
|
-
ref,
|
|
1103
|
-
className: _chunkDEYKTLA3js.cn.call(void 0,
|
|
1104
|
-
"z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 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",
|
|
1105
|
-
className
|
|
1106
|
-
),
|
|
1107
|
-
...props
|
|
1108
|
-
}
|
|
1109
|
-
) }));
|
|
1110
|
-
ContextMenuContent.displayName = ContextMenuPrimitive.Content.displayName;
|
|
1111
|
-
var ContextMenuItem = React12.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1112
|
-
ContextMenuPrimitive.Item,
|
|
1113
|
-
{
|
|
1114
|
-
ref,
|
|
1115
|
-
className: _chunkDEYKTLA3js.cn.call(void 0,
|
|
1116
|
-
"relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
1117
|
-
inset && "pl-8",
|
|
1118
|
-
className
|
|
1119
|
-
),
|
|
1120
|
-
...props
|
|
1121
|
-
}
|
|
1122
|
-
));
|
|
1123
|
-
ContextMenuItem.displayName = ContextMenuPrimitive.Item.displayName;
|
|
1124
|
-
var ContextMenuCheckboxItem = React12.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1125
|
-
ContextMenuPrimitive.CheckboxItem,
|
|
1126
|
-
{
|
|
1127
|
-
ref,
|
|
1128
|
-
className: _chunkDEYKTLA3js.cn.call(void 0,
|
|
1129
|
-
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
1130
|
-
className
|
|
1131
|
-
),
|
|
1132
|
-
checked,
|
|
1133
|
-
...props,
|
|
1134
|
-
children: [
|
|
1135
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ContextMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reacticons.CheckIcon, { className: "h-4 w-4" }) }) }),
|
|
1136
|
-
children
|
|
1137
|
-
]
|
|
1138
|
-
}
|
|
1139
|
-
));
|
|
1140
|
-
ContextMenuCheckboxItem.displayName = ContextMenuPrimitive.CheckboxItem.displayName;
|
|
1141
|
-
var ContextMenuRadioItem = React12.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1142
|
-
ContextMenuPrimitive.RadioItem,
|
|
1143
|
-
{
|
|
1144
|
-
ref,
|
|
1145
|
-
className: _chunkDEYKTLA3js.cn.call(void 0,
|
|
1146
|
-
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
1147
|
-
className
|
|
1148
|
-
),
|
|
1149
|
-
...props,
|
|
1150
|
-
children: [
|
|
1151
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ContextMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reacticons.DotFilledIcon, { className: "h-4 w-4 fill-current" }) }) }),
|
|
1152
|
-
children
|
|
1153
|
-
]
|
|
1154
|
-
}
|
|
1155
|
-
));
|
|
1156
|
-
ContextMenuRadioItem.displayName = ContextMenuPrimitive.RadioItem.displayName;
|
|
1157
|
-
var ContextMenuLabel = React12.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1158
|
-
ContextMenuPrimitive.Label,
|
|
1159
|
-
{
|
|
1160
|
-
ref,
|
|
1161
|
-
className: _chunkDEYKTLA3js.cn.call(void 0, "px-2 py-1.5 text-sm font-semibold text-foreground", inset && "pl-8", className),
|
|
1162
|
-
...props
|
|
1163
|
-
}
|
|
1164
|
-
));
|
|
1165
|
-
ContextMenuLabel.displayName = ContextMenuPrimitive.Label.displayName;
|
|
1166
|
-
var ContextMenuSeparator = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ContextMenuPrimitive.Separator, { ref, className: _chunkDEYKTLA3js.cn.call(void 0, "-mx-1 my-1 h-px bg-border", className), ...props }));
|
|
1167
|
-
ContextMenuSeparator.displayName = ContextMenuPrimitive.Separator.displayName;
|
|
1168
|
-
var ContextMenuShortcut = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ className, ...props }) => {
|
|
1169
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkDEYKTLA3js.cn.call(void 0, "ml-auto text-xs tracking-widest text-muted-foreground", className), ...props });
|
|
1170
|
-
}, "ContextMenuShortcut");
|
|
1171
|
-
ContextMenuShortcut.displayName = "ContextMenuShortcut";
|
|
1172
|
-
|
|
1173
|
-
// src/shadcnui/ui/drawer.tsx
|
|
1174
|
-
|
|
1175
|
-
var _vaul = require('vaul');
|
|
1176
|
-
|
|
1177
|
-
var Drawer = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ shouldScaleBackground = true, ...props }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _vaul.Drawer.Root, { shouldScaleBackground, ...props }), "Drawer");
|
|
1178
|
-
Drawer.displayName = "Drawer";
|
|
1179
|
-
var DrawerTrigger = _vaul.Drawer.Trigger;
|
|
1180
|
-
var DrawerPortal = _vaul.Drawer.Portal;
|
|
1181
|
-
var DrawerClose = _vaul.Drawer.Close;
|
|
1182
|
-
var DrawerOverlay = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _vaul.Drawer.Overlay, { ref, className: _chunkDEYKTLA3js.cn.call(void 0, "fixed inset-0 z-50 bg-black/80", className), ...props }));
|
|
1183
|
-
DrawerOverlay.displayName = _vaul.Drawer.Overlay.displayName;
|
|
1184
|
-
var DrawerContent = React13.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, DrawerPortal, { children: [
|
|
1185
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, DrawerOverlay, {}),
|
|
1186
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1187
|
-
_vaul.Drawer.Content,
|
|
1188
|
-
{
|
|
1189
|
-
ref,
|
|
1190
|
-
className: _chunkDEYKTLA3js.cn.call(void 0,
|
|
1191
|
-
"fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background",
|
|
1192
|
-
className
|
|
1193
|
-
),
|
|
1194
|
-
...props,
|
|
1195
|
-
children: [
|
|
1196
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted" }),
|
|
1197
|
-
children
|
|
1198
|
-
]
|
|
1199
|
-
}
|
|
1200
|
-
)
|
|
1201
|
-
] }));
|
|
1202
|
-
DrawerContent.displayName = "DrawerContent";
|
|
1203
|
-
var DrawerHeader = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ className, ...props }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkDEYKTLA3js.cn.call(void 0, "grid gap-1.5 p-4 text-center sm:text-left", className), ...props }), "DrawerHeader");
|
|
1204
|
-
DrawerHeader.displayName = "DrawerHeader";
|
|
1205
|
-
var DrawerFooter = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ className, ...props }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkDEYKTLA3js.cn.call(void 0, "mt-auto flex flex-col gap-2 p-4", className), ...props }), "DrawerFooter");
|
|
1206
|
-
DrawerFooter.displayName = "DrawerFooter";
|
|
1207
|
-
var DrawerTitle = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1208
|
-
_vaul.Drawer.Title,
|
|
1209
|
-
{
|
|
1210
|
-
ref,
|
|
1211
|
-
className: _chunkDEYKTLA3js.cn.call(void 0, "text-lg font-semibold leading-none tracking-tight", className),
|
|
1212
|
-
...props
|
|
1213
|
-
}
|
|
1214
|
-
));
|
|
1215
|
-
DrawerTitle.displayName = _vaul.Drawer.Title.displayName;
|
|
1216
|
-
var DrawerDescription = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _vaul.Drawer.Description, { ref, className: _chunkDEYKTLA3js.cn.call(void 0, "text-sm text-muted-foreground", className), ...props }));
|
|
1217
|
-
DrawerDescription.displayName = _vaul.Drawer.Description.displayName;
|
|
1218
|
-
|
|
1219
|
-
// src/shadcnui/ui/dropdown-menu.tsx
|
|
1220
|
-
var _reactdropdownmenu = require('@radix-ui/react-dropdown-menu'); var DropdownMenuPrimitive = _interopRequireWildcard(_reactdropdownmenu);
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
var DropdownMenu = DropdownMenuPrimitive.Root;
|
|
1229
|
-
var DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
|
|
1230
|
-
var DropdownMenuGroup = DropdownMenuPrimitive.Group;
|
|
1231
|
-
var DropdownMenuPortal = DropdownMenuPrimitive.Portal;
|
|
1232
|
-
var DropdownMenuSub = DropdownMenuPrimitive.Sub;
|
|
1233
|
-
var DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;
|
|
1234
|
-
var DropdownMenuSubTrigger = React14.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1235
|
-
DropdownMenuPrimitive.SubTrigger,
|
|
1236
|
-
{
|
|
1237
|
-
ref,
|
|
1238
|
-
className: _chunkDEYKTLA3js.cn.call(void 0,
|
|
1239
|
-
"flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",
|
|
1240
|
-
inset && "pl-8",
|
|
1241
|
-
className
|
|
1242
|
-
),
|
|
1243
|
-
...props,
|
|
1244
|
-
children: [
|
|
1245
|
-
children,
|
|
1246
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reacticons.ChevronRightIcon, { className: "ml-auto h-4 w-4" })
|
|
1247
|
-
]
|
|
1248
|
-
}
|
|
1249
|
-
));
|
|
1250
|
-
DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
|
|
1251
|
-
var DropdownMenuSubContent = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1252
|
-
DropdownMenuPrimitive.SubContent,
|
|
1253
|
-
{
|
|
1254
|
-
ref,
|
|
1255
|
-
className: _chunkDEYKTLA3js.cn.call(void 0,
|
|
1256
|
-
"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",
|
|
1257
|
-
className
|
|
1258
|
-
),
|
|
1259
|
-
...props
|
|
1260
|
-
}
|
|
1261
|
-
));
|
|
1262
|
-
DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
|
|
1263
|
-
var DropdownMenuContent = React14.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1264
|
-
DropdownMenuPrimitive.Content,
|
|
1265
|
-
{
|
|
1266
|
-
ref,
|
|
1267
|
-
sideOffset,
|
|
1268
|
-
className: _chunkDEYKTLA3js.cn.call(void 0,
|
|
1269
|
-
"z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md",
|
|
1270
|
-
"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",
|
|
1271
|
-
className
|
|
1272
|
-
),
|
|
1273
|
-
...props
|
|
1274
|
-
}
|
|
1275
|
-
) }));
|
|
1276
|
-
DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
|
|
1277
|
-
var DropdownMenuItem = React14.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1278
|
-
DropdownMenuPrimitive.Item,
|
|
1279
|
-
{
|
|
1280
|
-
ref,
|
|
1281
|
-
className: _chunkDEYKTLA3js.cn.call(void 0,
|
|
1282
|
-
"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",
|
|
1283
|
-
inset && "pl-8",
|
|
1284
|
-
className
|
|
1285
|
-
),
|
|
1286
|
-
...props
|
|
1287
|
-
}
|
|
1288
|
-
));
|
|
1289
|
-
DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
|
|
1290
|
-
var DropdownMenuCheckboxItem = React14.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1291
|
-
DropdownMenuPrimitive.CheckboxItem,
|
|
1292
|
-
{
|
|
1293
|
-
ref,
|
|
1294
|
-
className: _chunkDEYKTLA3js.cn.call(void 0,
|
|
1295
|
-
"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",
|
|
1296
|
-
className
|
|
1297
|
-
),
|
|
1298
|
-
checked,
|
|
1299
|
-
...props,
|
|
1300
|
-
children: [
|
|
1301
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reacticons.CheckIcon, { className: "h-4 w-4" }) }) }),
|
|
1302
|
-
children
|
|
1303
|
-
]
|
|
1304
|
-
}
|
|
1305
|
-
));
|
|
1306
|
-
DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
|
|
1307
|
-
var DropdownMenuRadioItem = React14.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1308
|
-
DropdownMenuPrimitive.RadioItem,
|
|
1309
|
-
{
|
|
1310
|
-
ref,
|
|
1311
|
-
className: _chunkDEYKTLA3js.cn.call(void 0,
|
|
1312
|
-
"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",
|
|
1313
|
-
className
|
|
1314
|
-
),
|
|
1315
|
-
...props,
|
|
1316
|
-
children: [
|
|
1317
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reacticons.DotFilledIcon, { className: "h-4 w-4 fill-current" }) }) }),
|
|
1318
|
-
children
|
|
1319
|
-
]
|
|
1320
|
-
}
|
|
1321
|
-
));
|
|
1322
|
-
DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
|
|
1323
|
-
var DropdownMenuLabel = React14.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1324
|
-
DropdownMenuPrimitive.Label,
|
|
1325
|
-
{
|
|
1326
|
-
ref,
|
|
1327
|
-
className: _chunkDEYKTLA3js.cn.call(void 0,
|
|
1328
|
-
"px-2 py-1.5 text-sm font-semibold",
|
|
1329
|
-
inset && "pl-8",
|
|
1330
|
-
className
|
|
1331
|
-
),
|
|
1332
|
-
...props
|
|
1333
|
-
}
|
|
1334
|
-
));
|
|
1335
|
-
DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
|
|
1336
|
-
var DropdownMenuSeparator = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1337
|
-
DropdownMenuPrimitive.Separator,
|
|
1338
|
-
{
|
|
1339
|
-
ref,
|
|
1340
|
-
className: _chunkDEYKTLA3js.cn.call(void 0, "-mx-1 my-1 h-px bg-muted", className),
|
|
1341
|
-
...props
|
|
1342
|
-
}
|
|
1343
|
-
));
|
|
1344
|
-
DropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName;
|
|
1345
|
-
var DropdownMenuShortcut = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({
|
|
1346
|
-
className,
|
|
1347
|
-
...props
|
|
1348
|
-
}) => {
|
|
1349
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1350
|
-
"span",
|
|
1351
|
-
{
|
|
1352
|
-
className: _chunkDEYKTLA3js.cn.call(void 0, "ml-auto text-xs tracking-widest opacity-60", className),
|
|
1353
|
-
...props
|
|
1354
|
-
}
|
|
1355
|
-
);
|
|
1356
|
-
}, "DropdownMenuShortcut");
|
|
1357
|
-
DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
|
|
1358
|
-
|
|
1359
|
-
// src/shadcnui/ui/form.tsx
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
var _reacthookform = require('react-hook-form');
|
|
1363
|
-
|
|
1364
|
-
// src/shadcnui/ui/label.tsx
|
|
1365
|
-
var _reactlabel = require('@radix-ui/react-label'); var LabelPrimitive = _interopRequireWildcard(_reactlabel);
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
var labelVariants = _classvarianceauthority.cva.call(void 0,
|
|
1370
|
-
"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
|
|
1371
|
-
);
|
|
1372
|
-
var Label3 = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1373
|
-
LabelPrimitive.Root,
|
|
1374
|
-
{
|
|
1375
|
-
ref,
|
|
1376
|
-
className: _chunkDEYKTLA3js.cn.call(void 0, labelVariants(), className),
|
|
1377
|
-
...props
|
|
1378
|
-
}
|
|
1379
|
-
));
|
|
1380
|
-
Label3.displayName = LabelPrimitive.Root.displayName;
|
|
1381
|
-
|
|
1382
|
-
// src/shadcnui/ui/form.tsx
|
|
1383
|
-
|
|
1384
|
-
var Form = _reacthookform.FormProvider;
|
|
1385
|
-
var FormFieldContext = React16.createContext({});
|
|
1386
|
-
var FormField = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({
|
|
1387
|
-
...props
|
|
1388
|
-
}) => {
|
|
1389
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, FormFieldContext.Provider, { value: { name: props.name }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reacthookform.Controller, { ...props }) });
|
|
1390
|
-
}, "FormField");
|
|
1391
|
-
var useFormField = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
1392
|
-
const fieldContext = React16.useContext(FormFieldContext);
|
|
1393
|
-
const itemContext = React16.useContext(FormItemContext);
|
|
1394
|
-
const { getFieldState, formState } = _reacthookform.useFormContext.call(void 0, );
|
|
1395
|
-
const fieldState = getFieldState(fieldContext.name, formState);
|
|
1396
|
-
if (!fieldContext) {
|
|
1397
|
-
throw new Error("useFormField should be used within <FormField>");
|
|
1398
|
-
}
|
|
1399
|
-
const { id } = itemContext;
|
|
1400
|
-
return {
|
|
1401
|
-
id,
|
|
1402
|
-
name: fieldContext.name,
|
|
1403
|
-
formItemId: `${id}-form-item`,
|
|
1404
|
-
formDescriptionId: `${id}-form-item-description`,
|
|
1405
|
-
formMessageId: `${id}-form-item-message`,
|
|
1406
|
-
...fieldState
|
|
1407
|
-
};
|
|
1408
|
-
}, "useFormField");
|
|
1409
|
-
var FormItemContext = React16.createContext({});
|
|
1410
|
-
var FormItem = React16.forwardRef(
|
|
1411
|
-
({ className, ...props }, ref) => {
|
|
1412
|
-
const id = React16.useId();
|
|
1413
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, FormItemContext.Provider, { value: { id }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, className: _chunkDEYKTLA3js.cn.call(void 0, "space-y-2", className), ...props }) });
|
|
1414
|
-
}
|
|
1415
|
-
);
|
|
1416
|
-
FormItem.displayName = "FormItem";
|
|
1417
|
-
var FormLabel = React16.forwardRef(({ className, ...props }, ref) => {
|
|
1418
|
-
const { error, formItemId } = useFormField();
|
|
1419
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Label3, { ref, className: _chunkDEYKTLA3js.cn.call(void 0, error && "text-destructive", className), htmlFor: formItemId, ...props });
|
|
1420
|
-
});
|
|
1421
|
-
FormLabel.displayName = "FormLabel";
|
|
1422
|
-
var FormControl = React16.forwardRef(
|
|
1423
|
-
({ ...props }, ref) => {
|
|
1424
|
-
const { error, formItemId, formDescriptionId, formMessageId } = useFormField();
|
|
1425
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1426
|
-
_reactslot.Slot,
|
|
1427
|
-
{
|
|
1428
|
-
ref,
|
|
1429
|
-
id: formItemId,
|
|
1430
|
-
"aria-describedby": !error ? `${formDescriptionId}` : `${formDescriptionId} ${formMessageId}`,
|
|
1431
|
-
"aria-invalid": !!error,
|
|
1432
|
-
...props
|
|
1433
|
-
}
|
|
1434
|
-
);
|
|
1435
|
-
}
|
|
1436
|
-
);
|
|
1437
|
-
FormControl.displayName = "FormControl";
|
|
1438
|
-
var FormDescription = React16.forwardRef(
|
|
1439
|
-
({ className, ...props }, ref) => {
|
|
1440
|
-
const { formDescriptionId } = useFormField();
|
|
1441
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { ref, id: formDescriptionId, className: _chunkDEYKTLA3js.cn.call(void 0, "text-muted-foreground text-[0.8rem]", className), ...props });
|
|
1442
|
-
}
|
|
1443
|
-
);
|
|
1444
|
-
FormDescription.displayName = "FormDescription";
|
|
1445
|
-
var FormMessage = React16.forwardRef(
|
|
1446
|
-
({ className, children, ...props }, ref) => {
|
|
1447
|
-
const { error, formMessageId } = useFormField();
|
|
1448
|
-
const body = error ? String(_optionalChain([error, 'optionalAccess', _42 => _42.message])) : children;
|
|
1449
|
-
if (!body) {
|
|
1450
|
-
return null;
|
|
1451
|
-
}
|
|
1452
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1453
|
-
"p",
|
|
1454
|
-
{
|
|
1455
|
-
ref,
|
|
1456
|
-
id: formMessageId,
|
|
1457
|
-
className: _chunkDEYKTLA3js.cn.call(void 0, "text-destructive text-[0.8rem] font-medium", className),
|
|
1458
|
-
...props,
|
|
1459
|
-
children: body
|
|
1460
|
-
}
|
|
1461
|
-
);
|
|
1462
|
-
}
|
|
1463
|
-
);
|
|
1464
|
-
FormMessage.displayName = "FormMessage";
|
|
1465
|
-
|
|
1466
|
-
// src/shadcnui/ui/hover-card.tsx
|
|
1467
|
-
var _reacthovercard = require('@radix-ui/react-hover-card'); var HoverCardPrimitive = _interopRequireWildcard(_reacthovercard);
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
var HoverCard = HoverCardPrimitive.Root;
|
|
1471
|
-
var HoverCardTrigger = HoverCardPrimitive.Trigger;
|
|
1472
|
-
var HoverCardContent = React17.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1473
|
-
HoverCardPrimitive.Content,
|
|
1474
|
-
{
|
|
1475
|
-
ref,
|
|
1476
|
-
align,
|
|
1477
|
-
sideOffset,
|
|
1478
|
-
className: _chunkDEYKTLA3js.cn.call(void 0,
|
|
1479
|
-
"z-50 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none 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",
|
|
1480
|
-
className
|
|
1481
|
-
),
|
|
1482
|
-
...props
|
|
1483
|
-
}
|
|
1484
|
-
));
|
|
1485
|
-
HoverCardContent.displayName = HoverCardPrimitive.Content.displayName;
|
|
1486
|
-
|
|
1487
|
-
// src/shadcnui/ui/input.tsx
|
|
1488
|
-
|
|
1489
|
-
function Input({ className, type, ...props }) {
|
|
1490
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1491
|
-
"input",
|
|
1492
|
-
{
|
|
1493
|
-
type,
|
|
1494
|
-
"data-slot": "input",
|
|
1495
|
-
className: _chunkDEYKTLA3js.cn.call(void 0,
|
|
1496
|
-
"file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
|
|
1497
|
-
"focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
|
|
1498
|
-
"aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
|
|
1499
|
-
className
|
|
1500
|
-
),
|
|
1501
|
-
...props
|
|
1502
|
-
}
|
|
1503
|
-
);
|
|
1504
|
-
}
|
|
1505
|
-
_chunk7QVYU63Ejs.__name.call(void 0, Input, "Input");
|
|
1506
|
-
|
|
1507
|
-
// src/shadcnui/ui/navigation-menu.tsx
|
|
1508
|
-
var _reactnavigationmenu = require('@radix-ui/react-navigation-menu'); var NavigationMenuPrimitive = _interopRequireWildcard(_reactnavigationmenu);
|
|
1509
|
-
|
|
1510
|
-
var _lucidereact = require('lucide-react');
|
|
1511
|
-
|
|
1512
|
-
function NavigationMenu({
|
|
1513
|
-
className,
|
|
1514
|
-
children,
|
|
1515
|
-
viewport = true,
|
|
1516
|
-
...props
|
|
1517
|
-
}) {
|
|
1518
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1519
|
-
NavigationMenuPrimitive.Root,
|
|
1520
|
-
{
|
|
1521
|
-
"data-slot": "navigation-menu",
|
|
1522
|
-
"data-viewport": viewport,
|
|
1523
|
-
className: _chunkDEYKTLA3js.cn.call(void 0,
|
|
1524
|
-
"group/navigation-menu relative flex max-w-max flex-1 items-center justify-center",
|
|
1525
|
-
className
|
|
1526
|
-
),
|
|
1527
|
-
...props,
|
|
1528
|
-
children: [
|
|
1529
|
-
children,
|
|
1530
|
-
viewport && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, NavigationMenuViewport, {})
|
|
1531
|
-
]
|
|
1532
|
-
}
|
|
1533
|
-
);
|
|
1534
|
-
}
|
|
1535
|
-
_chunk7QVYU63Ejs.__name.call(void 0, NavigationMenu, "NavigationMenu");
|
|
1536
|
-
function NavigationMenuList({
|
|
1537
|
-
className,
|
|
1538
|
-
...props
|
|
1539
|
-
}) {
|
|
1540
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1541
|
-
NavigationMenuPrimitive.List,
|
|
1542
|
-
{
|
|
1543
|
-
"data-slot": "navigation-menu-list",
|
|
1544
|
-
className: _chunkDEYKTLA3js.cn.call(void 0,
|
|
1545
|
-
"group flex flex-1 list-none items-center justify-center gap-1",
|
|
1546
|
-
className
|
|
1547
|
-
),
|
|
1548
|
-
...props
|
|
1549
|
-
}
|
|
1550
|
-
);
|
|
1551
|
-
}
|
|
1552
|
-
_chunk7QVYU63Ejs.__name.call(void 0, NavigationMenuList, "NavigationMenuList");
|
|
1553
|
-
function NavigationMenuItem({
|
|
1554
|
-
className,
|
|
1555
|
-
...props
|
|
1556
|
-
}) {
|
|
1557
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1558
|
-
NavigationMenuPrimitive.Item,
|
|
1559
|
-
{
|
|
1560
|
-
"data-slot": "navigation-menu-item",
|
|
1561
|
-
className: _chunkDEYKTLA3js.cn.call(void 0, "relative", className),
|
|
1562
|
-
...props
|
|
1563
|
-
}
|
|
1564
|
-
);
|
|
1565
|
-
}
|
|
1566
|
-
_chunk7QVYU63Ejs.__name.call(void 0, NavigationMenuItem, "NavigationMenuItem");
|
|
1567
|
-
var navigationMenuTriggerStyle = _classvarianceauthority.cva.call(void 0,
|
|
1568
|
-
"group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=open]:hover:bg-accent data-[state=open]:text-accent-foreground data-[state=open]:focus:bg-accent data-[state=open]:bg-accent/50 focus-visible:ring-ring/50 outline-none transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1"
|
|
1569
|
-
);
|
|
1570
|
-
function NavigationMenuTrigger({
|
|
1571
|
-
className,
|
|
1572
|
-
children,
|
|
1573
|
-
...props
|
|
1574
|
-
}) {
|
|
1575
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1576
|
-
NavigationMenuPrimitive.Trigger,
|
|
1577
|
-
{
|
|
1578
|
-
"data-slot": "navigation-menu-trigger",
|
|
1579
|
-
className: _chunkDEYKTLA3js.cn.call(void 0, navigationMenuTriggerStyle(), "group", className),
|
|
1580
|
-
...props,
|
|
1581
|
-
children: [
|
|
1582
|
-
children,
|
|
1583
|
-
" ",
|
|
1584
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1585
|
-
_lucidereact.ChevronDownIcon,
|
|
1586
|
-
{
|
|
1587
|
-
className: "relative top-[1px] ml-1 size-3 transition duration-300 group-data-[state=open]:rotate-180",
|
|
1588
|
-
"aria-hidden": "true"
|
|
1589
|
-
}
|
|
1590
|
-
)
|
|
1591
|
-
]
|
|
1592
|
-
}
|
|
1593
|
-
);
|
|
1594
|
-
}
|
|
1595
|
-
_chunk7QVYU63Ejs.__name.call(void 0, NavigationMenuTrigger, "NavigationMenuTrigger");
|
|
1596
|
-
function NavigationMenuContent({
|
|
1597
|
-
className,
|
|
1598
|
-
...props
|
|
1599
|
-
}) {
|
|
1600
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1601
|
-
NavigationMenuPrimitive.Content,
|
|
1602
|
-
{
|
|
1603
|
-
"data-slot": "navigation-menu-content",
|
|
1604
|
-
className: _chunkDEYKTLA3js.cn.call(void 0,
|
|
1605
|
-
"data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 top-0 left-0 w-full p-2 pr-2.5 md:absolute md:w-auto",
|
|
1606
|
-
"group-data-[viewport=false]/navigation-menu:bg-popover group-data-[viewport=false]/navigation-menu:text-popover-foreground group-data-[viewport=false]/navigation-menu:data-[state=open]:animate-in group-data-[viewport=false]/navigation-menu:data-[state=closed]:animate-out group-data-[viewport=false]/navigation-menu:data-[state=closed]:zoom-out-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:zoom-in-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:fade-in-0 group-data-[viewport=false]/navigation-menu:data-[state=closed]:fade-out-0 group-data-[viewport=false]/navigation-menu:top-full group-data-[viewport=false]/navigation-menu:mt-1.5 group-data-[viewport=false]/navigation-menu:overflow-hidden group-data-[viewport=false]/navigation-menu:rounded-md group-data-[viewport=false]/navigation-menu:border group-data-[viewport=false]/navigation-menu:shadow group-data-[viewport=false]/navigation-menu:duration-200 **:data-[slot=navigation-menu-link]:focus:ring-0 **:data-[slot=navigation-menu-link]:focus:outline-none",
|
|
1607
|
-
className
|
|
1608
|
-
),
|
|
1609
|
-
...props
|
|
1610
|
-
}
|
|
1611
|
-
);
|
|
1612
|
-
}
|
|
1613
|
-
_chunk7QVYU63Ejs.__name.call(void 0, NavigationMenuContent, "NavigationMenuContent");
|
|
1614
|
-
function NavigationMenuViewport({
|
|
1615
|
-
className,
|
|
1616
|
-
...props
|
|
1617
|
-
}) {
|
|
1618
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1619
|
-
"div",
|
|
1620
|
-
{
|
|
1621
|
-
className: _chunkDEYKTLA3js.cn.call(void 0,
|
|
1622
|
-
"absolute top-full left-0 isolate z-50 flex justify-center"
|
|
1623
|
-
),
|
|
1624
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1625
|
-
NavigationMenuPrimitive.Viewport,
|
|
1626
|
-
{
|
|
1627
|
-
"data-slot": "navigation-menu-viewport",
|
|
1628
|
-
className: _chunkDEYKTLA3js.cn.call(void 0,
|
|
1629
|
-
"origin-top-center bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border shadow md:w-[var(--radix-navigation-menu-viewport-width)]",
|
|
1630
|
-
className
|
|
1631
|
-
),
|
|
1632
|
-
...props
|
|
1633
|
-
}
|
|
1634
|
-
)
|
|
1635
|
-
}
|
|
1636
|
-
);
|
|
1637
|
-
}
|
|
1638
|
-
_chunk7QVYU63Ejs.__name.call(void 0, NavigationMenuViewport, "NavigationMenuViewport");
|
|
1639
|
-
function NavigationMenuLink({
|
|
1640
|
-
className,
|
|
1641
|
-
...props
|
|
1642
|
-
}) {
|
|
1643
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1644
|
-
NavigationMenuPrimitive.Link,
|
|
1645
|
-
{
|
|
1646
|
-
"data-slot": "navigation-menu-link",
|
|
1647
|
-
className: _chunkDEYKTLA3js.cn.call(void 0,
|
|
1648
|
-
"data-[active=true]:focus:bg-accent data-[active=true]:hover:bg-accent data-[active=true]:bg-accent/50 data-[active=true]:text-accent-foreground hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus-visible:ring-ring/50 [&_svg:not([class*='text-'])]:text-muted-foreground flex flex-col gap-1 rounded-sm p-2 text-sm transition-all outline-none focus-visible:ring-[3px] focus-visible:outline-1 [&_svg:not([class*='size-'])]:size-4",
|
|
1649
|
-
className
|
|
1650
|
-
),
|
|
1651
|
-
...props
|
|
1652
|
-
}
|
|
1653
|
-
);
|
|
1654
|
-
}
|
|
1655
|
-
_chunk7QVYU63Ejs.__name.call(void 0, NavigationMenuLink, "NavigationMenuLink");
|
|
1656
|
-
function NavigationMenuIndicator({
|
|
1657
|
-
className,
|
|
1658
|
-
...props
|
|
1659
|
-
}) {
|
|
1660
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1661
|
-
NavigationMenuPrimitive.Indicator,
|
|
1662
|
-
{
|
|
1663
|
-
"data-slot": "navigation-menu-indicator",
|
|
1664
|
-
className: _chunkDEYKTLA3js.cn.call(void 0,
|
|
1665
|
-
"data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden",
|
|
1666
|
-
className
|
|
1667
|
-
),
|
|
1668
|
-
...props,
|
|
1669
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "bg-border relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm shadow-md" })
|
|
1670
|
-
}
|
|
1671
|
-
);
|
|
1672
|
-
}
|
|
1673
|
-
_chunk7QVYU63Ejs.__name.call(void 0, NavigationMenuIndicator, "NavigationMenuIndicator");
|
|
1674
|
-
|
|
1675
|
-
// src/shadcnui/ui/popover.tsx
|
|
1676
|
-
var _reactpopover = require('@radix-ui/react-popover'); var PopoverPrimitive = _interopRequireWildcard(_reactpopover);
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
var Popover = PopoverPrimitive.Root;
|
|
1680
|
-
var PopoverTrigger = PopoverPrimitive.Trigger;
|
|
1681
|
-
var PopoverAnchor = PopoverPrimitive.Anchor;
|
|
1682
|
-
var PopoverContent = React18.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, PopoverPrimitive.Portal, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1683
|
-
PopoverPrimitive.Content,
|
|
1684
|
-
{
|
|
1685
|
-
ref,
|
|
1686
|
-
align,
|
|
1687
|
-
sideOffset,
|
|
1688
|
-
className: _chunkDEYKTLA3js.cn.call(void 0,
|
|
1689
|
-
"z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none 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",
|
|
1690
|
-
className
|
|
1691
|
-
),
|
|
1692
|
-
...props
|
|
1693
|
-
}
|
|
1694
|
-
) }));
|
|
1695
|
-
PopoverContent.displayName = PopoverPrimitive.Content.displayName;
|
|
1696
|
-
|
|
1697
|
-
// src/shadcnui/ui/progress.tsx
|
|
1698
|
-
var _reactprogress = require('@radix-ui/react-progress'); var ProgressPrimitive = _interopRequireWildcard(_reactprogress);
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
var Progress = React19.forwardRef(({ className, value, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1702
|
-
ProgressPrimitive.Root,
|
|
1703
|
-
{
|
|
1704
|
-
ref,
|
|
1705
|
-
className: _chunkDEYKTLA3js.cn.call(void 0, "relative h-2 w-full overflow-hidden rounded-full bg-primary/20", className),
|
|
1706
|
-
...props,
|
|
1707
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1708
|
-
ProgressPrimitive.Indicator,
|
|
1709
|
-
{
|
|
1710
|
-
className: "h-full w-full flex-1 bg-primary transition-all",
|
|
1711
|
-
style: { transform: `translateX(-${100 - (value || 0)}%)` }
|
|
1712
|
-
}
|
|
1713
|
-
)
|
|
1714
|
-
}
|
|
1715
|
-
));
|
|
1716
|
-
Progress.displayName = ProgressPrimitive.Root.displayName;
|
|
1717
|
-
|
|
1718
|
-
// src/shadcnui/ui/radio-group.tsx
|
|
1719
|
-
|
|
1720
|
-
var _reactradiogroup = require('@radix-ui/react-radio-group'); var RadioGroupPrimitive = _interopRequireWildcard(_reactradiogroup);
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
var RadioGroup3 = React20.forwardRef(({ className, ...props }, ref) => {
|
|
1724
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, RadioGroupPrimitive.Root, { className: _chunkDEYKTLA3js.cn.call(void 0, "grid gap-2", className), ...props, ref });
|
|
1725
|
-
});
|
|
1726
|
-
RadioGroup3.displayName = RadioGroupPrimitive.Root.displayName;
|
|
1727
|
-
var RadioGroupItem = React20.forwardRef(({ className, ...props }, ref) => {
|
|
1728
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1729
|
-
RadioGroupPrimitive.Item,
|
|
1730
|
-
{
|
|
1731
|
-
ref,
|
|
1732
|
-
className: _chunkDEYKTLA3js.cn.call(void 0,
|
|
1733
|
-
"aspect-square h-4 w-4 rounded-full border border-primary text-primary shadow focus:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",
|
|
1734
|
-
className
|
|
1735
|
-
),
|
|
1736
|
-
...props,
|
|
1737
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, RadioGroupPrimitive.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reacticons.DotFilledIcon, { className: "h-3.5 w-3.5 fill-primary" }) })
|
|
1738
|
-
}
|
|
1739
|
-
);
|
|
1740
|
-
});
|
|
1741
|
-
RadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName;
|
|
1742
|
-
|
|
1743
|
-
// src/shadcnui/ui/resizable.tsx
|
|
1744
|
-
|
|
1745
|
-
var _reactresizablepanels = require('react-resizable-panels'); var ResizablePrimitive = _interopRequireWildcard(_reactresizablepanels);
|
|
1746
|
-
|
|
1747
|
-
function ResizablePanelGroup({ className, ...props }) {
|
|
1748
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1749
|
-
ResizablePrimitive.PanelGroup,
|
|
1750
|
-
{
|
|
1751
|
-
"data-slot": "resizable-panel-group",
|
|
1752
|
-
className: _chunkDEYKTLA3js.cn.call(void 0, "flex h-full w-full data-[panel-group-direction=vertical]:flex-col", className),
|
|
1753
|
-
...props
|
|
1754
|
-
}
|
|
1755
|
-
);
|
|
1756
|
-
}
|
|
1757
|
-
_chunk7QVYU63Ejs.__name.call(void 0, ResizablePanelGroup, "ResizablePanelGroup");
|
|
1758
|
-
function ResizablePanel({ ...props }) {
|
|
1759
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ResizablePrimitive.Panel, { "data-slot": "resizable-panel", ...props });
|
|
1760
|
-
}
|
|
1761
|
-
_chunk7QVYU63Ejs.__name.call(void 0, ResizablePanel, "ResizablePanel");
|
|
1762
|
-
function ResizableHandle({
|
|
1763
|
-
withHandle,
|
|
1764
|
-
className,
|
|
1765
|
-
...props
|
|
1766
|
-
}) {
|
|
1767
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1768
|
-
ResizablePrimitive.PanelResizeHandle,
|
|
1769
|
-
{
|
|
1770
|
-
"data-slot": "resizable-handle",
|
|
1771
|
-
className: _chunkDEYKTLA3js.cn.call(void 0,
|
|
1772
|
-
"bg-border focus-visible:ring-ring relative flex w-px items-center justify-center after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:ring-offset-1 focus-visible:outline-hidden data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:translate-x-0 data-[panel-group-direction=vertical]:after:-translate-y-1/2 [&[data-panel-group-direction=vertical]>div]:rotate-90",
|
|
1773
|
-
className
|
|
1774
|
-
),
|
|
1775
|
-
...props,
|
|
1776
|
-
children: withHandle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "bg-border z-10 flex h-4 w-3 items-center justify-center rounded-xs border", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.GripVerticalIcon, { className: "size-2.5" }) })
|
|
1777
|
-
}
|
|
1778
|
-
);
|
|
1779
|
-
}
|
|
1780
|
-
_chunk7QVYU63Ejs.__name.call(void 0, ResizableHandle, "ResizableHandle");
|
|
1781
|
-
|
|
1782
|
-
// src/shadcnui/ui/scroll-area.tsx
|
|
1783
|
-
var _reactscrollarea = require('@radix-ui/react-scroll-area'); var ScrollAreaPrimitive = _interopRequireWildcard(_reactscrollarea);
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
var ScrollArea = React21.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, ScrollAreaPrimitive.Root, { ref, className: _chunkDEYKTLA3js.cn.call(void 0, "relative overflow-hidden", className), ...props, children: [
|
|
1787
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ScrollAreaPrimitive.Viewport, { className: "h-full w-full rounded-[inherit]", children }),
|
|
1788
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ScrollBar, {}),
|
|
1789
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ScrollAreaPrimitive.Corner, {})
|
|
1790
|
-
] }));
|
|
1791
|
-
ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
|
|
1792
|
-
var ScrollBar = React21.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1793
|
-
ScrollAreaPrimitive.ScrollAreaScrollbar,
|
|
1794
|
-
{
|
|
1795
|
-
ref,
|
|
1796
|
-
orientation,
|
|
1797
|
-
className: _chunkDEYKTLA3js.cn.call(void 0,
|
|
1798
|
-
"flex touch-none select-none transition-colors",
|
|
1799
|
-
orientation === "vertical" && "h-full w-2.5 border-l border-l-transparent p-[1px]",
|
|
1800
|
-
orientation === "horizontal" && "h-2.5 flex-col border-t border-t-transparent p-[1px]",
|
|
1801
|
-
className
|
|
1802
|
-
),
|
|
1803
|
-
...props,
|
|
1804
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ScrollAreaPrimitive.ScrollAreaThumb, { className: "relative flex-1 rounded-full bg-border" })
|
|
1805
|
-
}
|
|
1806
|
-
));
|
|
1807
|
-
ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
|
|
1808
|
-
|
|
1809
|
-
// src/shadcnui/ui/select.tsx
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
var _reactselect = require('@radix-ui/react-select'); var SelectPrimitive = _interopRequireWildcard(_reactselect);
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
var Select = SelectPrimitive.Root;
|
|
1820
|
-
var SelectGroup = SelectPrimitive.Group;
|
|
1821
|
-
var SelectValue = SelectPrimitive.Value;
|
|
1822
|
-
var SelectTrigger = React22.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1823
|
-
SelectPrimitive.Trigger,
|
|
1824
|
-
{
|
|
1825
|
-
ref,
|
|
1826
|
-
className: _chunkDEYKTLA3js.cn.call(void 0,
|
|
1827
|
-
"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",
|
|
1828
|
-
className
|
|
1829
|
-
),
|
|
1830
|
-
...props,
|
|
1831
|
-
children: [
|
|
1832
|
-
children,
|
|
1833
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reacticons.CaretSortIcon, { className: "h-4 w-4 opacity-50" }) })
|
|
1834
|
-
]
|
|
1835
|
-
}
|
|
1836
|
-
));
|
|
1837
|
-
SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
|
|
1838
|
-
var SelectScrollUpButton = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1839
|
-
SelectPrimitive.ScrollUpButton,
|
|
1840
|
-
{
|
|
1841
|
-
ref,
|
|
1842
|
-
className: _chunkDEYKTLA3js.cn.call(void 0,
|
|
1843
|
-
"flex cursor-default items-center justify-center py-1",
|
|
1844
|
-
className
|
|
1845
|
-
),
|
|
1846
|
-
...props,
|
|
1847
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reacticons.ChevronUpIcon, {})
|
|
1848
|
-
}
|
|
1849
|
-
));
|
|
1850
|
-
SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
|
|
1851
|
-
var SelectScrollDownButton = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1852
|
-
SelectPrimitive.ScrollDownButton,
|
|
1853
|
-
{
|
|
1854
|
-
ref,
|
|
1855
|
-
className: _chunkDEYKTLA3js.cn.call(void 0,
|
|
1856
|
-
"flex cursor-default items-center justify-center py-1",
|
|
1857
|
-
className
|
|
1858
|
-
),
|
|
1859
|
-
...props,
|
|
1860
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reacticons.ChevronDownIcon, {})
|
|
1861
|
-
}
|
|
1862
|
-
));
|
|
1863
|
-
SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
|
|
1864
|
-
var SelectContent = React22.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectPrimitive.Portal, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1865
|
-
SelectPrimitive.Content,
|
|
1866
|
-
{
|
|
1867
|
-
ref,
|
|
1868
|
-
className: _chunkDEYKTLA3js.cn.call(void 0,
|
|
1869
|
-
"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",
|
|
1870
|
-
position === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
|
|
1871
|
-
className
|
|
1872
|
-
),
|
|
1873
|
-
position,
|
|
1874
|
-
...props,
|
|
1875
|
-
children: [
|
|
1876
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectScrollUpButton, {}),
|
|
1877
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1878
|
-
SelectPrimitive.Viewport,
|
|
1879
|
-
{
|
|
1880
|
-
className: _chunkDEYKTLA3js.cn.call(void 0,
|
|
1881
|
-
"p-1",
|
|
1882
|
-
position === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"
|
|
1883
|
-
),
|
|
1884
|
-
children
|
|
1885
|
-
}
|
|
1886
|
-
),
|
|
1887
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectScrollDownButton, {})
|
|
1888
|
-
]
|
|
1889
|
-
}
|
|
1890
|
-
) }));
|
|
1891
|
-
SelectContent.displayName = SelectPrimitive.Content.displayName;
|
|
1892
|
-
var SelectLabel = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1893
|
-
SelectPrimitive.Label,
|
|
1894
|
-
{
|
|
1895
|
-
ref,
|
|
1896
|
-
className: _chunkDEYKTLA3js.cn.call(void 0, "px-2 py-1.5 text-sm font-semibold", className),
|
|
1897
|
-
...props
|
|
1898
|
-
}
|
|
1899
|
-
));
|
|
1900
|
-
SelectLabel.displayName = SelectPrimitive.Label.displayName;
|
|
1901
|
-
var SelectItem = React22.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1902
|
-
SelectPrimitive.Item,
|
|
1903
|
-
{
|
|
1904
|
-
ref,
|
|
1905
|
-
className: _chunkDEYKTLA3js.cn.call(void 0,
|
|
1906
|
-
"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",
|
|
1907
|
-
className
|
|
1908
|
-
),
|
|
1909
|
-
...props,
|
|
1910
|
-
children: [
|
|
1911
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "absolute right-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reacticons.CheckIcon, { className: "h-4 w-4" }) }) }),
|
|
1912
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectPrimitive.ItemText, { children })
|
|
1913
|
-
]
|
|
1914
|
-
}
|
|
1915
|
-
));
|
|
1916
|
-
SelectItem.displayName = SelectPrimitive.Item.displayName;
|
|
1917
|
-
var SelectSeparator = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1918
|
-
SelectPrimitive.Separator,
|
|
1919
|
-
{
|
|
1920
|
-
ref,
|
|
1921
|
-
className: _chunkDEYKTLA3js.cn.call(void 0, "-mx-1 my-1 h-px bg-muted", className),
|
|
1922
|
-
...props
|
|
1923
|
-
}
|
|
1924
|
-
));
|
|
1925
|
-
SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
|
|
1926
|
-
|
|
1927
|
-
// src/shadcnui/ui/separator.tsx
|
|
1928
|
-
var _reactseparator = require('@radix-ui/react-separator'); var SeparatorPrimitive = _interopRequireWildcard(_reactseparator);
|
|
1929
|
-
|
|
1930
|
-
function Separator4({
|
|
1931
|
-
className,
|
|
1932
|
-
orientation = "horizontal",
|
|
1933
|
-
decorative = true,
|
|
1934
|
-
...props
|
|
1935
|
-
}) {
|
|
1936
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1937
|
-
SeparatorPrimitive.Root,
|
|
1938
|
-
{
|
|
1939
|
-
"data-slot": "separator",
|
|
1940
|
-
decorative,
|
|
1941
|
-
orientation,
|
|
1942
|
-
className: _chunkDEYKTLA3js.cn.call(void 0,
|
|
1943
|
-
"bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",
|
|
1944
|
-
className
|
|
1945
|
-
),
|
|
1946
|
-
...props
|
|
1947
|
-
}
|
|
1948
|
-
);
|
|
1949
|
-
}
|
|
1950
|
-
_chunk7QVYU63Ejs.__name.call(void 0, Separator4, "Separator");
|
|
1951
|
-
|
|
1952
|
-
// src/shadcnui/ui/sheet.tsx
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
function Sheet({ ...props }) {
|
|
1957
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SheetPrimitive.Root, { "data-slot": "sheet", ...props });
|
|
1958
|
-
}
|
|
1959
|
-
_chunk7QVYU63Ejs.__name.call(void 0, Sheet, "Sheet");
|
|
1960
|
-
function SheetTrigger({
|
|
1961
|
-
...props
|
|
1962
|
-
}) {
|
|
1963
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SheetPrimitive.Trigger, { "data-slot": "sheet-trigger", ...props });
|
|
1964
|
-
}
|
|
1965
|
-
_chunk7QVYU63Ejs.__name.call(void 0, SheetTrigger, "SheetTrigger");
|
|
1966
|
-
function SheetClose({
|
|
1967
|
-
...props
|
|
1968
|
-
}) {
|
|
1969
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SheetPrimitive.Close, { "data-slot": "sheet-close", ...props });
|
|
1970
|
-
}
|
|
1971
|
-
_chunk7QVYU63Ejs.__name.call(void 0, SheetClose, "SheetClose");
|
|
1972
|
-
function SheetPortal({
|
|
1973
|
-
...props
|
|
1974
|
-
}) {
|
|
1975
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SheetPrimitive.Portal, { "data-slot": "sheet-portal", ...props });
|
|
1976
|
-
}
|
|
1977
|
-
_chunk7QVYU63Ejs.__name.call(void 0, SheetPortal, "SheetPortal");
|
|
1978
|
-
function SheetOverlay({
|
|
1979
|
-
className,
|
|
1980
|
-
...props
|
|
1981
|
-
}) {
|
|
1982
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1983
|
-
SheetPrimitive.Overlay,
|
|
1984
|
-
{
|
|
1985
|
-
"data-slot": "sheet-overlay",
|
|
1986
|
-
className: _chunkDEYKTLA3js.cn.call(void 0,
|
|
1987
|
-
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",
|
|
1988
|
-
className
|
|
1989
|
-
),
|
|
1990
|
-
...props
|
|
1991
|
-
}
|
|
1992
|
-
);
|
|
1993
|
-
}
|
|
1994
|
-
_chunk7QVYU63Ejs.__name.call(void 0, SheetOverlay, "SheetOverlay");
|
|
1995
|
-
function SheetContent({
|
|
1996
|
-
className,
|
|
1997
|
-
children,
|
|
1998
|
-
side = "right",
|
|
1999
|
-
...props
|
|
2000
|
-
}) {
|
|
2001
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, SheetPortal, { children: [
|
|
2002
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, SheetOverlay, {}),
|
|
2003
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2004
|
-
SheetPrimitive.Content,
|
|
2005
|
-
{
|
|
2006
|
-
"data-slot": "sheet-content",
|
|
2007
|
-
className: _chunkDEYKTLA3js.cn.call(void 0,
|
|
2008
|
-
"bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",
|
|
2009
|
-
side === "right" && "data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",
|
|
2010
|
-
side === "left" && "data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",
|
|
2011
|
-
side === "top" && "data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",
|
|
2012
|
-
side === "bottom" && "data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",
|
|
2013
|
-
className
|
|
2014
|
-
),
|
|
2015
|
-
...props,
|
|
2016
|
-
children: [
|
|
2017
|
-
children,
|
|
2018
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, SheetPrimitive.Close, { className: "ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none", children: [
|
|
2019
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.XIcon, { className: "size-4" }),
|
|
2020
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "sr-only", children: "Close" })
|
|
2021
|
-
] })
|
|
2022
|
-
]
|
|
2023
|
-
}
|
|
2024
|
-
)
|
|
2025
|
-
] });
|
|
2026
|
-
}
|
|
2027
|
-
_chunk7QVYU63Ejs.__name.call(void 0, SheetContent, "SheetContent");
|
|
2028
|
-
function SheetHeader({ className, ...props }) {
|
|
2029
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2030
|
-
"div",
|
|
2031
|
-
{
|
|
2032
|
-
"data-slot": "sheet-header",
|
|
2033
|
-
className: _chunkDEYKTLA3js.cn.call(void 0, "flex flex-col gap-1.5 p-4", className),
|
|
2034
|
-
...props
|
|
2035
|
-
}
|
|
2036
|
-
);
|
|
2037
|
-
}
|
|
2038
|
-
_chunk7QVYU63Ejs.__name.call(void 0, SheetHeader, "SheetHeader");
|
|
2039
|
-
function SheetFooter({ className, ...props }) {
|
|
2040
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2041
|
-
"div",
|
|
2042
|
-
{
|
|
2043
|
-
"data-slot": "sheet-footer",
|
|
2044
|
-
className: _chunkDEYKTLA3js.cn.call(void 0, "mt-auto flex flex-col gap-2 p-4", className),
|
|
2045
|
-
...props
|
|
2046
|
-
}
|
|
2047
|
-
);
|
|
2048
|
-
}
|
|
2049
|
-
_chunk7QVYU63Ejs.__name.call(void 0, SheetFooter, "SheetFooter");
|
|
2050
|
-
function SheetTitle({
|
|
2051
|
-
className,
|
|
2052
|
-
...props
|
|
2053
|
-
}) {
|
|
2054
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2055
|
-
SheetPrimitive.Title,
|
|
2056
|
-
{
|
|
2057
|
-
"data-slot": "sheet-title",
|
|
2058
|
-
className: _chunkDEYKTLA3js.cn.call(void 0, "text-foreground font-semibold", className),
|
|
2059
|
-
...props
|
|
2060
|
-
}
|
|
2061
|
-
);
|
|
2062
|
-
}
|
|
2063
|
-
_chunk7QVYU63Ejs.__name.call(void 0, SheetTitle, "SheetTitle");
|
|
2064
|
-
function SheetDescription({
|
|
2065
|
-
className,
|
|
2066
|
-
...props
|
|
2067
|
-
}) {
|
|
2068
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2069
|
-
SheetPrimitive.Description,
|
|
2070
|
-
{
|
|
2071
|
-
"data-slot": "sheet-description",
|
|
2072
|
-
className: _chunkDEYKTLA3js.cn.call(void 0, "text-muted-foreground text-sm", className),
|
|
2073
|
-
...props
|
|
2074
|
-
}
|
|
2075
|
-
);
|
|
2076
|
-
}
|
|
2077
|
-
_chunk7QVYU63Ejs.__name.call(void 0, SheetDescription, "SheetDescription");
|
|
2078
|
-
|
|
2079
|
-
// src/shadcnui/ui/sidebar.tsx
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
// src/shadcnui/ui/skeleton.tsx
|
|
2086
|
-
|
|
2087
|
-
function Skeleton({ className, ...props }) {
|
|
2088
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2089
|
-
"div",
|
|
2090
|
-
{
|
|
2091
|
-
"data-slot": "skeleton",
|
|
2092
|
-
className: _chunkDEYKTLA3js.cn.call(void 0, "bg-accent animate-pulse rounded-md", className),
|
|
2093
|
-
...props
|
|
2094
|
-
}
|
|
2095
|
-
);
|
|
2096
|
-
}
|
|
2097
|
-
_chunk7QVYU63Ejs.__name.call(void 0, Skeleton, "Skeleton");
|
|
2098
|
-
|
|
2099
|
-
// src/shadcnui/ui/tooltip.tsx
|
|
2100
|
-
var _reacttooltip = require('@radix-ui/react-tooltip'); var TooltipPrimitive = _interopRequireWildcard(_reacttooltip);
|
|
2101
|
-
|
|
2102
|
-
function TooltipProvider({
|
|
2103
|
-
delayDuration = 0,
|
|
2104
|
-
...props
|
|
2105
|
-
}) {
|
|
2106
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2107
|
-
TooltipPrimitive.Provider,
|
|
2108
|
-
{
|
|
2109
|
-
"data-slot": "tooltip-provider",
|
|
2110
|
-
delayDuration,
|
|
2111
|
-
...props
|
|
2112
|
-
}
|
|
2113
|
-
);
|
|
2114
|
-
}
|
|
2115
|
-
_chunk7QVYU63Ejs.__name.call(void 0, TooltipProvider, "TooltipProvider");
|
|
2116
|
-
function Tooltip2({
|
|
2117
|
-
...props
|
|
2118
|
-
}) {
|
|
2119
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TooltipProvider, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TooltipPrimitive.Root, { "data-slot": "tooltip", ...props }) });
|
|
2120
|
-
}
|
|
2121
|
-
_chunk7QVYU63Ejs.__name.call(void 0, Tooltip2, "Tooltip");
|
|
2122
|
-
function TooltipTrigger({
|
|
2123
|
-
...props
|
|
2124
|
-
}) {
|
|
2125
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TooltipPrimitive.Trigger, { "data-slot": "tooltip-trigger", ...props });
|
|
2126
|
-
}
|
|
2127
|
-
_chunk7QVYU63Ejs.__name.call(void 0, TooltipTrigger, "TooltipTrigger");
|
|
2128
|
-
function TooltipContent({
|
|
2129
|
-
className,
|
|
2130
|
-
sideOffset = 0,
|
|
2131
|
-
children,
|
|
2132
|
-
...props
|
|
2133
|
-
}) {
|
|
2134
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TooltipPrimitive.Portal, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2135
|
-
TooltipPrimitive.Content,
|
|
2136
|
-
{
|
|
2137
|
-
"data-slot": "tooltip-content",
|
|
2138
|
-
sideOffset,
|
|
2139
|
-
className: _chunkDEYKTLA3js.cn.call(void 0,
|
|
2140
|
-
"bg-primary text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-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 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",
|
|
2141
|
-
className
|
|
2142
|
-
),
|
|
2143
|
-
...props,
|
|
2144
|
-
children: [
|
|
2145
|
-
children,
|
|
2146
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TooltipPrimitive.Arrow, { className: "bg-primary fill-primary z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]" })
|
|
2147
|
-
]
|
|
2148
|
-
}
|
|
2149
|
-
) });
|
|
2150
|
-
}
|
|
2151
|
-
_chunk7QVYU63Ejs.__name.call(void 0, TooltipContent, "TooltipContent");
|
|
2152
|
-
|
|
2153
|
-
// src/shadcnui/ui/sidebar.tsx
|
|
2154
|
-
|
|
2155
|
-
var SIDEBAR_COOKIE_NAME = "sidebar_state";
|
|
2156
|
-
var SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;
|
|
2157
|
-
var SIDEBAR_WIDTH = "16rem";
|
|
2158
|
-
var SIDEBAR_WIDTH_MOBILE = "18rem";
|
|
2159
|
-
var SIDEBAR_WIDTH_ICON = "3rem";
|
|
2160
|
-
var SIDEBAR_KEYBOARD_SHORTCUT = "";
|
|
2161
|
-
var SidebarContext = React23.createContext(null);
|
|
2162
|
-
function useSidebar() {
|
|
2163
|
-
const context = React23.useContext(SidebarContext);
|
|
2164
|
-
if (!context) {
|
|
2165
|
-
throw new Error("useSidebar must be used within a SidebarProvider.");
|
|
2166
|
-
}
|
|
2167
|
-
return context;
|
|
2168
|
-
}
|
|
2169
|
-
_chunk7QVYU63Ejs.__name.call(void 0, useSidebar, "useSidebar");
|
|
2170
|
-
function SidebarProvider({
|
|
2171
|
-
defaultOpen = true,
|
|
2172
|
-
open: openProp,
|
|
2173
|
-
onOpenChange: setOpenProp,
|
|
2174
|
-
className,
|
|
2175
|
-
style,
|
|
2176
|
-
children,
|
|
2177
|
-
...props
|
|
2178
|
-
}) {
|
|
2179
|
-
const isMobile = _chunkDEYKTLA3js.useIsMobile.call(void 0, );
|
|
2180
|
-
const [openMobile, setOpenMobile] = React23.useState(false);
|
|
2181
|
-
const [_open, _setOpen] = React23.useState(defaultOpen);
|
|
2182
|
-
const open = _nullishCoalesce(openProp, () => ( _open));
|
|
2183
|
-
const setOpen = React23.useCallback(
|
|
2184
|
-
(value) => {
|
|
2185
|
-
const openState = typeof value === "function" ? value(open) : value;
|
|
2186
|
-
if (setOpenProp) {
|
|
2187
|
-
setOpenProp(openState);
|
|
2188
|
-
} else {
|
|
2189
|
-
_setOpen(openState);
|
|
2190
|
-
}
|
|
2191
|
-
document.cookie = `${SIDEBAR_COOKIE_NAME}=${openState}; path=/; max-age=${SIDEBAR_COOKIE_MAX_AGE}`;
|
|
2192
|
-
},
|
|
2193
|
-
[setOpenProp, open]
|
|
2194
|
-
);
|
|
2195
|
-
const toggleSidebar = React23.useCallback(() => {
|
|
2196
|
-
return isMobile ? setOpenMobile((open2) => !open2) : setOpen((open2) => !open2);
|
|
2197
|
-
}, [isMobile, setOpen, setOpenMobile]);
|
|
2198
|
-
React23.useEffect(() => {
|
|
2199
|
-
const handleKeyDown = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (event) => {
|
|
2200
|
-
if (event.key === SIDEBAR_KEYBOARD_SHORTCUT && (event.metaKey || event.ctrlKey)) {
|
|
2201
|
-
event.preventDefault();
|
|
2202
|
-
toggleSidebar();
|
|
2203
|
-
}
|
|
2204
|
-
}, "handleKeyDown");
|
|
2205
|
-
window.addEventListener("keydown", handleKeyDown);
|
|
2206
|
-
return () => window.removeEventListener("keydown", handleKeyDown);
|
|
2207
|
-
}, [toggleSidebar]);
|
|
2208
|
-
const state = open ? "expanded" : "collapsed";
|
|
2209
|
-
const contextValue = React23.useMemo(
|
|
2210
|
-
() => ({
|
|
2211
|
-
state,
|
|
2212
|
-
open,
|
|
2213
|
-
setOpen,
|
|
2214
|
-
isMobile,
|
|
2215
|
-
openMobile,
|
|
2216
|
-
setOpenMobile,
|
|
2217
|
-
toggleSidebar
|
|
2218
|
-
}),
|
|
2219
|
-
[state, open, setOpen, isMobile, openMobile, setOpenMobile, toggleSidebar]
|
|
2220
|
-
);
|
|
2221
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SidebarContext.Provider, { value: contextValue, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TooltipProvider, { delayDuration: 0, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2222
|
-
"div",
|
|
2223
|
-
{
|
|
2224
|
-
"data-slot": "sidebar-wrapper",
|
|
2225
|
-
style: {
|
|
2226
|
-
"--sidebar-width": SIDEBAR_WIDTH,
|
|
2227
|
-
"--sidebar-width-icon": SIDEBAR_WIDTH_ICON,
|
|
2228
|
-
...style
|
|
2229
|
-
},
|
|
2230
|
-
className: _chunkDEYKTLA3js.cn.call(void 0, "group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full", className),
|
|
2231
|
-
...props,
|
|
2232
|
-
children
|
|
2233
|
-
}
|
|
2234
|
-
) }) });
|
|
2235
|
-
}
|
|
2236
|
-
_chunk7QVYU63Ejs.__name.call(void 0, SidebarProvider, "SidebarProvider");
|
|
2237
|
-
function Sidebar({
|
|
2238
|
-
side = "left",
|
|
2239
|
-
variant = "sidebar",
|
|
2240
|
-
collapsible = "offcanvas",
|
|
2241
|
-
className,
|
|
2242
|
-
children,
|
|
2243
|
-
...props
|
|
2244
|
-
}) {
|
|
2245
|
-
const { isMobile, state, openMobile, setOpenMobile } = useSidebar();
|
|
2246
|
-
if (collapsible === "none") {
|
|
2247
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2248
|
-
"div",
|
|
2249
|
-
{
|
|
2250
|
-
"data-slot": "sidebar",
|
|
2251
|
-
className: _chunkDEYKTLA3js.cn.call(void 0, "bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col", className),
|
|
2252
|
-
...props,
|
|
2253
|
-
children
|
|
2254
|
-
}
|
|
2255
|
-
);
|
|
2256
|
-
}
|
|
2257
|
-
if (isMobile) {
|
|
2258
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Sheet, { open: openMobile, onOpenChange: setOpenMobile, ...props, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2259
|
-
SheetContent,
|
|
2260
|
-
{
|
|
2261
|
-
"data-sidebar": "sidebar",
|
|
2262
|
-
"data-slot": "sidebar",
|
|
2263
|
-
"data-mobile": "true",
|
|
2264
|
-
className: "bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",
|
|
2265
|
-
style: {
|
|
2266
|
-
"--sidebar-width": SIDEBAR_WIDTH_MOBILE
|
|
2267
|
-
},
|
|
2268
|
-
side,
|
|
2269
|
-
children: [
|
|
2270
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, SheetHeader, { className: "sr-only", children: [
|
|
2271
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, SheetTitle, { children: "Sidebar" }),
|
|
2272
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, SheetDescription, { children: "Displays the mobile sidebar." })
|
|
2273
|
-
] }),
|
|
2274
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-full w-full flex-col", children })
|
|
2275
|
-
]
|
|
2276
|
-
}
|
|
2277
|
-
) });
|
|
2278
|
-
}
|
|
2279
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2280
|
-
"div",
|
|
2281
|
-
{
|
|
2282
|
-
className: "group peer text-sidebar-foreground hidden md:block",
|
|
2283
|
-
"data-state": state,
|
|
2284
|
-
"data-collapsible": state === "collapsed" ? collapsible : "",
|
|
2285
|
-
"data-variant": variant,
|
|
2286
|
-
"data-side": side,
|
|
2287
|
-
"data-slot": "sidebar",
|
|
2288
|
-
children: [
|
|
2289
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2290
|
-
"div",
|
|
2291
|
-
{
|
|
2292
|
-
"data-slot": "sidebar-gap",
|
|
2293
|
-
className: _chunkDEYKTLA3js.cn.call(void 0,
|
|
2294
|
-
"relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear",
|
|
2295
|
-
"group-data-[collapsible=offcanvas]:w-0",
|
|
2296
|
-
"group-data-[side=right]:rotate-180",
|
|
2297
|
-
variant === "floating" || variant === "inset" ? "group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]" : "group-data-[collapsible=icon]:w-(--sidebar-width-icon)"
|
|
2298
|
-
)
|
|
2299
|
-
}
|
|
2300
|
-
),
|
|
2301
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2302
|
-
"div",
|
|
2303
|
-
{
|
|
2304
|
-
"data-slot": "sidebar-container",
|
|
2305
|
-
className: _chunkDEYKTLA3js.cn.call(void 0,
|
|
2306
|
-
"fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex",
|
|
2307
|
-
side === "left" ? "left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]" : "right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",
|
|
2308
|
-
// Adjust the padding for floating and inset variants.
|
|
2309
|
-
variant === "floating" || variant === "inset" ? "p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]" : "group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l",
|
|
2310
|
-
className
|
|
2311
|
-
),
|
|
2312
|
-
...props,
|
|
2313
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2314
|
-
"div",
|
|
2315
|
-
{
|
|
2316
|
-
"data-sidebar": "sidebar",
|
|
2317
|
-
"data-slot": "sidebar-inner",
|
|
2318
|
-
className: "bg-sidebar group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm",
|
|
2319
|
-
children
|
|
2320
|
-
}
|
|
2321
|
-
)
|
|
2322
|
-
}
|
|
2323
|
-
)
|
|
2324
|
-
]
|
|
2325
|
-
}
|
|
2326
|
-
);
|
|
2327
|
-
}
|
|
2328
|
-
_chunk7QVYU63Ejs.__name.call(void 0, Sidebar, "Sidebar");
|
|
2329
|
-
function SidebarTrigger({ className, onClick, ...props }) {
|
|
2330
|
-
const { toggleSidebar } = useSidebar();
|
|
2331
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2332
|
-
Button,
|
|
2333
|
-
{
|
|
2334
|
-
"data-sidebar": "trigger",
|
|
2335
|
-
"data-slot": "sidebar-trigger",
|
|
2336
|
-
variant: "ghost",
|
|
2337
|
-
size: "icon",
|
|
2338
|
-
className: _chunkDEYKTLA3js.cn.call(void 0, "size-7", className),
|
|
2339
|
-
onClick: (event) => {
|
|
2340
|
-
_optionalChain([onClick, 'optionalCall', _43 => _43(event)]);
|
|
2341
|
-
toggleSidebar();
|
|
2342
|
-
},
|
|
2343
|
-
...props,
|
|
2344
|
-
children: [
|
|
2345
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.PanelLeftIcon, {}),
|
|
2346
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "sr-only", children: "Toggle Sidebar" })
|
|
2347
|
-
]
|
|
2348
|
-
}
|
|
2349
|
-
);
|
|
2350
|
-
}
|
|
2351
|
-
_chunk7QVYU63Ejs.__name.call(void 0, SidebarTrigger, "SidebarTrigger");
|
|
2352
|
-
function SidebarRail({ className, ...props }) {
|
|
2353
|
-
const { toggleSidebar } = useSidebar();
|
|
2354
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2355
|
-
"button",
|
|
2356
|
-
{
|
|
2357
|
-
"data-sidebar": "rail",
|
|
2358
|
-
"data-slot": "sidebar-rail",
|
|
2359
|
-
"aria-label": "Toggle Sidebar",
|
|
2360
|
-
tabIndex: -1,
|
|
2361
|
-
onClick: toggleSidebar,
|
|
2362
|
-
title: "Toggle Sidebar",
|
|
2363
|
-
className: _chunkDEYKTLA3js.cn.call(void 0,
|
|
2364
|
-
"hover:after:bg-sidebar-border absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear group-data-[side=left]:-right-4 group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] sm:flex",
|
|
2365
|
-
"in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize",
|
|
2366
|
-
"[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize",
|
|
2367
|
-
"hover:group-data-[collapsible=offcanvas]:bg-sidebar group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full",
|
|
2368
|
-
"[[data-side=left][data-collapsible=offcanvas]_&]:-right-2",
|
|
2369
|
-
"[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",
|
|
2370
|
-
className
|
|
2371
|
-
),
|
|
2372
|
-
...props
|
|
2373
|
-
}
|
|
2374
|
-
);
|
|
2375
|
-
}
|
|
2376
|
-
_chunk7QVYU63Ejs.__name.call(void 0, SidebarRail, "SidebarRail");
|
|
2377
|
-
function SidebarInset({ className, ...props }) {
|
|
2378
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2379
|
-
"main",
|
|
2380
|
-
{
|
|
2381
|
-
"data-slot": "sidebar-inset",
|
|
2382
|
-
className: _chunkDEYKTLA3js.cn.call(void 0,
|
|
2383
|
-
"bg-background relative flex w-full flex-1 flex-col",
|
|
2384
|
-
"md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",
|
|
2385
|
-
className
|
|
2386
|
-
),
|
|
2387
|
-
...props
|
|
2388
|
-
}
|
|
2389
|
-
);
|
|
2390
|
-
}
|
|
2391
|
-
_chunk7QVYU63Ejs.__name.call(void 0, SidebarInset, "SidebarInset");
|
|
2392
|
-
function SidebarInput({ className, ...props }) {
|
|
2393
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2394
|
-
Input,
|
|
2395
|
-
{
|
|
2396
|
-
"data-slot": "sidebar-input",
|
|
2397
|
-
"data-sidebar": "input",
|
|
2398
|
-
className: _chunkDEYKTLA3js.cn.call(void 0, "bg-background h-8 w-full shadow-none", className),
|
|
2399
|
-
...props
|
|
2400
|
-
}
|
|
2401
|
-
);
|
|
2402
|
-
}
|
|
2403
|
-
_chunk7QVYU63Ejs.__name.call(void 0, SidebarInput, "SidebarInput");
|
|
2404
|
-
function SidebarHeader({ className, ...props }) {
|
|
2405
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2406
|
-
"div",
|
|
2407
|
-
{
|
|
2408
|
-
"data-slot": "sidebar-header",
|
|
2409
|
-
"data-sidebar": "header",
|
|
2410
|
-
className: _chunkDEYKTLA3js.cn.call(void 0, "flex flex-col gap-2 p-2", className),
|
|
2411
|
-
...props
|
|
2412
|
-
}
|
|
2413
|
-
);
|
|
2414
|
-
}
|
|
2415
|
-
_chunk7QVYU63Ejs.__name.call(void 0, SidebarHeader, "SidebarHeader");
|
|
2416
|
-
function SidebarFooter({ className, ...props }) {
|
|
2417
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2418
|
-
"div",
|
|
2419
|
-
{
|
|
2420
|
-
"data-slot": "sidebar-footer",
|
|
2421
|
-
"data-sidebar": "footer",
|
|
2422
|
-
className: _chunkDEYKTLA3js.cn.call(void 0, "flex flex-col gap-2 p-2", className),
|
|
2423
|
-
...props
|
|
2424
|
-
}
|
|
2425
|
-
);
|
|
2426
|
-
}
|
|
2427
|
-
_chunk7QVYU63Ejs.__name.call(void 0, SidebarFooter, "SidebarFooter");
|
|
2428
|
-
function SidebarSeparator({ className, ...props }) {
|
|
2429
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2430
|
-
Separator4,
|
|
2431
|
-
{
|
|
2432
|
-
"data-slot": "sidebar-separator",
|
|
2433
|
-
"data-sidebar": "separator",
|
|
2434
|
-
className: _chunkDEYKTLA3js.cn.call(void 0, "bg-sidebar-border mx-2 w-auto", className),
|
|
2435
|
-
...props
|
|
2436
|
-
}
|
|
2437
|
-
);
|
|
2438
|
-
}
|
|
2439
|
-
_chunk7QVYU63Ejs.__name.call(void 0, SidebarSeparator, "SidebarSeparator");
|
|
2440
|
-
function SidebarContent({ className, ...props }) {
|
|
2441
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2442
|
-
"div",
|
|
2443
|
-
{
|
|
2444
|
-
"data-slot": "sidebar-content",
|
|
2445
|
-
"data-sidebar": "content",
|
|
2446
|
-
className: _chunkDEYKTLA3js.cn.call(void 0,
|
|
2447
|
-
"flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",
|
|
2448
|
-
className
|
|
2449
|
-
),
|
|
2450
|
-
...props
|
|
2451
|
-
}
|
|
2452
|
-
);
|
|
2453
|
-
}
|
|
2454
|
-
_chunk7QVYU63Ejs.__name.call(void 0, SidebarContent, "SidebarContent");
|
|
2455
|
-
function SidebarGroup({ className, ...props }) {
|
|
2456
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2457
|
-
"div",
|
|
2458
|
-
{
|
|
2459
|
-
"data-slot": "sidebar-group",
|
|
2460
|
-
"data-sidebar": "group",
|
|
2461
|
-
className: _chunkDEYKTLA3js.cn.call(void 0, "relative flex w-full min-w-0 flex-col p-2", className),
|
|
2462
|
-
...props
|
|
2463
|
-
}
|
|
2464
|
-
);
|
|
2465
|
-
}
|
|
2466
|
-
_chunk7QVYU63Ejs.__name.call(void 0, SidebarGroup, "SidebarGroup");
|
|
2467
|
-
function SidebarGroupLabel({
|
|
2468
|
-
className,
|
|
2469
|
-
asChild = false,
|
|
2470
|
-
...props
|
|
2471
|
-
}) {
|
|
2472
|
-
const Comp = asChild ? _reactslot.Slot : "div";
|
|
2473
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2474
|
-
Comp,
|
|
2475
|
-
{
|
|
2476
|
-
"data-slot": "sidebar-group-label",
|
|
2477
|
-
"data-sidebar": "group-label",
|
|
2478
|
-
className: _chunkDEYKTLA3js.cn.call(void 0,
|
|
2479
|
-
"text-sidebar-foreground/70 ring-sidebar-ring flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium outline-hidden transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",
|
|
2480
|
-
"group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",
|
|
2481
|
-
className
|
|
2482
|
-
),
|
|
2483
|
-
...props
|
|
2484
|
-
}
|
|
2485
|
-
);
|
|
2486
|
-
}
|
|
2487
|
-
_chunk7QVYU63Ejs.__name.call(void 0, SidebarGroupLabel, "SidebarGroupLabel");
|
|
2488
|
-
function SidebarGroupAction({
|
|
2489
|
-
className,
|
|
2490
|
-
asChild = false,
|
|
2491
|
-
...props
|
|
2492
|
-
}) {
|
|
2493
|
-
const Comp = asChild ? _reactslot.Slot : "button";
|
|
2494
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2495
|
-
Comp,
|
|
2496
|
-
{
|
|
2497
|
-
"data-slot": "sidebar-group-action",
|
|
2498
|
-
"data-sidebar": "group-action",
|
|
2499
|
-
className: _chunkDEYKTLA3js.cn.call(void 0,
|
|
2500
|
-
"text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground absolute top-3.5 right-3 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",
|
|
2501
|
-
// Increases the hit area of the button on mobile.
|
|
2502
|
-
"after:absolute after:-inset-2 md:after:hidden",
|
|
2503
|
-
"group-data-[collapsible=icon]:hidden",
|
|
2504
|
-
className
|
|
2505
|
-
),
|
|
2506
|
-
...props
|
|
2507
|
-
}
|
|
2508
|
-
);
|
|
2509
|
-
}
|
|
2510
|
-
_chunk7QVYU63Ejs.__name.call(void 0, SidebarGroupAction, "SidebarGroupAction");
|
|
2511
|
-
function SidebarGroupContent({ className, ...props }) {
|
|
2512
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2513
|
-
"div",
|
|
2514
|
-
{
|
|
2515
|
-
"data-slot": "sidebar-group-content",
|
|
2516
|
-
"data-sidebar": "group-content",
|
|
2517
|
-
className: _chunkDEYKTLA3js.cn.call(void 0, "w-full text-sm", className),
|
|
2518
|
-
...props
|
|
2519
|
-
}
|
|
2520
|
-
);
|
|
2521
|
-
}
|
|
2522
|
-
_chunk7QVYU63Ejs.__name.call(void 0, SidebarGroupContent, "SidebarGroupContent");
|
|
2523
|
-
function SidebarMenu({ className, ...props }) {
|
|
2524
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2525
|
-
"ul",
|
|
2526
|
-
{
|
|
2527
|
-
"data-slot": "sidebar-menu",
|
|
2528
|
-
"data-sidebar": "menu",
|
|
2529
|
-
className: _chunkDEYKTLA3js.cn.call(void 0, "flex w-full min-w-0 flex-col gap-1", className),
|
|
2530
|
-
...props
|
|
2531
|
-
}
|
|
2532
|
-
);
|
|
2533
|
-
}
|
|
2534
|
-
_chunk7QVYU63Ejs.__name.call(void 0, SidebarMenu, "SidebarMenu");
|
|
2535
|
-
function SidebarMenuItem({ className, ...props }) {
|
|
2536
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2537
|
-
"li",
|
|
2538
|
-
{
|
|
2539
|
-
"data-slot": "sidebar-menu-item",
|
|
2540
|
-
"data-sidebar": "menu-item",
|
|
2541
|
-
className: _chunkDEYKTLA3js.cn.call(void 0, "group/menu-item relative", className),
|
|
2542
|
-
...props
|
|
2543
|
-
}
|
|
2544
|
-
);
|
|
2545
|
-
}
|
|
2546
|
-
_chunk7QVYU63Ejs.__name.call(void 0, SidebarMenuItem, "SidebarMenuItem");
|
|
2547
|
-
var sidebarMenuButtonVariants = _classvarianceauthority.cva.call(void 0,
|
|
2548
|
-
"peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",
|
|
2549
|
-
{
|
|
2550
|
-
variants: {
|
|
2551
|
-
variant: {
|
|
2552
|
-
default: "hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",
|
|
2553
|
-
outline: "bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"
|
|
2554
|
-
},
|
|
2555
|
-
size: {
|
|
2556
|
-
default: "h-8 text-sm",
|
|
2557
|
-
sm: "h-7 text-xs",
|
|
2558
|
-
lg: "h-12 text-sm group-data-[collapsible=icon]:p-0!"
|
|
2559
|
-
}
|
|
2560
|
-
},
|
|
2561
|
-
defaultVariants: {
|
|
2562
|
-
variant: "default",
|
|
2563
|
-
size: "default"
|
|
2564
|
-
}
|
|
2565
|
-
}
|
|
2566
|
-
);
|
|
2567
|
-
function SidebarMenuButton({
|
|
2568
|
-
asChild = false,
|
|
2569
|
-
isActive = false,
|
|
2570
|
-
variant = "default",
|
|
2571
|
-
size = "default",
|
|
2572
|
-
tooltip,
|
|
2573
|
-
className,
|
|
2574
|
-
...props
|
|
2575
|
-
}) {
|
|
2576
|
-
const Comp = asChild ? _reactslot.Slot : "button";
|
|
2577
|
-
const { isMobile, state } = useSidebar();
|
|
2578
|
-
const button = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2579
|
-
Comp,
|
|
2580
|
-
{
|
|
2581
|
-
"data-slot": "sidebar-menu-button",
|
|
2582
|
-
"data-sidebar": "menu-button",
|
|
2583
|
-
"data-size": size,
|
|
2584
|
-
"data-active": isActive,
|
|
2585
|
-
className: _chunkDEYKTLA3js.cn.call(void 0, sidebarMenuButtonVariants({ variant, size }), className),
|
|
2586
|
-
...props
|
|
2587
|
-
}
|
|
2588
|
-
);
|
|
2589
|
-
if (!tooltip) {
|
|
2590
|
-
return button;
|
|
2591
|
-
}
|
|
2592
|
-
if (typeof tooltip === "string") {
|
|
2593
|
-
tooltip = {
|
|
2594
|
-
children: tooltip
|
|
2595
|
-
};
|
|
2596
|
-
}
|
|
2597
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Tooltip2, { children: [
|
|
2598
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TooltipTrigger, { asChild: true, children: button }),
|
|
2599
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TooltipContent, { side: "right", align: "center", hidden: state !== "collapsed" || isMobile, ...tooltip })
|
|
2600
|
-
] });
|
|
2601
|
-
}
|
|
2602
|
-
_chunk7QVYU63Ejs.__name.call(void 0, SidebarMenuButton, "SidebarMenuButton");
|
|
2603
|
-
function SidebarMenuAction({
|
|
2604
|
-
className,
|
|
2605
|
-
asChild = false,
|
|
2606
|
-
showOnHover = false,
|
|
2607
|
-
...props
|
|
2608
|
-
}) {
|
|
2609
|
-
const Comp = asChild ? _reactslot.Slot : "button";
|
|
2610
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2611
|
-
Comp,
|
|
2612
|
-
{
|
|
2613
|
-
"data-slot": "sidebar-menu-action",
|
|
2614
|
-
"data-sidebar": "menu-action",
|
|
2615
|
-
className: _chunkDEYKTLA3js.cn.call(void 0,
|
|
2616
|
-
"text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground peer-hover/menu-button:text-sidebar-accent-foreground absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",
|
|
2617
|
-
// Increases the hit area of the button on mobile.
|
|
2618
|
-
"after:absolute after:-inset-2 md:after:hidden",
|
|
2619
|
-
"peer-data-[size=sm]/menu-button:top-1",
|
|
2620
|
-
"peer-data-[size=default]/menu-button:top-1.5",
|
|
2621
|
-
"peer-data-[size=lg]/menu-button:top-2.5",
|
|
2622
|
-
"group-data-[collapsible=icon]:hidden",
|
|
2623
|
-
showOnHover && "peer-data-[active=true]/menu-button:text-sidebar-accent-foreground group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 md:opacity-0",
|
|
2624
|
-
className
|
|
2625
|
-
),
|
|
2626
|
-
...props
|
|
2627
|
-
}
|
|
2628
|
-
);
|
|
2629
|
-
}
|
|
2630
|
-
_chunk7QVYU63Ejs.__name.call(void 0, SidebarMenuAction, "SidebarMenuAction");
|
|
2631
|
-
function SidebarMenuBadge({ className, ...props }) {
|
|
2632
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2633
|
-
"div",
|
|
2634
|
-
{
|
|
2635
|
-
"data-slot": "sidebar-menu-badge",
|
|
2636
|
-
"data-sidebar": "menu-badge",
|
|
2637
|
-
className: _chunkDEYKTLA3js.cn.call(void 0,
|
|
2638
|
-
"text-sidebar-foreground pointer-events-none absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums select-none",
|
|
2639
|
-
"peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground",
|
|
2640
|
-
"peer-data-[size=sm]/menu-button:top-1",
|
|
2641
|
-
"peer-data-[size=default]/menu-button:top-1.5",
|
|
2642
|
-
"peer-data-[size=lg]/menu-button:top-2.5",
|
|
2643
|
-
"group-data-[collapsible=icon]:hidden",
|
|
2644
|
-
className
|
|
2645
|
-
),
|
|
2646
|
-
...props
|
|
2647
|
-
}
|
|
2648
|
-
);
|
|
2649
|
-
}
|
|
2650
|
-
_chunk7QVYU63Ejs.__name.call(void 0, SidebarMenuBadge, "SidebarMenuBadge");
|
|
2651
|
-
function SidebarMenuSkeleton({
|
|
2652
|
-
className,
|
|
2653
|
-
showIcon = false,
|
|
2654
|
-
...props
|
|
2655
|
-
}) {
|
|
2656
|
-
const width = React23.useMemo(() => {
|
|
2657
|
-
return `${Math.floor(Math.random() * 40) + 50}%`;
|
|
2658
|
-
}, []);
|
|
2659
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2660
|
-
"div",
|
|
2661
|
-
{
|
|
2662
|
-
"data-slot": "sidebar-menu-skeleton",
|
|
2663
|
-
"data-sidebar": "menu-skeleton",
|
|
2664
|
-
className: _chunkDEYKTLA3js.cn.call(void 0, "flex h-8 items-center gap-2 rounded-md px-2", className),
|
|
2665
|
-
...props,
|
|
2666
|
-
children: [
|
|
2667
|
-
showIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Skeleton, { className: "size-4 rounded-md", "data-sidebar": "menu-skeleton-icon" }),
|
|
2668
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2669
|
-
Skeleton,
|
|
2670
|
-
{
|
|
2671
|
-
className: "h-4 max-w-(--skeleton-width) flex-1",
|
|
2672
|
-
"data-sidebar": "menu-skeleton-text",
|
|
2673
|
-
style: {
|
|
2674
|
-
"--skeleton-width": width
|
|
2675
|
-
}
|
|
2676
|
-
}
|
|
2677
|
-
)
|
|
2678
|
-
]
|
|
2679
|
-
}
|
|
2680
|
-
);
|
|
2681
|
-
}
|
|
2682
|
-
_chunk7QVYU63Ejs.__name.call(void 0, SidebarMenuSkeleton, "SidebarMenuSkeleton");
|
|
2683
|
-
function SidebarMenuSub({ className, ...props }) {
|
|
2684
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2685
|
-
"ul",
|
|
2686
|
-
{
|
|
2687
|
-
"data-slot": "sidebar-menu-sub",
|
|
2688
|
-
"data-sidebar": "menu-sub",
|
|
2689
|
-
className: _chunkDEYKTLA3js.cn.call(void 0,
|
|
2690
|
-
"border-sidebar-border mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l px-2.5 py-0.5",
|
|
2691
|
-
"group-data-[collapsible=icon]:hidden",
|
|
2692
|
-
className
|
|
2693
|
-
),
|
|
2694
|
-
...props
|
|
2695
|
-
}
|
|
2696
|
-
);
|
|
2697
|
-
}
|
|
2698
|
-
_chunk7QVYU63Ejs.__name.call(void 0, SidebarMenuSub, "SidebarMenuSub");
|
|
2699
|
-
function SidebarMenuSubItem({ className, ...props }) {
|
|
2700
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2701
|
-
"li",
|
|
2702
|
-
{
|
|
2703
|
-
"data-slot": "sidebar-menu-sub-item",
|
|
2704
|
-
"data-sidebar": "menu-sub-item",
|
|
2705
|
-
className: _chunkDEYKTLA3js.cn.call(void 0, "group/menu-sub-item relative", className),
|
|
2706
|
-
...props
|
|
2707
|
-
}
|
|
2708
|
-
);
|
|
2709
|
-
}
|
|
2710
|
-
_chunk7QVYU63Ejs.__name.call(void 0, SidebarMenuSubItem, "SidebarMenuSubItem");
|
|
2711
|
-
function SidebarMenuSubButton({
|
|
2712
|
-
asChild = false,
|
|
2713
|
-
size = "md",
|
|
2714
|
-
isActive = false,
|
|
2715
|
-
className,
|
|
2716
|
-
...props
|
|
2717
|
-
}) {
|
|
2718
|
-
const Comp = asChild ? _reactslot.Slot : "a";
|
|
2719
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2720
|
-
Comp,
|
|
2721
|
-
{
|
|
2722
|
-
"data-slot": "sidebar-menu-sub-button",
|
|
2723
|
-
"data-sidebar": "menu-sub-button",
|
|
2724
|
-
"data-size": size,
|
|
2725
|
-
"data-active": isActive,
|
|
2726
|
-
className: _chunkDEYKTLA3js.cn.call(void 0,
|
|
2727
|
-
"text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground [&>svg]:text-sidebar-accent-foreground flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 outline-hidden focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",
|
|
2728
|
-
"data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",
|
|
2729
|
-
size === "sm" && "text-xs",
|
|
2730
|
-
size === "md" && "text-sm",
|
|
2731
|
-
"group-data-[collapsible=icon]:hidden",
|
|
2732
|
-
className
|
|
2733
|
-
),
|
|
2734
|
-
...props
|
|
2735
|
-
}
|
|
2736
|
-
);
|
|
2737
|
-
}
|
|
2738
|
-
_chunk7QVYU63Ejs.__name.call(void 0, SidebarMenuSubButton, "SidebarMenuSubButton");
|
|
2739
|
-
|
|
2740
|
-
// src/shadcnui/ui/slider.tsx
|
|
2741
|
-
var _reactslider = require('@radix-ui/react-slider'); var SliderPrimitive = _interopRequireWildcard(_reactslider);
|
|
2742
|
-
|
|
2743
|
-
|
|
2744
|
-
var Slider = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2745
|
-
SliderPrimitive.Root,
|
|
2746
|
-
{
|
|
2747
|
-
ref,
|
|
2748
|
-
className: _chunkDEYKTLA3js.cn.call(void 0, "relative flex w-full touch-none select-none items-center", className),
|
|
2749
|
-
...props,
|
|
2750
|
-
children: [
|
|
2751
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, SliderPrimitive.Track, { className: "relative h-1.5 w-full grow overflow-hidden rounded-full bg-primary/20", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SliderPrimitive.Range, { className: "absolute h-full bg-primary" }) }),
|
|
2752
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, SliderPrimitive.Thumb, { className: "block h-4 w-4 rounded-full border border-primary/50 bg-background shadow transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50" })
|
|
2753
|
-
]
|
|
2754
|
-
}
|
|
2755
|
-
));
|
|
2756
|
-
Slider.displayName = SliderPrimitive.Root.displayName;
|
|
2757
|
-
|
|
2758
|
-
// src/shadcnui/ui/sonner.tsx
|
|
2759
|
-
var _nextthemes = require('next-themes');
|
|
2760
|
-
var _sonner = require('sonner');
|
|
2761
|
-
|
|
2762
|
-
var Toaster = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ ...props }) => {
|
|
2763
|
-
const { theme = "system" } = _nextthemes.useTheme.call(void 0, );
|
|
2764
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2765
|
-
_sonner.Toaster,
|
|
2766
|
-
{
|
|
2767
|
-
theme,
|
|
2768
|
-
className: "toaster group",
|
|
2769
|
-
style: {
|
|
2770
|
-
"--normal-bg": "var(--popover)",
|
|
2771
|
-
"--normal-text": "var(--popover-foreground)",
|
|
2772
|
-
"--normal-border": "var(--border)"
|
|
2773
|
-
},
|
|
2774
|
-
...props
|
|
2775
|
-
}
|
|
2776
|
-
);
|
|
2777
|
-
}, "Toaster");
|
|
2778
|
-
|
|
2779
|
-
// src/shadcnui/ui/switch.tsx
|
|
2780
|
-
var _reactswitch = require('@radix-ui/react-switch'); var SwitchPrimitives = _interopRequireWildcard(_reactswitch);
|
|
2781
|
-
|
|
2782
|
-
|
|
2783
|
-
var Switch = React25.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2784
|
-
SwitchPrimitives.Root,
|
|
2785
|
-
{
|
|
2786
|
-
className: _chunkDEYKTLA3js.cn.call(void 0,
|
|
2787
|
-
"bg-accent focus-visible:ring-ring focus-visible:ring-offset-background data-[state=checked]:bg-primary data-[state=unchecked]:bg-accent peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
|
|
2788
|
-
className
|
|
2789
|
-
),
|
|
2790
|
-
...props,
|
|
2791
|
-
ref,
|
|
2792
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2793
|
-
SwitchPrimitives.Thumb,
|
|
2794
|
-
{
|
|
2795
|
-
className: _chunkDEYKTLA3js.cn.call(void 0,
|
|
2796
|
-
"text-title pointer-events-none block flex h-5 w-5 items-center justify-center rounded-full bg-white shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0"
|
|
2797
|
-
),
|
|
2798
|
-
children
|
|
2799
|
-
}
|
|
2800
|
-
)
|
|
2801
|
-
}
|
|
2802
|
-
));
|
|
2803
|
-
Switch.displayName = SwitchPrimitives.Root.displayName;
|
|
2804
|
-
|
|
2805
|
-
// src/shadcnui/ui/table.tsx
|
|
2806
|
-
|
|
2807
|
-
|
|
2808
|
-
var Table = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "relative w-full overflow-auto", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2809
|
-
"table",
|
|
2810
|
-
{
|
|
2811
|
-
ref,
|
|
2812
|
-
className: _chunkDEYKTLA3js.cn.call(void 0, "w-full caption-bottom text-sm", className),
|
|
2813
|
-
...props
|
|
2814
|
-
}
|
|
2815
|
-
) }));
|
|
2816
|
-
Table.displayName = "Table";
|
|
2817
|
-
var TableHeader = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "thead", { ref, className: _chunkDEYKTLA3js.cn.call(void 0, "[&_tr]:border-b", className), ...props }));
|
|
2818
|
-
TableHeader.displayName = "TableHeader";
|
|
2819
|
-
var TableBody = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2820
|
-
"tbody",
|
|
2821
|
-
{
|
|
2822
|
-
ref,
|
|
2823
|
-
className: _chunkDEYKTLA3js.cn.call(void 0, "[&_tr:last-child]:border-0", className),
|
|
2824
|
-
...props
|
|
2825
|
-
}
|
|
2826
|
-
));
|
|
2827
|
-
TableBody.displayName = "TableBody";
|
|
2828
|
-
var TableFooter = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2829
|
-
"tfoot",
|
|
2830
|
-
{
|
|
2831
|
-
ref,
|
|
2832
|
-
className: _chunkDEYKTLA3js.cn.call(void 0,
|
|
2833
|
-
"border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",
|
|
2834
|
-
className
|
|
2835
|
-
),
|
|
2836
|
-
...props
|
|
2837
|
-
}
|
|
2838
|
-
));
|
|
2839
|
-
TableFooter.displayName = "TableFooter";
|
|
2840
|
-
var TableRow = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2841
|
-
"tr",
|
|
2842
|
-
{
|
|
2843
|
-
ref,
|
|
2844
|
-
className: _chunkDEYKTLA3js.cn.call(void 0,
|
|
2845
|
-
"border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",
|
|
2846
|
-
className
|
|
2847
|
-
),
|
|
2848
|
-
...props
|
|
2849
|
-
}
|
|
2850
|
-
));
|
|
2851
|
-
TableRow.displayName = "TableRow";
|
|
2852
|
-
var TableHead = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2853
|
-
"th",
|
|
2854
|
-
{
|
|
2855
|
-
ref,
|
|
2856
|
-
className: _chunkDEYKTLA3js.cn.call(void 0,
|
|
2857
|
-
"h-10 px-2 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
|
|
2858
|
-
className
|
|
2859
|
-
),
|
|
2860
|
-
...props
|
|
2861
|
-
}
|
|
2862
|
-
));
|
|
2863
|
-
TableHead.displayName = "TableHead";
|
|
2864
|
-
var TableCell = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2865
|
-
"td",
|
|
2866
|
-
{
|
|
2867
|
-
ref,
|
|
2868
|
-
className: _chunkDEYKTLA3js.cn.call(void 0,
|
|
2869
|
-
"p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
|
|
2870
|
-
className
|
|
2871
|
-
),
|
|
2872
|
-
...props
|
|
2873
|
-
}
|
|
2874
|
-
));
|
|
2875
|
-
TableCell.displayName = "TableCell";
|
|
2876
|
-
var TableCaption = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2877
|
-
"caption",
|
|
2878
|
-
{
|
|
2879
|
-
ref,
|
|
2880
|
-
className: _chunkDEYKTLA3js.cn.call(void 0, "mt-4 text-sm text-muted-foreground", className),
|
|
2881
|
-
...props
|
|
2882
|
-
}
|
|
2883
|
-
));
|
|
2884
|
-
TableCaption.displayName = "TableCaption";
|
|
2885
|
-
|
|
2886
|
-
// src/shadcnui/ui/tabs.tsx
|
|
2887
|
-
var _reacttabs = require('@radix-ui/react-tabs'); var TabsPrimitive = _interopRequireWildcard(_reacttabs);
|
|
2888
|
-
|
|
2889
|
-
|
|
2890
|
-
var Tabs = TabsPrimitive.Root;
|
|
2891
|
-
var TabsList = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2892
|
-
TabsPrimitive.List,
|
|
2893
|
-
{
|
|
2894
|
-
ref,
|
|
2895
|
-
className: _chunkDEYKTLA3js.cn.call(void 0,
|
|
2896
|
-
"inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",
|
|
2897
|
-
className
|
|
2898
|
-
),
|
|
2899
|
-
...props
|
|
2900
|
-
}
|
|
2901
|
-
));
|
|
2902
|
-
TabsList.displayName = TabsPrimitive.List.displayName;
|
|
2903
|
-
var TabsTrigger = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2904
|
-
TabsPrimitive.Trigger,
|
|
2905
|
-
{
|
|
2906
|
-
ref,
|
|
2907
|
-
className: _chunkDEYKTLA3js.cn.call(void 0,
|
|
2908
|
-
"inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow",
|
|
2909
|
-
className
|
|
2910
|
-
),
|
|
2911
|
-
...props
|
|
2912
|
-
}
|
|
2913
|
-
));
|
|
2914
|
-
TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
|
|
2915
|
-
var TabsContent = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2916
|
-
TabsPrimitive.Content,
|
|
2917
|
-
{
|
|
2918
|
-
ref,
|
|
2919
|
-
className: _chunkDEYKTLA3js.cn.call(void 0,
|
|
2920
|
-
"mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
|
|
2921
|
-
className
|
|
2922
|
-
),
|
|
2923
|
-
...props
|
|
2924
|
-
}
|
|
2925
|
-
));
|
|
2926
|
-
TabsContent.displayName = TabsPrimitive.Content.displayName;
|
|
2927
|
-
|
|
2928
|
-
// src/shadcnui/ui/textarea.tsx
|
|
2929
|
-
|
|
2930
|
-
|
|
2931
|
-
var Textarea = React28.forwardRef(
|
|
2932
|
-
({ className, ...props }, ref) => {
|
|
2933
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2934
|
-
"textarea",
|
|
2935
|
-
{
|
|
2936
|
-
className: _chunkDEYKTLA3js.cn.call(void 0,
|
|
2937
|
-
"flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",
|
|
2938
|
-
className
|
|
2939
|
-
),
|
|
2940
|
-
ref,
|
|
2941
|
-
...props
|
|
2942
|
-
}
|
|
2943
|
-
);
|
|
2944
|
-
}
|
|
2945
|
-
);
|
|
2946
|
-
Textarea.displayName = "Textarea";
|
|
2947
|
-
|
|
2948
|
-
// src/shadcnui/ui/toggle.tsx
|
|
2949
|
-
var _reacttoggle = require('@radix-ui/react-toggle'); var TogglePrimitive = _interopRequireWildcard(_reacttoggle);
|
|
2950
|
-
|
|
2951
|
-
|
|
2952
|
-
|
|
2953
|
-
var toggleVariants = _classvarianceauthority.cva.call(void 0,
|
|
2954
|
-
"inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
|
2955
|
-
{
|
|
2956
|
-
variants: {
|
|
2957
|
-
variant: {
|
|
2958
|
-
default: "bg-transparent",
|
|
2959
|
-
outline: "border border-input bg-transparent shadow-sm hover:bg-accent hover:text-accent-foreground"
|
|
2960
|
-
},
|
|
2961
|
-
size: {
|
|
2962
|
-
default: "h-9 px-2 min-w-9",
|
|
2963
|
-
sm: "h-8 px-1.5 min-w-8",
|
|
2964
|
-
lg: "h-10 px-2.5 min-w-10"
|
|
2965
|
-
}
|
|
2966
|
-
},
|
|
2967
|
-
defaultVariants: {
|
|
2968
|
-
variant: "default",
|
|
2969
|
-
size: "default"
|
|
2970
|
-
}
|
|
2971
|
-
}
|
|
2972
|
-
);
|
|
2973
|
-
var Toggle = React29.forwardRef(({ className, variant, size, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TogglePrimitive.Root, { ref, className: _chunkDEYKTLA3js.cn.call(void 0, toggleVariants({ variant, size, className })), ...props }));
|
|
2974
|
-
Toggle.displayName = TogglePrimitive.Root.displayName;
|
|
2975
|
-
|
|
2976
|
-
// src/shadcnui/custom/kanban.tsx
|
|
2977
|
-
|
|
2978
|
-
|
|
2979
|
-
|
|
2980
|
-
|
|
2981
|
-
|
|
2982
|
-
|
|
2983
|
-
|
|
2984
|
-
|
|
2985
|
-
|
|
2986
|
-
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
|
|
2990
|
-
|
|
2991
|
-
|
|
2992
|
-
|
|
2993
|
-
var _core = require('@dnd-kit/core');
|
|
2994
|
-
|
|
2995
|
-
|
|
2996
|
-
|
|
2997
|
-
|
|
2998
|
-
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
var _sortable = require('@dnd-kit/sortable');
|
|
3002
|
-
var _utilities = require('@dnd-kit/utilities');
|
|
3003
|
-
|
|
3004
|
-
|
|
3005
|
-
var _reactdom = require('react-dom'); var ReactDOM = _interopRequireWildcard(_reactdom);
|
|
3006
|
-
|
|
3007
|
-
var directions = [_core.KeyboardCode.Down, _core.KeyboardCode.Right, _core.KeyboardCode.Up, _core.KeyboardCode.Left];
|
|
3008
|
-
var coordinateGetter = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (event, { context }) => {
|
|
3009
|
-
const { active, droppableRects, droppableContainers, collisionRect } = context;
|
|
3010
|
-
if (directions.includes(event.code)) {
|
|
3011
|
-
event.preventDefault();
|
|
3012
|
-
if (!active || !collisionRect) return;
|
|
3013
|
-
const filteredContainers = [];
|
|
3014
|
-
for (const entry of droppableContainers.getEnabled()) {
|
|
3015
|
-
if (!entry || _optionalChain([entry, 'optionalAccess', _44 => _44.disabled])) return;
|
|
3016
|
-
const rect = droppableRects.get(entry.id);
|
|
3017
|
-
if (!rect) return;
|
|
3018
|
-
const data = entry.data.current;
|
|
3019
|
-
if (data) {
|
|
3020
|
-
const { type, children } = data;
|
|
3021
|
-
if (type === "container" && _optionalChain([children, 'optionalAccess', _45 => _45.length]) > 0) {
|
|
3022
|
-
if (_optionalChain([active, 'access', _46 => _46.data, 'access', _47 => _47.current, 'optionalAccess', _48 => _48.type]) !== "container") {
|
|
3023
|
-
return;
|
|
3024
|
-
}
|
|
3025
|
-
}
|
|
3026
|
-
}
|
|
3027
|
-
switch (event.code) {
|
|
3028
|
-
case _core.KeyboardCode.Down:
|
|
3029
|
-
if (collisionRect.top < rect.top) {
|
|
3030
|
-
filteredContainers.push(entry);
|
|
3031
|
-
}
|
|
3032
|
-
break;
|
|
3033
|
-
case _core.KeyboardCode.Up:
|
|
3034
|
-
if (collisionRect.top > rect.top) {
|
|
3035
|
-
filteredContainers.push(entry);
|
|
3036
|
-
}
|
|
3037
|
-
break;
|
|
3038
|
-
case _core.KeyboardCode.Left:
|
|
3039
|
-
if (collisionRect.left >= rect.left + rect.width) {
|
|
3040
|
-
filteredContainers.push(entry);
|
|
3041
|
-
}
|
|
3042
|
-
break;
|
|
3043
|
-
case _core.KeyboardCode.Right:
|
|
3044
|
-
if (collisionRect.left + collisionRect.width <= rect.left) {
|
|
3045
|
-
filteredContainers.push(entry);
|
|
3046
|
-
}
|
|
3047
|
-
break;
|
|
3048
|
-
}
|
|
3049
|
-
}
|
|
3050
|
-
const collisions = _core.closestCorners.call(void 0, {
|
|
3051
|
-
active,
|
|
3052
|
-
collisionRect,
|
|
3053
|
-
droppableRects,
|
|
3054
|
-
droppableContainers: filteredContainers,
|
|
3055
|
-
pointerCoordinates: null
|
|
3056
|
-
});
|
|
3057
|
-
const closestId = _core.getFirstCollision.call(void 0, collisions, "id");
|
|
3058
|
-
if (closestId != null) {
|
|
3059
|
-
const newDroppable = droppableContainers.get(closestId);
|
|
3060
|
-
const newNode = _optionalChain([newDroppable, 'optionalAccess', _49 => _49.node, 'access', _50 => _50.current]);
|
|
3061
|
-
const newRect = _optionalChain([newDroppable, 'optionalAccess', _51 => _51.rect, 'access', _52 => _52.current]);
|
|
3062
|
-
if (newNode && newRect) {
|
|
3063
|
-
if (newDroppable.id === "placeholder") {
|
|
3064
|
-
return {
|
|
3065
|
-
x: newRect.left + (newRect.width - collisionRect.width) / 2,
|
|
3066
|
-
y: newRect.top + (newRect.height - collisionRect.height) / 2
|
|
3067
|
-
};
|
|
3068
|
-
}
|
|
3069
|
-
if (_optionalChain([newDroppable, 'access', _53 => _53.data, 'access', _54 => _54.current, 'optionalAccess', _55 => _55.type]) === "container") {
|
|
3070
|
-
return {
|
|
3071
|
-
x: newRect.left + 20,
|
|
3072
|
-
y: newRect.top + 74
|
|
3073
|
-
};
|
|
3074
|
-
}
|
|
3075
|
-
return {
|
|
3076
|
-
x: newRect.left,
|
|
3077
|
-
y: newRect.top
|
|
3078
|
-
};
|
|
3079
|
-
}
|
|
3080
|
-
}
|
|
3081
|
-
}
|
|
3082
|
-
return void 0;
|
|
3083
|
-
}, "coordinateGetter");
|
|
3084
|
-
var ROOT_NAME = "Kanban";
|
|
3085
|
-
var BOARD_NAME = "KanbanBoard";
|
|
3086
|
-
var COLUMN_NAME = "KanbanColumn";
|
|
3087
|
-
var COLUMN_HANDLE_NAME = "KanbanColumnHandle";
|
|
3088
|
-
var ITEM_NAME = "KanbanItem";
|
|
3089
|
-
var ITEM_HANDLE_NAME = "KanbanItemHandle";
|
|
3090
|
-
var OVERLAY_NAME = "KanbanOverlay";
|
|
3091
|
-
var KanbanContext = React30.createContext(null);
|
|
3092
|
-
KanbanContext.displayName = ROOT_NAME;
|
|
3093
|
-
function useKanbanContext(consumerName) {
|
|
3094
|
-
const context = React30.useContext(KanbanContext);
|
|
3095
|
-
if (!context) {
|
|
3096
|
-
throw new Error(`\`${consumerName}\` must be used within \`${ROOT_NAME}\``);
|
|
3097
|
-
}
|
|
3098
|
-
return context;
|
|
3099
|
-
}
|
|
3100
|
-
_chunk7QVYU63Ejs.__name.call(void 0, useKanbanContext, "useKanbanContext");
|
|
3101
|
-
function KanbanRoot(props) {
|
|
3102
|
-
const {
|
|
3103
|
-
value,
|
|
3104
|
-
onValueChange,
|
|
3105
|
-
modifiers,
|
|
3106
|
-
strategy = _sortable.verticalListSortingStrategy,
|
|
3107
|
-
orientation = "horizontal",
|
|
3108
|
-
onMove,
|
|
3109
|
-
getItemValue: getItemValueProp,
|
|
3110
|
-
accessibility,
|
|
3111
|
-
flatCursor = false,
|
|
3112
|
-
...kanbanProps
|
|
3113
|
-
} = props;
|
|
3114
|
-
const id = React30.useId();
|
|
3115
|
-
const [activeId, setActiveId] = React30.useState(null);
|
|
3116
|
-
const lastOverIdRef = React30.useRef(null);
|
|
3117
|
-
const hasMovedRef = React30.useRef(false);
|
|
3118
|
-
const sensors = _core.useSensors.call(void 0,
|
|
3119
|
-
_core.useSensor.call(void 0, _core.MouseSensor),
|
|
3120
|
-
_core.useSensor.call(void 0, _core.TouchSensor),
|
|
3121
|
-
_core.useSensor.call(void 0, _core.KeyboardSensor, {
|
|
3122
|
-
coordinateGetter
|
|
3123
|
-
})
|
|
3124
|
-
);
|
|
3125
|
-
const getItemValue = React30.useCallback(
|
|
3126
|
-
(item) => {
|
|
3127
|
-
if (typeof item === "object" && !getItemValueProp) {
|
|
3128
|
-
throw new Error("getItemValue is required when using array of objects");
|
|
3129
|
-
}
|
|
3130
|
-
return getItemValueProp ? getItemValueProp(item) : item;
|
|
3131
|
-
},
|
|
3132
|
-
[getItemValueProp]
|
|
3133
|
-
);
|
|
3134
|
-
const getColumn = React30.useCallback(
|
|
3135
|
-
(id2) => {
|
|
3136
|
-
if (id2 in value) return id2;
|
|
3137
|
-
for (const [columnId, items] of Object.entries(value)) {
|
|
3138
|
-
if (items.some((item) => getItemValue(item) === id2)) {
|
|
3139
|
-
return columnId;
|
|
3140
|
-
}
|
|
3141
|
-
}
|
|
3142
|
-
return null;
|
|
3143
|
-
},
|
|
3144
|
-
[value, getItemValue]
|
|
3145
|
-
);
|
|
3146
|
-
const collisionDetection = React30.useCallback(
|
|
3147
|
-
(args) => {
|
|
3148
|
-
if (activeId && activeId in value) {
|
|
3149
|
-
return _core.closestCenter.call(void 0, {
|
|
3150
|
-
...args,
|
|
3151
|
-
droppableContainers: args.droppableContainers.filter((container) => container.id in value)
|
|
3152
|
-
});
|
|
3153
|
-
}
|
|
3154
|
-
const pointerIntersections = _core.pointerWithin.call(void 0, args);
|
|
3155
|
-
const intersections = pointerIntersections.length > 0 ? pointerIntersections : _core.rectIntersection.call(void 0, args);
|
|
3156
|
-
let overId = _core.getFirstCollision.call(void 0, intersections, "id");
|
|
3157
|
-
if (!overId) {
|
|
3158
|
-
if (hasMovedRef.current) {
|
|
3159
|
-
lastOverIdRef.current = activeId;
|
|
3160
|
-
}
|
|
3161
|
-
return lastOverIdRef.current ? [{ id: lastOverIdRef.current }] : [];
|
|
3162
|
-
}
|
|
3163
|
-
if (overId in value) {
|
|
3164
|
-
const containerItems = value[overId];
|
|
3165
|
-
if (containerItems && containerItems.length > 0) {
|
|
3166
|
-
const closestItem = _core.closestCenter.call(void 0, {
|
|
3167
|
-
...args,
|
|
3168
|
-
droppableContainers: args.droppableContainers.filter(
|
|
3169
|
-
(container) => container.id !== overId && containerItems.some((item) => getItemValue(item) === container.id)
|
|
3170
|
-
)
|
|
3171
|
-
});
|
|
3172
|
-
if (closestItem.length > 0) {
|
|
3173
|
-
overId = _nullishCoalesce(_optionalChain([closestItem, 'access', _56 => _56[0], 'optionalAccess', _57 => _57.id]), () => ( overId));
|
|
3174
|
-
}
|
|
3175
|
-
}
|
|
3176
|
-
}
|
|
3177
|
-
lastOverIdRef.current = overId;
|
|
3178
|
-
return [{ id: overId }];
|
|
3179
|
-
},
|
|
3180
|
-
[activeId, value, getItemValue]
|
|
3181
|
-
);
|
|
3182
|
-
const onDragStart = React30.useCallback(
|
|
3183
|
-
(event) => {
|
|
3184
|
-
_optionalChain([kanbanProps, 'access', _58 => _58.onDragStart, 'optionalCall', _59 => _59(event)]);
|
|
3185
|
-
if (event.activatorEvent.defaultPrevented) return;
|
|
3186
|
-
setActiveId(event.active.id);
|
|
3187
|
-
},
|
|
3188
|
-
[kanbanProps.onDragStart]
|
|
3189
|
-
);
|
|
3190
|
-
const onDragOver = React30.useCallback(
|
|
3191
|
-
(event) => {
|
|
3192
|
-
_optionalChain([kanbanProps, 'access', _60 => _60.onDragOver, 'optionalCall', _61 => _61(event)]);
|
|
3193
|
-
if (event.activatorEvent.defaultPrevented) return;
|
|
3194
|
-
const { active, over } = event;
|
|
3195
|
-
if (!over) return;
|
|
3196
|
-
const activeColumn = getColumn(active.id);
|
|
3197
|
-
const overColumn = getColumn(over.id);
|
|
3198
|
-
if (!activeColumn || !overColumn) return;
|
|
3199
|
-
if (activeColumn === overColumn) {
|
|
3200
|
-
const items = value[activeColumn];
|
|
3201
|
-
if (!items) return;
|
|
3202
|
-
const activeIndex = items.findIndex((item) => getItemValue(item) === active.id);
|
|
3203
|
-
const overIndex = items.findIndex((item) => getItemValue(item) === over.id);
|
|
3204
|
-
if (activeIndex !== overIndex) {
|
|
3205
|
-
const newColumns = { ...value };
|
|
3206
|
-
newColumns[activeColumn] = _sortable.arrayMove.call(void 0, items, activeIndex, overIndex);
|
|
3207
|
-
_optionalChain([onValueChange, 'optionalCall', _62 => _62(newColumns)]);
|
|
3208
|
-
}
|
|
3209
|
-
} else {
|
|
3210
|
-
const activeItems = value[activeColumn];
|
|
3211
|
-
const overItems = value[overColumn];
|
|
3212
|
-
if (!activeItems || !overItems) return;
|
|
3213
|
-
const activeIndex = activeItems.findIndex((item) => getItemValue(item) === active.id);
|
|
3214
|
-
if (activeIndex === -1) return;
|
|
3215
|
-
const activeItem = activeItems[activeIndex];
|
|
3216
|
-
if (!activeItem) return;
|
|
3217
|
-
const updatedItems = {
|
|
3218
|
-
...value,
|
|
3219
|
-
[activeColumn]: activeItems.filter((item) => getItemValue(item) !== active.id),
|
|
3220
|
-
[overColumn]: [...overItems, activeItem]
|
|
3221
|
-
};
|
|
3222
|
-
_optionalChain([onValueChange, 'optionalCall', _63 => _63(updatedItems)]);
|
|
3223
|
-
hasMovedRef.current = true;
|
|
3224
|
-
}
|
|
3225
|
-
},
|
|
3226
|
-
[value, getColumn, getItemValue, onValueChange, kanbanProps.onDragOver]
|
|
3227
|
-
);
|
|
3228
|
-
const onDragEnd = React30.useCallback(
|
|
3229
|
-
(event) => {
|
|
3230
|
-
_optionalChain([kanbanProps, 'access', _64 => _64.onDragEnd, 'optionalCall', _65 => _65(event)]);
|
|
3231
|
-
if (event.activatorEvent.defaultPrevented) return;
|
|
3232
|
-
const { active, over } = event;
|
|
3233
|
-
if (!over) {
|
|
3234
|
-
setActiveId(null);
|
|
3235
|
-
return;
|
|
3236
|
-
}
|
|
3237
|
-
if (active.id in value && over.id in value) {
|
|
3238
|
-
const activeIndex = Object.keys(value).indexOf(active.id);
|
|
3239
|
-
const overIndex = Object.keys(value).indexOf(over.id);
|
|
3240
|
-
if (activeIndex !== overIndex) {
|
|
3241
|
-
const orderedColumns = Object.keys(value);
|
|
3242
|
-
const newOrder = _sortable.arrayMove.call(void 0, orderedColumns, activeIndex, overIndex);
|
|
3243
|
-
const newColumns = {};
|
|
3244
|
-
for (const key of newOrder) {
|
|
3245
|
-
const items = value[key];
|
|
3246
|
-
if (items) {
|
|
3247
|
-
newColumns[key] = items;
|
|
3248
|
-
}
|
|
3249
|
-
}
|
|
3250
|
-
if (onMove) {
|
|
3251
|
-
onMove({ ...event, activeIndex, overIndex });
|
|
3252
|
-
} else {
|
|
3253
|
-
_optionalChain([onValueChange, 'optionalCall', _66 => _66(newColumns)]);
|
|
3254
|
-
}
|
|
3255
|
-
}
|
|
3256
|
-
} else {
|
|
3257
|
-
const activeColumn = getColumn(active.id);
|
|
3258
|
-
const overColumn = getColumn(over.id);
|
|
3259
|
-
if (!activeColumn || !overColumn) {
|
|
3260
|
-
setActiveId(null);
|
|
3261
|
-
return;
|
|
3262
|
-
}
|
|
3263
|
-
if (activeColumn === overColumn) {
|
|
3264
|
-
const items = value[activeColumn];
|
|
3265
|
-
if (!items) {
|
|
3266
|
-
setActiveId(null);
|
|
3267
|
-
return;
|
|
3268
|
-
}
|
|
3269
|
-
const activeIndex = items.findIndex((item) => getItemValue(item) === active.id);
|
|
3270
|
-
const overIndex = items.findIndex((item) => getItemValue(item) === over.id);
|
|
3271
|
-
if (activeIndex !== overIndex) {
|
|
3272
|
-
const newColumns = { ...value };
|
|
3273
|
-
newColumns[activeColumn] = _sortable.arrayMove.call(void 0, items, activeIndex, overIndex);
|
|
3274
|
-
if (onMove) {
|
|
3275
|
-
onMove({
|
|
3276
|
-
...event,
|
|
3277
|
-
activeIndex,
|
|
3278
|
-
overIndex
|
|
3279
|
-
});
|
|
3280
|
-
} else {
|
|
3281
|
-
_optionalChain([onValueChange, 'optionalCall', _67 => _67(newColumns)]);
|
|
3282
|
-
}
|
|
3283
|
-
}
|
|
3284
|
-
}
|
|
3285
|
-
}
|
|
3286
|
-
setActiveId(null);
|
|
3287
|
-
hasMovedRef.current = false;
|
|
3288
|
-
},
|
|
3289
|
-
[value, getColumn, getItemValue, onValueChange, onMove, kanbanProps.onDragEnd]
|
|
3290
|
-
);
|
|
3291
|
-
const onDragCancel = React30.useCallback(
|
|
3292
|
-
(event) => {
|
|
3293
|
-
_optionalChain([kanbanProps, 'access', _68 => _68.onDragCancel, 'optionalCall', _69 => _69(event)]);
|
|
3294
|
-
if (event.activatorEvent.defaultPrevented) return;
|
|
3295
|
-
setActiveId(null);
|
|
3296
|
-
hasMovedRef.current = false;
|
|
3297
|
-
},
|
|
3298
|
-
[kanbanProps.onDragCancel]
|
|
3299
|
-
);
|
|
3300
|
-
const announcements = React30.useMemo(
|
|
3301
|
-
() => ({
|
|
3302
|
-
onDragStart({ active }) {
|
|
3303
|
-
const isColumn = active.id in value;
|
|
3304
|
-
const itemType = isColumn ? "column" : "item";
|
|
3305
|
-
const position = isColumn ? Object.keys(value).indexOf(active.id) + 1 : (() => {
|
|
3306
|
-
const column = getColumn(active.id);
|
|
3307
|
-
if (!column || !value[column]) return 1;
|
|
3308
|
-
return value[column].findIndex((item) => getItemValue(item) === active.id) + 1;
|
|
3309
|
-
})();
|
|
3310
|
-
const total = isColumn ? Object.keys(value).length : (() => {
|
|
3311
|
-
const column = getColumn(active.id);
|
|
3312
|
-
return column ? _nullishCoalesce(_optionalChain([value, 'access', _70 => _70[column], 'optionalAccess', _71 => _71.length]), () => ( 0)) : 0;
|
|
3313
|
-
})();
|
|
3314
|
-
return `Picked up ${itemType} at position ${position} of ${total}`;
|
|
3315
|
-
},
|
|
3316
|
-
onDragOver({ active, over }) {
|
|
3317
|
-
if (!over) return;
|
|
3318
|
-
const isColumn = active.id in value;
|
|
3319
|
-
const itemType = isColumn ? "column" : "item";
|
|
3320
|
-
const position = isColumn ? Object.keys(value).indexOf(over.id) + 1 : (() => {
|
|
3321
|
-
const column = getColumn(over.id);
|
|
3322
|
-
if (!column || !value[column]) return 1;
|
|
3323
|
-
return value[column].findIndex((item) => getItemValue(item) === over.id) + 1;
|
|
3324
|
-
})();
|
|
3325
|
-
const total = isColumn ? Object.keys(value).length : (() => {
|
|
3326
|
-
const column = getColumn(over.id);
|
|
3327
|
-
return column ? _nullishCoalesce(_optionalChain([value, 'access', _72 => _72[column], 'optionalAccess', _73 => _73.length]), () => ( 0)) : 0;
|
|
3328
|
-
})();
|
|
3329
|
-
const overColumn = getColumn(over.id);
|
|
3330
|
-
const activeColumn = getColumn(active.id);
|
|
3331
|
-
if (isColumn) {
|
|
3332
|
-
return `${itemType} is now at position ${position} of ${total}`;
|
|
3333
|
-
}
|
|
3334
|
-
if (activeColumn !== overColumn) {
|
|
3335
|
-
return `${itemType} is now at position ${position} of ${total} in ${overColumn}`;
|
|
3336
|
-
}
|
|
3337
|
-
return `${itemType} is now at position ${position} of ${total}`;
|
|
3338
|
-
},
|
|
3339
|
-
onDragEnd({ active, over }) {
|
|
3340
|
-
if (!over) return;
|
|
3341
|
-
const isColumn = active.id in value;
|
|
3342
|
-
const itemType = isColumn ? "column" : "item";
|
|
3343
|
-
const position = isColumn ? Object.keys(value).indexOf(over.id) + 1 : (() => {
|
|
3344
|
-
const column = getColumn(over.id);
|
|
3345
|
-
if (!column || !value[column]) return 1;
|
|
3346
|
-
return value[column].findIndex((item) => getItemValue(item) === over.id) + 1;
|
|
3347
|
-
})();
|
|
3348
|
-
const total = isColumn ? Object.keys(value).length : (() => {
|
|
3349
|
-
const column = getColumn(over.id);
|
|
3350
|
-
return column ? _nullishCoalesce(_optionalChain([value, 'access', _74 => _74[column], 'optionalAccess', _75 => _75.length]), () => ( 0)) : 0;
|
|
3351
|
-
})();
|
|
3352
|
-
const overColumn = getColumn(over.id);
|
|
3353
|
-
const activeColumn = getColumn(active.id);
|
|
3354
|
-
if (isColumn) {
|
|
3355
|
-
return `${itemType} was dropped at position ${position} of ${total}`;
|
|
3356
|
-
}
|
|
3357
|
-
if (activeColumn !== overColumn) {
|
|
3358
|
-
return `${itemType} was dropped at position ${position} of ${total} in ${overColumn}`;
|
|
3359
|
-
}
|
|
3360
|
-
return `${itemType} was dropped at position ${position} of ${total}`;
|
|
3361
|
-
},
|
|
3362
|
-
onDragCancel({ active }) {
|
|
3363
|
-
const isColumn = active.id in value;
|
|
3364
|
-
const itemType = isColumn ? "column" : "item";
|
|
3365
|
-
return `Dragging was cancelled. ${itemType} was dropped.`;
|
|
3366
|
-
}
|
|
3367
|
-
}),
|
|
3368
|
-
[value, getColumn, getItemValue]
|
|
3369
|
-
);
|
|
3370
|
-
const contextValue = React30.useMemo(
|
|
3371
|
-
() => ({
|
|
3372
|
-
id,
|
|
3373
|
-
items: value,
|
|
3374
|
-
modifiers,
|
|
3375
|
-
strategy,
|
|
3376
|
-
orientation,
|
|
3377
|
-
activeId,
|
|
3378
|
-
setActiveId,
|
|
3379
|
-
getItemValue,
|
|
3380
|
-
flatCursor
|
|
3381
|
-
}),
|
|
3382
|
-
[id, value, activeId, modifiers, strategy, orientation, getItemValue, flatCursor]
|
|
3383
|
-
);
|
|
3384
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, KanbanContext.Provider, { value: contextValue, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3385
|
-
_core.DndContext,
|
|
3386
|
-
{
|
|
3387
|
-
collisionDetection,
|
|
3388
|
-
modifiers,
|
|
3389
|
-
sensors,
|
|
3390
|
-
...kanbanProps,
|
|
3391
|
-
id,
|
|
3392
|
-
measuring: {
|
|
3393
|
-
droppable: {
|
|
3394
|
-
strategy: _core.MeasuringStrategy.Always
|
|
3395
|
-
}
|
|
3396
|
-
},
|
|
3397
|
-
onDragStart,
|
|
3398
|
-
onDragOver,
|
|
3399
|
-
onDragEnd,
|
|
3400
|
-
onDragCancel,
|
|
3401
|
-
accessibility: {
|
|
3402
|
-
announcements,
|
|
3403
|
-
screenReaderInstructions: {
|
|
3404
|
-
draggable: `
|
|
3405
|
-
To pick up a kanban item or column, press space or enter.
|
|
3406
|
-
While dragging, use the arrow keys to move the item.
|
|
3407
|
-
Press space or enter again to drop the item in its new position, or press escape to cancel.
|
|
3408
|
-
`
|
|
3409
|
-
},
|
|
3410
|
-
...accessibility
|
|
3411
|
-
}
|
|
3412
|
-
}
|
|
3413
|
-
) });
|
|
3414
|
-
}
|
|
3415
|
-
_chunk7QVYU63Ejs.__name.call(void 0, KanbanRoot, "KanbanRoot");
|
|
3416
|
-
var KanbanBoardContext = React30.createContext(false);
|
|
3417
|
-
KanbanBoardContext.displayName = BOARD_NAME;
|
|
3418
|
-
var KanbanBoard = React30.forwardRef((props, forwardedRef) => {
|
|
3419
|
-
const { asChild, className, ...boardProps } = props;
|
|
3420
|
-
const context = useKanbanContext(BOARD_NAME);
|
|
3421
|
-
const columns = React30.useMemo(() => {
|
|
3422
|
-
return Object.keys(context.items);
|
|
3423
|
-
}, [context.items]);
|
|
3424
|
-
const BoardPrimitive = asChild ? _reactslot.Slot : "div";
|
|
3425
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, KanbanBoardContext.Provider, { value: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3426
|
-
_sortable.SortableContext,
|
|
3427
|
-
{
|
|
3428
|
-
items: columns,
|
|
3429
|
-
strategy: context.orientation === "horizontal" ? _sortable.horizontalListSortingStrategy : _sortable.verticalListSortingStrategy,
|
|
3430
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3431
|
-
BoardPrimitive,
|
|
3432
|
-
{
|
|
3433
|
-
"aria-orientation": context.orientation,
|
|
3434
|
-
"data-orientation": context.orientation,
|
|
3435
|
-
"data-slot": "kanban-board",
|
|
3436
|
-
...boardProps,
|
|
3437
|
-
ref: forwardedRef,
|
|
3438
|
-
className: _chunkDEYKTLA3js.cn.call(void 0,
|
|
3439
|
-
"flex size-full gap-4",
|
|
3440
|
-
context.orientation === "horizontal" ? "flex-row" : "flex-col",
|
|
3441
|
-
className
|
|
3442
|
-
)
|
|
3443
|
-
}
|
|
3444
|
-
)
|
|
3445
|
-
}
|
|
3446
|
-
) });
|
|
3447
|
-
});
|
|
3448
|
-
KanbanBoard.displayName = BOARD_NAME;
|
|
3449
|
-
var KanbanColumnContext = React30.createContext(null);
|
|
3450
|
-
KanbanColumnContext.displayName = COLUMN_NAME;
|
|
3451
|
-
function useKanbanColumnContext(consumerName) {
|
|
3452
|
-
const context = React30.useContext(KanbanColumnContext);
|
|
3453
|
-
if (!context) {
|
|
3454
|
-
throw new Error(`\`${consumerName}\` must be used within \`${COLUMN_NAME}\``);
|
|
3455
|
-
}
|
|
3456
|
-
return context;
|
|
3457
|
-
}
|
|
3458
|
-
_chunk7QVYU63Ejs.__name.call(void 0, useKanbanColumnContext, "useKanbanColumnContext");
|
|
3459
|
-
var animateLayoutChanges = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (args) => _sortable.defaultAnimateLayoutChanges.call(void 0, { ...args, wasDragging: true }), "animateLayoutChanges");
|
|
3460
|
-
var KanbanColumn = React30.forwardRef((props, forwardedRef) => {
|
|
3461
|
-
const { value, asChild, asHandle, disabled, className, style, ...columnProps } = props;
|
|
3462
|
-
const id = React30.useId();
|
|
3463
|
-
const context = useKanbanContext(COLUMN_NAME);
|
|
3464
|
-
const inBoard = React30.useContext(KanbanBoardContext);
|
|
3465
|
-
const inOverlay = React30.useContext(KanbanOverlayContext);
|
|
3466
|
-
if (!inBoard && !inOverlay) {
|
|
3467
|
-
throw new Error(`\`${COLUMN_NAME}\` must be used within \`${BOARD_NAME}\` or \`${OVERLAY_NAME}\``);
|
|
3468
|
-
}
|
|
3469
|
-
if (value === "") {
|
|
3470
|
-
throw new Error(`\`${COLUMN_NAME}\` value cannot be an empty string`);
|
|
3471
|
-
}
|
|
3472
|
-
const { attributes, listeners, setNodeRef, setActivatorNodeRef, transform, transition, isDragging } = _sortable.useSortable.call(void 0, {
|
|
3473
|
-
id: value,
|
|
3474
|
-
disabled,
|
|
3475
|
-
animateLayoutChanges
|
|
3476
|
-
});
|
|
3477
|
-
const composedRef = _chunkDEYKTLA3js.useComposedRefs.call(void 0, forwardedRef, (node) => {
|
|
3478
|
-
if (disabled) return;
|
|
3479
|
-
setNodeRef(node);
|
|
3480
|
-
});
|
|
3481
|
-
const composedStyle = React30.useMemo(() => {
|
|
3482
|
-
return {
|
|
3483
|
-
transform: _utilities.CSS.Transform.toString(transform),
|
|
3484
|
-
transition,
|
|
3485
|
-
...style
|
|
3486
|
-
};
|
|
3487
|
-
}, [transform, transition, style]);
|
|
3488
|
-
const items = React30.useMemo(() => {
|
|
3489
|
-
const items2 = _nullishCoalesce(context.items[value], () => ( []));
|
|
3490
|
-
return items2.map((item) => context.getItemValue(item));
|
|
3491
|
-
}, [context.items, value, context.getItemValue]);
|
|
3492
|
-
const columnContext = React30.useMemo(
|
|
3493
|
-
() => ({
|
|
3494
|
-
id,
|
|
3495
|
-
attributes,
|
|
3496
|
-
listeners,
|
|
3497
|
-
setActivatorNodeRef,
|
|
3498
|
-
isDragging,
|
|
3499
|
-
disabled
|
|
3500
|
-
}),
|
|
3501
|
-
[id, attributes, listeners, setActivatorNodeRef, isDragging, disabled]
|
|
3502
|
-
);
|
|
3503
|
-
const ColumnPrimitive = asChild ? _reactslot.Slot : "div";
|
|
3504
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, KanbanColumnContext.Provider, { value: columnContext, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3505
|
-
_sortable.SortableContext,
|
|
3506
|
-
{
|
|
3507
|
-
items,
|
|
3508
|
-
strategy: context.orientation === "horizontal" ? _sortable.horizontalListSortingStrategy : _sortable.verticalListSortingStrategy,
|
|
3509
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3510
|
-
ColumnPrimitive,
|
|
3511
|
-
{
|
|
3512
|
-
id,
|
|
3513
|
-
"data-disabled": disabled,
|
|
3514
|
-
"data-dragging": isDragging ? "" : void 0,
|
|
3515
|
-
"data-slot": "kanban-column",
|
|
3516
|
-
...columnProps,
|
|
3517
|
-
...asHandle && !disabled ? attributes : {},
|
|
3518
|
-
...asHandle && !disabled ? listeners : {},
|
|
3519
|
-
ref: composedRef,
|
|
3520
|
-
style: composedStyle,
|
|
3521
|
-
className: _chunkDEYKTLA3js.cn.call(void 0,
|
|
3522
|
-
"flex size-full w-full flex-col gap-2 rounded-lg border bg-zinc-100 p-2.5 aria-disabled:pointer-events-none aria-disabled:opacity-50 dark:bg-zinc-900",
|
|
3523
|
-
{
|
|
3524
|
-
"touch-none select-none": asHandle,
|
|
3525
|
-
"cursor-default": context.flatCursor,
|
|
3526
|
-
"data-dragging:cursor-grabbing": !context.flatCursor,
|
|
3527
|
-
"cursor-grab": !isDragging && asHandle && !context.flatCursor,
|
|
3528
|
-
"opacity-50": isDragging,
|
|
3529
|
-
"pointer-events-none opacity-50": disabled
|
|
3530
|
-
},
|
|
3531
|
-
className
|
|
3532
|
-
)
|
|
3533
|
-
}
|
|
3534
|
-
)
|
|
3535
|
-
}
|
|
3536
|
-
) });
|
|
3537
|
-
});
|
|
3538
|
-
KanbanColumn.displayName = COLUMN_NAME;
|
|
3539
|
-
var KanbanColumnHandle = React30.forwardRef((props, forwardedRef) => {
|
|
3540
|
-
const { asChild, disabled, className, ...columnHandleProps } = props;
|
|
3541
|
-
const context = useKanbanContext(COLUMN_NAME);
|
|
3542
|
-
const columnContext = useKanbanColumnContext(COLUMN_HANDLE_NAME);
|
|
3543
|
-
const isDisabled = _nullishCoalesce(disabled, () => ( columnContext.disabled));
|
|
3544
|
-
const composedRef = _chunkDEYKTLA3js.useComposedRefs.call(void 0, forwardedRef, (node) => {
|
|
3545
|
-
if (isDisabled) return;
|
|
3546
|
-
columnContext.setActivatorNodeRef(node);
|
|
3547
|
-
});
|
|
3548
|
-
const HandlePrimitive = asChild ? _reactslot.Slot : "button";
|
|
3549
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3550
|
-
HandlePrimitive,
|
|
3551
|
-
{
|
|
3552
|
-
type: "button",
|
|
3553
|
-
"aria-controls": columnContext.id,
|
|
3554
|
-
"data-disabled": isDisabled,
|
|
3555
|
-
"data-dragging": columnContext.isDragging ? "" : void 0,
|
|
3556
|
-
"data-slot": "kanban-column-handle",
|
|
3557
|
-
...columnHandleProps,
|
|
3558
|
-
...isDisabled ? {} : columnContext.attributes,
|
|
3559
|
-
...isDisabled ? {} : columnContext.listeners,
|
|
3560
|
-
ref: composedRef,
|
|
3561
|
-
className: _chunkDEYKTLA3js.cn.call(void 0,
|
|
3562
|
-
"select-none disabled:pointer-events-none disabled:opacity-50",
|
|
3563
|
-
context.flatCursor ? "cursor-default" : "cursor-grab data-dragging:cursor-grabbing",
|
|
3564
|
-
className
|
|
3565
|
-
),
|
|
3566
|
-
disabled: isDisabled
|
|
3567
|
-
}
|
|
3568
|
-
);
|
|
3569
|
-
});
|
|
3570
|
-
KanbanColumnHandle.displayName = COLUMN_HANDLE_NAME;
|
|
3571
|
-
var KanbanItemContext = React30.createContext(null);
|
|
3572
|
-
KanbanItemContext.displayName = ITEM_NAME;
|
|
3573
|
-
function useKanbanItemContext(consumerName) {
|
|
3574
|
-
const context = React30.useContext(KanbanItemContext);
|
|
3575
|
-
if (!context) {
|
|
3576
|
-
throw new Error(`\`${consumerName}\` must be used within \`${ITEM_NAME}\``);
|
|
3577
|
-
}
|
|
3578
|
-
return context;
|
|
3579
|
-
}
|
|
3580
|
-
_chunk7QVYU63Ejs.__name.call(void 0, useKanbanItemContext, "useKanbanItemContext");
|
|
3581
|
-
var KanbanItem = React30.forwardRef((props, forwardedRef) => {
|
|
3582
|
-
const { value, style, asHandle, asChild, disabled, className, ...itemProps } = props;
|
|
3583
|
-
const id = React30.useId();
|
|
3584
|
-
const context = useKanbanContext(ITEM_NAME);
|
|
3585
|
-
const inBoard = React30.useContext(KanbanBoardContext);
|
|
3586
|
-
const inOverlay = React30.useContext(KanbanOverlayContext);
|
|
3587
|
-
if (!inBoard && !inOverlay) {
|
|
3588
|
-
throw new Error(`\`${ITEM_NAME}\` must be used within \`${BOARD_NAME}\``);
|
|
3589
|
-
}
|
|
3590
|
-
const { attributes, listeners, setNodeRef, setActivatorNodeRef, transform, transition, isDragging } = _sortable.useSortable.call(void 0, {
|
|
3591
|
-
id: value,
|
|
3592
|
-
disabled
|
|
3593
|
-
});
|
|
3594
|
-
if (value === "") {
|
|
3595
|
-
throw new Error(`\`${ITEM_NAME}\` value cannot be an empty string`);
|
|
3596
|
-
}
|
|
3597
|
-
const composedRef = _chunkDEYKTLA3js.useComposedRefs.call(void 0, forwardedRef, (node) => {
|
|
3598
|
-
if (disabled) return;
|
|
3599
|
-
setNodeRef(node);
|
|
3600
|
-
});
|
|
3601
|
-
const composedStyle = React30.useMemo(() => {
|
|
3602
|
-
return {
|
|
3603
|
-
transform: _utilities.CSS.Transform.toString(transform),
|
|
3604
|
-
transition,
|
|
3605
|
-
...style
|
|
3606
|
-
};
|
|
3607
|
-
}, [transform, transition, style]);
|
|
3608
|
-
const itemContext = React30.useMemo(
|
|
3609
|
-
() => ({
|
|
3610
|
-
id,
|
|
3611
|
-
attributes,
|
|
3612
|
-
listeners,
|
|
3613
|
-
setActivatorNodeRef,
|
|
3614
|
-
isDragging,
|
|
3615
|
-
disabled
|
|
3616
|
-
}),
|
|
3617
|
-
[id, attributes, listeners, setActivatorNodeRef, isDragging, disabled]
|
|
3618
|
-
);
|
|
3619
|
-
const ItemPrimitive = asChild ? _reactslot.Slot : "div";
|
|
3620
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, KanbanItemContext.Provider, { value: itemContext, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3621
|
-
ItemPrimitive,
|
|
3622
|
-
{
|
|
3623
|
-
id,
|
|
3624
|
-
"data-disabled": disabled,
|
|
3625
|
-
"data-dragging": isDragging ? "" : void 0,
|
|
3626
|
-
"data-slot": "kanban-item",
|
|
3627
|
-
...itemProps,
|
|
3628
|
-
...asHandle && !disabled ? attributes : {},
|
|
3629
|
-
...asHandle && !disabled ? listeners : {},
|
|
3630
|
-
ref: composedRef,
|
|
3631
|
-
style: composedStyle,
|
|
3632
|
-
className: _chunkDEYKTLA3js.cn.call(void 0,
|
|
3633
|
-
"focus-visible:ring-ring focus-visible:ring-1 focus-visible:ring-offset-1 focus-visible:outline-hidden",
|
|
3634
|
-
{
|
|
3635
|
-
"touch-none select-none": asHandle,
|
|
3636
|
-
"cursor-default": context.flatCursor,
|
|
3637
|
-
"data-dragging:cursor-grabbing": !context.flatCursor,
|
|
3638
|
-
"cursor-grab": !isDragging && asHandle && !context.flatCursor,
|
|
3639
|
-
"opacity-50": isDragging,
|
|
3640
|
-
"pointer-events-none opacity-50": disabled
|
|
3641
|
-
},
|
|
3642
|
-
className
|
|
3643
|
-
)
|
|
3644
|
-
}
|
|
3645
|
-
) });
|
|
3646
|
-
});
|
|
3647
|
-
KanbanItem.displayName = ITEM_NAME;
|
|
3648
|
-
var KanbanItemHandle = React30.forwardRef((props, forwardedRef) => {
|
|
3649
|
-
const { asChild, disabled, className, ...itemHandleProps } = props;
|
|
3650
|
-
const context = useKanbanContext(ITEM_HANDLE_NAME);
|
|
3651
|
-
const itemContext = useKanbanItemContext(ITEM_HANDLE_NAME);
|
|
3652
|
-
const isDisabled = _nullishCoalesce(disabled, () => ( itemContext.disabled));
|
|
3653
|
-
const composedRef = _chunkDEYKTLA3js.useComposedRefs.call(void 0, forwardedRef, (node) => {
|
|
3654
|
-
if (isDisabled) return;
|
|
3655
|
-
itemContext.setActivatorNodeRef(node);
|
|
3656
|
-
});
|
|
3657
|
-
const HandlePrimitive = asChild ? _reactslot.Slot : "button";
|
|
3658
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3659
|
-
HandlePrimitive,
|
|
3660
|
-
{
|
|
3661
|
-
type: "button",
|
|
3662
|
-
"aria-controls": itemContext.id,
|
|
3663
|
-
"data-disabled": isDisabled,
|
|
3664
|
-
"data-dragging": itemContext.isDragging ? "" : void 0,
|
|
3665
|
-
"data-slot": "kanban-item-handle",
|
|
3666
|
-
...itemHandleProps,
|
|
3667
|
-
...isDisabled ? {} : itemContext.attributes,
|
|
3668
|
-
...isDisabled ? {} : itemContext.listeners,
|
|
3669
|
-
ref: composedRef,
|
|
3670
|
-
className: _chunkDEYKTLA3js.cn.call(void 0,
|
|
3671
|
-
"select-none disabled:pointer-events-none disabled:opacity-50",
|
|
3672
|
-
context.flatCursor ? "cursor-default" : "cursor-grab data-dragging:cursor-grabbing",
|
|
3673
|
-
className
|
|
3674
|
-
),
|
|
3675
|
-
disabled: isDisabled
|
|
3676
|
-
}
|
|
3677
|
-
);
|
|
3678
|
-
});
|
|
3679
|
-
KanbanItemHandle.displayName = ITEM_HANDLE_NAME;
|
|
3680
|
-
var KanbanOverlayContext = React30.createContext(false);
|
|
3681
|
-
KanbanOverlayContext.displayName = OVERLAY_NAME;
|
|
3682
|
-
var dropAnimation = {
|
|
3683
|
-
sideEffects: _core.defaultDropAnimationSideEffects.call(void 0, {
|
|
3684
|
-
styles: {
|
|
3685
|
-
active: {
|
|
3686
|
-
opacity: "0.4"
|
|
3687
|
-
}
|
|
3688
|
-
}
|
|
3689
|
-
})
|
|
3690
|
-
};
|
|
3691
|
-
function KanbanOverlay(props) {
|
|
3692
|
-
const { container: containerProp, children, ...overlayProps } = props;
|
|
3693
|
-
const context = useKanbanContext(OVERLAY_NAME);
|
|
3694
|
-
const [mounted, setMounted] = React30.useState(false);
|
|
3695
|
-
React30.useLayoutEffect(() => setMounted(true), []);
|
|
3696
|
-
const container = _nullishCoalesce(containerProp, () => ( (mounted ? _optionalChain([globalThis, 'access', _76 => _76.document, 'optionalAccess', _77 => _77.body]) : null)));
|
|
3697
|
-
if (!container) return null;
|
|
3698
|
-
const variant = context.activeId && context.activeId in context.items ? "column" : "item";
|
|
3699
|
-
return ReactDOM.createPortal(
|
|
3700
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3701
|
-
_core.DragOverlay,
|
|
3702
|
-
{
|
|
3703
|
-
dropAnimation,
|
|
3704
|
-
modifiers: context.modifiers,
|
|
3705
|
-
className: _chunkDEYKTLA3js.cn.call(void 0, !context.flatCursor && "cursor-grabbing"),
|
|
3706
|
-
...overlayProps,
|
|
3707
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, KanbanOverlayContext.Provider, { value: true, children: context.activeId && children ? typeof children === "function" ? children({
|
|
3708
|
-
value: context.activeId,
|
|
3709
|
-
variant
|
|
3710
|
-
}) : children : null })
|
|
3711
|
-
}
|
|
3712
|
-
),
|
|
3713
|
-
container
|
|
3714
|
-
);
|
|
3715
|
-
}
|
|
3716
|
-
_chunk7QVYU63Ejs.__name.call(void 0, KanbanOverlay, "KanbanOverlay");
|
|
3717
|
-
|
|
3718
|
-
// src/shadcnui/custom/link.tsx
|
|
3719
|
-
var _link = require('next/link'); var _link2 = _interopRequireDefault(_link);
|
|
3720
|
-
|
|
3721
|
-
|
|
3722
|
-
var Link2 = React31.forwardRef(({ className, ...props }, ref) => {
|
|
3723
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _link2.default, { ref, className: _chunkDEYKTLA3js.cn.call(void 0, `font-medium`, className), ...props });
|
|
3724
|
-
});
|
|
3725
|
-
Link2.displayName = "Link";
|
|
3726
|
-
|
|
3727
|
-
// src/shadcnui/custom/multi-select.tsx
|
|
3728
|
-
|
|
3729
|
-
|
|
3730
|
-
|
|
3731
|
-
|
|
3732
|
-
var multiSelectVariants = _classvarianceauthority.cva.call(void 0,
|
|
3733
|
-
"m-1 transition ease-in-out delay-150 hover:-translate-y-1 hover:scale-110 duration-300",
|
|
3734
|
-
{
|
|
3735
|
-
variants: {
|
|
3736
|
-
variant: {
|
|
3737
|
-
default: "border-foreground/10 text-foreground bg-card hover:bg-card/80",
|
|
3738
|
-
secondary: "border-foreground/10 bg-secondary text-secondary-foreground hover:bg-secondary/80",
|
|
3739
|
-
destructive: "border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",
|
|
3740
|
-
inverted: "inverted"
|
|
3741
|
-
}
|
|
3742
|
-
},
|
|
3743
|
-
defaultVariants: {
|
|
3744
|
-
variant: "default"
|
|
3745
|
-
}
|
|
3746
|
-
}
|
|
3747
|
-
);
|
|
3748
|
-
var MultiSelect = React32.forwardRef(
|
|
3749
|
-
({
|
|
3750
|
-
options,
|
|
3751
|
-
onValueChange,
|
|
3752
|
-
variant,
|
|
3753
|
-
defaultValue = [],
|
|
3754
|
-
value,
|
|
3755
|
-
placeholder = "Select options",
|
|
3756
|
-
animation = 0,
|
|
3757
|
-
maxCount = 3,
|
|
3758
|
-
modalPopover = false,
|
|
3759
|
-
asChild = false,
|
|
3760
|
-
className,
|
|
3761
|
-
onSearchChange,
|
|
3762
|
-
...props
|
|
3763
|
-
}, ref) => {
|
|
3764
|
-
const [internalSelectedValues, setInternalSelectedValues] = React32.useState(defaultValue);
|
|
3765
|
-
const selectedValues = value !== void 0 ? value : internalSelectedValues;
|
|
3766
|
-
const [isPopoverOpen, setIsPopoverOpen] = React32.useState(false);
|
|
3767
|
-
const [isAnimating, setIsAnimating] = React32.useState(false);
|
|
3768
|
-
const handleInputKeyDown = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (event) => {
|
|
3769
|
-
if (event.key === "Enter") {
|
|
3770
|
-
setIsPopoverOpen(true);
|
|
3771
|
-
} else if (event.key === "Backspace" && !event.currentTarget.value) {
|
|
3772
|
-
const newSelectedValues = [...selectedValues];
|
|
3773
|
-
newSelectedValues.pop();
|
|
3774
|
-
if (value === void 0) {
|
|
3775
|
-
setInternalSelectedValues(newSelectedValues);
|
|
3776
|
-
}
|
|
3777
|
-
onValueChange(newSelectedValues);
|
|
3778
|
-
}
|
|
3779
|
-
}, "handleInputKeyDown");
|
|
3780
|
-
const toggleOption = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (option) => {
|
|
3781
|
-
const newSelectedValues = selectedValues.includes(option) ? selectedValues.filter((value2) => value2 !== option) : [...selectedValues, option];
|
|
3782
|
-
if (value === void 0) {
|
|
3783
|
-
setInternalSelectedValues(newSelectedValues);
|
|
3784
|
-
}
|
|
3785
|
-
onValueChange(newSelectedValues);
|
|
3786
|
-
}, "toggleOption");
|
|
3787
|
-
const handleClear = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
3788
|
-
if (value === void 0) {
|
|
3789
|
-
setInternalSelectedValues([]);
|
|
3790
|
-
}
|
|
3791
|
-
onValueChange([]);
|
|
3792
|
-
}, "handleClear");
|
|
3793
|
-
const handleTogglePopover = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
3794
|
-
setIsPopoverOpen((prev) => !prev);
|
|
3795
|
-
}, "handleTogglePopover");
|
|
3796
|
-
const clearExtraOptions = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
3797
|
-
const newSelectedValues = selectedValues.slice(0, maxCount);
|
|
3798
|
-
if (value === void 0) {
|
|
3799
|
-
setInternalSelectedValues(newSelectedValues);
|
|
3800
|
-
}
|
|
3801
|
-
onValueChange(newSelectedValues);
|
|
3802
|
-
}, "clearExtraOptions");
|
|
3803
|
-
const toggleAll = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
3804
|
-
let newSelectedValues;
|
|
3805
|
-
if (selectedValues.length === options.length) {
|
|
3806
|
-
newSelectedValues = [];
|
|
3807
|
-
} else {
|
|
3808
|
-
newSelectedValues = options.map((option) => option.value);
|
|
3809
|
-
}
|
|
3810
|
-
if (value === void 0) {
|
|
3811
|
-
setInternalSelectedValues(newSelectedValues);
|
|
3812
|
-
}
|
|
3813
|
-
onValueChange(newSelectedValues);
|
|
3814
|
-
}, "toggleAll");
|
|
3815
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Popover, { open: isPopoverOpen, onOpenChange: setIsPopoverOpen, modal: modalPopover, children: [
|
|
3816
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, PopoverTrigger, { asChild: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3817
|
-
Button,
|
|
3818
|
-
{
|
|
3819
|
-
ref,
|
|
3820
|
-
...props,
|
|
3821
|
-
onClick: handleTogglePopover,
|
|
3822
|
-
className: _chunkDEYKTLA3js.cn.call(void 0,
|
|
3823
|
-
"flex h-auto min-h-10 w-full items-center justify-between rounded-md border bg-inherit p-1 hover:bg-inherit [&_svg]:pointer-events-auto",
|
|
3824
|
-
className
|
|
3825
|
-
),
|
|
3826
|
-
children: selectedValues.length > 0 ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-center justify-between", children: [
|
|
3827
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-wrap items-center", children: [
|
|
3828
|
-
selectedValues.slice(0, maxCount).map((value2) => {
|
|
3829
|
-
const option = options.find((o) => o.value === value2);
|
|
3830
|
-
const IconComponent = _optionalChain([option, 'optionalAccess', _78 => _78.icon]);
|
|
3831
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
3832
|
-
Badge,
|
|
3833
|
-
{
|
|
3834
|
-
className: _chunkDEYKTLA3js.cn.call(void 0, isAnimating ? "animate-bounce" : "", multiSelectVariants({ variant })),
|
|
3835
|
-
style: { animationDuration: `${animation}s` },
|
|
3836
|
-
children: [
|
|
3837
|
-
IconComponent && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, IconComponent, { className: "mr-2 h-4 w-4" }),
|
|
3838
|
-
_optionalChain([option, 'optionalAccess', _79 => _79.label]),
|
|
3839
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3840
|
-
_lucidereact.XCircle,
|
|
3841
|
-
{
|
|
3842
|
-
className: "ml-2 h-4 w-4 cursor-pointer",
|
|
3843
|
-
onClick: (event) => {
|
|
3844
|
-
event.stopPropagation();
|
|
3845
|
-
toggleOption(value2);
|
|
3846
|
-
}
|
|
3847
|
-
}
|
|
3848
|
-
)
|
|
3849
|
-
]
|
|
3850
|
-
},
|
|
3851
|
-
value2
|
|
3852
|
-
);
|
|
3853
|
-
}),
|
|
3854
|
-
selectedValues.length > maxCount && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
3855
|
-
Badge,
|
|
3856
|
-
{
|
|
3857
|
-
className: _chunkDEYKTLA3js.cn.call(void 0,
|
|
3858
|
-
"text-foreground border-foreground/1 bg-transparent hover:bg-transparent",
|
|
3859
|
-
isAnimating ? "animate-bounce" : "",
|
|
3860
|
-
multiSelectVariants({ variant })
|
|
3861
|
-
),
|
|
3862
|
-
style: { animationDuration: `${animation}s` },
|
|
3863
|
-
children: [
|
|
3864
|
-
`+ ${selectedValues.length - maxCount} more`,
|
|
3865
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3866
|
-
_lucidereact.XCircle,
|
|
3867
|
-
{
|
|
3868
|
-
className: "ml-2 h-4 w-4 cursor-pointer",
|
|
3869
|
-
onClick: (event) => {
|
|
3870
|
-
event.stopPropagation();
|
|
3871
|
-
clearExtraOptions();
|
|
3872
|
-
}
|
|
3873
|
-
}
|
|
3874
|
-
)
|
|
3875
|
-
]
|
|
3876
|
-
}
|
|
3877
|
-
)
|
|
3878
|
-
] }),
|
|
3879
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center justify-between", children: [
|
|
3880
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3881
|
-
_lucidereact.XIcon,
|
|
3882
|
-
{
|
|
3883
|
-
className: "text-muted-foreground mx-2 h-4 cursor-pointer",
|
|
3884
|
-
onClick: (event) => {
|
|
3885
|
-
event.stopPropagation();
|
|
3886
|
-
handleClear();
|
|
3887
|
-
}
|
|
3888
|
-
}
|
|
3889
|
-
),
|
|
3890
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Separator4, { orientation: "vertical", className: "flex h-full min-h-6" }),
|
|
3891
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronDown, { className: "text-muted-foreground mx-2 h-4 cursor-pointer" })
|
|
3892
|
-
] })
|
|
3893
|
-
] }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "mx-auto flex w-full items-center justify-between", children: [
|
|
3894
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-muted-foreground mx-3 text-sm", children: placeholder }),
|
|
3895
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronDown, { className: "text-muted-foreground mx-2 h-4 cursor-pointer" })
|
|
3896
|
-
] })
|
|
3897
|
-
}
|
|
3898
|
-
) }),
|
|
3899
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, PopoverContent, { className: "w-auto p-0", align: "start", onEscapeKeyDown: () => setIsPopoverOpen(false), children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Command, { children: [
|
|
3900
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3901
|
-
CommandInput,
|
|
3902
|
-
{
|
|
3903
|
-
autoFocus: true,
|
|
3904
|
-
placeholder: "Search...",
|
|
3905
|
-
onKeyDown: handleInputKeyDown,
|
|
3906
|
-
onValueChange: onSearchChange
|
|
3907
|
-
}
|
|
3908
|
-
),
|
|
3909
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, CommandList, { children: [
|
|
3910
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CommandEmpty, { children: "No results found." }),
|
|
3911
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, CommandGroup, { children: [
|
|
3912
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, CommandItem, { onSelect: toggleAll, className: "cursor-pointer", children: [
|
|
3913
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3914
|
-
"div",
|
|
3915
|
-
{
|
|
3916
|
-
className: _chunkDEYKTLA3js.cn.call(void 0,
|
|
3917
|
-
"border-primary mr-2 flex h-4 w-4 items-center justify-center rounded-sm border",
|
|
3918
|
-
selectedValues.length === options.length ? "bg-primary text-primary-foreground" : "opacity-50 [&_svg]:invisible"
|
|
3919
|
-
),
|
|
3920
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.CheckIcon, { className: "h-4 w-4" })
|
|
3921
|
-
}
|
|
3922
|
-
),
|
|
3923
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "(Select All)" })
|
|
3924
|
-
] }, "all"),
|
|
3925
|
-
options.map((option) => {
|
|
3926
|
-
const isSelected = selectedValues.includes(option.value);
|
|
3927
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
3928
|
-
CommandItem,
|
|
3929
|
-
{
|
|
3930
|
-
onSelect: () => toggleOption(option.value),
|
|
3931
|
-
className: "cursor-pointer",
|
|
3932
|
-
children: [
|
|
3933
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3934
|
-
"div",
|
|
3935
|
-
{
|
|
3936
|
-
className: _chunkDEYKTLA3js.cn.call(void 0,
|
|
3937
|
-
"border-primary mr-2 flex h-4 w-4 items-center justify-center rounded-sm border",
|
|
3938
|
-
isSelected ? "bg-primary text-primary-foreground" : "opacity-50 [&_svg]:invisible"
|
|
3939
|
-
),
|
|
3940
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.CheckIcon, { className: "h-4 w-4" })
|
|
3941
|
-
}
|
|
3942
|
-
),
|
|
3943
|
-
option.icon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, option.icon, { className: "text-muted-foreground mr-2 h-4 w-4" }),
|
|
3944
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: option.label })
|
|
3945
|
-
]
|
|
3946
|
-
},
|
|
3947
|
-
option.value
|
|
3948
|
-
);
|
|
3949
|
-
})
|
|
3950
|
-
] }),
|
|
3951
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CommandSeparator, {}),
|
|
3952
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CommandGroup, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center justify-between", children: [
|
|
3953
|
-
selectedValues.length > 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3954
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CommandItem, { onSelect: handleClear, className: "flex-1 cursor-pointer justify-center", children: "Clear" }),
|
|
3955
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Separator4, { orientation: "vertical", className: "flex h-full min-h-6" })
|
|
3956
|
-
] }),
|
|
3957
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3958
|
-
CommandItem,
|
|
3959
|
-
{
|
|
3960
|
-
onSelect: () => setIsPopoverOpen(false),
|
|
3961
|
-
className: "max-w-full flex-1 cursor-pointer justify-center",
|
|
3962
|
-
children: "Close"
|
|
3963
|
-
}
|
|
3964
|
-
)
|
|
3965
|
-
] }) })
|
|
3966
|
-
] })
|
|
3967
|
-
] }) }),
|
|
3968
|
-
animation > 0 && selectedValues.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3969
|
-
_lucidereact.WandSparkles,
|
|
3970
|
-
{
|
|
3971
|
-
className: _chunkDEYKTLA3js.cn.call(void 0,
|
|
3972
|
-
"text-foreground bg-background my-2 h-3 w-3 cursor-pointer",
|
|
3973
|
-
isAnimating ? "" : "text-muted-foreground"
|
|
3974
|
-
),
|
|
3975
|
-
onClick: () => setIsAnimating(!isAnimating)
|
|
3976
|
-
}
|
|
3977
|
-
)
|
|
3978
|
-
] });
|
|
3979
|
-
}
|
|
3980
|
-
);
|
|
3981
|
-
MultiSelect.displayName = "MultiSelect";
|
|
3982
|
-
|
|
3983
|
-
|
|
3984
|
-
|
|
3985
|
-
|
|
3986
|
-
|
|
3987
|
-
|
|
3988
|
-
|
|
3989
|
-
|
|
3990
|
-
|
|
3991
|
-
|
|
3992
|
-
|
|
3993
|
-
|
|
3994
|
-
|
|
3995
|
-
|
|
3996
|
-
|
|
3997
|
-
|
|
3998
|
-
|
|
3999
|
-
|
|
4000
|
-
|
|
4001
|
-
|
|
4002
|
-
|
|
4003
|
-
|
|
4004
|
-
|
|
4005
|
-
|
|
4006
|
-
|
|
4007
|
-
|
|
4008
|
-
|
|
4009
|
-
|
|
4010
|
-
|
|
4011
|
-
|
|
4012
|
-
|
|
4013
|
-
|
|
4014
|
-
|
|
4015
|
-
|
|
4016
|
-
|
|
4017
|
-
|
|
4018
|
-
|
|
4019
|
-
|
|
4020
|
-
|
|
4021
|
-
|
|
4022
|
-
|
|
4023
|
-
|
|
4024
|
-
|
|
4025
|
-
|
|
4026
|
-
|
|
4027
|
-
|
|
4028
|
-
|
|
4029
|
-
|
|
4030
|
-
|
|
4031
|
-
|
|
4032
|
-
|
|
4033
|
-
|
|
4034
|
-
|
|
4035
|
-
|
|
4036
|
-
|
|
4037
|
-
|
|
4038
|
-
|
|
4039
|
-
|
|
4040
|
-
|
|
4041
|
-
|
|
4042
|
-
|
|
4043
|
-
|
|
4044
|
-
|
|
4045
|
-
|
|
4046
|
-
|
|
4047
|
-
|
|
4048
|
-
|
|
4049
|
-
|
|
4050
|
-
|
|
4051
|
-
|
|
4052
|
-
|
|
4053
|
-
|
|
4054
|
-
|
|
4055
|
-
|
|
4056
|
-
|
|
4057
|
-
|
|
4058
|
-
|
|
4059
|
-
|
|
4060
|
-
|
|
4061
|
-
|
|
4062
|
-
|
|
4063
|
-
|
|
4064
|
-
|
|
4065
|
-
|
|
4066
|
-
|
|
4067
|
-
|
|
4068
|
-
|
|
4069
|
-
|
|
4070
|
-
|
|
4071
|
-
|
|
4072
|
-
|
|
4073
|
-
|
|
4074
|
-
|
|
4075
|
-
|
|
4076
|
-
|
|
4077
|
-
|
|
4078
|
-
|
|
4079
|
-
|
|
4080
|
-
|
|
4081
|
-
|
|
4082
|
-
|
|
4083
|
-
|
|
4084
|
-
|
|
4085
|
-
|
|
4086
|
-
|
|
4087
|
-
|
|
4088
|
-
|
|
4089
|
-
|
|
4090
|
-
|
|
4091
|
-
|
|
4092
|
-
|
|
4093
|
-
|
|
4094
|
-
|
|
4095
|
-
|
|
4096
|
-
|
|
4097
|
-
|
|
4098
|
-
|
|
4099
|
-
|
|
4100
|
-
|
|
4101
|
-
|
|
4102
|
-
|
|
4103
|
-
|
|
4104
|
-
|
|
4105
|
-
|
|
4106
|
-
|
|
4107
|
-
|
|
4108
|
-
|
|
4109
|
-
|
|
4110
|
-
|
|
4111
|
-
|
|
4112
|
-
|
|
4113
|
-
|
|
4114
|
-
|
|
4115
|
-
|
|
4116
|
-
|
|
4117
|
-
|
|
4118
|
-
|
|
4119
|
-
|
|
4120
|
-
|
|
4121
|
-
|
|
4122
|
-
|
|
4123
|
-
|
|
4124
|
-
|
|
4125
|
-
|
|
4126
|
-
|
|
4127
|
-
|
|
4128
|
-
|
|
4129
|
-
|
|
4130
|
-
|
|
4131
|
-
|
|
4132
|
-
|
|
4133
|
-
|
|
4134
|
-
|
|
4135
|
-
|
|
4136
|
-
|
|
4137
|
-
|
|
4138
|
-
|
|
4139
|
-
|
|
4140
|
-
|
|
4141
|
-
|
|
4142
|
-
|
|
4143
|
-
|
|
4144
|
-
|
|
4145
|
-
|
|
4146
|
-
|
|
4147
|
-
|
|
4148
|
-
|
|
4149
|
-
|
|
4150
|
-
|
|
4151
|
-
|
|
4152
|
-
|
|
4153
|
-
|
|
4154
|
-
|
|
4155
|
-
|
|
4156
|
-
|
|
4157
|
-
|
|
4158
|
-
|
|
4159
|
-
|
|
4160
|
-
|
|
4161
|
-
|
|
4162
|
-
|
|
4163
|
-
|
|
4164
|
-
|
|
4165
|
-
|
|
4166
|
-
|
|
4167
|
-
|
|
4168
|
-
|
|
4169
|
-
|
|
4170
|
-
|
|
4171
|
-
|
|
4172
|
-
|
|
4173
|
-
|
|
4174
|
-
|
|
4175
|
-
|
|
4176
|
-
|
|
4177
|
-
|
|
4178
|
-
|
|
4179
|
-
|
|
4180
|
-
|
|
4181
|
-
|
|
4182
|
-
|
|
4183
|
-
|
|
4184
|
-
|
|
4185
|
-
|
|
4186
|
-
|
|
4187
|
-
|
|
4188
|
-
|
|
4189
|
-
|
|
4190
|
-
|
|
4191
|
-
|
|
4192
|
-
|
|
4193
|
-
|
|
4194
|
-
|
|
4195
|
-
|
|
4196
|
-
|
|
4197
|
-
|
|
4198
|
-
|
|
4199
|
-
|
|
4200
|
-
|
|
4201
|
-
|
|
4202
|
-
|
|
4203
|
-
|
|
4204
|
-
|
|
4205
|
-
|
|
4206
|
-
|
|
4207
|
-
|
|
4208
|
-
|
|
4209
|
-
exports.Accordion = Accordion; exports.AccordionItem = AccordionItem; exports.AccordionTrigger = AccordionTrigger; exports.AccordionContent = AccordionContent; exports.Alert = Alert; exports.AlertTitle = AlertTitle; exports.AlertDescription = AlertDescription; exports.buttonVariants = buttonVariants; exports.Button = Button; exports.AlertDialog = AlertDialog; exports.AlertDialogTrigger = AlertDialogTrigger; exports.AlertDialogPortal = AlertDialogPortal; exports.AlertDialogOverlay = AlertDialogOverlay; exports.AlertDialogContent = AlertDialogContent; exports.AlertDialogHeader = AlertDialogHeader; exports.AlertDialogFooter = AlertDialogFooter; exports.AlertDialogTitle = AlertDialogTitle; exports.AlertDialogDescription = AlertDialogDescription; exports.AlertDialogAction = AlertDialogAction; exports.AlertDialogCancel = AlertDialogCancel; exports.Avatar = Avatar; exports.AvatarImage = AvatarImage; exports.AvatarFallback = AvatarFallback; exports.badgeVariants = badgeVariants; exports.Badge = Badge; exports.Breadcrumb = Breadcrumb; exports.BreadcrumbList = BreadcrumbList; exports.BreadcrumbItem = BreadcrumbItem; exports.BreadcrumbLink = BreadcrumbLink; exports.BreadcrumbPage = BreadcrumbPage; exports.BreadcrumbSeparator = BreadcrumbSeparator; exports.BreadcrumbEllipsis = BreadcrumbEllipsis; exports.Calendar = Calendar; exports.Card = Card; exports.CardHeader = CardHeader; exports.CardTitle = CardTitle; exports.CardDescription = CardDescription; exports.CardContent = CardContent; exports.CardFooter = CardFooter; exports.Carousel = Carousel; exports.CarouselContent = CarouselContent; exports.CarouselItem = CarouselItem; exports.CarouselPrevious = CarouselPrevious; exports.CarouselNext = CarouselNext; exports.ChartContainer = ChartContainer; exports.ChartStyle = ChartStyle; exports.ChartTooltip = ChartTooltip; exports.ChartTooltipContent = ChartTooltipContent; exports.ChartLegend = ChartLegend; exports.ChartLegendContent = ChartLegendContent; exports.Checkbox = Checkbox; exports.Collapsible = Collapsible; exports.CollapsibleTrigger = CollapsibleTrigger2; exports.CollapsibleContent = CollapsibleContent2; exports.Dialog = Dialog; exports.DialogTrigger = DialogTrigger; exports.DialogPortal = DialogPortal; exports.DialogClose = DialogClose; exports.DialogOverlay = DialogOverlay; exports.DialogContent = DialogContent; exports.DialogHeader = DialogHeader; exports.DialogFooter = DialogFooter; exports.DialogTitle = DialogTitle; exports.DialogDescription = DialogDescription; exports.Command = Command; exports.CommandDialog = CommandDialog; exports.CommandInput = CommandInput; exports.CommandList = CommandList; exports.CommandEmpty = CommandEmpty; exports.CommandGroup = CommandGroup; exports.CommandSeparator = CommandSeparator; exports.CommandItem = CommandItem; exports.CommandShortcut = CommandShortcut; exports.ContextMenu = ContextMenu; exports.ContextMenuTrigger = ContextMenuTrigger; exports.ContextMenuGroup = ContextMenuGroup; exports.ContextMenuPortal = ContextMenuPortal; exports.ContextMenuSub = ContextMenuSub; exports.ContextMenuRadioGroup = ContextMenuRadioGroup; exports.ContextMenuSubTrigger = ContextMenuSubTrigger; exports.ContextMenuSubContent = ContextMenuSubContent; exports.ContextMenuContent = ContextMenuContent; exports.ContextMenuItem = ContextMenuItem; exports.ContextMenuCheckboxItem = ContextMenuCheckboxItem; exports.ContextMenuRadioItem = ContextMenuRadioItem; exports.ContextMenuLabel = ContextMenuLabel; exports.ContextMenuSeparator = ContextMenuSeparator; exports.ContextMenuShortcut = ContextMenuShortcut; exports.Drawer = Drawer; exports.DrawerTrigger = DrawerTrigger; exports.DrawerPortal = DrawerPortal; exports.DrawerClose = DrawerClose; exports.DrawerOverlay = DrawerOverlay; exports.DrawerContent = DrawerContent; exports.DrawerHeader = DrawerHeader; exports.DrawerFooter = DrawerFooter; exports.DrawerTitle = DrawerTitle; exports.DrawerDescription = DrawerDescription; exports.DropdownMenu = DropdownMenu; exports.DropdownMenuTrigger = DropdownMenuTrigger; exports.DropdownMenuGroup = DropdownMenuGroup; exports.DropdownMenuPortal = DropdownMenuPortal; exports.DropdownMenuSub = DropdownMenuSub; exports.DropdownMenuRadioGroup = DropdownMenuRadioGroup; exports.DropdownMenuSubTrigger = DropdownMenuSubTrigger; exports.DropdownMenuSubContent = DropdownMenuSubContent; exports.DropdownMenuContent = DropdownMenuContent; exports.DropdownMenuItem = DropdownMenuItem; exports.DropdownMenuCheckboxItem = DropdownMenuCheckboxItem; exports.DropdownMenuRadioItem = DropdownMenuRadioItem; exports.DropdownMenuLabel = DropdownMenuLabel; exports.DropdownMenuSeparator = DropdownMenuSeparator; exports.DropdownMenuShortcut = DropdownMenuShortcut; exports.Label = Label3; exports.Form = Form; exports.FormField = FormField; exports.useFormField = useFormField; exports.FormItem = FormItem; exports.FormLabel = FormLabel; exports.FormControl = FormControl; exports.FormDescription = FormDescription; exports.FormMessage = FormMessage; exports.HoverCard = HoverCard; exports.HoverCardTrigger = HoverCardTrigger; exports.HoverCardContent = HoverCardContent; exports.Input = Input; exports.NavigationMenu = NavigationMenu; exports.NavigationMenuList = NavigationMenuList; exports.NavigationMenuItem = NavigationMenuItem; exports.navigationMenuTriggerStyle = navigationMenuTriggerStyle; exports.NavigationMenuTrigger = NavigationMenuTrigger; exports.NavigationMenuContent = NavigationMenuContent; exports.NavigationMenuViewport = NavigationMenuViewport; exports.NavigationMenuLink = NavigationMenuLink; exports.NavigationMenuIndicator = NavigationMenuIndicator; exports.Popover = Popover; exports.PopoverTrigger = PopoverTrigger; exports.PopoverAnchor = PopoverAnchor; exports.PopoverContent = PopoverContent; exports.Progress = Progress; exports.RadioGroup = RadioGroup3; exports.RadioGroupItem = RadioGroupItem; exports.ResizablePanelGroup = ResizablePanelGroup; exports.ResizablePanel = ResizablePanel; exports.ResizableHandle = ResizableHandle; exports.ScrollArea = ScrollArea; exports.ScrollBar = ScrollBar; exports.Select = Select; exports.SelectGroup = SelectGroup; exports.SelectValue = SelectValue; exports.SelectTrigger = SelectTrigger; exports.SelectScrollUpButton = SelectScrollUpButton; exports.SelectScrollDownButton = SelectScrollDownButton; exports.SelectContent = SelectContent; exports.SelectLabel = SelectLabel; exports.SelectItem = SelectItem; exports.SelectSeparator = SelectSeparator; exports.Separator = Separator4; exports.Sheet = Sheet; exports.SheetTrigger = SheetTrigger; exports.SheetClose = SheetClose; exports.SheetContent = SheetContent; exports.SheetHeader = SheetHeader; exports.SheetFooter = SheetFooter; exports.SheetTitle = SheetTitle; exports.SheetDescription = SheetDescription; exports.Skeleton = Skeleton; exports.TooltipProvider = TooltipProvider; exports.Tooltip = Tooltip2; exports.TooltipTrigger = TooltipTrigger; exports.TooltipContent = TooltipContent; exports.SIDEBAR_WIDTH = SIDEBAR_WIDTH; exports.SIDEBAR_WIDTH_MOBILE = SIDEBAR_WIDTH_MOBILE; exports.SIDEBAR_WIDTH_ICON = SIDEBAR_WIDTH_ICON; exports.useSidebar = useSidebar; exports.SidebarProvider = SidebarProvider; exports.Sidebar = Sidebar; exports.SidebarTrigger = SidebarTrigger; exports.SidebarRail = SidebarRail; exports.SidebarInset = SidebarInset; exports.SidebarInput = SidebarInput; exports.SidebarHeader = SidebarHeader; exports.SidebarFooter = SidebarFooter; exports.SidebarSeparator = SidebarSeparator; exports.SidebarContent = SidebarContent; exports.SidebarGroup = SidebarGroup; exports.SidebarGroupLabel = SidebarGroupLabel; exports.SidebarGroupAction = SidebarGroupAction; exports.SidebarGroupContent = SidebarGroupContent; exports.SidebarMenu = SidebarMenu; exports.SidebarMenuItem = SidebarMenuItem; exports.SidebarMenuButton = SidebarMenuButton; exports.SidebarMenuAction = SidebarMenuAction; exports.SidebarMenuBadge = SidebarMenuBadge; exports.SidebarMenuSkeleton = SidebarMenuSkeleton; exports.SidebarMenuSub = SidebarMenuSub; exports.SidebarMenuSubItem = SidebarMenuSubItem; exports.SidebarMenuSubButton = SidebarMenuSubButton; exports.Slider = Slider; exports.Toaster = Toaster; exports.Switch = Switch; exports.Table = Table; exports.TableHeader = TableHeader; exports.TableBody = TableBody; exports.TableFooter = TableFooter; exports.TableRow = TableRow; exports.TableHead = TableHead; exports.TableCell = TableCell; exports.TableCaption = TableCaption; exports.Tabs = Tabs; exports.TabsList = TabsList; exports.TabsTrigger = TabsTrigger; exports.TabsContent = TabsContent; exports.Textarea = Textarea; exports.toggleVariants = toggleVariants; exports.Toggle = Toggle; exports.KanbanRoot = KanbanRoot; exports.KanbanBoard = KanbanBoard; exports.KanbanColumn = KanbanColumn; exports.KanbanColumnHandle = KanbanColumnHandle; exports.KanbanItem = KanbanItem; exports.KanbanItemHandle = KanbanItemHandle; exports.KanbanOverlay = KanbanOverlay; exports.Link = Link2; exports.MultiSelect = MultiSelect;
|
|
4210
|
-
//# sourceMappingURL=chunk-5IET37O4.js.map
|