shared-features 0.1.7 → 0.1.9

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.
@@ -6,20 +6,25 @@ export interface AdBannerProps {
6
6
  rotationInterval?: number;
7
7
  /** Maximum number of campaigns to fetch */
8
8
  maxCampaigns?: number;
9
+ /** Whether the banner can be dismissed/closed by user */
10
+ dismissible?: boolean;
11
+ /** How long to remember dismissal: 'session' (until tab close) or 'persistent' (localStorage) */
12
+ dismissDuration?: 'session' | 'persistent';
9
13
  /** Custom CSS class */
10
14
  className?: string;
11
15
  /** Custom styles */
12
16
  style?: React.CSSProperties;
13
17
  }
14
18
  /**
15
- * AdBanner - Permanent promotional banner with rotation
19
+ * AdBanner - Promotional banner with rotation
16
20
  *
17
21
  * @example
18
22
  * ```tsx
19
23
  * <AdBanner />
20
24
  * <AdBanner placement="home_banner" rotationInterval={5000} />
25
+ * <AdBanner placement="topbar_banner" dismissible dismissDuration="session" />
21
26
  * ```
22
27
  */
23
- export declare function AdBanner({ placement, rotationInterval, maxCampaigns, className, style, }: AdBannerProps): import("react/jsx-runtime").JSX.Element | null;
28
+ export declare function AdBanner({ placement, rotationInterval, maxCampaigns, dismissible, dismissDuration, className, style, }: AdBannerProps): import("react/jsx-runtime").JSX.Element | null;
24
29
  export default AdBanner;
25
30
  //# sourceMappingURL=AdBanner.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AdBanner.d.ts","sourceRoot":"","sources":["../../../src/components/ads/AdBanner.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAMH,OAAO,KAAK,EAAE,WAAW,EAAuB,MAAM,uBAAuB,CAAC;AAE9E,MAAM,WAAW,aAAa;IAC5B,6CAA6C;IAC7C,SAAS,CAAC,EAAE,WAAW,CAAC;IACxB,4DAA4D;IAC5D,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,2CAA2C;IAC3C,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,uBAAuB;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,oBAAoB;IACpB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC7B;AAED;;;;;;;;GAQG;AACH,wBAAgB,QAAQ,CAAC,EACvB,SAAyB,EACzB,gBAAwB,EACxB,YAAgB,EAChB,SAAS,EACT,KAAK,GACN,EAAE,aAAa,kDAmQf;AAED,eAAe,QAAQ,CAAC"}
1
+ {"version":3,"file":"AdBanner.d.ts","sourceRoot":"","sources":["../../../src/components/ads/AdBanner.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAMH,OAAO,KAAK,EAAE,WAAW,EAAuB,MAAM,uBAAuB,CAAC;AAK9E,MAAM,WAAW,aAAa;IAC5B,6CAA6C;IAC7C,SAAS,CAAC,EAAE,WAAW,CAAC;IACxB,4DAA4D;IAC5D,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,2CAA2C;IAC3C,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,yDAAyD;IACzD,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,iGAAiG;IACjG,eAAe,CAAC,EAAE,SAAS,GAAG,YAAY,CAAC;IAC3C,uBAAuB;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,oBAAoB;IACpB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC7B;AAED;;;;;;;;;GASG;AACH,wBAAgB,QAAQ,CAAC,EACvB,SAAyB,EACzB,gBAAwB,EACxB,YAAgB,EAChB,WAAmB,EACnB,eAA2B,EAC3B,SAAS,EACT,KAAK,GACN,EAAE,aAAa,kDA6Uf;AAED,eAAe,QAAQ,CAAC"}
@@ -0,0 +1,25 @@
1
+ import { AdPlacement } from '../../types/campaigns';
2
+ export interface AdCarouselProps {
3
+ /** Ad placement (defaults to home_banner) */
4
+ placement?: AdPlacement;
5
+ /** Rotation interval in ms (default: 20000 = 20 seconds) */
6
+ rotationInterval?: number;
7
+ /** Maximum number of campaigns to fetch */
8
+ maxCampaigns?: number;
9
+ /** Custom CSS class */
10
+ className?: string;
11
+ /** Custom styles */
12
+ style?: React.CSSProperties;
13
+ }
14
+ /**
15
+ * AdCarousel - Slider for after hero sections
16
+ *
17
+ * @example
18
+ * ```tsx
19
+ * <AdCarousel />
20
+ * <AdCarousel placement="home_banner" rotationInterval={15000} />
21
+ * ```
22
+ */
23
+ export declare function AdCarousel({ placement, rotationInterval, maxCampaigns, className, style, }: AdCarouselProps): import("react/jsx-runtime").JSX.Element | null;
24
+ export default AdCarousel;
25
+ //# sourceMappingURL=AdCarousel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AdCarousel.d.ts","sourceRoot":"","sources":["../../../src/components/ads/AdCarousel.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAMH,OAAO,KAAK,EAAE,WAAW,EAAuB,MAAM,uBAAuB,CAAC;AAE9E,MAAM,WAAW,eAAe;IAC9B,6CAA6C;IAC7C,SAAS,CAAC,EAAE,WAAW,CAAC;IACxB,4DAA4D;IAC5D,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,2CAA2C;IAC3C,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,uBAAuB;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,oBAAoB;IACpB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC7B;AAED;;;;;;;;GAQG;AACH,wBAAgB,UAAU,CAAC,EACzB,SAAyB,EACzB,gBAAwB,EACxB,YAAgB,EAChB,SAAS,EACT,KAAK,GACN,EAAE,eAAe,kDAkRjB;AAED,eAAe,UAAU,CAAC"}
@@ -0,0 +1,25 @@
1
+ import { AdPlacement } from '../../types/campaigns';
2
+ export interface TopbarAdBannerProps {
3
+ /** Ad placement (defaults to topbar_banner) */
4
+ placement?: AdPlacement;
5
+ /** Rotation interval in ms (default: 20000 = 20 seconds) */
6
+ rotationInterval?: number;
7
+ /** Maximum number of campaigns to fetch */
8
+ maxCampaigns?: number;
9
+ /** Custom CSS class */
10
+ className?: string;
11
+ /** Custom styles */
12
+ style?: React.CSSProperties;
13
+ }
14
+ /**
15
+ * TopbarAdBanner - Compact carousel banner for top of site
16
+ *
17
+ * @example
18
+ * ```tsx
19
+ * <TopbarAdBanner />
20
+ * <TopbarAdBanner rotationInterval={15000} />
21
+ * ```
22
+ */
23
+ export declare function TopbarAdBanner({ placement, rotationInterval, maxCampaigns, className, style, }: TopbarAdBannerProps): import("react/jsx-runtime").JSX.Element | null;
24
+ export default TopbarAdBanner;
25
+ //# sourceMappingURL=TopbarAdBanner.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TopbarAdBanner.d.ts","sourceRoot":"","sources":["../../../src/components/ads/TopbarAdBanner.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAMH,OAAO,KAAK,EAAE,WAAW,EAAuB,MAAM,uBAAuB,CAAC;AAK9E,MAAM,WAAW,mBAAmB;IAClC,+CAA+C;IAC/C,SAAS,CAAC,EAAE,WAAW,CAAC;IACxB,4DAA4D;IAC5D,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,2CAA2C;IAC3C,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,uBAAuB;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,oBAAoB;IACpB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC7B;AAED;;;;;;;;GAQG;AACH,wBAAgB,cAAc,CAAC,EAC7B,SAA2B,EAC3B,gBAAwB,EACxB,YAAgB,EAChB,SAAS,EACT,KAAK,GACN,EAAE,mBAAmB,kDA8PrB;AAED,eAAe,cAAc,CAAC"}
@@ -10,9 +10,13 @@ export { AdSlider } from './AdSlider';
10
10
  export { AdModal } from './AdModal';
11
11
  export { AdUpdateModal } from './AdUpdateModal';
12
12
  export { AdBanner } from './AdBanner';
13
+ export { TopbarAdBanner } from './TopbarAdBanner';
14
+ export { AdCarousel } from './AdCarousel';
13
15
  export type { AdSliderProps } from './AdSlider';
14
16
  export type { AdModalProps } from './AdModal';
15
17
  export type { AdUpdateModalProps } from './AdUpdateModal';
16
18
  export type { AdBannerProps } from './AdBanner';
19
+ export type { TopbarAdBannerProps } from './TopbarAdBanner';
20
+ export type { AdCarouselProps } from './AdCarousel';
17
21
  export * from './variants';
18
22
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ads/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAGtC,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAChD,YAAY,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAC9C,YAAY,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAC1D,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAGhD,cAAc,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ads/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAG1C,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAChD,YAAY,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAC9C,YAAY,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAC1D,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAChD,YAAY,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAC5D,YAAY,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAGpD,cAAc,YAAY,CAAC"}
@@ -1,7 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const index = require("../index-DxjbpnFC.cjs");
3
+ const index = require("../index--8iNqKw6.cjs");
4
4
  exports.AdBanner = index.AdBanner;
5
+ exports.AdCarousel = index.AdCarousel;
5
6
  exports.AdModal = index.AdModal;
6
7
  exports.AdPanel = index.AdPanel;
7
8
  exports.AdSlider = index.AdSlider;
@@ -28,6 +29,7 @@ exports.SocialLinksBar = index.SocialLinksBar;
28
29
  exports.TaglineVariant = index.TaglineVariant;
29
30
  exports.TestimonialVariant = index.TestimonialVariant;
30
31
  exports.TestimonialsGrid = index.TestimonialsGrid;
32
+ exports.TopbarAdBanner = index.TopbarAdBanner;
31
33
  exports.VideoVariant = index.VideoVariant;
32
34
  exports.getLargePanelVariant = index.getLargePanelVariant;
33
35
  exports.getSmallPanelVariant = index.getSmallPanelVariant;
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,34 +1,36 @@
1
- import { A, a, b, c, d, e, f, B, g, C, h, i, D, F, j, k, G, H, L, M, S, l, m, n, T, o, p, V, q, r } from "../index-D2YWycum.js";
1
+ import { A, a, b, c, d, e, f, g, B, h, C, i, j, D, F, k, l, G, H, L, M, S, m, n, o, T, p, q, r, V, s, t } from "../index-gXNz1Cox.js";
2
2
  export {
3
3
  A as AdBanner,
4
- a as AdModal,
5
- b as AdPanel,
6
- c as AdSlider,
7
- d as AdUpdateModal,
8
- e as AddressCard,
9
- f as AnnouncementModal,
4
+ a as AdCarousel,
5
+ b as AdModal,
6
+ c as AdPanel,
7
+ d as AdSlider,
8
+ e as AdUpdateModal,
9
+ f as AddressCard,
10
+ g as AnnouncementModal,
10
11
  B as BroadcastBanner,
11
- g as BroadcastBanners,
12
+ h as BroadcastBanners,
12
13
  C as CardVariant,
13
- h as ComparisonVariant,
14
- i as ContactCard,
14
+ i as ComparisonVariant,
15
+ j as ContactCard,
15
16
  D as DeveloperCard,
16
17
  F as FeatureGridVariant,
17
- j as FeaturesVariant,
18
- k as FooterSection,
18
+ k as FeaturesVariant,
19
+ l as FooterSection,
19
20
  G as GradientVariant,
20
21
  H as HeroVariant,
21
22
  L as LARGE_PANEL_VARIANTS,
22
23
  M as MinimalVariant,
23
24
  S as SMALL_PANEL_VARIANTS,
24
- l as ServicesGrid,
25
- m as SkillsDisplay,
26
- n as SocialLinksBar,
25
+ m as ServicesGrid,
26
+ n as SkillsDisplay,
27
+ o as SocialLinksBar,
27
28
  T as TaglineVariant,
28
- o as TestimonialVariant,
29
- p as TestimonialsGrid,
29
+ p as TestimonialVariant,
30
+ q as TestimonialsGrid,
31
+ r as TopbarAdBanner,
30
32
  V as VideoVariant,
31
- q as getLargePanelVariant,
32
- r as getSmallPanelVariant
33
+ s as getLargePanelVariant,
34
+ t as getSmallPanelVariant
33
35
  };
34
36
  //# sourceMappingURL=index.js.map