@nori-ui/core 1.7.0 → 1.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.
- package/dist/chunk-BOMPFNM4.js +165 -0
- package/dist/chunk-BOMPFNM4.js.map +1 -0
- package/dist/chunk-BVLOX4A3.js +256 -0
- package/dist/chunk-BVLOX4A3.js.map +1 -0
- package/dist/{chunk-PLQPBMG2.js → chunk-BXZGCOKT.js} +2 -2
- package/dist/{chunk-PLQPBMG2.js.map → chunk-BXZGCOKT.js.map} +1 -1
- package/dist/{chunk-RI4Y2C5U.js → chunk-KLK7OMFT.js} +3 -3
- package/dist/{chunk-RI4Y2C5U.js.map → chunk-KLK7OMFT.js.map} +1 -1
- package/dist/chunk-OHWRTHGL.js +495 -0
- package/dist/chunk-OHWRTHGL.js.map +1 -0
- package/dist/{chunk-V5QSMDZL.js → chunk-QB6RH6UU.js} +3 -3
- package/dist/{chunk-V5QSMDZL.js.map → chunk-QB6RH6UU.js.map} +1 -1
- package/dist/chunk-S763GTIZ.js +350 -0
- package/dist/chunk-S763GTIZ.js.map +1 -0
- package/dist/chunk-UJRVWGK7.js +3 -0
- package/dist/chunk-UJRVWGK7.js.map +1 -0
- package/dist/chunk-VFUV6XJR.js +257 -0
- package/dist/chunk-VFUV6XJR.js.map +1 -0
- package/dist/client.cjs +2860 -1386
- package/dist/client.cjs.map +1 -1
- package/dist/client.d.cts +5 -0
- package/dist/client.d.ts +5 -0
- package/dist/client.js +23 -17
- package/dist/client.js.map +1 -1
- package/dist/components/Accordion/index.js +2 -2
- package/dist/components/Carousel/index.cjs +297 -0
- package/dist/components/Carousel/index.cjs.map +1 -0
- package/dist/components/Carousel/index.d.cts +67 -0
- package/dist/components/Carousel/index.d.ts +67 -0
- package/dist/components/Carousel/index.js +5 -0
- package/dist/components/Carousel/index.js.map +1 -0
- package/dist/components/Command/index.cjs +1371 -0
- package/dist/components/Command/index.cjs.map +1 -0
- package/dist/components/Command/index.d.cts +89 -0
- package/dist/components/Command/index.d.ts +89 -0
- package/dist/components/Command/index.js +11 -0
- package/dist/components/Command/index.js.map +1 -0
- package/dist/components/Dialog/index.js +2 -1
- package/dist/components/HoverCard/index.cjs +894 -0
- package/dist/components/HoverCard/index.cjs.map +1 -0
- package/dist/components/HoverCard/index.d.cts +66 -0
- package/dist/components/HoverCard/index.d.ts +66 -0
- package/dist/components/HoverCard/index.js +9 -0
- package/dist/components/HoverCard/index.js.map +1 -0
- package/dist/components/InputOTP/index.cjs +580 -0
- package/dist/components/InputOTP/index.cjs.map +1 -0
- package/dist/components/InputOTP/index.d.cts +49 -0
- package/dist/components/InputOTP/index.d.ts +49 -0
- package/dist/components/InputOTP/index.js +7 -0
- package/dist/components/InputOTP/index.js.map +1 -0
- package/dist/components/Sidebar/index.cjs +675 -0
- package/dist/components/Sidebar/index.cjs.map +1 -0
- package/dist/components/Sidebar/index.d.cts +109 -0
- package/dist/components/Sidebar/index.d.ts +109 -0
- package/dist/components/Sidebar/index.js +7 -0
- package/dist/components/Sidebar/index.js.map +1 -0
- package/dist/components/Switch/index.js +2 -2
- package/dist/index.cjs +2860 -1386
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +23 -17
- package/package.json +1 -1
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
|
|
4
|
+
type CarouselProps = {
|
|
5
|
+
/** Controlled current index. */
|
|
6
|
+
index?: number;
|
|
7
|
+
/** Initial index (uncontrolled). @defaultValue 0 */
|
|
8
|
+
defaultIndex?: number;
|
|
9
|
+
/** Fires with the new index. */
|
|
10
|
+
onIndexChange?: (index: number) => void;
|
|
11
|
+
/** Whether navigation wraps from last to first and vice-versa. @defaultValue false */
|
|
12
|
+
loop?: boolean;
|
|
13
|
+
/** Scroll axis. @defaultValue 'horizontal' */
|
|
14
|
+
orientation?: 'horizontal' | 'vertical';
|
|
15
|
+
children?: ReactNode;
|
|
16
|
+
className?: string;
|
|
17
|
+
testID?: string;
|
|
18
|
+
};
|
|
19
|
+
type CarouselContentProps = {
|
|
20
|
+
children?: ReactNode;
|
|
21
|
+
className?: string;
|
|
22
|
+
testID?: string;
|
|
23
|
+
};
|
|
24
|
+
type CarouselItemProps = {
|
|
25
|
+
children?: ReactNode;
|
|
26
|
+
className?: string;
|
|
27
|
+
testID?: string;
|
|
28
|
+
};
|
|
29
|
+
type CarouselButtonProps = {
|
|
30
|
+
className?: string;
|
|
31
|
+
testID?: string;
|
|
32
|
+
children?: ReactNode;
|
|
33
|
+
};
|
|
34
|
+
type CarouselDotsProps = {
|
|
35
|
+
className?: string;
|
|
36
|
+
testID?: string;
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* Paged horizontal (or vertical) slider with CSS scroll-snap.
|
|
40
|
+
*
|
|
41
|
+
* Composition:
|
|
42
|
+
* - `Carousel.Content` — the scroll container
|
|
43
|
+
* - `Carousel.Item` — each slide
|
|
44
|
+
* - `Carousel.Previous` / `Carousel.Next` — navigation buttons
|
|
45
|
+
* - `Carousel.Dots` — dot pagination indicators
|
|
46
|
+
*
|
|
47
|
+
* ```tsx
|
|
48
|
+
* <Carousel>
|
|
49
|
+
* <Carousel.Content>
|
|
50
|
+
* <Carousel.Item><img src="a.jpg" /></Carousel.Item>
|
|
51
|
+
* <Carousel.Item><img src="b.jpg" /></Carousel.Item>
|
|
52
|
+
* </Carousel.Content>
|
|
53
|
+
* <Carousel.Previous />
|
|
54
|
+
* <Carousel.Next />
|
|
55
|
+
* <Carousel.Dots />
|
|
56
|
+
* </Carousel>
|
|
57
|
+
* ```
|
|
58
|
+
*/
|
|
59
|
+
declare const Carousel: (({ index: controlledIndex, defaultIndex, onIndexChange, loop, orientation, children, className, testID, }: CarouselProps) => react_jsx_runtime.JSX.Element) & {
|
|
60
|
+
Content: ({ children, className, testID }: CarouselContentProps) => react_jsx_runtime.JSX.Element;
|
|
61
|
+
Item: ({ children, className, testID }: CarouselItemProps) => react_jsx_runtime.JSX.Element;
|
|
62
|
+
Previous: ({ className, testID, children }: CarouselButtonProps) => react_jsx_runtime.JSX.Element;
|
|
63
|
+
Next: ({ className, testID, children }: CarouselButtonProps) => react_jsx_runtime.JSX.Element;
|
|
64
|
+
Dots: ({ className, testID }: CarouselDotsProps) => react_jsx_runtime.JSX.Element | null;
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
export { Carousel, type CarouselButtonProps, type CarouselContentProps, type CarouselDotsProps, type CarouselItemProps, type CarouselProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|