@pittorica/carousel-react 0.22.3 → 0.23.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.
@@ -1,18 +1,13 @@
1
1
  import { type BoxProps } from '@pittorica/box-react';
2
2
  export interface CarouselRootProps extends BoxProps {
3
- /** Number of items to show in the viewport layout */
4
- preview?: 2 | 3;
5
3
  /** Initial active index */
6
4
  defaultIndex?: number;
7
5
  }
8
- /**
9
- * MD3 Hero Carousel with dynamic layout masking and fixed radius.
10
- */
11
- export declare const CarouselRoot: ({ children, className, preview, defaultIndex, ...props }: CarouselRootProps) => import("react/jsx-runtime").JSX.Element;
6
+ export declare const CarouselRoot: ({ children, className, defaultIndex, ...props }: CarouselRootProps) => import("react/jsx-runtime").JSX.Element;
12
7
  export declare const CarouselItem: ({ children, className, ...props }: BoxProps) => import("react/jsx-runtime").JSX.Element;
13
8
  export declare const CarouselDescription: ({ children, className }: BoxProps) => import("react/jsx-runtime").JSX.Element;
14
9
  export declare const Carousel: {
15
- Root: ({ children, className, preview, defaultIndex, ...props }: CarouselRootProps) => import("react/jsx-runtime").JSX.Element;
10
+ Root: ({ children, className, defaultIndex, ...props }: CarouselRootProps) => import("react/jsx-runtime").JSX.Element;
16
11
  Item: ({ children, className, ...props }: BoxProps) => import("react/jsx-runtime").JSX.Element;
17
12
  Description: ({ children, className }: BoxProps) => import("react/jsx-runtime").JSX.Element;
18
13
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Carousel.d.ts","sourceRoot":"","sources":["../src/Carousel.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAO,KAAK,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAG1D,MAAM,WAAW,iBAAkB,SAAQ,QAAQ;IACjD,qDAAqD;IACrD,OAAO,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;IAChB,2BAA2B;IAC3B,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED;;GAEG;AACH,eAAO,MAAM,YAAY,GAAI,0DAM1B,iBAAiB,4CA8DnB,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,mCAAmC,QAAQ,4CAQvE,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,yBAAyB,QAAQ,4CAMpE,CAAC;AAEF,eAAO,MAAM,QAAQ;qEAlFlB,iBAAiB;8CAgE4C,QAAQ;2CAUX,QAAQ;CAYpE,CAAC"}
1
+ {"version":3,"file":"Carousel.d.ts","sourceRoot":"","sources":["../src/Carousel.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAO,KAAK,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAI1D,MAAM,WAAW,iBAAkB,SAAQ,QAAQ;IACjD,2BAA2B;IAC3B,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAkDD,eAAO,MAAM,YAAY,GAAI,iDAK1B,iBAAiB,4CAiEnB,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,mCAAmC,QAAQ,4CAQvE,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,yBAAyB,QAAQ,4CAIpE,CAAC;AAEF,eAAO,MAAM,QAAQ;4DAnFlB,iBAAiB;8CAmE4C,QAAQ;2CAUX,QAAQ;CAUpE,CAAC"}
@@ -1,8 +1,19 @@
1
1
  import type { Meta, StoryObj } from '@storybook/react';
2
2
  import { Carousel } from './Carousel.js';
3
+ /**
4
+ * MD3 Hero Carousel with portrait-first layout.
5
+ * Features an entrance "slam" animation and dynamic width masking.
6
+ */
3
7
  declare const meta: Meta<typeof Carousel.Root>;
4
8
  export default meta;
5
- export declare const PreviewTwo: StoryObj<typeof Carousel.Root>;
6
- export declare const PreviewThree: StoryObj<typeof Carousel.Root>;
7
- export declare const WithoutDescription: StoryObj<typeof Carousel.Root>;
9
+ export declare const Default: StoryObj<typeof Carousel.Root>;
10
+ /**
11
+ * Demonstrates the entrance animation where the viewport "slams" from right to left.
12
+ * To re-trigger, refresh the Storybook canvas.
13
+ */
14
+ export declare const EntranceAnimation: StoryObj<typeof Carousel.Root>;
15
+ /**
16
+ * Shows how items are clipped (masking effect) starting from the third element.
17
+ */
18
+ export declare const DynamicMasking: StoryObj<typeof Carousel.Root>;
8
19
  //# sourceMappingURL=Carousel.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Carousel.stories.d.ts","sourceRoot":"","sources":["../src/Carousel.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAEzC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,QAAQ,CAAC,IAAI,CAOpC,CAAC;AAEF,eAAe,IAAI,CAAC;AAsBpB,eAAO,MAAM,UAAU,EAAE,QAAQ,CAAC,OAAO,QAAQ,CAAC,IAAI,CA+BrD,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,QAAQ,CAAC,OAAO,QAAQ,CAAC,IAAI,CAmBvD,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,QAAQ,CAAC,OAAO,QAAQ,CAAC,IAAI,CAkB7D,CAAC"}
1
+ {"version":3,"file":"Carousel.stories.d.ts","sourceRoot":"","sources":["../src/Carousel.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAEzC;;;GAGG;AACH,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,QAAQ,CAAC,IAAI,CAOpC,CAAC;AAEF,eAAe,IAAI,CAAC;AAepB,eAAO,MAAM,OAAO,EAAE,QAAQ,CAAC,OAAO,QAAQ,CAAC,IAAI,CA4BlD,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,iBAAiB,EAAE,QAAQ,CAAC,OAAO,QAAQ,CAAC,IAAI,CAS5D,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE,QAAQ,CAAC,OAAO,QAAQ,CAAC,IAAI,CAezD,CAAC"}