blocks-dusted 0.1.10 → 0.1.11

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 (246) hide show
  1. package/README.md +35 -0
  2. package/package.json +1 -1
  3. package/src/utils/paths.js +13 -13
  4. package/templates/blocks/DD-Accordion/Component.tsx +229 -0
  5. package/templates/blocks/DD-Accordion/README.md +3 -0
  6. package/templates/blocks/DD-Accordion/config.ts +73 -0
  7. package/templates/blocks/DD-Accordion/manifest.json +75 -0
  8. package/templates/blocks/DD-AnimText/Component.tsx +788 -0
  9. package/templates/blocks/DD-AnimText/README.md +3 -0
  10. package/templates/blocks/DD-AnimText/config.ts +295 -0
  11. package/templates/blocks/DD-AnimText/manifest.json +85 -0
  12. package/templates/blocks/DD-AsideNav/Component.tsx +321 -0
  13. package/templates/blocks/DD-AsideNav/config.ts +204 -0
  14. package/templates/blocks/DD-AsideNav/manifest.json +80 -0
  15. package/templates/blocks/DD-Banner/Component.tsx +51 -0
  16. package/templates/blocks/DD-Banner/config.ts +57 -0
  17. package/templates/blocks/DD-Banner/manifest.json +72 -0
  18. package/templates/blocks/DD-BgLightning/Component.tsx +44 -0
  19. package/templates/blocks/DD-BgLightning/README.md +3 -0
  20. package/templates/blocks/DD-BgLightning/config.ts +97 -0
  21. package/templates/blocks/DD-BgLightning/manifest.json +79 -0
  22. package/templates/blocks/DD-BookCall/Component.tsx +10 -11
  23. package/templates/blocks/DD-BookCall/config.ts +238 -238
  24. package/templates/blocks/DD-ButtonPop/Component.tsx +117 -0
  25. package/templates/blocks/DD-ButtonPop/config.ts +105 -0
  26. package/templates/blocks/DD-ButtonPop/manifest.json +88 -0
  27. package/templates/blocks/DD-ButtonPop/svg-icons/Dust2.tsx +167 -0
  28. package/templates/blocks/DD-Card/Component.tsx +251 -0
  29. package/templates/blocks/DD-Card/README.md +4 -0
  30. package/templates/blocks/DD-Card/config.ts +154 -0
  31. package/templates/blocks/DD-Card/manifest.json +82 -0
  32. package/templates/blocks/DD-CardTemplate01/Component.tsx +5 -6
  33. package/templates/blocks/DD-CardTemplate01/config.ts +106 -106
  34. package/templates/blocks/DD-Carousel-A/Component.tsx +249 -249
  35. package/templates/blocks/DD-Carousel-B/Component.tsx +403 -403
  36. package/templates/blocks/DD-Chip/Component.tsx +250 -0
  37. package/templates/blocks/DD-Chip/EXAMPLES.md +313 -0
  38. package/templates/blocks/DD-Chip/README.md +202 -0
  39. package/templates/blocks/DD-Chip/config.ts +369 -0
  40. package/templates/blocks/DD-Chip/manifest.json +74 -0
  41. package/templates/blocks/DD-ComparisonTable/Component.tsx +256 -256
  42. package/templates/blocks/DD-Contact/Component.tsx +434 -434
  43. package/templates/blocks/DD-Contact/config.ts +22 -22
  44. package/templates/blocks/DD-Counter/Component.tsx +190 -0
  45. package/templates/blocks/DD-Counter/README.md +4 -0
  46. package/templates/blocks/DD-Counter/config.ts +291 -0
  47. package/templates/blocks/DD-Counter/manifest.json +74 -0
  48. package/templates/blocks/DD-CustomCSS/Component.tsx +8 -0
  49. package/templates/blocks/DD-CustomCSS/README.md +4 -0
  50. package/templates/blocks/DD-CustomCSS/addToLayout.md +5 -0
  51. package/templates/blocks/DD-CustomCSS/config.ts +22 -0
  52. package/templates/blocks/DD-CustomCSS/manifest.json +72 -0
  53. package/templates/blocks/DD-CustomCSS/renderCustomCSS.md +7 -0
  54. package/templates/blocks/DD-FeatCat/Component.tsx +302 -302
  55. package/templates/blocks/DD-FeatCat/config.ts +201 -201
  56. package/templates/blocks/DD-FeatStrip/Component.tsx +585 -585
  57. package/templates/blocks/DD-FeatStrip/config.ts +134 -134
  58. package/templates/blocks/DD-FluidBtn/ButtonsEyeCatching.tsx +628 -0
  59. package/templates/blocks/DD-FluidBtn/Component.tsx +43 -0
  60. package/templates/blocks/DD-FluidBtn/README.md +6 -0
  61. package/templates/blocks/DD-FluidBtn/config.ts +102 -0
  62. package/templates/blocks/DD-FluidBtn/manifest.json +86 -0
  63. package/templates/blocks/DD-GooeyInfo/Component.tsx +149 -0
  64. package/templates/blocks/DD-GooeyInfo/config.ts +135 -0
  65. package/templates/blocks/DD-GooeyInfo/manifest.json +72 -0
  66. package/templates/blocks/DD-Hero/Component.tsx +40 -17
  67. package/templates/blocks/DD-Hero/config.ts +267 -267
  68. package/templates/blocks/DD-HorizontalScroll/Component.tsx +4 -2
  69. package/templates/blocks/DD-HorizontalScroll/config.ts +231 -231
  70. package/templates/blocks/DD-Icon/Component.tsx +287 -0
  71. package/templates/blocks/DD-Icon/README.md +4 -0
  72. package/templates/blocks/DD-Icon/config.ts +258 -0
  73. package/templates/blocks/DD-Icon/hooks/revalidateBlockIds.ts +66 -0
  74. package/templates/blocks/DD-Icon/manifest.json +82 -0
  75. package/templates/blocks/DD-IconButton/Component.tsx +455 -0
  76. package/templates/blocks/DD-IconButton/README.md +326 -0
  77. package/templates/blocks/DD-IconButton/config.ts +239 -0
  78. package/templates/blocks/DD-IconButton/manifest.json +85 -0
  79. package/templates/blocks/DD-IdTag/Component.tsx +21 -0
  80. package/templates/blocks/DD-IdTag/README.md +4 -0
  81. package/templates/blocks/DD-IdTag/config.ts +41 -0
  82. package/templates/blocks/DD-IdTag/manifest.json +72 -0
  83. package/templates/blocks/DD-Iframe/Component.tsx +45 -0
  84. package/templates/blocks/DD-Iframe/README.md +4 -0
  85. package/templates/blocks/DD-Iframe/config.ts +47 -0
  86. package/templates/blocks/DD-Iframe/manifest.json +72 -0
  87. package/templates/blocks/DD-IframeMedia/Component.tsx +129 -0
  88. package/templates/blocks/DD-IframeMedia/README.md +4 -0
  89. package/templates/blocks/DD-IframeMedia/config.ts +79 -0
  90. package/templates/blocks/DD-IframeMedia/manifest.json +72 -0
  91. package/templates/blocks/DD-LineAnim/Component.tsx +36 -0
  92. package/templates/blocks/DD-LineAnim/README.md +4 -0
  93. package/templates/blocks/DD-LineAnim/config.ts +90 -0
  94. package/templates/blocks/DD-LineAnim/manifest.json +80 -0
  95. package/templates/blocks/DD-LinkGrid/Component.tsx +119 -0
  96. package/templates/blocks/DD-LinkGrid/README.md +4 -0
  97. package/templates/blocks/DD-LinkGrid/config.ts +51 -0
  98. package/templates/blocks/DD-LinkGrid/manifest.json +74 -0
  99. package/templates/blocks/DD-LogoMarq/Component.tsx +132 -0
  100. package/templates/blocks/DD-LogoMarq/README.md +4 -0
  101. package/templates/blocks/DD-LogoMarq/config.ts +264 -0
  102. package/templates/blocks/DD-LogoMarq/manifest.json +82 -0
  103. package/templates/blocks/DD-Lottie/Component.tsx +459 -0
  104. package/templates/blocks/DD-Lottie/README.md +4 -0
  105. package/templates/blocks/DD-Lottie/config.ts +379 -0
  106. package/templates/blocks/DD-Lottie/index.tsx +28 -0
  107. package/templates/blocks/DD-Lottie/manifest.json +83 -0
  108. package/templates/blocks/DD-MagicBento/Component.tsx +777 -0
  109. package/templates/blocks/DD-MagicBento/README.md +4 -0
  110. package/templates/blocks/DD-MagicBento/config.ts +264 -0
  111. package/templates/blocks/DD-MagicBento/manifest.json +74 -0
  112. package/templates/blocks/DD-MasonaryMedia/Component.tsx +547 -545
  113. package/templates/blocks/DD-MasonaryMedia/config.ts +2 -2
  114. package/templates/blocks/DD-MasonaryMedia/vendor.d.ts +2 -2
  115. package/templates/blocks/DD-Masonry/Component.tsx +645 -0
  116. package/templates/blocks/DD-Masonry/README.md +4 -0
  117. package/templates/blocks/DD-Masonry/config.ts +475 -0
  118. package/templates/blocks/DD-Masonry/manifest.json +82 -0
  119. package/templates/blocks/DD-Pricing/Component.tsx +372 -372
  120. package/templates/blocks/DD-Process/Component.tsx +149 -149
  121. package/templates/blocks/DD-Process/config.ts +150 -150
  122. package/templates/blocks/DD-Progress/Component.tsx +141 -0
  123. package/templates/blocks/DD-Progress/README.md +4 -0
  124. package/templates/blocks/DD-Progress/config.ts +175 -0
  125. package/templates/blocks/DD-Progress/manifest.json +74 -0
  126. package/templates/blocks/DD-ProjHeader/Component.tsx +91 -0
  127. package/templates/blocks/DD-ProjHeader/README.md +4 -0
  128. package/templates/blocks/DD-ProjHeader/config.ts +96 -0
  129. package/templates/blocks/DD-ProjHeader/manifest.json +72 -0
  130. package/templates/blocks/DD-ProjSlider/Component.tsx +123 -0
  131. package/templates/blocks/DD-ProjSlider/README.md +4 -0
  132. package/templates/blocks/DD-ProjSlider/config.ts +64 -0
  133. package/templates/blocks/DD-ProjSlider/manifest.json +72 -0
  134. package/templates/blocks/DD-ScrollText/Component.tsx +114 -0
  135. package/templates/blocks/DD-ScrollText/README.md +4 -0
  136. package/templates/blocks/DD-ScrollText/config.ts +58 -0
  137. package/templates/blocks/DD-ScrollText/manifest.json +72 -0
  138. package/templates/blocks/DD-Section/Component.tsx +266 -266
  139. package/templates/blocks/DD-Separator/Component.tsx +66 -0
  140. package/templates/blocks/DD-Separator/README.md +4 -0
  141. package/templates/blocks/DD-Separator/config.ts +58 -0
  142. package/templates/blocks/DD-Separator/manifest.json +72 -0
  143. package/templates/blocks/DD-Services/Component.tsx +176 -176
  144. package/templates/blocks/DD-Services/config.ts +149 -149
  145. package/templates/blocks/DD-ShowcaseGrid/Component.tsx +307 -307
  146. package/templates/blocks/DD-Slider-A/Component.tsx +237 -237
  147. package/templates/blocks/DD-StackCards/Component.tsx +473 -473
  148. package/templates/blocks/DD-StackCards/config.ts +399 -399
  149. package/templates/blocks/DD-Team/Component.tsx +247 -247
  150. package/templates/blocks/DD-Team/config.ts +173 -173
  151. package/templates/blocks/DD-TeamCards/Component.tsx +251 -0
  152. package/templates/blocks/DD-TeamCards/README.md +4 -0
  153. package/templates/blocks/DD-TeamCards/config.ts +302 -0
  154. package/templates/blocks/DD-TeamCards/manifest.json +74 -0
  155. package/templates/blocks/DD-TechStack/Component.tsx +168 -162
  156. package/templates/blocks/DD-TechStack/config.ts +153 -153
  157. package/templates/blocks/DD-TestMarq/Component.tsx +132 -0
  158. package/templates/blocks/DD-TestMarq/README.md +4 -0
  159. package/templates/blocks/DD-TestMarq/RowLabel.tsx +9 -0
  160. package/templates/blocks/DD-TestMarq/config.ts +88 -0
  161. package/templates/blocks/DD-TestMarq/manifest.json +72 -0
  162. package/templates/blocks/DD-Testim/Component.tsx +247 -0
  163. package/templates/blocks/DD-Testim/README.md +4 -0
  164. package/templates/blocks/DD-Testim/config.ts +101 -0
  165. package/templates/blocks/DD-Testim/manifest.json +75 -0
  166. package/templates/blocks/DD-Testim2/Component.tsx +256 -0
  167. package/templates/blocks/DD-Testim2/README.md +4 -0
  168. package/templates/blocks/DD-Testim2/config.ts +100 -0
  169. package/templates/blocks/DD-Testim2/manifest.json +74 -0
  170. package/templates/blocks/DD-Testimonials/Component.tsx +147 -147
  171. package/templates/blocks/DD-Testimonials/config.ts +120 -120
  172. package/templates/blocks/DD-TextMarq/Component.tsx +157 -0
  173. package/templates/blocks/DD-TextMarq/README.md +4 -0
  174. package/templates/blocks/DD-TextMarq/config.ts +237 -0
  175. package/templates/blocks/DD-TextMarq/manifest.json +82 -0
  176. package/templates/blocks/DD-Thanks/Component.tsx +500 -0
  177. package/templates/blocks/DD-Thanks/README.md +4 -0
  178. package/templates/blocks/DD-Thanks/config.ts +224 -0
  179. package/templates/blocks/DD-Thanks/manifest.json +72 -0
  180. package/templates/blocks/DD-VertMarq/Component.tsx +154 -0
  181. package/templates/blocks/DD-VertMarq/README.md +4 -0
  182. package/templates/blocks/DD-VertMarq/config.ts +236 -0
  183. package/templates/blocks/DD-VertMarq/dist/index.css +6 -0
  184. package/templates/blocks/DD-VertMarq/dist/index.min.css +1 -0
  185. package/templates/blocks/DD-VertMarq/manifest.json +74 -0
  186. package/templates/blocks/DD-Work/Component.tsx +318 -315
  187. package/templates/blocks/DD-Work/config.ts +165 -165
  188. package/templates/blocks/DD-Work-B/Component.tsx +294 -294
  189. package/templates/blocks/DDHG-CTASection2/Component.tsx +185 -0
  190. package/templates/blocks/DDHG-CTASection2/config.ts +140 -0
  191. package/templates/blocks/DDHG-CTASection2/manifest.json +45 -0
  192. package/templates/blocks/DDHG-HighlightArc/Component.tsx +243 -0
  193. package/templates/blocks/DDHG-HighlightArc/config.ts +85 -0
  194. package/templates/blocks/DDHG-HighlightArc/manifest.json +46 -0
  195. package/templates/blocks/DDHG-LogoMarquee/Component.tsx +93 -0
  196. package/templates/blocks/DDHG-LogoMarquee/config.ts +66 -0
  197. package/templates/blocks/DDHG-LogoMarquee/manifest.json +39 -0
  198. package/templates/blocks/DDHG-NavCodeGrid/Component.tsx +213 -0
  199. package/templates/blocks/DDHG-NavCodeGrid/config.ts +64 -0
  200. package/templates/blocks/DDHG-NavCodeGrid/manifest.json +45 -0
  201. package/templates/blocks/DDHG-ProcessSec/Component.tsx +575 -0
  202. package/templates/blocks/DDHG-ProcessSec/config.ts +170 -0
  203. package/templates/blocks/DDHG-ProcessSec/manifest.json +56 -0
  204. package/templates/blocks/DDHG-ServiceDetails/Component.tsx +164 -0
  205. package/templates/blocks/DDHG-ServiceDetails/ServiceDetailCard.tsx +394 -0
  206. package/templates/blocks/DDHG-ServiceDetails/config.ts +77 -0
  207. package/templates/blocks/DDHG-ServiceDetails/manifest.json +50 -0
  208. package/templates/blocks/DDHG-ServiceHero/Component.tsx +234 -0
  209. package/templates/blocks/DDHG-ServiceHero/config.ts +49 -0
  210. package/templates/blocks/DDHG-ServiceHero/manifest.json +26 -0
  211. package/templates/blocks/DDHG-ServiceOverview/Component.tsx +277 -0
  212. package/templates/blocks/DDHG-ServiceOverview/config.ts +64 -0
  213. package/templates/blocks/DDHG-ServiceOverview/manifest.json +44 -0
  214. package/templates/blocks/DDHG-StatsFAQ/Component.tsx +389 -0
  215. package/templates/blocks/DDHG-StatsFAQ/config.ts +204 -0
  216. package/templates/blocks/DDHG-StatsFAQ/manifest.json +45 -0
  217. package/templates/blocks/DDHG-TeamCards/Component.tsx +131 -0
  218. package/templates/blocks/DDHG-TeamCards/config.ts +48 -0
  219. package/templates/blocks/DDHG-TeamCards/manifest.json +29 -0
  220. package/templates/shared/src/components/BgLightning/index.tsx +242 -0
  221. package/templates/shared/src/components/ui/ShareButton/index.tsx +80 -0
  222. package/templates/shared/src/components/ui/anims/FadeOnScroll.tsx +48 -0
  223. package/templates/shared/src/components/ui/anims/FadeUpOnInView.tsx +63 -0
  224. package/templates/shared/src/components/ui/anims/GlareHover.tsx +111 -0
  225. package/templates/shared/src/components/ui/anims/LineAnims.tsx +81 -0
  226. package/templates/shared/src/components/ui/anims/TitleAnims01.tsx +54 -0
  227. package/templates/shared/src/components/ui/anims/animation-container.tsx +29 -0
  228. package/templates/shared/src/components/ui/anims/blur-in.tsx +26 -0
  229. package/templates/shared/src/components/ui/anims/counter.tsx +53 -0
  230. package/templates/shared/src/components/ui/anims/fade.tsx +83 -0
  231. package/templates/shared/src/components/ui/anims/gradual-spacing.tsx +39 -0
  232. package/templates/shared/src/components/ui/anims/pull-up.tsx +93 -0
  233. package/templates/shared/src/components/ui/anims/reveal-text.tsx +76 -0
  234. package/templates/shared/src/components/ui/anims/rotate-words.tsx +43 -0
  235. package/templates/shared/src/components/ui/anims/shiny-text.tsx +58 -0
  236. package/templates/shared/src/components/ui/anims/shuffle-text.tsx +85 -0
  237. package/templates/shared/src/components/ui/anims/split-text.tsx +211 -0
  238. package/templates/shared/src/components/ui/anims/staggered-fade.tsx +133 -0
  239. package/templates/shared/src/components/ui/anims/text-scroll.tsx +111 -0
  240. package/templates/shared/src/components/ui/anims/typing-effect.tsx +112 -0
  241. package/templates/shared/src/components/ui/button-dusted-fluid/index.tsx +1521 -0
  242. package/templates/shared/src/components/ui/separator.tsx +85 -0
  243. package/templates/shared/src/hooks/useBodyScrollLock.ts +97 -0
  244. package/templates/shared/src/hooks/useClickOutside.ts +28 -0
  245. package/templates/shared/src/utilities/renderCustomCSS.ts +5 -0
  246. package/templates/shared/src/utilities/smoothScroll.ts +65 -0
@@ -0,0 +1,204 @@
1
+ import { Block } from 'payload'
2
+
3
+ export const DDAsideNav: Block = {
4
+ slug: 'DD-AsideNav',
5
+ interfaceName: 'DDAsideNav',
6
+ labels: {
7
+ singular: 'Aside Scroll Links',
8
+ plural: 'Aside Scroll Links'
9
+ },
10
+
11
+ fields: [
12
+ {
13
+ name: 'blockName',
14
+ type: 'text',
15
+ label: 'Block Name',
16
+ defaultValue: 'asideNav',
17
+ admin: {
18
+ description: 'Name identifier for this block instance. Eg: asideNav-[page-name]'
19
+ }
20
+ },
21
+ {
22
+ name: 'parentSections',
23
+ type: 'array',
24
+ label: 'Parent Sections',
25
+ minRows: 1,
26
+ maxRows: 20,
27
+ dbName: 'aside_sections', // Add short table name
28
+ fields: [
29
+ {
30
+ name: 'sectionId',
31
+ type: 'text',
32
+ label: 'Section ID',
33
+ hidden: true,
34
+ admin: {
35
+ description: 'Add page name url for reference only. eg: home-pagelink-1'
36
+ }
37
+ },
38
+ {
39
+ name: 'label',
40
+ type: 'text',
41
+ label: 'Parent Label',
42
+ required: true,
43
+ defaultValue: 'Page Links',
44
+ admin: {
45
+ description: 'The display name for this parent section'
46
+ }
47
+ },
48
+ {
49
+ name: 'children',
50
+ type: 'array',
51
+ label: 'Child Links',
52
+ maxRows: 20,
53
+ dbName: 'aside_links', // Add short table name for nested array
54
+ fields: [
55
+ {
56
+ name: 'linkId',
57
+ type: 'text',
58
+ label: 'Child ID',
59
+ hidden: true,
60
+ admin: {
61
+ description: 'Add page name url for reference only. eg: home-pagelink-1'
62
+ }
63
+ },
64
+ {
65
+ name: 'label',
66
+ type: 'text',
67
+ label: 'Child Label',
68
+ required: true,
69
+ admin: {
70
+ description: 'The display name for this child link'
71
+ }
72
+ },
73
+ {
74
+ name: 'targetSection',
75
+ type: 'text',
76
+ label: 'Target Section ID',
77
+ required: true,
78
+ defaultValue: 'section-1',
79
+ admin: {
80
+ description: 'The ID of the section to scroll to when clicked (without #)'
81
+ }
82
+ },
83
+ {
84
+ name: 'scrollOffset',
85
+ type: 'number',
86
+ label: 'Scroll Offset (px)',
87
+ defaultValue: -100,
88
+ admin: {
89
+ description:
90
+ 'Offset in pixels from the target element (negative values scroll above the target)'
91
+ }
92
+ },
93
+ {
94
+ name: 'wideOnHover',
95
+ type: 'number',
96
+ label: 'Hover Bar Width (px)',
97
+ defaultValue: 55,
98
+ admin: {
99
+ description: 'Width of the accent bar when hovered'
100
+ }
101
+ }
102
+ ]
103
+ }
104
+ ]
105
+ },
106
+ {
107
+ type: 'row',
108
+ fields: [
109
+ {
110
+ name: 'position',
111
+ type: 'select',
112
+ label: 'Position',
113
+ defaultValue: 'left',
114
+ options: [
115
+ {
116
+ label: 'Left',
117
+ value: 'left'
118
+ },
119
+ {
120
+ label: 'Right',
121
+ value: 'right'
122
+ }
123
+ ],
124
+ admin: {
125
+ width: '50%',
126
+ description: 'Which side of the screen to position the navigation'
127
+ }
128
+ },
129
+ {
130
+ name: 'zIndex',
131
+ type: 'number',
132
+ label: 'Z-Index',
133
+ defaultValue: 200,
134
+ admin: {
135
+ width: '50%',
136
+ description: 'CSS z-index value for layering control'
137
+ }
138
+ }
139
+ ]
140
+ },
141
+ {
142
+ name: 'offsetFromEdge',
143
+ type: 'number',
144
+ label: 'Offset From Edge (px)',
145
+ defaultValue: 24,
146
+ admin: {
147
+ description: 'Distance in pixels from the screen edge'
148
+ }
149
+ },
150
+ {
151
+ name: 'enableCustomCSS',
152
+ type: 'checkbox',
153
+ label: 'Enable Custom CSS',
154
+ defaultValue: false,
155
+ admin: {
156
+ description: 'Allow custom CSS injection for this block'
157
+ }
158
+ },
159
+ {
160
+ name: 'customCSS',
161
+ type: 'array',
162
+ label: 'Custom CSS',
163
+ minRows: 0,
164
+ maxRows: 1,
165
+ admin: {
166
+ condition: (data) => data.enableCustomCSS,
167
+ description: 'Custom CSS rules to inject'
168
+ },
169
+
170
+ fields: [
171
+ {
172
+ name: 'property',
173
+ type: 'text',
174
+ label: 'CSS Property',
175
+ required: true
176
+ },
177
+ {
178
+ name: 'value',
179
+ type: 'text',
180
+ label: 'CSS Value',
181
+ required: true
182
+ },
183
+ {
184
+ name: 'selector',
185
+ type: 'text',
186
+ label: 'CSS Selector',
187
+ admin: {
188
+ description: 'Optional selector (defaults to block container)'
189
+ }
190
+ }
191
+ ]
192
+ },
193
+ {
194
+ name: 'className',
195
+ type: 'text',
196
+ label: 'CSS Class',
197
+ admin: {
198
+ description: 'Additional CSS classes to apply to the component'
199
+ }
200
+ }
201
+ ]
202
+ }
203
+
204
+ export default DDAsideNav
@@ -0,0 +1,80 @@
1
+ {
2
+ "type": "block",
3
+ "name": "DD-AsideNav",
4
+ "label": "Aside Navigation",
5
+ "sourceName": "AsideNav",
6
+ "portableName": "DD-AsideNav",
7
+ "slug": "DD-AsideNav",
8
+ "version": "0.0.1",
9
+ "source": {
10
+ "repo": "Hadizainal/DesignsDustedv3",
11
+ "originalPath": "src/blocks/AsideNav",
12
+ "originalSlug": "asideNav",
13
+ "originalConfigExport": "AsideNav",
14
+ "originalComponentExport": "AsideNav",
15
+ "originalInterfaceName": "DDAsideNav"
16
+ },
17
+ "files": [
18
+ {
19
+ "from": "Component.tsx",
20
+ "to": "src/blocks/DD-AsideNav/Component.tsx"
21
+ },
22
+ {
23
+ "from": "config.ts",
24
+ "to": "src/blocks/DD-AsideNav/config.ts"
25
+ }
26
+ ],
27
+ "dependencies": [],
28
+ "sharedFiles": [
29
+ {
30
+ "from": "templates/shared/src/utilities/renderCustomCSS.ts",
31
+ "to": "src/utilities/renderCustomCSS.ts",
32
+ "required": true,
33
+ "safeToCopy": true
34
+ }
35
+ ],
36
+ "requiredProjectFiles": [],
37
+ "optionalProjectFiles": [],
38
+ "collectionRegistration": {
39
+ "enabled": true,
40
+ "collections": [
41
+ "Pages",
42
+ "Posts"
43
+ ]
44
+ },
45
+ "renderBlocksRegistration": {
46
+ "enabled": true
47
+ },
48
+ "renderBlocksBehavior": {
49
+ "wrapperless": false
50
+ },
51
+ "pageRouteIntegration": {
52
+ "required": false,
53
+ "manualSteps": []
54
+ },
55
+ "manual": [
56
+ "Register DDAsideNav in Pages/Posts blocks arrays if automatic registration was skipped.",
57
+ "Register DD-AsideNav in RenderBlocks if automatic registration was skipped.",
58
+ "Run payload generate:types after schema changes."
59
+ ],
60
+ "manualSteps": [
61
+ "Register DDAsideNav in Pages/Posts blocks arrays if automatic registration was skipped.",
62
+ "Register DD-AsideNav in RenderBlocks if automatic registration was skipped.",
63
+ "Run payload generate:types after schema changes."
64
+ ],
65
+ "patchTargets": {
66
+ "blockConfigRegistration": {
67
+ "description": "Installer can add import { DDAsideNav } from '@/blocks/DD-AsideNav/config' and add DDAsideNav to clear Pages/Posts block arrays."
68
+ },
69
+ "renderBlocksRegistration": {
70
+ "description": "Installer can register DD-AsideNav in RenderBlocks."
71
+ }
72
+ },
73
+ "notes": [
74
+ "Converted from DesignsDustedv3 AsideNav.",
75
+ "Project-specific imports were replaced with portable local behaviour where required.",
76
+ "Manifest includes shared local support files required by original DesignsDusted source imports."
77
+ ],
78
+ "exportName": "DDAsideNav",
79
+ "interfaceName": "DDAsideNav"
80
+ }
@@ -0,0 +1,51 @@
1
+ import type { BannerBlock as BannerBlockProps } from 'src/payload-types'
2
+
3
+ import { cn } from '@/utilities/ui'
4
+ import React from 'react'
5
+ import RichText from '@/components/RichText'
6
+
7
+ // Shared ::before overlay (lines.svg texture) applied to all banner variants
8
+ const BANNER_BEFORE_CLS =
9
+ 'relative z-0 ' +
10
+ "before:content-[''] before:absolute before:inset-0 before:z-[-1] " +
11
+ 'before:bg-[url(/assets/svg/lines.svg)] before:bg-[length:10px_10px] ' +
12
+ 'before:bg-repeat before:opacity-100 before:pointer-events-none'
13
+
14
+ type Props = {
15
+ className?: string
16
+ wrapperClassName?: string
17
+ } & BannerBlockProps
18
+
19
+ export const BannerBlock: React.FC<Props> = ({ className, wrapperClassName, content, style }) => {
20
+ return (
21
+ <div className={cn('mx-auto my-8 w-full banner_container', className)}>
22
+ <div
23
+ className={cn(
24
+ wrapperClassName,
25
+ 'border py-3 pl-0 pr-3 flex items-center rounded shadow-2xl banner_content',
26
+ BANNER_BEFORE_CLS,
27
+ {
28
+ 'banner-info border-[var(--border)] bg-card text-[var(--black)] [box-shadow:inset_0_0_2px_0px_var(--border),var(--shadow-xl)] [&_blockquote]:!border-s-[var(--border)]':
29
+ style === 'info',
30
+ 'banner-error border-[var(--error-border)] bg-[var(--error)] text-[var(--white)] [box-shadow:inset_0_0_2px_0px_var(--error),var(--shadow-xl)] [&_blockquote]:!border-s-[var(--error-border)] text-stone-200 dark:text-stone-200':
31
+ style === 'error',
32
+ 'banner-success border-[var(--success-border)] bg-[var(--success)] text-[var(--white)] [box-shadow:inset_0_0_2px_0px_var(--success),var(--shadow-xl)] [&_blockquote]:!border-s-[var(--success-border)] text-stone-200 dark:text-stone-200':
33
+ style === 'success',
34
+ 'banner-warning border-[var(--warning-border)] bg-[var(--warning)] text-white [box-shadow:inset_0_0_2px_0px_var(--warning),var(--shadow-xl)] [&_blockquote]:!border-s-[var(--warning-border)]':
35
+ style === 'warning',
36
+ }
37
+ )}
38
+ >
39
+ <RichText
40
+ data={content}
41
+ className="banner_richtext"
42
+ enableGutter={false}
43
+ enableProse={true}
44
+ />
45
+ </div>
46
+ </div>
47
+ )
48
+ }
49
+
50
+ export const DDBanner = BannerBlock
51
+ export default DDBanner
@@ -0,0 +1,57 @@
1
+ import type { Block } from 'payload'
2
+
3
+ import { BlocksFeature } from '@payloadcms/richtext-lexical'
4
+
5
+ import { DDAnimText } from '@/blocks/DD-AnimText/config'
6
+ import { DDIconButton } from '@/blocks/DD-IconButton/config'
7
+ import { defaultLexical } from '@/fields/defaultLexical'
8
+
9
+ export const DDBanner: Block = {
10
+ slug: 'DD-Banner',
11
+ fields: [
12
+ {
13
+ name: 'style',
14
+ type: 'select',
15
+ defaultValue: 'info',
16
+ options: [
17
+ { label: 'Info', value: 'info' },
18
+ { label: 'Warning', value: 'warning' },
19
+ { label: 'Error', value: 'error' },
20
+ { label: 'Success', value: 'success' }
21
+ ],
22
+ required: true
23
+ },
24
+ {
25
+ name: 'content',
26
+ type: 'richText',
27
+ editor: defaultLexical,
28
+ label: false,
29
+ required: true
30
+ },
31
+ {
32
+ name: 'useCustomClasses',
33
+ type: 'checkbox',
34
+ label: 'Override default classes',
35
+ defaultValue: false
36
+ },
37
+ {
38
+ name: 'className',
39
+ type: 'text',
40
+ label: 'DDBanner container class',
41
+ admin: {
42
+ description: 'banner_container class',
43
+ condition: (_, siblingData) => Boolean(siblingData.useCustomClasses)
44
+ }
45
+ },
46
+ {
47
+ name: 'wrapperClassName',
48
+ type: 'text',
49
+ label: 'DDBanner content class',
50
+ admin: {
51
+ description: 'banner_content class',
52
+ condition: (_, siblingData) => Boolean(siblingData.useCustomClasses)
53
+ }
54
+ }
55
+ ],
56
+ interfaceName: 'DDBanner'
57
+ }
@@ -0,0 +1,72 @@
1
+ {
2
+ "type": "block",
3
+ "name": "DD-Banner",
4
+ "label": "Banner",
5
+ "sourceName": "Banner",
6
+ "portableName": "DD-Banner",
7
+ "slug": "DD-Banner",
8
+ "version": "0.0.1",
9
+ "source": {
10
+ "repo": "Hadizainal/DesignsDustedv3",
11
+ "originalPath": "src/blocks/Banner",
12
+ "originalSlug": "banner",
13
+ "originalConfigExport": "Banner",
14
+ "originalComponentExport": "Banner",
15
+ "originalInterfaceName": "DDBanner"
16
+ },
17
+ "files": [
18
+ {
19
+ "from": "Component.tsx",
20
+ "to": "src/blocks/DD-Banner/Component.tsx"
21
+ },
22
+ {
23
+ "from": "config.ts",
24
+ "to": "src/blocks/DD-Banner/config.ts"
25
+ }
26
+ ],
27
+ "dependencies": [],
28
+ "sharedFiles": [],
29
+ "requiredProjectFiles": [],
30
+ "optionalProjectFiles": [],
31
+ "collectionRegistration": {
32
+ "enabled": true,
33
+ "collections": [
34
+ "Pages",
35
+ "Posts"
36
+ ]
37
+ },
38
+ "renderBlocksRegistration": {
39
+ "enabled": true
40
+ },
41
+ "renderBlocksBehavior": {
42
+ "wrapperless": false
43
+ },
44
+ "pageRouteIntegration": {
45
+ "required": false,
46
+ "manualSteps": []
47
+ },
48
+ "manual": [
49
+ "Register DDBanner in Pages/Posts blocks arrays if automatic registration was skipped.",
50
+ "Register DD-Banner in RenderBlocks if automatic registration was skipped.",
51
+ "Run payload generate:types after schema changes."
52
+ ],
53
+ "manualSteps": [
54
+ "Register DDBanner in Pages/Posts blocks arrays if automatic registration was skipped.",
55
+ "Register DD-Banner in RenderBlocks if automatic registration was skipped.",
56
+ "Run payload generate:types after schema changes."
57
+ ],
58
+ "patchTargets": {
59
+ "blockConfigRegistration": {
60
+ "description": "Installer can add import { DDBanner } from '@/blocks/DD-Banner/config' and add DDBanner to clear Pages/Posts block arrays."
61
+ },
62
+ "renderBlocksRegistration": {
63
+ "description": "Installer can register DD-Banner in RenderBlocks."
64
+ }
65
+ },
66
+ "notes": [
67
+ "Converted from DesignsDustedv3 Banner.",
68
+ "Project-specific imports were replaced with portable local behaviour where required."
69
+ ],
70
+ "exportName": "DDBanner",
71
+ "interfaceName": "DDBanner"
72
+ }
@@ -0,0 +1,44 @@
1
+ 'use client'
2
+
3
+ import React from 'react'
4
+ import BgLightning from '@/components/BgLightning'
5
+ type BgLightningBlockProps = {
6
+ hue?: number
7
+ xOffset?: number
8
+ speed?: number
9
+ intensity?: number
10
+ size?: number
11
+ height?: string
12
+ sectionId?: string
13
+ }
14
+
15
+ type Props = BgLightningBlockProps & {
16
+ className?: string
17
+ }
18
+
19
+ export const DDBgLightning: React.FC<Props> = ({
20
+ hue = 230,
21
+ xOffset = 0,
22
+ speed = 1,
23
+ intensity = 1,
24
+ size = 1,
25
+ height = '600px',
26
+ className,
27
+ sectionId
28
+ }) => {
29
+ return (
30
+ <div
31
+ id={sectionId}
32
+ style={{ width: '100%', height: height ?? '600px', position: 'relative' }}
33
+ className={className ?? undefined}
34
+ >
35
+ <BgLightning
36
+ hue={hue ?? 230}
37
+ xOffset={xOffset ?? 0}
38
+ speed={speed ?? 1}
39
+ intensity={intensity ?? 1}
40
+ size={size ?? 1}
41
+ />
42
+ </div>
43
+ )
44
+ }
@@ -0,0 +1,3 @@
1
+ # DD-BgLightning
2
+
3
+ Portable conversion of the raw BgLightningBlock. The source block depended on a project-local `@/components/BgLightning` root, so this template ships a local CSS/markup fallback instead of requiring that application shell component.
@@ -0,0 +1,97 @@
1
+ import type { Block } from 'payload'
2
+
3
+ export const DDBgLightning: Block = {
4
+ slug: 'DD-BgLightning',
5
+ interfaceName: 'DDBgLightning',
6
+ labels: {
7
+ singular: 'BG Lightning',
8
+ plural: 'BG Lightning Blocks'
9
+ },
10
+ fields: [
11
+ {
12
+ type: 'row',
13
+ fields: [
14
+ {
15
+ name: 'sectionId',
16
+ type: 'text',
17
+ label: 'Section ID',
18
+ admin: {
19
+ description: 'HTML id attribute for anchor linking (e.g. "lightning-bg")'
20
+ }
21
+ },
22
+ {
23
+ name: 'className',
24
+ type: 'text',
25
+ label: 'Extra CSS Classes',
26
+ admin: {
27
+ description: 'Additional Tailwind / custom classes applied to the container'
28
+ }
29
+ },
30
+ {
31
+ name: 'hue',
32
+ type: 'number',
33
+ label: 'Hue (0–360)',
34
+ defaultValue: 230,
35
+ min: 0,
36
+ max: 360,
37
+ admin: {
38
+ description: 'Base colour hue in degrees',
39
+ width: '20%'
40
+ }
41
+ },
42
+ {
43
+ name: 'xOffset',
44
+ type: 'number',
45
+ label: 'X Offset',
46
+ defaultValue: 0,
47
+ admin: {
48
+ description: 'Horizontal position of the lightning bolt',
49
+ width: '20%'
50
+ }
51
+ },
52
+ {
53
+ name: 'speed',
54
+ type: 'number',
55
+ label: 'Speed',
56
+ defaultValue: 1,
57
+ min: 0,
58
+ admin: {
59
+ description: 'Animation speed multiplier',
60
+ width: '20%'
61
+ }
62
+ },
63
+ {
64
+ name: 'intensity',
65
+ type: 'number',
66
+ label: 'Intensity',
67
+ defaultValue: 1,
68
+ min: 0,
69
+ admin: {
70
+ description: 'Brightness / glow intensity',
71
+ width: '20%'
72
+ }
73
+ },
74
+ {
75
+ name: 'size',
76
+ type: 'number',
77
+ label: 'Size',
78
+ defaultValue: 1,
79
+ min: 0,
80
+ admin: {
81
+ description: 'Scale of the noise pattern',
82
+ width: '20%'
83
+ }
84
+ }
85
+ ]
86
+ },
87
+ {
88
+ name: 'height',
89
+ type: 'text',
90
+ label: 'Container Height',
91
+ defaultValue: '600px',
92
+ admin: {
93
+ description: 'CSS height value for the container (e.g. 600px, 100vh, 50dvh)'
94
+ }
95
+ }
96
+ ]
97
+ }
@@ -0,0 +1,79 @@
1
+ {
2
+ "type": "block",
3
+ "name": "DD-BgLightning",
4
+ "label": "Background Lightning",
5
+ "sourceName": "BgLightningBlock",
6
+ "portableName": "DD-BgLightning",
7
+ "slug": "DD-BgLightning",
8
+ "version": "0.0.1",
9
+ "source": {
10
+ "repo": "Hadizainal/DesignsDustedv3",
11
+ "originalPath": "src/blocks/BgLightningBlock",
12
+ "originalSlug": "bgLightningBlock",
13
+ "originalConfigExport": "BgLightningBlock",
14
+ "originalComponentExport": "BgLightningBlock",
15
+ "originalInterfaceName": "DDBgLightning"
16
+ },
17
+ "files": [
18
+ {
19
+ "from": "Component.tsx",
20
+ "to": "src/blocks/DD-BgLightning/Component.tsx"
21
+ },
22
+ {
23
+ "from": "config.ts",
24
+ "to": "src/blocks/DD-BgLightning/config.ts"
25
+ }
26
+ ],
27
+ "dependencies": [],
28
+ "sharedFiles": [
29
+ {
30
+ "from": "templates/shared/src/components/BgLightning",
31
+ "to": "src/components/BgLightning",
32
+ "required": true,
33
+ "safeToCopy": true
34
+ }
35
+ ],
36
+ "requiredProjectFiles": [],
37
+ "optionalProjectFiles": [],
38
+ "collectionRegistration": {
39
+ "enabled": true,
40
+ "collections": [
41
+ "Pages",
42
+ "Posts"
43
+ ]
44
+ },
45
+ "renderBlocksRegistration": {
46
+ "enabled": true
47
+ },
48
+ "renderBlocksBehavior": {
49
+ "wrapperless": false
50
+ },
51
+ "pageRouteIntegration": {
52
+ "required": false,
53
+ "manualSteps": []
54
+ },
55
+ "manual": [
56
+ "Register DDBgLightning in Pages/Posts blocks arrays if automatic registration was skipped.",
57
+ "Register DD-BgLightning in RenderBlocks if automatic registration was skipped.",
58
+ "Run payload generate:types after schema changes."
59
+ ],
60
+ "manualSteps": [
61
+ "Register DDBgLightning in Pages/Posts blocks arrays if automatic registration was skipped.",
62
+ "Register DD-BgLightning in RenderBlocks if automatic registration was skipped.",
63
+ "Run payload generate:types after schema changes."
64
+ ],
65
+ "patchTargets": {
66
+ "blockConfigRegistration": {
67
+ "description": "Installer can add import { DDBgLightning } from '@/blocks/DD-BgLightning/config' and add DDBgLightning to clear Pages/Posts block arrays."
68
+ },
69
+ "renderBlocksRegistration": {
70
+ "description": "Installer can register DD-BgLightning in RenderBlocks."
71
+ }
72
+ },
73
+ "notes": [
74
+ "Raw block depended on @/components/BgLightning; this template ships a portable CSS fallback instead.",
75
+ "Manifest includes shared local support files required by original DesignsDusted source imports."
76
+ ],
77
+ "exportName": "DDBgLightning",
78
+ "interfaceName": "DDBgLightning"
79
+ }