@arcadeai/design-system 1.3.0 → 1.4.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 +95 -0
- package/dist/{arcade-49z5mR1G.js → arcade-CadnNaba.js} +139 -137
- package/dist/assets/index.css +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +431 -213
- package/dist/components/ui/atoms/accordion.js +1 -1
- package/dist/components/ui/atoms/avatar.js +2 -2
- package/dist/components/ui/atoms/checkbox.js +1 -1
- package/dist/components/ui/atoms/collapsible.js +1 -1
- package/dist/components/ui/atoms/command.js +1 -1
- package/dist/components/ui/atoms/dialog.js +1 -1
- package/dist/components/ui/atoms/dropdown-menu.js +2 -2
- package/dist/components/ui/atoms/hover-card.js +2 -2
- package/dist/components/ui/atoms/icons/adp.d.ts +3 -0
- package/dist/components/ui/atoms/icons/adp.js +40 -0
- package/dist/components/ui/atoms/icons/aha.d.ts +3 -0
- package/dist/components/ui/atoms/icons/aha.js +28 -0
- package/dist/{assets → components/ui/atoms}/icons/airtable.js +4 -0
- package/dist/components/ui/atoms/icons/amplitude.d.ts +3 -0
- package/dist/components/ui/atoms/icons/amplitude.js +33 -0
- package/dist/{assets → components/ui/atoms}/icons/arcade.js +7 -7
- package/dist/{assets → components/ui/atoms}/icons/asana.js +1 -0
- package/dist/components/ui/atoms/icons/ashby.d.ts +3 -0
- package/dist/components/ui/atoms/icons/ashby.js +50 -0
- package/dist/{assets → components/ui/atoms}/icons/atlassian.js +14 -4
- package/dist/{assets → components/ui/atoms}/icons/auth0.js +1 -0
- package/dist/{assets → components/ui/atoms}/icons/azure.js +43 -22
- package/dist/components/ui/atoms/icons/bamboohr.d.ts +3 -0
- package/dist/components/ui/atoms/icons/bamboohr.js +31 -0
- package/dist/components/ui/atoms/icons/basecamp.d.ts +3 -0
- package/dist/components/ui/atoms/icons/basecamp.js +57 -0
- package/dist/components/ui/atoms/icons/bill.d.ts +3 -0
- package/dist/components/ui/atoms/icons/bill.js +55 -0
- package/dist/components/ui/atoms/icons/bitbucket.d.ts +3 -0
- package/dist/components/ui/atoms/icons/bitbucket.js +38 -0
- package/dist/{assets → components/ui/atoms}/icons/bluesky.js +1 -0
- package/dist/{assets → components/ui/atoms}/icons/box.js +1 -0
- package/dist/components/ui/atoms/icons/braze.d.ts +3 -0
- package/dist/components/ui/atoms/icons/braze.js +28 -0
- package/dist/components/ui/atoms/icons/brex.d.ts +3 -0
- package/dist/components/ui/atoms/icons/brex.js +29 -0
- package/dist/components/ui/atoms/icons/buffer.d.ts +3 -0
- package/dist/components/ui/atoms/icons/buffer.js +33 -0
- package/dist/components/ui/atoms/icons/calendly.js +80 -0
- package/dist/components/ui/atoms/icons/clickhouse.d.ts +3 -0
- package/dist/components/ui/atoms/icons/clickhouse.js +26 -0
- package/dist/components/ui/atoms/icons/clickup.d.ts +3 -0
- package/dist/{assets → components/ui/atoms}/icons/clickup.js +16 -4
- package/dist/components/ui/atoms/icons/closeio.d.ts +3 -0
- package/dist/components/ui/atoms/icons/closeio.js +68 -0
- package/dist/{assets → components/ui/atoms}/icons/coinbase.js +21 -8
- package/dist/{assets → components/ui/atoms}/icons/confluence.js +18 -4
- package/dist/{assets → components/ui/atoms}/icons/datadog.js +1 -0
- package/dist/components/ui/atoms/icons/digital-ocean.d.ts +3 -0
- package/dist/components/ui/atoms/icons/digital-ocean.js +22 -0
- package/dist/{assets → components/ui/atoms}/icons/discord.js +1 -0
- package/dist/{assets → components/ui/atoms}/icons/dropbox.js +1 -0
- package/dist/components/ui/atoms/icons/e2b.d.ts +3 -0
- package/dist/components/ui/atoms/icons/e2b.js +19 -0
- package/dist/{assets → components/ui/atoms}/icons/ebay.js +4 -0
- package/dist/components/ui/atoms/icons/evernote.d.ts +3 -0
- package/dist/components/ui/atoms/icons/evernote.js +29 -0
- package/dist/components/ui/atoms/icons/factorial.d.ts +3 -0
- package/dist/components/ui/atoms/icons/factorial.js +50 -0
- package/dist/{assets → components/ui/atoms}/icons/figma.js +18 -2
- package/dist/components/ui/atoms/icons/firecrawl.d.ts +3 -0
- package/dist/components/ui/atoms/icons/firecrawl.js +19 -0
- package/dist/components/ui/atoms/icons/generic.d.ts +3 -0
- package/dist/components/ui/atoms/icons/generic.js +27 -0
- package/dist/{assets → components/ui/atoms}/icons/github.js +4 -3
- package/dist/{assets → components/ui/atoms}/icons/gitlab.js +4 -0
- package/dist/{assets → components/ui/atoms}/icons/gmail.js +11 -2
- package/dist/components/ui/atoms/icons/google-calendar.js +98 -0
- package/dist/{assets → components/ui/atoms}/icons/google-contacts.js +4 -0
- package/dist/components/ui/atoms/icons/google-docs.js +328 -0
- package/dist/{assets → components/ui/atoms}/icons/google-drive.js +6 -0
- package/dist/{assets → components/ui/atoms}/icons/google-finance.js +8 -1
- package/dist/{assets → components/ui/atoms}/icons/google-flight.js +49 -20
- package/dist/components/ui/atoms/icons/google-flights.d.ts +3 -0
- package/dist/components/ui/atoms/icons/google-flights.js +109 -0
- package/dist/{assets → components/ui/atoms}/icons/google-hotels.js +10 -1
- package/dist/components/ui/atoms/icons/google-jobs.d.ts +3 -0
- package/dist/components/ui/atoms/icons/google-jobs.js +103 -0
- package/dist/{assets → components/ui/atoms}/icons/google-maps.js +5 -0
- package/dist/{assets → components/ui/atoms}/icons/google-news.js +27 -3
- package/dist/{assets → components/ui/atoms}/icons/google-sheets.js +3 -0
- package/dist/{assets → components/ui/atoms}/icons/google-shopping.js +9 -1
- package/dist/components/ui/atoms/icons/google-slides.d.ts +3 -0
- package/dist/components/ui/atoms/icons/google-slides.js +243 -0
- package/dist/{assets → components/ui/atoms}/icons/google.js +4 -0
- package/dist/{assets → components/ui/atoms}/icons/heroku.js +1 -0
- package/dist/components/ui/atoms/icons/hootsuite.d.ts +3 -0
- package/dist/components/ui/atoms/icons/hootsuite.js +43 -0
- package/dist/components/ui/atoms/icons/hubspot.d.ts +3 -0
- package/dist/{assets → components/ui/atoms}/icons/hubspot.js +2 -1
- package/dist/{assets → components/ui/atoms}/icons/index.d.ts +47 -0
- package/dist/components/ui/atoms/icons/index.js +220 -0
- package/dist/components/ui/atoms/icons/intercom.d.ts +3 -0
- package/dist/components/ui/atoms/icons/intercom.js +26 -0
- package/dist/{assets → components/ui/atoms}/icons/jira.js +15 -7
- package/dist/{assets → components/ui/atoms}/icons/linear.js +1 -0
- package/dist/components/ui/atoms/icons/linkedin.d.ts +3 -0
- package/dist/{assets → components/ui/atoms}/icons/linkedin.js +5 -4
- package/dist/components/ui/atoms/icons/mailchimp.d.ts +3 -0
- package/dist/components/ui/atoms/icons/mailchimp.js +70 -0
- package/dist/components/ui/atoms/icons/mcp.d.ts +3 -0
- package/dist/components/ui/atoms/icons/mcp.js +23 -0
- package/dist/components/ui/atoms/icons/microsoft-dynamics.d.ts +3 -0
- package/dist/components/ui/atoms/icons/microsoft-dynamics.js +172 -0
- package/dist/components/ui/atoms/icons/microsoft-sharepoint.d.ts +3 -0
- package/dist/components/ui/atoms/icons/microsoft-sharepoint.js +88 -0
- package/dist/components/ui/atoms/icons/microsoft-teams.d.ts +3 -0
- package/dist/components/ui/atoms/icons/microsoft-teams.js +119 -0
- package/dist/{assets → components/ui/atoms}/icons/microsoft.js +4 -0
- package/dist/components/ui/atoms/icons/miro.d.ts +3 -0
- package/dist/components/ui/atoms/icons/miro.js +35 -0
- package/dist/components/ui/atoms/icons/monday.d.ts +3 -0
- package/dist/components/ui/atoms/icons/monday.js +60 -0
- package/dist/components/ui/atoms/icons/netsuite.d.ts +3 -0
- package/dist/{assets → components/ui/atoms}/icons/netsuite.js +35 -26
- package/dist/{assets → components/ui/atoms}/icons/notion.js +2 -0
- package/dist/components/ui/atoms/icons/oauth.d.ts +3 -0
- package/dist/{assets → components/ui/atoms}/icons/oauth.js +66 -8
- package/dist/components/ui/atoms/icons/obsidian.d.ts +3 -0
- package/dist/components/ui/atoms/icons/obsidian.js +220 -0
- package/dist/components/ui/atoms/icons/okta.d.ts +3 -0
- package/dist/components/ui/atoms/icons/okta.js +56 -0
- package/dist/components/ui/atoms/icons/one-drive.d.ts +3 -0
- package/dist/components/ui/atoms/icons/one-drive.js +38 -0
- package/dist/{assets → components/ui/atoms}/icons/outlook-calendar.js +18 -0
- package/dist/{assets → components/ui/atoms}/icons/outlook-mail.js +4 -0
- package/dist/components/ui/atoms/icons/pinecone.d.ts +3 -0
- package/dist/components/ui/atoms/icons/pinecone.js +29 -0
- package/dist/{assets → components/ui/atoms}/icons/pinterest.js +1 -0
- package/dist/components/ui/atoms/icons/pipedrive.d.ts +3 -0
- package/dist/components/ui/atoms/icons/pipedrive.js +59 -0
- package/dist/components/ui/atoms/icons/plaid.d.ts +3 -0
- package/dist/components/ui/atoms/icons/plaid.js +37 -0
- package/dist/{assets → components/ui/atoms}/icons/postgres.js +30 -20
- package/dist/components/ui/atoms/icons/quickbooks.d.ts +3 -0
- package/dist/components/ui/atoms/icons/quickbooks.js +25 -0
- package/dist/components/ui/atoms/icons/reddit.js +315 -0
- package/dist/{assets → components/ui/atoms}/icons/salesforce.js +3 -0
- package/dist/{assets → components/ui/atoms}/icons/shopify.js +3 -0
- package/dist/components/ui/atoms/icons/singlestore.d.ts +3 -0
- package/dist/components/ui/atoms/icons/singlestore.js +284 -0
- package/dist/{assets → components/ui/atoms}/icons/slack.js +7 -1
- package/dist/components/ui/atoms/icons/snowflake.d.ts +3 -0
- package/dist/components/ui/atoms/icons/snowflake.js +26 -0
- package/dist/components/ui/atoms/icons/splunk.d.ts +3 -0
- package/dist/components/ui/atoms/icons/splunk.js +54 -0
- package/dist/{assets → components/ui/atoms}/icons/spotify.js +1 -0
- package/dist/components/ui/atoms/icons/square.d.ts +3 -0
- package/dist/components/ui/atoms/icons/square.js +41 -0
- package/dist/components/ui/atoms/icons/squarespace.d.ts +3 -0
- package/dist/components/ui/atoms/icons/squarespace.js +29 -0
- package/dist/{assets → components/ui/atoms}/icons/stripe.js +1 -0
- package/dist/{assets → components/ui/atoms}/icons/tesla.js +5 -1
- package/dist/{assets → components/ui/atoms}/icons/tiktok.js +3 -0
- package/dist/components/ui/atoms/icons/trello.d.ts +3 -0
- package/dist/components/ui/atoms/icons/trello.js +59 -0
- package/dist/{assets → components/ui/atoms}/icons/twilio.js +11 -4
- package/dist/{assets → components/ui/atoms}/icons/twitch.js +6 -1
- package/dist/components/ui/atoms/icons/utils.d.ts +56 -0
- package/dist/components/ui/atoms/icons/utils.js +41 -0
- package/dist/{assets → components/ui/atoms}/icons/vercel.js +1 -0
- package/dist/{assets → components/ui/atoms}/icons/walmart.js +2 -0
- package/dist/components/ui/atoms/icons/weaviate.d.ts +3 -0
- package/dist/components/ui/atoms/icons/weaviate.js +229 -0
- package/dist/components/ui/atoms/icons/workday.d.ts +3 -0
- package/dist/components/ui/atoms/icons/workday.js +97 -0
- package/dist/components/ui/atoms/icons/wrike.d.ts +3 -0
- package/dist/components/ui/atoms/icons/wrike.js +16 -0
- package/dist/{assets → components/ui/atoms}/icons/x.js +4 -4
- package/dist/components/ui/atoms/icons/xero.js +87 -0
- package/dist/components/ui/atoms/icons/youtube.d.ts +3 -0
- package/dist/{assets → components/ui/atoms}/icons/youtube.js +3 -1
- package/dist/components/ui/atoms/icons/zendesk.d.ts +3 -0
- package/dist/components/ui/atoms/icons/zendesk.js +27 -0
- package/dist/{assets → components/ui/atoms}/icons/zoom.js +30 -17
- package/dist/components/ui/atoms/index.d.ts +2 -0
- package/dist/components/ui/atoms/index.js +416 -198
- package/dist/components/ui/atoms/popover.js +2 -2
- package/dist/components/ui/atoms/progress.js +18 -17
- package/dist/components/ui/atoms/radio-group.js +1 -1
- package/dist/components/ui/atoms/scroll-area.js +3 -3
- package/dist/components/ui/atoms/select.js +3 -3
- package/dist/components/ui/atoms/sheet.js +1 -1
- package/dist/components/ui/atoms/sidebar.js +102 -102
- package/dist/components/ui/atoms/tabs.js +1 -1
- package/dist/components/ui/atoms/tooltip.js +2 -2
- package/dist/components/ui/index.d.ts +1 -0
- package/dist/components/ui/index.js +431 -213
- package/dist/components/ui/molecules/index.d.ts +1 -0
- package/dist/components/ui/molecules/index.js +1 -1
- package/dist/components/ui/molecules/requirement-badges.js +6 -5
- package/dist/components/ui/molecules/tool-card.js +18 -18
- package/dist/components/ui/molecules/toolkit-card.js +1 -1
- package/dist/components/ui/molecules/toolkit-picker-trigger.js +47 -38
- package/dist/components/ui/molecules/toolkit-selection-summary.d.ts +4 -3
- package/dist/components/ui/molecules/toolkit-selection-summary.js +32 -29
- package/dist/components/ui/organisms/index.d.ts +1 -0
- package/dist/components/ui/organisms/toolkit-picker/components/footer-summary.js +9 -9
- package/dist/components/ui/organisms/toolkit-picker/components/search-input.js +5 -4
- package/dist/components/ui/organisms/toolkit-picker/components/select-button.js +7 -6
- package/dist/components/ui/organisms/toolkit-picker/components/toolkit-card-with-selection.d.ts +2 -2
- package/dist/components/ui/organisms/toolkit-picker/components/toolkit-card-with-selection.js +21 -18
- package/dist/components/ui/organisms/toolkit-picker/hooks/use-toolkit-picker-filter.test.js +14 -18
- package/dist/components/ui/organisms/toolkit-picker/hooks/use-toolkit-picker-search.test.js +7 -7
- package/dist/components/ui/organisms/toolkit-picker/hooks/use-toolkit-picker-selection.test.js +2 -2
- package/dist/components/ui/organisms/toolkit-picker/hooks/use-toolkit-picker.d.ts +12 -11
- package/dist/components/ui/organisms/toolkit-picker/hooks/use-toolkit-picker.js +54 -40
- package/dist/components/ui/organisms/toolkit-picker/mocks/toolkit-collection.js +195 -113
- package/dist/components/ui/organisms/toolkit-picker/toolkit-picker.js +126 -116
- package/dist/components/ui/organisms/toolkit-picker/toolkit-picker.test.js +3418 -4391
- package/dist/components/ui/utils/memo.test.d.ts +1 -0
- package/dist/components/ui/utils/memo.test.js +36 -0
- package/dist/{index-CtSXVDca.js → index-BDIfjxqB.js} +1 -1
- package/dist/{index-C8_QusYl.js → index-BGfrl8IX.js} +1 -1
- package/dist/{index-Ez2mlmzx.js → index-BzU0xzeS.js} +1 -1
- package/dist/index-DH9yRdVk.js +1540 -0
- package/dist/lib/arcade/arcade.d.ts +2 -2
- package/dist/lib/arcade/arcade.js +3 -2
- package/dist/lib/arcade/arcade.test.js +2 -2
- package/dist/lib/utils.test.d.ts +1 -0
- package/dist/lib/utils.test.js +43 -0
- package/dist/{magic-string.es-BQ9KnLz-.js → magic-string.es-QnVUNas7.js} +4 -3
- package/dist/main.d.ts +1 -0
- package/dist/main.js +431 -213
- package/dist/metadata/oauth-providers.d.ts +69 -0
- package/dist/metadata/oauth-providers.js +260 -0
- package/dist/metadata/toolkits.d.ts +24 -0
- package/dist/metadata/toolkits.js +1500 -0
- package/dist/{react.esm-369wBsAv.js → react.esm-CFMQn0EI.js} +31 -31
- package/dist/{toolkit-card-GhM_oj4G.js → toolkit-card-UG1sZ0Le.js} +11 -10
- package/dist/{vi.bdSIJ99Y-CZgZQPWH.js → vi.bdSIJ99Y-CQ1FdEM8.js} +3462 -3916
- package/package.json +38 -35
- package/dist/assets/icons/calendly.js +0 -64
- package/dist/assets/icons/clickup.d.ts +0 -3
- package/dist/assets/icons/e2b.d.ts +0 -3
- package/dist/assets/icons/e2b.js +0 -9
- package/dist/assets/icons/firecrawl.d.ts +0 -5
- package/dist/assets/icons/firecrawl.js +0 -17
- package/dist/assets/icons/google-calendar.js +0 -93
- package/dist/assets/icons/google-docs.js +0 -219
- package/dist/assets/icons/hubspot.d.ts +0 -3
- package/dist/assets/icons/index.js +0 -128
- package/dist/assets/icons/linkedin.d.ts +0 -3
- package/dist/assets/icons/netsuite.d.ts +0 -3
- package/dist/assets/icons/oauth.d.ts +0 -3
- package/dist/assets/icons/reddit.js +0 -268
- package/dist/assets/icons/utils.d.ts +0 -435
- package/dist/assets/icons/utils.js +0 -439
- package/dist/assets/icons/xero.js +0 -63
- package/dist/assets/icons/youtube.d.ts +0 -3
- package/dist/components/ui/organisms/toolkit-picker/components/mobile-filter-badges.d.ts +0 -1
- package/dist/components/ui/organisms/toolkit-picker/components/mobile-filter-badges.js +0 -96
- package/dist/index-DEJd-dpa.js +0 -1537
- /package/dist/{assets → components/ui/atoms}/icons/airtable.d.ts +0 -0
- /package/dist/{assets → components/ui/atoms}/icons/arcade.d.ts +0 -0
- /package/dist/{assets → components/ui/atoms}/icons/asana.d.ts +0 -0
- /package/dist/{assets → components/ui/atoms}/icons/atlassian.d.ts +0 -0
- /package/dist/{assets → components/ui/atoms}/icons/auth0.d.ts +0 -0
- /package/dist/{assets → components/ui/atoms}/icons/azure.d.ts +0 -0
- /package/dist/{assets → components/ui/atoms}/icons/bluesky.d.ts +0 -0
- /package/dist/{assets → components/ui/atoms}/icons/box.d.ts +0 -0
- /package/dist/{assets → components/ui/atoms}/icons/calendly.d.ts +0 -0
- /package/dist/{assets → components/ui/atoms}/icons/coinbase.d.ts +0 -0
- /package/dist/{assets → components/ui/atoms}/icons/confluence.d.ts +0 -0
- /package/dist/{assets → components/ui/atoms}/icons/datadog.d.ts +0 -0
- /package/dist/{assets → components/ui/atoms}/icons/discord.d.ts +0 -0
- /package/dist/{assets → components/ui/atoms}/icons/dropbox.d.ts +0 -0
- /package/dist/{assets → components/ui/atoms}/icons/ebay.d.ts +0 -0
- /package/dist/{assets → components/ui/atoms}/icons/figma.d.ts +0 -0
- /package/dist/{assets → components/ui/atoms}/icons/github.d.ts +0 -0
- /package/dist/{assets → components/ui/atoms}/icons/gitlab.d.ts +0 -0
- /package/dist/{assets → components/ui/atoms}/icons/gmail.d.ts +0 -0
- /package/dist/{assets → components/ui/atoms}/icons/google-calendar.d.ts +0 -0
- /package/dist/{assets → components/ui/atoms}/icons/google-contacts.d.ts +0 -0
- /package/dist/{assets → components/ui/atoms}/icons/google-docs.d.ts +0 -0
- /package/dist/{assets → components/ui/atoms}/icons/google-drive.d.ts +0 -0
- /package/dist/{assets → components/ui/atoms}/icons/google-finance.d.ts +0 -0
- /package/dist/{assets → components/ui/atoms}/icons/google-flight.d.ts +0 -0
- /package/dist/{assets → components/ui/atoms}/icons/google-hotels.d.ts +0 -0
- /package/dist/{assets → components/ui/atoms}/icons/google-maps.d.ts +0 -0
- /package/dist/{assets → components/ui/atoms}/icons/google-news.d.ts +0 -0
- /package/dist/{assets → components/ui/atoms}/icons/google-sheets.d.ts +0 -0
- /package/dist/{assets → components/ui/atoms}/icons/google-shopping.d.ts +0 -0
- /package/dist/{assets → components/ui/atoms}/icons/google.d.ts +0 -0
- /package/dist/{assets → components/ui/atoms}/icons/heroku.d.ts +0 -0
- /package/dist/{assets → components/ui/atoms}/icons/jira.d.ts +0 -0
- /package/dist/{assets → components/ui/atoms}/icons/linear.d.ts +0 -0
- /package/dist/{assets → components/ui/atoms}/icons/microsoft.d.ts +0 -0
- /package/dist/{assets → components/ui/atoms}/icons/notion.d.ts +0 -0
- /package/dist/{assets → components/ui/atoms}/icons/outlook-calendar.d.ts +0 -0
- /package/dist/{assets → components/ui/atoms}/icons/outlook-mail.d.ts +0 -0
- /package/dist/{assets → components/ui/atoms}/icons/pinterest.d.ts +0 -0
- /package/dist/{assets → components/ui/atoms}/icons/postgres.d.ts +0 -0
- /package/dist/{assets → components/ui/atoms}/icons/reddit.d.ts +0 -0
- /package/dist/{assets → components/ui/atoms}/icons/salesforce.d.ts +0 -0
- /package/dist/{assets → components/ui/atoms}/icons/shopify.d.ts +0 -0
- /package/dist/{assets → components/ui/atoms}/icons/slack.d.ts +0 -0
- /package/dist/{assets → components/ui/atoms}/icons/spotify.d.ts +0 -0
- /package/dist/{assets → components/ui/atoms}/icons/stripe.d.ts +0 -0
- /package/dist/{assets → components/ui/atoms}/icons/tesla.d.ts +0 -0
- /package/dist/{assets → components/ui/atoms}/icons/tiktok.d.ts +0 -0
- /package/dist/{assets → components/ui/atoms}/icons/twilio.d.ts +0 -0
- /package/dist/{assets → components/ui/atoms}/icons/twitch.d.ts +0 -0
- /package/dist/{assets → components/ui/atoms}/icons/vercel.d.ts +0 -0
- /package/dist/{assets → components/ui/atoms}/icons/walmart.d.ts +0 -0
- /package/dist/{assets → components/ui/atoms}/icons/x.d.ts +0 -0
- /package/dist/{assets → components/ui/atoms}/icons/xero.d.ts +0 -0
- /package/dist/{assets → components/ui/atoms}/icons/zoom.d.ts +0 -0
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { jsx as e, jsxs as a } from "react/jsx-runtime";
|
|
2
|
-
import { X as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
2
|
+
import { X as m, Package as B, Wrench as P, CheckSquare as V, FilterIcon as M, Search as Q } from "lucide-react";
|
|
3
|
+
import { Badge as v } from "../../atoms/badge.js";
|
|
4
|
+
import { Button as p } from "../../atoms/button.js";
|
|
5
|
+
import { Dialog as W, DialogTrigger as $, DialogContent as E, DialogHeader as H, DialogTitle as L, DialogDescription as O, DialogClose as N, DialogFooter as X } from "../../atoms/dialog.js";
|
|
6
|
+
import { Arcade as Y } from "../../atoms/icons/arcade.js";
|
|
7
|
+
import { getToolkitIcon as G, getToolIconByToolkitName as J } from "../../atoms/icons/utils.js";
|
|
8
8
|
import { MobileTooltipProvider as K } from "../../atoms/mobile-tooltip.js";
|
|
9
|
-
import { Tabs as R, TabsList as U, TabsTrigger as
|
|
10
|
-
import { EmptyState as
|
|
11
|
-
import "../../../../toolkit-card-
|
|
9
|
+
import { Tabs as R, TabsList as U, TabsTrigger as y, TabsContent as w } from "../../atoms/tabs.js";
|
|
10
|
+
import { EmptyState as _ } from "../../molecules/empty-state.js";
|
|
11
|
+
import "../../../../toolkit-card-UG1sZ0Le.js";
|
|
12
12
|
import { ToolCard as Z } from "../../molecules/tool-card.js";
|
|
13
13
|
import { useToolkitPicker as ee } from "./hooks/use-toolkit-picker.js";
|
|
14
14
|
import "../../atoms/chart.js";
|
|
@@ -21,49 +21,49 @@ import { FooterSummary as te } from "./components/footer-summary.js";
|
|
|
21
21
|
import { SearchInput as ae } from "./components/search-input.js";
|
|
22
22
|
import { SelectButton as le } from "./components/select-button.js";
|
|
23
23
|
import { ToolkitCardWithSelection as re } from "./components/toolkit-card-with-selection.js";
|
|
24
|
-
const ze = (
|
|
24
|
+
const ze = (T) => {
|
|
25
25
|
const {
|
|
26
|
-
description:
|
|
27
|
-
children:
|
|
28
|
-
selectionMode:
|
|
29
|
-
onSelectionChange:
|
|
30
|
-
} =
|
|
26
|
+
description: C = "Select toolkits and tools",
|
|
27
|
+
children: S,
|
|
28
|
+
selectionMode: r = "multi",
|
|
29
|
+
onSelectionChange: u
|
|
30
|
+
} = T, {
|
|
31
31
|
state: {
|
|
32
|
-
selectedToolkits:
|
|
33
|
-
selectedTools:
|
|
34
|
-
activeTab:
|
|
35
|
-
filteredToolkits:
|
|
36
|
-
filteredTools:
|
|
37
|
-
toolkitFilter:
|
|
38
|
-
searchQuery:
|
|
32
|
+
selectedToolkits: g,
|
|
33
|
+
selectedTools: i,
|
|
34
|
+
activeTab: x,
|
|
35
|
+
filteredToolkits: s,
|
|
36
|
+
filteredTools: n,
|
|
37
|
+
toolkitFilter: c,
|
|
38
|
+
searchQuery: f
|
|
39
39
|
},
|
|
40
|
-
setActiveTab:
|
|
41
|
-
toggleToolkit:
|
|
42
|
-
toggleTool:
|
|
43
|
-
clearSelections:
|
|
44
|
-
clearSearchQuery:
|
|
45
|
-
clearFilter:
|
|
46
|
-
selectAll:
|
|
47
|
-
commitSelections:
|
|
48
|
-
restoreCommittedState:
|
|
40
|
+
setActiveTab: d,
|
|
41
|
+
toggleToolkit: z,
|
|
42
|
+
toggleTool: q,
|
|
43
|
+
clearSelections: A,
|
|
44
|
+
clearSearchQuery: k,
|
|
45
|
+
clearFilter: D,
|
|
46
|
+
selectAll: j,
|
|
47
|
+
commitSelections: F,
|
|
48
|
+
restoreCommittedState: I,
|
|
49
49
|
setToolkitFilter: b
|
|
50
50
|
} = ee();
|
|
51
51
|
return /* @__PURE__ */ e(K, { children: /* @__PURE__ */ a(
|
|
52
|
-
|
|
52
|
+
W,
|
|
53
53
|
{
|
|
54
54
|
onOpenChange: (t) => {
|
|
55
|
-
t && (
|
|
55
|
+
t && (I(), k(), d("toolkits"));
|
|
56
56
|
},
|
|
57
57
|
children: [
|
|
58
|
-
/* @__PURE__ */ e(
|
|
58
|
+
/* @__PURE__ */ e($, { asChild: !0, children: S }),
|
|
59
59
|
/* @__PURE__ */ a(
|
|
60
|
-
|
|
60
|
+
E,
|
|
61
61
|
{
|
|
62
62
|
className: "flex max-h-[80vh] min-h-80 w-[95vw] max-w-xl flex-col gap-2 p-0 sm:max-w-2xl md:max-w-3xl lg:max-w-4xl xl:max-w-5xl 2xl:max-w-7xl",
|
|
63
63
|
"data-testid": "toolkit-picker-dialog",
|
|
64
64
|
showCloseButton: !1,
|
|
65
65
|
children: [
|
|
66
|
-
/* @__PURE__ */ a(
|
|
66
|
+
/* @__PURE__ */ a(H, { className: "shrink-0 p-4 pb-0 sm:p-6 sm:pb-0", children: [
|
|
67
67
|
/* @__PURE__ */ a("div", { className: "flex items-center justify-between", children: [
|
|
68
68
|
/* @__PURE__ */ a("div", { className: "flex items-center gap-3", children: [
|
|
69
69
|
/* @__PURE__ */ a("div", { className: "relative flex size-10 items-center justify-center overflow-hidden rounded-xl shadow-lg ring-1 ring-black/5 sm:size-12", children: [
|
|
@@ -81,21 +81,21 @@ const ze = (_) => {
|
|
|
81
81
|
className: "pointer-events-none absolute inset-0 z-10 bg-[repeating-conic-gradient(from_0deg_at_100%_0%,rgba(0,0,0,0.25)_0deg_1deg,transparent_1deg_12deg)] opacity-30"
|
|
82
82
|
}
|
|
83
83
|
),
|
|
84
|
-
/* @__PURE__ */ e("span", { className: "relative z-20", children: /* @__PURE__ */ e(
|
|
84
|
+
/* @__PURE__ */ e("span", { className: "relative z-20", children: /* @__PURE__ */ e(Y, { className: "size-5 sm:size-7" }) })
|
|
85
85
|
] }),
|
|
86
86
|
/* @__PURE__ */ a("div", { className: "ml-1 text-left", children: [
|
|
87
|
-
/* @__PURE__ */ e(
|
|
88
|
-
/* @__PURE__ */ e(
|
|
87
|
+
/* @__PURE__ */ e(L, { className: "font-bold text-lg sm:text-xl", children: "Choose Your Tools" }),
|
|
88
|
+
/* @__PURE__ */ e(O, { className: "hidden sm:block", children: C })
|
|
89
89
|
] })
|
|
90
90
|
] }),
|
|
91
|
-
/* @__PURE__ */ e(
|
|
92
|
-
|
|
91
|
+
/* @__PURE__ */ e(N, { asChild: !0, children: /* @__PURE__ */ e(
|
|
92
|
+
p,
|
|
93
93
|
{
|
|
94
94
|
className: "h-8 w-8 rounded-full p-0",
|
|
95
95
|
"data-testid": "toolkit-picker-close",
|
|
96
96
|
size: "sm",
|
|
97
97
|
variant: "ghost",
|
|
98
|
-
children: /* @__PURE__ */ e(
|
|
98
|
+
children: /* @__PURE__ */ e(m, { className: "h-4 w-4" })
|
|
99
99
|
}
|
|
100
100
|
) })
|
|
101
101
|
] }),
|
|
@@ -105,27 +105,27 @@ const ze = (_) => {
|
|
|
105
105
|
R,
|
|
106
106
|
{
|
|
107
107
|
className: "flex min-h-0 flex-1 flex-col",
|
|
108
|
-
onValueChange: (t) =>
|
|
109
|
-
value:
|
|
108
|
+
onValueChange: (t) => d(t),
|
|
109
|
+
value: x,
|
|
110
110
|
children: [
|
|
111
111
|
/* @__PURE__ */ a("div", { className: "shrink-0 space-y-2 px-4 sm:space-y-3 sm:px-6", children: [
|
|
112
112
|
/* @__PURE__ */ a("div", { className: "flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between", children: [
|
|
113
113
|
/* @__PURE__ */ a(U, { className: "h-10 w-auto gap-1 rounded-md border border-neutral-200 bg-white/60 p-1 shadow-sm dark:border-neutral-800 dark:bg-neutral-900/60", children: [
|
|
114
114
|
/* @__PURE__ */ a(
|
|
115
|
-
|
|
115
|
+
y,
|
|
116
116
|
{
|
|
117
117
|
className: "h-8 rounded-md px-3 font-medium text-neutral-600 text-sm hover:bg-black/5 data-[state=active]:bg-white data-[state=active]:text-neutral-900 dark:text-neutral-300 dark:data-[state=active]:bg-neutral-800 dark:data-[state=active]:text-white dark:hover:bg-white/10",
|
|
118
118
|
"data-testid": "toolkits-tab",
|
|
119
119
|
value: "toolkits",
|
|
120
120
|
children: [
|
|
121
|
-
/* @__PURE__ */ e(
|
|
121
|
+
/* @__PURE__ */ e(B, { className: "h-4 w-4" }),
|
|
122
122
|
/* @__PURE__ */ e("span", { children: "Toolkits" }),
|
|
123
|
-
/* @__PURE__ */ e("span", { className: "ml-1 rounded-full bg-emerald-300 px-1.5 py-0.5 text-emerald-900 text-xs dark:bg-emerald-500/25 dark:text-emerald-200", children:
|
|
123
|
+
/* @__PURE__ */ e("span", { className: "ml-1 rounded-full bg-emerald-300 px-1.5 py-0.5 text-emerald-900 text-xs dark:bg-emerald-500/25 dark:text-emerald-200", children: s.size })
|
|
124
124
|
]
|
|
125
125
|
}
|
|
126
126
|
),
|
|
127
127
|
/* @__PURE__ */ a(
|
|
128
|
-
|
|
128
|
+
y,
|
|
129
129
|
{
|
|
130
130
|
className: "h-8 rounded-md px-3 font-medium text-neutral-600 text-sm hover:bg-black/5 data-[state=active]:bg-white data-[state=active]:text-neutral-900 dark:text-neutral-300 dark:data-[state=active]:bg-neutral-800 dark:data-[state=active]:text-white dark:hover:bg-white/10",
|
|
131
131
|
"data-testid": "tools-tab",
|
|
@@ -133,39 +133,39 @@ const ze = (_) => {
|
|
|
133
133
|
children: [
|
|
134
134
|
/* @__PURE__ */ e(P, { className: "h-4 w-4" }),
|
|
135
135
|
/* @__PURE__ */ e("span", { children: "Tools" }),
|
|
136
|
-
/* @__PURE__ */ e("span", { className: "ml-1 rounded-full bg-emerald-300 px-1.5 py-0.5 text-emerald-900 text-xs dark:bg-emerald-500/25 dark:text-emerald-200", children:
|
|
136
|
+
/* @__PURE__ */ e("span", { className: "ml-1 rounded-full bg-emerald-300 px-1.5 py-0.5 text-emerald-900 text-xs dark:bg-emerald-500/25 dark:text-emerald-200", children: n.size })
|
|
137
137
|
]
|
|
138
138
|
}
|
|
139
139
|
)
|
|
140
140
|
] }),
|
|
141
141
|
/* @__PURE__ */ a("div", { className: "hidden items-center gap-2 sm:flex", children: [
|
|
142
|
-
(
|
|
143
|
-
|
|
142
|
+
(g.size > 0 || i.size > 0) && /* @__PURE__ */ a(
|
|
143
|
+
p,
|
|
144
144
|
{
|
|
145
145
|
className: "h-8 border-neutral-300 text-neutral-700 hover:bg-neutral-50 hover:text-neutral-900 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-900/40 dark:hover:text-neutral-100",
|
|
146
146
|
"data-testid": "clear-selections",
|
|
147
|
-
onClick:
|
|
147
|
+
onClick: A,
|
|
148
148
|
size: "sm",
|
|
149
149
|
variant: "outline",
|
|
150
150
|
children: [
|
|
151
|
-
/* @__PURE__ */ e(
|
|
151
|
+
/* @__PURE__ */ e(m, { className: "h-4 w-4 text-red-600 dark:text-red-400" }),
|
|
152
152
|
"Clear All"
|
|
153
153
|
]
|
|
154
154
|
}
|
|
155
155
|
),
|
|
156
|
-
|
|
157
|
-
const t =
|
|
158
|
-
(
|
|
159
|
-
) : Array.from(
|
|
160
|
-
(
|
|
156
|
+
r === "multi" && (() => {
|
|
157
|
+
const t = x === "toolkits" ? Array.from(s).flatMap(
|
|
158
|
+
(l) => l.tools.map((h) => h.fully_qualified_name)
|
|
159
|
+
) : Array.from(n).map(
|
|
160
|
+
(l) => l.fully_qualified_name
|
|
161
161
|
);
|
|
162
|
-
return t.length > 0 && t.every((
|
|
163
|
-
|
|
162
|
+
return t.length > 0 && t.every((l) => i.has(l)) ? null : /* @__PURE__ */ a(
|
|
163
|
+
p,
|
|
164
164
|
{
|
|
165
165
|
className: "h-8",
|
|
166
166
|
"data-testid": "select-all",
|
|
167
167
|
onClick: () => {
|
|
168
|
-
|
|
168
|
+
j(t);
|
|
169
169
|
},
|
|
170
170
|
size: "sm",
|
|
171
171
|
variant: "outline",
|
|
@@ -179,8 +179,8 @@ const ze = (_) => {
|
|
|
179
179
|
] })
|
|
180
180
|
] }),
|
|
181
181
|
/* @__PURE__ */ a("div", { className: "flex flex-wrap items-center gap-2", children: [
|
|
182
|
-
|
|
183
|
-
|
|
182
|
+
c && /* @__PURE__ */ a(
|
|
183
|
+
v,
|
|
184
184
|
{
|
|
185
185
|
className: "h-8 border border-purple-200 bg-purple-50 pr-1.5 pl-2 text-purple-800 shadow-sm ring-1 ring-purple-200/50 dark:border-purple-800/60 dark:bg-purple-950/40 dark:text-purple-200 dark:ring-purple-800/30",
|
|
186
186
|
variant: "secondary",
|
|
@@ -194,16 +194,19 @@ const ze = (_) => {
|
|
|
194
194
|
{
|
|
195
195
|
className: "inline-flex h-full items-center gap-1.5",
|
|
196
196
|
"data-testid": "filter-badge",
|
|
197
|
-
onClick: () =>
|
|
197
|
+
onClick: () => d("toolkits"),
|
|
198
198
|
type: "button",
|
|
199
199
|
children: [
|
|
200
200
|
(() => {
|
|
201
|
-
const t =
|
|
202
|
-
|
|
203
|
-
)
|
|
204
|
-
|
|
201
|
+
const t = Array.from(
|
|
202
|
+
s
|
|
203
|
+
).find((l) => l.name === c), o = G({
|
|
204
|
+
metadataIcon: t?.metadata?.icon,
|
|
205
|
+
toolkitName: c
|
|
206
|
+
});
|
|
207
|
+
return /* @__PURE__ */ e(o, { className: "h-3.5 w-3.5" });
|
|
205
208
|
})(),
|
|
206
|
-
/* @__PURE__ */ e("span", { className: "font-medium text-xs", children:
|
|
209
|
+
/* @__PURE__ */ e("span", { className: "font-medium text-xs", children: c })
|
|
207
210
|
]
|
|
208
211
|
}
|
|
209
212
|
),
|
|
@@ -213,16 +216,16 @@ const ze = (_) => {
|
|
|
213
216
|
"aria-label": "Clear toolkit filter",
|
|
214
217
|
className: "ml-1 inline-flex h-5 w-5 items-center justify-center rounded-full bg-purple-100 text-red-600 hover:bg-red-100 hover:text-red-700 focus-visible:ring-[3px] focus-visible:ring-red-200 dark:bg-purple-800/60 dark:text-red-400 dark:hover:bg-red-950/40 dark:hover:text-red-300",
|
|
215
218
|
"data-testid": "clear-filter",
|
|
216
|
-
onClick:
|
|
219
|
+
onClick: D,
|
|
217
220
|
type: "button",
|
|
218
|
-
children: /* @__PURE__ */ e(
|
|
221
|
+
children: /* @__PURE__ */ e(m, { className: "h-3.5 w-3.5" })
|
|
219
222
|
}
|
|
220
223
|
)
|
|
221
224
|
]
|
|
222
225
|
}
|
|
223
226
|
),
|
|
224
|
-
|
|
225
|
-
|
|
227
|
+
f && /* @__PURE__ */ a(
|
|
228
|
+
v,
|
|
226
229
|
{
|
|
227
230
|
className: "h-8 border border-teal-200 bg-teal-50 pr-1.5 pl-2 text-teal-800 shadow-sm ring-1 ring-teal-200/50 dark:border-teal-800/60 dark:bg-teal-950/40 dark:text-teal-200 dark:ring-teal-800/30",
|
|
228
231
|
variant: "secondary",
|
|
@@ -233,7 +236,7 @@ const ze = (_) => {
|
|
|
233
236
|
] }),
|
|
234
237
|
/* @__PURE__ */ a("span", { className: "font-medium text-xs", children: [
|
|
235
238
|
'"',
|
|
236
|
-
|
|
239
|
+
f,
|
|
237
240
|
'"'
|
|
238
241
|
] }),
|
|
239
242
|
/* @__PURE__ */ e(
|
|
@@ -242,9 +245,9 @@ const ze = (_) => {
|
|
|
242
245
|
"aria-label": "Clear search query",
|
|
243
246
|
className: "ml-1 inline-flex h-5 w-5 items-center justify-center rounded-full bg-teal-100 text-red-600 hover:bg-red-100 hover:text-red-700 focus-visible:ring-[3px] focus-visible:ring-red-200 dark:bg-teal-800/60 dark:text-red-400 dark:hover:bg-red-950/40 dark:hover:text-red-300",
|
|
244
247
|
"data-testid": "clear-search",
|
|
245
|
-
onClick:
|
|
248
|
+
onClick: k,
|
|
246
249
|
type: "button",
|
|
247
|
-
children: /* @__PURE__ */ e(
|
|
250
|
+
children: /* @__PURE__ */ e(m, { className: "h-3.5 w-3.5" })
|
|
248
251
|
}
|
|
249
252
|
)
|
|
250
253
|
]
|
|
@@ -253,14 +256,14 @@ const ze = (_) => {
|
|
|
253
256
|
] })
|
|
254
257
|
] }),
|
|
255
258
|
/* @__PURE__ */ e(
|
|
256
|
-
|
|
259
|
+
w,
|
|
257
260
|
{
|
|
258
261
|
className: "min-h-0 flex-1 overflow-y-auto px-4 py-2 sm:px-6",
|
|
259
262
|
"data-testid": "content-area",
|
|
260
263
|
value: "toolkits",
|
|
261
264
|
children: /* @__PURE__ */ a("div", { className: "space-y-3", children: [
|
|
262
|
-
|
|
263
|
-
|
|
265
|
+
s.size === 0 && /* @__PURE__ */ e(
|
|
266
|
+
_,
|
|
264
267
|
{
|
|
265
268
|
"data-testid": "empty-toolkits",
|
|
266
269
|
description: "Try a different search term",
|
|
@@ -272,21 +275,21 @@ const ze = (_) => {
|
|
|
272
275
|
{
|
|
273
276
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-2 xl:grid-cols-3",
|
|
274
277
|
"data-testid": "toolkits-grid",
|
|
275
|
-
children: Array.from(
|
|
278
|
+
children: Array.from(s).map((t) => /* @__PURE__ */ e(
|
|
276
279
|
re,
|
|
277
280
|
{
|
|
278
281
|
onSelect: () => {
|
|
279
|
-
if (
|
|
280
|
-
|
|
282
|
+
if (r === "single") {
|
|
283
|
+
d("tools"), b(t.name);
|
|
281
284
|
return;
|
|
282
285
|
}
|
|
283
|
-
|
|
286
|
+
z(t);
|
|
284
287
|
},
|
|
285
288
|
onView: () => {
|
|
286
|
-
b(t.name),
|
|
289
|
+
b(t.name), d("tools");
|
|
287
290
|
},
|
|
288
|
-
selectedTools: new Set(
|
|
289
|
-
selectionMode:
|
|
291
|
+
selectedTools: new Set(i.keys()),
|
|
292
|
+
selectionMode: r,
|
|
290
293
|
toolkit: t
|
|
291
294
|
},
|
|
292
295
|
t.name
|
|
@@ -297,14 +300,14 @@ const ze = (_) => {
|
|
|
297
300
|
}
|
|
298
301
|
),
|
|
299
302
|
/* @__PURE__ */ e(
|
|
300
|
-
|
|
303
|
+
w,
|
|
301
304
|
{
|
|
302
305
|
className: "min-h-0 flex-1 overflow-y-auto px-4 py-2 sm:px-6",
|
|
303
306
|
"data-testid": "content-area",
|
|
304
307
|
value: "tools",
|
|
305
308
|
children: /* @__PURE__ */ a("div", { className: "space-y-3", children: [
|
|
306
|
-
|
|
307
|
-
|
|
309
|
+
n.size === 0 && /* @__PURE__ */ e(
|
|
310
|
+
_,
|
|
308
311
|
{
|
|
309
312
|
"data-testid": "empty-tools",
|
|
310
313
|
description: "Try a different search term",
|
|
@@ -316,21 +319,28 @@ const ze = (_) => {
|
|
|
316
319
|
{
|
|
317
320
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-2 xl:grid-cols-3",
|
|
318
321
|
"data-testid": "tools-grid",
|
|
319
|
-
children: Array.from(
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
322
|
+
children: Array.from(n).map((t) => {
|
|
323
|
+
const l = Array.from(s).find(
|
|
324
|
+
(h) => h.name === t.toolkit.name
|
|
325
|
+
)?.metadata?.icon ?? J(t.toolkit.name);
|
|
326
|
+
return /* @__PURE__ */ e(
|
|
327
|
+
Z,
|
|
328
|
+
{
|
|
329
|
+
"data-testid": `tool-card-${t.fully_qualified_name}`,
|
|
330
|
+
description: t.description,
|
|
331
|
+
fully_qualified_name: t.fully_qualified_name,
|
|
332
|
+
hideCheckbox: r === "single",
|
|
333
|
+
Icon: l,
|
|
334
|
+
isSelected: i.has(
|
|
335
|
+
t.fully_qualified_name
|
|
336
|
+
),
|
|
337
|
+
name: t.name,
|
|
338
|
+
onSelect: () => q(t),
|
|
339
|
+
toolkitName: t.toolkit.name
|
|
340
|
+
},
|
|
341
|
+
t.fully_qualified_name
|
|
342
|
+
);
|
|
343
|
+
})
|
|
334
344
|
}
|
|
335
345
|
)
|
|
336
346
|
] })
|
|
@@ -339,15 +349,15 @@ const ze = (_) => {
|
|
|
339
349
|
]
|
|
340
350
|
}
|
|
341
351
|
),
|
|
342
|
-
/* @__PURE__ */ e(
|
|
352
|
+
/* @__PURE__ */ e(X, { className: "shrink-0 border-t bg-white px-4 py-3 sm:px-6 sm:py-4 dark:bg-neutral-950", children: /* @__PURE__ */ a(
|
|
343
353
|
"div",
|
|
344
354
|
{
|
|
345
|
-
className: `${
|
|
355
|
+
className: `${r === "single" ? "sm:justify-end" : "sm:justify-between"} flex w-full flex-col gap-3 sm:flex-row sm:items-center`,
|
|
346
356
|
children: [
|
|
347
|
-
|
|
357
|
+
r === "multi" && /* @__PURE__ */ e(te, {}),
|
|
348
358
|
/* @__PURE__ */ a("div", { className: "mt-2 flex gap-2 sm:mt-0 sm:gap-2", children: [
|
|
349
|
-
/* @__PURE__ */ e(
|
|
350
|
-
|
|
359
|
+
/* @__PURE__ */ e(N, { asChild: !0, children: /* @__PURE__ */ e(
|
|
360
|
+
p,
|
|
351
361
|
{
|
|
352
362
|
className: "flex-1 sm:flex-none",
|
|
353
363
|
"data-testid": "cancel-button",
|
|
@@ -361,22 +371,22 @@ const ze = (_) => {
|
|
|
361
371
|
{
|
|
362
372
|
className: "flex-1 sm:flex-none",
|
|
363
373
|
onCommit: () => {
|
|
364
|
-
|
|
365
|
-
selectedToolkits: Array.from(
|
|
366
|
-
selectedTools: Array.from(
|
|
374
|
+
F(), u && u({
|
|
375
|
+
selectedToolkits: Array.from(g.keys()),
|
|
376
|
+
selectedTools: Array.from(i.keys())
|
|
367
377
|
});
|
|
368
378
|
const t = document.querySelector(
|
|
369
379
|
'[data-testid="toolkit-picker-dialog"]'
|
|
370
380
|
);
|
|
371
381
|
if (t) {
|
|
372
|
-
const
|
|
382
|
+
const o = t.querySelector(
|
|
373
383
|
'[data-testid="toolkit-picker-close"]'
|
|
374
384
|
);
|
|
375
|
-
|
|
385
|
+
o && o.click();
|
|
376
386
|
}
|
|
377
387
|
},
|
|
378
|
-
selectedCount:
|
|
379
|
-
selectionMode:
|
|
388
|
+
selectedCount: i.size,
|
|
389
|
+
selectionMode: r
|
|
380
390
|
}
|
|
381
391
|
)
|
|
382
392
|
] })
|