astro-tractstack 2.0.46 → 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.
Files changed (121) hide show
  1. package/README.md +35 -39
  2. package/package.json +25 -20
  3. package/templates/src/components/Footer.astro +4 -4
  4. package/templates/src/components/Header.astro +6 -6
  5. package/templates/src/components/Menu.tsx +15 -15
  6. package/templates/src/components/codehooks/BunnyVideoSetup.tsx +6 -6
  7. package/templates/src/components/codehooks/EpinetDurationSelector.tsx +3 -3
  8. package/templates/src/components/codehooks/FeaturedArticle.astro +1 -1
  9. package/templates/src/components/codehooks/FeaturedArticleSetup.tsx +3 -3
  10. package/templates/src/components/codehooks/ListContentSetup.tsx +2 -2
  11. package/templates/src/components/codehooks/ProductCardSetup.tsx +1 -1
  12. package/templates/src/components/codehooks/ProductGridSetup.tsx +2 -2
  13. package/templates/src/components/codehooks/SandboxRegisterForm.tsx +3 -3
  14. package/templates/src/components/compositor/Compositor.tsx +1 -1
  15. package/templates/src/components/compositor/elements/Belief.tsx +1 -1
  16. package/templates/src/components/compositor/elements/BunnyVideo.tsx +2 -2
  17. package/templates/src/components/compositor/elements/SignUp.tsx +1 -1
  18. package/templates/src/components/compositor/elements/ToggleBelief.tsx +1 -1
  19. package/templates/src/components/compositor/nodes/GhostInsertBlock.tsx +1 -1
  20. package/templates/src/components/compositor/nodes/GridLayout.tsx +1 -1
  21. package/templates/src/components/compositor/nodes/tagElements/TabIndicator.tsx +1 -1
  22. package/templates/src/components/compositor/preview/ListContentPreview.tsx +8 -8
  23. package/templates/src/components/edit/Header.tsx +1 -1
  24. package/templates/src/components/edit/SettingsPanel.tsx +3 -3
  25. package/templates/src/components/edit/ToolBar.tsx +3 -3
  26. package/templates/src/components/edit/ToolMode.tsx +5 -5
  27. package/templates/src/components/edit/pane/AddPanePanel.tsx +5 -5
  28. package/templates/src/components/edit/pane/AddPanePanel_break.tsx +6 -6
  29. package/templates/src/components/edit/pane/AddPanePanel_codehook.tsx +2 -2
  30. package/templates/src/components/edit/pane/AddPanePanel_new.tsx +2 -2
  31. package/templates/src/components/edit/pane/AddPanePanel_reuse.tsx +4 -4
  32. package/templates/src/components/edit/pane/AiRestylePaneModal.tsx +2 -2
  33. package/templates/src/components/edit/pane/ConfigPanePanel.tsx +1 -1
  34. package/templates/src/components/edit/pane/PanePanel_impression.tsx +4 -4
  35. package/templates/src/components/edit/pane/RestylePaneModal.tsx +3 -3
  36. package/templates/src/components/edit/pane/steps/AiDesignStep.tsx +2 -2
  37. package/templates/src/components/edit/pane/steps/CopyInputStep.tsx +5 -5
  38. package/templates/src/components/edit/panels/StyleBreakPanel.tsx +2 -2
  39. package/templates/src/components/edit/panels/StyleCodeHookPanel.tsx +6 -6
  40. package/templates/src/components/edit/panels/StyleElementPanel.tsx +5 -5
  41. package/templates/src/components/edit/panels/StyleElementPanel_add.tsx +6 -6
  42. package/templates/src/components/edit/panels/StyleElementPanel_remove.tsx +1 -1
  43. package/templates/src/components/edit/panels/StyleElementPanel_update.tsx +3 -3
  44. package/templates/src/components/edit/panels/StyleImagePanel.tsx +8 -8
  45. package/templates/src/components/edit/panels/StyleImagePanel_add.tsx +6 -6
  46. package/templates/src/components/edit/panels/StyleImagePanel_remove.tsx +1 -1
  47. package/templates/src/components/edit/panels/StyleImagePanel_update.tsx +3 -3
  48. package/templates/src/components/edit/panels/StyleLiElementPanel.tsx +4 -4
  49. package/templates/src/components/edit/panels/StyleLiElementPanel_add.tsx +6 -6
  50. package/templates/src/components/edit/panels/StyleLiElementPanel_remove.tsx +1 -1
  51. package/templates/src/components/edit/panels/StyleLiElementPanel_update.tsx +3 -3
  52. package/templates/src/components/edit/panels/StyleLinkPanel.tsx +5 -9
  53. package/templates/src/components/edit/panels/StyleLinkPanel_add.tsx +6 -6
  54. package/templates/src/components/edit/panels/StyleLinkPanel_remove.tsx +1 -1
  55. package/templates/src/components/edit/panels/StyleLinkPanel_update.tsx +1 -1
  56. package/templates/src/components/edit/panels/StyleParentPanel.tsx +9 -9
  57. package/templates/src/components/edit/panels/StyleParentPanel_add.tsx +6 -6
  58. package/templates/src/components/edit/panels/StyleParentPanel_deleteLayer.tsx +2 -2
  59. package/templates/src/components/edit/panels/StyleParentPanel_remove.tsx +1 -1
  60. package/templates/src/components/edit/panels/StyleParentPanel_update.tsx +1 -1
  61. package/templates/src/components/edit/panels/StyleWidgetPanel.tsx +7 -7
  62. package/templates/src/components/edit/panels/StyleWidgetPanel_add.tsx +6 -6
  63. package/templates/src/components/edit/panels/StyleWidgetPanel_remove.tsx +1 -1
  64. package/templates/src/components/edit/panels/StyleWidgetPanel_update.tsx +3 -3
  65. package/templates/src/components/edit/panels/StyleWordCarouselPanel.tsx +1 -1
  66. package/templates/src/components/edit/state/SaveModal.tsx +1 -1
  67. package/templates/src/components/edit/state/SaveToLibraryModal.tsx +2 -2
  68. package/templates/src/components/edit/state/StylesMemory.tsx +1 -1
  69. package/templates/src/components/edit/storyfragment/StoryFragmentConfigPanel.tsx +1 -1
  70. package/templates/src/components/edit/storyfragment/StoryFragmentPanel_menu.tsx +5 -5
  71. package/templates/src/components/edit/widgets/BunnyWidget.tsx +5 -5
  72. package/templates/src/components/edit/widgets/InteractiveDisclosureWidget.tsx +1 -1
  73. package/templates/src/components/edit/widgets/SignupWidget.tsx +3 -3
  74. package/templates/src/components/fields/ActionBuilderTimeSelector.tsx +7 -7
  75. package/templates/src/components/fields/ArtpackImage.tsx +15 -15
  76. package/templates/src/components/fields/BackgroundImage.tsx +13 -13
  77. package/templates/src/components/fields/BackgroundImageWrapper.tsx +3 -3
  78. package/templates/src/components/fields/ColorPickerCombo.tsx +8 -8
  79. package/templates/src/components/fields/ImageUpload.tsx +8 -8
  80. package/templates/src/components/fields/PaneBreakCollectionSelector.tsx +3 -3
  81. package/templates/src/components/fields/PaneBreakShapeSelector.tsx +4 -4
  82. package/templates/src/components/fields/SelectedTailwindClass.tsx +2 -2
  83. package/templates/src/components/fields/ViewportComboBox.tsx +4 -4
  84. package/templates/src/components/form/ActionBuilderField.tsx +1 -1
  85. package/templates/src/components/form/ActionBuilderSlugSelector.tsx +1 -1
  86. package/templates/src/components/form/UnsavedChangesBar.tsx +1 -1
  87. package/templates/src/components/form/advanced/APIConfigSection.tsx +2 -2
  88. package/templates/src/components/form/advanced/AuthConfigSection.tsx +2 -2
  89. package/templates/src/components/form/brand/BrandColorsSection.tsx +1 -1
  90. package/templates/src/components/profile/ProfileCreate.tsx +4 -4
  91. package/templates/src/components/profile/ProfileEdit.tsx +4 -4
  92. package/templates/src/components/profile/ProfileSwitch.tsx +2 -2
  93. package/templates/src/components/profile/ProfileUnlock.tsx +3 -3
  94. package/templates/src/components/search/SearchModal.tsx +10 -10
  95. package/templates/src/components/search/SearchResults.tsx +10 -10
  96. package/templates/src/components/search/SearchWrapper.tsx +1 -1
  97. package/templates/src/components/storykeep/Dashboard.tsx +1 -1
  98. package/templates/src/components/storykeep/Dashboard_Advanced.tsx +2 -2
  99. package/templates/src/components/storykeep/controls/content/BeliefForm.tsx +1 -1
  100. package/templates/src/components/storykeep/controls/content/ContentSummary.tsx +2 -2
  101. package/templates/src/components/storykeep/controls/content/KnownResourceTable.tsx +1 -1
  102. package/templates/src/components/storykeep/controls/content/ManageContent.tsx +2 -2
  103. package/templates/src/components/storykeep/controls/content/MenuForm.tsx +1 -1
  104. package/templates/src/components/storykeep/controls/content/ResourceTable.tsx +1 -1
  105. package/templates/src/components/widgets/Impression.tsx +2 -2
  106. package/templates/src/components/widgets/ImpressionWrapper.tsx +2 -2
  107. package/templates/src/constants.ts +4 -0
  108. package/templates/src/hooks/useSearch.ts +1 -1
  109. package/templates/src/layouts/Layout.astro +2 -2
  110. package/templates/src/pages/[...slug]/edit.astro +3 -3
  111. package/templates/src/pages/[...slug].astro +1 -1
  112. package/templates/src/pages/context/[...contextSlug]/edit.astro +3 -3
  113. package/templates/src/pages/maint.astro +9 -9
  114. package/templates/src/pages/sandbox.astro +3 -3
  115. package/templates/src/pages/storykeep/login.astro +6 -6
  116. package/templates/src/types/formTypes.ts +6 -4
  117. package/templates/src/types/nodeProps.ts +1 -1
  118. package/templates/src/types/tractstack.ts +1 -2
  119. package/templates/src/utils/actions/preParse_Action.ts +2 -8
  120. package/templates/src/utils/compositor/nodesHelper.ts +1 -1
  121. 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="border-mydarkgrey h-4 w-4 rounded text-cyan-600 focus:ring-cyan-600"
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-mydarkgrey text-sm">
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="border-mydarkgrey focus:border-myblue focus:ring-myblue w-full rounded-md py-2 pl-3 pr-10 text-xl shadow-sm"
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="text-mydarkgrey h-5 w-5"
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="text-mydarkgrey relative cursor-default select-none px-4 py-2">
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="hover:bg-mygreen/20 inline-flex items-center rounded-md bg-slate-50 px-3 py-2 text-sm text-black transition-colors duration-200"
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="text-mydarkgrey flex flex-wrap gap-x-4 gap-y-1">
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 h-4 w-4 rounded disabled:opacity-50"
292
+ className="h-4 w-4 rounded border-mydarkgrey text-myorange focus:ring-myorange disabled:opacity-50"
293
293
  />
294
- <span className="text-mydarkgrey text-sm">
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="text-mydarkgrey my-3 flex flex-col gap-y-2.5 text-xl">
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-mydarkgrey block text-sm">
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="border-mydarkgrey w-full rounded-md py-2 pl-3 text-base"
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="text-mydarkgrey flex flex-wrap gap-x-4 gap-y-1">
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 font-bold underline hover:text-black"
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="text-mydarkgrey flex flex-wrap gap-x-4 gap-y-1">
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 font-bold underline hover:text-black"
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="text-mydarkgrey flex flex-wrap gap-x-4 gap-y-1">
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 font-bold underline hover:text-black"
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="border-mydarkgrey h-4 w-4 rounded text-cyan-600 focus:ring-cyan-600"
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-mydarkgrey text-sm">
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="border-mydarkgrey focus:border-myblue focus:ring-myblue w-full rounded-md py-2 pl-3 pr-10 text-xl shadow-sm"
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="text-mydarkgrey h-5 w-5"
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="text-mydarkgrey relative cursor-default select-none px-4 py-2">
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="hover:bg-mygreen/20 inline-flex items-center rounded-md bg-slate-50 px-3 py-2 text-sm text-black transition-colors duration-200"
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="text-mydarkgrey flex flex-wrap gap-x-4 gap-y-1">
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 h-4 w-4 rounded"
276
+ className="h-4 w-4 rounded border-mydarkgrey text-myorange focus:ring-myorange"
277
277
  />
278
- <span className="text-mydarkgrey text-sm">
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="text-mydarkgrey my-3 flex flex-col gap-y-2.5 text-xl">
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="text-mydarkgrey flex flex-wrap gap-x-4 gap-y-1">
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 font-bold underline hover:text-black"
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="text-mydarkgrey flex flex-wrap gap-x-4 gap-y-1">
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 font-bold underline hover:text-black"
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="border-mydarkgrey h-4 w-4 rounded text-cyan-600 focus:ring-cyan-600"
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-mydarkgrey text-sm">
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="border-mydarkgrey focus:border-myblue focus:ring-myblue w-full rounded-md py-2 pl-3 pr-10 text-xl shadow-sm"
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="text-mydarkgrey h-5 w-5"
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="text-mydarkgrey relative cursor-default select-none px-4 py-2">
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="hover:bg-mygreen/20 inline-flex items-center rounded-md bg-slate-50 px-3 py-2 text-sm text-black transition-colors duration-200"
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="text-mydarkgrey flex flex-wrap gap-x-4 gap-y-1">
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 h-4 w-4 rounded"
276
+ className="h-4 w-4 rounded border-mydarkgrey text-myorange focus:ring-myorange"
277
277
  />
278
- <span className="text-mydarkgrey text-sm">
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="text-mydarkgrey my-3 flex flex-col gap-y-2.5 text-xl">
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}
@@ -66,7 +66,6 @@ const buttonStyleClasses: ButtonStylePair[] = [
66
66
  textSIZE: ['base'],
67
67
  transition: ['colors'],
68
68
  transitionDURATION: ['200'],
69
- w: ['full'],
70
69
  },
71
70
  {
72
71
  bgCOLOR: ['blue-700'],
@@ -88,7 +87,6 @@ const buttonStyleClasses: ButtonStylePair[] = [
88
87
  textSIZE: ['base'],
89
88
  transition: ['colors'],
90
89
  transitionDURATION: ['200'],
91
- w: ['full'],
92
90
  },
93
91
  {
94
92
  bgCOLOR: ['blue-50'],
@@ -109,7 +107,6 @@ const buttonStyleClasses: ButtonStylePair[] = [
109
107
  textSIZE: ['base'],
110
108
  transition: ['colors'],
111
109
  transitionDURATION: ['200'],
112
- w: ['full'],
113
110
  },
114
111
  {
115
112
  bgCOLOR: ['white'],
@@ -133,7 +130,6 @@ const buttonStyleClasses: ButtonStylePair[] = [
133
130
  textSIZE: ['base'],
134
131
  transition: ['colors'],
135
132
  transitionDURATION: ['200'],
136
- w: ['full'],
137
133
  },
138
134
  {
139
135
  textCOLOR: ['myblack'],
@@ -273,7 +269,7 @@ const StyleLinkPanel = ({ node }: BasePanelProps) => {
273
269
  <div className="space-y-8">
274
270
  <div className="space-y-4">
275
271
  <div className="pb-2">
276
- <div className="text-myblack hover:bg-mygreen/20 w-fit rounded border border-slate-200 p-2 text-sm">
272
+ <div className="w-fit rounded border border-slate-200 p-2 text-sm text-myblack hover:bg-mygreen/20">
277
273
  <div
278
274
  title="Configure this Link"
279
275
  className="flex items-center gap-2 font-bold"
@@ -343,14 +339,14 @@ const StyleLinkPanel = ({ node }: BasePanelProps) => {
343
339
  )}
344
340
 
345
341
  <div className="space-y-4">
346
- <ul className="text-mydarkgrey flex flex-wrap gap-x-4 gap-y-1">
342
+ <ul className="flex flex-wrap gap-x-4 gap-y-1 text-mydarkgrey">
347
343
  <li>
348
344
  <em>Actions:</em>
349
345
  </li>
350
346
  <li>
351
347
  <button
352
348
  onClick={handleButtonStyleAdd}
353
- className="text-myblue font-bold underline hover:text-black"
349
+ className="font-bold text-myblue underline hover:text-black"
354
350
  >
355
351
  Add Style
356
352
  </button>
@@ -387,14 +383,14 @@ const StyleLinkPanel = ({ node }: BasePanelProps) => {
387
383
  )}
388
384
 
389
385
  <div className="space-y-4">
390
- <ul className="text-mydarkgrey flex flex-wrap gap-x-4 gap-y-1">
386
+ <ul className="flex flex-wrap gap-x-4 gap-y-1 text-mydarkgrey">
391
387
  <li>
392
388
  <em>Actions:</em>
393
389
  </li>
394
390
  <li>
395
391
  <button
396
392
  onClick={handleHoverStyleAdd}
397
- className="text-myblue font-bold underline hover:text-black"
393
+ className="font-bold text-myblue underline hover:text-black"
398
394
  >
399
395
  Add Style
400
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="border-mydarkgrey h-4 w-4 rounded text-cyan-600 focus:ring-cyan-600"
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-mydarkgrey text-sm">
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="border-mydarkgrey focus:border-myblue focus:ring-myblue w-full rounded-md py-2 pl-3 pr-10 text-xl shadow-sm"
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="text-mydarkgrey h-5 w-5"
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="text-mydarkgrey relative cursor-default select-none px-4 py-2">
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="hover:bg-mygreen/20 inline-flex items-center rounded-md bg-slate-50 px-3 py-2 text-sm text-black transition-colors duration-200"
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="text-mydarkgrey flex flex-wrap gap-x-4 gap-y-1">
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="text-mydarkgrey my-3 flex flex-col gap-y-2.5 text-xl">
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="text-mydarkgrey flex flex-wrap gap-x-4 gap-y-1">
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 font-bold underline hover:text-black"
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-mydarkgrey text-sm font-bold">Layer:</span>
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="border-mydarkgrey/30 text-mydarkgrey rounded border border-dashed p-1 text-xs transition-colors hover:bg-white/50 hover:text-black"
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 bg-white hover:text-black'
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="border-mydarkgrey/30 text-mydarkgrey rounded border border-dashed p-1 text-xs transition-colors hover:bg-white/50 hover:text-black"
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="text-mydarkgrey flex flex-wrap gap-x-4 gap-y-1">
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 font-bold underline hover:text-black"
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 font-bold underline hover:text-black"
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="border-mydarkgrey h-4 w-4 rounded text-cyan-600 focus:ring-cyan-600"
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-mydarkgrey text-sm">
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="border-mydarkgrey focus:border-myblue focus:ring-myblue w-full rounded-md py-2 pl-3 pr-10 text-xl shadow-sm"
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="text-mydarkgrey h-5 w-5"
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="text-mydarkgrey relative cursor-default select-none px-4 py-2">
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="hover:bg-mygreen/20 inline-flex items-center rounded-md bg-slate-50 px-3 py-2 text-sm text-black transition-colors duration-200"
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 font-bold">
99
+ <p className="font-bold text-myorange">
100
100
  This layer has {count} classes.
101
101
  </p>
102
- <ul className="text-mydarkgrey flex flex-wrap gap-x-4 gap-y-1">
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 mt-2">
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="text-mydarkgrey mt-1 font-mono text-sm">
174
+ <p className="mt-1 font-mono text-sm text-mydarkgrey">
175
175
  {tailwindConfig.className}
176
176
  </p>
177
177
  </div>