@vadimcomanescu/nadicode-design-system 4.0.3 → 4.0.5
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/.agents/skills/seed/SKILL.md +24 -3
- package/dist/catalog/catalog.d.ts +186 -0
- package/dist/catalog/catalog.js +194 -0
- package/dist/catalog/components.d.ts +26 -0
- package/dist/catalog/components.js +71 -40
- package/dist/{chunk-RMGDDOCD.js → chunk-3ZPNIY2Z.js} +2 -2
- package/dist/chunk-4KZLCCIR.js +88 -0
- package/dist/{chunk-AWZFQQGN.js → chunk-6NCLYJAI.js} +2 -2
- package/dist/{chunk-K4U67BVG.js → chunk-7ALMTY6W.js} +1 -1
- package/dist/chunk-CZ7NGW7N.js +60 -0
- package/dist/chunk-FRGZSR2P.js +86 -0
- package/dist/{chunk-LGW7FVG5.js → chunk-HMFIUUYC.js} +1 -1
- package/dist/chunk-IC3BMFHV.js +86 -0
- package/dist/chunk-JVIRZNQ6.js +37 -0
- package/dist/chunk-K5AFXZDL.js +30 -0
- package/dist/{chunk-LK2L3C7D.js → chunk-LCMAB2BX.js} +3 -3
- package/dist/chunk-LIJYUSSE.js +152 -0
- package/dist/chunk-MB6TIORE.js +103 -0
- package/dist/chunk-PTJPPKDR.js +115 -0
- package/dist/chunk-PV62D7H6.js +75 -0
- package/dist/chunk-QVAV4MA2.js +60 -0
- package/dist/chunk-RPVG37RB.js +24 -0
- package/dist/{chunk-QW5II6YK.js → chunk-TEWCCMRH.js} +2 -2
- package/dist/chunk-W74WK3HB.js +184 -0
- package/dist/chunk-WVKJNHQM.js +120 -0
- package/dist/chunk-XAAJBX6R.js +100 -0
- package/dist/chunk-ZXVDDZZL.js +96 -0
- package/dist/components/blocks/ApiKeysBlock.d.ts +18 -0
- package/dist/components/blocks/ApiKeysBlock.js +128 -0
- package/dist/components/blocks/BenchmarksBlock.d.ts +20 -0
- package/dist/components/blocks/BenchmarksBlock.js +11 -0
- package/dist/components/blocks/CheckEmailBlock.d.ts +9 -0
- package/dist/components/blocks/CheckEmailBlock.js +13 -0
- package/dist/components/blocks/CommandPaletteBlock.d.ts +9 -0
- package/dist/components/blocks/CommandPaletteBlock.js +125 -0
- package/dist/components/blocks/EmailVerifiedBlock.d.ts +10 -0
- package/dist/components/blocks/EmailVerifiedBlock.js +10 -0
- package/dist/components/blocks/ForgotPasswordBlock.d.ts +14 -0
- package/dist/components/blocks/ForgotPasswordBlock.js +15 -0
- package/dist/components/blocks/IntegrationsBlock.js +4 -4
- package/dist/components/blocks/MagicLinkBlock.d.ts +12 -0
- package/dist/components/blocks/MagicLinkBlock.js +18 -0
- package/dist/components/blocks/OTPBlock.d.ts +10 -0
- package/dist/components/blocks/OTPBlock.js +121 -0
- package/dist/components/blocks/PasswordChangedBlock.d.ts +10 -0
- package/dist/components/blocks/PasswordChangedBlock.js +10 -0
- package/dist/components/blocks/PricingTableBlock.d.ts +19 -0
- package/dist/components/blocks/PricingTableBlock.js +12 -0
- package/dist/components/blocks/SavingsCalculatorBlock.d.ts +30 -0
- package/dist/components/blocks/SavingsCalculatorBlock.js +22 -0
- package/dist/components/blocks/TimezonePickerBlock.d.ts +11 -0
- package/dist/components/blocks/TimezonePickerBlock.js +126 -0
- package/dist/components/blocks/WorkspaceSwitcherBlock.d.ts +11 -0
- package/dist/components/blocks/WorkspaceSwitcherBlock.js +129 -0
- package/dist/components/logos/index.js +3 -3
- package/dist/components/page-kits/BlogContentPageKit.js +4 -4
- package/dist/components/page-kits/CheckoutPageKit.js +3 -3
- package/dist/components/page-kits/CompanySuitePageKit.js +4 -4
- package/dist/components/page-kits/LandingPageKit.js +5 -5
- package/dist/components/page-kits/MarketingShellPageKit.js +2 -2
- package/dist/components/page-kits/PricingPageKit.js +4 -4
- package/dist/components/page-kits/ServiceSuitePageKit.js +3 -3
- package/dist/components/ui/SearchCommand.js +4 -152
- package/dist/hooks/useHotkey.js +1 -37
- package/dist/lib/timezones.d.ts +14 -0
- package/dist/lib/timezones.js +1 -0
- package/package.json +6 -2
- package/dist/{chunk-6HGSU24S.js → chunk-4TUJJ3UI.js} +3 -3
- package/dist/{chunk-Z233ZQZE.js → chunk-E4L6LR6P.js} +1 -1
|
@@ -8,25 +8,31 @@
|
|
|
8
8
|
* and rendering.
|
|
9
9
|
*/
|
|
10
10
|
import { AccountLockedBlock } from '../components/blocks/AccountLockedBlock';
|
|
11
|
+
import { ApiKeysBlock } from '../components/blocks/ApiKeysBlock';
|
|
11
12
|
import { ActivityFeedBlock } from '../components/blocks/ActivityFeedBlock';
|
|
12
13
|
import { AgentConversationBlock } from '../components/blocks/AgentConversationBlock';
|
|
13
14
|
import { AgentProfileGridBlock } from '../components/blocks/AgentProfileGridBlock';
|
|
14
15
|
import { AgentRunOverviewBlock } from '../components/blocks/AgentRunOverviewBlock';
|
|
15
16
|
import { AgentWorkbenchBlock } from '../components/blocks/AgentWorkbenchBlock';
|
|
17
|
+
import { BenchmarksBlock } from '../components/blocks/BenchmarksBlock';
|
|
16
18
|
import { BannerBlock } from '../components/blocks/BannerBlock';
|
|
17
19
|
import { BarChartBlock } from '../components/blocks/BarChartBlock';
|
|
18
20
|
import { CallToActionBlock } from '../components/blocks/CallToActionBlock';
|
|
19
21
|
import { ChangelogBlock } from '../components/blocks/ChangelogBlock';
|
|
22
|
+
import { CheckEmailBlock } from '../components/blocks/CheckEmailBlock';
|
|
20
23
|
import { ChartBlock } from '../components/blocks/ChartBlock';
|
|
21
24
|
import { ChartCollectionBlock } from '../components/blocks/ChartCollectionBlock';
|
|
25
|
+
import { CommandPaletteBlock } from '../components/blocks/CommandPaletteBlock';
|
|
22
26
|
import { ComparisonBlock } from '../components/blocks/ComparisonBlock';
|
|
23
27
|
import { ContactBlock } from '../components/blocks/ContactBlock';
|
|
24
28
|
import { CreateBlock } from '../components/blocks/CreateBlock';
|
|
25
29
|
import { DataGridBlock } from '../components/blocks/DataGridBlock';
|
|
26
30
|
import { DirectoryBlock } from '../components/blocks/DirectoryBlock';
|
|
31
|
+
import { EmailVerifiedBlock } from '../components/blocks/EmailVerifiedBlock';
|
|
27
32
|
import { FAQBlock } from '../components/blocks/FAQBlock';
|
|
28
33
|
import { FeatureBlock } from '../components/blocks/FeatureBlock';
|
|
29
34
|
import { FeatureGridBlock } from '../components/blocks/FeatureGridBlock';
|
|
35
|
+
import { ForgotPasswordBlock } from '../components/blocks/ForgotPasswordBlock';
|
|
30
36
|
import { FooterBlock } from '../components/blocks/FooterBlock';
|
|
31
37
|
import { GalleryBlock } from '../components/blocks/GalleryBlock';
|
|
32
38
|
import { HeaderBlock } from '../components/blocks/HeaderBlock';
|
|
@@ -36,13 +42,18 @@ import { HeroSectionBlock } from '../components/blocks/HeroSectionBlock';
|
|
|
36
42
|
import { IntegrationsBlock } from '../components/blocks/IntegrationsBlock';
|
|
37
43
|
import { InteractiveAreaChartBlock } from '../components/blocks/InteractiveAreaChartBlock';
|
|
38
44
|
import { LoginBlock } from '../components/blocks/LoginBlock';
|
|
45
|
+
import { MagicLinkBlock } from '../components/blocks/MagicLinkBlock';
|
|
39
46
|
import { NewsletterBlock } from '../components/blocks/NewsletterBlock';
|
|
40
47
|
import { OnboardingBlock } from '../components/blocks/OnboardingBlock';
|
|
48
|
+
import { OTPBlock } from '../components/blocks/OTPBlock';
|
|
49
|
+
import { PasswordChangedBlock } from '../components/blocks/PasswordChangedBlock';
|
|
41
50
|
import { PasswordRecoveryBlock } from '../components/blocks/PasswordRecoveryBlock';
|
|
42
51
|
import { PricingBlock } from '../components/blocks/PricingBlock';
|
|
52
|
+
import { PricingTableBlock } from '../components/blocks/PricingTableBlock';
|
|
43
53
|
import { ProcessFlowBlock } from '../components/blocks/ProcessFlowBlock';
|
|
44
54
|
import { ResetPasswordBlock } from '../components/blocks/ResetPasswordBlock';
|
|
45
55
|
import { SignUpBlock } from '../components/blocks/SignUpBlock';
|
|
56
|
+
import { SavingsCalculatorBlock } from '../components/blocks/SavingsCalculatorBlock';
|
|
46
57
|
import { SocialProofBlock } from '../components/blocks/SocialProofBlock';
|
|
47
58
|
import { SolutionShowcaseBlock } from '../components/blocks/SolutionShowcaseBlock';
|
|
48
59
|
import { StatsBlock } from '../components/blocks/StatsBlock';
|
|
@@ -51,6 +62,7 @@ import { TeamBlock } from '../components/blocks/TeamBlock';
|
|
|
51
62
|
import { TestimonialsBlock } from '../components/blocks/TestimonialsBlock';
|
|
52
63
|
import { TwoFactorChallengeBlock } from '../components/blocks/TwoFactorChallengeBlock';
|
|
53
64
|
import { TwoFactorSetupBlock } from '../components/blocks/TwoFactorSetupBlock';
|
|
65
|
+
import { TimezonePickerBlock } from '../components/blocks/TimezonePickerBlock';
|
|
54
66
|
import { UsageDonutBlock } from '../components/blocks/UsageDonutBlock';
|
|
55
67
|
import { AudioVisualizerBlock } from '../components/blocks/AudioVisualizerBlock';
|
|
56
68
|
import { AuthLayout } from '../components/blocks/AuthLayout';
|
|
@@ -68,6 +80,7 @@ import { NotFoundBlock } from '../components/blocks/NotFoundBlock';
|
|
|
68
80
|
import { SettingsLayout } from '../components/blocks/SettingsLayout';
|
|
69
81
|
import { VoiceAgentCard } from '../components/blocks/VoiceAgentCard';
|
|
70
82
|
import { WizardBlock } from '../components/blocks/WizardBlock';
|
|
83
|
+
import { WorkspaceSwitcherBlock } from '../components/blocks/WorkspaceSwitcherBlock';
|
|
71
84
|
import { AccountLockedPageKit } from '../components/page-kits/AccountLockedPageKit';
|
|
72
85
|
import { AgentsChatPageKit } from '../components/page-kits/AgentsChatPageKit';
|
|
73
86
|
import { AnalyticsPageKit } from '../components/page-kits/AnalyticsPageKit';
|
|
@@ -98,25 +111,31 @@ import { VerifyEmailPageKit } from '../components/page-kits/VerifyEmailPageKit';
|
|
|
98
111
|
import { VoiceAgentsPageKit } from '../components/page-kits/VoiceAgentsPageKit';
|
|
99
112
|
export declare const seedComponents: {
|
|
100
113
|
readonly AccountLockedBlock: typeof AccountLockedBlock;
|
|
114
|
+
readonly ApiKeysBlock: typeof ApiKeysBlock;
|
|
101
115
|
readonly ActivityFeedBlock: typeof ActivityFeedBlock;
|
|
102
116
|
readonly AgentConversationBlock: typeof AgentConversationBlock;
|
|
103
117
|
readonly AgentProfileGridBlock: typeof AgentProfileGridBlock;
|
|
104
118
|
readonly AgentRunOverviewBlock: typeof AgentRunOverviewBlock;
|
|
105
119
|
readonly AgentWorkbenchBlock: typeof AgentWorkbenchBlock;
|
|
120
|
+
readonly BenchmarksBlock: typeof BenchmarksBlock;
|
|
106
121
|
readonly BannerBlock: typeof BannerBlock;
|
|
107
122
|
readonly BarChartBlock: typeof BarChartBlock;
|
|
108
123
|
readonly CallToActionBlock: typeof CallToActionBlock;
|
|
109
124
|
readonly ChangelogBlock: typeof ChangelogBlock;
|
|
125
|
+
readonly CheckEmailBlock: typeof CheckEmailBlock;
|
|
110
126
|
readonly ChartBlock: typeof ChartBlock;
|
|
111
127
|
readonly ChartCollectionBlock: typeof ChartCollectionBlock;
|
|
128
|
+
readonly CommandPaletteBlock: typeof CommandPaletteBlock;
|
|
112
129
|
readonly ComparisonBlock: typeof ComparisonBlock;
|
|
113
130
|
readonly ContactBlock: typeof ContactBlock;
|
|
114
131
|
readonly CreateBlock: typeof CreateBlock;
|
|
115
132
|
readonly DataGridBlock: typeof DataGridBlock;
|
|
116
133
|
readonly DirectoryBlock: typeof DirectoryBlock;
|
|
134
|
+
readonly EmailVerifiedBlock: typeof EmailVerifiedBlock;
|
|
117
135
|
readonly FAQBlock: typeof FAQBlock;
|
|
118
136
|
readonly FeatureBlock: typeof FeatureBlock;
|
|
119
137
|
readonly FeatureGridBlock: typeof FeatureGridBlock;
|
|
138
|
+
readonly ForgotPasswordBlock: typeof ForgotPasswordBlock;
|
|
120
139
|
readonly FooterBlock: typeof FooterBlock;
|
|
121
140
|
readonly GalleryBlock: typeof GalleryBlock;
|
|
122
141
|
readonly HeaderBlock: typeof HeaderBlock;
|
|
@@ -126,13 +145,18 @@ export declare const seedComponents: {
|
|
|
126
145
|
readonly IntegrationsBlock: typeof IntegrationsBlock;
|
|
127
146
|
readonly InteractiveAreaChartBlock: typeof InteractiveAreaChartBlock;
|
|
128
147
|
readonly LoginBlock: typeof LoginBlock;
|
|
148
|
+
readonly MagicLinkBlock: typeof MagicLinkBlock;
|
|
129
149
|
readonly NewsletterBlock: typeof NewsletterBlock;
|
|
130
150
|
readonly OnboardingBlock: typeof OnboardingBlock;
|
|
151
|
+
readonly OTPBlock: typeof OTPBlock;
|
|
152
|
+
readonly PasswordChangedBlock: typeof PasswordChangedBlock;
|
|
131
153
|
readonly PasswordRecoveryBlock: typeof PasswordRecoveryBlock;
|
|
132
154
|
readonly PricingBlock: typeof PricingBlock;
|
|
155
|
+
readonly PricingTableBlock: typeof PricingTableBlock;
|
|
133
156
|
readonly ProcessFlowBlock: typeof ProcessFlowBlock;
|
|
134
157
|
readonly ResetPasswordBlock: typeof ResetPasswordBlock;
|
|
135
158
|
readonly SignUpBlock: typeof SignUpBlock;
|
|
159
|
+
readonly SavingsCalculatorBlock: typeof SavingsCalculatorBlock;
|
|
136
160
|
readonly SocialProofBlock: typeof SocialProofBlock;
|
|
137
161
|
readonly SolutionShowcaseBlock: typeof SolutionShowcaseBlock;
|
|
138
162
|
readonly StatsBlock: typeof StatsBlock;
|
|
@@ -141,6 +165,7 @@ export declare const seedComponents: {
|
|
|
141
165
|
readonly TestimonialsBlock: typeof TestimonialsBlock;
|
|
142
166
|
readonly TwoFactorChallengeBlock: typeof TwoFactorChallengeBlock;
|
|
143
167
|
readonly TwoFactorSetupBlock: typeof TwoFactorSetupBlock;
|
|
168
|
+
readonly TimezonePickerBlock: typeof TimezonePickerBlock;
|
|
144
169
|
readonly UsageDonutBlock: typeof UsageDonutBlock;
|
|
145
170
|
readonly AudioVisualizerBlock: typeof AudioVisualizerBlock;
|
|
146
171
|
readonly AuthLayout: typeof AuthLayout;
|
|
@@ -170,6 +195,7 @@ export declare const seedComponents: {
|
|
|
170
195
|
readonly SettingsLayout: typeof SettingsLayout;
|
|
171
196
|
readonly VoiceAgentCard: typeof VoiceAgentCard;
|
|
172
197
|
readonly WizardBlock: typeof WizardBlock;
|
|
198
|
+
readonly WorkspaceSwitcherBlock: typeof WorkspaceSwitcherBlock;
|
|
173
199
|
readonly AccountLockedPageKit: typeof AccountLockedPageKit;
|
|
174
200
|
readonly AgentsChatPageKit: typeof AgentsChatPageKit;
|
|
175
201
|
readonly AnalyticsPageKit: typeof AnalyticsPageKit;
|
|
@@ -1,97 +1,112 @@
|
|
|
1
1
|
'use client';
|
|
2
|
+
import { VoiceAgentsPageKit } from '../chunk-32OLQ7FC.js';
|
|
3
|
+
import { ResetPageKit } from '../chunk-LP6ZZYOQ.js';
|
|
4
|
+
import { ServiceSuitePageKit } from '../chunk-7ALMTY6W.js';
|
|
5
|
+
import { SignupPageKit } from '../chunk-BRICSLHJ.js';
|
|
6
|
+
import { SuccessPageKit } from '../chunk-3U56FXYC.js';
|
|
2
7
|
import { TeamSettingsPageKit } from '../chunk-DEZXWNYF.js';
|
|
3
8
|
import { TwoFactorPageKit } from '../chunk-S5OY2B63.js';
|
|
4
9
|
import { VerifyEmailPageKit } from '../chunk-SWRJWMGG.js';
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
10
|
+
import { LandingPageKit } from '../chunk-LCMAB2BX.js';
|
|
11
|
+
import { LoginPageKit } from '../chunk-Z2WION42.js';
|
|
12
|
+
import { OnboardingPageKit } from '../chunk-BYEHHZZN.js';
|
|
13
|
+
import { PricingPageKit } from '../chunk-3ZPNIY2Z.js';
|
|
7
14
|
import { ProfileSettingsPageKit } from '../chunk-MGSGCARB.js';
|
|
8
|
-
import { RecoveryPageKit } from '../chunk-BRCBJ3S4.js';
|
|
9
|
-
import { ResetPageKit } from '../chunk-LP6ZZYOQ.js';
|
|
10
|
-
import { ServiceSuitePageKit } from '../chunk-K4U67BVG.js';
|
|
11
15
|
import { SettingsPageKit } from '../chunk-RKQPU75I.js';
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
16
|
+
import { RecoveryPageKit } from '../chunk-BRCBJ3S4.js';
|
|
17
|
+
import { BlogContentPageKit } from '../chunk-6NCLYJAI.js';
|
|
18
|
+
import { CheckoutPageKit } from '../chunk-HMFIUUYC.js';
|
|
19
|
+
import { CompanySuitePageKit } from '../chunk-TEWCCMRH.js';
|
|
20
|
+
import { MarketingShellPageKit } from '../chunk-E4L6LR6P.js';
|
|
21
|
+
import { CrudFormPageKit } from '../chunk-KWILREVQ.js';
|
|
14
22
|
import { DashboardPageKit } from '../chunk-C33GUEDY.js';
|
|
15
23
|
import { ErrorPageKit } from '../chunk-HPTHS7SX.js';
|
|
16
24
|
import { KanbanBoardPageKit } from '../chunk-25BOZMXA.js';
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
25
|
+
import { CrudListDetailPageKit } from '../chunk-OJ7OO3QB.js';
|
|
26
|
+
import { UsageDonutBlock } from '../chunk-VRGPG2YN.js';
|
|
27
|
+
import { VoiceAgentCard } from '../chunk-HWHJ6IRQ.js';
|
|
28
|
+
import { WizardBlock } from '../chunk-XKKFSFYO.js';
|
|
29
|
+
import { WorkspaceSwitcherBlock } from '../chunk-RPVG37RB.js';
|
|
30
|
+
import { InviteUserModal } from '../chunk-YDYDGG5K.js';
|
|
20
31
|
import { AccountLockedPageKit } from '../chunk-DNJEVMDY.js';
|
|
21
32
|
import { AgentsChatPageKit } from '../chunk-UR43ANYS.js';
|
|
22
33
|
import { AnalyticsPageKit } from '../chunk-CUDMDYKE.js';
|
|
23
|
-
import { BlogContentPageKit } from '../chunk-AWZFQQGN.js';
|
|
24
|
-
import { CheckoutPageKit } from '../chunk-LGW7FVG5.js';
|
|
25
|
-
import { CompanySuitePageKit } from '../chunk-QW5II6YK.js';
|
|
26
|
-
import { MarketingShellPageKit } from '../chunk-Z233ZQZE.js';
|
|
27
|
-
import { CrudFormPageKit } from '../chunk-KWILREVQ.js';
|
|
28
|
-
import { CrudListDetailPageKit } from '../chunk-OJ7OO3QB.js';
|
|
29
34
|
import { NavigationShellPageKit } from '../chunk-ZKLB5N3Q.js';
|
|
35
|
+
import { SolutionShowcaseBlock } from '../chunk-RWCL5OPX.js';
|
|
36
|
+
import { StatsBlock } from '../chunk-224KPIOG.js';
|
|
37
|
+
import { StatsMarketingBlock } from '../chunk-QIHA7S3A.js';
|
|
30
38
|
import { TeamBlock } from '../chunk-VBZQ4DBE.js';
|
|
31
39
|
import { TestimonialsBlock } from '../chunk-FV2G6SAF.js';
|
|
40
|
+
import { TimezonePickerBlock } from '../chunk-ZXVDDZZL.js';
|
|
41
|
+
import '../chunk-PTJPPKDR.js';
|
|
32
42
|
import { TwoFactorChallengeBlock } from '../chunk-W7FXDRQJ.js';
|
|
33
43
|
import { TwoFactorSetupBlock } from '../chunk-IXQGKJU4.js';
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import { WizardBlock } from '../chunk-XKKFSFYO.js';
|
|
37
|
-
import { InviteUserModal } from '../chunk-YDYDGG5K.js';
|
|
44
|
+
import { PricingBlock } from '../chunk-VNNAL4A6.js';
|
|
45
|
+
import { PricingTableBlock } from '../chunk-XAAJBX6R.js';
|
|
38
46
|
import { ProcessFlowBlock } from '../chunk-HZERHGBT.js';
|
|
39
47
|
import { ResetPasswordBlock } from '../chunk-X6VXWEDO.js';
|
|
48
|
+
import { SavingsCalculatorBlock } from '../chunk-IC3BMFHV.js';
|
|
40
49
|
import { SettingsLayout } from '../chunk-4MWKE6F5.js';
|
|
41
50
|
import { SignUpBlock } from '../chunk-7IADIXDV.js';
|
|
42
51
|
import { SocialProofBlock } from '../chunk-C7WHMSF3.js';
|
|
43
|
-
import {
|
|
44
|
-
import { StatsBlock } from '../chunk-224KPIOG.js';
|
|
45
|
-
import { StatsMarketingBlock } from '../chunk-QIHA7S3A.js';
|
|
46
|
-
import { LogoCloud } from '../chunk-ZFKSVEYW.js';
|
|
52
|
+
import { MagicLinkBlock } from '../chunk-WVKJNHQM.js';
|
|
47
53
|
import { NavUser } from '../chunk-QJCE7NZF.js';
|
|
48
54
|
import { NewsletterBlock } from '../chunk-K7NQ6ZAW.js';
|
|
55
|
+
import '../chunk-DARC2ACH.js';
|
|
49
56
|
import { NotFoundBlock } from '../chunk-XO7TBM47.js';
|
|
57
|
+
import { OTPBlock } from '../chunk-K5AFXZDL.js';
|
|
50
58
|
import { OnboardingBlock } from '../chunk-KQ7ZC6EM.js';
|
|
59
|
+
import { PasswordChangedBlock } from '../chunk-QVAV4MA2.js';
|
|
51
60
|
import { PasswordRecoveryBlock } from '../chunk-5PZ4VR2D.js';
|
|
52
|
-
import { PricingBlock } from '../chunk-VNNAL4A6.js';
|
|
53
|
-
import '../chunk-DARC2ACH.js';
|
|
54
|
-
import { GalleryBlock } from '../chunk-FTGFOK6T.js';
|
|
55
61
|
import { HeroBlock } from '../chunk-GJ557DGH.js';
|
|
56
62
|
import { HeroSectionBlock } from '../chunk-ALA6OM7K.js';
|
|
57
|
-
import '../chunk-
|
|
58
|
-
import { HeaderBlock } from '../chunk-WOYBVPXK.js';
|
|
59
|
-
import { IntegrationsBlock } from '../chunk-6HGSU24S.js';
|
|
63
|
+
import { IntegrationsBlock } from '../chunk-4TUJJ3UI.js';
|
|
60
64
|
import '../chunk-3ZDYYZDD.js';
|
|
61
|
-
import '../chunk-H466RJCI.js';
|
|
62
|
-
import '../chunk-DT6DGTVW.js';
|
|
63
|
-
import '../chunk-J5DRK4RF.js';
|
|
64
65
|
import '../chunk-TSVN5A2F.js';
|
|
65
66
|
import '../chunk-PX2WVDDB.js';
|
|
66
67
|
import '../chunk-BZYMCJHW.js';
|
|
68
|
+
import '../chunk-H466RJCI.js';
|
|
69
|
+
import '../chunk-DT6DGTVW.js';
|
|
70
|
+
import '../chunk-J5DRK4RF.js';
|
|
67
71
|
import { InteractiveAreaChartBlock } from '../chunk-TPJ6JJ2F.js';
|
|
68
72
|
import { KanbanDemoBlock } from '../chunk-CVTMWSNS.js';
|
|
69
|
-
import {
|
|
70
|
-
import
|
|
71
|
-
import {
|
|
72
|
-
import { DirectoryBlock } from '../chunk-TCQIJ3DO.js';
|
|
73
|
+
import { LogoCloud } from '../chunk-ZFKSVEYW.js';
|
|
74
|
+
import '../chunk-QQOWC53X.js';
|
|
75
|
+
import { EmailVerifiedBlock } from '../chunk-CZ7NGW7N.js';
|
|
73
76
|
import { FAQBlock } from '../chunk-NEHCPO53.js';
|
|
74
77
|
import { FeatureBlock } from '../chunk-HJ3A2YNO.js';
|
|
75
78
|
import { FeatureGridBlock } from '../chunk-Q5IYBNA7.js';
|
|
76
79
|
import { FooterBlock } from '../chunk-AYWL4IYM.js';
|
|
80
|
+
import { ForgotPasswordBlock } from '../chunk-PV62D7H6.js';
|
|
81
|
+
import { GalleryBlock } from '../chunk-FTGFOK6T.js';
|
|
82
|
+
import { HeaderBlock } from '../chunk-WOYBVPXK.js';
|
|
83
|
+
import { CheckEmailBlock } from '../chunk-4KZLCCIR.js';
|
|
84
|
+
import { CodeBlock } from '../chunk-XTASI4IY.js';
|
|
85
|
+
import { CommandPaletteBlock } from '../chunk-FRGZSR2P.js';
|
|
86
|
+
import '../chunk-JVIRZNQ6.js';
|
|
87
|
+
import { ComparisonBlock } from '../chunk-VZCB4APK.js';
|
|
88
|
+
import { ContactBlock } from '../chunk-U4GYSYGN.js';
|
|
89
|
+
import { CreateBlock } from '../chunk-HFBJ6L6O.js';
|
|
90
|
+
import { DataGridBlock } from '../chunk-SP7NIZFP.js';
|
|
91
|
+
import { DirectoryBlock } from '../chunk-TCQIJ3DO.js';
|
|
92
|
+
import { BannerBlock } from '../chunk-DNJOBML6.js';
|
|
77
93
|
import { BarChartBlock } from '../chunk-3JJBJ4VR.js';
|
|
94
|
+
import { BenchmarksBlock } from '../chunk-MB6TIORE.js';
|
|
78
95
|
import { CallToActionBlock } from '../chunk-GJPTPLCQ.js';
|
|
79
96
|
import { ChangelogBlock } from '../chunk-VEO56RH4.js';
|
|
80
97
|
import { ChartBlock } from '../chunk-LV4P7WVM.js';
|
|
81
98
|
import { ChartCollectionBlock } from '../chunk-YMJOUYMT.js';
|
|
82
99
|
import { HeatmapChartBlock } from '../chunk-VDONTZZX.js';
|
|
83
100
|
import { ChatLayout } from '../chunk-WSBLCWY7.js';
|
|
84
|
-
import { CodeBlock } from '../chunk-XTASI4IY.js';
|
|
85
|
-
import { ComparisonBlock } from '../chunk-VZCB4APK.js';
|
|
86
101
|
import { AgentConversationBlock } from '../chunk-4IGBBIYW.js';
|
|
87
102
|
import { AgentProfileGridBlock } from '../chunk-7NS3VFD7.js';
|
|
88
103
|
import { AgentRunOverviewBlock } from '../chunk-KNR3WB5C.js';
|
|
89
104
|
import { AgentWorkbenchBlock } from '../chunk-SIQNG72C.js';
|
|
105
|
+
import { ApiKeysBlock } from '../chunk-W74WK3HB.js';
|
|
90
106
|
import { AudioVisualizerBlock } from '../chunk-AN5TW4AL.js';
|
|
91
107
|
import { AuthLayout } from '../chunk-N3YFYMNZ.js';
|
|
92
108
|
import { LoginBlock } from '../chunk-RGE5OQMZ.js';
|
|
93
109
|
import { AuthSuccessBlock } from '../chunk-LCKLZ4XK.js';
|
|
94
|
-
import { BannerBlock } from '../chunk-DNJOBML6.js';
|
|
95
110
|
import '../chunk-G5EO22OR.js';
|
|
96
111
|
import '../chunk-OHX2LFAH.js';
|
|
97
112
|
import '../chunk-SGI25ZJ6.js';
|
|
@@ -131,6 +146,7 @@ import '../chunk-HOWTYZL5.js';
|
|
|
131
146
|
import '../chunk-ZLSWCV55.js';
|
|
132
147
|
import '../chunk-OHCQPI3W.js';
|
|
133
148
|
import '../chunk-GLU236NN.js';
|
|
149
|
+
import '../chunk-LIJYUSSE.js';
|
|
134
150
|
import '../chunk-UJDEGCCZ.js';
|
|
135
151
|
import '../chunk-JWQXBRE7.js';
|
|
136
152
|
import '../chunk-3UJ3HJZ3.js';
|
|
@@ -159,6 +175,8 @@ import '../chunk-PDSQC6VE.js';
|
|
|
159
175
|
import '../chunk-PXDHNGTG.js';
|
|
160
176
|
import '../chunk-CQEUNASC.js';
|
|
161
177
|
import '../chunk-DFPXK2JO.js';
|
|
178
|
+
import '../chunk-UYT33NG6.js';
|
|
179
|
+
import '../chunk-2HDB6MDK.js';
|
|
162
180
|
import '../chunk-W73JAOHW.js';
|
|
163
181
|
import '../chunk-S2WSXZ7Y.js';
|
|
164
182
|
import '../chunk-756Q7AC5.js';
|
|
@@ -314,25 +332,31 @@ import '../chunk-QYZT24TS.js';
|
|
|
314
332
|
// src/catalog/components.tsx
|
|
315
333
|
var seedComponents = {
|
|
316
334
|
AccountLockedBlock,
|
|
335
|
+
ApiKeysBlock,
|
|
317
336
|
ActivityFeedBlock,
|
|
318
337
|
AgentConversationBlock,
|
|
319
338
|
AgentProfileGridBlock,
|
|
320
339
|
AgentRunOverviewBlock,
|
|
321
340
|
AgentWorkbenchBlock,
|
|
341
|
+
BenchmarksBlock,
|
|
322
342
|
BannerBlock,
|
|
323
343
|
BarChartBlock,
|
|
324
344
|
CallToActionBlock,
|
|
325
345
|
ChangelogBlock,
|
|
346
|
+
CheckEmailBlock,
|
|
326
347
|
ChartBlock,
|
|
327
348
|
ChartCollectionBlock,
|
|
349
|
+
CommandPaletteBlock,
|
|
328
350
|
ComparisonBlock,
|
|
329
351
|
ContactBlock,
|
|
330
352
|
CreateBlock,
|
|
331
353
|
DataGridBlock,
|
|
332
354
|
DirectoryBlock,
|
|
355
|
+
EmailVerifiedBlock,
|
|
333
356
|
FAQBlock,
|
|
334
357
|
FeatureBlock,
|
|
335
358
|
FeatureGridBlock,
|
|
359
|
+
ForgotPasswordBlock,
|
|
336
360
|
FooterBlock,
|
|
337
361
|
GalleryBlock,
|
|
338
362
|
HeaderBlock,
|
|
@@ -342,13 +366,18 @@ var seedComponents = {
|
|
|
342
366
|
IntegrationsBlock,
|
|
343
367
|
InteractiveAreaChartBlock,
|
|
344
368
|
LoginBlock,
|
|
369
|
+
MagicLinkBlock,
|
|
345
370
|
NewsletterBlock,
|
|
346
371
|
OnboardingBlock,
|
|
372
|
+
OTPBlock,
|
|
373
|
+
PasswordChangedBlock,
|
|
347
374
|
PasswordRecoveryBlock,
|
|
348
375
|
PricingBlock,
|
|
376
|
+
PricingTableBlock,
|
|
349
377
|
ProcessFlowBlock,
|
|
350
378
|
ResetPasswordBlock,
|
|
351
379
|
SignUpBlock,
|
|
380
|
+
SavingsCalculatorBlock,
|
|
352
381
|
SocialProofBlock,
|
|
353
382
|
SolutionShowcaseBlock,
|
|
354
383
|
StatsBlock,
|
|
@@ -357,6 +386,7 @@ var seedComponents = {
|
|
|
357
386
|
TestimonialsBlock,
|
|
358
387
|
TwoFactorChallengeBlock,
|
|
359
388
|
TwoFactorSetupBlock,
|
|
389
|
+
TimezonePickerBlock,
|
|
360
390
|
UsageDonutBlock,
|
|
361
391
|
AudioVisualizerBlock,
|
|
362
392
|
AuthLayout,
|
|
@@ -374,6 +404,7 @@ var seedComponents = {
|
|
|
374
404
|
SettingsLayout,
|
|
375
405
|
VoiceAgentCard,
|
|
376
406
|
WizardBlock,
|
|
407
|
+
WorkspaceSwitcherBlock,
|
|
377
408
|
AccountLockedPageKit,
|
|
378
409
|
AgentsChatPageKit,
|
|
379
410
|
AnalyticsPageKit,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { MarketingShellPageKit } from './chunk-
|
|
1
|
+
import { MarketingShellPageKit } from './chunk-E4L6LR6P.js';
|
|
2
2
|
import { PricingBlock } from './chunk-VNNAL4A6.js';
|
|
3
3
|
import { FAQBlock } from './chunk-NEHCPO53.js';
|
|
4
|
-
import { CallToActionBlock } from './chunk-GJPTPLCQ.js';
|
|
5
4
|
import { ComparisonBlock } from './chunk-VZCB4APK.js';
|
|
5
|
+
import { CallToActionBlock } from './chunk-GJPTPLCQ.js';
|
|
6
6
|
import { Typography } from './chunk-N53OMWW2.js';
|
|
7
7
|
import { Heading } from './chunk-WI547C47.js';
|
|
8
8
|
import { Card, CardHeader, CardTitle, CardContent } from './chunk-AH6YSYYT.js';
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { Spinner } from './chunk-ZLSWCV55.js';
|
|
2
|
+
import { Separator } from './chunk-CUZJIDU7.js';
|
|
3
|
+
import { Card, CardHeader, CardTitle, CardDescription, CardContent, CardFooter } from './chunk-AH6YSYYT.js';
|
|
4
|
+
import { Button } from './chunk-7KIDDF3I.js';
|
|
5
|
+
import { m, fadeInUp } from './chunk-PD2YEH3H.js';
|
|
6
|
+
import { MailIcon } from './chunk-XQ2UDMPO.js';
|
|
7
|
+
import { Badge } from './chunk-S4JAHKOP.js';
|
|
8
|
+
import { cn } from './chunk-QYZT24TS.js';
|
|
9
|
+
import * as React from 'react';
|
|
10
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
11
|
+
|
|
12
|
+
var titleMap = {
|
|
13
|
+
verification: "Verify your email",
|
|
14
|
+
reset: "Check your email",
|
|
15
|
+
"magic-link": "Check your email"
|
|
16
|
+
};
|
|
17
|
+
var descMap = {
|
|
18
|
+
verification: "We sent a verification link to your email address.",
|
|
19
|
+
reset: "We sent a password reset link to your email address.",
|
|
20
|
+
"magic-link": "We sent a magic link to your email address."
|
|
21
|
+
};
|
|
22
|
+
function CheckEmailBlock({
|
|
23
|
+
className,
|
|
24
|
+
email,
|
|
25
|
+
type = "verification",
|
|
26
|
+
onResend,
|
|
27
|
+
onBackToLogin
|
|
28
|
+
}) {
|
|
29
|
+
const [resendState, setResendState] = React.useState("idle");
|
|
30
|
+
const handleResend = () => {
|
|
31
|
+
setResendState("sending");
|
|
32
|
+
onResend?.();
|
|
33
|
+
setTimeout(() => {
|
|
34
|
+
setResendState("sent");
|
|
35
|
+
setTimeout(() => setResendState("idle"), 3e3);
|
|
36
|
+
}, 1e3);
|
|
37
|
+
};
|
|
38
|
+
return /* @__PURE__ */ jsx(m.div, { ...fadeInUp, className: cn("w-full max-w-md mx-auto", className), children: /* @__PURE__ */ jsxs(Card, { children: [
|
|
39
|
+
/* @__PURE__ */ jsxs(CardHeader, { className: "text-center", children: [
|
|
40
|
+
/* @__PURE__ */ jsx("div", { className: "mx-auto mb-2", children: /* @__PURE__ */ jsx(MailIcon, { size: 48, className: "text-accent" }) }),
|
|
41
|
+
/* @__PURE__ */ jsx(CardTitle, { className: "text-2xl", children: titleMap[type] }),
|
|
42
|
+
/* @__PURE__ */ jsx(CardDescription, { children: descMap[type] })
|
|
43
|
+
] }),
|
|
44
|
+
/* @__PURE__ */ jsxs(CardContent, { className: "grid gap-4", children: [
|
|
45
|
+
Boolean(email) && /* @__PURE__ */ jsx("div", { className: "flex justify-center", children: /* @__PURE__ */ jsx(Badge, { variant: "outline", className: "font-mono text-xs", children: email }) }),
|
|
46
|
+
/* @__PURE__ */ jsx("ol", { className: "space-y-2 text-sm text-text-secondary list-none", children: [
|
|
47
|
+
"Check your inbox for the email",
|
|
48
|
+
"Click the link in the email",
|
|
49
|
+
"Check your spam folder if you don't see it"
|
|
50
|
+
].map((step, i) => /* @__PURE__ */ jsxs("li", { className: "flex items-start gap-2.5", children: [
|
|
51
|
+
/* @__PURE__ */ jsx("span", { className: "flex h-5 w-5 shrink-0 items-center justify-center rounded-full bg-surface-active text-xs font-medium text-text-tertiary", children: i + 1 }),
|
|
52
|
+
/* @__PURE__ */ jsx("span", { children: step })
|
|
53
|
+
] }, i)) }),
|
|
54
|
+
/* @__PURE__ */ jsx(Separator, {}),
|
|
55
|
+
/* @__PURE__ */ jsxs("div", { className: "text-center space-y-2", children: [
|
|
56
|
+
/* @__PURE__ */ jsxs("p", { className: "text-sm text-text-tertiary", children: [
|
|
57
|
+
"Didn",
|
|
58
|
+
"'",
|
|
59
|
+
"t receive the email?"
|
|
60
|
+
] }),
|
|
61
|
+
/* @__PURE__ */ jsxs(
|
|
62
|
+
Button,
|
|
63
|
+
{
|
|
64
|
+
variant: "outline",
|
|
65
|
+
size: "sm",
|
|
66
|
+
onClick: handleResend,
|
|
67
|
+
disabled: resendState === "sending",
|
|
68
|
+
children: [
|
|
69
|
+
resendState === "sending" && /* @__PURE__ */ jsx(Spinner, { className: "mr-2" }),
|
|
70
|
+
resendState === "sent" ? "Email resent!" : "Resend email"
|
|
71
|
+
]
|
|
72
|
+
}
|
|
73
|
+
)
|
|
74
|
+
] })
|
|
75
|
+
] }),
|
|
76
|
+
/* @__PURE__ */ jsx(CardFooter, { className: "justify-center", children: /* @__PURE__ */ jsx(
|
|
77
|
+
"button",
|
|
78
|
+
{
|
|
79
|
+
type: "button",
|
|
80
|
+
onClick: onBackToLogin,
|
|
81
|
+
className: "text-sm text-text-tertiary hover:text-text-primary transition-colors",
|
|
82
|
+
children: "Back to login"
|
|
83
|
+
}
|
|
84
|
+
) })
|
|
85
|
+
] }) });
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export { CheckEmailBlock };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { MarketingShellPageKit } from './chunk-
|
|
1
|
+
import { MarketingShellPageKit } from './chunk-E4L6LR6P.js';
|
|
2
2
|
import { NewsletterBlock } from './chunk-K7NQ6ZAW.js';
|
|
3
|
-
import { ChangelogBlock } from './chunk-VEO56RH4.js';
|
|
4
3
|
import { CodeBlock } from './chunk-XTASI4IY.js';
|
|
4
|
+
import { ChangelogBlock } from './chunk-VEO56RH4.js';
|
|
5
5
|
import { Typography } from './chunk-N53OMWW2.js';
|
|
6
6
|
import { Heading } from './chunk-WI547C47.js';
|
|
7
7
|
import { Card, CardHeader, CardTitle, CardContent } from './chunk-AH6YSYYT.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MarketingShellPageKit } from './chunk-
|
|
1
|
+
import { MarketingShellPageKit } from './chunk-E4L6LR6P.js';
|
|
2
2
|
import { TeamBlock } from './chunk-VBZQ4DBE.js';
|
|
3
3
|
import { TestimonialsBlock } from './chunk-FV2G6SAF.js';
|
|
4
4
|
import { ProcessFlowBlock } from './chunk-HZERHGBT.js';
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { Card, CardHeader, CardTitle, CardDescription, CardContent } from './chunk-AH6YSYYT.js';
|
|
2
|
+
import { Button } from './chunk-7KIDDF3I.js';
|
|
3
|
+
import { useMotionConfig, m, scaleIn, motionSpring } from './chunk-PD2YEH3H.js';
|
|
4
|
+
import { CheckIcon } from './chunk-CXACRCZ4.js';
|
|
5
|
+
import { cn } from './chunk-QYZT24TS.js';
|
|
6
|
+
import * as React from 'react';
|
|
7
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
8
|
+
|
|
9
|
+
function EmailVerifiedBlock({
|
|
10
|
+
className,
|
|
11
|
+
title = "Email verified!",
|
|
12
|
+
description = "Your email address has been successfully verified.",
|
|
13
|
+
buttonText = "Continue",
|
|
14
|
+
onContinue,
|
|
15
|
+
autoRedirectSeconds
|
|
16
|
+
}) {
|
|
17
|
+
const motionConfig = useMotionConfig();
|
|
18
|
+
const [countdown, setCountdown] = React.useState(autoRedirectSeconds ?? 0);
|
|
19
|
+
React.useEffect(() => {
|
|
20
|
+
if (!autoRedirectSeconds) return;
|
|
21
|
+
setCountdown(autoRedirectSeconds);
|
|
22
|
+
const interval = setInterval(() => {
|
|
23
|
+
setCountdown((prev) => {
|
|
24
|
+
if (prev <= 1) {
|
|
25
|
+
clearInterval(interval);
|
|
26
|
+
onContinue?.();
|
|
27
|
+
return 0;
|
|
28
|
+
}
|
|
29
|
+
return prev - 1;
|
|
30
|
+
});
|
|
31
|
+
}, 1e3);
|
|
32
|
+
return () => clearInterval(interval);
|
|
33
|
+
}, [autoRedirectSeconds, onContinue]);
|
|
34
|
+
return /* @__PURE__ */ jsx(m.div, { ...scaleIn, className: cn("w-full max-w-sm mx-auto", className), children: /* @__PURE__ */ jsxs(Card, { children: [
|
|
35
|
+
/* @__PURE__ */ jsxs(CardHeader, { className: "text-center", children: [
|
|
36
|
+
/* @__PURE__ */ jsx(
|
|
37
|
+
m.div,
|
|
38
|
+
{
|
|
39
|
+
className: "mx-auto mb-2",
|
|
40
|
+
initial: { scale: 0.8, opacity: 0 },
|
|
41
|
+
animate: { scale: 1, opacity: 1 },
|
|
42
|
+
transition: { ...motionSpring.bouncy, ...motionConfig },
|
|
43
|
+
children: /* @__PURE__ */ jsx("div", { className: "flex h-16 w-16 items-center justify-center rounded-full bg-success/10 shadow-[0_0_24px_rgb(var(--color-success)/0.2)]", children: /* @__PURE__ */ jsx(CheckIcon, { size: 32, className: "text-success" }) })
|
|
44
|
+
}
|
|
45
|
+
),
|
|
46
|
+
/* @__PURE__ */ jsx(CardTitle, { className: "text-2xl", children: title }),
|
|
47
|
+
/* @__PURE__ */ jsx(CardDescription, { children: description })
|
|
48
|
+
] }),
|
|
49
|
+
/* @__PURE__ */ jsxs(CardContent, { className: "grid gap-4", children: [
|
|
50
|
+
autoRedirectSeconds !== void 0 && countdown > 0 && /* @__PURE__ */ jsxs("p", { className: "text-center text-sm text-text-tertiary tabular-nums", children: [
|
|
51
|
+
"Redirecting in ",
|
|
52
|
+
countdown,
|
|
53
|
+
"..."
|
|
54
|
+
] }),
|
|
55
|
+
/* @__PURE__ */ jsx(Button, { variant: "accent", className: "w-full", onClick: onContinue, children: buttonText })
|
|
56
|
+
] })
|
|
57
|
+
] }) });
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export { EmailVerifiedBlock };
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { useHotkey } from './chunk-JVIRZNQ6.js';
|
|
2
|
+
import { SearchCommand } from './chunk-LIJYUSSE.js';
|
|
3
|
+
import { Dialog, DialogContent, DialogTitle } from './chunk-W73JAOHW.js';
|
|
4
|
+
import { Button } from './chunk-7KIDDF3I.js';
|
|
5
|
+
import { SearchIcon } from './chunk-T6BRD7TS.js';
|
|
6
|
+
import { Badge } from './chunk-S4JAHKOP.js';
|
|
7
|
+
import { cn } from './chunk-QYZT24TS.js';
|
|
8
|
+
import { useState, useCallback, useMemo } from 'react';
|
|
9
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
10
|
+
|
|
11
|
+
var EMPTY_ITEMS = [];
|
|
12
|
+
function CommandPaletteBlock({
|
|
13
|
+
items = EMPTY_ITEMS,
|
|
14
|
+
onSelect,
|
|
15
|
+
placeholder = "Search...",
|
|
16
|
+
className
|
|
17
|
+
}) {
|
|
18
|
+
const [open, setOpen] = useState(false);
|
|
19
|
+
const [query, setQuery] = useState("");
|
|
20
|
+
const toggle = useCallback(() => setOpen((prev) => !prev), []);
|
|
21
|
+
useHotkey("mod+k", toggle);
|
|
22
|
+
const filtered = useMemo(
|
|
23
|
+
() => query ? items.filter(
|
|
24
|
+
(item) => item.title.toLowerCase().includes(query.toLowerCase())
|
|
25
|
+
) : items,
|
|
26
|
+
[query, items]
|
|
27
|
+
);
|
|
28
|
+
function handleSelect(result) {
|
|
29
|
+
setOpen(false);
|
|
30
|
+
setQuery("");
|
|
31
|
+
onSelect?.(result);
|
|
32
|
+
}
|
|
33
|
+
return /* @__PURE__ */ jsxs("div", { className: cn(className), children: [
|
|
34
|
+
/* @__PURE__ */ jsxs(
|
|
35
|
+
Button,
|
|
36
|
+
{
|
|
37
|
+
variant: "ghost",
|
|
38
|
+
size: "sm",
|
|
39
|
+
className: "hidden gap-2 text-text-tertiary md:flex",
|
|
40
|
+
onClick: toggle,
|
|
41
|
+
children: [
|
|
42
|
+
/* @__PURE__ */ jsx(SearchIcon, { size: 16 }),
|
|
43
|
+
/* @__PURE__ */ jsx("span", { className: "text-sm", children: placeholder }),
|
|
44
|
+
/* @__PURE__ */ jsxs(
|
|
45
|
+
Badge,
|
|
46
|
+
{
|
|
47
|
+
variant: "outline",
|
|
48
|
+
className: "pointer-events-none hidden h-5 select-none items-center gap-1 font-mono md:inline-flex",
|
|
49
|
+
children: [
|
|
50
|
+
/* @__PURE__ */ jsx("span", { className: "text-xs", children: "\u2318" }),
|
|
51
|
+
"K"
|
|
52
|
+
]
|
|
53
|
+
}
|
|
54
|
+
)
|
|
55
|
+
]
|
|
56
|
+
}
|
|
57
|
+
),
|
|
58
|
+
/* @__PURE__ */ jsx(
|
|
59
|
+
Button,
|
|
60
|
+
{
|
|
61
|
+
variant: "ghost",
|
|
62
|
+
size: "icon",
|
|
63
|
+
className: "md:hidden",
|
|
64
|
+
onClick: toggle,
|
|
65
|
+
"aria-label": "Search",
|
|
66
|
+
children: /* @__PURE__ */ jsx(SearchIcon, { size: 16 })
|
|
67
|
+
}
|
|
68
|
+
),
|
|
69
|
+
/* @__PURE__ */ jsx(Dialog, { open, onOpenChange: setOpen, children: /* @__PURE__ */ jsxs(DialogContent, { className: "max-w-lg gap-0 p-0", children: [
|
|
70
|
+
/* @__PURE__ */ jsx(DialogTitle, { className: "sr-only", children: "Search" }),
|
|
71
|
+
/* @__PURE__ */ jsx(
|
|
72
|
+
SearchCommand,
|
|
73
|
+
{
|
|
74
|
+
value: query,
|
|
75
|
+
onChange: setQuery,
|
|
76
|
+
results: filtered,
|
|
77
|
+
onSelect: handleSelect,
|
|
78
|
+
placeholder,
|
|
79
|
+
showShortcut: false
|
|
80
|
+
}
|
|
81
|
+
)
|
|
82
|
+
] }) })
|
|
83
|
+
] });
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export { CommandPaletteBlock };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MarketingShellPageKit } from './chunk-
|
|
1
|
+
import { MarketingShellPageKit } from './chunk-E4L6LR6P.js';
|
|
2
2
|
import { Typography } from './chunk-N53OMWW2.js';
|
|
3
3
|
import { FieldSet, Field, FieldLabel, FieldDescription } from './chunk-RX5EUODB.js';
|
|
4
4
|
import { Input } from './chunk-AP3XXYAY.js';
|