blocks-dusted 0.1.11 → 0.1.12

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 (46) hide show
  1. package/package.json +5 -2
  2. package/src/cli.js +39 -3
  3. package/src/commands/shop.js +59 -0
  4. package/src/commands/warehouse.js +73 -0
  5. package/templates/blocks/DD-BookCall/Component.tsx +535 -534
  6. package/templates/blocks/DD-CardTemplate01/Component.tsx +140 -139
  7. package/templates/blocks/DD-Carousel-A/Component.tsx +1 -1
  8. package/templates/blocks/DD-Carousel-B/Component.tsx +1 -1
  9. package/templates/blocks/DD-Chip/Component.tsx +14 -14
  10. package/templates/blocks/DD-ComparisonTable/Component.tsx +1 -1
  11. package/templates/blocks/DD-Contact/Component.tsx +8 -7
  12. package/templates/blocks/DD-Counter/Component.tsx +10 -10
  13. package/templates/blocks/DD-FeatCat/Component.tsx +1 -1
  14. package/templates/blocks/DD-FeatStrip/Component.tsx +1 -1
  15. package/templates/blocks/DD-Hero/Component.tsx +297 -320
  16. package/templates/blocks/DD-HorizontalScroll/Component.tsx +936 -938
  17. package/templates/blocks/DD-IframeMedia/Component.tsx +14 -10
  18. package/templates/blocks/DD-MasonaryMedia/Component.tsx +8 -10
  19. package/templates/blocks/DD-Pricing/Component.tsx +369 -372
  20. package/templates/blocks/DD-Process/Component.tsx +147 -149
  21. package/templates/blocks/DD-Progress/Component.tsx +156 -141
  22. package/templates/blocks/DD-ProjSlider/config.ts +2 -2
  23. package/templates/blocks/DD-Section/Component.tsx +1 -1
  24. package/templates/blocks/DD-Services/Component.tsx +1 -1
  25. package/templates/blocks/DD-ShowcaseGrid/Component.tsx +13 -13
  26. package/templates/blocks/DD-Slider-A/Component.tsx +237 -237
  27. package/templates/blocks/DD-StackCards/Component.tsx +473 -473
  28. package/templates/blocks/DD-Team/Component.tsx +1 -1
  29. package/templates/blocks/DD-TechStack/Component.tsx +22 -28
  30. package/templates/blocks/DD-Testimonials/Component.tsx +35 -43
  31. package/templates/blocks/DD-TextMarq/Component.tsx +157 -157
  32. package/templates/blocks/DD-Thanks/Component.tsx +501 -500
  33. package/templates/blocks/DD-Work/Component.tsx +4 -4
  34. package/templates/blocks/DD-Work-B/Component.tsx +1 -1
  35. package/templates/blocks/DDHG-CTASection2/Component.tsx +6 -6
  36. package/templates/blocks/DDHG-HighlightArc/Component.tsx +243 -243
  37. package/templates/blocks/DDHG-LogoMarquee/Component.tsx +143 -93
  38. package/templates/blocks/DDHG-LogoMarquee/config.ts +154 -66
  39. package/templates/blocks/DDHG-NavCodeGrid/Component.tsx +227 -213
  40. package/templates/blocks/DDHG-ProcessSec/Component.tsx +38 -39
  41. package/templates/blocks/DDHG-ServiceDetails/Component.tsx +11 -11
  42. package/templates/blocks/DDHG-ServiceDetails/ServiceDetailCard.tsx +24 -28
  43. package/templates/blocks/DDHG-ServiceHero/Component.tsx +1 -1
  44. package/templates/blocks/DDHG-ServiceOverview/Component.tsx +23 -23
  45. package/templates/blocks/DDHG-StatsFAQ/Component.tsx +40 -40
  46. package/templates/blocks/DDHG-TeamCards/Component.tsx +169 -131
@@ -7,20 +7,23 @@ export type MediaType = {
7
7
  alt?: string
8
8
  }
9
9
 
10
- export type IframeMediaBlockProps = {
11
- data: {
12
- fullwidthSectionClass?: string
13
- sectionId?: string
14
- video?: MediaType
15
- image?: MediaType // used as poster
16
- imageClassName?: string
17
- additionalStyles?: React.CSSProperties
18
- }
10
+ type IframeMediaFields = {
11
+ fullwidthSectionClass?: string
12
+ sectionId?: string
13
+ video?: MediaType
14
+ image?: MediaType // used as poster
15
+ imageClassName?: string
16
+ additionalStyles?: React.CSSProperties
17
+ }
18
+
19
+ export type IframeMediaBlockProps = IframeMediaFields & {
20
+ data?: IframeMediaFields
19
21
  }
20
22
 
21
23
  // ✅ Named export
22
- export const DDIframeMedia: React.FC<IframeMediaBlockProps> = ({ data }) => {
24
+ export const DDIframeMedia: React.FC<IframeMediaBlockProps> = (props) => {
23
25
  const [isLoading, setIsLoading] = React.useState(true)
26
+ const data = props.data ?? props
24
27
  const { video, image, sectionId, fullwidthSectionClass, additionalStyles } = data
25
28
  const sectionIdValue = sectionId || 'fullwidth-container'
26
29
 
@@ -127,3 +130,4 @@ export const DDIframeMedia: React.FC<IframeMediaBlockProps> = ({ data }) => {
127
130
  </section>
128
131
  )
129
132
  }
133
+
@@ -190,11 +190,11 @@ function StudioMasonaryCard({ item, index }: { item: ShowcaseItem; index: number
190
190
  <Link href={href} className="block h-full focus-visible:outline-none">
191
191
  <article
192
192
  data-theme="dark"
193
- className="masonary-article-card outline-2 outline-stone-500/50 outline-solid group relative h-full w-full overflow-clip !rounded-[3rem] border border-border bg-[#55526b85]! backdrop-blur-xl! shadow-2xl transition-all duration-300 hover:cursor-pointer hover:border-lime-500 hover:shadow-2xl [corner-shape:squircle]"
193
+ className="masonary-article-card outline-2 outline-stone-500/50 outline-solid group relative h-full w-full overflow-clip rounded-[3rem]! border border-border bg-[#55526b85]! backdrop-blur-xl! shadow-2xl transition-all duration-300 hover:cursor-pointer hover:border-lime-500 hover:shadow-2xl"
194
194
  style={{ cornerShape: 'squircle', aspectRatio } as React.CSSProperties}
195
195
  >
196
196
  <div
197
- className="card-media relative w-full overflow-hidden !rounded-[3rem] border border-border bg-linear-to-br from-violet-950 to-indigo-950 shadow-2xl! [corner-shape:squircle]"
197
+ className="card-media relative w-full overflow-hidden rounded-[3rem]! border border-border bg-linear-to-br from-violet-950 to-indigo-950 shadow-2xl!"
198
198
  style={{ cornerShape: 'squircle', aspectRatio } as React.CSSProperties}
199
199
  >
200
200
  {imageUrl ? (
@@ -204,7 +204,7 @@ function StudioMasonaryCard({ item, index }: { item: ShowcaseItem; index: number
204
204
  loading="lazy"
205
205
  decoding="async"
206
206
  className={cn(
207
- 'absolute inset-0 h-full w-full object-cover object-top !rounded-[3rem] transition-all duration-500 group-hover:scale-105',
207
+ 'absolute inset-0 h-full w-full object-cover object-top rounded-[3rem]! transition-all duration-500 group-hover:scale-105',
208
208
  hoverUrl && 'group-hover:opacity-0',
209
209
  )}
210
210
  style={{ cornerShape: 'squircle' } as React.CSSProperties}
@@ -223,7 +223,7 @@ function StudioMasonaryCard({ item, index }: { item: ShowcaseItem; index: number
223
223
  loop
224
224
  playsInline
225
225
  preload="metadata"
226
- className="absolute inset-0 h-full w-full object-cover object-top !rounded-[3rem] opacity-0 transition-all duration-500 group-hover:scale-105 group-hover:opacity-100"
226
+ className="absolute inset-0 h-full w-full object-cover object-top rounded-[3rem]! opacity-0 transition-all duration-500 group-hover:scale-105 group-hover:opacity-100"
227
227
  style={{ cornerShape: 'squircle' } as React.CSSProperties}
228
228
  />
229
229
  )}
@@ -234,7 +234,7 @@ function StudioMasonaryCard({ item, index }: { item: ShowcaseItem; index: number
234
234
  alt=""
235
235
  loading="lazy"
236
236
  decoding="async"
237
- className="absolute inset-0 h-full w-full object-cover object-top !rounded-[3rem] opacity-0 transition-all duration-500 group-hover:scale-105 group-hover:opacity-100"
237
+ className="absolute inset-0 h-full w-full object-cover object-top !rounded-4xl opacity-0 transition-all duration-500 group-hover:scale-105 group-hover:opacity-100"
238
238
  style={{ cornerShape: 'squircle' } as React.CSSProperties}
239
239
  />
240
240
  )}
@@ -286,7 +286,7 @@ export const DDMasonaryMedia: React.FC<DDMasonaryMediaProps> = ({
286
286
  columnsDesktop = 12,
287
287
  columnsTablet = 2,
288
288
  gapClass = 'gap-5',
289
- containerClassName = 'w-full max-w-none px-4 md:px-8',
289
+ containerClassName = 'max-w-7xl mx-auto px-4 md:px-6',
290
290
  sectionClassName = 'py-24',
291
291
  sectionId = 'studio-masonary-media',
292
292
  customCSS,
@@ -465,7 +465,7 @@ export const DDMasonaryMedia: React.FC<DDMasonaryMediaProps> = ({
465
465
 
466
466
  <section id={safeSectionId} className={cn('studio-masonary-media', sectionClassName)}>
467
467
  <div className={cn(containerClassName)}>
468
-
468
+ #BlockName-DDMasonaryMedia
469
469
  <motion.div
470
470
  variants={containerVariants}
471
471
  initial="hidden"
@@ -497,7 +497,7 @@ export const DDMasonaryMedia: React.FC<DDMasonaryMediaProps> = ({
497
497
  {subtext && (
498
498
  <motion.p
499
499
  variants={itemVariants}
500
- className="max-w-2xl text-base leading-relaxed text-stone-400 dark:text-stone-300 lg:max-w-xl lg:text-right"
500
+ className="max-w-sm text-base leading-relaxed text-stone-400 dark:text-stone-300 lg:text-right"
501
501
  >
502
502
  {subtext}
503
503
  </motion.p>
@@ -543,5 +543,3 @@ export const DDMasonaryMedia: React.FC<DDMasonaryMediaProps> = ({
543
543
  }
544
544
 
545
545
  export default DDMasonaryMedia
546
-
547
-