@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,5 +1,5 @@
|
|
|
1
1
|
import { EmptyState as e } from "./empty-state.js";
|
|
2
|
-
import { R as m, T as a } from "../../../toolkit-card-
|
|
2
|
+
import { R as m, T as a } from "../../../toolkit-card-UG1sZ0Le.js";
|
|
3
3
|
import { ToolCard as p } from "./tool-card.js";
|
|
4
4
|
import { ToolkitPickerTrigger as f } from "./toolkit-picker-trigger.js";
|
|
5
5
|
import { ToolkitSelectionSummary as x } from "./toolkit-selection-summary.js";
|
|
@@ -12,13 +12,14 @@ import "../../../react-resizable-panels.browser-ZHjTH32c.js";
|
|
|
12
12
|
import "../atoms/sidebar.js";
|
|
13
13
|
import "../atoms/table.js";
|
|
14
14
|
import "../atoms/tooltip.js";
|
|
15
|
-
import { O as
|
|
15
|
+
import { O as x, R as A, S as b } from "../../../toolkit-card-UG1sZ0Le.js";
|
|
16
16
|
import "./tool-card.js";
|
|
17
|
-
import "../../../
|
|
17
|
+
import "../../../metadata/oauth-providers.js";
|
|
18
|
+
import "../../../metadata/toolkits.js";
|
|
18
19
|
import "../organisms/toolkit-picker/hooks/use-toolkit-picker.js";
|
|
19
20
|
import "../utils/memo.js";
|
|
20
21
|
export {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
x as OAuthBadge,
|
|
23
|
+
A as RequirementBadges,
|
|
24
|
+
b as SecretsBadge
|
|
24
25
|
};
|
|
@@ -2,27 +2,27 @@ import { jsx as r, jsxs as a } from "react/jsx-runtime";
|
|
|
2
2
|
import { Wrench as N } from "lucide-react";
|
|
3
3
|
import * as t from "react";
|
|
4
4
|
import { Button as E } from "../atoms/button.js";
|
|
5
|
-
import { Card as
|
|
6
|
-
import { Checkbox as
|
|
7
|
-
import { Collapsible as
|
|
5
|
+
import { Card as D, CardContent as I } from "../atoms/card.js";
|
|
6
|
+
import { Checkbox as P } from "../atoms/checkbox.js";
|
|
7
|
+
import { Collapsible as T, CollapsibleTrigger as _, CollapsibleContent as S } from "../atoms/collapsible.js";
|
|
8
8
|
import { c as m } from "../../../utils-Db4QWi-E.js";
|
|
9
|
-
import { createPropsComparator as
|
|
10
|
-
const
|
|
9
|
+
import { createPropsComparator as j } from "../utils/memo.js";
|
|
10
|
+
const K = /\s+/, O = 220, R = 40;
|
|
11
11
|
function z({
|
|
12
12
|
fully_qualified_name: u,
|
|
13
13
|
name: k,
|
|
14
14
|
toolkitName: p,
|
|
15
15
|
description: n,
|
|
16
|
-
Icon:
|
|
16
|
+
Icon: C = (s) => /* @__PURE__ */ r(N, { ...s }),
|
|
17
17
|
isSelected: o = !1,
|
|
18
18
|
onSelect: l,
|
|
19
19
|
hideCheckbox: h = !1,
|
|
20
|
-
...
|
|
20
|
+
...b
|
|
21
21
|
}) {
|
|
22
22
|
const s = t.useCallback(
|
|
23
23
|
() => l?.(!o),
|
|
24
24
|
[o, l]
|
|
25
|
-
), [i, x] = t.useState(!1), w = t.useMemo(() => n ? n.length >
|
|
25
|
+
), [i, x] = t.useState(!1), w = t.useMemo(() => n ? n.length > O ? !0 : n.trim().split(K).length > R : !1, [n]), y = (e) => {
|
|
26
26
|
const c = e.key === "Enter" || e.code === "Enter", d = e.key === " " || e.key === "Spacebar" || e.code === "Space";
|
|
27
27
|
(c || d) && (e.preventDefault(), s());
|
|
28
28
|
}, v = t.useCallback(
|
|
@@ -35,9 +35,9 @@ function z({
|
|
|
35
35
|
(c || d) && e.stopPropagation();
|
|
36
36
|
}, []);
|
|
37
37
|
return /* @__PURE__ */ r(
|
|
38
|
-
|
|
38
|
+
D,
|
|
39
39
|
{
|
|
40
|
-
...
|
|
40
|
+
...b,
|
|
41
41
|
"aria-label": `Select tool ${u}`,
|
|
42
42
|
className: m(
|
|
43
43
|
"group relative cursor-pointer overflow-hidden rounded-lg border py-3 transition-all duration-200",
|
|
@@ -49,7 +49,7 @@ function z({
|
|
|
49
49
|
onClick: s,
|
|
50
50
|
onKeyDown: y,
|
|
51
51
|
tabIndex: 0,
|
|
52
|
-
children: /* @__PURE__ */ r(
|
|
52
|
+
children: /* @__PURE__ */ r(I, { className: "px-3", children: /* @__PURE__ */ a(
|
|
53
53
|
"div",
|
|
54
54
|
{
|
|
55
55
|
className: m(
|
|
@@ -59,7 +59,7 @@ function z({
|
|
|
59
59
|
),
|
|
60
60
|
children: [
|
|
61
61
|
!h && /* @__PURE__ */ r("div", { className: "flex items-center justify-center pt-1.5", children: /* @__PURE__ */ r(
|
|
62
|
-
|
|
62
|
+
P,
|
|
63
63
|
{
|
|
64
64
|
checked: o,
|
|
65
65
|
onCheckedChange: v,
|
|
@@ -70,13 +70,13 @@ function z({
|
|
|
70
70
|
) }),
|
|
71
71
|
/* @__PURE__ */ a("div", { className: "min-w-0 space-y-2", children: [
|
|
72
72
|
/* @__PURE__ */ a("div", { className: "flex min-w-0 items-start gap-3", children: [
|
|
73
|
-
/* @__PURE__ */ r("div", { className: "flex size-9 items-center justify-center rounded bg-gradient-to-b from-neutral-200 to-neutral-100 ring-1 ring-black/5 dark:from-neutral-800 dark:to-neutral-900 dark:ring-white/5", children: /* @__PURE__ */ r(
|
|
73
|
+
/* @__PURE__ */ r("div", { className: "flex size-9 items-center justify-center rounded bg-gradient-to-b from-neutral-200 to-neutral-100 ring-1 ring-black/5 dark:from-neutral-800 dark:to-neutral-900 dark:ring-white/5", children: /* @__PURE__ */ r(C, { className: "size-6 text-neutral-700 dark:text-neutral-200" }) }),
|
|
74
74
|
/* @__PURE__ */ a("div", { className: "flex h-9 min-w-0 flex-col justify-center space-y-0.5", children: [
|
|
75
75
|
/* @__PURE__ */ r("h3", { className: "truncate font-semibold text-base text-neutral-900 leading-tight dark:text-neutral-100", children: k ?? u }),
|
|
76
76
|
p && /* @__PURE__ */ r("span", { className: "font-medium text-neutral-500 text-xs leading-tight dark:text-neutral-400", children: p })
|
|
77
77
|
] })
|
|
78
78
|
] }),
|
|
79
|
-
n && /* @__PURE__ */ a(
|
|
79
|
+
n && /* @__PURE__ */ a(T, { onOpenChange: x, open: i, children: [
|
|
80
80
|
/* @__PURE__ */ a("div", { className: "space-y-1", children: [
|
|
81
81
|
/* @__PURE__ */ r(
|
|
82
82
|
"p",
|
|
@@ -88,7 +88,7 @@ function z({
|
|
|
88
88
|
children: n
|
|
89
89
|
}
|
|
90
90
|
),
|
|
91
|
-
w && /* @__PURE__ */ r(
|
|
91
|
+
w && /* @__PURE__ */ r(_, { asChild: !0, children: /* @__PURE__ */ a(
|
|
92
92
|
E,
|
|
93
93
|
{
|
|
94
94
|
className: "h-auto px-0",
|
|
@@ -113,7 +113,7 @@ function z({
|
|
|
113
113
|
}
|
|
114
114
|
);
|
|
115
115
|
}
|
|
116
|
-
const
|
|
116
|
+
const A = j([
|
|
117
117
|
"fully_qualified_name",
|
|
118
118
|
"name",
|
|
119
119
|
"toolkitName",
|
|
@@ -121,7 +121,7 @@ const R = T([
|
|
|
121
121
|
"isSelected",
|
|
122
122
|
"Icon",
|
|
123
123
|
"hideCheckbox"
|
|
124
|
-
]),
|
|
124
|
+
]), $ = t.memo(z, A);
|
|
125
125
|
export {
|
|
126
|
-
|
|
126
|
+
$ as ToolCard
|
|
127
127
|
};
|
|
@@ -6,7 +6,7 @@ import "../atoms/card.js";
|
|
|
6
6
|
import "../atoms/checkbox.js";
|
|
7
7
|
import "../atoms/view-tools-control.js";
|
|
8
8
|
import "../../../utils-Db4QWi-E.js";
|
|
9
|
-
import { T as k } from "../../../toolkit-card-
|
|
9
|
+
import { T as k } from "../../../toolkit-card-UG1sZ0Le.js";
|
|
10
10
|
import "../utils/memo.js";
|
|
11
11
|
export {
|
|
12
12
|
k as ToolkitCard
|
|
@@ -1,35 +1,41 @@
|
|
|
1
1
|
import { jsx as e, jsxs as t, Fragment as h } from "react/jsx-runtime";
|
|
2
|
-
import { Loader2 as
|
|
3
|
-
import {
|
|
4
|
-
import { Badge as j } from "../atoms/badge.js";
|
|
2
|
+
import { Loader2 as v, Package as w } from "lucide-react";
|
|
3
|
+
import { Badge as y } from "../atoms/badge.js";
|
|
5
4
|
import { Button as z } from "../atoms/button.js";
|
|
5
|
+
import { getToolkitIcon as j } from "../atoms/icons/utils.js";
|
|
6
6
|
import { Tooltip as C, TooltipTrigger as $, TooltipContent as L } from "../atoms/tooltip.js";
|
|
7
|
-
import { c as
|
|
8
|
-
import { useToolkitPicker as
|
|
7
|
+
import { c as g } from "../../../utils-Db4QWi-E.js";
|
|
8
|
+
import { useToolkitPicker as I } from "../organisms/toolkit-picker/hooks/use-toolkit-picker.js";
|
|
9
9
|
function D({
|
|
10
|
-
maxVisibleIcons:
|
|
11
|
-
className:
|
|
12
|
-
countType:
|
|
13
|
-
loading:
|
|
14
|
-
...
|
|
10
|
+
maxVisibleIcons: x = 2,
|
|
11
|
+
className: N,
|
|
12
|
+
countType: r = "toolkits",
|
|
13
|
+
loading: i = !1,
|
|
14
|
+
...n
|
|
15
15
|
}) {
|
|
16
16
|
const {
|
|
17
|
-
state: { committedToolkits:
|
|
18
|
-
} =
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
17
|
+
state: { committedToolkits: f, committedTools: T }
|
|
18
|
+
} = I(), o = Array.from(f.keys()), l = o.length, p = T.size, c = o.slice(0, x).map((a) => {
|
|
19
|
+
const s = f.get(a);
|
|
20
|
+
return j({
|
|
21
|
+
metadataIcon: s?.metadata?.icon,
|
|
22
|
+
toolkitName: a
|
|
23
|
+
});
|
|
24
|
+
}), k = Math.max(l - c.length, 0), b = r === "tools";
|
|
25
|
+
let m = "Toolkits", d = l;
|
|
26
|
+
b && (m = "Tools", d = p);
|
|
27
|
+
let u = `Select ${r === "tools" ? "Tools" : "Toolkits"}`;
|
|
28
|
+
return i ? u = "Loading toolkits..." : l > 0 && (u = `${d} ${m.toLowerCase()} selected`), /* @__PURE__ */ e(
|
|
23
29
|
z,
|
|
24
30
|
{
|
|
25
|
-
...
|
|
26
|
-
"aria-label":
|
|
27
|
-
className:
|
|
28
|
-
disabled:
|
|
29
|
-
size:
|
|
30
|
-
variant:
|
|
31
|
-
children:
|
|
32
|
-
/* @__PURE__ */ e(
|
|
31
|
+
...n,
|
|
32
|
+
"aria-label": u,
|
|
33
|
+
className: g("gap-2 bg-transparent transition-colors", N),
|
|
34
|
+
disabled: i,
|
|
35
|
+
size: n.size ?? "sm",
|
|
36
|
+
variant: n.variant ?? "outline",
|
|
37
|
+
children: i ? /* @__PURE__ */ t(h, { children: [
|
|
38
|
+
/* @__PURE__ */ e(v, { className: "h-4 w-4 animate-spin" }),
|
|
33
39
|
/* @__PURE__ */ t("div", { className: "flex items-center gap-2", children: [
|
|
34
40
|
/* @__PURE__ */ e("div", { className: "h-4 w-16 animate-pulse rounded bg-neutral-200 dark:bg-neutral-700" }),
|
|
35
41
|
/* @__PURE__ */ e("div", { className: "h-5 w-6 animate-pulse rounded-full bg-neutral-200 dark:bg-neutral-700" })
|
|
@@ -37,23 +43,26 @@ function D({
|
|
|
37
43
|
] }) : /* @__PURE__ */ t(h, { children: [
|
|
38
44
|
l > 0 && /* @__PURE__ */ t(C, { children: [
|
|
39
45
|
/* @__PURE__ */ e($, { asChild: !0, children: /* @__PURE__ */ t("span", { className: "mr-1.5 flex items-center", children: [
|
|
40
|
-
|
|
46
|
+
c.map((a, s) => /* @__PURE__ */ e(
|
|
41
47
|
"div",
|
|
42
48
|
{
|
|
43
|
-
className:
|
|
44
|
-
|
|
45
|
-
|
|
49
|
+
className: g(
|
|
50
|
+
"relative first:ml-0",
|
|
51
|
+
s > 0 && "-ml-1.5"
|
|
52
|
+
),
|
|
53
|
+
style: { zIndex: s + 1 },
|
|
54
|
+
children: /* @__PURE__ */ e("div", { className: "flex size-5 items-center justify-center rounded-full bg-neutral-200 p-2 ring-1 ring-black/15 dark:bg-neutral-800 dark:ring-white/15", children: /* @__PURE__ */ e(a, { className: "h-2.5 w-2.5" }) })
|
|
46
55
|
},
|
|
47
|
-
`${a.name || "icon"}-${
|
|
56
|
+
`${a.name || "icon"}-${s}`
|
|
48
57
|
)),
|
|
49
|
-
|
|
58
|
+
k > 0 && /* @__PURE__ */ t(
|
|
50
59
|
"span",
|
|
51
60
|
{
|
|
52
61
|
className: "-ml-2 inline-flex h-6 w-6 items-center justify-center rounded-full bg-neutral-200 font-medium text-[10px] text-neutral-700 ring-1 ring-black/15 dark:bg-neutral-800 dark:text-neutral-200 dark:ring-white/15",
|
|
53
|
-
style: { zIndex:
|
|
62
|
+
style: { zIndex: c.length + 10 },
|
|
54
63
|
children: [
|
|
55
64
|
"+",
|
|
56
|
-
|
|
65
|
+
k
|
|
57
66
|
]
|
|
58
67
|
}
|
|
59
68
|
)
|
|
@@ -63,29 +72,29 @@ function D({
|
|
|
63
72
|
/* @__PURE__ */ e("span", { className: "font-semibold text-neutral-800 dark:text-neutral-200", children: "Toolkits" }),
|
|
64
73
|
/* @__PURE__ */ t("span", { className: "text-neutral-700 dark:text-neutral-300", children: [
|
|
65
74
|
": ",
|
|
66
|
-
|
|
75
|
+
o.join(", ")
|
|
67
76
|
] })
|
|
68
77
|
] }),
|
|
69
78
|
/* @__PURE__ */ t("li", { children: [
|
|
70
79
|
/* @__PURE__ */ e("span", { className: "font-semibold text-neutral-800 dark:text-neutral-200", children: "Tools" }),
|
|
71
80
|
/* @__PURE__ */ t("span", { className: "text-neutral-700 dark:text-neutral-300", children: [
|
|
72
81
|
": ",
|
|
73
|
-
|
|
82
|
+
p,
|
|
74
83
|
" selected"
|
|
75
84
|
] })
|
|
76
85
|
] })
|
|
77
86
|
] }) }) })
|
|
78
87
|
] }),
|
|
79
88
|
l === 0 && /* @__PURE__ */ t(h, { children: [
|
|
80
|
-
/* @__PURE__ */ e(
|
|
89
|
+
/* @__PURE__ */ e(w, { className: "h-4 w-4" }),
|
|
81
90
|
/* @__PURE__ */ t("span", { className: "truncate text-sm", children: [
|
|
82
91
|
"Select ",
|
|
83
|
-
|
|
92
|
+
r === "tools" ? "Tools" : "Toolkits"
|
|
84
93
|
] })
|
|
85
94
|
] }),
|
|
86
95
|
l > 0 && /* @__PURE__ */ t("span", { className: "inline-flex items-center gap-2 truncate text-sm", children: [
|
|
87
|
-
|
|
88
|
-
/* @__PURE__ */ e(
|
|
96
|
+
m,
|
|
97
|
+
/* @__PURE__ */ e(y, { className: "px-1.5 py-0 text-[11px]", variant: "default", children: d })
|
|
89
98
|
] })
|
|
90
99
|
] })
|
|
91
100
|
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { SelectionMode } from '../organisms/toolkit-picker';
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
import { ToolkitSelectionMap } from '../organisms/toolkit-picker/hooks/use-toolkit-picker';
|
|
3
|
+
export type ToolkitSelectionSummaryProps = {
|
|
4
|
+
selectedToolkits: ToolkitSelectionMap;
|
|
4
5
|
selectedTools: Set<string>;
|
|
5
6
|
onClear: () => void;
|
|
6
7
|
onSelectAll?: () => void;
|
|
7
8
|
allVisibleSelected?: boolean;
|
|
8
9
|
selectionMode?: SelectionMode;
|
|
9
|
-
}
|
|
10
|
+
};
|
|
10
11
|
export declare function ToolkitSelectionSummary({ selectedToolkits, selectedTools, onClear, onSelectAll, allVisibleSelected, selectionMode, }: ToolkitSelectionSummaryProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { jsxs as t, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { Package as u, X as
|
|
3
|
-
import { getToolkitIconByName as C } from "../../../assets/icons/utils.js";
|
|
2
|
+
import { Package as u, X as y, CheckSquare as C } from "lucide-react";
|
|
4
3
|
import { Button as x } from "../atoms/button.js";
|
|
5
4
|
import { MobileTooltip as p, MobileTooltipTrigger as g, MobileTooltipContent as f } from "../atoms/mobile-tooltip.js";
|
|
6
5
|
import "../atoms/chart.js";
|
|
@@ -9,60 +8,64 @@ import "../../../react-resizable-panels.browser-ZHjTH32c.js";
|
|
|
9
8
|
import "../atoms/sidebar.js";
|
|
10
9
|
import "react";
|
|
11
10
|
import "../atoms/table.js";
|
|
12
|
-
import "../../../toolkit-card-
|
|
11
|
+
import "../../../toolkit-card-UG1sZ0Le.js";
|
|
13
12
|
import "./tool-card.js";
|
|
13
|
+
import { getToolkitIcon as z } from "../atoms/icons/utils.js";
|
|
14
14
|
import "../organisms/toolkit-picker/hooks/use-toolkit-picker.js";
|
|
15
|
-
const
|
|
16
|
-
function
|
|
17
|
-
selectedToolkits:
|
|
18
|
-
selectedTools:
|
|
15
|
+
const I = 3;
|
|
16
|
+
function E({
|
|
17
|
+
selectedToolkits: s,
|
|
18
|
+
selectedTools: m,
|
|
19
19
|
onClear: N,
|
|
20
|
-
onSelectAll:
|
|
20
|
+
onSelectAll: o,
|
|
21
21
|
allVisibleSelected: k,
|
|
22
22
|
selectionMode: w
|
|
23
23
|
}) {
|
|
24
|
-
const
|
|
24
|
+
const l = s.size > 0 || m.size > 0, i = Array.from(s.keys()), c = m.size, a = i.length, r = i.slice(0, I), d = Math.max(a - r.length, 0);
|
|
25
25
|
return /* @__PURE__ */ t(
|
|
26
26
|
"div",
|
|
27
27
|
{
|
|
28
28
|
className: "flex items-center gap-3",
|
|
29
29
|
"data-testid": "toolkit-selection-summary",
|
|
30
30
|
children: [
|
|
31
|
-
!
|
|
31
|
+
!l && /* @__PURE__ */ t("div", { className: "flex items-center gap-2 text-neutral-500 text-sm dark:text-neutral-400", children: [
|
|
32
32
|
/* @__PURE__ */ e(u, { className: "h-4 w-4" }),
|
|
33
33
|
/* @__PURE__ */ e("span", { children: "No items selected" })
|
|
34
34
|
] }),
|
|
35
|
-
|
|
35
|
+
l && /* @__PURE__ */ e("div", { className: "flex w-full items-center gap-2 sm:w-auto", children: /* @__PURE__ */ t(p, { children: [
|
|
36
36
|
/* @__PURE__ */ e(g, { asChild: !0, children: /* @__PURE__ */ t("div", { className: "grid min-h-8 w-full grid-cols-1 items-center gap-x-3 gap-y-1 rounded-lg bg-neutral-100 px-2 py-1.5 text-xs sm:min-h-10 sm:w-auto sm:grid-cols-[auto_auto] sm:px-3 sm:py-2 sm:text-sm dark:bg-neutral-800", children: [
|
|
37
37
|
/* @__PURE__ */ t("div", { className: "flex items-center gap-2", children: [
|
|
38
38
|
/* @__PURE__ */ e(u, { className: "h-3.5 w-3.5 text-neutral-600 sm:h-4 sm:w-4 dark:text-neutral-300" }),
|
|
39
39
|
/* @__PURE__ */ t("span", { className: "font-medium text-neutral-900 dark:text-neutral-100", children: [
|
|
40
|
-
|
|
40
|
+
c,
|
|
41
41
|
" tool",
|
|
42
|
-
|
|
42
|
+
c !== 1 ? "s" : "",
|
|
43
43
|
" selected"
|
|
44
44
|
] }),
|
|
45
45
|
/* @__PURE__ */ t("div", { className: "ml-1 flex items-center sm:ml-1.5", children: [
|
|
46
|
-
|
|
47
|
-
const v =
|
|
46
|
+
r.map((n, h) => {
|
|
47
|
+
const v = s.get(n), b = z({
|
|
48
|
+
metadataIcon: v?.metadata?.icon,
|
|
49
|
+
toolkitName: n
|
|
50
|
+
});
|
|
48
51
|
return /* @__PURE__ */ e(
|
|
49
52
|
"div",
|
|
50
53
|
{
|
|
51
54
|
className: `relative ${h > 0 ? "-ml-2" : ""}`,
|
|
52
55
|
style: { zIndex: h + 1 },
|
|
53
|
-
children: /* @__PURE__ */ e("div", { className: "flex h-5 w-5 items-center justify-center rounded-full bg-neutral-200 p-0.5 ring-1 ring-black/15 sm:h-6 sm:w-6 dark:bg-neutral-700 dark:ring-white/15", children: /* @__PURE__ */ e(
|
|
56
|
+
children: /* @__PURE__ */ e("div", { className: "flex h-5 w-5 items-center justify-center rounded-full bg-neutral-200 p-0.5 ring-1 ring-black/15 sm:h-6 sm:w-6 dark:bg-neutral-700 dark:ring-white/15", children: /* @__PURE__ */ e(b, { className: "h-3 w-3 sm:h-3.5 sm:w-3.5" }) })
|
|
54
57
|
},
|
|
55
|
-
`mini-icon-${
|
|
58
|
+
`mini-icon-${n}`
|
|
56
59
|
);
|
|
57
60
|
}),
|
|
58
|
-
|
|
61
|
+
d > 0 && /* @__PURE__ */ t(
|
|
59
62
|
"span",
|
|
60
63
|
{
|
|
61
64
|
className: "-ml-2 inline-flex h-5 w-5 items-center justify-center rounded-full bg-neutral-200 font-medium text-[10px] text-neutral-700 ring-1 ring-black/15 sm:h-6 sm:w-6 dark:bg-neutral-700 dark:text-neutral-200 dark:ring-white/15",
|
|
62
|
-
style: { zIndex:
|
|
65
|
+
style: { zIndex: r.length + 10 },
|
|
63
66
|
children: [
|
|
64
67
|
"+",
|
|
65
|
-
|
|
68
|
+
d
|
|
66
69
|
]
|
|
67
70
|
}
|
|
68
71
|
)
|
|
@@ -70,15 +73,15 @@ function D({
|
|
|
70
73
|
] }),
|
|
71
74
|
/* @__PURE__ */ t("div", { className: "text-neutral-600 text-xs dark:text-neutral-400", children: [
|
|
72
75
|
"from ",
|
|
73
|
-
|
|
76
|
+
a,
|
|
74
77
|
" toolkit",
|
|
75
|
-
|
|
78
|
+
a !== 1 ? "s" : ""
|
|
76
79
|
] })
|
|
77
80
|
] }) }),
|
|
78
|
-
/* @__PURE__ */ e(f, { side: "top", sideOffset: 6, children: /* @__PURE__ */ e("div", { className: "max-w-64 text-wrap text-xs", children:
|
|
81
|
+
/* @__PURE__ */ e(f, { side: "top", sideOffset: 6, children: /* @__PURE__ */ e("div", { className: "max-w-64 text-wrap text-xs", children: i.join(", ") }) })
|
|
79
82
|
] }) }),
|
|
80
83
|
/* @__PURE__ */ t("div", { className: "ml-auto flex items-center gap-2 sm:hidden", children: [
|
|
81
|
-
|
|
84
|
+
l && /* @__PURE__ */ t(
|
|
82
85
|
x,
|
|
83
86
|
{
|
|
84
87
|
className: "h-8 text-red-600 hover:text-red-700",
|
|
@@ -87,22 +90,22 @@ function D({
|
|
|
87
90
|
size: "sm",
|
|
88
91
|
variant: "ghost",
|
|
89
92
|
children: [
|
|
90
|
-
/* @__PURE__ */ e(
|
|
93
|
+
/* @__PURE__ */ e(y, { className: "mr-0.5 h-4 w-4" }),
|
|
91
94
|
"Clear All"
|
|
92
95
|
]
|
|
93
96
|
}
|
|
94
97
|
),
|
|
95
|
-
w !== "single" &&
|
|
98
|
+
w !== "single" && o && !k && /* @__PURE__ */ t(p, { children: [
|
|
96
99
|
/* @__PURE__ */ e(g, { asChild: !0, children: /* @__PURE__ */ e(
|
|
97
100
|
x,
|
|
98
101
|
{
|
|
99
102
|
"aria-label": "Select all visible",
|
|
100
103
|
className: "h-8 w-8",
|
|
101
104
|
"data-testid": "footer-select-all",
|
|
102
|
-
onClick:
|
|
105
|
+
onClick: o,
|
|
103
106
|
size: "sm",
|
|
104
107
|
variant: "ghost",
|
|
105
|
-
children: /* @__PURE__ */ e(
|
|
108
|
+
children: /* @__PURE__ */ e(C, { className: "h-4 w-4" })
|
|
106
109
|
}
|
|
107
110
|
) }),
|
|
108
111
|
/* @__PURE__ */ e(f, { side: "top", sideOffset: 6, children: /* @__PURE__ */ e("div", { className: "text-xs", children: "Select all visible" }) })
|
|
@@ -113,5 +116,5 @@ function D({
|
|
|
113
116
|
);
|
|
114
117
|
}
|
|
115
118
|
export {
|
|
116
|
-
|
|
119
|
+
E as ToolkitSelectionSummary
|
|
117
120
|
};
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { ToolkitSelectionSummary as
|
|
3
|
-
import { useToolkitPicker as
|
|
2
|
+
import { ToolkitSelectionSummary as S } from "../../../molecules/toolkit-selection-summary.js";
|
|
3
|
+
import { useToolkitPicker as T } from "../hooks/use-toolkit-picker.js";
|
|
4
4
|
function A() {
|
|
5
5
|
const {
|
|
6
6
|
state: {
|
|
7
7
|
selectionMode: l,
|
|
8
8
|
selectedToolkits: o,
|
|
9
9
|
selectedTools: t,
|
|
10
|
-
filteredToolkits:
|
|
11
|
-
filteredTools:
|
|
10
|
+
filteredToolkits: i,
|
|
11
|
+
filteredTools: s,
|
|
12
12
|
activeTab: a
|
|
13
13
|
},
|
|
14
14
|
clearSelections: c,
|
|
15
15
|
selectAll: n
|
|
16
|
-
} =
|
|
17
|
-
const u = a === "toolkits" ? Array.from(
|
|
16
|
+
} = T(), m = i.size === o.size && s.size === t.size, f = () => {
|
|
17
|
+
const u = a === "toolkits" ? Array.from(i).flatMap(
|
|
18
18
|
(e) => e.tools.map((d) => d.fully_qualified_name)
|
|
19
|
-
) : Array.from(
|
|
19
|
+
) : Array.from(s).map((e) => e.fully_qualified_name);
|
|
20
20
|
n(u);
|
|
21
21
|
};
|
|
22
22
|
return l !== "multi" ? null : /* @__PURE__ */ r("div", { className: "w-full sm:w-auto", children: /* @__PURE__ */ r(
|
|
23
|
-
|
|
23
|
+
S,
|
|
24
24
|
{
|
|
25
25
|
allVisibleSelected: m,
|
|
26
26
|
onClear: c,
|
|
27
27
|
onSelectAll: f,
|
|
28
|
-
selectedToolkits:
|
|
28
|
+
selectedToolkits: o,
|
|
29
29
|
selectedTools: new Set(t.keys()),
|
|
30
30
|
selectionMode: l
|
|
31
31
|
}
|
|
@@ -8,11 +8,12 @@ import "../../../../../react-resizable-panels.browser-ZHjTH32c.js";
|
|
|
8
8
|
import "../../../atoms/sidebar.js";
|
|
9
9
|
import "react";
|
|
10
10
|
import "../../../atoms/table.js";
|
|
11
|
-
import "../../../../../toolkit-card-
|
|
11
|
+
import "../../../../../toolkit-card-UG1sZ0Le.js";
|
|
12
12
|
import "../../../molecules/tool-card.js";
|
|
13
|
-
import "../../../../../
|
|
13
|
+
import "../../../../../metadata/oauth-providers.js";
|
|
14
|
+
import "../../../../../metadata/toolkits.js";
|
|
14
15
|
import { useToolkitPicker as p } from "../hooks/use-toolkit-picker.js";
|
|
15
|
-
function
|
|
16
|
+
function j() {
|
|
16
17
|
const {
|
|
17
18
|
state: { searchQuery: r },
|
|
18
19
|
setSearchQuery: e
|
|
@@ -32,5 +33,5 @@ function N() {
|
|
|
32
33
|
] });
|
|
33
34
|
}
|
|
34
35
|
export {
|
|
35
|
-
|
|
36
|
+
j as SearchInput
|
|
36
37
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as m } from "react/jsx-runtime";
|
|
2
2
|
import "lucide-react";
|
|
3
|
-
import { Button as
|
|
3
|
+
import { Button as p } from "../../../atoms/button.js";
|
|
4
4
|
import "../../../atoms/mobile-tooltip.js";
|
|
5
5
|
import "../../../atoms/chart.js";
|
|
6
6
|
import "../../../atoms/form.js";
|
|
@@ -8,18 +8,19 @@ import "../../../../../react-resizable-panels.browser-ZHjTH32c.js";
|
|
|
8
8
|
import "../../../atoms/sidebar.js";
|
|
9
9
|
import "react";
|
|
10
10
|
import "../../../atoms/table.js";
|
|
11
|
-
import "../../../../../toolkit-card-
|
|
11
|
+
import "../../../../../toolkit-card-UG1sZ0Le.js";
|
|
12
12
|
import "../../../molecules/tool-card.js";
|
|
13
|
-
import "../../../../../
|
|
13
|
+
import "../../../../../metadata/oauth-providers.js";
|
|
14
|
+
import "../../../../../metadata/toolkits.js";
|
|
14
15
|
import "../hooks/use-toolkit-picker.js";
|
|
15
|
-
function
|
|
16
|
+
function h({
|
|
16
17
|
selectionMode: t,
|
|
17
18
|
selectedCount: o,
|
|
18
19
|
onCommit: r,
|
|
19
20
|
className: i
|
|
20
21
|
}) {
|
|
21
22
|
return /* @__PURE__ */ m(
|
|
22
|
-
|
|
23
|
+
p,
|
|
23
24
|
{
|
|
24
25
|
className: i,
|
|
25
26
|
"data-testid": "use-tools-button",
|
|
@@ -31,5 +32,5 @@ function $({
|
|
|
31
32
|
);
|
|
32
33
|
}
|
|
33
34
|
export {
|
|
34
|
-
|
|
35
|
+
h as SelectButton
|
|
35
36
|
};
|
package/dist/components/ui/organisms/toolkit-picker/components/toolkit-card-with-selection.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ProcessedToolkit } from '../../../../../lib/arcade/arcade';
|
|
2
|
-
export
|
|
2
|
+
export type ToolkitCardWithSelectionProps = {
|
|
3
3
|
toolkit: ProcessedToolkit;
|
|
4
4
|
selectedTools: Set<string>;
|
|
5
5
|
onSelect: (checked: boolean) => void;
|
|
6
6
|
onView: () => void;
|
|
7
7
|
selectionMode: 'single' | 'multi';
|
|
8
|
-
}
|
|
8
|
+
};
|
|
9
9
|
export declare function ToolkitCardWithSelection({ toolkit, selectedTools, onSelect, onView, selectionMode, }: ToolkitCardWithSelectionProps): import("react/jsx-runtime").JSX.Element;
|
package/dist/components/ui/organisms/toolkit-picker/components/toolkit-card-with-selection.js
CHANGED
|
@@ -1,32 +1,35 @@
|
|
|
1
1
|
import { jsx as m } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import { T } from "../../../../../toolkit-card-
|
|
2
|
+
import { getToolkitIcon as c } from "../../../atoms/icons/utils.js";
|
|
3
|
+
import { T as d } from "../../../../../toolkit-card-UG1sZ0Le.js";
|
|
4
4
|
function g({
|
|
5
5
|
toolkit: e,
|
|
6
|
-
selectedTools:
|
|
7
|
-
onSelect:
|
|
8
|
-
onView:
|
|
9
|
-
selectionMode:
|
|
6
|
+
selectedTools: o,
|
|
7
|
+
onSelect: t,
|
|
8
|
+
onView: a,
|
|
9
|
+
selectionMode: n
|
|
10
10
|
}) {
|
|
11
|
-
const
|
|
12
|
-
(
|
|
13
|
-
).length, i =
|
|
11
|
+
const s = e.tools.filter(
|
|
12
|
+
(l) => o.has(l.fully_qualified_name)
|
|
13
|
+
).length, i = s === e.tools.length, r = s > 0 && s < e.tools.length;
|
|
14
14
|
return /* @__PURE__ */ m(
|
|
15
|
-
|
|
15
|
+
d,
|
|
16
16
|
{
|
|
17
17
|
"data-testid": `toolkit-card-${e.name}`,
|
|
18
18
|
description: e.description,
|
|
19
|
-
hideCheckbox:
|
|
20
|
-
Icon: c
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
19
|
+
hideCheckbox: n === "single",
|
|
20
|
+
Icon: c({
|
|
21
|
+
metadataIcon: e.metadata?.icon,
|
|
22
|
+
toolkitName: e.name
|
|
23
|
+
}),
|
|
24
|
+
isByoc: e.metadata?.isBYOC ?? !1,
|
|
25
|
+
isPartiallySelected: r,
|
|
26
|
+
isPro: e.metadata?.isPro ?? !1,
|
|
24
27
|
isSelected: i,
|
|
25
28
|
name: e.name,
|
|
26
|
-
onSelect:
|
|
27
|
-
onView:
|
|
29
|
+
onSelect: t,
|
|
30
|
+
onView: a,
|
|
28
31
|
requirementsSummary: e.requirementsSummary,
|
|
29
|
-
selectedToolsCount:
|
|
32
|
+
selectedToolsCount: s,
|
|
30
33
|
toolsCount: e.tools.length
|
|
31
34
|
}
|
|
32
35
|
);
|