@mastra/playground-ui 69.0.0 → 69.1.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Comment-D_gSx7oM.js → Comment-CEHnV3TI.js} +2 -2
- package/dist/{Comment-D_gSx7oM.js.map → Comment-CEHnV3TI.js.map} +1 -1
- package/dist/{Comment-A07IvOt2.cjs → Comment-D9Rw3sVA.cjs} +2 -2
- package/dist/{Comment-A07IvOt2.cjs.map → Comment-D9Rw3sVA.cjs.map} +1 -1
- package/dist/{DataList-2PEZd6GU.cjs → DataList-D6UDH7qT.cjs} +2 -2
- package/dist/{DataList-2PEZd6GU.cjs.map → DataList-D6UDH7qT.cjs.map} +1 -1
- package/dist/{DataList-DCaKvoCH.js → DataList-DIGkHZWZ.js} +2 -2
- package/dist/{DataList-DCaKvoCH.js.map → DataList-DIGkHZWZ.js.map} +1 -1
- package/dist/{EmptyState-Dc-sP95H.cjs → EmptyState-DDZM8XgE.cjs} +146 -7
- package/dist/EmptyState-DDZM8XgE.cjs.map +1 -0
- package/dist/{EmptyState-i88y1x75.js → EmptyState-sRS41Bzj.js} +146 -7
- package/dist/EmptyState-sRS41Bzj.js.map +1 -0
- package/dist/{FilterBar-PhVKghDp.js → FilterBar-C1L0opT3.js} +10 -6
- package/dist/FilterBar-C1L0opT3.js.map +1 -0
- package/dist/{FilterBar-DY6aXUnv.cjs → FilterBar-CCh4ZYuL.cjs} +10 -6
- package/dist/FilterBar-CCh4ZYuL.cjs.map +1 -0
- package/dist/{LogsDataList-Ca016D5o.js → LogsDataList-DUKQJ9e5.js} +2 -2
- package/dist/{LogsDataList-Ca016D5o.js.map → LogsDataList-DUKQJ9e5.js.map} +1 -1
- package/dist/{LogsDataList-DVXS1HN4.cjs → LogsDataList-Sgcx1aKA.cjs} +2 -2
- package/dist/{LogsDataList-DVXS1HN4.cjs.map → LogsDataList-Sgcx1aKA.cjs.map} +1 -1
- package/dist/Sidebar.css +60 -0
- package/dist/components/Comment.cjs.js +1 -1
- package/dist/components/Comment.es.js +1 -1
- package/dist/components/CopyInput.cjs.js +1 -1
- package/dist/components/CopyInput.es.js +1 -1
- package/dist/components/DataList.cjs.js +3 -3
- package/dist/components/DataList.es.js +3 -3
- package/dist/components/EmptyState.cjs.js +1 -1
- package/dist/components/EmptyState.es.js +1 -1
- package/dist/components/EnvironmentVariablesEditor.cjs.js +2 -2
- package/dist/components/EnvironmentVariablesEditor.es.js +2 -2
- package/dist/components/FileDropBackdrop.cjs.js +1 -1
- package/dist/components/FileDropBackdrop.es.js +1 -1
- package/dist/components/FilterBar.cjs.js +3 -3
- package/dist/components/FilterBar.es.js +3 -3
- package/dist/components/FormFieldBlocks.cjs.js +0 -88
- package/dist/components/FormFieldBlocks.cjs.js.map +1 -1
- package/dist/components/FormFieldBlocks.es.js +1 -88
- package/dist/components/FormFieldBlocks.es.js.map +1 -1
- package/dist/components/InputGroup.cjs.js +1 -1
- package/dist/components/InputGroup.es.js +1 -1
- package/dist/components/InputNumber.cjs.js +1 -1
- package/dist/components/InputNumber.es.js +1 -1
- package/dist/components/LogsDataList.cjs.js +2 -2
- package/dist/components/LogsDataList.es.js +2 -2
- package/dist/components/SavedViews.cjs.js +1 -1
- package/dist/components/SavedViews.es.js +1 -1
- package/dist/components/SearchInput.cjs.js +93 -37
- package/dist/components/SearchInput.cjs.js.map +1 -1
- package/dist/components/SearchInput.es.js +94 -39
- package/dist/components/SearchInput.es.js.map +1 -1
- package/dist/components/Sidebar.cjs.js +121 -76
- package/dist/components/Sidebar.cjs.js.map +1 -1
- package/dist/components/Sidebar.es.js +121 -77
- package/dist/components/Sidebar.es.js.map +1 -1
- package/dist/{data-list-DM8WpKCm.js → data-list-C04BQEv9.js} +2 -2
- package/dist/data-list-C04BQEv9.js.map +1 -0
- package/dist/{data-list-1JOwQrF5.cjs → data-list-Czhl2UBM.cjs} +2 -2
- package/dist/data-list-Czhl2UBM.cjs.map +1 -0
- package/dist/domains/auth/components/permission-denied.cjs.js +1 -1
- package/dist/domains/auth/components/permission-denied.es.js +1 -1
- package/dist/domains/auth/components/session-expired.cjs.js +1 -1
- package/dist/domains/auth/components/session-expired.es.js +1 -1
- package/dist/domains/chat/tools/connect-prompt-tool.cjs.js +1 -1
- package/dist/domains/chat/tools/connect-prompt-tool.es.js +1 -1
- package/dist/domains/dashboards/kinds/kpis/options.cjs.js +9 -6
- package/dist/domains/dashboards/kinds/kpis/options.cjs.js.map +1 -1
- package/dist/domains/dashboards/kinds/kpis/options.es.js +8 -7
- package/dist/domains/dashboards/kinds/kpis/options.es.js.map +1 -1
- package/dist/domains/dashboards/kinds/kpis.cjs.js +2 -0
- package/dist/domains/dashboards/kinds/kpis.cjs.js.map +1 -1
- package/dist/domains/dashboards/kinds/kpis.es.js +2 -2
- package/dist/domains/dashboards/kinds/kpis.es.js.map +1 -1
- package/dist/domains/dashboards/kinds/timeseries.cjs.js +2 -0
- package/dist/domains/dashboards/kinds/timeseries.cjs.js.map +1 -1
- package/dist/domains/dashboards/kinds/timeseries.es.js +2 -2
- package/dist/domains/dashboards/kinds/timeseries.es.js.map +1 -1
- package/dist/domains/dashboards/kinds.cjs.js +12 -0
- package/dist/domains/dashboards/kinds.cjs.js.map +1 -1
- package/dist/domains/dashboards/kinds.es.js +5 -1
- package/dist/domains/dashboards/kinds.es.js.map +1 -1
- package/dist/domains/dashboards.cjs.js +23 -2
- package/dist/domains/dashboards.es.js +8 -3
- package/dist/domains/knowledge/components/KnowledgePageExplorer.cjs.js +1 -1
- package/dist/domains/knowledge/components/KnowledgePageExplorer.es.js +1 -1
- package/dist/domains/logs/components/logs-error-content.cjs.js +1 -1
- package/dist/domains/logs/components/logs-error-content.es.js +1 -1
- package/dist/domains/logs/components/logs-list-view.cjs.js +2 -2
- package/dist/domains/logs/components/logs-list-view.es.js +2 -2
- package/dist/domains/logs/components/no-logs-info.cjs.js +1 -1
- package/dist/domains/logs/components/no-logs-info.es.js +1 -1
- package/dist/domains/mcps/components/mcp-app-viewer.cjs.js +1 -1
- package/dist/domains/mcps/components/mcp-app-viewer.es.js +1 -1
- package/dist/domains/mcps/hooks/use-mcp-app-tool-call.cjs.js +1 -1
- package/dist/domains/mcps/hooks/use-mcp-app-tool-call.es.js +1 -1
- package/dist/domains/memory/components/observation-detail-view.cjs.js +1 -1
- package/dist/domains/memory/components/observation-detail-view.es.js +1 -1
- package/dist/domains/metrics/components/metrics-time-range-chip.cjs.js +1 -1
- package/dist/domains/metrics/components/metrics-time-range-chip.es.js +1 -1
- package/dist/domains/observability/components/observability-capability-gate.cjs.js +1 -1
- package/dist/domains/observability/components/observability-capability-gate.es.js +1 -1
- package/dist/domains/observability/hooks/use-observability-list-filters.cjs.js +15 -2
- package/dist/domains/observability/hooks/use-observability-list-filters.cjs.js.map +1 -1
- package/dist/domains/observability/hooks/use-observability-list-filters.es.js +15 -2
- package/dist/domains/observability/hooks/use-observability-list-filters.es.js.map +1 -1
- package/dist/domains/observability/lib/text-search-filter.cjs.js +24 -0
- package/dist/domains/observability/lib/text-search-filter.cjs.js.map +1 -0
- package/dist/domains/observability/lib/text-search-filter.d.ts +1 -0
- package/dist/domains/observability/lib/text-search-filter.es.js +23 -0
- package/dist/domains/observability/lib/text-search-filter.es.js.map +1 -0
- package/dist/domains/observability/lib/text-search.cjs.js +12 -0
- package/dist/domains/observability/lib/text-search.cjs.js.map +1 -0
- package/dist/domains/observability/lib/text-search.d.ts +1 -0
- package/dist/domains/observability/lib/text-search.es.js +11 -0
- package/dist/domains/observability/lib/text-search.es.js.map +1 -0
- package/dist/domains/observability/saved-view-state.cjs.js +16 -2
- package/dist/domains/observability/saved-view-state.cjs.js.map +1 -1
- package/dist/domains/observability/saved-view-state.es.js +16 -2
- package/dist/domains/observability/saved-view-state.es.js.map +1 -1
- package/dist/domains/scores/components/trace-scores-list.cjs.js +1 -1
- package/dist/domains/scores/components/trace-scores-list.es.js +1 -1
- package/dist/domains/scores/components/trace-scores-tab.cjs.js +2 -2
- package/dist/domains/scores/components/trace-scores-tab.es.js +2 -2
- package/dist/domains/spans/components/spans-explorer-body.cjs.js +15 -4
- package/dist/domains/spans/components/spans-explorer-body.cjs.js.map +1 -1
- package/dist/domains/spans/components/spans-explorer-body.es.js +15 -4
- package/dist/domains/spans/components/spans-explorer-body.es.js.map +1 -1
- package/dist/domains/spans/components/spans-explorer-histogram.cjs.js +2 -2
- package/dist/domains/spans/components/spans-explorer-histogram.cjs.js.map +1 -1
- package/dist/domains/spans/components/spans-explorer-histogram.es.js +2 -2
- package/dist/domains/spans/components/spans-explorer-histogram.es.js.map +1 -1
- package/dist/domains/spans/components/spans-filter-bar.cjs.js +10 -5
- package/dist/domains/spans/components/spans-filter-bar.cjs.js.map +1 -1
- package/dist/domains/spans/components/spans-filter-bar.es.js +10 -5
- package/dist/domains/spans/components/spans-filter-bar.es.js.map +1 -1
- package/dist/domains/spans/hooks/use-spans-filter-bar.cjs.js +37 -17
- package/dist/domains/spans/hooks/use-spans-filter-bar.cjs.js.map +1 -1
- package/dist/domains/spans/hooks/use-spans-filter-bar.es.js +37 -17
- package/dist/domains/spans/hooks/use-spans-filter-bar.es.js.map +1 -1
- package/dist/domains/threads/components/threads-filter-bar.cjs.js +2 -2
- package/dist/domains/threads/components/threads-filter-bar.es.js +2 -2
- package/dist/domains/threads/hooks/use-threads-filter-bar.cjs.js +1 -1
- package/dist/domains/threads/hooks/use-threads-filter-bar.es.js +1 -1
- package/dist/domains/traces/components/feedback-thread.cjs.js +2 -2
- package/dist/domains/traces/components/feedback-thread.es.js +2 -2
- package/dist/domains/traces/components/no-traces-info.cjs.js +1 -1
- package/dist/domains/traces/components/no-traces-info.es.js +1 -1
- package/dist/domains/traces/components/trace-error-cell.cjs.js +1 -1
- package/dist/domains/traces/components/trace-error-cell.es.js +1 -1
- package/dist/domains/traces/components/traces-error-content.cjs.js +1 -1
- package/dist/domains/traces/components/traces-error-content.es.js +1 -1
- package/dist/domains/traces/components/traces-explorer/traces-explorer-actions.cjs.js +1 -0
- package/dist/domains/traces/components/traces-explorer/traces-explorer-actions.cjs.js.map +1 -1
- package/dist/domains/traces/components/traces-explorer/traces-explorer-actions.es.js +1 -0
- package/dist/domains/traces/components/traces-explorer/traces-explorer-actions.es.js.map +1 -1
- package/dist/domains/traces/components/traces-explorer/traces-explorer-context.cjs.js.map +1 -1
- package/dist/domains/traces/components/traces-explorer/traces-explorer-context.es.js.map +1 -1
- package/dist/domains/traces/components/traces-explorer/traces-explorer-filter-bar.cjs.js +2 -2
- package/dist/domains/traces/components/traces-explorer/traces-explorer-filter-bar.es.js +2 -2
- package/dist/domains/traces/components/traces-explorer/traces-explorer-histogram.cjs.js +2 -2
- package/dist/domains/traces/components/traces-explorer/traces-explorer-histogram.cjs.js.map +1 -1
- package/dist/domains/traces/components/traces-explorer/traces-explorer-histogram.es.js +2 -2
- package/dist/domains/traces/components/traces-explorer/traces-explorer-histogram.es.js.map +1 -1
- package/dist/domains/traces/components/traces-explorer/traces-explorer-list-provider.cjs.js +4 -3
- package/dist/domains/traces/components/traces-explorer/traces-explorer-list-provider.cjs.js.map +1 -1
- package/dist/domains/traces/components/traces-explorer/traces-explorer-list-provider.es.js +4 -3
- package/dist/domains/traces/components/traces-explorer/traces-explorer-list-provider.es.js.map +1 -1
- package/dist/domains/traces/components/traces-explorer/traces-explorer-root.cjs.js +31 -8
- package/dist/domains/traces/components/traces-explorer/traces-explorer-root.cjs.js.map +1 -1
- package/dist/domains/traces/components/traces-explorer/traces-explorer-root.es.js +31 -8
- package/dist/domains/traces/components/traces-explorer/traces-explorer-root.es.js.map +1 -1
- package/dist/domains/traces/components/traces-explorer/use-traces-filter-bar.cjs.js +28 -19
- package/dist/domains/traces/components/traces-explorer/use-traces-filter-bar.cjs.js.map +1 -1
- package/dist/domains/traces/components/traces-explorer/use-traces-filter-bar.es.js +28 -19
- package/dist/domains/traces/components/traces-explorer/use-traces-filter-bar.es.js.map +1 -1
- package/dist/domains/traces/components/traces-list-view.cjs.js +2 -2
- package/dist/domains/traces/components/traces-list-view.es.js +2 -2
- package/dist/domains/traces/components/traces-page-skeleton.cjs.js +1 -1
- package/dist/domains/traces/components/traces-page-skeleton.es.js +1 -1
- package/dist/domains/traces/hooks/use-traces-list-source.cjs.js +2 -2
- package/dist/domains/traces/hooks/use-traces-list-source.cjs.js.map +1 -1
- package/dist/domains/traces/hooks/use-traces-list-source.es.js +2 -2
- package/dist/domains/traces/hooks/use-traces-list-source.es.js.map +1 -1
- package/dist/domains/workflows/components/workflows-list/no-workflows-info.cjs.js +1 -1
- package/dist/domains/workflows/components/workflows-list/no-workflows-info.es.js +1 -1
- package/dist/domains/workflows/components/workflows-list/workflows-list.cjs.js +2 -2
- package/dist/domains/workflows/components/workflows-list/workflows-list.es.js +2 -2
- package/dist/domains/workspace/components/workspace-parts.cjs.js +1 -1
- package/dist/domains/workspace/components/workspace-parts.es.js +1 -1
- package/dist/domains/workspace/components/workspace-search.cjs.js +1 -1
- package/dist/domains/workspace/components/workspace-search.es.js +1 -1
- package/dist/ee/signals/components/entity-index-list.cjs.js +1 -1
- package/dist/ee/signals/components/entity-index-list.es.js +1 -1
- package/dist/ee/signals/components/trace-intelligence-entity-detail.cjs.js +1 -1
- package/dist/ee/signals/components/trace-intelligence-entity-detail.es.js +1 -1
- package/dist/ee/signals/components/trace-intelligence-entity-index.cjs.js +8 -7
- package/dist/ee/signals/components/trace-intelligence-entity-index.cjs.js.map +1 -1
- package/dist/ee/signals/components/trace-intelligence-entity-index.es.js +8 -7
- package/dist/ee/signals/components/trace-intelligence-entity-index.es.js.map +1 -1
- package/dist/ee/topics/components/topic-trace-summary-list.cjs.js +1 -1
- package/dist/ee/topics/components/topic-trace-summary-list.es.js +1 -1
- package/dist/{filter-bar-chip-jOPeM21t.js → filter-bar-chip-DBkPWlc-.js} +54 -32
- package/dist/filter-bar-chip-DBkPWlc-.js.map +1 -0
- package/dist/{filter-bar-chip-Bhn7lo4e.cjs → filter-bar-chip-DgdVLscK.cjs} +52 -30
- package/dist/filter-bar-chip-DgdVLscK.cjs.map +1 -0
- package/dist/{filter-bar-time-range-C099qEMm.cjs → filter-bar-time-range-BUmb3A1m.cjs} +2 -2
- package/dist/{filter-bar-time-range-C099qEMm.cjs.map → filter-bar-time-range-BUmb3A1m.cjs.map} +1 -1
- package/dist/{filter-bar-time-range-B1XhplO7.js → filter-bar-time-range-CtK8Dlp-.js} +2 -2
- package/dist/{filter-bar-time-range-B1XhplO7.js.map → filter-bar-time-range-CtK8Dlp-.js.map} +1 -1
- package/dist/icons/AgentIcon.cjs.js +3 -3
- package/dist/icons/AgentIcon.cjs.js.map +1 -1
- package/dist/icons/AgentIcon.es.js +3 -3
- package/dist/icons/AgentIcon.es.js.map +1 -1
- package/dist/icons/McpServerIcon.cjs.js +3 -3
- package/dist/icons/McpServerIcon.cjs.js.map +1 -1
- package/dist/icons/McpServerIcon.es.js +3 -3
- package/dist/icons/McpServerIcon.es.js.map +1 -1
- package/dist/icons/WorkflowIcon.cjs.js +2 -2
- package/dist/icons/WorkflowIcon.cjs.js.map +1 -1
- package/dist/icons/WorkflowIcon.es.js +2 -2
- package/dist/icons/WorkflowIcon.es.js.map +1 -1
- package/dist/{input-group-CCSyY4J5.js → input-group-1OAXTPnG.js} +7 -5
- package/dist/input-group-1OAXTPnG.js.map +1 -0
- package/dist/{input-group-Da8HBo30.cjs → input-group-BrBYp1gP.cjs} +6 -4
- package/dist/input-group-BrBYp1gP.cjs.map +1 -0
- package/dist/layout/tabbed-container.cjs.js +1 -1
- package/dist/layout/tabbed-container.es.js +1 -1
- package/dist/src/domains/dashboards/index.d.ts +2 -0
- package/dist/src/domains/dashboards/kinds/index.d.ts +8 -4
- package/dist/src/domains/dashboards/kinds/kpis/index.d.ts +3 -3
- package/dist/src/domains/dashboards/kinds/kpis/options.d.ts +22 -0
- package/dist/src/domains/dashboards/kinds/timeseries/index.d.ts +6 -4
- package/dist/src/domains/observability/hooks/use-observability-list-filters.d.ts +5 -1
- package/dist/src/domains/observability/lib/text-search-filter.d.ts +3 -0
- package/dist/src/domains/observability/lib/text-search.d.ts +2 -0
- package/dist/src/domains/spans/components/spans-explorer-histogram.d.ts +3 -1
- package/dist/src/domains/spans/components/spans-filter-bar.d.ts +4 -1
- package/dist/src/domains/spans/hooks/use-spans-filter-bar.d.ts +5 -2
- package/dist/src/domains/traces/components/traces-explorer/traces-explorer-actions.d.ts +1 -0
- package/dist/src/domains/traces/components/traces-explorer/traces-explorer-context.d.ts +4 -0
- package/dist/src/ds/components/EmptyState/empty-state-illustration.d.ts +1 -1
- package/dist/src/ds/components/EmptyState/illustrations/no-alerts-art.d.ts +1 -0
- package/dist/src/ds/components/EmptyState/illustrations/no-destinations-art.d.ts +3 -0
- package/dist/src/ds/components/FilterBar/types.d.ts +6 -0
- package/dist/src/ds/components/FilterBar/use-value-step.d.ts +1 -0
- package/dist/src/ds/components/FormFieldBlocks/index.d.ts +0 -1
- package/dist/src/ds/components/InputGroup/input-group.d.ts +1 -1
- package/dist/src/ds/components/SearchInput/index.d.ts +1 -0
- package/dist/src/ds/components/SearchInput/list-search-props.d.ts +6 -0
- package/dist/src/ds/components/SearchInput/search-input.d.ts +26 -3
- package/dist/src/ds/components/Sidebar/footer/sidebar-meter.d.ts +8 -0
- package/dist/src/ds/components/Sidebar/index.d.ts +1 -0
- package/dist/src/ds/components/Sidebar/root/sidebar-provider.d.ts +4 -4
- package/dist/src/ds/components/Sidebar/root/sidebar-widths.d.ts +7 -0
- package/dist/src/ds/layout/tabbed-container/tabbed-container-root.d.ts +5 -2
- package/dist/style.css +111 -41
- package/dist/{tabbed-container-yJX9GClR.js → tabbed-container-CZYkYekf.js} +11 -6
- package/dist/tabbed-container-CZYkYekf.js.map +1 -0
- package/dist/{tabbed-container--5P96PDX.cjs → tabbed-container-DHfamugk.cjs} +11 -6
- package/dist/tabbed-container-DHfamugk.cjs.map +1 -0
- package/dist/{types-BwdKiX24.js → types-CCm0-NSE.js} +2 -2
- package/dist/{types-BwdKiX24.js.map → types-CCm0-NSE.js.map} +1 -1
- package/dist/types-CP7wbYua.cjs.map +1 -1
- package/dist/{types-KjLUPShK.cjs → types-CqdYjhgk.cjs} +2 -2
- package/dist/{types-KjLUPShK.cjs.map → types-CqdYjhgk.cjs.map} +1 -1
- package/dist/types-DiiL5mTO.js.map +1 -1
- package/oxlint/index.js +1 -1
- package/package.json +7 -7
- package/dist/EmptyState-Dc-sP95H.cjs.map +0 -1
- package/dist/EmptyState-i88y1x75.js.map +0 -1
- package/dist/FilterBar-DY6aXUnv.cjs.map +0 -1
- package/dist/FilterBar-PhVKghDp.js.map +0 -1
- package/dist/components/ListSearch.cjs.js +0 -3
- package/dist/components/ListSearch.d.ts +0 -1
- package/dist/components/ListSearch.es.js +0 -1
- package/dist/data-list-1JOwQrF5.cjs.map +0 -1
- package/dist/data-list-DM8WpKCm.js.map +0 -1
- package/dist/filter-bar-chip-Bhn7lo4e.cjs.map +0 -1
- package/dist/filter-bar-chip-jOPeM21t.js.map +0 -1
- package/dist/input-group-CCSyY4J5.js.map +0 -1
- package/dist/input-group-Da8HBo30.cjs.map +0 -1
- package/dist/list-search-DUcIMJTk.js +0 -45
- package/dist/list-search-DUcIMJTk.js.map +0 -1
- package/dist/list-search-yF02rvZt.cjs +0 -50
- package/dist/list-search-yF02rvZt.cjs.map +0 -1
- package/dist/src/ds/components/FormFieldBlocks/fields/search-field-block.d.ts +0 -26
- package/dist/src/ds/components/ListSearch/index.d.ts +0 -1
- package/dist/src/ds/components/ListSearch/list-search.d.ts +0 -21
- package/dist/tabbed-container--5P96PDX.cjs.map +0 -1
- package/dist/tabbed-container-yJX9GClR.js.map +0 -1
|
@@ -7,15 +7,15 @@ let react_jsx_runtime = require("react/jsx-runtime");
|
|
|
7
7
|
var McpServerIcon = (props) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", {
|
|
8
8
|
width: "16",
|
|
9
9
|
height: "16",
|
|
10
|
-
viewBox: "0 0
|
|
10
|
+
viewBox: "0 0 24 24",
|
|
11
11
|
fill: "none",
|
|
12
12
|
xmlns: "http://www.w3.org/2000/svg",
|
|
13
13
|
...props,
|
|
14
14
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
|
|
15
|
-
d: "
|
|
15
|
+
d: "M7.0888 9.9898L12.3684 4.7102C12.714 4.3646 13.2743 4.3646 13.6199 4.7102C13.9654 5.0558 13.9654 5.6161 13.6199 5.9617L8.3403 11.2413C7.3967 12.1849 7.3968 13.7148 8.3404 14.6584C9.284 15.602 10.8138 15.602 11.7574 14.6584L17.037 9.3788C17.3826 9.0333 17.9429 9.0333 18.2885 9.3788C18.6341 9.7244 18.6341 10.2847 18.2885 10.6303L13.0089 15.9099C11.3741 17.5447 8.7237 17.5446 7.0889 15.9099C5.4541 14.2751 5.454 11.6246 7.0888 9.9898Z",
|
|
16
16
|
fill: "currentColor"
|
|
17
17
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
|
|
18
|
-
d: "
|
|
18
|
+
d: "M9.3945 12.3926C9.436 12.3091 9.4916 12.2308 9.5613 12.1611L14.7026 7.0198C15.6462 6.0761 15.6462 4.5461 14.7026 3.6025C13.759 2.6589 12.229 2.659 11.2854 3.6026L3.6465 11.2413C3.3009 11.5868 2.7406 11.5868 2.3951 11.2413C2.0495 10.8957 2.0495 10.3354 2.3951 9.9898L10.034 2.3511C11.6688 0.7164 14.3193 0.7163 15.9541 2.351C16.9047 3.3017 17.3026 4.5958 17.1476 5.834C18.388 5.6764 19.6854 6.0739 20.638 7.0265C22.2728 8.6613 22.2728 11.3119 20.638 12.9467L19.1311 14.4712L14.9903 18.6121C14.2302 19.372 14.2302 20.6043 14.9903 21.3643C15.3358 21.7099 15.3358 22.2702 14.9903 22.6158C14.6447 22.9614 14.0844 22.9614 13.7388 22.6158C12.2876 21.1646 12.2876 18.8118 13.7388 17.3606L17.8796 13.2198L19.3865 11.6952C20.3302 10.7516 20.3302 9.2216 19.3865 8.2779C18.4429 7.3343 16.913 7.3344 15.9693 8.278L10.7872 13.4602C10.4416 13.8058 9.8813 13.8058 9.5357 13.4602C9.2463 13.1709 9.1993 12.731 9.3945 12.3926Z",
|
|
19
19
|
fill: "currentColor"
|
|
20
20
|
})]
|
|
21
21
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"McpServerIcon.cjs.js","names":[],"sources":["../../src/ds/icons/McpServerIcon.tsx"],"sourcesContent":["import React from 'react';\n\nexport const McpServerIcon = (props: React.SVGProps<SVGSVGElement>) => (\n <svg width=\"16\" height=\"16\" viewBox=\"0 0
|
|
1
|
+
{"version":3,"file":"McpServerIcon.cjs.js","names":[],"sources":["../../src/ds/icons/McpServerIcon.tsx"],"sourcesContent":["import React from 'react';\n\nexport const McpServerIcon = (props: React.SVGProps<SVGSVGElement>) => (\n <svg width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" {...props}>\n <path\n d=\"M7.0888 9.9898L12.3684 4.7102C12.714 4.3646 13.2743 4.3646 13.6199 4.7102C13.9654 5.0558 13.9654 5.6161 13.6199 5.9617L8.3403 11.2413C7.3967 12.1849 7.3968 13.7148 8.3404 14.6584C9.284 15.602 10.8138 15.602 11.7574 14.6584L17.037 9.3788C17.3826 9.0333 17.9429 9.0333 18.2885 9.3788C18.6341 9.7244 18.6341 10.2847 18.2885 10.6303L13.0089 15.9099C11.3741 17.5447 8.7237 17.5446 7.0889 15.9099C5.4541 14.2751 5.454 11.6246 7.0888 9.9898Z\"\n fill=\"currentColor\"\n />\n <path\n d=\"M9.3945 12.3926C9.436 12.3091 9.4916 12.2308 9.5613 12.1611L14.7026 7.0198C15.6462 6.0761 15.6462 4.5461 14.7026 3.6025C13.759 2.6589 12.229 2.659 11.2854 3.6026L3.6465 11.2413C3.3009 11.5868 2.7406 11.5868 2.3951 11.2413C2.0495 10.8957 2.0495 10.3354 2.3951 9.9898L10.034 2.3511C11.6688 0.7164 14.3193 0.7163 15.9541 2.351C16.9047 3.3017 17.3026 4.5958 17.1476 5.834C18.388 5.6764 19.6854 6.0739 20.638 7.0265C22.2728 8.6613 22.2728 11.3119 20.638 12.9467L19.1311 14.4712L14.9903 18.6121C14.2302 19.372 14.2302 20.6043 14.9903 21.3643C15.3358 21.7099 15.3358 22.2702 14.9903 22.6158C14.6447 22.9614 14.0844 22.9614 13.7388 22.6158C12.2876 21.1646 12.2876 18.8118 13.7388 17.3606L17.8796 13.2198L19.3865 11.6952C20.3302 10.7516 20.3302 9.2216 19.3865 8.2779C18.4429 7.3343 16.913 7.3344 15.9693 8.278L10.7872 13.4602C10.4416 13.8058 9.8813 13.8058 9.5357 13.4602C9.2463 13.1709 9.1993 12.731 9.3945 12.3926Z\"\n fill=\"currentColor\"\n />\n </svg>\n);\n"],"mappings":";;;;;;AAEA,IAAa,iBAAiB,UAC5B,iBAAA,GAAA,kBAAA,KAAA,CAAC,OAAD;CAAK,OAAM;CAAK,QAAO;CAAK,SAAQ;CAAY,MAAK;CAAO,OAAM;CAA6B,GAAI;CAAnG,UAAA,CACE,iBAAA,GAAA,kBAAA,IAAA,CAAC,QAAD;EACE,GAAE;EACF,MAAK;CACN,CAAA,GACD,iBAAA,GAAA,kBAAA,IAAA,CAAC,QAAD;EACE,GAAE;EACF,MAAK;CACN,CAAA,CACE"}
|
|
@@ -4,15 +4,15 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
4
4
|
var McpServerIcon = (props) => /* @__PURE__ */ jsxs("svg", {
|
|
5
5
|
width: "16",
|
|
6
6
|
height: "16",
|
|
7
|
-
viewBox: "0 0
|
|
7
|
+
viewBox: "0 0 24 24",
|
|
8
8
|
fill: "none",
|
|
9
9
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10
10
|
...props,
|
|
11
11
|
children: [/* @__PURE__ */ jsx("path", {
|
|
12
|
-
d: "
|
|
12
|
+
d: "M7.0888 9.9898L12.3684 4.7102C12.714 4.3646 13.2743 4.3646 13.6199 4.7102C13.9654 5.0558 13.9654 5.6161 13.6199 5.9617L8.3403 11.2413C7.3967 12.1849 7.3968 13.7148 8.3404 14.6584C9.284 15.602 10.8138 15.602 11.7574 14.6584L17.037 9.3788C17.3826 9.0333 17.9429 9.0333 18.2885 9.3788C18.6341 9.7244 18.6341 10.2847 18.2885 10.6303L13.0089 15.9099C11.3741 17.5447 8.7237 17.5446 7.0889 15.9099C5.4541 14.2751 5.454 11.6246 7.0888 9.9898Z",
|
|
13
13
|
fill: "currentColor"
|
|
14
14
|
}), /* @__PURE__ */ jsx("path", {
|
|
15
|
-
d: "
|
|
15
|
+
d: "M9.3945 12.3926C9.436 12.3091 9.4916 12.2308 9.5613 12.1611L14.7026 7.0198C15.6462 6.0761 15.6462 4.5461 14.7026 3.6025C13.759 2.6589 12.229 2.659 11.2854 3.6026L3.6465 11.2413C3.3009 11.5868 2.7406 11.5868 2.3951 11.2413C2.0495 10.8957 2.0495 10.3354 2.3951 9.9898L10.034 2.3511C11.6688 0.7164 14.3193 0.7163 15.9541 2.351C16.9047 3.3017 17.3026 4.5958 17.1476 5.834C18.388 5.6764 19.6854 6.0739 20.638 7.0265C22.2728 8.6613 22.2728 11.3119 20.638 12.9467L19.1311 14.4712L14.9903 18.6121C14.2302 19.372 14.2302 20.6043 14.9903 21.3643C15.3358 21.7099 15.3358 22.2702 14.9903 22.6158C14.6447 22.9614 14.0844 22.9614 13.7388 22.6158C12.2876 21.1646 12.2876 18.8118 13.7388 17.3606L17.8796 13.2198L19.3865 11.6952C20.3302 10.7516 20.3302 9.2216 19.3865 8.2779C18.4429 7.3343 16.913 7.3344 15.9693 8.278L10.7872 13.4602C10.4416 13.8058 9.8813 13.8058 9.5357 13.4602C9.2463 13.1709 9.1993 12.731 9.3945 12.3926Z",
|
|
16
16
|
fill: "currentColor"
|
|
17
17
|
})]
|
|
18
18
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"McpServerIcon.es.js","names":[],"sources":["../../src/ds/icons/McpServerIcon.tsx"],"sourcesContent":["import React from 'react';\n\nexport const McpServerIcon = (props: React.SVGProps<SVGSVGElement>) => (\n <svg width=\"16\" height=\"16\" viewBox=\"0 0
|
|
1
|
+
{"version":3,"file":"McpServerIcon.es.js","names":[],"sources":["../../src/ds/icons/McpServerIcon.tsx"],"sourcesContent":["import React from 'react';\n\nexport const McpServerIcon = (props: React.SVGProps<SVGSVGElement>) => (\n <svg width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" {...props}>\n <path\n d=\"M7.0888 9.9898L12.3684 4.7102C12.714 4.3646 13.2743 4.3646 13.6199 4.7102C13.9654 5.0558 13.9654 5.6161 13.6199 5.9617L8.3403 11.2413C7.3967 12.1849 7.3968 13.7148 8.3404 14.6584C9.284 15.602 10.8138 15.602 11.7574 14.6584L17.037 9.3788C17.3826 9.0333 17.9429 9.0333 18.2885 9.3788C18.6341 9.7244 18.6341 10.2847 18.2885 10.6303L13.0089 15.9099C11.3741 17.5447 8.7237 17.5446 7.0889 15.9099C5.4541 14.2751 5.454 11.6246 7.0888 9.9898Z\"\n fill=\"currentColor\"\n />\n <path\n d=\"M9.3945 12.3926C9.436 12.3091 9.4916 12.2308 9.5613 12.1611L14.7026 7.0198C15.6462 6.0761 15.6462 4.5461 14.7026 3.6025C13.759 2.6589 12.229 2.659 11.2854 3.6026L3.6465 11.2413C3.3009 11.5868 2.7406 11.5868 2.3951 11.2413C2.0495 10.8957 2.0495 10.3354 2.3951 9.9898L10.034 2.3511C11.6688 0.7164 14.3193 0.7163 15.9541 2.351C16.9047 3.3017 17.3026 4.5958 17.1476 5.834C18.388 5.6764 19.6854 6.0739 20.638 7.0265C22.2728 8.6613 22.2728 11.3119 20.638 12.9467L19.1311 14.4712L14.9903 18.6121C14.2302 19.372 14.2302 20.6043 14.9903 21.3643C15.3358 21.7099 15.3358 22.2702 14.9903 22.6158C14.6447 22.9614 14.0844 22.9614 13.7388 22.6158C12.2876 21.1646 12.2876 18.8118 13.7388 17.3606L17.8796 13.2198L19.3865 11.6952C20.3302 10.7516 20.3302 9.2216 19.3865 8.2779C18.4429 7.3343 16.913 7.3344 15.9693 8.278L10.7872 13.4602C10.4416 13.8058 9.8813 13.8058 9.5357 13.4602C9.2463 13.1709 9.1993 12.731 9.3945 12.3926Z\"\n fill=\"currentColor\"\n />\n </svg>\n);\n"],"mappings":";;;AAEA,IAAa,iBAAiB,UAC5B,qBAAC,OAAD;CAAK,OAAM;CAAK,QAAO;CAAK,SAAQ;CAAY,MAAK;CAAO,OAAM;CAA6B,GAAI;CAAnG,UAAA,CACE,oBAAC,QAAD;EACE,GAAE;EACF,MAAK;CACN,CAAA,GACD,oBAAC,QAAD;EACE,GAAE;EACF,MAAK;CACN,CAAA,CACE"}
|
|
@@ -7,12 +7,12 @@ let react_jsx_runtime = require("react/jsx-runtime");
|
|
|
7
7
|
var WorkflowIcon = (props) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("svg", {
|
|
8
8
|
width: "16",
|
|
9
9
|
height: "16",
|
|
10
|
-
viewBox: "0 0
|
|
10
|
+
viewBox: "0 0 24 24",
|
|
11
11
|
fill: "none",
|
|
12
12
|
xmlns: "http://www.w3.org/2000/svg",
|
|
13
13
|
...props,
|
|
14
14
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
|
|
15
|
-
d: "
|
|
15
|
+
d: "M5.8648 13.2539C6.3268 13.2539 6.7014 13.6288 6.7016 14.0906C6.7016 14.5526 6.3269 14.9273 5.8648 14.9273C4.1715 14.9277 2.799 16.3004 2.7984 17.9937C2.7984 19.6875 4.1712 21.0621 5.8648 21.0625C7.5589 21.0625 8.9336 19.6878 8.9336 17.9937C8.9341 17.5322 9.3086 17.157 9.7703 17.157C10.2316 17.1576 10.6065 17.5325 10.607 17.9937C10.607 20.6118 8.4829 22.7359 5.8648 22.7359C3.2471 22.7356 1.125 20.6115 1.125 17.9937C1.1255 15.3764 3.2475 13.2543 5.8648 13.2539ZM18.1352 13.2539C20.7525 13.2543 22.8745 15.3764 22.875 17.9937C22.875 20.6116 20.7529 22.7356 18.1352 22.7359C15.5173 22.7357 13.393 20.6116 13.393 17.9937C13.3935 17.5327 13.7686 17.1577 14.2297 17.157C14.6914 17.157 15.0659 17.5322 15.0664 17.9937C15.0664 19.6876 16.4413 21.0623 18.1352 21.0625C19.8289 21.0621 21.2016 19.6876 21.2016 17.9937C21.201 16.3004 19.8285 14.9277 18.1352 14.9273C17.6733 14.9271 17.2984 14.5525 17.2984 14.0906C17.2986 13.6289 17.6734 13.2541 18.1352 13.2539ZM12 1.2641C14.1558 1.2641 15.9028 3.0115 15.9031 5.1672C15.9031 6.7199 14.9968 8.0596 13.6842 8.6881C13.2114 8.9145 12.8367 9.3529 12.8367 9.8772V11.0507C12.8367 11.3465 12.9542 11.6302 13.1634 11.8394L17.4011 16.0771C17.5908 16.2667 17.8669 16.3226 18.1352 16.3226C19.0587 16.3228 19.8081 17.0703 19.8086 17.9937C19.8086 18.9177 19.059 19.667 18.1352 19.6672C17.2111 19.6672 16.4617 18.9178 16.4617 17.9937C16.4619 17.7256 16.4058 17.4493 16.2162 17.2597L12.7866 13.8301C12.3509 13.3945 11.6445 13.3945 11.209 13.8303L7.7817 17.2594C7.5919 17.4492 7.5381 17.7254 7.5383 17.9937C7.5383 18.9178 6.7889 19.6672 5.8648 19.6672C4.9412 19.6668 4.1914 18.9175 4.1914 17.9937C4.1919 17.0704 4.9415 16.323 5.8648 16.3226C6.1329 16.3226 6.4092 16.2645 6.5987 16.0751L10.8364 11.8394C11.0457 11.6302 11.1633 11.3464 11.1633 11.0505V9.8771C11.1633 9.3528 10.7887 8.9144 10.3159 8.688C9.0033 8.0595 8.0969 6.7198 8.0969 5.1672C8.0972 3.0116 9.8443 1.2642 12 1.2641Z",
|
|
16
16
|
fill: "currentColor"
|
|
17
17
|
})
|
|
18
18
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WorkflowIcon.cjs.js","names":[],"sources":["../../src/ds/icons/WorkflowIcon.tsx"],"sourcesContent":["import React from 'react';\n\nexport const WorkflowIcon = (props: React.SVGProps<SVGSVGElement>) => (\n <svg width=\"16\" height=\"16\" viewBox=\"0 0
|
|
1
|
+
{"version":3,"file":"WorkflowIcon.cjs.js","names":[],"sources":["../../src/ds/icons/WorkflowIcon.tsx"],"sourcesContent":["import React from 'react';\n\nexport const WorkflowIcon = (props: React.SVGProps<SVGSVGElement>) => (\n <svg width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" {...props}>\n <path\n d=\"M5.8648 13.2539C6.3268 13.2539 6.7014 13.6288 6.7016 14.0906C6.7016 14.5526 6.3269 14.9273 5.8648 14.9273C4.1715 14.9277 2.799 16.3004 2.7984 17.9937C2.7984 19.6875 4.1712 21.0621 5.8648 21.0625C7.5589 21.0625 8.9336 19.6878 8.9336 17.9937C8.9341 17.5322 9.3086 17.157 9.7703 17.157C10.2316 17.1576 10.6065 17.5325 10.607 17.9937C10.607 20.6118 8.4829 22.7359 5.8648 22.7359C3.2471 22.7356 1.125 20.6115 1.125 17.9937C1.1255 15.3764 3.2475 13.2543 5.8648 13.2539ZM18.1352 13.2539C20.7525 13.2543 22.8745 15.3764 22.875 17.9937C22.875 20.6116 20.7529 22.7356 18.1352 22.7359C15.5173 22.7357 13.393 20.6116 13.393 17.9937C13.3935 17.5327 13.7686 17.1577 14.2297 17.157C14.6914 17.157 15.0659 17.5322 15.0664 17.9937C15.0664 19.6876 16.4413 21.0623 18.1352 21.0625C19.8289 21.0621 21.2016 19.6876 21.2016 17.9937C21.201 16.3004 19.8285 14.9277 18.1352 14.9273C17.6733 14.9271 17.2984 14.5525 17.2984 14.0906C17.2986 13.6289 17.6734 13.2541 18.1352 13.2539ZM12 1.2641C14.1558 1.2641 15.9028 3.0115 15.9031 5.1672C15.9031 6.7199 14.9968 8.0596 13.6842 8.6881C13.2114 8.9145 12.8367 9.3529 12.8367 9.8772V11.0507C12.8367 11.3465 12.9542 11.6302 13.1634 11.8394L17.4011 16.0771C17.5908 16.2667 17.8669 16.3226 18.1352 16.3226C19.0587 16.3228 19.8081 17.0703 19.8086 17.9937C19.8086 18.9177 19.059 19.667 18.1352 19.6672C17.2111 19.6672 16.4617 18.9178 16.4617 17.9937C16.4619 17.7256 16.4058 17.4493 16.2162 17.2597L12.7866 13.8301C12.3509 13.3945 11.6445 13.3945 11.209 13.8303L7.7817 17.2594C7.5919 17.4492 7.5381 17.7254 7.5383 17.9937C7.5383 18.9178 6.7889 19.6672 5.8648 19.6672C4.9412 19.6668 4.1914 18.9175 4.1914 17.9937C4.1919 17.0704 4.9415 16.323 5.8648 16.3226C6.1329 16.3226 6.4092 16.2645 6.5987 16.0751L10.8364 11.8394C11.0457 11.6302 11.1633 11.3464 11.1633 11.0505V9.8771C11.1633 9.3528 10.7887 8.9144 10.3159 8.688C9.0033 8.0595 8.0969 6.7198 8.0969 5.1672C8.0972 3.0116 9.8443 1.2642 12 1.2641Z\"\n fill=\"currentColor\"\n />\n </svg>\n);\n"],"mappings":";;;;;;AAEA,IAAa,gBAAgB,UAC3B,iBAAA,GAAA,kBAAA,IAAA,CAAC,OAAD;CAAK,OAAM;CAAK,QAAO;CAAK,SAAQ;CAAY,MAAK;CAAO,OAAM;CAA6B,GAAI;CACjG,UAAA,iBAAA,GAAA,kBAAA,IAAA,CAAC,QAAD;EACE,GAAE;EACF,MAAK;CACN,CAAA;AACE,CAAA"}
|
|
@@ -4,12 +4,12 @@ import { jsx } from "react/jsx-runtime";
|
|
|
4
4
|
var WorkflowIcon = (props) => /* @__PURE__ */ jsx("svg", {
|
|
5
5
|
width: "16",
|
|
6
6
|
height: "16",
|
|
7
|
-
viewBox: "0 0
|
|
7
|
+
viewBox: "0 0 24 24",
|
|
8
8
|
fill: "none",
|
|
9
9
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10
10
|
...props,
|
|
11
11
|
children: /* @__PURE__ */ jsx("path", {
|
|
12
|
-
d: "
|
|
12
|
+
d: "M5.8648 13.2539C6.3268 13.2539 6.7014 13.6288 6.7016 14.0906C6.7016 14.5526 6.3269 14.9273 5.8648 14.9273C4.1715 14.9277 2.799 16.3004 2.7984 17.9937C2.7984 19.6875 4.1712 21.0621 5.8648 21.0625C7.5589 21.0625 8.9336 19.6878 8.9336 17.9937C8.9341 17.5322 9.3086 17.157 9.7703 17.157C10.2316 17.1576 10.6065 17.5325 10.607 17.9937C10.607 20.6118 8.4829 22.7359 5.8648 22.7359C3.2471 22.7356 1.125 20.6115 1.125 17.9937C1.1255 15.3764 3.2475 13.2543 5.8648 13.2539ZM18.1352 13.2539C20.7525 13.2543 22.8745 15.3764 22.875 17.9937C22.875 20.6116 20.7529 22.7356 18.1352 22.7359C15.5173 22.7357 13.393 20.6116 13.393 17.9937C13.3935 17.5327 13.7686 17.1577 14.2297 17.157C14.6914 17.157 15.0659 17.5322 15.0664 17.9937C15.0664 19.6876 16.4413 21.0623 18.1352 21.0625C19.8289 21.0621 21.2016 19.6876 21.2016 17.9937C21.201 16.3004 19.8285 14.9277 18.1352 14.9273C17.6733 14.9271 17.2984 14.5525 17.2984 14.0906C17.2986 13.6289 17.6734 13.2541 18.1352 13.2539ZM12 1.2641C14.1558 1.2641 15.9028 3.0115 15.9031 5.1672C15.9031 6.7199 14.9968 8.0596 13.6842 8.6881C13.2114 8.9145 12.8367 9.3529 12.8367 9.8772V11.0507C12.8367 11.3465 12.9542 11.6302 13.1634 11.8394L17.4011 16.0771C17.5908 16.2667 17.8669 16.3226 18.1352 16.3226C19.0587 16.3228 19.8081 17.0703 19.8086 17.9937C19.8086 18.9177 19.059 19.667 18.1352 19.6672C17.2111 19.6672 16.4617 18.9178 16.4617 17.9937C16.4619 17.7256 16.4058 17.4493 16.2162 17.2597L12.7866 13.8301C12.3509 13.3945 11.6445 13.3945 11.209 13.8303L7.7817 17.2594C7.5919 17.4492 7.5381 17.7254 7.5383 17.9937C7.5383 18.9178 6.7889 19.6672 5.8648 19.6672C4.9412 19.6668 4.1914 18.9175 4.1914 17.9937C4.1919 17.0704 4.9415 16.323 5.8648 16.3226C6.1329 16.3226 6.4092 16.2645 6.5987 16.0751L10.8364 11.8394C11.0457 11.6302 11.1633 11.3464 11.1633 11.0505V9.8771C11.1633 9.3528 10.7887 8.9144 10.3159 8.688C9.0033 8.0595 8.0969 6.7198 8.0969 5.1672C8.0972 3.0116 9.8443 1.2642 12 1.2641Z",
|
|
13
13
|
fill: "currentColor"
|
|
14
14
|
})
|
|
15
15
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WorkflowIcon.es.js","names":[],"sources":["../../src/ds/icons/WorkflowIcon.tsx"],"sourcesContent":["import React from 'react';\n\nexport const WorkflowIcon = (props: React.SVGProps<SVGSVGElement>) => (\n <svg width=\"16\" height=\"16\" viewBox=\"0 0
|
|
1
|
+
{"version":3,"file":"WorkflowIcon.es.js","names":[],"sources":["../../src/ds/icons/WorkflowIcon.tsx"],"sourcesContent":["import React from 'react';\n\nexport const WorkflowIcon = (props: React.SVGProps<SVGSVGElement>) => (\n <svg width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" {...props}>\n <path\n d=\"M5.8648 13.2539C6.3268 13.2539 6.7014 13.6288 6.7016 14.0906C6.7016 14.5526 6.3269 14.9273 5.8648 14.9273C4.1715 14.9277 2.799 16.3004 2.7984 17.9937C2.7984 19.6875 4.1712 21.0621 5.8648 21.0625C7.5589 21.0625 8.9336 19.6878 8.9336 17.9937C8.9341 17.5322 9.3086 17.157 9.7703 17.157C10.2316 17.1576 10.6065 17.5325 10.607 17.9937C10.607 20.6118 8.4829 22.7359 5.8648 22.7359C3.2471 22.7356 1.125 20.6115 1.125 17.9937C1.1255 15.3764 3.2475 13.2543 5.8648 13.2539ZM18.1352 13.2539C20.7525 13.2543 22.8745 15.3764 22.875 17.9937C22.875 20.6116 20.7529 22.7356 18.1352 22.7359C15.5173 22.7357 13.393 20.6116 13.393 17.9937C13.3935 17.5327 13.7686 17.1577 14.2297 17.157C14.6914 17.157 15.0659 17.5322 15.0664 17.9937C15.0664 19.6876 16.4413 21.0623 18.1352 21.0625C19.8289 21.0621 21.2016 19.6876 21.2016 17.9937C21.201 16.3004 19.8285 14.9277 18.1352 14.9273C17.6733 14.9271 17.2984 14.5525 17.2984 14.0906C17.2986 13.6289 17.6734 13.2541 18.1352 13.2539ZM12 1.2641C14.1558 1.2641 15.9028 3.0115 15.9031 5.1672C15.9031 6.7199 14.9968 8.0596 13.6842 8.6881C13.2114 8.9145 12.8367 9.3529 12.8367 9.8772V11.0507C12.8367 11.3465 12.9542 11.6302 13.1634 11.8394L17.4011 16.0771C17.5908 16.2667 17.8669 16.3226 18.1352 16.3226C19.0587 16.3228 19.8081 17.0703 19.8086 17.9937C19.8086 18.9177 19.059 19.667 18.1352 19.6672C17.2111 19.6672 16.4617 18.9178 16.4617 17.9937C16.4619 17.7256 16.4058 17.4493 16.2162 17.2597L12.7866 13.8301C12.3509 13.3945 11.6445 13.3945 11.209 13.8303L7.7817 17.2594C7.5919 17.4492 7.5381 17.7254 7.5383 17.9937C7.5383 18.9178 6.7889 19.6672 5.8648 19.6672C4.9412 19.6668 4.1914 18.9175 4.1914 17.9937C4.1919 17.0704 4.9415 16.323 5.8648 16.3226C6.1329 16.3226 6.4092 16.2645 6.5987 16.0751L10.8364 11.8394C11.0457 11.6302 11.1633 11.3464 11.1633 11.0505V9.8771C11.1633 9.3528 10.7887 8.9144 10.3159 8.688C9.0033 8.0595 8.0969 6.7198 8.0969 5.1672C8.0972 3.0116 9.8443 1.2642 12 1.2641Z\"\n fill=\"currentColor\"\n />\n </svg>\n);\n"],"mappings":";;;AAEA,IAAa,gBAAgB,UAC3B,oBAAC,OAAD;CAAK,OAAM;CAAK,QAAO;CAAK,SAAQ;CAAY,MAAK;CAAO,OAAM;CAA6B,GAAI;CACjG,UAAA,oBAAC,QAAD;EACE,GAAE;EACF,MAAK;CACN,CAAA;AACE,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as cva } from "./dist-BhWtUEhi.js";
|
|
2
|
-
import { t as Button } from "./Button-Bi7aXd_G.js";
|
|
2
|
+
import { s as isIconButtonSize, t as Button } from "./Button-Bi7aXd_G.js";
|
|
3
3
|
import { n as keepOwnAccessibleName } from "./field-control-aria-BaRSUUMR.js";
|
|
4
4
|
import { controlIconState } from "./primitives/control-icon.es.js";
|
|
5
5
|
import { ControlSizeContext, controlHeight, controlSpacing } from "./primitives/control-size.es.js";
|
|
@@ -33,8 +33,8 @@ var inputGroupAddonVariants = cva(cn("flex items-center justify-center gap-2 tex
|
|
|
33
33
|
flush: ""
|
|
34
34
|
},
|
|
35
35
|
align: {
|
|
36
|
-
"inline-start": "order-first pr-
|
|
37
|
-
"inline-end": "order-last pr-
|
|
36
|
+
"inline-start": "order-first pr-(--control-gap) pl-[calc(var(--control-px)-2px)] has-[>button]:pl-[3px]",
|
|
37
|
+
"inline-end": "order-last pr-[calc(var(--control-px)-2px)] pl-(--control-gap) has-[>button]:pr-[3px]",
|
|
38
38
|
"block-start": "order-first w-full justify-start border-b border-border px-3 pt-2 pb-1",
|
|
39
39
|
"block-end": "order-last w-full justify-start border-t border-border px-3 pt-1 pb-2"
|
|
40
40
|
}
|
|
@@ -107,14 +107,16 @@ function InputGroupText({ className, ...props }) {
|
|
|
107
107
|
...props
|
|
108
108
|
});
|
|
109
109
|
}
|
|
110
|
-
|
|
110
|
+
var inputGroupIconButtonBySize = cn("group-data-[size=sm]/input-group:size-[calc(var(--spacing-control-sm)-8px)]", "group-data-[size=md]/input-group:size-[calc(var(--spacing-control-md)-8px)]", "group-data-[size=lg]/input-group:size-[calc(var(--spacing-control-lg)-8px)]");
|
|
111
|
+
function InputGroupButton({ size = "icon-sm", variant = "ghost", type = "button", className, ...props }) {
|
|
111
112
|
return /* @__PURE__ */ jsx(Button, {
|
|
112
113
|
type,
|
|
113
114
|
size,
|
|
114
115
|
variant,
|
|
116
|
+
className: cn(isIconButtonSize(size) && inputGroupIconButtonBySize, className),
|
|
115
117
|
...props
|
|
116
118
|
});
|
|
117
119
|
}
|
|
118
120
|
export { InputGroupText as a, inputGroupControlClassName as c, InputGroupInput as i, InputGroupAddon as n, InputGroupTextarea as o, InputGroupButton as r, inputGroupClassName as s, InputGroup as t };
|
|
119
121
|
|
|
120
|
-
//# sourceMappingURL=input-group-
|
|
122
|
+
//# sourceMappingURL=input-group-1OAXTPnG.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"input-group-1OAXTPnG.js","names":["React","InputPrimitive"],"sources":["../src/ds/components/InputGroup/input-group.tsx"],"sourcesContent":["import { Input as InputPrimitive } from '@base-ui/react/input';\nimport { cva } from 'class-variance-authority';\nimport type { VariantProps } from 'class-variance-authority';\nimport * as React from 'react';\n\nimport { Button } from '@/ds/components/Button';\nimport { isIconButtonSize } from '@/ds/components/Button/Button';\nimport type { ButtonProps } from '@/ds/components/Button/Button';\nimport { keepOwnAccessibleName } from '@/ds/components/Field/field-control-aria';\nimport { controlIconState } from '@/ds/primitives/control-icon';\nimport { ControlSizeContext, controlHeight, controlSpacing } from '@/ds/primitives/control-size';\nimport type { ControlSize } from '@/ds/primitives/control-size';\nimport {\n deprecatedErrorAria,\n fieldErrorRimWithin,\n inputSurfaceAndFocusWithinStyle,\n} from '@/ds/primitives/form-element';\nimport { textFieldAutofillProps } from '@/ds/primitives/password-manager-autofill';\nimport { TextareaControl } from '@/ds/primitives/textarea-control';\nimport { cn } from '@/lib/utils';\n\n// Size flows down as `data-size` on the named group root (`group/input-group`), read by the\n// control through `group-data-[size=…]` variants — no prop drilling. The one context read is\n// upward: a wrapper that owns the rung (ButtonsGroup) hands it to the field.\n\nconst inputGroupBaseClassName = cn(\n // `flex-1` (not `min-w-0`) lets the root fill a flex row while keeping its content-floor\n // so it never collapses to 0. `items-center` centres the control: it carries its own\n // h-form-* (2px taller than the root's content box), so stretch would push its text low\n // / overflow the bottom border, while centring overlaps the (transparent) borders cleanly.\n 'group/input-group relative flex w-full flex-1 items-center',\n // The wrapper owns its control's width — a bare control has no width of its own,\n // so the group is the one that decides the input fills the remaining space.\n '[&>[data-slot=input-group-control]]:min-w-0 [&>[data-slot=input-group-control]]:flex-1',\n 'text-foreground',\n 'has-[:disabled]:cursor-not-allowed has-[:disabled]:text-muted-foreground',\n // Height is on the root (border-box) so the group matches a same-size sibling control.\n // Auto height when vertical (block-* addon) or wrapping a textarea.\n 'has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col',\n 'has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col',\n 'has-[textarea]:h-auto',\n 'has-[>[data-align=inline-start]]:[&>[data-slot=input-group-control]]:pl-0',\n 'has-[>[data-align=inline-end]]:[&>[data-slot=input-group-control]]:pr-0',\n // In flex-col, flex-1 zeroes the control's height; force flex-none + w-full instead.\n 'has-[>[data-align=block-start]]:[&>[data-slot=input-group-control]]:w-full has-[>[data-align=block-start]]:[&>[data-slot=input-group-control]]:flex-none',\n 'has-[>[data-align=block-end]]:[&>[data-slot=input-group-control]]:w-full has-[>[data-align=block-end]]:[&>[data-slot=input-group-control]]:flex-none',\n);\n\nconst inputGroupRoundedTextareaClassName = cn(\n // Pill (rounded-full) only fits single-line inline shapes. Fall back to rounded-xl\n // whenever the group goes vertical (block-* addon) or wraps a textarea.\n 'has-[>[data-align=block-start]]:rounded-xl',\n 'has-[>[data-align=block-end]]:rounded-xl',\n 'has-[textarea]:rounded-xl',\n);\n\n// A group wears the field material — the same `bg-card` plus rim an Input wears — so a\n// group and a bare field beside it are one surface. Its states move the rim, and they\n// read the nested control's focus (`focus-within`) because the wrapper never takes focus\n// itself. There is no second look: a transparent `outline` group existed alongside this\n// one and only ever produced two boundary languages for the same control, which is why\n// four of its call sites had wrapped it in a hand-made `bg-card rounded-full` div to get\n// the material back.\n// eslint-disable-next-line react-refresh/only-export-components -- shared with InputNumber\nexport const inputGroupClassName = cn(\n inputGroupBaseClassName,\n 'rounded-full',\n inputSurfaceAndFocusWithinStyle,\n fieldErrorRimWithin,\n inputGroupRoundedTextareaClassName,\n);\n\nexport type InputGroupProps = React.ComponentProps<'div'> & {\n size?: ControlSize;\n};\n\nfunction InputGroup({ className, size, ...props }: InputGroupProps) {\n // A wrapper's rung wins over the field's own: inside a ButtonsGroup the group owns the\n // height of every segment, so a field that kept its own type scale would sit at one rung\n // and read at another.\n const groupSize = React.useContext(ControlSizeContext);\n const resolved = groupSize ?? size ?? 'md';\n return (\n <div\n role=\"group\"\n data-slot=\"input-group\"\n data-size={resolved}\n className={cn(\n inputGroupClassName,\n controlHeight[resolved],\n controlSpacing[resolved],\n controlIconState,\n 'has-[:disabled]:[--control-icon:var(--control-icon-rest)]',\n className,\n )}\n {...props}\n />\n );\n}\n\nconst inputGroupControlTextBySize = cn(\n 'group-data-[size=sm]/input-group:text-caption',\n 'group-data-[size=md]/input-group:text-body-sm',\n 'group-data-[size=lg]/input-group:text-body',\n);\n\n// An addon's icon takes the group's rung, as a Button's does (`iconSizeClasses`), unless it\n// sizes itself.\nconst inputGroupIconBySize = cn(\n \"group-data-[size=sm]/input-group:[&>svg:not([class*='size-'])]:size-icon-sm\",\n \"group-data-[size=md]/input-group:[&>svg:not([class*='size-'])]:size-icon-md\",\n \"group-data-[size=lg]/input-group:[&>svg:not([class*='size-'])]:size-icon-lg\",\n);\n\nconst inputGroupAddonVariants = cva(\n cn(\n 'flex items-center justify-center gap-2 text-muted-foreground select-none',\n inputGroupControlTextBySize,\n 'group-has-[:disabled]/input-group:text-muted-foreground',\n inputGroupIconBySize,\n ),\n {\n variants: {\n variant: {\n default: '',\n flush: '',\n },\n align: {\n // Inset like a Button's icon (the group's `--control-px`, less the ink inset of a\n // 24px glyph) and spaced from the text by `--control-gap`, so a leading icon in a field\n // lines up with the icons of the pills beside it.\n 'inline-start': 'order-first pr-(--control-gap) pl-[calc(var(--control-px)-2px)] has-[>button]:pl-[3px]',\n 'inline-end': 'order-last pr-[calc(var(--control-px)-2px)] pl-(--control-gap) has-[>button]:pr-[3px]',\n 'block-start': 'order-first w-full justify-start border-b border-border px-3 pt-2 pb-1',\n 'block-end': 'order-last w-full justify-start border-t border-border px-3 pt-1 pb-2',\n },\n },\n compoundVariants: [\n { variant: 'flush', align: ['inline-start', 'inline-end'], className: 'gap-0 [&>button]:mx-0' },\n { variant: 'flush', align: 'inline-start', className: 'pl-0 has-[>button]:pl-0' },\n { variant: 'flush', align: 'inline-end', className: 'pr-0 has-[>button]:pr-0' },\n ],\n defaultVariants: {\n variant: 'default',\n align: 'inline-start',\n },\n },\n);\n\nexport type InputGroupAddonProps = React.ComponentProps<'div'> &\n Omit<VariantProps<typeof inputGroupAddonVariants>, 'variant'> & {\n /** `flush` joins inline buttons without a gap or an inset from the field's outside edge. */\n variant?: VariantProps<typeof inputGroupAddonVariants>['variant'];\n };\n\nfunction InputGroupAddon({\n className,\n align = 'inline-start',\n variant = 'default',\n onClick,\n ...props\n}: InputGroupAddonProps) {\n return (\n <div\n role=\"group\"\n data-slot=\"input-group-addon\"\n data-align={align}\n data-variant={variant}\n className={cn(inputGroupAddonVariants({ align, variant }), className)}\n onClick={event => {\n // Click on non-interactive addon area focuses the control inside the group.\n // Skip when a button/input handled the click itself.\n const target = event.target as HTMLElement;\n if (!target.closest('button, input, textarea, [role=\"button\"]')) {\n event.currentTarget.parentElement\n ?.querySelector<HTMLInputElement | HTMLTextAreaElement>('[data-slot=input-group-control]')\n ?.focus();\n }\n onClick?.(event);\n }}\n {...props}\n />\n );\n}\n\n// Size flows from the parent group's `data-size` (no React context). All four sizes are\n// written out so Tailwind's scanner emits them. The control is sized to the root's\n// content box (token height minus the 1px border on each side) so it never overflows the\n// root — otherwise, in a flex-column parent, the root's content-based minimum would win\n// over its explicit height and the group would render 2px taller than a sibling control.\n// The explicit height also keeps the control from collapsing to the line-height in block\n// mode (flex-col + flex-none).\nconst inputGroupControlHeightBySize = cn(\n 'group-data-[size=sm]/input-group:h-[calc(var(--spacing-control-sm)-2px)]',\n 'group-data-[size=md]/input-group:h-[calc(var(--spacing-control-md)-2px)]',\n 'group-data-[size=lg]/input-group:h-[calc(var(--spacing-control-lg)-2px)]',\n);\n\n// eslint-disable-next-line react-refresh/only-export-components -- shared with InputNumber\nexport const inputGroupControlClassName = cn(\n 'min-w-0 flex-1 bg-transparent px-3 text-label zoom-safe-text text-foreground outline-hidden',\n inputGroupControlHeightBySize,\n 'placeholder:text-muted-foreground placeholder:transition-opacity placeholder:duration-normal',\n 'focus:placeholder:opacity-70',\n 'disabled:cursor-not-allowed',\n);\n\nexport type InputGroupInputProps = Omit<React.ComponentProps<'input'>, 'size'> & {\n testId?: string;\n /** @deprecated Wrap the group in `<Field invalid>`, or set `aria-invalid` on a control outside a `Field`. */\n error?: boolean;\n};\n\nfunction InputGroupInput({ className, testId, error, type = 'text', autoComplete, ...props }: InputGroupInputProps) {\n return (\n <InputPrimitive\n type={type}\n data-slot=\"input-group-control\"\n data-testid={testId}\n className={cn(\n inputGroupControlClassName,\n // WebKit and Firefox use different selectors for native number spinners.\n '[&::-webkit-outer-spin-button]:m-0 [&::-webkit-outer-spin-button]:appearance-none',\n '[&::-webkit-inner-spin-button]:m-0 [&::-webkit-inner-spin-button]:appearance-none',\n '[&[type=number]]:[appearance:textfield]',\n // type=\"search\": drop WebKit's native clear button so it doesn't double up with a\n // custom clear control (e.g. the scorers toolbar's InputGroupButton).\n '[&::-webkit-search-cancel-button]:appearance-none',\n className,\n )}\n {...deprecatedErrorAria(error)}\n {...props}\n {...textFieldAutofillProps(autoComplete)}\n {...keepOwnAccessibleName(props)}\n />\n );\n}\n\nexport type InputGroupTextareaProps = React.ComponentProps<'textarea'> & {\n testId?: string;\n /** @deprecated Wrap the group in `<Field invalid>`, or set `aria-invalid` on a control outside a `Field`. */\n error?: boolean;\n};\n\nfunction InputGroupTextarea({ className, testId, error, ...props }: InputGroupTextareaProps) {\n return (\n <TextareaControl\n data-slot=\"input-group-control\"\n data-testid={testId}\n className={cn(\n 'min-h-15 min-w-0 flex-1 resize-y bg-transparent px-3 py-2 zoom-safe-text text-foreground outline-hidden',\n inputGroupControlTextBySize,\n 'placeholder:text-muted-foreground placeholder:transition-opacity placeholder:duration-normal',\n 'focus:placeholder:opacity-70',\n 'disabled:cursor-not-allowed',\n className,\n )}\n {...deprecatedErrorAria(error)}\n {...props}\n />\n );\n}\n\nexport type InputGroupTextProps = React.ComponentProps<'span'>;\n\nfunction InputGroupText({ className, ...props }: InputGroupTextProps) {\n return (\n <span\n className={cn(\n 'flex items-center gap-2 text-caption text-muted-foreground [&_svg]:pointer-events-none',\n \"[&_svg:not([class*='size-'])]:size-4\",\n className,\n )}\n {...props}\n />\n );\n}\n\nexport type InputGroupButtonProps = Omit<React.ComponentProps<typeof Button>, 'size' | 'variant'> & {\n size?: ButtonProps['size'];\n variant?: ButtonProps['variant'];\n};\n\n// An icon button inside a field is a chip inset in it: 8px shorter than the field, so a 3px\n// ring of field (plus the 1px border) shows evenly around it, with the addon's end padding\n// matching that ring.\nconst inputGroupIconButtonBySize = cn(\n 'group-data-[size=sm]/input-group:size-[calc(var(--spacing-control-sm)-8px)]',\n 'group-data-[size=md]/input-group:size-[calc(var(--spacing-control-md)-8px)]',\n 'group-data-[size=lg]/input-group:size-[calc(var(--spacing-control-lg)-8px)]',\n);\n\nfunction InputGroupButton({\n size = 'icon-sm',\n variant = 'ghost',\n type = 'button',\n className,\n ...props\n}: InputGroupButtonProps) {\n return (\n <Button\n type={type}\n size={size}\n variant={variant}\n className={cn(isIconButtonSize(size) && inputGroupIconButtonBySize, className)}\n {...props}\n />\n );\n}\n\nexport { InputGroup, InputGroupAddon, InputGroupInput, InputGroupTextarea, InputGroupText, InputGroupButton };\n"],"mappings":"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"}
|
|
@@ -35,8 +35,8 @@ var inputGroupAddonVariants = require_dist.cva(require_utils.cn("flex items-cent
|
|
|
35
35
|
flush: ""
|
|
36
36
|
},
|
|
37
37
|
align: {
|
|
38
|
-
"inline-start": "order-first pr-
|
|
39
|
-
"inline-end": "order-last pr-
|
|
38
|
+
"inline-start": "order-first pr-(--control-gap) pl-[calc(var(--control-px)-2px)] has-[>button]:pl-[3px]",
|
|
39
|
+
"inline-end": "order-last pr-[calc(var(--control-px)-2px)] pl-(--control-gap) has-[>button]:pr-[3px]",
|
|
40
40
|
"block-start": "order-first w-full justify-start border-b border-border px-3 pt-2 pb-1",
|
|
41
41
|
"block-end": "order-last w-full justify-start border-t border-border px-3 pt-1 pb-2"
|
|
42
42
|
}
|
|
@@ -109,11 +109,13 @@ function InputGroupText({ className, ...props }) {
|
|
|
109
109
|
...props
|
|
110
110
|
});
|
|
111
111
|
}
|
|
112
|
-
|
|
112
|
+
var inputGroupIconButtonBySize = require_utils.cn("group-data-[size=sm]/input-group:size-[calc(var(--spacing-control-sm)-8px)]", "group-data-[size=md]/input-group:size-[calc(var(--spacing-control-md)-8px)]", "group-data-[size=lg]/input-group:size-[calc(var(--spacing-control-lg)-8px)]");
|
|
113
|
+
function InputGroupButton({ size = "icon-sm", variant = "ghost", type = "button", className, ...props }) {
|
|
113
114
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Button.Button, {
|
|
114
115
|
type,
|
|
115
116
|
size,
|
|
116
117
|
variant,
|
|
118
|
+
className: require_utils.cn(require_Button.isIconButtonSize(size) && inputGroupIconButtonBySize, className),
|
|
117
119
|
...props
|
|
118
120
|
});
|
|
119
121
|
}
|
|
@@ -166,4 +168,4 @@ Object.defineProperty(exports, "inputGroupControlClassName", {
|
|
|
166
168
|
}
|
|
167
169
|
});
|
|
168
170
|
|
|
169
|
-
//# sourceMappingURL=input-group-
|
|
171
|
+
//# sourceMappingURL=input-group-BrBYp1gP.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"input-group-BrBYp1gP.cjs","names":["cn","inputSurfaceAndFocusWithinStyle","fieldErrorRimWithin","React","ControlSizeContext","controlHeight","controlSpacing","controlIconState","cva","InputPrimitive","deprecatedErrorAria","textFieldAutofillProps","keepOwnAccessibleName","TextareaControl","Button","isIconButtonSize"],"sources":["../src/ds/components/InputGroup/input-group.tsx"],"sourcesContent":["import { Input as InputPrimitive } from '@base-ui/react/input';\nimport { cva } from 'class-variance-authority';\nimport type { VariantProps } from 'class-variance-authority';\nimport * as React from 'react';\n\nimport { Button } from '@/ds/components/Button';\nimport { isIconButtonSize } from '@/ds/components/Button/Button';\nimport type { ButtonProps } from '@/ds/components/Button/Button';\nimport { keepOwnAccessibleName } from '@/ds/components/Field/field-control-aria';\nimport { controlIconState } from '@/ds/primitives/control-icon';\nimport { ControlSizeContext, controlHeight, controlSpacing } from '@/ds/primitives/control-size';\nimport type { ControlSize } from '@/ds/primitives/control-size';\nimport {\n deprecatedErrorAria,\n fieldErrorRimWithin,\n inputSurfaceAndFocusWithinStyle,\n} from '@/ds/primitives/form-element';\nimport { textFieldAutofillProps } from '@/ds/primitives/password-manager-autofill';\nimport { TextareaControl } from '@/ds/primitives/textarea-control';\nimport { cn } from '@/lib/utils';\n\n// Size flows down as `data-size` on the named group root (`group/input-group`), read by the\n// control through `group-data-[size=…]` variants — no prop drilling. The one context read is\n// upward: a wrapper that owns the rung (ButtonsGroup) hands it to the field.\n\nconst inputGroupBaseClassName = cn(\n // `flex-1` (not `min-w-0`) lets the root fill a flex row while keeping its content-floor\n // so it never collapses to 0. `items-center` centres the control: it carries its own\n // h-form-* (2px taller than the root's content box), so stretch would push its text low\n // / overflow the bottom border, while centring overlaps the (transparent) borders cleanly.\n 'group/input-group relative flex w-full flex-1 items-center',\n // The wrapper owns its control's width — a bare control has no width of its own,\n // so the group is the one that decides the input fills the remaining space.\n '[&>[data-slot=input-group-control]]:min-w-0 [&>[data-slot=input-group-control]]:flex-1',\n 'text-foreground',\n 'has-[:disabled]:cursor-not-allowed has-[:disabled]:text-muted-foreground',\n // Height is on the root (border-box) so the group matches a same-size sibling control.\n // Auto height when vertical (block-* addon) or wrapping a textarea.\n 'has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col',\n 'has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col',\n 'has-[textarea]:h-auto',\n 'has-[>[data-align=inline-start]]:[&>[data-slot=input-group-control]]:pl-0',\n 'has-[>[data-align=inline-end]]:[&>[data-slot=input-group-control]]:pr-0',\n // In flex-col, flex-1 zeroes the control's height; force flex-none + w-full instead.\n 'has-[>[data-align=block-start]]:[&>[data-slot=input-group-control]]:w-full has-[>[data-align=block-start]]:[&>[data-slot=input-group-control]]:flex-none',\n 'has-[>[data-align=block-end]]:[&>[data-slot=input-group-control]]:w-full has-[>[data-align=block-end]]:[&>[data-slot=input-group-control]]:flex-none',\n);\n\nconst inputGroupRoundedTextareaClassName = cn(\n // Pill (rounded-full) only fits single-line inline shapes. Fall back to rounded-xl\n // whenever the group goes vertical (block-* addon) or wraps a textarea.\n 'has-[>[data-align=block-start]]:rounded-xl',\n 'has-[>[data-align=block-end]]:rounded-xl',\n 'has-[textarea]:rounded-xl',\n);\n\n// A group wears the field material — the same `bg-card` plus rim an Input wears — so a\n// group and a bare field beside it are one surface. Its states move the rim, and they\n// read the nested control's focus (`focus-within`) because the wrapper never takes focus\n// itself. There is no second look: a transparent `outline` group existed alongside this\n// one and only ever produced two boundary languages for the same control, which is why\n// four of its call sites had wrapped it in a hand-made `bg-card rounded-full` div to get\n// the material back.\n// eslint-disable-next-line react-refresh/only-export-components -- shared with InputNumber\nexport const inputGroupClassName = cn(\n inputGroupBaseClassName,\n 'rounded-full',\n inputSurfaceAndFocusWithinStyle,\n fieldErrorRimWithin,\n inputGroupRoundedTextareaClassName,\n);\n\nexport type InputGroupProps = React.ComponentProps<'div'> & {\n size?: ControlSize;\n};\n\nfunction InputGroup({ className, size, ...props }: InputGroupProps) {\n // A wrapper's rung wins over the field's own: inside a ButtonsGroup the group owns the\n // height of every segment, so a field that kept its own type scale would sit at one rung\n // and read at another.\n const groupSize = React.useContext(ControlSizeContext);\n const resolved = groupSize ?? size ?? 'md';\n return (\n <div\n role=\"group\"\n data-slot=\"input-group\"\n data-size={resolved}\n className={cn(\n inputGroupClassName,\n controlHeight[resolved],\n controlSpacing[resolved],\n controlIconState,\n 'has-[:disabled]:[--control-icon:var(--control-icon-rest)]',\n className,\n )}\n {...props}\n />\n );\n}\n\nconst inputGroupControlTextBySize = cn(\n 'group-data-[size=sm]/input-group:text-caption',\n 'group-data-[size=md]/input-group:text-body-sm',\n 'group-data-[size=lg]/input-group:text-body',\n);\n\n// An addon's icon takes the group's rung, as a Button's does (`iconSizeClasses`), unless it\n// sizes itself.\nconst inputGroupIconBySize = cn(\n \"group-data-[size=sm]/input-group:[&>svg:not([class*='size-'])]:size-icon-sm\",\n \"group-data-[size=md]/input-group:[&>svg:not([class*='size-'])]:size-icon-md\",\n \"group-data-[size=lg]/input-group:[&>svg:not([class*='size-'])]:size-icon-lg\",\n);\n\nconst inputGroupAddonVariants = cva(\n cn(\n 'flex items-center justify-center gap-2 text-muted-foreground select-none',\n inputGroupControlTextBySize,\n 'group-has-[:disabled]/input-group:text-muted-foreground',\n inputGroupIconBySize,\n ),\n {\n variants: {\n variant: {\n default: '',\n flush: '',\n },\n align: {\n // Inset like a Button's icon (the group's `--control-px`, less the ink inset of a\n // 24px glyph) and spaced from the text by `--control-gap`, so a leading icon in a field\n // lines up with the icons of the pills beside it.\n 'inline-start': 'order-first pr-(--control-gap) pl-[calc(var(--control-px)-2px)] has-[>button]:pl-[3px]',\n 'inline-end': 'order-last pr-[calc(var(--control-px)-2px)] pl-(--control-gap) has-[>button]:pr-[3px]',\n 'block-start': 'order-first w-full justify-start border-b border-border px-3 pt-2 pb-1',\n 'block-end': 'order-last w-full justify-start border-t border-border px-3 pt-1 pb-2',\n },\n },\n compoundVariants: [\n { variant: 'flush', align: ['inline-start', 'inline-end'], className: 'gap-0 [&>button]:mx-0' },\n { variant: 'flush', align: 'inline-start', className: 'pl-0 has-[>button]:pl-0' },\n { variant: 'flush', align: 'inline-end', className: 'pr-0 has-[>button]:pr-0' },\n ],\n defaultVariants: {\n variant: 'default',\n align: 'inline-start',\n },\n },\n);\n\nexport type InputGroupAddonProps = React.ComponentProps<'div'> &\n Omit<VariantProps<typeof inputGroupAddonVariants>, 'variant'> & {\n /** `flush` joins inline buttons without a gap or an inset from the field's outside edge. */\n variant?: VariantProps<typeof inputGroupAddonVariants>['variant'];\n };\n\nfunction InputGroupAddon({\n className,\n align = 'inline-start',\n variant = 'default',\n onClick,\n ...props\n}: InputGroupAddonProps) {\n return (\n <div\n role=\"group\"\n data-slot=\"input-group-addon\"\n data-align={align}\n data-variant={variant}\n className={cn(inputGroupAddonVariants({ align, variant }), className)}\n onClick={event => {\n // Click on non-interactive addon area focuses the control inside the group.\n // Skip when a button/input handled the click itself.\n const target = event.target as HTMLElement;\n if (!target.closest('button, input, textarea, [role=\"button\"]')) {\n event.currentTarget.parentElement\n ?.querySelector<HTMLInputElement | HTMLTextAreaElement>('[data-slot=input-group-control]')\n ?.focus();\n }\n onClick?.(event);\n }}\n {...props}\n />\n );\n}\n\n// Size flows from the parent group's `data-size` (no React context). All four sizes are\n// written out so Tailwind's scanner emits them. The control is sized to the root's\n// content box (token height minus the 1px border on each side) so it never overflows the\n// root — otherwise, in a flex-column parent, the root's content-based minimum would win\n// over its explicit height and the group would render 2px taller than a sibling control.\n// The explicit height also keeps the control from collapsing to the line-height in block\n// mode (flex-col + flex-none).\nconst inputGroupControlHeightBySize = cn(\n 'group-data-[size=sm]/input-group:h-[calc(var(--spacing-control-sm)-2px)]',\n 'group-data-[size=md]/input-group:h-[calc(var(--spacing-control-md)-2px)]',\n 'group-data-[size=lg]/input-group:h-[calc(var(--spacing-control-lg)-2px)]',\n);\n\n// eslint-disable-next-line react-refresh/only-export-components -- shared with InputNumber\nexport const inputGroupControlClassName = cn(\n 'min-w-0 flex-1 bg-transparent px-3 text-label zoom-safe-text text-foreground outline-hidden',\n inputGroupControlHeightBySize,\n 'placeholder:text-muted-foreground placeholder:transition-opacity placeholder:duration-normal',\n 'focus:placeholder:opacity-70',\n 'disabled:cursor-not-allowed',\n);\n\nexport type InputGroupInputProps = Omit<React.ComponentProps<'input'>, 'size'> & {\n testId?: string;\n /** @deprecated Wrap the group in `<Field invalid>`, or set `aria-invalid` on a control outside a `Field`. */\n error?: boolean;\n};\n\nfunction InputGroupInput({ className, testId, error, type = 'text', autoComplete, ...props }: InputGroupInputProps) {\n return (\n <InputPrimitive\n type={type}\n data-slot=\"input-group-control\"\n data-testid={testId}\n className={cn(\n inputGroupControlClassName,\n // WebKit and Firefox use different selectors for native number spinners.\n '[&::-webkit-outer-spin-button]:m-0 [&::-webkit-outer-spin-button]:appearance-none',\n '[&::-webkit-inner-spin-button]:m-0 [&::-webkit-inner-spin-button]:appearance-none',\n '[&[type=number]]:[appearance:textfield]',\n // type=\"search\": drop WebKit's native clear button so it doesn't double up with a\n // custom clear control (e.g. the scorers toolbar's InputGroupButton).\n '[&::-webkit-search-cancel-button]:appearance-none',\n className,\n )}\n {...deprecatedErrorAria(error)}\n {...props}\n {...textFieldAutofillProps(autoComplete)}\n {...keepOwnAccessibleName(props)}\n />\n );\n}\n\nexport type InputGroupTextareaProps = React.ComponentProps<'textarea'> & {\n testId?: string;\n /** @deprecated Wrap the group in `<Field invalid>`, or set `aria-invalid` on a control outside a `Field`. */\n error?: boolean;\n};\n\nfunction InputGroupTextarea({ className, testId, error, ...props }: InputGroupTextareaProps) {\n return (\n <TextareaControl\n data-slot=\"input-group-control\"\n data-testid={testId}\n className={cn(\n 'min-h-15 min-w-0 flex-1 resize-y bg-transparent px-3 py-2 zoom-safe-text text-foreground outline-hidden',\n inputGroupControlTextBySize,\n 'placeholder:text-muted-foreground placeholder:transition-opacity placeholder:duration-normal',\n 'focus:placeholder:opacity-70',\n 'disabled:cursor-not-allowed',\n className,\n )}\n {...deprecatedErrorAria(error)}\n {...props}\n />\n );\n}\n\nexport type InputGroupTextProps = React.ComponentProps<'span'>;\n\nfunction InputGroupText({ className, ...props }: InputGroupTextProps) {\n return (\n <span\n className={cn(\n 'flex items-center gap-2 text-caption text-muted-foreground [&_svg]:pointer-events-none',\n \"[&_svg:not([class*='size-'])]:size-4\",\n className,\n )}\n {...props}\n />\n );\n}\n\nexport type InputGroupButtonProps = Omit<React.ComponentProps<typeof Button>, 'size' | 'variant'> & {\n size?: ButtonProps['size'];\n variant?: ButtonProps['variant'];\n};\n\n// An icon button inside a field is a chip inset in it: 8px shorter than the field, so a 3px\n// ring of field (plus the 1px border) shows evenly around it, with the addon's end padding\n// matching that ring.\nconst inputGroupIconButtonBySize = cn(\n 'group-data-[size=sm]/input-group:size-[calc(var(--spacing-control-sm)-8px)]',\n 'group-data-[size=md]/input-group:size-[calc(var(--spacing-control-md)-8px)]',\n 'group-data-[size=lg]/input-group:size-[calc(var(--spacing-control-lg)-8px)]',\n);\n\nfunction InputGroupButton({\n size = 'icon-sm',\n variant = 'ghost',\n type = 'button',\n className,\n ...props\n}: InputGroupButtonProps) {\n return (\n <Button\n type={type}\n size={size}\n variant={variant}\n className={cn(isIconButtonSize(size) && inputGroupIconButtonBySize, className)}\n {...props}\n />\n );\n}\n\nexport { InputGroup, InputGroupAddon, InputGroupInput, InputGroupTextarea, InputGroupText, InputGroupButton };\n"],"mappings":"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"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_tabbed_container = require("../tabbed-container
|
|
2
|
+
const require_tabbed_container = require("../tabbed-container-DHfamugk.cjs");
|
|
3
3
|
exports.TabbedContainer = require_tabbed_container.TabbedContainer;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as TabbedContainer } from "../tabbed-container-
|
|
1
|
+
export { t as TabbedContainer } from "../tabbed-container-CZYkYekf.js";
|
|
@@ -19,6 +19,8 @@ export type { ReadyPreparedWidget, WidgetPlan } from './lib/plan-widget';
|
|
|
19
19
|
export { widgetGate } from './lib/gate';
|
|
20
20
|
export type { AggregateGateInput, BlockedFields, DashboardEnvironment, PendingGate, WidgetGate } from './lib/gate';
|
|
21
21
|
export * from './kinds';
|
|
22
|
+
export { CHART_COLOR_NAMES, SERIES_COLORS, VALUE_FORMATS, colorSchema, formatSchema, queryRefSchema, valueExprSchema, valueRefSchema, } from './lib/values';
|
|
23
|
+
export type { ChartColorName, LabelledValue, ValueExpr, ValueFormat, ValueRef } from './lib/values';
|
|
22
24
|
export { dashboardDefaults } from './lib/definition';
|
|
23
25
|
export type { DashboardScope, OnDashboardDrilldown } from './lib/definition';
|
|
24
26
|
export { buildRequest, emptyAnswer, pageQuery, requestKey, sendRequest } from './lib/requests';
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import type { AnyWidgetKind } from '../widget-kind';
|
|
2
|
-
export { tableKind } from './table';
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
5
|
-
export {
|
|
2
|
+
export { tableColumnOptionsSchema, tableKind, tableOptionsSchema } from './table';
|
|
3
|
+
export type { TableColumnOptions, TableOptions } from './table';
|
|
4
|
+
export { KPI_ICONS, kpiItemSchema, kpisKind, kpisOptionsSchema } from './kpis';
|
|
5
|
+
export type { KpiIcon, KpiItem, KpisOptions } from './kpis';
|
|
6
|
+
export { scoresKind, scoresOptionsSchema } from './scores';
|
|
7
|
+
export type { ScoresOptions } from './scores';
|
|
8
|
+
export { timeseriesKind, timeseriesOptionsSchema, timeseriesSeriesSchema } from './timeseries';
|
|
9
|
+
export type { TimeseriesOptions, TimeseriesSeries } from './timeseries';
|
|
6
10
|
/** The kinds every dashboard can use; hosts add their own through `DashboardRenderer`'s `kinds`. */
|
|
7
11
|
export declare const BUILT_IN_WIDGET_KINDS: AnyWidgetKind[];
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export { kpiFigures, kpisOptionsSchema } from './options';
|
|
2
|
-
export type { KpiFigures, KpisOptions } from './options';
|
|
1
|
+
export { KPI_ICONS, kpiFigures, kpiItemSchema, kpisOptionsSchema } from './options';
|
|
2
|
+
export type { KpiFigures, KpiIcon, KpiItem, KpisOptions } from './options';
|
|
3
3
|
/** A row of headline numbers, each against the previous window. */
|
|
4
4
|
export declare const kpisKind: import("../..").WidgetKind<{
|
|
5
5
|
items: {
|
|
6
6
|
label: string;
|
|
7
7
|
icon?: "bot" | "coins" | "hash" | "threads" | undefined;
|
|
8
8
|
format: "count" | "duration" | "percent" | "score" | "usd";
|
|
9
|
-
value: import("
|
|
9
|
+
value: import("../..").ValueExpr;
|
|
10
10
|
detail?: string | undefined;
|
|
11
11
|
lowerIsBetter?: boolean | undefined;
|
|
12
12
|
}[];
|
|
@@ -2,6 +2,27 @@ import { z } from 'zod/v4';
|
|
|
2
2
|
import type { DashboardAnswer } from '../../lib/requests';
|
|
3
3
|
import type { ValueExpr } from '../../lib/values';
|
|
4
4
|
import type { ResolvedView } from '../../widget-kind';
|
|
5
|
+
export declare const KPI_ICONS: readonly ['bot', 'coins', 'hash', 'threads'];
|
|
6
|
+
export type KpiIcon = (typeof KPI_ICONS)[number];
|
|
7
|
+
export declare const kpiItemSchema: z.ZodObject<{
|
|
8
|
+
label: z.ZodString;
|
|
9
|
+
icon: z.ZodOptional<z.ZodEnum<{
|
|
10
|
+
bot: "bot";
|
|
11
|
+
coins: "coins";
|
|
12
|
+
hash: "hash";
|
|
13
|
+
threads: "threads";
|
|
14
|
+
}>>;
|
|
15
|
+
format: z.ZodEnum<{
|
|
16
|
+
count: "count";
|
|
17
|
+
duration: "duration";
|
|
18
|
+
percent: "percent";
|
|
19
|
+
score: "score";
|
|
20
|
+
usd: "usd";
|
|
21
|
+
}>;
|
|
22
|
+
value: z.ZodType<ValueExpr, unknown, z.core.$ZodTypeInternals<ValueExpr, unknown>>;
|
|
23
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
24
|
+
lowerIsBetter: z.ZodOptional<z.ZodBoolean>;
|
|
25
|
+
}, z.core.$strict>;
|
|
5
26
|
export declare const kpisOptionsSchema: z.ZodObject<{
|
|
6
27
|
items: z.ZodArray<z.ZodObject<{
|
|
7
28
|
label: z.ZodString;
|
|
@@ -24,6 +45,7 @@ export declare const kpisOptionsSchema: z.ZodObject<{
|
|
|
24
45
|
}, z.core.$strict>>;
|
|
25
46
|
}, z.core.$strict>;
|
|
26
47
|
export type KpisOptions = z.infer<typeof kpisOptionsSchema>;
|
|
48
|
+
export type KpiItem = z.infer<typeof kpiItemSchema>;
|
|
27
49
|
export type KpiFigures = {
|
|
28
50
|
value?: number;
|
|
29
51
|
previous?: number;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export { timeseriesOptionsSchema, timeseriesSeriesSchema } from '../../lib/timeseries';
|
|
2
|
+
export type { TimeseriesOptions, TimeseriesSeries } from '../../lib/timeseries';
|
|
1
3
|
/** Values per time bucket as stacked bars or lines, from metrics, trace or span time series. */
|
|
2
4
|
export declare const timeseriesKind: import("../..").WidgetKind<{
|
|
3
5
|
chart: "line" | "stackedBar";
|
|
@@ -8,8 +10,8 @@ export declare const timeseriesKind: import("../..").WidgetKind<{
|
|
|
8
10
|
label: string;
|
|
9
11
|
color?: "blue" | "error" | "green" | "indigo" | "neutral" | "orange" | "pink" | "purple" | "red" | "sky" | "teal" | "violet" | "warning" | "yellow" | undefined;
|
|
10
12
|
emphasis?: boolean | undefined;
|
|
11
|
-
value: import("
|
|
12
|
-
rangeTotal?: import("
|
|
13
|
+
value: import("../..").ValueExpr;
|
|
14
|
+
rangeTotal?: import("../..").ValueExpr | undefined;
|
|
13
15
|
round?: boolean | undefined;
|
|
14
16
|
}[];
|
|
15
17
|
buckets?: "api" | "chart" | undefined;
|
|
@@ -22,9 +24,9 @@ export declare const timeseriesKind: import("../..").WidgetKind<{
|
|
|
22
24
|
total?: {
|
|
23
25
|
value: "total" | {
|
|
24
26
|
peak: string;
|
|
25
|
-
} | import("
|
|
27
|
+
} | import("../..").ValueExpr;
|
|
26
28
|
format?: "count" | "duration" | "percent" | "score" | "usd" | undefined;
|
|
27
29
|
} | undefined;
|
|
28
30
|
emptyMessage?: string | undefined;
|
|
29
|
-
emptyWhenZero?: import("
|
|
31
|
+
emptyWhenZero?: import("../..").ValueExpr | undefined;
|
|
30
32
|
}>;
|