@frogbotai/next 0.28.0 → 0.30.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/css.css +121 -135
- package/dist/elements/ChannelCell/index.client.js +6 -3
- package/dist/elements/ChannelCell/index.client.js.map +1 -1
- package/dist/elements/ChannelCell/index.css +14 -12
- package/dist/elements/CostUSD/index.client.d.ts +13 -0
- package/dist/elements/CostUSD/index.client.d.ts.map +1 -0
- package/dist/elements/CostUSD/index.client.js +42 -0
- package/dist/elements/CostUSD/index.client.js.map +1 -0
- package/dist/elements/Nav/AccountMenu.js +80 -12
- package/dist/elements/Nav/AccountMenu.js.map +1 -1
- package/dist/elements/Nav/AppSidebar.js +144 -36
- package/dist/elements/Nav/AppSidebar.js.map +1 -1
- package/dist/elements/Nav/CollectionsSection.js +45 -13
- package/dist/elements/Nav/CollectionsSection.js.map +1 -1
- package/dist/elements/Nav/MobileNavToggle.js +11 -3
- package/dist/elements/Nav/MobileNavToggle.js.map +1 -1
- package/dist/elements/Nav/NavItem.d.ts.map +1 -1
- package/dist/elements/Nav/NavItem.js +22 -9
- package/dist/elements/Nav/NavItem.js.map +1 -1
- package/dist/elements/Nav/NavSection.js +47 -7
- package/dist/elements/Nav/NavSection.js.map +1 -1
- package/dist/elements/Nav/RecentsSection.client.js +72 -28
- package/dist/elements/Nav/RecentsSection.client.js.map +1 -1
- package/dist/elements/Nav/RecentsSection.js +19 -9
- package/dist/elements/Nav/RecentsSection.js.map +1 -1
- package/dist/elements/Nav/buildNavModel.js +35 -29
- package/dist/elements/Nav/buildNavModel.js.map +1 -1
- package/dist/elements/Nav/fixtures/consumer/RecentsSection.js +19 -9
- package/dist/elements/Nav/fixtures/consumer/RecentsSection.js.map +1 -1
- package/dist/elements/Nav/fixtures/consumer/config.js +5 -2
- package/dist/elements/Nav/fixtures/consumer/config.js.map +1 -1
- package/dist/elements/Nav/index.client.d.ts.map +1 -1
- package/dist/elements/Nav/index.client.js +96 -30
- package/dist/elements/Nav/index.client.js.map +1 -1
- package/dist/elements/Nav/index.css +404 -407
- package/dist/elements/Nav/index.d.ts.map +1 -1
- package/dist/elements/Nav/index.js +94 -45
- package/dist/elements/Nav/index.js.map +1 -1
- package/dist/elements/Nav/navShellState.js +2 -2
- package/dist/elements/Nav/navShellState.js.map +1 -1
- package/dist/elements/Nav/renderNavIcon.js +11 -4
- package/dist/elements/Nav/renderNavIcon.js.map +1 -1
- package/dist/elements/Nav/sections.css +232 -230
- package/dist/elements/SettingsNav/index.d.ts.map +1 -1
- package/dist/elements/SettingsNav/index.js +59 -3
- package/dist/elements/SettingsNav/index.js.map +1 -1
- package/dist/elements/SignInButtons/index.client.js +44 -8
- package/dist/elements/SignInButtons/index.client.js.map +1 -1
- package/dist/elements/SignInButtons/index.css +1 -1
- package/dist/elements/SignInButtons/index.js +16 -7
- package/dist/elements/SignInButtons/index.js.map +1 -1
- package/dist/elements/StepNavReset/TabTitleSync.d.ts +2 -0
- package/dist/elements/StepNavReset/TabTitleSync.d.ts.map +1 -0
- package/dist/elements/StepNavReset/TabTitleSync.js +47 -0
- package/dist/elements/StepNavReset/TabTitleSync.js.map +1 -0
- package/dist/elements/StepNavReset/index.client.d.ts +6 -0
- package/dist/elements/StepNavReset/index.client.d.ts.map +1 -0
- package/dist/elements/StepNavReset/index.client.js +27 -0
- package/dist/elements/StepNavReset/index.client.js.map +1 -0
- package/dist/elements/ViewSwitcher/index.client.js +19 -10
- package/dist/elements/ViewSwitcher/index.client.js.map +1 -1
- package/dist/elements/ViewSwitcher/index.css +1 -1
- package/dist/exports/ChatView.client.d.ts.map +1 -1
- package/dist/exports/ChatView.client.js +269 -88
- package/dist/exports/ChatView.client.js.map +1 -1
- package/dist/exports/client.d.ts +2 -0
- package/dist/exports/client.d.ts.map +1 -1
- package/dist/exports/client.js +7 -4
- package/dist/exports/client.js.map +1 -1
- package/dist/exports/config.js +1 -0
- package/dist/exports/config.js.map +1 -1
- package/dist/exports/css.js +1 -0
- package/dist/exports/css.js.map +1 -1
- package/dist/exports/layouts.js +15 -4
- package/dist/exports/layouts.js.map +1 -1
- package/dist/exports/routes.d.ts +32 -9
- package/dist/exports/routes.d.ts.map +1 -1
- package/dist/exports/routes.js +5 -2
- package/dist/exports/routes.js.map +1 -1
- package/dist/exports/rsc.js +1 -0
- package/dist/exports/rsc.js.map +1 -1
- package/dist/exports/templates.js +1 -0
- package/dist/exports/templates.js.map +1 -1
- package/dist/exports/views.d.ts +0 -3
- package/dist/exports/views.d.ts.map +1 -1
- package/dist/exports/views.js +274 -110
- package/dist/exports/views.js.map +1 -1
- package/dist/graphics/FrogBotIcon.js +5 -1
- package/dist/graphics/FrogBotIcon.js.map +1 -1
- package/dist/graphics/FrogBotLogo.js +42 -1
- package/dist/graphics/FrogBotLogo.js.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/layers.css +1 -0
- package/dist/templates/Default/index.js +7 -2
- package/dist/templates/Default/index.js.map +1 -1
- package/dist/types.js +2 -1
- package/dist/types.js.map +1 -1
- package/dist/utilities/brandImportMapErrors.js +4 -6
- package/dist/utilities/brandImportMapErrors.js.map +1 -1
- package/dist/views/Board/BoardPreference.client.js +26 -11
- package/dist/views/Board/BoardPreference.client.js.map +1 -1
- package/dist/views/Board/BoardView.client.js +155 -59
- package/dist/views/Board/BoardView.client.js.map +1 -1
- package/dist/views/Board/BoardView.css +58 -56
- package/dist/views/Board/data.js +46 -35
- package/dist/views/Board/data.js.map +1 -1
- package/dist/views/Board/index.js +103 -63
- package/dist/views/Board/index.js.map +1 -1
- package/dist/views/Board/resolveActiveView.js +3 -2
- package/dist/views/Board/resolveActiveView.js.map +1 -1
- package/dist/views/Board/resolveColumns.js +40 -33
- package/dist/views/Board/resolveColumns.js.map +1 -1
- package/dist/views/Calendar/CalendarPreference.client.js +26 -11
- package/dist/views/Calendar/CalendarPreference.client.js.map +1 -1
- package/dist/views/Calendar/CalendarView.client.js +194 -72
- package/dist/views/Calendar/CalendarView.client.js.map +1 -1
- package/dist/views/Calendar/data.js +9 -9
- package/dist/views/Calendar/data.js.map +1 -1
- package/dist/views/Calendar/index.js +83 -52
- package/dist/views/Calendar/index.js.map +1 -1
- package/dist/views/CollectionViewShell.client.d.ts +1 -1
- package/dist/views/CollectionViewShell.client.d.ts.map +1 -1
- package/dist/views/CollectionViewShell.client.js +76 -6
- package/dist/views/CollectionViewShell.client.js.map +1 -1
- package/dist/views/CollectionViewShell.css +1 -1
- package/dist/views/CollectionViewShell.js +34 -12
- package/dist/views/CollectionViewShell.js.map +1 -1
- package/dist/views/CollectionViewSwitcher.js +18 -6
- package/dist/views/CollectionViewSwitcher.js.map +1 -1
- package/dist/views/Connections/ConnectionFields.js +141 -9
- package/dist/views/Connections/ConnectionFields.js.map +1 -1
- package/dist/views/Connections/ConnectionsView.client.js +397 -89
- package/dist/views/Connections/ConnectionsView.client.js.map +1 -1
- package/dist/views/Connections/index.css +229 -227
- package/dist/views/Connections/index.js +34 -22
- package/dist/views/Connections/index.js.map +1 -1
- package/dist/views/Connections/schema.js +75 -50
- package/dist/views/Connections/schema.js.map +1 -1
- package/dist/views/Connections/types.js +2 -1
- package/dist/views/Connections/types.js.map +1 -1
- package/dist/views/CustomCollectionView.js +12 -7
- package/dist/views/CustomCollectionView.js.map +1 -1
- package/dist/views/List/DefaultListView.client.js +197 -52
- package/dist/views/List/DefaultListView.client.js.map +1 -1
- package/dist/views/List/DefaultListView.css +1 -1
- package/dist/views/Settings/metadata.d.ts +6 -0
- package/dist/views/Settings/metadata.d.ts.map +1 -0
- package/dist/views/Settings/metadata.js +40 -0
- package/dist/views/Settings/metadata.js.map +1 -0
- package/dist/views/Settings/resolveSection.d.ts +24 -0
- package/dist/views/Settings/resolveSection.d.ts.map +1 -0
- package/dist/views/Settings/resolveSection.js +24 -0
- package/dist/views/Settings/resolveSection.js.map +1 -0
- package/dist/views/SettingsView.css +133 -131
- package/dist/views/cells.js +10 -17
- package/dist/views/cells.js.map +1 -1
- package/dist/views/collectionViews.js +9 -9
- package/dist/views/collectionViews.js.map +1 -1
- package/dist/views/controls/SortBuilder.client.js +140 -37
- package/dist/views/controls/SortBuilder.client.js.map +1 -1
- package/dist/views/controls/ViewControls.client.js +105 -41
- package/dist/views/controls/ViewControls.client.js.map +1 -1
- package/dist/views/controls/ViewControls.css +1 -1
- package/dist/views/controls/groupBy.js +2 -1
- package/dist/views/controls/groupBy.js.map +1 -1
- package/dist/views/preferences.js +17 -9
- package/dist/views/preferences.js.map +1 -1
- package/dist/withFrogBot.d.ts.map +1 -1
- package/dist/withFrogBot.js +79 -25
- package/dist/withFrogBot.js.map +1 -1
- package/package.json +5 -5
|
@@ -1,231 +1,233 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
.frogbot-nav-section__toggle:
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
.frogbot-nav-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
.frogbot-nav-item__icon
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
.frogbot-recents-
|
|
151
|
-
.frogbot-recents-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
.frogbot-recents-section__item
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
.frogbot-recents-section__item .frogbot-nav-item
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
.frogbot-recents-section__item
|
|
196
|
-
.frogbot-recents-section__item .frogbot-nav-item
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
.frogbot-recents-section__item:
|
|
211
|
-
.frogbot-recents-section__item
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
.frogbot-recents-section__view-all:
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
1
|
+
@layer frogbot {
|
|
2
|
+
.frogbot-nav-section {
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
min-height: 0;
|
|
6
|
+
width: 100%;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.frogbot-nav-section__toggle {
|
|
10
|
+
align-items: center;
|
|
11
|
+
appearance: none;
|
|
12
|
+
background: transparent;
|
|
13
|
+
border: 0;
|
|
14
|
+
color: var(--theme-elevation-600);
|
|
15
|
+
cursor: pointer;
|
|
16
|
+
display: flex;
|
|
17
|
+
font: inherit;
|
|
18
|
+
font-size: 12px;
|
|
19
|
+
font-weight: 500;
|
|
20
|
+
justify-content: space-between;
|
|
21
|
+
padding: 8px 10px 4px;
|
|
22
|
+
text-align: start;
|
|
23
|
+
width: 100%;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.frogbot-nav-section__toggle:hover,
|
|
27
|
+
.frogbot-nav-section__toggle:focus-visible {
|
|
28
|
+
color: var(--theme-elevation-900);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.frogbot-nav-section__toggle:focus-visible,
|
|
32
|
+
.frogbot-nav-item:focus-visible {
|
|
33
|
+
outline: 2px solid var(--theme-success-500);
|
|
34
|
+
outline-offset: -2px;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.frogbot-nav-section__toggle:disabled {
|
|
38
|
+
cursor: default;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.frogbot-nav-section__indicator {
|
|
42
|
+
flex: 0 0 auto;
|
|
43
|
+
transition: transform 200ms ease-out;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.frogbot-nav-section--collapsed .frogbot-nav-section__indicator {
|
|
47
|
+
transform: rotate(-90deg);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.frogbot-nav-section__scroll {
|
|
51
|
+
display: flex;
|
|
52
|
+
flex-direction: column;
|
|
53
|
+
gap: 2px;
|
|
54
|
+
max-height: 100%;
|
|
55
|
+
min-height: 0;
|
|
56
|
+
overflow-y: auto;
|
|
57
|
+
scrollbar-width: none;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.frogbot-nav-section__scroll::-webkit-scrollbar {
|
|
61
|
+
display: none;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.frogbot-nav-item {
|
|
65
|
+
align-items: center;
|
|
66
|
+
background: transparent;
|
|
67
|
+
border-radius: 8px;
|
|
68
|
+
color: var(--theme-elevation-700);
|
|
69
|
+
display: flex;
|
|
70
|
+
font-size: 14px;
|
|
71
|
+
font-weight: 500;
|
|
72
|
+
padding: 8px 10px;
|
|
73
|
+
text-decoration: none;
|
|
74
|
+
transition:
|
|
75
|
+
background 200ms ease-out,
|
|
76
|
+
color 200ms ease-out,
|
|
77
|
+
transform 200ms ease-out;
|
|
78
|
+
width: 100%;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.frogbot-nav-item:hover {
|
|
82
|
+
background: var(--theme-elevation-100);
|
|
83
|
+
color: var(--theme-elevation-900);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.frogbot-nav-item--active {
|
|
87
|
+
background: var(--theme-elevation-150);
|
|
88
|
+
color: var(--theme-elevation-900);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.frogbot-nav-item__icon {
|
|
92
|
+
align-items: center;
|
|
93
|
+
display: flex;
|
|
94
|
+
flex: 0 0 20px;
|
|
95
|
+
height: 20px;
|
|
96
|
+
justify-content: center;
|
|
97
|
+
width: 20px;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.frogbot-nav-item__icon-svg,
|
|
101
|
+
.frogbot-nav-item__icon > svg {
|
|
102
|
+
height: 20px;
|
|
103
|
+
width: 20px;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.frogbot-nav-item__label {
|
|
107
|
+
overflow: hidden;
|
|
108
|
+
text-overflow: ellipsis;
|
|
109
|
+
white-space: nowrap;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.frogbot-recents-section__items .frogbot-nav-item__label {
|
|
113
|
+
flex: 1 1 auto;
|
|
114
|
+
min-width: 0;
|
|
115
|
+
text-overflow: clip;
|
|
116
|
+
-webkit-mask-image: linear-gradient(to right, #000 calc(100% - 16px), transparent);
|
|
117
|
+
mask-image: linear-gradient(to right, #000 calc(100% - 16px), transparent);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.frogbot-nav-item--with-icon .frogbot-nav-item__label {
|
|
121
|
+
margin-inline-start: 8px;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.frogbot-collections-section__group {
|
|
125
|
+
display: flex;
|
|
126
|
+
flex-direction: column;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.frogbot-collections-section__group-label {
|
|
130
|
+
color: var(--theme-elevation-500);
|
|
131
|
+
font-size: 12px;
|
|
132
|
+
font-weight: 500;
|
|
133
|
+
padding: 8px 10px 2px;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.frogbot-collections-section__items {
|
|
137
|
+
display: flex;
|
|
138
|
+
flex-direction: column;
|
|
139
|
+
gap: 2px;
|
|
140
|
+
padding-inline-start: 8px;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.frogbot-recents-section__empty {
|
|
144
|
+
color: var(--theme-elevation-500);
|
|
145
|
+
font-size: 13px;
|
|
146
|
+
margin: 0;
|
|
147
|
+
padding: 8px 10px;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.frogbot-recents-section__groups,
|
|
151
|
+
.frogbot-recents-section__group,
|
|
152
|
+
.frogbot-recents-section__items {
|
|
153
|
+
display: flex;
|
|
154
|
+
flex-direction: column;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.frogbot-recents-section__groups {
|
|
158
|
+
color: var(--theme-base-900);
|
|
159
|
+
gap: 4px;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.frogbot-recents-section__group-label {
|
|
163
|
+
color: var(--theme-elevation-500);
|
|
164
|
+
font-size: 11px;
|
|
165
|
+
font-weight: 500;
|
|
166
|
+
margin: 0;
|
|
167
|
+
padding: 8px 10px 2px;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.frogbot-recents-section__items {
|
|
171
|
+
gap: 2px;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.frogbot-recents-section__item {
|
|
175
|
+
align-items: center;
|
|
176
|
+
border-radius: 8px;
|
|
177
|
+
display: flex;
|
|
178
|
+
transition: background 200ms ease-out;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.frogbot-recents-section__item:hover,
|
|
182
|
+
.frogbot-recents-section__item.fb-chat-row-actions__row--open {
|
|
183
|
+
background: var(--theme-elevation-100);
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.frogbot-recents-section__item:has(.frogbot-nav-item--active) {
|
|
187
|
+
background: var(--theme-elevation-150);
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.frogbot-recents-section__item .frogbot-nav-item:hover,
|
|
191
|
+
.frogbot-recents-section__item .frogbot-nav-item--active {
|
|
192
|
+
background: transparent;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
.frogbot-recents-section__item:hover .frogbot-nav-item,
|
|
196
|
+
.frogbot-recents-section__item.fb-chat-row-actions__row--open .frogbot-nav-item,
|
|
197
|
+
.frogbot-recents-section__item .frogbot-nav-item--active {
|
|
198
|
+
color: var(--theme-elevation-900);
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.frogbot-recents-section__item .fb-chat-row-actions__trigger:hover {
|
|
202
|
+
background: var(--theme-elevation-250);
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
.frogbot-recents-section__item .frogbot-nav-item {
|
|
206
|
+
flex: 1;
|
|
207
|
+
min-width: 0;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.frogbot-recents-section__item:hover .frogbot-nav-item,
|
|
211
|
+
.frogbot-recents-section__item:focus-within .frogbot-nav-item,
|
|
212
|
+
.frogbot-recents-section__item.fb-chat-row-actions__row--open .frogbot-nav-item {
|
|
213
|
+
padding-inline-end: 34px;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
.frogbot-recents-section__view-all {
|
|
217
|
+
color: var(--theme-elevation-600);
|
|
218
|
+
font-size: 12px;
|
|
219
|
+
font-weight: 500;
|
|
220
|
+
padding: 8px 10px;
|
|
221
|
+
text-decoration: none;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
.frogbot-recents-section__view-all:hover,
|
|
225
|
+
.frogbot-recents-section__view-all:focus-visible {
|
|
226
|
+
color: var(--theme-elevation-900);
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
.frogbot-recents-section__view-all:focus-visible {
|
|
230
|
+
outline: 2px solid var(--theme-success-500);
|
|
231
|
+
outline-offset: -2px;
|
|
232
|
+
}
|
|
231
233
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/elements/SettingsNav/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,MAAM,gBAAgB,GAAG;IAC7B,IAAI,EAAE,SAAS,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,KAAK,gBAAgB,GAAG;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,gBAAgB,EAAE,CAAC;CAC7B,CAAC;AAEF,wBAAgB,WAAW,CAAC,EAAE,WAAW,EAAE,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,EAAE,gBAAgB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/elements/SettingsNav/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,MAAM,gBAAgB,GAAG;IAC7B,IAAI,EAAE,SAAS,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,KAAK,gBAAgB,GAAG;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,gBAAgB,EAAE,CAAC;CAC7B,CAAC;AAEF,wBAAgB,WAAW,CAAC,EAAE,WAAW,EAAE,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,EAAE,gBAAgB,2CAoC7F"}
|
|
@@ -3,9 +3,65 @@ import { ChevronLeftIcon, ProfileIcon } from '@frogbotai/ui/icons';
|
|
|
3
3
|
import { Link } from '@payloadcms/ui';
|
|
4
4
|
import { formatAdminURL } from 'payload/shared';
|
|
5
5
|
export function SettingsNav({ accountPath, activePath, adminRoute, entries }) {
|
|
6
|
-
return
|
|
6
|
+
return /*#__PURE__*/ _jsxs("aside", {
|
|
7
|
+
className: "frogbot-settings-nav",
|
|
8
|
+
children: [
|
|
9
|
+
/*#__PURE__*/ _jsxs(Link, {
|
|
10
|
+
className: "frogbot-settings-nav__back",
|
|
11
|
+
href: adminRoute,
|
|
12
|
+
prefetch: false,
|
|
13
|
+
children: [
|
|
14
|
+
/*#__PURE__*/ _jsx(ChevronLeftIcon, {
|
|
15
|
+
size: 18
|
|
16
|
+
}),
|
|
17
|
+
"Back to app"
|
|
18
|
+
]
|
|
19
|
+
}),
|
|
20
|
+
/*#__PURE__*/ _jsx("p", {
|
|
21
|
+
className: "frogbot-settings-nav__heading",
|
|
22
|
+
children: "Settings"
|
|
23
|
+
}),
|
|
24
|
+
/*#__PURE__*/ _jsx("nav", {
|
|
25
|
+
className: "frogbot-settings-nav__items",
|
|
26
|
+
children: entries.map((entry)=>{
|
|
7
27
|
const active = activePath === entry.path || activePath.startsWith(`${entry.path}/`);
|
|
8
|
-
return
|
|
9
|
-
|
|
28
|
+
return /*#__PURE__*/ _jsxs(Link, {
|
|
29
|
+
"aria-current": active ? 'page' : undefined,
|
|
30
|
+
className: `frogbot-settings-nav__item${active ? ' frogbot-settings-nav__item--active' : ''}`,
|
|
31
|
+
href: formatAdminURL({
|
|
32
|
+
adminRoute,
|
|
33
|
+
path: `/settings/${entry.path}`
|
|
34
|
+
}),
|
|
35
|
+
prefetch: false,
|
|
36
|
+
children: [
|
|
37
|
+
/*#__PURE__*/ _jsx("span", {
|
|
38
|
+
className: "frogbot-settings-nav__icon",
|
|
39
|
+
children: entry.icon
|
|
40
|
+
}),
|
|
41
|
+
entry.label
|
|
42
|
+
]
|
|
43
|
+
}, entry.path);
|
|
44
|
+
})
|
|
45
|
+
}),
|
|
46
|
+
/*#__PURE__*/ _jsx("div", {
|
|
47
|
+
className: "frogbot-settings-nav__footer",
|
|
48
|
+
children: /*#__PURE__*/ _jsxs(Link, {
|
|
49
|
+
className: "frogbot-settings-nav__item",
|
|
50
|
+
href: accountPath,
|
|
51
|
+
prefetch: false,
|
|
52
|
+
children: [
|
|
53
|
+
/*#__PURE__*/ _jsx("span", {
|
|
54
|
+
className: "frogbot-settings-nav__icon",
|
|
55
|
+
children: /*#__PURE__*/ _jsx(ProfileIcon, {
|
|
56
|
+
size: 18
|
|
57
|
+
})
|
|
58
|
+
}),
|
|
59
|
+
"Account"
|
|
60
|
+
]
|
|
61
|
+
})
|
|
62
|
+
})
|
|
63
|
+
]
|
|
64
|
+
});
|
|
10
65
|
}
|
|
66
|
+
|
|
11
67
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"sources":["../../../src/elements/SettingsNav/index.tsx"],"names":["ChevronLeftIcon","ProfileIcon","Link","formatAdminURL","SettingsNav","accountPath","activePath","adminRoute","entries","aside","className","href","prefetch","size","p","nav","map","entry","active","path","startsWith","aria-current","undefined","span","icon","label","div"],"mappings":";AAAA,SAASA,eAAe,EAAEC,WAAW,QAAQ,sBAAsB;AACnE,SAASC,IAAI,QAAQ,iBAAiB;AACtC,SAASC,cAAc,QAAQ,iBAAiB;AAgBhD,OAAO,SAASC,YAAY,EAAEC,WAAW,EAAEC,UAAU,EAAEC,UAAU,EAAEC,OAAO,EAAoB;IAC5F,qBACE,MAACC;QAAMC,WAAU;;0BACf,MAACR;gBAAKQ,WAAU;gBAA6BC,MAAMJ;gBAAYK,UAAU;;kCACvE,KAACZ;wBAAgBa,MAAM;;oBAAM;;;0BAG/B,KAACC;gBAAEJ,WAAU;0BAAgC;;0BAC7C,KAACK;gBAAIL,WAAU;0BACZF,QAAQQ,GAAG,CAAC,CAACC;oBACZ,MAAMC,SAASZ,eAAeW,MAAME,IAAI,IAAIb,WAAWc,UAAU,CAAC,GAAGH,MAAME,IAAI,CAAC,CAAC,CAAC;oBAElF,qBACE,MAACjB;wBACCmB,gBAAcH,SAAS,SAASI;wBAChCZ,WAAW,CAAC,0BAA0B,EAAEQ,SAAS,wCAAwC,IAAI;wBAC7FP,MAAMR,eAAe;4BAAEI;4BAAYY,MAAM,CAAC,UAAU,EAAEF,MAAME,IAAI,EAAE;wBAAC;wBAEnEP,UAAU;;0CAEV,KAACW;gCAAKb,WAAU;0CAA8BO,MAAMO,IAAI;;4BACvDP,MAAMQ,KAAK;;uBAJPR,MAAME,IAAI;gBAOrB;;0BAEF,KAACO;gBAAIhB,WAAU;0BACb,cAAA,MAACR;oBAAKQ,WAAU;oBAA6BC,MAAMN;oBAAaO,UAAU;;sCACxE,KAACW;4BAAKb,WAAU;sCACd,cAAA,KAACT;gCAAYY,MAAM;;;wBACd;;;;;;AAMjB","file":"index.js"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { DropboxIcon, GitHubIcon, GoogleIcon, MicrosoftIcon, NotionIcon, SlackIcon, StripeIcon, XeroIcon, ZoomIcon
|
|
3
|
+
import { DropboxIcon, GitHubIcon, GoogleIcon, MicrosoftIcon, NotionIcon, SlackIcon, StripeIcon, XeroIcon, ZoomIcon } from '@frogbotai/ui/icons';
|
|
4
4
|
import { Button } from '@payloadcms/ui';
|
|
5
5
|
const baseClass = 'oauth-login-buttons';
|
|
6
6
|
const providerIcons = {
|
|
@@ -12,14 +12,50 @@ const providerIcons = {
|
|
|
12
12
|
slack: SlackIcon,
|
|
13
13
|
stripe: StripeIcon,
|
|
14
14
|
xero: XeroIcon,
|
|
15
|
-
zoom: ZoomIcon
|
|
15
|
+
zoom: ZoomIcon
|
|
16
16
|
};
|
|
17
|
-
export function SignInButtonsClient({ methods, authorizePath, returnTo, showDivider = true
|
|
18
|
-
if (!methods.length)
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
export function SignInButtonsClient({ methods, authorizePath, returnTo, showDivider = true }) {
|
|
18
|
+
if (!methods.length) return null;
|
|
19
|
+
return /*#__PURE__*/ _jsxs("div", {
|
|
20
|
+
className: baseClass,
|
|
21
|
+
children: [
|
|
22
|
+
showDivider && /*#__PURE__*/ _jsxs("div", {
|
|
23
|
+
className: `${baseClass}__separator`,
|
|
24
|
+
children: [
|
|
25
|
+
/*#__PURE__*/ _jsx("span", {
|
|
26
|
+
className: `${baseClass}__rule`
|
|
27
|
+
}),
|
|
28
|
+
/*#__PURE__*/ _jsx("span", {
|
|
29
|
+
className: `${baseClass}__label`,
|
|
30
|
+
children: "or"
|
|
31
|
+
}),
|
|
32
|
+
/*#__PURE__*/ _jsx("span", {
|
|
33
|
+
className: `${baseClass}__rule`
|
|
34
|
+
})
|
|
35
|
+
]
|
|
36
|
+
}),
|
|
37
|
+
methods.map((method)=>{
|
|
21
38
|
const Icon = providerIcons[method.piece];
|
|
22
|
-
return
|
|
23
|
-
|
|
39
|
+
return /*#__PURE__*/ _jsxs(Button, {
|
|
40
|
+
buttonStyle: "secondary",
|
|
41
|
+
el: "link",
|
|
42
|
+
icon: Icon ? /*#__PURE__*/ _jsx(Icon, {
|
|
43
|
+
"aria-hidden": "true",
|
|
44
|
+
size: 20
|
|
45
|
+
}) : undefined,
|
|
46
|
+
iconPosition: "left",
|
|
47
|
+
iconStyle: "none",
|
|
48
|
+
round: true,
|
|
49
|
+
size: "large",
|
|
50
|
+
to: `${authorizePath.replace(/\/+$/, '')}/${encodeURIComponent(method.slug)}${returnTo ? `?returnTo=${encodeURIComponent(returnTo)}` : ''}`,
|
|
51
|
+
children: [
|
|
52
|
+
"Continue with ",
|
|
53
|
+
method.label
|
|
54
|
+
]
|
|
55
|
+
}, method.slug);
|
|
56
|
+
})
|
|
57
|
+
]
|
|
58
|
+
});
|
|
24
59
|
}
|
|
60
|
+
|
|
25
61
|
//# sourceMappingURL=index.client.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"sources":["../../../src/elements/SignInButtons/index.client.tsx"],"names":["DropboxIcon","GitHubIcon","GoogleIcon","MicrosoftIcon","NotionIcon","SlackIcon","StripeIcon","XeroIcon","ZoomIcon","Button","baseClass","providerIcons","dropbox","github","google","microsoft","notion","slack","stripe","xero","zoom","SignInButtonsClient","methods","authorizePath","returnTo","showDivider","length","div","className","span","map","method","Icon","piece","buttonStyle","el","icon","aria-hidden","size","undefined","iconPosition","iconStyle","round","to","replace","encodeURIComponent","slug","label"],"mappings":"AAAA;;AAEA,SACEA,WAAW,EACXC,UAAU,EACVC,UAAU,EAEVC,aAAa,EACbC,UAAU,EACVC,SAAS,EACTC,UAAU,EACVC,QAAQ,EACRC,QAAQ,QACH,sBAAsB;AAC7B,SAASC,MAAM,QAAQ,iBAAiB;AAExC,MAAMC,YAAY;AAClB,MAAMC,gBAA4C;IAChDC,SAASZ;IACTa,QAAQZ;IACRa,QAAQZ;IACRa,WAAWZ;IACXa,QAAQZ;IACRa,OAAOZ;IACPa,QAAQZ;IACRa,MAAMZ;IACNa,MAAMZ;AACR;AASA,OAAO,SAASa,oBAAoB,EAClCC,OAAO,EACPC,aAAa,EACbC,QAAQ,EACRC,cAAc,IAAI,EACO;IACzB,IAAI,CAACH,QAAQI,MAAM,EAAE,OAAO;IAC5B,qBACE,MAACC;QAAIC,WAAWlB;;YACbe,6BACC,MAACE;gBAAIC,WAAW,GAAGlB,UAAU,WAAW,CAAC;;kCACvC,KAACmB;wBAAKD,WAAW,GAAGlB,UAAU,MAAM,CAAC;;kCACrC,KAACmB;wBAAKD,WAAW,GAAGlB,UAAU,OAAO,CAAC;kCAAE;;kCACxC,KAACmB;wBAAKD,WAAW,GAAGlB,UAAU,MAAM,CAAC;;;;YAGxCY,QAAQQ,GAAG,CAAC,CAACC;gBACZ,MAAMC,OAAOrB,aAAa,CAACoB,OAAOE,KAAK,CAAC;gBACxC,qBACE,MAACxB;oBACCyB,aAAY;oBACZC,IAAG;oBACHC,MAAMJ,qBAAO,KAACA;wBAAKK,eAAY;wBAAOC,MAAM;yBAASC;oBACrDC,cAAa;oBACbC,WAAU;oBAEVC,KAAK;oBACLJ,MAAK;oBACLK,IAAI,GAAGpB,cAAcqB,OAAO,CAAC,QAAQ,IAAI,CAAC,EAAEC,mBAAmBd,OAAOe,IAAI,IAAItB,WAAW,CAAC,UAAU,EAAEqB,mBAAmBrB,WAAW,GAAG,IAAI;;wBAC5I;wBACgBO,OAAOgB,KAAK;;mBALtBhB,OAAOe,IAAI;YAQtB;;;AAGN","file":"index.client.js"}
|