astro-tractstack 2.0.47 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +35 -39
- package/package.json +25 -20
- package/templates/src/components/Footer.astro +4 -4
- package/templates/src/components/Header.astro +6 -6
- package/templates/src/components/Menu.tsx +15 -15
- package/templates/src/components/codehooks/BunnyVideoSetup.tsx +6 -6
- package/templates/src/components/codehooks/EpinetDurationSelector.tsx +3 -3
- package/templates/src/components/codehooks/FeaturedArticle.astro +1 -1
- package/templates/src/components/codehooks/FeaturedArticleSetup.tsx +3 -3
- package/templates/src/components/codehooks/ListContentSetup.tsx +2 -2
- package/templates/src/components/codehooks/ProductCardSetup.tsx +1 -1
- package/templates/src/components/codehooks/ProductGridSetup.tsx +2 -2
- package/templates/src/components/codehooks/SandboxRegisterForm.tsx +3 -3
- package/templates/src/components/compositor/Compositor.tsx +1 -1
- package/templates/src/components/compositor/elements/Belief.tsx +1 -1
- package/templates/src/components/compositor/elements/BunnyVideo.tsx +2 -2
- package/templates/src/components/compositor/elements/SignUp.tsx +1 -1
- package/templates/src/components/compositor/elements/ToggleBelief.tsx +1 -1
- package/templates/src/components/compositor/nodes/GhostInsertBlock.tsx +1 -1
- package/templates/src/components/compositor/nodes/GridLayout.tsx +1 -1
- package/templates/src/components/compositor/nodes/tagElements/TabIndicator.tsx +1 -1
- package/templates/src/components/compositor/preview/ListContentPreview.tsx +8 -8
- package/templates/src/components/edit/Header.tsx +1 -1
- package/templates/src/components/edit/SettingsPanel.tsx +3 -3
- package/templates/src/components/edit/ToolBar.tsx +3 -3
- package/templates/src/components/edit/ToolMode.tsx +5 -5
- package/templates/src/components/edit/pane/AddPanePanel.tsx +5 -5
- package/templates/src/components/edit/pane/AddPanePanel_break.tsx +6 -6
- package/templates/src/components/edit/pane/AddPanePanel_codehook.tsx +2 -2
- package/templates/src/components/edit/pane/AddPanePanel_new.tsx +2 -2
- package/templates/src/components/edit/pane/AddPanePanel_reuse.tsx +4 -4
- package/templates/src/components/edit/pane/AiRestylePaneModal.tsx +2 -2
- package/templates/src/components/edit/pane/ConfigPanePanel.tsx +1 -1
- package/templates/src/components/edit/pane/PanePanel_impression.tsx +4 -4
- package/templates/src/components/edit/pane/RestylePaneModal.tsx +3 -3
- package/templates/src/components/edit/pane/steps/AiDesignStep.tsx +2 -2
- package/templates/src/components/edit/pane/steps/CopyInputStep.tsx +5 -5
- package/templates/src/components/edit/panels/StyleBreakPanel.tsx +2 -2
- package/templates/src/components/edit/panels/StyleCodeHookPanel.tsx +6 -6
- package/templates/src/components/edit/panels/StyleElementPanel.tsx +5 -5
- package/templates/src/components/edit/panels/StyleElementPanel_add.tsx +6 -6
- package/templates/src/components/edit/panels/StyleElementPanel_remove.tsx +1 -1
- package/templates/src/components/edit/panels/StyleElementPanel_update.tsx +3 -3
- package/templates/src/components/edit/panels/StyleImagePanel.tsx +8 -8
- package/templates/src/components/edit/panels/StyleImagePanel_add.tsx +6 -6
- package/templates/src/components/edit/panels/StyleImagePanel_remove.tsx +1 -1
- package/templates/src/components/edit/panels/StyleImagePanel_update.tsx +3 -3
- package/templates/src/components/edit/panels/StyleLiElementPanel.tsx +4 -4
- package/templates/src/components/edit/panels/StyleLiElementPanel_add.tsx +6 -6
- package/templates/src/components/edit/panels/StyleLiElementPanel_remove.tsx +1 -1
- package/templates/src/components/edit/panels/StyleLiElementPanel_update.tsx +3 -3
- package/templates/src/components/edit/panels/StyleLinkPanel.tsx +5 -5
- package/templates/src/components/edit/panels/StyleLinkPanel_add.tsx +6 -6
- package/templates/src/components/edit/panels/StyleLinkPanel_remove.tsx +1 -1
- package/templates/src/components/edit/panels/StyleLinkPanel_update.tsx +1 -1
- package/templates/src/components/edit/panels/StyleParentPanel.tsx +9 -9
- package/templates/src/components/edit/panels/StyleParentPanel_add.tsx +6 -6
- package/templates/src/components/edit/panels/StyleParentPanel_deleteLayer.tsx +2 -2
- package/templates/src/components/edit/panels/StyleParentPanel_remove.tsx +1 -1
- package/templates/src/components/edit/panels/StyleParentPanel_update.tsx +1 -1
- package/templates/src/components/edit/panels/StyleWidgetPanel.tsx +7 -7
- package/templates/src/components/edit/panels/StyleWidgetPanel_add.tsx +6 -6
- package/templates/src/components/edit/panels/StyleWidgetPanel_remove.tsx +1 -1
- package/templates/src/components/edit/panels/StyleWidgetPanel_update.tsx +3 -3
- package/templates/src/components/edit/panels/StyleWordCarouselPanel.tsx +1 -1
- package/templates/src/components/edit/state/SaveModal.tsx +1 -1
- package/templates/src/components/edit/state/SaveToLibraryModal.tsx +2 -2
- package/templates/src/components/edit/state/StylesMemory.tsx +1 -1
- package/templates/src/components/edit/storyfragment/StoryFragmentConfigPanel.tsx +1 -1
- package/templates/src/components/edit/storyfragment/StoryFragmentPanel_menu.tsx +5 -5
- package/templates/src/components/edit/widgets/BunnyWidget.tsx +5 -5
- package/templates/src/components/edit/widgets/InteractiveDisclosureWidget.tsx +1 -1
- package/templates/src/components/edit/widgets/SignupWidget.tsx +3 -3
- package/templates/src/components/fields/ActionBuilderTimeSelector.tsx +7 -7
- package/templates/src/components/fields/ArtpackImage.tsx +15 -15
- package/templates/src/components/fields/BackgroundImage.tsx +13 -13
- package/templates/src/components/fields/BackgroundImageWrapper.tsx +3 -3
- package/templates/src/components/fields/ColorPickerCombo.tsx +8 -8
- package/templates/src/components/fields/ImageUpload.tsx +8 -8
- package/templates/src/components/fields/PaneBreakCollectionSelector.tsx +3 -3
- package/templates/src/components/fields/PaneBreakShapeSelector.tsx +4 -4
- package/templates/src/components/fields/SelectedTailwindClass.tsx +2 -2
- package/templates/src/components/fields/ViewportComboBox.tsx +4 -4
- package/templates/src/components/form/ActionBuilderField.tsx +1 -1
- package/templates/src/components/form/ActionBuilderSlugSelector.tsx +1 -1
- package/templates/src/components/form/UnsavedChangesBar.tsx +1 -1
- package/templates/src/components/form/advanced/APIConfigSection.tsx +2 -2
- package/templates/src/components/form/advanced/AuthConfigSection.tsx +2 -2
- package/templates/src/components/form/brand/BrandColorsSection.tsx +1 -1
- package/templates/src/components/profile/ProfileCreate.tsx +4 -4
- package/templates/src/components/profile/ProfileEdit.tsx +4 -4
- package/templates/src/components/profile/ProfileSwitch.tsx +2 -2
- package/templates/src/components/profile/ProfileUnlock.tsx +3 -3
- package/templates/src/components/search/SearchModal.tsx +10 -10
- package/templates/src/components/search/SearchResults.tsx +10 -10
- package/templates/src/components/search/SearchWrapper.tsx +1 -1
- package/templates/src/components/storykeep/Dashboard.tsx +1 -1
- package/templates/src/components/storykeep/Dashboard_Advanced.tsx +2 -2
- package/templates/src/components/storykeep/controls/content/BeliefForm.tsx +1 -1
- package/templates/src/components/storykeep/controls/content/ContentSummary.tsx +2 -2
- package/templates/src/components/storykeep/controls/content/KnownResourceTable.tsx +1 -1
- package/templates/src/components/storykeep/controls/content/ManageContent.tsx +2 -2
- package/templates/src/components/storykeep/controls/content/MenuForm.tsx +1 -1
- package/templates/src/components/storykeep/controls/content/ResourceTable.tsx +1 -1
- package/templates/src/components/widgets/Impression.tsx +2 -2
- package/templates/src/components/widgets/ImpressionWrapper.tsx +2 -2
- package/templates/src/hooks/useSearch.ts +1 -1
- package/templates/src/layouts/Layout.astro +2 -2
- package/templates/src/pages/[...slug]/edit.astro +3 -3
- package/templates/src/pages/[...slug].astro +1 -1
- package/templates/src/pages/context/[...contextSlug]/edit.astro +3 -3
- package/templates/src/pages/maint.astro +9 -9
- package/templates/src/pages/sandbox.astro +3 -3
- package/templates/src/pages/storykeep/login.astro +6 -6
- package/templates/src/types/formTypes.ts +6 -4
- package/templates/src/types/nodeProps.ts +1 -1
- package/templates/src/types/tractstack.ts +1 -2
- package/templates/src/utils/compositor/nodesHelper.ts +1 -1
- package/templates/src/utils/compositor/typeGuards.ts +3 -3
|
@@ -262,9 +262,9 @@ const StyleElementPanelAdd = ({
|
|
|
262
262
|
id="show-advanced"
|
|
263
263
|
checked={showAdvanced}
|
|
264
264
|
onChange={(e) => setShowAdvanced(e.target.checked)}
|
|
265
|
-
className="
|
|
265
|
+
className="h-4 w-4 rounded border-mydarkgrey text-cyan-600 focus:ring-cyan-600"
|
|
266
266
|
/>
|
|
267
|
-
<label htmlFor="show-advanced" className="text-
|
|
267
|
+
<label htmlFor="show-advanced" className="text-sm text-mydarkgrey">
|
|
268
268
|
Show Advanced Styles
|
|
269
269
|
</label>
|
|
270
270
|
</div>
|
|
@@ -286,13 +286,13 @@ const StyleElementPanelAdd = ({
|
|
|
286
286
|
<Combobox.Control ref={comboboxRef}>
|
|
287
287
|
<div className="relative">
|
|
288
288
|
<Combobox.Input
|
|
289
|
-
className="
|
|
289
|
+
className="w-full rounded-md border-mydarkgrey py-2 pl-3 pr-10 text-xl shadow-sm focus:border-myblue focus:ring-myblue"
|
|
290
290
|
onChange={(e) => setQuery(e.target.value)}
|
|
291
291
|
placeholder="Search styles..."
|
|
292
292
|
/>
|
|
293
293
|
<Combobox.Trigger className="absolute inset-y-0 right-0 flex items-center pr-2">
|
|
294
294
|
<ChevronUpDownIcon
|
|
295
|
-
className="
|
|
295
|
+
className="h-5 w-5 text-mydarkgrey"
|
|
296
296
|
aria-hidden="true"
|
|
297
297
|
/>
|
|
298
298
|
</Combobox.Trigger>
|
|
@@ -303,7 +303,7 @@ const StyleElementPanelAdd = ({
|
|
|
303
303
|
<Combobox.Positioner style={{ zIndex: 1002 }}>
|
|
304
304
|
<Combobox.Content className="max-h-64 w-full overflow-auto rounded-md bg-white py-1 text-base shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none">
|
|
305
305
|
{collection.items.length === 0 ? (
|
|
306
|
-
<div className="
|
|
306
|
+
<div className="relative cursor-default select-none px-4 py-2 text-mydarkgrey">
|
|
307
307
|
Nothing found.
|
|
308
308
|
</div>
|
|
309
309
|
) : (
|
|
@@ -339,7 +339,7 @@ const StyleElementPanelAdd = ({
|
|
|
339
339
|
<button
|
|
340
340
|
key={style.key}
|
|
341
341
|
onClick={() => handleSelect({ value: [style.key] })}
|
|
342
|
-
className="
|
|
342
|
+
className="inline-flex items-center rounded-md bg-slate-50 px-3 py-2 text-sm text-black transition-colors duration-200 hover:bg-mygreen/20"
|
|
343
343
|
>
|
|
344
344
|
<span className="font-bold">{style.title}</span>
|
|
345
345
|
</button>
|
|
@@ -140,7 +140,7 @@ const StyleElementRemovePanel = ({
|
|
|
140
140
|
Remove <span className="font-bold">{friendlyName}</span>?
|
|
141
141
|
</h3>
|
|
142
142
|
<div className="space-y-4 rounded bg-slate-50 p-6">
|
|
143
|
-
<ul className="
|
|
143
|
+
<ul className="flex flex-wrap gap-x-4 gap-y-1 text-mydarkgrey">
|
|
144
144
|
<li>
|
|
145
145
|
<em>Are you sure?</em>
|
|
146
146
|
</li>
|
|
@@ -289,9 +289,9 @@ const StyleElementUpdatePanel = ({
|
|
|
289
289
|
checked={isOverridden}
|
|
290
290
|
onChange={(e) => handleToggleOverride(e.target.checked)}
|
|
291
291
|
disabled={node.tagName === 'span'}
|
|
292
|
-
className="border-mydarkgrey text-myorange focus:ring-myorange
|
|
292
|
+
className="h-4 w-4 rounded border-mydarkgrey text-myorange focus:ring-myorange disabled:opacity-50"
|
|
293
293
|
/>
|
|
294
|
-
<span className="text-
|
|
294
|
+
<span className="text-sm text-mydarkgrey">
|
|
295
295
|
{node.tagName === 'span'
|
|
296
296
|
? 'Styling this selection (Override mode).'
|
|
297
297
|
: isOverridden
|
|
@@ -300,7 +300,7 @@ const StyleElementUpdatePanel = ({
|
|
|
300
300
|
</span>
|
|
301
301
|
</div>
|
|
302
302
|
|
|
303
|
-
<div className="
|
|
303
|
+
<div className="my-3 flex flex-col gap-y-2.5 text-xl text-mydarkgrey">
|
|
304
304
|
<ViewportComboBox
|
|
305
305
|
value={mobileValue}
|
|
306
306
|
onFinalChange={handleFinalChange}
|
|
@@ -320,7 +320,7 @@ const StyleImagePanel = ({
|
|
|
320
320
|
/>
|
|
321
321
|
|
|
322
322
|
<div>
|
|
323
|
-
<label className="text-
|
|
323
|
+
<label className="block text-sm text-mydarkgrey">
|
|
324
324
|
Alt Description
|
|
325
325
|
</label>
|
|
326
326
|
<input
|
|
@@ -333,7 +333,7 @@ const StyleImagePanel = ({
|
|
|
333
333
|
e.currentTarget.blur();
|
|
334
334
|
}
|
|
335
335
|
}}
|
|
336
|
-
className="
|
|
336
|
+
className="w-full rounded-md border-mydarkgrey py-2 pl-3 text-base"
|
|
337
337
|
placeholder="Describe the image..."
|
|
338
338
|
/>
|
|
339
339
|
</div>
|
|
@@ -357,14 +357,14 @@ const StyleImagePanel = ({
|
|
|
357
357
|
)}
|
|
358
358
|
|
|
359
359
|
<div className="space-y-4">
|
|
360
|
-
<ul className="
|
|
360
|
+
<ul className="flex flex-wrap gap-x-4 gap-y-1 text-mydarkgrey">
|
|
361
361
|
<li>
|
|
362
362
|
<em>Actions:</em>
|
|
363
363
|
</li>
|
|
364
364
|
<li>
|
|
365
365
|
<button
|
|
366
366
|
onClick={handleImgAdd}
|
|
367
|
-
className="text-myblue
|
|
367
|
+
className="font-bold text-myblue underline hover:text-black"
|
|
368
368
|
>
|
|
369
369
|
Add Style
|
|
370
370
|
</button>
|
|
@@ -400,14 +400,14 @@ const StyleImagePanel = ({
|
|
|
400
400
|
)}
|
|
401
401
|
|
|
402
402
|
<div className="space-y-4">
|
|
403
|
-
<ul className="
|
|
403
|
+
<ul className="flex flex-wrap gap-x-4 gap-y-1 text-mydarkgrey">
|
|
404
404
|
<li>
|
|
405
405
|
<em>Actions:</em>
|
|
406
406
|
</li>
|
|
407
407
|
<li>
|
|
408
408
|
<button
|
|
409
409
|
onClick={handleContainerAdd}
|
|
410
|
-
className="text-myblue
|
|
410
|
+
className="font-bold text-myblue underline hover:text-black"
|
|
411
411
|
>
|
|
412
412
|
Add Style
|
|
413
413
|
</button>
|
|
@@ -441,14 +441,14 @@ const StyleImagePanel = ({
|
|
|
441
441
|
)}
|
|
442
442
|
|
|
443
443
|
<div className="space-y-4">
|
|
444
|
-
<ul className="
|
|
444
|
+
<ul className="flex flex-wrap gap-x-4 gap-y-1 text-mydarkgrey">
|
|
445
445
|
<li>
|
|
446
446
|
<em>Actions:</em>
|
|
447
447
|
</li>
|
|
448
448
|
<li>
|
|
449
449
|
<button
|
|
450
450
|
onClick={handleOuterAdd}
|
|
451
|
-
className="text-myblue
|
|
451
|
+
className="font-bold text-myblue underline hover:text-black"
|
|
452
452
|
>
|
|
453
453
|
Add Style
|
|
454
454
|
</button>
|
|
@@ -217,9 +217,9 @@ const StyleImagePanelAdd = ({ node, parentNode, childId }: BasePanelProps) => {
|
|
|
217
217
|
id="show-advanced"
|
|
218
218
|
checked={showAdvanced}
|
|
219
219
|
onChange={(e) => setShowAdvanced(e.target.checked)}
|
|
220
|
-
className="
|
|
220
|
+
className="h-4 w-4 rounded border-mydarkgrey text-cyan-600 focus:ring-cyan-600"
|
|
221
221
|
/>
|
|
222
|
-
<label htmlFor="show-advanced" className="text-
|
|
222
|
+
<label htmlFor="show-advanced" className="text-sm text-mydarkgrey">
|
|
223
223
|
Show Advanced Styles
|
|
224
224
|
</label>
|
|
225
225
|
</div>
|
|
@@ -241,13 +241,13 @@ const StyleImagePanelAdd = ({ node, parentNode, childId }: BasePanelProps) => {
|
|
|
241
241
|
<Combobox.Control ref={comboboxRef}>
|
|
242
242
|
<div className="relative">
|
|
243
243
|
<Combobox.Input
|
|
244
|
-
className="
|
|
244
|
+
className="w-full rounded-md border-mydarkgrey py-2 pl-3 pr-10 text-xl shadow-sm focus:border-myblue focus:ring-myblue"
|
|
245
245
|
onChange={(e) => setQuery(e.target.value)}
|
|
246
246
|
placeholder="Search styles..."
|
|
247
247
|
/>
|
|
248
248
|
<Combobox.Trigger className="absolute inset-y-0 right-0 flex items-center pr-2">
|
|
249
249
|
<ChevronUpDownIcon
|
|
250
|
-
className="
|
|
250
|
+
className="h-5 w-5 text-mydarkgrey"
|
|
251
251
|
aria-hidden="true"
|
|
252
252
|
/>
|
|
253
253
|
</Combobox.Trigger>
|
|
@@ -258,7 +258,7 @@ const StyleImagePanelAdd = ({ node, parentNode, childId }: BasePanelProps) => {
|
|
|
258
258
|
<Combobox.Positioner style={{ zIndex: 1002 }}>
|
|
259
259
|
<Combobox.Content className="max-h-64 w-full overflow-auto rounded-md bg-white py-1 text-base shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none">
|
|
260
260
|
{collection.items.length === 0 ? (
|
|
261
|
-
<div className="
|
|
261
|
+
<div className="relative cursor-default select-none px-4 py-2 text-mydarkgrey">
|
|
262
262
|
Nothing found.
|
|
263
263
|
</div>
|
|
264
264
|
) : (
|
|
@@ -294,7 +294,7 @@ const StyleImagePanelAdd = ({ node, parentNode, childId }: BasePanelProps) => {
|
|
|
294
294
|
<button
|
|
295
295
|
key={style.key}
|
|
296
296
|
onClick={() => handleSelect({ value: [style.key] })}
|
|
297
|
-
className="
|
|
297
|
+
className="inline-flex items-center rounded-md bg-slate-50 px-3 py-2 text-sm text-black transition-colors duration-200 hover:bg-mygreen/20"
|
|
298
298
|
>
|
|
299
299
|
<span className="font-bold">{style.title}</span>
|
|
300
300
|
</button>
|
|
@@ -127,7 +127,7 @@ const StyleImageRemovePanel = ({
|
|
|
127
127
|
<span className="ml-1">from {elementTypeTitle}?</span>
|
|
128
128
|
</h3>
|
|
129
129
|
<div className="space-y-4 rounded bg-slate-50 p-6">
|
|
130
|
-
<ul className="
|
|
130
|
+
<ul className="flex flex-wrap gap-x-4 gap-y-1 text-mydarkgrey">
|
|
131
131
|
<li>
|
|
132
132
|
<em>Are you sure?</em>
|
|
133
133
|
</li>
|
|
@@ -273,16 +273,16 @@ const StyleImageUpdatePanel = ({
|
|
|
273
273
|
type="checkbox"
|
|
274
274
|
checked={isOverridden}
|
|
275
275
|
onChange={(e) => handleToggleOverride(e.target.checked)}
|
|
276
|
-
className="border-mydarkgrey text-myorange focus:ring-myorange
|
|
276
|
+
className="h-4 w-4 rounded border-mydarkgrey text-myorange focus:ring-myorange"
|
|
277
277
|
/>
|
|
278
|
-
<span className="text-
|
|
278
|
+
<span className="text-sm text-mydarkgrey">
|
|
279
279
|
{isOverridden
|
|
280
280
|
? 'Override mode. Styling this element only.'
|
|
281
281
|
: 'You are in quick styles mode. Click to override this element.'}
|
|
282
282
|
</span>
|
|
283
283
|
</div>
|
|
284
284
|
|
|
285
|
-
<div className="
|
|
285
|
+
<div className="my-3 flex flex-col gap-y-2.5 text-xl text-mydarkgrey">
|
|
286
286
|
<ViewportComboBox
|
|
287
287
|
value={mobileValue}
|
|
288
288
|
onFinalChange={handleFinalChange}
|
|
@@ -209,14 +209,14 @@ const StyleLiElementPanel = ({
|
|
|
209
209
|
)}
|
|
210
210
|
|
|
211
211
|
<div className="space-y-4">
|
|
212
|
-
<ul className="
|
|
212
|
+
<ul className="flex flex-wrap gap-x-4 gap-y-1 text-mydarkgrey">
|
|
213
213
|
<li>
|
|
214
214
|
<em>Actions:</em>
|
|
215
215
|
</li>
|
|
216
216
|
<li>
|
|
217
217
|
<button
|
|
218
218
|
onClick={handleLiAdd}
|
|
219
|
-
className="text-myblue
|
|
219
|
+
className="font-bold text-myblue underline hover:text-black"
|
|
220
220
|
>
|
|
221
221
|
Add Style
|
|
222
222
|
</button>
|
|
@@ -252,14 +252,14 @@ const StyleLiElementPanel = ({
|
|
|
252
252
|
)}
|
|
253
253
|
|
|
254
254
|
<div className="space-y-4">
|
|
255
|
-
<ul className="
|
|
255
|
+
<ul className="flex flex-wrap gap-x-4 gap-y-1 text-mydarkgrey">
|
|
256
256
|
<li>
|
|
257
257
|
<em>Actions:</em>
|
|
258
258
|
</li>
|
|
259
259
|
<li>
|
|
260
260
|
<button
|
|
261
261
|
onClick={handleContainerAdd}
|
|
262
|
-
className="text-myblue
|
|
262
|
+
className="font-bold text-myblue underline hover:text-black"
|
|
263
263
|
>
|
|
264
264
|
Add Style
|
|
265
265
|
</button>
|
|
@@ -222,9 +222,9 @@ const StyleLiElementAddPanel = ({
|
|
|
222
222
|
id="show-advanced"
|
|
223
223
|
checked={showAdvanced}
|
|
224
224
|
onChange={(e) => setShowAdvanced(e.target.checked)}
|
|
225
|
-
className="
|
|
225
|
+
className="h-4 w-4 rounded border-mydarkgrey text-cyan-600 focus:ring-cyan-600"
|
|
226
226
|
/>
|
|
227
|
-
<label htmlFor="show-advanced" className="text-
|
|
227
|
+
<label htmlFor="show-advanced" className="text-sm text-mydarkgrey">
|
|
228
228
|
Show Advanced Styles
|
|
229
229
|
</label>
|
|
230
230
|
</div>
|
|
@@ -247,13 +247,13 @@ const StyleLiElementAddPanel = ({
|
|
|
247
247
|
<Combobox.Control ref={comboboxRef}>
|
|
248
248
|
<div className="relative">
|
|
249
249
|
<Combobox.Input
|
|
250
|
-
className="
|
|
250
|
+
className="w-full rounded-md border-mydarkgrey py-2 pl-3 pr-10 text-xl shadow-sm focus:border-myblue focus:ring-myblue"
|
|
251
251
|
placeholder="Search styles..."
|
|
252
252
|
autoComplete="off"
|
|
253
253
|
/>
|
|
254
254
|
<Combobox.Trigger className="absolute inset-y-0 right-0 flex items-center pr-2">
|
|
255
255
|
<ChevronUpDownIcon
|
|
256
|
-
className="
|
|
256
|
+
className="h-5 w-5 text-mydarkgrey"
|
|
257
257
|
aria-hidden="true"
|
|
258
258
|
/>
|
|
259
259
|
</Combobox.Trigger>
|
|
@@ -264,7 +264,7 @@ const StyleLiElementAddPanel = ({
|
|
|
264
264
|
<Combobox.Positioner style={{ zIndex: 1002 }}>
|
|
265
265
|
<Combobox.Content className="absolute z-50 mt-1 max-h-64 w-full overflow-auto rounded-md bg-white py-1 text-base shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none">
|
|
266
266
|
{collection.items.length === 0 ? (
|
|
267
|
-
<div className="
|
|
267
|
+
<div className="relative cursor-default select-none px-4 py-2 text-mydarkgrey">
|
|
268
268
|
Nothing found.
|
|
269
269
|
</div>
|
|
270
270
|
) : (
|
|
@@ -300,7 +300,7 @@ const StyleLiElementAddPanel = ({
|
|
|
300
300
|
<button
|
|
301
301
|
key={style.key}
|
|
302
302
|
onClick={() => handleStyleClick(style.key)}
|
|
303
|
-
className="
|
|
303
|
+
className="inline-flex items-center rounded-md bg-slate-50 px-3 py-2 text-sm text-black transition-colors duration-200 hover:bg-mygreen/20"
|
|
304
304
|
>
|
|
305
305
|
<span className="font-bold">{style.title}</span>
|
|
306
306
|
</button>
|
|
@@ -106,7 +106,7 @@ const StyleLiElementRemovePanel = ({
|
|
|
106
106
|
{isContainer ? ' from Container' : ' from List Item'}?
|
|
107
107
|
</h3>
|
|
108
108
|
<div className="space-y-4 rounded bg-slate-50 p-6">
|
|
109
|
-
<ul className="
|
|
109
|
+
<ul className="flex flex-wrap gap-x-4 gap-y-1 text-mydarkgrey">
|
|
110
110
|
<li>
|
|
111
111
|
<em>Are you sure?</em>
|
|
112
112
|
</li>
|
|
@@ -273,16 +273,16 @@ const StyleLiElementUpdatePanel = ({
|
|
|
273
273
|
type="checkbox"
|
|
274
274
|
checked={isOverridden}
|
|
275
275
|
onChange={(e) => handleToggleOverride(e.target.checked)}
|
|
276
|
-
className="border-mydarkgrey text-myorange focus:ring-myorange
|
|
276
|
+
className="h-4 w-4 rounded border-mydarkgrey text-myorange focus:ring-myorange"
|
|
277
277
|
/>
|
|
278
|
-
<span className="text-
|
|
278
|
+
<span className="text-sm text-mydarkgrey">
|
|
279
279
|
{isOverridden
|
|
280
280
|
? 'Override mode. Styling this element only.'
|
|
281
281
|
: 'You are in quick styles mode. Click to override this element.'}
|
|
282
282
|
</span>
|
|
283
283
|
</div>
|
|
284
284
|
|
|
285
|
-
<div className="
|
|
285
|
+
<div className="my-3 flex flex-col gap-y-2.5 text-xl text-mydarkgrey">
|
|
286
286
|
<ViewportComboBox
|
|
287
287
|
value={mobileValue}
|
|
288
288
|
onFinalChange={handleFinalChange}
|
|
@@ -269,7 +269,7 @@ const StyleLinkPanel = ({ node }: BasePanelProps) => {
|
|
|
269
269
|
<div className="space-y-8">
|
|
270
270
|
<div className="space-y-4">
|
|
271
271
|
<div className="pb-2">
|
|
272
|
-
<div className="
|
|
272
|
+
<div className="w-fit rounded border border-slate-200 p-2 text-sm text-myblack hover:bg-mygreen/20">
|
|
273
273
|
<div
|
|
274
274
|
title="Configure this Link"
|
|
275
275
|
className="flex items-center gap-2 font-bold"
|
|
@@ -339,14 +339,14 @@ const StyleLinkPanel = ({ node }: BasePanelProps) => {
|
|
|
339
339
|
)}
|
|
340
340
|
|
|
341
341
|
<div className="space-y-4">
|
|
342
|
-
<ul className="
|
|
342
|
+
<ul className="flex flex-wrap gap-x-4 gap-y-1 text-mydarkgrey">
|
|
343
343
|
<li>
|
|
344
344
|
<em>Actions:</em>
|
|
345
345
|
</li>
|
|
346
346
|
<li>
|
|
347
347
|
<button
|
|
348
348
|
onClick={handleButtonStyleAdd}
|
|
349
|
-
className="text-myblue
|
|
349
|
+
className="font-bold text-myblue underline hover:text-black"
|
|
350
350
|
>
|
|
351
351
|
Add Style
|
|
352
352
|
</button>
|
|
@@ -383,14 +383,14 @@ const StyleLinkPanel = ({ node }: BasePanelProps) => {
|
|
|
383
383
|
)}
|
|
384
384
|
|
|
385
385
|
<div className="space-y-4">
|
|
386
|
-
<ul className="
|
|
386
|
+
<ul className="flex flex-wrap gap-x-4 gap-y-1 text-mydarkgrey">
|
|
387
387
|
<li>
|
|
388
388
|
<em>Actions:</em>
|
|
389
389
|
</li>
|
|
390
390
|
<li>
|
|
391
391
|
<button
|
|
392
392
|
onClick={handleHoverStyleAdd}
|
|
393
|
-
className="text-myblue
|
|
393
|
+
className="font-bold text-myblue underline hover:text-black"
|
|
394
394
|
>
|
|
395
395
|
Add Style
|
|
396
396
|
</button>
|
|
@@ -182,9 +182,9 @@ const StyleLinkPanelAdd = ({ node }: BasePanelProps) => {
|
|
|
182
182
|
id="show-advanced"
|
|
183
183
|
checked={showAdvanced}
|
|
184
184
|
onChange={(e) => setShowAdvanced(e.target.checked)}
|
|
185
|
-
className="
|
|
185
|
+
className="h-4 w-4 rounded border-mydarkgrey text-cyan-600 focus:ring-cyan-600"
|
|
186
186
|
/>
|
|
187
|
-
<label htmlFor="show-advanced" className="text-
|
|
187
|
+
<label htmlFor="show-advanced" className="text-sm text-mydarkgrey">
|
|
188
188
|
Show Advanced Styles
|
|
189
189
|
</label>
|
|
190
190
|
</div>
|
|
@@ -207,13 +207,13 @@ const StyleLinkPanelAdd = ({ node }: BasePanelProps) => {
|
|
|
207
207
|
<Combobox.Control ref={comboboxRef}>
|
|
208
208
|
<div className="relative">
|
|
209
209
|
<Combobox.Input
|
|
210
|
-
className="
|
|
210
|
+
className="w-full rounded-md border-mydarkgrey py-2 pl-3 pr-10 text-xl shadow-sm focus:border-myblue focus:ring-myblue"
|
|
211
211
|
placeholder="Search styles..."
|
|
212
212
|
autoComplete="off"
|
|
213
213
|
/>
|
|
214
214
|
<Combobox.Trigger className="absolute inset-y-0 right-0 flex items-center pr-2">
|
|
215
215
|
<ChevronUpDownIcon
|
|
216
|
-
className="
|
|
216
|
+
className="h-5 w-5 text-mydarkgrey"
|
|
217
217
|
aria-hidden="true"
|
|
218
218
|
/>
|
|
219
219
|
</Combobox.Trigger>
|
|
@@ -224,7 +224,7 @@ const StyleLinkPanelAdd = ({ node }: BasePanelProps) => {
|
|
|
224
224
|
<Combobox.Positioner style={{ zIndex: 1002 }}>
|
|
225
225
|
<Combobox.Content className="absolute z-50 mt-1 max-h-64 w-full overflow-auto rounded-md bg-white py-1 text-base shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none">
|
|
226
226
|
{styleCollection.items.length === 0 ? (
|
|
227
|
-
<div className="
|
|
227
|
+
<div className="relative cursor-default select-none px-4 py-2 text-mydarkgrey">
|
|
228
228
|
Nothing found.
|
|
229
229
|
</div>
|
|
230
230
|
) : (
|
|
@@ -260,7 +260,7 @@ const StyleLinkPanelAdd = ({ node }: BasePanelProps) => {
|
|
|
260
260
|
<button
|
|
261
261
|
key={style.key}
|
|
262
262
|
onClick={() => handleStyleClick(style.key)}
|
|
263
|
-
className="
|
|
263
|
+
className="inline-flex items-center rounded-md bg-slate-50 px-3 py-2 text-sm text-black transition-colors duration-200 hover:bg-mygreen/20"
|
|
264
264
|
>
|
|
265
265
|
<span className="font-bold">{style.title}</span>
|
|
266
266
|
</button>
|
|
@@ -65,7 +65,7 @@ const StyleLinkRemovePanel = ({ node, className }: BasePanelProps) => {
|
|
|
65
65
|
</span>
|
|
66
66
|
</h3>
|
|
67
67
|
<div className="space-y-4 rounded bg-slate-50 p-6">
|
|
68
|
-
<ul className="
|
|
68
|
+
<ul className="flex flex-wrap gap-x-4 gap-y-1 text-mydarkgrey">
|
|
69
69
|
<li>
|
|
70
70
|
<em>Are you sure?</em>
|
|
71
71
|
</li>
|
|
@@ -93,7 +93,7 @@ const StyleLinkUpdatePanel = ({ node, className }: BasePanelProps) => {
|
|
|
93
93
|
</button>
|
|
94
94
|
</div>
|
|
95
95
|
|
|
96
|
-
<div className="
|
|
96
|
+
<div className="my-3 flex flex-col gap-y-2.5 text-xl text-mydarkgrey">
|
|
97
97
|
<ViewportComboBox
|
|
98
98
|
value={value}
|
|
99
99
|
onFinalChange={(newValue) => handleFinalChange(newValue)}
|
|
@@ -419,14 +419,14 @@ const StyleParentPanel = ({
|
|
|
419
419
|
</div>
|
|
420
420
|
)}
|
|
421
421
|
<div>
|
|
422
|
-
<ul className="
|
|
422
|
+
<ul className="flex flex-wrap gap-x-4 gap-y-1 text-mydarkgrey">
|
|
423
423
|
<li>
|
|
424
424
|
<em>Actions:</em>
|
|
425
425
|
</li>
|
|
426
426
|
<li>
|
|
427
427
|
<button
|
|
428
428
|
onClick={handleClickAdd}
|
|
429
|
-
className="text-myblue
|
|
429
|
+
className="font-bold text-myblue underline hover:text-black"
|
|
430
430
|
>
|
|
431
431
|
Add Style
|
|
432
432
|
</button>
|
|
@@ -554,10 +554,10 @@ const StyleParentPanel = ({
|
|
|
554
554
|
<div className="space-y-4">
|
|
555
555
|
<BackButton />
|
|
556
556
|
<div className="mb-4 flex items-center gap-3 rounded-md bg-slate-50 p-3">
|
|
557
|
-
<span className="text-
|
|
557
|
+
<span className="text-sm font-bold text-mydarkgrey">Layer:</span>
|
|
558
558
|
<div className="flex flex-wrap items-center gap-2">
|
|
559
559
|
<button
|
|
560
|
-
className="
|
|
560
|
+
className="rounded border border-dashed border-mydarkgrey/30 p-1 text-xs text-mydarkgrey transition-colors hover:bg-white/50 hover:text-black"
|
|
561
561
|
title="Add Layer Here"
|
|
562
562
|
onClick={() => handleLayerAdd('before', 1)}
|
|
563
563
|
>
|
|
@@ -574,14 +574,14 @@ const StyleParentPanel = ({
|
|
|
574
574
|
className={`min-w-8 rounded-md px-3 py-1.5 text-sm font-bold transition-colors ${
|
|
575
575
|
currentLayer === num
|
|
576
576
|
? 'bg-myblue text-white shadow-sm'
|
|
577
|
-
: 'text-mydarkgrey hover:bg-mydarkgrey/10
|
|
577
|
+
: 'bg-white text-mydarkgrey hover:bg-mydarkgrey/10 hover:text-black'
|
|
578
578
|
}`}
|
|
579
579
|
onClick={() => setCurrentLayer(num)}
|
|
580
580
|
>
|
|
581
581
|
{num}
|
|
582
582
|
</button>
|
|
583
583
|
<button
|
|
584
|
-
className="
|
|
584
|
+
className="rounded border border-dashed border-mydarkgrey/30 p-1 text-xs text-mydarkgrey transition-colors hover:bg-white/50 hover:text-black"
|
|
585
585
|
title="Add Layer Here"
|
|
586
586
|
onClick={() =>
|
|
587
587
|
handleLayerAdd(
|
|
@@ -618,14 +618,14 @@ const StyleParentPanel = ({
|
|
|
618
618
|
</div>
|
|
619
619
|
)}
|
|
620
620
|
<div>
|
|
621
|
-
<ul className="
|
|
621
|
+
<ul className="flex flex-wrap gap-x-4 gap-y-1 text-mydarkgrey">
|
|
622
622
|
<li>
|
|
623
623
|
<em>Actions:</em>
|
|
624
624
|
</li>
|
|
625
625
|
<li>
|
|
626
626
|
<button
|
|
627
627
|
onClick={handleClickAdd}
|
|
628
|
-
className="text-myblue
|
|
628
|
+
className="font-bold text-myblue underline hover:text-black"
|
|
629
629
|
>
|
|
630
630
|
Add Style
|
|
631
631
|
</button>
|
|
@@ -633,7 +633,7 @@ const StyleParentPanel = ({
|
|
|
633
633
|
<li>
|
|
634
634
|
<button
|
|
635
635
|
onClick={handleClickDeleteLayer}
|
|
636
|
-
className="text-myblue
|
|
636
|
+
className="font-bold text-myblue underline hover:text-black"
|
|
637
637
|
>
|
|
638
638
|
Delete Layer
|
|
639
639
|
</button>
|
|
@@ -231,9 +231,9 @@ const StyleParentPanelAdd = ({
|
|
|
231
231
|
id="show-advanced"
|
|
232
232
|
checked={showAdvanced}
|
|
233
233
|
onChange={(e) => setShowAdvanced(e.target.checked)}
|
|
234
|
-
className="
|
|
234
|
+
className="h-4 w-4 rounded border-mydarkgrey text-cyan-600 focus:ring-cyan-600"
|
|
235
235
|
/>
|
|
236
|
-
<label htmlFor="show-advanced" className="text-
|
|
236
|
+
<label htmlFor="show-advanced" className="text-sm text-mydarkgrey">
|
|
237
237
|
Show Advanced Styles
|
|
238
238
|
</label>
|
|
239
239
|
</div>
|
|
@@ -256,13 +256,13 @@ const StyleParentPanelAdd = ({
|
|
|
256
256
|
<Combobox.Control ref={comboboxRef}>
|
|
257
257
|
<div className="relative">
|
|
258
258
|
<Combobox.Input
|
|
259
|
-
className="
|
|
259
|
+
className="w-full rounded-md border-mydarkgrey py-2 pl-3 pr-10 text-xl shadow-sm focus:border-myblue focus:ring-myblue"
|
|
260
260
|
placeholder="Search styles..."
|
|
261
261
|
autoComplete="off"
|
|
262
262
|
/>
|
|
263
263
|
<Combobox.Trigger className="absolute inset-y-0 right-0 flex items-center pr-2">
|
|
264
264
|
<ChevronUpDownIcon
|
|
265
|
-
className="
|
|
265
|
+
className="h-5 w-5 text-mydarkgrey"
|
|
266
266
|
aria-hidden="true"
|
|
267
267
|
/>
|
|
268
268
|
</Combobox.Trigger>
|
|
@@ -273,7 +273,7 @@ const StyleParentPanelAdd = ({
|
|
|
273
273
|
<Combobox.Positioner style={{ zIndex: 1002 }}>
|
|
274
274
|
<Combobox.Content className="max-h-64 w-full overflow-auto rounded-md bg-white py-1 text-base shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none">
|
|
275
275
|
{collection.items.length === 0 ? (
|
|
276
|
-
<div className="
|
|
276
|
+
<div className="relative cursor-default select-none px-4 py-2 text-mydarkgrey">
|
|
277
277
|
Nothing found.
|
|
278
278
|
</div>
|
|
279
279
|
) : (
|
|
@@ -309,7 +309,7 @@ const StyleParentPanelAdd = ({
|
|
|
309
309
|
<button
|
|
310
310
|
key={style.key}
|
|
311
311
|
onClick={() => handleStyleClick(style.key)}
|
|
312
|
-
className="
|
|
312
|
+
className="inline-flex items-center rounded-md bg-slate-50 px-3 py-2 text-sm text-black transition-colors duration-200 hover:bg-mygreen/20"
|
|
313
313
|
>
|
|
314
314
|
<span className="font-bold">{style.title}</span>
|
|
315
315
|
</button>
|
|
@@ -96,10 +96,10 @@ const StyleParentDeleteLayerPanel = ({ node, layer }: ParentBasePanelProps) => {
|
|
|
96
96
|
Remove Layer <span className="font-bold">{layer}</span>?
|
|
97
97
|
</h3>
|
|
98
98
|
<div className="space-y-4 rounded bg-slate-50 p-6">
|
|
99
|
-
<p className="text-myorange
|
|
99
|
+
<p className="font-bold text-myorange">
|
|
100
100
|
This layer has {count} classes.
|
|
101
101
|
</p>
|
|
102
|
-
<ul className="
|
|
102
|
+
<ul className="flex flex-wrap gap-x-4 gap-y-1 text-mydarkgrey">
|
|
103
103
|
<li>
|
|
104
104
|
<em>Are you sure?</em>
|
|
105
105
|
</li>
|
|
@@ -147,7 +147,7 @@ const StyleParentPanelRemove = ({
|
|
|
147
147
|
</div>
|
|
148
148
|
<div>
|
|
149
149
|
<h3 className="text-xl font-bold">Remove Style</h3>
|
|
150
|
-
<p className="text-mydarkgrey
|
|
150
|
+
<p className="mt-2 text-mydarkgrey">
|
|
151
151
|
Are you sure you want to remove this style?
|
|
152
152
|
</p>
|
|
153
153
|
<div className="my-4 rounded-md bg-slate-100 p-4">
|
|
@@ -171,7 +171,7 @@ const StyleParentPanelUpdate = ({
|
|
|
171
171
|
</div>
|
|
172
172
|
<div>
|
|
173
173
|
<h3 className="text-xl font-bold">{tailwindConfig.title}</h3>
|
|
174
|
-
<p className="
|
|
174
|
+
<p className="mt-1 font-mono text-sm text-mydarkgrey">
|
|
175
175
|
{tailwindConfig.className}
|
|
176
176
|
</p>
|
|
177
177
|
</div>
|