@greghowe79/the-lib 2.8.8 → 2.9.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.
@@ -23,10 +23,21 @@ const AnimatedTextSlider = qwik.component$(({ headline, subtitle, items, duratio
23
23
  return;
24
24
  }
25
25
  wrapper.style.height = "";
26
+ const accordions = wrapper.querySelectorAll(".accordion-content");
27
+ const originalStyles = [];
28
+ accordions.forEach((acc) => {
29
+ originalStyles.push(acc.style.cssText);
30
+ acc.style.maxHeight = "none";
31
+ acc.style.opacity = "1";
32
+ acc.style.overflow = "visible";
33
+ });
26
34
  let maxH = 0;
27
35
  for (let i = 0; i < wrapper.children.length; i++) {
28
36
  maxH = Math.max(maxH, wrapper.children[i].scrollHeight);
29
37
  }
38
+ accordions.forEach((acc, i) => {
39
+ acc.style.cssText = originalStyles[i];
40
+ });
30
41
  if (maxH > 0) {
31
42
  wrapper.style.height = `${maxH}px`;
32
43
  }
@@ -21,10 +21,21 @@ const AnimatedTextSlider = component$(({ headline, subtitle, items, duration, re
21
21
  return;
22
22
  }
23
23
  wrapper.style.height = "";
24
+ const accordions = wrapper.querySelectorAll(".accordion-content");
25
+ const originalStyles = [];
26
+ accordions.forEach((acc) => {
27
+ originalStyles.push(acc.style.cssText);
28
+ acc.style.maxHeight = "none";
29
+ acc.style.opacity = "1";
30
+ acc.style.overflow = "visible";
31
+ });
24
32
  let maxH = 0;
25
33
  for (let i = 0; i < wrapper.children.length; i++) {
26
34
  maxH = Math.max(maxH, wrapper.children[i].scrollHeight);
27
35
  }
36
+ accordions.forEach((acc, i) => {
37
+ acc.style.cssText = originalStyles[i];
38
+ });
28
39
  if (maxH > 0) {
29
40
  wrapper.style.height = `${maxH}px`;
30
41
  }
@@ -11,7 +11,7 @@ const hero = require("./components/hero/hero.qwik.cjs");
11
11
  const onboardingsteps = require("./components/onboarding/onboardingsteps.qwik.cjs");
12
12
  const select = require("./components/select/select.qwik.cjs");
13
13
  const text_area = require("./components/text_area/text_area.qwik.cjs");
14
- const AnimatedTextSlider = require("./components/sliders/AnimatedTextSlider.qwik.cjs");
14
+ const animated_text_slider = require("./components/sliders/animated_text_slider.qwik.cjs");
15
15
  const card = require("./components/card/card.qwik.cjs");
16
16
  const skeleton_suggestion = require("./components/skeletons/SkeletonSuggestion/skeleton_suggestion.qwik.cjs");
17
17
  exports.Logo = logo.Logo;
@@ -25,6 +25,6 @@ exports.Hero = hero.Hero;
25
25
  exports.OnboardingSteps = onboardingsteps.OnboardingSteps;
26
26
  exports.Select = select.Select;
27
27
  exports.TextArea = text_area.TextArea;
28
- exports.AnimatedTextSlider = AnimatedTextSlider.AnimatedTextSlider;
28
+ exports.AnimatedTextSlider = animated_text_slider.AnimatedTextSlider;
29
29
  exports.Card = card.Card;
30
30
  exports.SkeletonSuggestion = skeleton_suggestion.SkeletonSuggestion;
@@ -9,7 +9,7 @@ import { Hero } from "./components/hero/hero.qwik.mjs";
9
9
  import { OnboardingSteps } from "./components/onboarding/onboardingsteps.qwik.mjs";
10
10
  import { Select } from "./components/select/select.qwik.mjs";
11
11
  import { TextArea } from "./components/text_area/text_area.qwik.mjs";
12
- import { AnimatedTextSlider } from "./components/sliders/AnimatedTextSlider.qwik.mjs";
12
+ import { AnimatedTextSlider } from "./components/sliders/animated_text_slider.qwik.mjs";
13
13
  import { Card } from "./components/card/card.qwik.mjs";
14
14
  import { SkeletonSuggestion } from "./components/skeletons/SkeletonSuggestion/skeleton_suggestion.qwik.mjs";
15
15
  export {
@@ -0,0 +1,24 @@
1
+ interface ImageSources {
2
+ webp: string;
3
+ fallback: string;
4
+ src: string;
5
+ }
6
+ export interface SliderItem {
7
+ title: string;
8
+ description: string;
9
+ imageSources: ImageSources;
10
+ }
11
+ export interface VisualRegistrationProps {
12
+ /** Titolo principale della sezione */
13
+ headline: string;
14
+ /** Sottotitolo della sezione */
15
+ subtitle?: string;
16
+ /** Slide da mostrare */
17
+ items: SliderItem[];
18
+ /** Durata in ms di ogni slide (default: 8000) */
19
+ duration?: number;
20
+ /** Inverte il layout desktop: immagine a sinistra, testo a destra */
21
+ reverse?: boolean;
22
+ }
23
+ export declare const AnimatedTextSlider: import("@builder.io/qwik").Component<VisualRegistrationProps>;
24
+ export {};
@@ -10,6 +10,6 @@ export { Hero } from './components/hero/hero';
10
10
  export { OnboardingSteps } from './components/onboarding/onboardingsteps';
11
11
  export { type SelectProps, Select } from './components/select/select';
12
12
  export { TextArea } from './components/text_area/text_area';
13
- export { AnimatedTextSlider } from './components/sliders/AnimatedTextSlider';
13
+ export { AnimatedTextSlider } from './components/sliders/animated_text_slider';
14
14
  export { Card } from './components/card/card';
15
15
  export { SkeletonSuggestion } from './components/skeletons/SkeletonSuggestion/skeleton_suggestion';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@greghowe79/the-lib",
3
- "version": "2.8.8",
3
+ "version": "2.9.0",
4
4
  "description": "Collection of fast components for Qwik",
5
5
  "main": "./lib/index.qwik.mjs",
6
6
  "qwik": "./lib/index.qwik.mjs",