@hanzo/ui 8.8.0 → 8.9.1
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/backends/gui/carousel.cjs +235 -0
- package/dist/backends/gui/carousel.d.ts +66 -0
- package/dist/backends/gui/carousel.d.ts.map +1 -0
- package/dist/backends/gui/carousel.js +197 -0
- package/dist/backends/gui/carousel.js.map +1 -0
- package/dist/backends/gui/index.cjs +12 -1
- package/dist/backends/gui/index.d.ts +3 -0
- package/dist/backends/gui/index.d.ts.map +1 -1
- package/dist/backends/gui/index.js +3 -0
- package/dist/backends/gui/index.js.map +1 -1
- package/dist/backends/gui/media-stack.cjs +70 -0
- package/dist/backends/gui/media-stack.d.ts +32 -0
- package/dist/backends/gui/media-stack.d.ts.map +1 -0
- package/dist/backends/gui/media-stack.js +66 -0
- package/dist/backends/gui/media-stack.js.map +1 -0
- package/dist/backends/gui/skeleton.cjs +14 -0
- package/dist/backends/gui/skeleton.d.ts +12 -0
- package/dist/backends/gui/skeleton.d.ts.map +1 -0
- package/dist/backends/gui/skeleton.js +11 -0
- package/dist/backends/gui/skeleton.js.map +1 -0
- package/dist/box.cjs +22 -0
- package/dist/box.d.ts.map +1 -1
- package/dist/box.js +22 -0
- package/dist/box.js.map +1 -1
- package/dist/gallery.html +23 -1
- package/dist/index.cjs +10 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.node.js +1 -1
- package/dist/primitives/Carousel.cjs +8 -0
- package/dist/primitives/Carousel.d.ts +2 -0
- package/dist/primitives/Carousel.d.ts.map +1 -0
- package/dist/primitives/Carousel.js +5 -0
- package/dist/primitives/Carousel.js.map +1 -0
- package/dist/primitives/CarouselContent.cjs +8 -0
- package/dist/primitives/CarouselContent.d.ts +2 -0
- package/dist/primitives/CarouselContent.d.ts.map +1 -0
- package/dist/primitives/CarouselContent.js +5 -0
- package/dist/primitives/CarouselContent.js.map +1 -0
- package/dist/primitives/CarouselItem.cjs +8 -0
- package/dist/primitives/CarouselItem.d.ts +2 -0
- package/dist/primitives/CarouselItem.d.ts.map +1 -0
- package/dist/primitives/CarouselItem.js +5 -0
- package/dist/primitives/CarouselItem.js.map +1 -0
- package/dist/primitives/CarouselNext.cjs +8 -0
- package/dist/primitives/CarouselNext.d.ts +2 -0
- package/dist/primitives/CarouselNext.d.ts.map +1 -0
- package/dist/primitives/CarouselNext.js +5 -0
- package/dist/primitives/CarouselNext.js.map +1 -0
- package/dist/primitives/CarouselPrevious.cjs +8 -0
- package/dist/primitives/CarouselPrevious.d.ts +2 -0
- package/dist/primitives/CarouselPrevious.d.ts.map +1 -0
- package/dist/primitives/CarouselPrevious.js +5 -0
- package/dist/primitives/CarouselPrevious.js.map +1 -0
- package/dist/primitives/MediaStack.cjs +8 -0
- package/dist/primitives/MediaStack.d.ts +2 -0
- package/dist/primitives/MediaStack.d.ts.map +1 -0
- package/dist/primitives/MediaStack.js +5 -0
- package/dist/primitives/MediaStack.js.map +1 -0
- package/dist/primitives/Skeleton.cjs +8 -0
- package/dist/primitives/Skeleton.d.ts +2 -0
- package/dist/primitives/Skeleton.d.ts.map +1 -0
- package/dist/primitives/Skeleton.js +5 -0
- package/dist/primitives/Skeleton.js.map +1 -0
- package/dist/primitives/fit.cjs +8 -0
- package/dist/primitives/fit.d.ts +2 -0
- package/dist/primitives/fit.d.ts.map +1 -0
- package/dist/primitives/fit.js +5 -0
- package/dist/primitives/fit.js.map +1 -0
- package/dist/styles.css +22 -0
- package/dist/theme.css +22 -0
- package/dist/tw.cjs +35 -2
- package/dist/tw.d.ts.map +1 -1
- package/dist/tw.js +35 -2
- package/dist/tw.js.map +1 -1
- package/dist/types.d.ts +37 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
'use client';"use strict";
|
|
2
|
+
'use client';
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.MediaStack = exports.fit = void 0;
|
|
5
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
6
|
+
const gui_1 = require("@hanzo/gui");
|
|
7
|
+
const box_1 = require("../../box.cjs");
|
|
8
|
+
const cn_1 = require("../../core/cn.cjs");
|
|
9
|
+
const video_1 = require("./video.cjs");
|
|
10
|
+
/**
|
|
11
|
+
* The largest `dim` fits inside `to` at its own aspect ratio, times `scale`.
|
|
12
|
+
*
|
|
13
|
+
* `scale` is a fraction of the CONSTRAINT rather than a CSS transform: a scaled
|
|
14
|
+
* image occupies the space it draws in, so a swatch at 0.25 leaves room around
|
|
15
|
+
* it instead of overlapping its neighbours the way `transform: scale` would.
|
|
16
|
+
*/
|
|
17
|
+
const fit = (dim, to, scale = 1) => {
|
|
18
|
+
if (!dim?.w || !dim?.h)
|
|
19
|
+
return to;
|
|
20
|
+
const r = Math.min(to.w / dim.w, to.h / dim.h) * scale;
|
|
21
|
+
return { w: Math.round(dim.w * r), h: Math.round(dim.h * r) };
|
|
22
|
+
};
|
|
23
|
+
exports.fit = fit;
|
|
24
|
+
const MediaStack = ({ media, constrainTo, className, ...props }) => {
|
|
25
|
+
const scale = media?.mediaTransform?.scale ?? 1;
|
|
26
|
+
const { offsetX = 0, offsetY = 0 } = media?.mediaTransform ?? {};
|
|
27
|
+
// Richest first. `animation` renders as its poster: a Lottie document needs a
|
|
28
|
+
// player, no content in this estate carries one, and a still is a better
|
|
29
|
+
// answer than an empty box for content that does.
|
|
30
|
+
const anim = media?.animation;
|
|
31
|
+
const video = media?.video;
|
|
32
|
+
const img = media?.img;
|
|
33
|
+
const inner = (() => {
|
|
34
|
+
if (video?.sources?.length) {
|
|
35
|
+
const d = (0, exports.fit)(video.dim?.md ?? constrainTo, constrainTo, scale);
|
|
36
|
+
return ((0, jsx_runtime_1.jsx)(video_1.VideoPlayer, { width: d.w, height: d.h, poster: video.poster, sources: video.sources, ...video.videoProps }));
|
|
37
|
+
}
|
|
38
|
+
const still = anim?.poster
|
|
39
|
+
? { src: anim.poster, alt: '', dim: anim.dim }
|
|
40
|
+
: img;
|
|
41
|
+
if (!still?.src)
|
|
42
|
+
return null;
|
|
43
|
+
const d = (0, exports.fit)(still.dim ?? constrainTo, constrainTo, scale);
|
|
44
|
+
return ((0, jsx_runtime_1.jsx)(gui_1.Image
|
|
45
|
+
// `src`, not react-native's `source`. gui's Image renders a real <img>
|
|
46
|
+
// on web and forwards what it does not recognise straight to the DOM,
|
|
47
|
+
// so a `source` object arrives as the attribute `source="[object
|
|
48
|
+
// Object]"` and the element has no url at all — it renders, it measures,
|
|
49
|
+
// and it shows nothing.
|
|
50
|
+
, {
|
|
51
|
+
// `src`, not react-native's `source`. gui's Image renders a real <img>
|
|
52
|
+
// on web and forwards what it does not recognise straight to the DOM,
|
|
53
|
+
// so a `source` object arrives as the attribute `source="[object
|
|
54
|
+
// Object]"` and the element has no url at all — it renders, it measures,
|
|
55
|
+
// and it shows nothing.
|
|
56
|
+
src: still.src, width: d.w, height: d.h,
|
|
57
|
+
// The short filename is a far better default than nothing: a decorative
|
|
58
|
+
// image should say so with `alt=""`, and content that forgot the field
|
|
59
|
+
// at least announces WHICH image it is.
|
|
60
|
+
alt: still.alt ?? still.src.split('/').pop(), className: img?.rounded }));
|
|
61
|
+
})();
|
|
62
|
+
return ((0, jsx_runtime_1.jsx)(box_1.Box, { className: (0, cn_1.cn)('grid place-items-center', className), style: {
|
|
63
|
+
width: constrainTo.w,
|
|
64
|
+
height: constrainTo.h,
|
|
65
|
+
...(offsetX || offsetY
|
|
66
|
+
? { transform: `translate(${offsetX}px, ${offsetY}px)` }
|
|
67
|
+
: null),
|
|
68
|
+
}, ...props, children: inner }));
|
|
69
|
+
};
|
|
70
|
+
exports.MediaStack = MediaStack;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MediaStack — one subject, in whatever media the content happens to have.
|
|
3
|
+
*
|
|
4
|
+
* A product has a photograph. Later it has a video, and later still an animated
|
|
5
|
+
* one, and no consumer should have to learn about that: the content grows a
|
|
6
|
+
* field and the stack renders the richest thing it can play. Callers say what
|
|
7
|
+
* BOX the media must fit in, never what size to draw it — so a grid of cards
|
|
8
|
+
* lines up whatever the source resolutions happen to be.
|
|
9
|
+
*
|
|
10
|
+
* Fitting is `contain`, computed here rather than left to CSS `object-fit`,
|
|
11
|
+
* because the element must be the fitted size for the layout around it to
|
|
12
|
+
* reserve the right space before the bytes arrive. `object-fit` letterboxes
|
|
13
|
+
* INSIDE a box that is already the wrong shape.
|
|
14
|
+
*/
|
|
15
|
+
import * as React from 'react';
|
|
16
|
+
import { Box } from '../../box.js';
|
|
17
|
+
import type { Dimensions, MediaStackDef } from '../../types.js';
|
|
18
|
+
/**
|
|
19
|
+
* The largest `dim` fits inside `to` at its own aspect ratio, times `scale`.
|
|
20
|
+
*
|
|
21
|
+
* `scale` is a fraction of the CONSTRAINT rather than a CSS transform: a scaled
|
|
22
|
+
* image occupies the space it draws in, so a swatch at 0.25 leaves room around
|
|
23
|
+
* it instead of overlapping its neighbours the way `transform: scale` would.
|
|
24
|
+
*/
|
|
25
|
+
export declare const fit: (dim: Dimensions, to: Dimensions, scale?: number) => Dimensions;
|
|
26
|
+
export type MediaStackProps = Omit<React.ComponentProps<typeof Box>, 'children'> & {
|
|
27
|
+
media: MediaStackDef;
|
|
28
|
+
/** The box the media must fit inside. */
|
|
29
|
+
constrainTo: Dimensions;
|
|
30
|
+
};
|
|
31
|
+
export declare const MediaStack: ({ media, constrainTo, className, ...props }: MediaStackProps) => import("react/jsx-runtime").JSX.Element;
|
|
32
|
+
//# sourceMappingURL=media-stack.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"media-stack.d.ts","sourceRoot":"","sources":["../../../src/backends/gui/media-stack.tsx"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;GAaG;AACH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAG9B,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAA;AAE/B,OAAO,KAAK,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAG5D;;;;;;GAMG;AACH,eAAO,MAAM,GAAG,QAAS,UAAU,MAAM,UAAU,qBAAc,UAIhE,CAAA;AAED,MAAM,MAAM,eAAe,GAAG,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,GAAG,CAAC,EAAE,UAAU,CAAC,GAAG;IACjF,KAAK,EAAE,aAAa,CAAA;IACpB,yCAAyC;IACzC,WAAW,EAAE,UAAU,CAAA;CACxB,CAAA;AAED,eAAO,MAAM,UAAU,gDAAiD,eAAe,4CA+DtF,CAAA"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { Image } from '@hanzo/gui';
|
|
4
|
+
import { Box } from '../../box.js';
|
|
5
|
+
import { cn } from '../../core/cn.js';
|
|
6
|
+
import { VideoPlayer } from './video.js';
|
|
7
|
+
/**
|
|
8
|
+
* The largest `dim` fits inside `to` at its own aspect ratio, times `scale`.
|
|
9
|
+
*
|
|
10
|
+
* `scale` is a fraction of the CONSTRAINT rather than a CSS transform: a scaled
|
|
11
|
+
* image occupies the space it draws in, so a swatch at 0.25 leaves room around
|
|
12
|
+
* it instead of overlapping its neighbours the way `transform: scale` would.
|
|
13
|
+
*/
|
|
14
|
+
export const fit = (dim, to, scale = 1) => {
|
|
15
|
+
if (!dim?.w || !dim?.h)
|
|
16
|
+
return to;
|
|
17
|
+
const r = Math.min(to.w / dim.w, to.h / dim.h) * scale;
|
|
18
|
+
return { w: Math.round(dim.w * r), h: Math.round(dim.h * r) };
|
|
19
|
+
};
|
|
20
|
+
export const MediaStack = ({ media, constrainTo, className, ...props }) => {
|
|
21
|
+
const scale = media?.mediaTransform?.scale ?? 1;
|
|
22
|
+
const { offsetX = 0, offsetY = 0 } = media?.mediaTransform ?? {};
|
|
23
|
+
// Richest first. `animation` renders as its poster: a Lottie document needs a
|
|
24
|
+
// player, no content in this estate carries one, and a still is a better
|
|
25
|
+
// answer than an empty box for content that does.
|
|
26
|
+
const anim = media?.animation;
|
|
27
|
+
const video = media?.video;
|
|
28
|
+
const img = media?.img;
|
|
29
|
+
const inner = (() => {
|
|
30
|
+
if (video?.sources?.length) {
|
|
31
|
+
const d = fit(video.dim?.md ?? constrainTo, constrainTo, scale);
|
|
32
|
+
return (_jsx(VideoPlayer, { width: d.w, height: d.h, poster: video.poster, sources: video.sources, ...video.videoProps }));
|
|
33
|
+
}
|
|
34
|
+
const still = anim?.poster
|
|
35
|
+
? { src: anim.poster, alt: '', dim: anim.dim }
|
|
36
|
+
: img;
|
|
37
|
+
if (!still?.src)
|
|
38
|
+
return null;
|
|
39
|
+
const d = fit(still.dim ?? constrainTo, constrainTo, scale);
|
|
40
|
+
return (_jsx(Image
|
|
41
|
+
// `src`, not react-native's `source`. gui's Image renders a real <img>
|
|
42
|
+
// on web and forwards what it does not recognise straight to the DOM,
|
|
43
|
+
// so a `source` object arrives as the attribute `source="[object
|
|
44
|
+
// Object]"` and the element has no url at all — it renders, it measures,
|
|
45
|
+
// and it shows nothing.
|
|
46
|
+
, {
|
|
47
|
+
// `src`, not react-native's `source`. gui's Image renders a real <img>
|
|
48
|
+
// on web and forwards what it does not recognise straight to the DOM,
|
|
49
|
+
// so a `source` object arrives as the attribute `source="[object
|
|
50
|
+
// Object]"` and the element has no url at all — it renders, it measures,
|
|
51
|
+
// and it shows nothing.
|
|
52
|
+
src: still.src, width: d.w, height: d.h,
|
|
53
|
+
// The short filename is a far better default than nothing: a decorative
|
|
54
|
+
// image should say so with `alt=""`, and content that forgot the field
|
|
55
|
+
// at least announces WHICH image it is.
|
|
56
|
+
alt: still.alt ?? still.src.split('/').pop(), className: img?.rounded }));
|
|
57
|
+
})();
|
|
58
|
+
return (_jsx(Box, { className: cn('grid place-items-center', className), style: {
|
|
59
|
+
width: constrainTo.w,
|
|
60
|
+
height: constrainTo.h,
|
|
61
|
+
...(offsetX || offsetY
|
|
62
|
+
? { transform: `translate(${offsetX}px, ${offsetY}px)` }
|
|
63
|
+
: null),
|
|
64
|
+
}, ...props, children: inner }));
|
|
65
|
+
};
|
|
66
|
+
//# sourceMappingURL=media-stack.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"media-stack.js","sourceRoot":"","sources":["../../../src/backends/gui/media-stack.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAiBZ,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAA;AAElC,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAA;AAC/B,OAAO,EAAE,EAAE,EAAE,MAAM,eAAe,CAAA;AAElC,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAErC;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,GAAG,GAAG,CAAC,GAAe,EAAE,EAAc,EAAE,KAAK,GAAG,CAAC,EAAc,EAAE;IAC5E,IAAI,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC;QAAE,OAAO,EAAE,CAAA;IACjC,MAAM,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,GAAG,KAAK,CAAA;IACtD,OAAO,EAAE,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,CAAA;AAC/D,CAAC,CAAA;AAQD,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,EAAE,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,GAAG,KAAK,EAAmB,EAAE,EAAE;IACzF,MAAM,KAAK,GA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QACzE,wBAAwB;;YAJxB,uEAAuE;YACvE,sEAAsE;YACtE,iEAAiE;YACjE,yEAAyE;YACzE,wBAAwB;YACxB,GAAG,EAAE,KAAK,CAAC,GAAG,EACd,KAAK,EAAE,CAAC,CAAC,CAAC,EACV,MAAM,EAAE,CAAC,CAAC,CAAC;YACX,wEAAwE;YACxE,uEAAuE;YACvE,wCAAwC;YACxC,GAAG,EAAE,KAAK,CAAC,GAAG,IAAI,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAC5C,SAAS,EAAE,GAAG,EAAE,OAAO,GACvB,CACH,CAAA;IACH,CAAC,CAAC,EAAE,CAAA;IAEJ,OAAO,CACL,KAAC,GAAG,IACF,SAAS,EAAE,EAAE,CAAC,yBAAyB,EAAE,SAAS,CAAC,EACnD,KAAK,EAAE;YACL,KAAK,EAAE,WAAW,CAAC,CAAC;YACpB,MAAM,EAAE,WAAW,CAAC,CAAC;YACrB,GAAG,CAAC,OAAO,IAAI,OAAO;gBACpB,CAAC,CAAC,EAAE,SAAS,EAAE,aAAa,OAAO,OAAO,OAAO,KAAK,EAAE;gBACxD,CAAC,CAAC,IAAI,CAAC;SACV,KACG,KAAK,YAER,KAAK,GACF,CACP,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
'use client';"use strict";
|
|
2
|
+
'use client';
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Skeleton = void 0;
|
|
5
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
6
|
+
const box_1 = require("../../box.cjs");
|
|
7
|
+
const cn_1 = require("../../core/cn.cjs");
|
|
8
|
+
const Skeleton = ({ className, ...props }) => ((0, jsx_runtime_1.jsx)(box_1.Box
|
|
9
|
+
// Announced as busy so a screen reader says "loading" rather than reading
|
|
10
|
+
// out an empty box, or nothing at all. A boolean, not the string "true":
|
|
11
|
+
// gui types the ARIA states as booleans and React writes the attribute out
|
|
12
|
+
// either way.
|
|
13
|
+
, { "aria-busy": true, "aria-live": "polite", className: (0, cn_1.cn)('hz-pulse rounded-md bg-muted', className), ...props }));
|
|
14
|
+
exports.Skeleton = Skeleton;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Skeleton — the shape of content that has not arrived.
|
|
3
|
+
*
|
|
4
|
+
* It is a box with the pulse on it and nothing else, so the SIZE is the caller's
|
|
5
|
+
* to state and should match what will land there. A skeleton that is not the
|
|
6
|
+
* size of its content is worse than none: the page reflows when the real thing
|
|
7
|
+
* appears, which is the jump the skeleton existed to prevent.
|
|
8
|
+
*/
|
|
9
|
+
import * as React from 'react';
|
|
10
|
+
import { Box } from '../../box.js';
|
|
11
|
+
export declare const Skeleton: ({ className, ...props }: React.ComponentProps<typeof Box>) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
//# sourceMappingURL=skeleton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skeleton.d.ts","sourceRoot":"","sources":["../../../src/backends/gui/skeleton.tsx"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AACH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAA;AAG/B,eAAO,MAAM,QAAQ,4BAA6B,KAAK,CAAC,cAAc,CAAC,OAAO,GAAG,CAAC,4CAWjF,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { Box } from '../../box.js';
|
|
4
|
+
import { cn } from '../../core/cn.js';
|
|
5
|
+
export const Skeleton = ({ className, ...props }) => (_jsx(Box
|
|
6
|
+
// Announced as busy so a screen reader says "loading" rather than reading
|
|
7
|
+
// out an empty box, or nothing at all. A boolean, not the string "true":
|
|
8
|
+
// gui types the ARIA states as booleans and React writes the attribute out
|
|
9
|
+
// either way.
|
|
10
|
+
, { "aria-busy": true, "aria-live": "polite", className: cn('hz-pulse rounded-md bg-muted', className), ...props }));
|
|
11
|
+
//# sourceMappingURL=skeleton.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skeleton.js","sourceRoot":"","sources":["../../../src/backends/gui/skeleton.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAYZ,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAA;AAC/B,OAAO,EAAE,EAAE,EAAE,MAAM,eAAe,CAAA;AAElC,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAoC,EAAE,EAAE,CAAC,CACrF,KAAC,GAAG;AACF,0EAA0E;AAC1E,yEAAyE;AACzE,2EAA2E;AAC3E,cAAc;iBACH,IAAI,eACL,QAAQ,EAClB,SAAS,EAAE,EAAE,CAAC,8BAA8B,EAAE,SAAS,CAAC,KACpD,KAAK,GACT,CACH,CAAA"}
|
package/dist/box.cjs
CHANGED
|
@@ -64,6 +64,23 @@ const TEXT_PROPS = ['fontSize', 'lineHeight', 'fontWeight', 'letterSpacing',
|
|
|
64
64
|
// column going ragged — a 25px total measuring 27px, which no test asserting
|
|
65
65
|
// on text would notice.
|
|
66
66
|
'fontVariantNumeric'];
|
|
67
|
+
/**
|
|
68
|
+
* Properties gui has no style prop for, which must reach the DOM as plain CSS.
|
|
69
|
+
*
|
|
70
|
+
* An unrecognised prop is not dropped — it is FORWARDED, so it lands on the
|
|
71
|
+
* element as an attribute: `scrollSnapType="x mandatory"` sitting in the markup
|
|
72
|
+
* where `scroll-snap-type` was meant. The element renders, the attribute is
|
|
73
|
+
* inert, and a carousel scrolls freely past its slides with nothing to say why.
|
|
74
|
+
* Same shape as the text properties above, different reason: those are dropped
|
|
75
|
+
* by the frame, these were never known to it.
|
|
76
|
+
*
|
|
77
|
+
* Exactly the properties `tw` emits that gui's tables do not name. gui DOES
|
|
78
|
+
* carry `backgroundClip` and `backgroundOrigin`, so those stay with it; it does
|
|
79
|
+
* not carry the `-webkit-` half of the pair, which is the one Safari reads for
|
|
80
|
+
* clipping a gradient to text.
|
|
81
|
+
*/
|
|
82
|
+
const CSS_PROPS = ['scrollSnapType', 'scrollSnapAlign', 'scrollSnapStop',
|
|
83
|
+
'WebkitBackgroundClip'];
|
|
67
84
|
const BoxInner = (0, react_1.forwardRef)(function Box({ className, children, 'aria-hidden': hidden, tag, ...rest }, ref) {
|
|
68
85
|
const { props, rest: unread } = (0, tw_1.tw)(className);
|
|
69
86
|
// A View pins `min-height: 0`; a div's is `auto`, and auto is what gives a
|
|
@@ -86,6 +103,11 @@ const BoxInner = (0, react_1.forwardRef)(function Box({ className, children, 'ar
|
|
|
86
103
|
text[k] = props[k];
|
|
87
104
|
delete props[k];
|
|
88
105
|
}
|
|
106
|
+
for (const k of CSS_PROPS)
|
|
107
|
+
if (k in props) {
|
|
108
|
+
text[k] = props[k];
|
|
109
|
+
delete props[k];
|
|
110
|
+
}
|
|
89
111
|
// A div's line-height comes from the cascade; gui's Stack stamps its own, so
|
|
90
112
|
// a converted box grew a few pixels per line of text. Stated only when no
|
|
91
113
|
// class said otherwise, so `leading-relaxed` still wins.
|
package/dist/box.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"box.d.ts","sourceRoot":"","sources":["../src/box.tsx"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,OAAO,EAA6B,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AACjE,OAAO,EAAE,MAAM,EAAE,MAAM,YAAY,CAAA;AACnC,OAAO,EAAM,KAAK,UAAU,EAAE,MAAM,MAAM,CAAA;
|
|
1
|
+
{"version":3,"file":"box.d.ts","sourceRoot":"","sources":["../src/box.tsx"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,OAAO,EA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ACjF,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,GAAG;IAAE,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA;CAAE,KAC1C,KAAK,CAAC,YAAY,GAAG,IAAI,CAAA;eAEf,GAAG"}
|
package/dist/box.js
CHANGED
|
@@ -61,6 +61,23 @@ const TEXT_PROPS = ['fontSize', 'lineHeight', 'fontWeight', 'letterSpacing',
|
|
|
61
61
|
// column going ragged — a 25px total measuring 27px, which no test asserting
|
|
62
62
|
// on text would notice.
|
|
63
63
|
'fontVariantNumeric'];
|
|
64
|
+
/**
|
|
65
|
+
* Properties gui has no style prop for, which must reach the DOM as plain CSS.
|
|
66
|
+
*
|
|
67
|
+
* An unrecognised prop is not dropped — it is FORWARDED, so it lands on the
|
|
68
|
+
* element as an attribute: `scrollSnapType="x mandatory"` sitting in the markup
|
|
69
|
+
* where `scroll-snap-type` was meant. The element renders, the attribute is
|
|
70
|
+
* inert, and a carousel scrolls freely past its slides with nothing to say why.
|
|
71
|
+
* Same shape as the text properties above, different reason: those are dropped
|
|
72
|
+
* by the frame, these were never known to it.
|
|
73
|
+
*
|
|
74
|
+
* Exactly the properties `tw` emits that gui's tables do not name. gui DOES
|
|
75
|
+
* carry `backgroundClip` and `backgroundOrigin`, so those stay with it; it does
|
|
76
|
+
* not carry the `-webkit-` half of the pair, which is the one Safari reads for
|
|
77
|
+
* clipping a gradient to text.
|
|
78
|
+
*/
|
|
79
|
+
const CSS_PROPS = ['scrollSnapType', 'scrollSnapAlign', 'scrollSnapStop',
|
|
80
|
+
'WebkitBackgroundClip'];
|
|
64
81
|
const BoxInner = forwardRef(function Box({ className, children, 'aria-hidden': hidden, tag, ...rest }, ref) {
|
|
65
82
|
const { props, rest: unread } = tw(className);
|
|
66
83
|
// A View pins `min-height: 0`; a div's is `auto`, and auto is what gives a
|
|
@@ -83,6 +100,11 @@ const BoxInner = forwardRef(function Box({ className, children, 'aria-hidden': h
|
|
|
83
100
|
text[k] = props[k];
|
|
84
101
|
delete props[k];
|
|
85
102
|
}
|
|
103
|
+
for (const k of CSS_PROPS)
|
|
104
|
+
if (k in props) {
|
|
105
|
+
text[k] = props[k];
|
|
106
|
+
delete props[k];
|
|
107
|
+
}
|
|
86
108
|
// A div's line-height comes from the cascade; gui's Stack stamps its own, so
|
|
87
109
|
// a converted box grew a few pixels per line of text. Stated only when no
|
|
88
110
|
// class said otherwise, so `leading-relaxed` still wins.
|
package/dist/box.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"box.js","sourceRoot":"","sources":["../src/box.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAEZ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,OAAO,EAAE,aAAa,EAAE,UAAU,EAAkB,MAAM,OAAO,CAAA;AACjE,OAAO,EAAE,MAAM,EAAE,MAAM,YAAY,CAAA;AACnC,OAAO,EAAE,EAAE,EAAmB,MAAM,MAAM,CAAA;AAE1C;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,GAAG,IAAI,GAAG,CAAC,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,OAAO;IAC9E,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM;IAC/E,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC,CAAA;AAElD,2EAA2E;AAC3E,MAAM,UAAU,GAAG,CAAC,UAAU,EAAE,YAAY,EAAE,YAAY,EAAE,eAAe;IACzE,eAAe,EAAE,YAAY,EAAE,WAAW,EAAE,WAAW,EAAE,OAAO;IAChE,oBAAoB,EAAE,YAAY;IAClC,8EAA8E;IAC9E,2EAA2E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,CAAC,CAAC,CAAA;AAEF;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,GAAG,GAAG,QAEW,CAAA;AAE9B,eAAe,GAAG,CAAA"}
|
package/dist/gallery.html
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!doctype html><html lang="en" class="t_dark"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>@hanzo/ui 8.
|
|
1
|
+
<!doctype html><html lang="en" class="t_dark"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>@hanzo/ui 8.9.1</title><style>/* @hanzo/ui — generated by scripts/gen-css.mjs. Do not edit. */
|
|
2
2
|
:root { --hanzo-ui-styles: 1; }
|
|
3
3
|
/* Hanzo Design System — the entry point. Import THIS one file.
|
|
4
4
|
*
|
|
@@ -1443,6 +1443,28 @@
|
|
|
1443
1443
|
.hz-prose-responsive > h2 { font-size: var(--text-5xl) }
|
|
1444
1444
|
}
|
|
1445
1445
|
|
|
1446
|
+
/* The two things a style PROP cannot say, because neither is a property of an
|
|
1447
|
+
element: a keyframe, and a scrollbar. */
|
|
1448
|
+
|
|
1449
|
+
/* Skeleton's pulse. Opacity only — animating a colour or a size would repaint
|
|
1450
|
+
or reflow every frame for a placeholder nobody is looking at. */
|
|
1451
|
+
@keyframes hz-pulse {
|
|
1452
|
+
50% { opacity: 0.5 }
|
|
1453
|
+
}
|
|
1454
|
+
.hz-pulse { animation: hz-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite }
|
|
1455
|
+
|
|
1456
|
+
/* A carousel scrolls but must not show a bar: the arrows and the snap already
|
|
1457
|
+
say it scrolls, and a bar that appears mid-drag shifts the slides under the
|
|
1458
|
+
pointer. Firefox reads the property, WebKit the pseudo-element, and the
|
|
1459
|
+
property rides on the component so only this half needs a sheet. */
|
|
1460
|
+
.hz-scroller::-webkit-scrollbar { display: none }
|
|
1461
|
+
|
|
1462
|
+
/* Motion is a preference, and both of the above are decoration. */
|
|
1463
|
+
@media (prefers-reduced-motion: reduce) {
|
|
1464
|
+
.hz-pulse { animation: none }
|
|
1465
|
+
.hz-scroller { scroll-behavior: auto }
|
|
1466
|
+
}
|
|
1467
|
+
|
|
1446
1468
|
/* Glass — the material floating chrome is made of, and the ladder it stands on.
|
|
1447
1469
|
*
|
|
1448
1470
|
* import '@hanzo/ui/glass.css' // this slice alone
|
package/dist/index.cjs
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.DropdownMenuSubContent = exports.DropdownMenuSub = exports.DropdownMenuShortcut = exports.DropdownMenuSeparator = exports.DropdownMenuRadioItem = exports.DropdownMenuRadioGroup = exports.DropdownMenuPortal = exports.DropdownMenuLabel = exports.DropdownMenuItem = exports.DropdownMenuGroup = exports.DropdownMenuContent = exports.DropdownMenuCheckboxItem = exports.DropdownMenu = exports.DialogTrigger = exports.DialogTitle = exports.DialogPortal = exports.DialogOverlay = exports.DialogHeader = exports.DialogFooter = exports.DialogDescription = exports.DialogContent = exports.DialogClose = exports.Dialog = exports.CommandShortcut = exports.CommandSeparator = exports.CommandList = exports.CommandItem = exports.CommandInput = exports.CommandGroup = exports.CommandEmpty = exports.CommandDialog = exports.Command = exports.CollapsibleTrigger = exports.CollapsibleContent = exports.Collapsible = exports.Checkbox = exports.CardTitle = exports.CardMedia = exports.CardHeader = exports.CardFooter = exports.CardDescription = exports.CardContent = exports.CardAction = exports.Card = exports.Button = exports.Badge = exports.AvatarImage = exports.AvatarFallback = exports.Avatar = exports.AspectRatio = void 0;
|
|
4
4
|
exports.TabsContent = exports.Tabs = exports.Switch = exports.Strong = exports.Spinner = exports.Span = exports.Spacer = exports.Slider = exports.SizableText = exports.Separator = exports.Band = exports.ScrollView = exports.Screen = exports.Paragraph = exports.SelectValue = exports.SelectTrigger = exports.SelectSeparator = exports.SelectScrollUpButton = exports.SelectScrollDownButton = exports.SelectLabel = exports.SelectItem = exports.SelectGroup = exports.SelectContent = exports.Select = exports.ScrollBar = exports.ScrollArea = exports.ResizablePanelGroup = exports.ResizablePanel = exports.ResizableHandle = exports.Progress = exports.PopoverTrigger = exports.PopoverContent = exports.PopoverClose = exports.PopoverAnchor = exports.Popover = exports.Label = exports.Input = exports.Image = exports.Heading = exports.H6 = exports.H5 = exports.H4 = exports.H3 = exports.H2 = exports.H1 = exports.Fill = exports.Glass = exports.Em = exports.DropdownMenuTrigger = exports.DropdownMenuSubTrigger = void 0;
|
|
5
|
-
exports.
|
|
6
|
-
exports.sx = exports.Box = exports.tw = exports.capitalize = exports.cn = exports.Hanzo = exports.Anchor = exports.ToggleGroupItem = exports.ToggleGroup = exports.RadioGroupItem = exports.RadioGroup = exports.HoverCardTrigger = exports.HoverCardContent = exports.HoverCard = exports.ContextMenuTrigger = exports.ContextMenuSubTrigger = exports.ContextMenuSubContent = exports.ContextMenuSub = exports.ContextMenuShortcut = exports.ContextMenuSeparator = exports.ContextMenuRadioItem = exports.ContextMenuRadioGroup = exports.ContextMenuPortal = exports.ContextMenuLabel = exports.ContextMenuItem = void 0;
|
|
5
|
+
exports.AlertDialogHeader = exports.AlertDialogFooter = exports.AlertDialogDescription = exports.AlertDialogContent = exports.AlertDialogCancel = exports.AlertDialogAction = exports.AlertDialog = exports.AccordionTrigger = exports.AccordionItem = exports.AccordionContent = exports.Accordion = exports.fit = exports.MediaStack = exports.Skeleton = exports.CarouselNext = exports.CarouselPrevious = exports.CarouselItem = exports.CarouselContent = exports.Carousel = exports.useFormField = exports.FormMessage = exports.FormDescription = exports.FormControl = exports.FormLabel = exports.FormItem = exports.FormField = exports.Form = exports.useLink = exports.YouTubeEmbed = exports.VideoPlayer = exports.MDXLink = exports.LinkElement = exports.Link = exports.ApplyTypography = exports.toast = exports.buttonVariants = exports.badgeVariants = exports.ZStack = exports.YStack = exports.XStack = exports.View = exports.TooltipTrigger = exports.TooltipProvider = exports.TooltipContent = exports.Tooltip = exports.Text = exports.Toaster = exports.Textarea = exports.TabsTrigger = exports.TabsList = void 0;
|
|
6
|
+
exports.sx = exports.Box = exports.tw = exports.capitalize = exports.cn = exports.Hanzo = exports.Anchor = exports.ToggleGroupItem = exports.ToggleGroup = exports.RadioGroupItem = exports.RadioGroup = exports.HoverCardTrigger = exports.HoverCardContent = exports.HoverCard = exports.ContextMenuTrigger = exports.ContextMenuSubTrigger = exports.ContextMenuSubContent = exports.ContextMenuSub = exports.ContextMenuShortcut = exports.ContextMenuSeparator = exports.ContextMenuRadioItem = exports.ContextMenuRadioGroup = exports.ContextMenuPortal = exports.ContextMenuLabel = exports.ContextMenuItem = exports.ContextMenuGroup = exports.ContextMenuContent = exports.ContextMenuCheckboxItem = exports.ContextMenu = exports.AlertDialogTrigger = exports.AlertDialogTitle = exports.AlertDialogPortal = exports.AlertDialogOverlay = void 0;
|
|
7
7
|
// @hanzo/ui — the one Hanzo component library, on @hanzo/gui + @hanzo/design.
|
|
8
8
|
//
|
|
9
9
|
// ONE substrate: every component renders through @hanzo/gui primitives, so the
|
|
@@ -171,6 +171,14 @@ Object.defineProperty(exports, "FormControl", { enumerable: true, get: function
|
|
|
171
171
|
Object.defineProperty(exports, "FormDescription", { enumerable: true, get: function () { return gui_1.FormDescription; } });
|
|
172
172
|
Object.defineProperty(exports, "FormMessage", { enumerable: true, get: function () { return gui_1.FormMessage; } });
|
|
173
173
|
Object.defineProperty(exports, "useFormField", { enumerable: true, get: function () { return gui_1.useFormField; } });
|
|
174
|
+
Object.defineProperty(exports, "Carousel", { enumerable: true, get: function () { return gui_1.Carousel; } });
|
|
175
|
+
Object.defineProperty(exports, "CarouselContent", { enumerable: true, get: function () { return gui_1.CarouselContent; } });
|
|
176
|
+
Object.defineProperty(exports, "CarouselItem", { enumerable: true, get: function () { return gui_1.CarouselItem; } });
|
|
177
|
+
Object.defineProperty(exports, "CarouselPrevious", { enumerable: true, get: function () { return gui_1.CarouselPrevious; } });
|
|
178
|
+
Object.defineProperty(exports, "CarouselNext", { enumerable: true, get: function () { return gui_1.CarouselNext; } });
|
|
179
|
+
Object.defineProperty(exports, "Skeleton", { enumerable: true, get: function () { return gui_1.Skeleton; } });
|
|
180
|
+
Object.defineProperty(exports, "MediaStack", { enumerable: true, get: function () { return gui_1.MediaStack; } });
|
|
181
|
+
Object.defineProperty(exports, "fit", { enumerable: true, get: function () { return gui_1.fit; } });
|
|
174
182
|
Object.defineProperty(exports, "Accordion", { enumerable: true, get: function () { return gui_1.Accordion; } });
|
|
175
183
|
Object.defineProperty(exports, "AccordionContent", { enumerable: true, get: function () { return gui_1.AccordionContent; } });
|
|
176
184
|
Object.defineProperty(exports, "AccordionItem", { enumerable: true, get: function () { return gui_1.AccordionItem; } });
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { AspectRatio, Avatar, AvatarFallback, AvatarImage, Badge, Button, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardMedia, CardTitle, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Em, Glass, Fill, H1, H2, H3, H4, H5, H6, Heading, Image, Input, Label, Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverTrigger, Progress, ResizableHandle, ResizablePanel, ResizablePanelGroup, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Paragraph, Screen, ScrollView, Band, Separator, SizableText, Slider, Spacer, Span, Spinner, Strong, Switch, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, Toaster, Text, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, View, XStack, YStack, ZStack, badgeVariants, buttonVariants, toast, ApplyTypography, Link, LinkElement, MDXLink, VideoPlayer, YouTubeEmbed, useLink, Form, FormField, FormItem, FormLabel, FormControl, FormDescription, FormMessage, useFormField, Accordion, AccordionContent, AccordionItem, AccordionTrigger, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, HoverCard, HoverCardContent, HoverCardTrigger, RadioGroup, RadioGroupItem, ToggleGroup, ToggleGroupItem, } from './backends/gui/index.js';
|
|
2
|
-
export type { AspectRatioProps, BadgeProps, BadgeVariant, ButtonProps, ButtonSize, ButtonVariant, CommandFilter, CommandProps, DropdownMenuProps, InputProps, ResizableHandleProps, SpinnerProps, ResizablePanelGroupProps, ResizablePanelProps, AccordionContentProps, AccordionItemProps, AccordionProps, AccordionTriggerProps, AlertDialogContentProps, AlertDialogOverlayProps, AlertDialogProps, AlertDialogSectionProps, ContextMenuContentProps, ContextMenuItemProps, ContextMenuSubContentProps, HoverCardContentProps, HoverCardProps, HoverCardTriggerProps, RadioGroupItemProps, RadioGroupProps, ToggleGroupItemProps, ToggleGroupProps, ToggleGroupSize, ToggleGroupVariant, } from './backends/gui/index.js';
|
|
1
|
+
export { AspectRatio, Avatar, AvatarFallback, AvatarImage, Badge, Button, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardMedia, CardTitle, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Em, Glass, Fill, H1, H2, H3, H4, H5, H6, Heading, Image, Input, Label, Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverTrigger, Progress, ResizableHandle, ResizablePanel, ResizablePanelGroup, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Paragraph, Screen, ScrollView, Band, Separator, SizableText, Slider, Spacer, Span, Spinner, Strong, Switch, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, Toaster, Text, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, View, XStack, YStack, ZStack, badgeVariants, buttonVariants, toast, ApplyTypography, Link, LinkElement, MDXLink, VideoPlayer, YouTubeEmbed, useLink, Form, FormField, FormItem, FormLabel, FormControl, FormDescription, FormMessage, useFormField, Carousel, CarouselContent, CarouselItem, CarouselPrevious, CarouselNext, Skeleton, MediaStack, fit, Accordion, AccordionContent, AccordionItem, AccordionTrigger, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, HoverCard, HoverCardContent, HoverCardTrigger, RadioGroup, RadioGroupItem, ToggleGroup, ToggleGroupItem, } from './backends/gui/index.js';
|
|
2
|
+
export type { AspectRatioProps, BadgeProps, BadgeVariant, ButtonProps, ButtonSize, ButtonVariant, CommandFilter, CommandProps, DropdownMenuProps, InputProps, ResizableHandleProps, SpinnerProps, ResizablePanelGroupProps, ResizablePanelProps, AccordionContentProps, AccordionItemProps, AccordionProps, AccordionTriggerProps, AlertDialogContentProps, AlertDialogOverlayProps, AlertDialogProps, AlertDialogSectionProps, ContextMenuContentProps, ContextMenuItemProps, ContextMenuSubContentProps, HoverCardContentProps, HoverCardProps, HoverCardTriggerProps, RadioGroupItemProps, RadioGroupProps, ToggleGroupItemProps, ToggleGroupProps, ToggleGroupSize, ToggleGroupVariant, CarouselApi, CarouselOptions, CarouselProps, MediaStackProps, } from './backends/gui/index.js';
|
|
3
3
|
export { Anchor, type GuiElement, } from './backends/gui/index.js';
|
|
4
4
|
export { Hanzo, type HanzoProps } from './root.js';
|
|
5
5
|
export { cn, capitalize, type ClassValue } from './core/cn.js';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAmCA,OAAO,EACL,WAAW,EAAE,MAAM,EAAE,cAAc,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,EACjF,WAAW,EAAE,eAAe,EAAE,UAAU,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EACpF,WAAW,EACX,kBAAkB,EAAE,kBAAkB,EAAE,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,YAAY,EAC1F,YAAY,EAAE,WAAW,EAAE,WAAW,EAAE,gBAAg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B,EAAE,uBAAuB,EAAE,uBAAuB,EAAE,gBAAgB,EAAE,uBAAuB,EAAE,uBAAuB,EAAE,oBAAoB,EAAE,0BAA0B,EAAE,qBAAqB,EAAE,cAAc,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,eAAe,EAAE,oBAAoB,EAAE,gBAAgB,EACpY,eAAe,EAAE,kBAAkB,EACnC,WAAW,EAAE,eAAe,EAAE,aAAa,EAAE,eAAe,GAC7D,MAAM,gBAAgB,CAAA;AAkBvB,OAAO,EACL,MAAM,EACN,KAAK,UAAU,GAChB,MAAM,gBAAgB,CAAA;AAKvB,OAAO,EAAE,KAAK,EAAE,KAAK,UAAU,EAAE,MAAM,QAAQ,CAAA;AAM/C,OAAO,EAAE,EAAE,EAAE,UAAU,EAAE,KAAK,UAAU,EAAE,MAAM,WAAW,CAAA;AAM3D,OAAO,EAAE,EAAE,EAAE,KAAK,MAAM,EAAE,KAAK,KAAK,IAAI,OAAO,EAAE,MAAM,MAAM,CAAA;AAC7D,OAAO,EAAE,GAAG,EAAE,KAAK,QAAQ,EAAE,MAAM,OAAO,CAAA;AAC1C,OAAO,EAAE,EAAE,EAAE,MAAM,MAAM,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
// absent here, which means a consumer could not import them AT ALL: the component
|
|
34
34
|
// existed, the docs named it, and `import { Grid } from '@hanzo/ui'` was undefined.
|
|
35
35
|
// `src/__tests__/barrel.test.ts` now fails when the two disagree.
|
|
36
|
-
export { AspectRatio, Avatar, AvatarFallback, AvatarImage, Badge, Button, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardMedia, CardTitle, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Em, Glass, Fill, H1, H2, H3, H4, H5, H6, Heading, Image, Input, Label, Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverTrigger, Progress, ResizableHandle, ResizablePanel, ResizablePanelGroup, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Paragraph, Screen, ScrollView, Band, Separator, SizableText, Slider, Spacer, Span, Spinner, Strong, Switch, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, Toaster, Text, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, View, XStack, YStack, ZStack, badgeVariants, buttonVariants, toast, ApplyTypography, Link, LinkElement, MDXLink, VideoPlayer, YouTubeEmbed, useLink, Form, FormField, FormItem, FormLabel, FormControl, FormDescription, FormMessage, useFormField, Accordion, AccordionContent, AccordionItem, AccordionTrigger, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, HoverCard, HoverCardContent, HoverCardTrigger, RadioGroup, RadioGroupItem, ToggleGroup, ToggleGroupItem, } from './backends/gui/index.js';
|
|
36
|
+
export { AspectRatio, Avatar, AvatarFallback, AvatarImage, Badge, Button, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardMedia, CardTitle, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Em, Glass, Fill, H1, H2, H3, H4, H5, H6, Heading, Image, Input, Label, Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverTrigger, Progress, ResizableHandle, ResizablePanel, ResizablePanelGroup, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Paragraph, Screen, ScrollView, Band, Separator, SizableText, Slider, Spacer, Span, Spinner, Strong, Switch, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, Toaster, Text, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, View, XStack, YStack, ZStack, badgeVariants, buttonVariants, toast, ApplyTypography, Link, LinkElement, MDXLink, VideoPlayer, YouTubeEmbed, useLink, Form, FormField, FormItem, FormLabel, FormControl, FormDescription, FormMessage, useFormField, Carousel, CarouselContent, CarouselItem, CarouselPrevious, CarouselNext, Skeleton, MediaStack, fit, Accordion, AccordionContent, AccordionItem, AccordionTrigger, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, HoverCard, HoverCardContent, HoverCardTrigger, RadioGroup, RadioGroupItem, ToggleGroup, ToggleGroupItem, } from './backends/gui/index.js';
|
|
37
37
|
// LAYOUT — the stacks and the type scale reach consumers through the component
|
|
38
38
|
// barrel above, which already names XStack/YStack/ZStack, the type scale
|
|
39
39
|
// (SizableText, Paragraph, Heading, H1-H6, Span, Strong, Em) and Image, Spacer,
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAC9E,EAAE;AACF,+EAA+E;AAC/E,kFAAkF;AAClF,4EAA4E;AAC5E,+EAA+E;AAC/E,EAAE;AACF,qGAAqG;AACrG,yGAAyG;AACzG,6GAA6G;AAC7G,4GAA4G;AAC5G,4GAA4G;AAC5G,mHAAmH;AACnH,EAAE;AACF,6EAA6E;AAC7E,2EAA2E;AAC3E,gEAAgE;AAChE,yBAAyB;AACzB,EAAE;AACF,6EAA6E;AAC7E,mFAAmF;AACnF,mFAAmF;AACnF,EAAE;AACF,+EAA+E;AAC/E,mFAAmF;AACnF,wBAAwB;AACxB,EAAE;AACF,mFAAmF;AACnF,EAAE;AACF,oFAAoF;AACpF,mFAAmF;AACnF,gFAAgF;AAChF,kFAAkF;AAClF,oFAAoF;AACpF,kEAAkE;AAClE,OAAO,EACL,WAAW,EAAE,MAAM,EAAE,cAAc,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,EACjF,WAAW,EAAE,eAAe,EAAE,UAAU,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EACpF,WAAW,EACX,kBAAkB,EAAE,kBAAkB,EAAE,OAAO,EAA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BAAkB;AAClB,EAAE;AACF,gFAAgF;AAChF,kFAAkF;AAClF,kFAAkF;AAClF,+CAA+C;AAC/C,OAAO,EACL,MAAM,GAEP,MAAM,gBAAgB,CAAA;AAEvB,2EAA2E;AAC3E,gFAAgF;AAChF,wDAAwD;AACxD,OAAO,EAAE,KAAK,EAAmB,MAAM,QAAQ,CAAA;AAE/C,4DAA4D;AAC5D,2EAA2E;AAC3E,2EAA2E;AAC3E,6DAA6D;AAC7D,OAAO,EAAE,EAAE,EAAE,UAAU,EAAmB,MAAM,WAAW,CAAA;AAE3D,iFAAiF;AACjF,6EAA6E;AAC7E,WAAW;AAEX,OAAO,EAAE,EAAE,EAAsC,MAAM,MAAM,CAAA;AAC7D,OAAO,EAAE,GAAG,EAAiB,MAAM,OAAO,CAAA;AAC1C,OAAO,EAAE,EAAE,EAAE,MAAM,MAAM,CAAA"}
|
package/dist/index.node.js
CHANGED
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
// absent here, which means a consumer could not import them AT ALL: the component
|
|
34
34
|
// existed, the docs named it, and `import { Grid } from '@hanzo/ui'` was undefined.
|
|
35
35
|
// `src/__tests__/barrel.test.ts` now fails when the two disagree.
|
|
36
|
-
export { AspectRatio, Avatar, AvatarFallback, AvatarImage, Badge, Button, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardMedia, CardTitle, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Em, Glass, Fill, H1, H2, H3, H4, H5, H6, Heading, Image, Input, Label, Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverTrigger, Progress, ResizableHandle, ResizablePanel, ResizablePanelGroup, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Paragraph, Screen, ScrollView, Band, Separator, SizableText, Slider, Spacer, Span, Spinner, Strong, Switch, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, Toaster, Text, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, View, XStack, YStack, ZStack, badgeVariants, buttonVariants, toast, ApplyTypography, Link, LinkElement, MDXLink, VideoPlayer, YouTubeEmbed, useLink, Form, FormField, FormItem, FormLabel, FormControl, FormDescription, FormMessage, useFormField, Accordion, AccordionContent, AccordionItem, AccordionTrigger, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, HoverCard, HoverCardContent, HoverCardTrigger, RadioGroup, RadioGroupItem, ToggleGroup, ToggleGroupItem, } from './backends/gui/index.js';
|
|
36
|
+
export { AspectRatio, Avatar, AvatarFallback, AvatarImage, Badge, Button, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardMedia, CardTitle, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Em, Glass, Fill, H1, H2, H3, H4, H5, H6, Heading, Image, Input, Label, Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverTrigger, Progress, ResizableHandle, ResizablePanel, ResizablePanelGroup, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Paragraph, Screen, ScrollView, Band, Separator, SizableText, Slider, Spacer, Span, Spinner, Strong, Switch, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, Toaster, Text, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, View, XStack, YStack, ZStack, badgeVariants, buttonVariants, toast, ApplyTypography, Link, LinkElement, MDXLink, VideoPlayer, YouTubeEmbed, useLink, Form, FormField, FormItem, FormLabel, FormControl, FormDescription, FormMessage, useFormField, Carousel, CarouselContent, CarouselItem, CarouselPrevious, CarouselNext, Skeleton, MediaStack, fit, Accordion, AccordionContent, AccordionItem, AccordionTrigger, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, HoverCard, HoverCardContent, HoverCardTrigger, RadioGroup, RadioGroupItem, ToggleGroup, ToggleGroupItem, } from './backends/gui/index.js';
|
|
37
37
|
// LAYOUT — the stacks and the type scale reach consumers through the component
|
|
38
38
|
// barrel above, which already names XStack/YStack/ZStack, the type scale
|
|
39
39
|
// (SizableText, Paragraph, Heading, H1-H6, Span, Strong, Em) and Image, Spacer,
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
'use client';"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Carousel = void 0;
|
|
4
|
+
// GENERATED by scripts/gen-primitives.mjs — do not edit. Per-member entrypoint
|
|
5
|
+
// for hosts that modularize `@hanzo/ui` imports. Source of truth:
|
|
6
|
+
// src/backends/gui/index.ts. Re-run: node scripts/gen-primitives.mjs
|
|
7
|
+
var carousel_1 = require("../backends/gui/carousel.cjs");
|
|
8
|
+
Object.defineProperty(exports, "Carousel", { enumerable: true, get: function () { return carousel_1.Carousel; } });
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Carousel.d.ts","sourceRoot":"","sources":["../../src/primitives/Carousel.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAA"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// GENERATED by scripts/gen-primitives.mjs — do not edit. Per-member entrypoint
|
|
2
|
+
// for hosts that modularize `@hanzo/ui` imports. Source of truth:
|
|
3
|
+
// src/backends/gui/index.ts. Re-run: node scripts/gen-primitives.mjs
|
|
4
|
+
export { Carousel } from '../backends/gui/carousel.js';
|
|
5
|
+
//# sourceMappingURL=Carousel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Carousel.js","sourceRoot":"","sources":["../../src/primitives/Carousel.tsx"],"names":[],"mappings":"AAAA,+EAA+E;AAC/E,kEAAkE;AAClE,qEAAqE;AACrE,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
'use client';"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CarouselContent = void 0;
|
|
4
|
+
// GENERATED by scripts/gen-primitives.mjs — do not edit. Per-member entrypoint
|
|
5
|
+
// for hosts that modularize `@hanzo/ui` imports. Source of truth:
|
|
6
|
+
// src/backends/gui/index.ts. Re-run: node scripts/gen-primitives.mjs
|
|
7
|
+
var carousel_1 = require("../backends/gui/carousel.cjs");
|
|
8
|
+
Object.defineProperty(exports, "CarouselContent", { enumerable: true, get: function () { return carousel_1.CarouselContent; } });
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CarouselContent.d.ts","sourceRoot":"","sources":["../../src/primitives/CarouselContent.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAA"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// GENERATED by scripts/gen-primitives.mjs — do not edit. Per-member entrypoint
|
|
2
|
+
// for hosts that modularize `@hanzo/ui` imports. Source of truth:
|
|
3
|
+
// src/backends/gui/index.ts. Re-run: node scripts/gen-primitives.mjs
|
|
4
|
+
export { CarouselContent } from '../backends/gui/carousel.js';
|
|
5
|
+
//# sourceMappingURL=CarouselContent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CarouselContent.js","sourceRoot":"","sources":["../../src/primitives/CarouselContent.tsx"],"names":[],"mappings":"AAAA,+EAA+E;AAC/E,kEAAkE;AAClE,qEAAqE;AACrE,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
'use client';"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CarouselItem = void 0;
|
|
4
|
+
// GENERATED by scripts/gen-primitives.mjs — do not edit. Per-member entrypoint
|
|
5
|
+
// for hosts that modularize `@hanzo/ui` imports. Source of truth:
|
|
6
|
+
// src/backends/gui/index.ts. Re-run: node scripts/gen-primitives.mjs
|
|
7
|
+
var carousel_1 = require("../backends/gui/carousel.cjs");
|
|
8
|
+
Object.defineProperty(exports, "CarouselItem", { enumerable: true, get: function () { return carousel_1.CarouselItem; } });
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CarouselItem.d.ts","sourceRoot":"","sources":["../../src/primitives/CarouselItem.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAA"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// GENERATED by scripts/gen-primitives.mjs — do not edit. Per-member entrypoint
|
|
2
|
+
// for hosts that modularize `@hanzo/ui` imports. Source of truth:
|
|
3
|
+
// src/backends/gui/index.ts. Re-run: node scripts/gen-primitives.mjs
|
|
4
|
+
export { CarouselItem } from '../backends/gui/carousel.js';
|
|
5
|
+
//# sourceMappingURL=CarouselItem.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CarouselItem.js","sourceRoot":"","sources":["../../src/primitives/CarouselItem.tsx"],"names":[],"mappings":"AAAA,+EAA+E;AAC/E,kEAAkE;AAClE,qEAAqE;AACrE,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
'use client';"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CarouselNext = void 0;
|
|
4
|
+
// GENERATED by scripts/gen-primitives.mjs — do not edit. Per-member entrypoint
|
|
5
|
+
// for hosts that modularize `@hanzo/ui` imports. Source of truth:
|
|
6
|
+
// src/backends/gui/index.ts. Re-run: node scripts/gen-primitives.mjs
|
|
7
|
+
var carousel_1 = require("../backends/gui/carousel.cjs");
|
|
8
|
+
Object.defineProperty(exports, "CarouselNext", { enumerable: true, get: function () { return carousel_1.CarouselNext; } });
|