@atom63/ui-react 0.2.0-beta.14 → 0.2.0-beta.15
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-3LGXD3HE.js +450 -0
- package/dist/chunk-3LGXD3HE.js.map +1 -0
- package/dist/chunk-6HKGC3HE.js +3 -0
- package/dist/chunk-6HKGC3HE.js.map +1 -0
- package/dist/chunk-6VV4EBOO.js +25 -0
- package/dist/chunk-6VV4EBOO.js.map +1 -0
- package/dist/{chunk-IXWOWQBP.js → chunk-ALARPBUL.js} +5 -22
- package/dist/chunk-ALARPBUL.js.map +1 -0
- package/dist/chunk-FHL2NLXP.js +101 -0
- package/dist/chunk-FHL2NLXP.js.map +1 -0
- package/dist/chunk-HPUHI2YJ.js +69 -0
- package/dist/chunk-HPUHI2YJ.js.map +1 -0
- package/dist/chunk-QU33S646.js +118 -0
- package/dist/chunk-QU33S646.js.map +1 -0
- package/dist/components/art-plate/index.js +7 -0
- package/dist/components/art-plate/index.js.map +1 -0
- package/dist/components/layered-scene/index.js +7 -0
- package/dist/components/layered-scene/index.js.map +1 -0
- package/dist/components/segmented-control/index.js +1 -1
- package/dist/index.d.ts +89 -6
- package/dist/index.js +18 -13
- package/dist/media/index.d.ts +24 -3
- package/dist/media/index.js +9 -361
- package/dist/media/index.js.map +1 -1
- package/dist/media/media-lightbox/parts/index.js +2 -1
- package/dist/preview/index.js +4 -4
- package/dist/theme/index.d.ts +6 -2
- package/dist/theme/index.js +10 -1
- package/dist/theme/index.js.map +1 -1
- package/package.json +5 -3
- package/src/components/alert-dialog/alert-dialog.css +1 -1
- package/src/components/art-plate/art-plate.css +172 -0
- package/src/components/autocomplete/autocomplete.css +3 -3
- package/src/components/checkbox/checkbox.css +1 -1
- package/src/components/feedback-state/feedback-state.css +1 -1
- package/src/components/field/field.css +1 -1
- package/src/components/form/form.css +1 -1
- package/src/components/input/input.css +3 -3
- package/src/components/input-otp/input-otp.css +3 -3
- package/src/components/layered-scene/layered-scene.css +117 -0
- package/src/components/load-more-trigger/load-more-trigger.css +4 -2
- package/src/components/radio/radio.css +1 -1
- package/src/components/rating/rating.css +18 -17
- package/src/components/segmented-control/segmented-control.css +11 -11
- package/src/components/select/select.css +3 -3
- package/src/components/textarea/textarea.css +3 -3
- package/src/styles/recipes.css +2 -0
- package/dist/chunk-IXWOWQBP.js.map +0 -1
- package/dist/chunk-T7FUZUZO.js +0 -70
- package/dist/chunk-T7FUZUZO.js.map +0 -1
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { ArtPlate } from './chunk-HPUHI2YJ.js';
|
|
2
|
+
import { cn } from './chunk-AJLHJRK6.js';
|
|
3
|
+
import { layeredSceneContract } from '@atom63/ui-foundation';
|
|
4
|
+
import { jsx } from 'react/jsx-runtime';
|
|
5
|
+
|
|
6
|
+
function LayeredScene({
|
|
7
|
+
className,
|
|
8
|
+
placement = layeredSceneContract.defaultPlacement,
|
|
9
|
+
width = layeredSceneContract.defaultWidth,
|
|
10
|
+
...props
|
|
11
|
+
}) {
|
|
12
|
+
return /* @__PURE__ */ jsx(
|
|
13
|
+
"div",
|
|
14
|
+
{
|
|
15
|
+
className: cn("a63-LayeredScene", className),
|
|
16
|
+
"data-placement": placement,
|
|
17
|
+
"data-slot": "layered-scene",
|
|
18
|
+
"data-width": width,
|
|
19
|
+
...props
|
|
20
|
+
}
|
|
21
|
+
);
|
|
22
|
+
}
|
|
23
|
+
function LayeredScenePlate({
|
|
24
|
+
className,
|
|
25
|
+
...props
|
|
26
|
+
}) {
|
|
27
|
+
return /* @__PURE__ */ jsx(ArtPlate, { className: cn("a63-LayeredScene-plate", className), ...props });
|
|
28
|
+
}
|
|
29
|
+
function LayeredSceneContent({
|
|
30
|
+
className,
|
|
31
|
+
...props
|
|
32
|
+
}) {
|
|
33
|
+
return /* @__PURE__ */ jsx(
|
|
34
|
+
"div",
|
|
35
|
+
{
|
|
36
|
+
className: cn("a63-LayeredScene-content", className),
|
|
37
|
+
"data-slot": "layered-scene-content",
|
|
38
|
+
...props
|
|
39
|
+
}
|
|
40
|
+
);
|
|
41
|
+
}
|
|
42
|
+
function LayeredSceneStage({
|
|
43
|
+
className,
|
|
44
|
+
...props
|
|
45
|
+
}) {
|
|
46
|
+
return /* @__PURE__ */ jsx(
|
|
47
|
+
"div",
|
|
48
|
+
{
|
|
49
|
+
className: cn("a63-LayeredScene-stage", className),
|
|
50
|
+
"data-slot": "layered-scene-stage",
|
|
51
|
+
...props
|
|
52
|
+
}
|
|
53
|
+
);
|
|
54
|
+
}
|
|
55
|
+
var percent = (value) => `${Math.min(Math.max(value, 0), 1) * 100}%`;
|
|
56
|
+
function LayeredSceneForeground({
|
|
57
|
+
className,
|
|
58
|
+
focus,
|
|
59
|
+
focusMobile,
|
|
60
|
+
priority = false,
|
|
61
|
+
showOnPhone = false,
|
|
62
|
+
sizes = "100vw",
|
|
63
|
+
src,
|
|
64
|
+
srcSet,
|
|
65
|
+
style,
|
|
66
|
+
...props
|
|
67
|
+
}) {
|
|
68
|
+
const wide = focus ?? { x: 0.5, y: 0.5 };
|
|
69
|
+
const narrow = focusMobile ?? wide;
|
|
70
|
+
const focusStyle = {
|
|
71
|
+
"--a63-art-plate-focus": `${percent(wide.x)} ${percent(wide.y)}`,
|
|
72
|
+
"--a63-art-plate-focus-mobile": `${percent(narrow.x)} ${percent(narrow.y)}`
|
|
73
|
+
};
|
|
74
|
+
return /* @__PURE__ */ jsx(
|
|
75
|
+
"div",
|
|
76
|
+
{
|
|
77
|
+
"aria-hidden": "true",
|
|
78
|
+
className: cn("a63-LayeredScene-foreground", className),
|
|
79
|
+
"data-phone": showOnPhone ? "show" : "hide",
|
|
80
|
+
"data-slot": "layered-scene-foreground",
|
|
81
|
+
style: { ...focusStyle, ...style },
|
|
82
|
+
...props,
|
|
83
|
+
children: /* @__PURE__ */ jsx(
|
|
84
|
+
"img",
|
|
85
|
+
{
|
|
86
|
+
alt: "",
|
|
87
|
+
decoding: "async",
|
|
88
|
+
fetchPriority: priority ? "high" : "auto",
|
|
89
|
+
loading: priority ? "eager" : "lazy",
|
|
90
|
+
sizes,
|
|
91
|
+
src,
|
|
92
|
+
srcSet
|
|
93
|
+
}
|
|
94
|
+
)
|
|
95
|
+
}
|
|
96
|
+
);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export { LayeredScene, LayeredSceneContent, LayeredSceneForeground, LayeredScenePlate, LayeredSceneStage };
|
|
100
|
+
//# sourceMappingURL=chunk-FHL2NLXP.js.map
|
|
101
|
+
//# sourceMappingURL=chunk-FHL2NLXP.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/layered-scene/layered-scene.tsx"],"names":[],"mappings":";;;;;AAyBO,SAAS,YAAA,CAAa;AAAA,EAC3B,SAAA;AAAA,EACA,YAAY,oBAAA,CAAqB,gBAAA;AAAA,EACjC,QAAQ,oBAAA,CAAqB,YAAA;AAAA,EAC7B,GAAG;AACL,CAAA,EAA0C;AACxC,EAAA,uBACE,GAAA;AAAA,IAAC,KAAA;AAAA,IAAA;AAAA,MACC,SAAA,EAAW,EAAA,CAAG,kBAAA,EAAoB,SAAS,CAAA;AAAA,MAC3C,gBAAA,EAAgB,SAAA;AAAA,MAChB,WAAA,EAAU,eAAA;AAAA,MACV,YAAA,EAAY,KAAA;AAAA,MACX,GAAG;AAAA;AAAA,GACN;AAEJ;AAKO,SAAS,iBAAA,CAAkB;AAAA,EAChC,SAAA;AAAA,EACA,GAAG;AACL,CAAA,EAA+C;AAC7C,EAAA,uBAAO,GAAA,CAAC,YAAS,SAAA,EAAW,EAAA,CAAG,0BAA0B,SAAS,CAAA,EAAI,GAAG,KAAA,EAAO,CAAA;AAClF;AAGO,SAAS,mBAAA,CAAoB;AAAA,EAClC,SAAA;AAAA,EACA,GAAG;AACL,CAAA,EAAoD;AAClD,EAAA,uBACE,GAAA;AAAA,IAAC,KAAA;AAAA,IAAA;AAAA,MACC,SAAA,EAAW,EAAA,CAAG,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A,GAC3E;AAEA,EAAA,uBACE,GAAA;AAAA,IAAC,KAAA;AAAA,IAAA;AAAA,MACC,aAAA,EAAY,MAAA;AAAA,MACZ,SAAA,EAAW,EAAA,CAAG,6BAAA,EAA+B,SAAS,CAAA;AAAA,MACtD,YAAA,EAAY,cAAc,MAAA,GAAS,MAAA;AAAA,MACnC,WAAA,EAAU,0BAAA;AAAA,MACV,KAAA,EAAO,EAAE,GAAG,UAAA,EAAY,GAAG,KAAA,EAAM;AAAA,MAChC,GAAG,KAAA;AAAA,MAEJ,QAAA,kBAAA,GAAA;AAAA,QAAC,KAAA;AAAA,QAAA;AAAA,UACC,GAAA,EAAI,EAAA;AAAA,UACJ,QAAA,EAAS,OAAA;AAAA,UACT,aAAA,EAAe,WAAW,MAAA,GAAS,MAAA;AAAA,UACnC,OAAA,EAAS,WAAW,OAAA,GAAU,MAAA;AAAA,UAC9B,KAAA;AAAA,UACA,GAAA;AAAA,UACA;AAAA;AAAA;AACF;AAAA,GACF;AAEJ","file":"chunk-FHL2NLXP.js","sourcesContent":["import {\n type LayeredScenePlacement,\n type LayeredSceneWidth,\n layeredSceneContract,\n} from '@atom63/ui-foundation'\nimport type * as React from 'react'\n\nimport { cn } from '../../lib/cn'\nimport { ArtPlate, type ArtPlateFocus, type ArtPlateProps } from '../art-plate/art-plate'\n\nexport type LayeredSceneProps = React.ComponentProps<'div'> & {\n /** Where the stage sits, and how the copy aligns: centred, or docked to the inline end or start. */\n placement?: LayeredScenePlacement\n /** Stage width from the medium breakpoint up. */\n width?: LayeredSceneWidth\n}\n\n/**\n * LayeredScene stacks three layers in one box: a plate at the back\n * (`LayeredScenePlate`, an ArtPlate), the copy (`LayeredSceneContent`) and live\n * product UI (`LayeredSceneStage`) in the middle, and an optional inert\n * cut-out of the plate in front (`LayeredSceneForeground`). It is for a landing\n * or portfolio hero where the interface sits inside the picture, not for a\n * plain image with text on it (use ArtPlate alone).\n */\nexport function LayeredScene({\n className,\n placement = layeredSceneContract.defaultPlacement,\n width = layeredSceneContract.defaultWidth,\n ...props\n}: LayeredSceneProps): React.ReactElement {\n return (\n <div\n className={cn('a63-LayeredScene', className)}\n data-placement={placement}\n data-slot=\"layered-scene\"\n data-width={width}\n {...props}\n />\n )\n}\n\nexport type LayeredScenePlateProps = Omit<ArtPlateProps, 'children'>\n\n/** The plate: an ArtPlate that spans the whole scene. Give the copy to LayeredSceneContent. */\nexport function LayeredScenePlate({\n className,\n ...props\n}: LayeredScenePlateProps): React.ReactElement {\n return <ArtPlate className={cn('a63-LayeredScene-plate', className)} {...props} />\n}\n\n/** The copy above the stage: badge, headline, subhead and actions. */\nexport function LayeredSceneContent({\n className,\n ...props\n}: React.ComponentProps<'div'>): React.ReactElement {\n return (\n <div\n className={cn('a63-LayeredScene-content', className)}\n data-slot=\"layered-scene-content\"\n {...props}\n />\n )\n}\n\n/** The stage: live product UI, such as a Frame, docked at the bottom of the scene. */\nexport function LayeredSceneStage({\n className,\n ...props\n}: React.ComponentProps<'div'>): React.ReactElement {\n return (\n <div\n className={cn('a63-LayeredScene-stage', className)}\n data-slot=\"layered-scene-stage\"\n {...props}\n />\n )\n}\n\nexport type LayeredSceneForegroundProps = Omit<\n React.ComponentProps<'div'>,\n 'aria-hidden' | 'children'\n> & {\n /** Same focal point as the plate, so the cut-out lines up with it. */\n focus?: ArtPlateFocus\n /** Same phone focal point as the plate. */\n focusMobile?: ArtPlateFocus\n /** Load eagerly, as for the hero plate. */\n priority?: boolean\n /** Keep the cut-out below the medium breakpoint too. By default phones drop it. */\n showOnPhone?: boolean\n sizes?: string\n /** A transparent cut-out of the plate, at the plate's size. */\n src: string\n srcSet?: string\n}\n\nconst percent = (value: number) => `${Math.min(Math.max(value, 0), 1) * 100}%`\n\n/**\n * The foreground: a transparent cut-out of the plate in front of the stage.\n * Decorative and inert (aria-hidden, no pointer events). Only padding, axes or\n * window edges may sit under it, never text or controls.\n */\nexport function LayeredSceneForeground({\n className,\n focus,\n focusMobile,\n priority = false,\n showOnPhone = false,\n sizes = '100vw',\n src,\n srcSet,\n style,\n ...props\n}: LayeredSceneForegroundProps): React.ReactElement {\n const wide = focus ?? { x: 0.5, y: 0.5 }\n const narrow = focusMobile ?? wide\n const focusStyle = {\n '--a63-art-plate-focus': `${percent(wide.x)} ${percent(wide.y)}`,\n '--a63-art-plate-focus-mobile': `${percent(narrow.x)} ${percent(narrow.y)}`,\n } as React.CSSProperties\n\n return (\n <div\n aria-hidden=\"true\"\n className={cn('a63-LayeredScene-foreground', className)}\n data-phone={showOnPhone ? 'show' : 'hide'}\n data-slot=\"layered-scene-foreground\"\n style={{ ...focusStyle, ...style }}\n {...props}\n >\n <img\n alt=\"\"\n decoding=\"async\"\n fetchPriority={priority ? 'high' : 'auto'}\n loading={priority ? 'eager' : 'lazy'}\n sizes={sizes}\n src={src}\n srcSet={srcSet}\n />\n </div>\n )\n}\n"]}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { Image } from './chunk-3LGXD3HE.js';
|
|
2
|
+
import { cn } from './chunk-AJLHJRK6.js';
|
|
3
|
+
import { artPlateContract } from '@atom63/ui-foundation';
|
|
4
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
5
|
+
|
|
6
|
+
var MOBILE_QUERY = "(max-width: 767px)";
|
|
7
|
+
var percent = (value) => `${Math.min(Math.max(value, 0), 1) * 100}%`;
|
|
8
|
+
function ArtPlate({
|
|
9
|
+
alt,
|
|
10
|
+
children,
|
|
11
|
+
className,
|
|
12
|
+
focus,
|
|
13
|
+
focusMobile,
|
|
14
|
+
parallax = false,
|
|
15
|
+
priority = false,
|
|
16
|
+
safeArea = artPlateContract.defaultSafeArea,
|
|
17
|
+
size = artPlateContract.defaultSize,
|
|
18
|
+
sizes = "100vw",
|
|
19
|
+
src,
|
|
20
|
+
srcMobile,
|
|
21
|
+
srcSet,
|
|
22
|
+
style,
|
|
23
|
+
tone = artPlateContract.defaultTone,
|
|
24
|
+
veil = artPlateContract.defaultVeil,
|
|
25
|
+
...props
|
|
26
|
+
}) {
|
|
27
|
+
const wide = focus ?? { x: 0.5, y: 0.5 };
|
|
28
|
+
const narrow = focusMobile ?? wide;
|
|
29
|
+
const focusStyle = {
|
|
30
|
+
"--a63-art-plate-focus": `${percent(wide.x)} ${percent(wide.y)}`,
|
|
31
|
+
"--a63-art-plate-focus-mobile": `${percent(narrow.x)} ${percent(narrow.y)}`
|
|
32
|
+
};
|
|
33
|
+
return /* @__PURE__ */ jsxs(
|
|
34
|
+
"div",
|
|
35
|
+
{
|
|
36
|
+
className: cn("a63-ArtPlate", className),
|
|
37
|
+
"data-parallax": parallax ? "" : void 0,
|
|
38
|
+
"data-safe-area": safeArea,
|
|
39
|
+
"data-size": size,
|
|
40
|
+
"data-slot": "art-plate",
|
|
41
|
+
"data-tone": tone,
|
|
42
|
+
"data-veil": veil,
|
|
43
|
+
style: { ...focusStyle, ...style },
|
|
44
|
+
...props,
|
|
45
|
+
children: [
|
|
46
|
+
/* @__PURE__ */ jsx("div", { className: "a63-ArtPlate-image", "data-slot": "art-plate-image", children: /* @__PURE__ */ jsx(
|
|
47
|
+
Image,
|
|
48
|
+
{
|
|
49
|
+
alt,
|
|
50
|
+
aspectRatio: "fill",
|
|
51
|
+
className: "h-full",
|
|
52
|
+
fetchPriority: priority ? "high" : "auto",
|
|
53
|
+
priority,
|
|
54
|
+
showSkeleton: false,
|
|
55
|
+
sizes,
|
|
56
|
+
sources: srcMobile ? [{ media: MOBILE_QUERY, srcSet: srcMobile }] : void 0,
|
|
57
|
+
src,
|
|
58
|
+
srcSet: srcSet ?? src
|
|
59
|
+
}
|
|
60
|
+
) }),
|
|
61
|
+
children === void 0 ? null : /* @__PURE__ */ jsx("div", { className: "a63-ArtPlate-content", "data-slot": "art-plate-content", children })
|
|
62
|
+
]
|
|
63
|
+
}
|
|
64
|
+
);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export { ArtPlate };
|
|
68
|
+
//# sourceMappingURL=chunk-HPUHI2YJ.js.map
|
|
69
|
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GAC3E;AAEA,EAAA,uBACE,IAAA;AAAA,IAAC,KAAA;AAAA,IAAA;AAAA,MACC,SAAA,EAAW,EAAA,CAAG,cAAA,EAAgB,SAAS,CAAA;AAAA,MACvC,eAAA,EAAe,WAAW,EAAA,GAAK,MAAA;AAAA,MAC/B,gBAAA,EAAgB,QAAA;AAAA,MAChB,WAAA,EAAW,IAAA;AAAA,MACX,WAAA,EAAU,WAAA;AAAA,MACV,WAAA,EAAW,IAAA;AAAA,MACX,WAAA,EAAW,IAAA;AAAA,MACX,KAAA,EAAO,EAAE,GAAG,UAAA,EAAY,GAAG,KAAA,EAAM;AAAA,MAChC,GAAG,KAAA;AAAA,MAEJ,QAAA,EAAA;AAAA,wBAAA,GAAA,CAAC,KAAA,EAAA,EAAI,SAAA,EAAU,oBAAA,EAAqB,WAAA,EAAU,iBAAA,EAC5C,QAAA,kBAAA,GAAA;AAAA,UAAC,KAAA;AAAA,UAAA;AAAA,YACC,GAAA;AAAA,YACA,WAAA,EAAY,MAAA;AAAA,YACZ,SAAA,EAAU,QAAA;AAAA,YACV,aAAA,EAAe,WAAW,MAAA,GAAS,MAAA;AAAA,YACnC,QAAA;AAAA,YACA,YAAA,EAAc,KAAA;AAAA,YACd,KAAA;AAAA,YACA,OAAA,EAAS,YAAY,CAAC,EAAE,OAAO,YAAA,EAAc,MAAA,EAAQ,SAAA,EAAW,CAAA,GAAI,MAAA;AAAA,YACpE,GAAA;AAAA,YACA,QAAQ,MAAA,IAAU;AAAA;AAAA,SACpB,EACF,CAAA;AAAA,QACC,QAAA,KAAa,SAAY,IAAA,mBACxB,GAAA,CAAC,SAAI,SAAA,EAAU,sBAAA,EAAuB,WAAA,EAAU,mBAAA,EAC7C,QAAA,EACH;AAAA;AAAA;AAAA,GAEJ;AAEJ","file":"chunk-HPUHI2YJ.js","sourcesContent":["import {\n type ArtPlateSafeArea,\n type ArtPlateSize,\n type ArtPlateTone,\n type ArtPlateVeil,\n artPlateContract,\n} from '@atom63/ui-foundation'\nimport type * as React from 'react'\n\nimport { cn } from '../../lib/cn'\nimport { Image } from '../../media/image'\n\n/** A focal point in the picture, 0–1 from the start (x) and the top (y) edge. */\nexport interface ArtPlateFocus {\n x: number\n y: number\n}\n\nexport type ArtPlateProps = Omit<React.ComponentProps<'div'>, 'children'> & {\n /** Describes the picture; pass `''` when it is purely decorative. */\n alt: string\n children?: React.ReactNode\n /** Point of the picture kept in frame on wide screens. Defaults to the centre. */\n focus?: ArtPlateFocus\n /** Point kept in frame below the medium breakpoint. Defaults to `focus`. */\n focusMobile?: ArtPlateFocus\n /** Slow scroll-driven drift of the picture (transform only, off under reduced motion). */\n parallax?: boolean\n /** Above the fold: load eagerly with high fetch priority, so the plate can be the LCP element. */\n priority?: boolean\n safeArea?: ArtPlateSafeArea\n size?: ArtPlateSize\n /** Layout width hint for `srcSet`. Defaults to `100vw`. */\n sizes?: string\n /** The wide picture. */\n src: string\n /** Width candidates of the wide picture, such as `plate-960.webp 960w, plate-1920.webp 1920w`. */\n srcSet?: string\n /** An art-directed picture for phones (a URL or a `srcSet`), used below the medium breakpoint. */\n srcMobile?: string\n tone?: ArtPlateTone\n veil?: ArtPlateVeil\n}\n\nconst MOBILE_QUERY = '(max-width: 767px)'\n\nconst percent = (value: number) => `${Math.min(Math.max(value, 0), 1) * 100}%`\n\n/**\n * ArtPlate is a full-bleed picture that owns its crop, with a content region in the picture's\n * calm area: a landing hero, a section band or a portfolio cover. It is not an inline figure\n * (use `Image`) or a card thumbnail (use `CardMedia`). Pair it with `LayeredScene` to float\n * product UI and a foreground cut-out over the picture.\n */\nexport function ArtPlate({\n alt,\n children,\n className,\n focus,\n focusMobile,\n parallax = false,\n priority = false,\n safeArea = artPlateContract.defaultSafeArea,\n size = artPlateContract.defaultSize,\n sizes = '100vw',\n src,\n srcMobile,\n srcSet,\n style,\n tone = artPlateContract.defaultTone,\n veil = artPlateContract.defaultVeil,\n ...props\n}: ArtPlateProps): React.ReactElement {\n const wide = focus ?? { x: 0.5, y: 0.5 }\n const narrow = focusMobile ?? wide\n const focusStyle = {\n '--a63-art-plate-focus': `${percent(wide.x)} ${percent(wide.y)}`,\n '--a63-art-plate-focus-mobile': `${percent(narrow.x)} ${percent(narrow.y)}`,\n } as React.CSSProperties\n\n return (\n <div\n className={cn('a63-ArtPlate', className)}\n data-parallax={parallax ? '' : undefined}\n data-safe-area={safeArea}\n data-size={size}\n data-slot=\"art-plate\"\n data-tone={tone}\n data-veil={veil}\n style={{ ...focusStyle, ...style }}\n {...props}\n >\n <div className=\"a63-ArtPlate-image\" data-slot=\"art-plate-image\">\n <Image\n alt={alt}\n aspectRatio=\"fill\"\n className=\"h-full\"\n fetchPriority={priority ? 'high' : 'auto'}\n priority={priority}\n showSkeleton={false}\n sizes={sizes}\n sources={srcMobile ? [{ media: MOBILE_QUERY, srcSet: srcMobile }] : undefined}\n src={src}\n srcSet={srcSet ?? src}\n />\n </div>\n {children === undefined ? null : (\n <div className=\"a63-ArtPlate-content\" data-slot=\"art-plate-content\">\n {children}\n </div>\n )}\n </div>\n )\n}\n"]}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { cn } from './chunk-AJLHJRK6.js';
|
|
2
|
+
import { segmentedControlContract } from '@atom63/ui-foundation';
|
|
3
|
+
import { Radio } from '@base-ui/react/radio';
|
|
4
|
+
import { RadioGroup } from '@base-ui/react/radio-group';
|
|
5
|
+
import * as React from 'react';
|
|
6
|
+
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
7
|
+
|
|
8
|
+
function SegmentedControl({
|
|
9
|
+
animateBackplate = true,
|
|
10
|
+
className,
|
|
11
|
+
defaultValue,
|
|
12
|
+
fullWidth,
|
|
13
|
+
items,
|
|
14
|
+
onValueChange,
|
|
15
|
+
size = segmentedControlContract.defaultSize,
|
|
16
|
+
tabClassName,
|
|
17
|
+
tone = segmentedControlContract.defaultTone,
|
|
18
|
+
value,
|
|
19
|
+
variant = segmentedControlContract.defaultVariant,
|
|
20
|
+
...props
|
|
21
|
+
}) {
|
|
22
|
+
const [uncontrolledValue, setUncontrolledValue] = React.useState(defaultValue);
|
|
23
|
+
const selected = value ?? uncontrolledValue;
|
|
24
|
+
const selectedIndex = items.findIndex((item) => item.value === selected);
|
|
25
|
+
const trackRef = React.useRef(null);
|
|
26
|
+
const [indicator, setIndicator] = React.useState(null);
|
|
27
|
+
React.useLayoutEffect(() => {
|
|
28
|
+
const track = trackRef.current;
|
|
29
|
+
if (!track) return;
|
|
30
|
+
const segments = () => track.querySelectorAll('[data-slot="segmented-control-item"]');
|
|
31
|
+
const measure = () => {
|
|
32
|
+
const segment = segments()[selectedIndex];
|
|
33
|
+
if (!segment) {
|
|
34
|
+
setIndicator(null);
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
37
|
+
const trackRect = track.getBoundingClientRect();
|
|
38
|
+
const rect = segment.getBoundingClientRect();
|
|
39
|
+
const left = rect.left - trackRect.left + track.scrollLeft - track.clientLeft;
|
|
40
|
+
setIndicator(
|
|
41
|
+
(current) => current?.left === left && current.width === rect.width && current.height === rect.height ? current : { height: rect.height, left, width: rect.width }
|
|
42
|
+
);
|
|
43
|
+
};
|
|
44
|
+
measure();
|
|
45
|
+
if (typeof ResizeObserver === "undefined") return;
|
|
46
|
+
const observer = new ResizeObserver(measure);
|
|
47
|
+
observer.observe(track);
|
|
48
|
+
for (const segment of segments()) observer.observe(segment);
|
|
49
|
+
return () => observer.disconnect();
|
|
50
|
+
}, [items, selectedIndex]);
|
|
51
|
+
return /* @__PURE__ */ jsx(
|
|
52
|
+
RadioGroup,
|
|
53
|
+
{
|
|
54
|
+
...props,
|
|
55
|
+
className: cn("a63-SegmentedControl", className),
|
|
56
|
+
"data-backplate-animation": animateBackplate ? "on" : "off",
|
|
57
|
+
"data-full": fullWidth || void 0,
|
|
58
|
+
"data-size": size,
|
|
59
|
+
"data-slot": "segmented-control",
|
|
60
|
+
"data-tone": tone,
|
|
61
|
+
"data-variant": variant,
|
|
62
|
+
onValueChange: (next) => {
|
|
63
|
+
if (next === selected) return;
|
|
64
|
+
if (value === void 0) setUncontrolledValue(next);
|
|
65
|
+
onValueChange?.(next);
|
|
66
|
+
},
|
|
67
|
+
defaultValue,
|
|
68
|
+
value,
|
|
69
|
+
children: /* @__PURE__ */ jsxs(
|
|
70
|
+
"div",
|
|
71
|
+
{
|
|
72
|
+
className: "a63-SegmentedControl-track",
|
|
73
|
+
"data-slot": "segmented-control-track",
|
|
74
|
+
ref: trackRef,
|
|
75
|
+
children: [
|
|
76
|
+
items.map((item) => /* @__PURE__ */ jsx(
|
|
77
|
+
Radio.Root,
|
|
78
|
+
{
|
|
79
|
+
"aria-label": item.label,
|
|
80
|
+
className: cn("a63-SegmentedControl-item", tabClassName),
|
|
81
|
+
"data-slot": "segmented-control-item",
|
|
82
|
+
disabled: item.disabled,
|
|
83
|
+
nativeButton: true,
|
|
84
|
+
render: /* @__PURE__ */ jsx("button", { type: "button" }),
|
|
85
|
+
title: item.label,
|
|
86
|
+
value: item.value,
|
|
87
|
+
children: variant === "icon" ? /* @__PURE__ */ jsx("span", { className: "a63-SegmentedControl-icon", "data-slot": "segmented-control-icon", children: item.icon ?? item.label }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
88
|
+
item.icon ? /* @__PURE__ */ jsx("span", { className: "a63-SegmentedControl-icon", "data-slot": "segmented-control-icon", children: item.icon }) : null,
|
|
89
|
+
/* @__PURE__ */ jsx("span", { className: "a63-SegmentedControl-label", "data-slot": "segmented-control-label", children: item.label })
|
|
90
|
+
] })
|
|
91
|
+
},
|
|
92
|
+
item.value
|
|
93
|
+
)),
|
|
94
|
+
/* @__PURE__ */ jsx(
|
|
95
|
+
"span",
|
|
96
|
+
{
|
|
97
|
+
"aria-hidden": true,
|
|
98
|
+
className: "a63-SegmentedControl-indicator",
|
|
99
|
+
"data-backplate-animation": animateBackplate ? "on" : "off",
|
|
100
|
+
"data-slot": "segmented-control-indicator",
|
|
101
|
+
hidden: !indicator,
|
|
102
|
+
style: indicator ? {
|
|
103
|
+
"--segment-indicator-height": `${indicator.height}px`,
|
|
104
|
+
"--segment-indicator-left": `${indicator.left}px`,
|
|
105
|
+
"--segment-indicator-width": `${indicator.width}px`
|
|
106
|
+
} : void 0
|
|
107
|
+
}
|
|
108
|
+
)
|
|
109
|
+
]
|
|
110
|
+
}
|
|
111
|
+
)
|
|
112
|
+
}
|
|
113
|
+
);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
export { SegmentedControl };
|
|
117
|
+
//# sourceMappingURL=chunk-QU33S646.js.map
|
|
118
|
+
//# sourceMappingURL=chunk-QU33S646.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/segmented-control/segmented-control.tsx"],"names":[],"mappings":";;;;;;;AA8DO,SAAS,gBAAA,CAAiB;AAAA,EAC/B,gBAAA,GAAmB,IAAA;AAAA,EACnB,SAAA;AAAA,EACA,YAAA;AAAA,EACA,SAAA;AAAA,EACA,KAAA;AAAA,EACA,aAAA;AAAA,EACA,OAAO,wBAAA,CAAyB,WAAA;AAAA,EAChC,YAAA;AAAA,EACA,OAAO,wBAAA,CAAyB,WAAA;AAAA,EAChC,KAAA;AAAA,EACA,UAAU,wBAAA,CAAyB,cAAA;AAAA,EACnC,GAAG;AACL,CAAA,EAA8C;AAG5C,EAAA,MAAM,CAAC,iBAAA,EAAmB,oBAAoB,CAAA,GAAU,eAAS,YAAY,CAAA;AAC7E,EAAA,MAAM,WAAW,KAAA,IAAS,iBAAA;AAC1B,EAAA,MAAM,gBAAgB,KAAA,CAAM,SAAA,CAAU,CAAA,IAAA,KAAQ,IAAA,CAAK,UAAU,QAAQ,CAAA;AACrE,EAAA,MAAM,QAAA,GAAiB,aAAuB,IAAI,CAAA;AAClD,EAAA,MAAM,CAAC,SAAA,EAAW,YAAY,CAAA,GAAU,eAA8B,IAAI,CAAA;AAK1E,EAAM,sBAAgB,MAAM;AAC1B,IAAA,MAAM,QAAQ,QAAA,CAAS,OAAA;AACvB,IAAA,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AA,EACnD,QAAA,EAAA,IAAA,CAAK,IAAA,IAAQ,IAAA,CAAK,KAAA,EACrB,oBAEA,IAAA,CAAA,QAAA,EAAA,EACG,QAAA,EAAA;AAAA,kBAAA,IAAA,CAAK,IAAA,uBACH,MAAA,EAAA,EAAK,SAAA,EAAU,6BAA4B,WAAA,EAAU,wBAAA,EACnD,QAAA,EAAA,IAAA,CAAK,IAAA,EACR,CAAA,GACE,IAAA;AAAA,sCACH,MAAA,EAAA,EAAK,SAAA,EAAU,8BAA6B,WAAA,EAAU,yBAAA,EACpD,eAAK,KAAA,EACR;AAAA,iBAAA,EACF;AAAA,eAAA;AAAA,cApBG,IAAA,CAAK;AAAA,aAuBb,CAAA;AAAA,4BACD,GAAA;AAAA,cAAC,MAAA;AAAA,cAAA;AAAA,gBACC,aAAA,EAAW,IAAA;AAAA,gBACX,SAAA,EAAU,gCAAA;AAAA,gBACV,0BAAA,EAA0B,mBAAmB,IAAA,GAAO,KAAA;AAAA,gBACpD,WAAA,EAAU,6BAAA;AAAA,gBACV,QAAQ,CAAC,SAAA;AAAA,gBACT,OACE,SAAA,GACK;AAAA,kBACC,4BAAA,EAA8B,CAAA,EAAG,SAAA,CAAU,MAAM,CAAA,EAAA,CAAA;AAAA,kBACjD,0BAAA,EAA4B,CAAA,EAAG,SAAA,CAAU,IAAI,CAAA,EAAA,CAAA;AAAA,kBAC7C,2BAAA,EAA6B,CAAA,EAAG,SAAA,CAAU,KAAK,CAAA,EAAA;AAAA,iBACjD,GACA;AAAA;AAAA;AAER;AAAA;AAAA;AACF;AAAA,GACF;AAEJ","file":"chunk-QU33S646.js","sourcesContent":["'use client'\n\nimport {\n type SegmentedControlSize,\n type SegmentedControlTone,\n type SegmentedControlVariant,\n segmentedControlContract,\n} from '@atom63/ui-foundation'\nimport { Radio } from '@base-ui/react/radio'\nimport { RadioGroup } from '@base-ui/react/radio-group'\nimport * as React from 'react'\n\nimport { cn } from '../../lib/cn'\n\nexport interface SegmentedControlItem {\n disabled?: boolean\n icon?: React.ReactNode\n label: string\n value: string\n}\n\nexport interface SegmentedControlProps extends Omit<\n RadioGroup.Props<string>,\n 'children' | 'className' | 'defaultValue' | 'onValueChange' | 'value'\n> {\n /** Animate the sliding indicator between segments (default true). */\n animateBackplate?: boolean\n /** The group's accessible name, when no visible label names it through `aria-labelledby`. */\n 'aria-label'?: string\n className?: string\n /** The initially selected segment when the control is uncontrolled. */\n defaultValue?: string\n /** Stretch the track to fill its container with equal-width segments. */\n fullWidth?: boolean\n items: SegmentedControlItem[]\n onValueChange?: (value: string) => void\n ref?: React.Ref<HTMLDivElement>\n size?: SegmentedControlSize\n /** Per-segment class escape hatch merged onto every segment. */\n tabClassName?: string\n tone?: SegmentedControlTone\n /** The selected segment. Leave it out, with `defaultValue`, for an\n * uncontrolled control. */\n value?: string\n variant?: SegmentedControlVariant\n}\n\ninterface IndicatorBox {\n height: number\n left: number\n width: number\n}\n\n/*\n * SegmentedControl — a single-choice segmented track with a sliding indicator.\n * It is a radio group (Base UI RadioGroup): the root is the radiogroup and takes\n * the group's name (`aria-label` or `aria-labelledby`), each segment is a radio,\n * Tab enters at the selected segment and the arrow keys move and select. Use Tabs\n * when the choices switch content panels. Track/pill/text read the segment\n * contract (--a63-segment-*) with muted-track / overlay-pill fallbacks so light\n * mode keeps contrast. `tone` mirrors the Toggle axis (neutral | accent).\n */\nexport function SegmentedControl({\n animateBackplate = true,\n className,\n defaultValue,\n fullWidth,\n items,\n onValueChange,\n size = segmentedControlContract.defaultSize,\n tabClassName,\n tone = segmentedControlContract.defaultTone,\n value,\n variant = segmentedControlContract.defaultVariant,\n ...props\n}: SegmentedControlProps): React.ReactElement {\n /* Base UI owns the selection; this mirrors it when uncontrolled, so the\n indicator can follow it. */\n const [uncontrolledValue, setUncontrolledValue] = React.useState(defaultValue)\n const selected = value ?? uncontrolledValue\n const selectedIndex = items.findIndex(item => item.value === selected)\n const trackRef = React.useRef<HTMLDivElement>(null)\n const [indicator, setIndicator] = React.useState<IndicatorBox | null>(null)\n\n /* Measure the selected segment against the track, as Base UI's tab indicator\n does, so the plate covers it. The plate stays hidden until it is measured,\n so it does not slide in on mount. */\n React.useLayoutEffect(() => {\n const track = trackRef.current\n if (!track) return\n const segments = () =>\n track.querySelectorAll<HTMLElement>('[data-slot=\"segmented-control-item\"]')\n const measure = () => {\n const segment = segments()[selectedIndex]\n if (!segment) {\n setIndicator(null)\n return\n }\n const trackRect = track.getBoundingClientRect()\n const rect = segment.getBoundingClientRect()\n const left = rect.left - trackRect.left + track.scrollLeft - track.clientLeft\n setIndicator(current =>\n current?.left === left && current.width === rect.width && current.height === rect.height\n ? current\n : { height: rect.height, left, width: rect.width }\n )\n }\n measure()\n if (typeof ResizeObserver === 'undefined') return\n const observer = new ResizeObserver(measure)\n observer.observe(track)\n for (const segment of segments()) observer.observe(segment)\n return () => observer.disconnect()\n }, [items, selectedIndex])\n\n return (\n <RadioGroup<string>\n {...props}\n className={cn('a63-SegmentedControl', className)}\n data-backplate-animation={animateBackplate ? 'on' : 'off'}\n data-full={fullWidth || undefined}\n data-size={size}\n data-slot=\"segmented-control\"\n data-tone={tone}\n data-variant={variant}\n onValueChange={next => {\n if (next === selected) return\n if (value === undefined) setUncontrolledValue(next)\n onValueChange?.(next)\n }}\n defaultValue={defaultValue}\n value={value}\n >\n <div\n className=\"a63-SegmentedControl-track\"\n data-slot=\"segmented-control-track\"\n ref={trackRef}\n >\n {items.map(item => (\n <Radio.Root\n aria-label={item.label}\n className={cn('a63-SegmentedControl-item', tabClassName)}\n data-slot=\"segmented-control-item\"\n disabled={item.disabled}\n key={item.value}\n nativeButton\n render={<button type=\"button\" />}\n title={item.label}\n value={item.value}\n >\n {variant === 'icon' ? (\n <span className=\"a63-SegmentedControl-icon\" data-slot=\"segmented-control-icon\">\n {item.icon ?? item.label}\n </span>\n ) : (\n <>\n {item.icon ? (\n <span className=\"a63-SegmentedControl-icon\" data-slot=\"segmented-control-icon\">\n {item.icon}\n </span>\n ) : null}\n <span className=\"a63-SegmentedControl-label\" data-slot=\"segmented-control-label\">\n {item.label}\n </span>\n </>\n )}\n </Radio.Root>\n ))}\n <span\n aria-hidden\n className=\"a63-SegmentedControl-indicator\"\n data-backplate-animation={animateBackplate ? 'on' : 'off'}\n data-slot=\"segmented-control-indicator\"\n hidden={!indicator}\n style={\n indicator\n ? ({\n '--segment-indicator-height': `${indicator.height}px`,\n '--segment-indicator-left': `${indicator.left}px`,\n '--segment-indicator-width': `${indicator.width}px`,\n } as React.CSSProperties)\n : undefined\n }\n />\n </div>\n </RadioGroup>\n )\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { LayeredScene, LayeredSceneContent, LayeredSceneForeground, LayeredScenePlate, LayeredSceneStage } from '../../chunk-FHL2NLXP.js';
|
|
2
|
+
import '../../chunk-HPUHI2YJ.js';
|
|
3
|
+
import '../../chunk-3LGXD3HE.js';
|
|
4
|
+
import '../../chunk-6VV4EBOO.js';
|
|
5
|
+
import '../../chunk-AJLHJRK6.js';
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
|
7
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Accordion as Accordion$1 } from '@base-ui/react/accordion';
|
|
2
2
|
import * as React$1 from 'react';
|
|
3
3
|
import React__default, { RefObject, ReactElement, ReactNode, ComponentPropsWithoutRef, ComponentProps } from 'react';
|
|
4
|
-
import { AlertVariant, AmountSize, AmountFraction, AnimatedCheckVariant, AutocompleteSize, AutocompleteSizeAlias, AvatarRing, AvatarShape, AvatarSize, AvatarSizeAlias, BadgeVariant, BadgeSize, BadgeDotColor, SeparatorVariant, ButtonGroupOrientation, ButtonGroupSize, ButtonGroupSizeAlias, CarouselDotShape, CarouselDotTone, TextareaSize, InputSize, InputVariant, InputGroupAlign, ChatComposerLayout, ChatComposerStatus, ChatMessageRole, ChatMessageAppearance, ChatStepStatus, CheckboxIndicator, CheckboxSize, ConnectedPanelAlign, CopyButtonSize, CopyButtonVariant, DrawerDirection, DrawerFooterVariant, EmptyMediaVariant, FeedbackStateSize, FeedbackStateKind, FieldOrientation, FieldLegendVariant, FrameVariant, FrameTray, FramePanelSurface, FrameBorder, ItemVariant, ItemSize, ItemSizeAlias, ItemTone, ItemGroupVariant, ItemGroupSurface, ItemMediaVariant, KbdSize, LoadMoreTriggerState, LoadMoreTriggerVariant, MessageDirection, MessagePosition, MessageDeliveryState, ProgressTone, ProgressiveBlurPosition, RadioIndicator, RadioSize, RatingSize, ResizableVariant, SegmentedControlSize, SegmentedControlTone, SegmentedControlVariant, SheetSide as SheetSide$1, SheetVariant as SheetVariant$1, SheetFooterVariant, SidebarSide, SidebarVariant, SidebarCollapsible, SidebarState, SidebarMenuButtonVariant, SidebarMenuButtonSize, SidebarMenuButtonTone, SidebarMenuSubButtonSize, SidebarNavTreeTone, SliderTone, SwitchSize, TableSize, TableSizeAlias, TableTone, TableVariant, TableStickyEdge, TabsSize, TabsSizeAlias, TabsVariant, TextTickerVariant, ToasterVariant, ToggleSize, ToggleTone, ToggleGroupVariant, UIEnvironment, Mode, Theme } from '@atom63/ui-foundation';
|
|
4
|
+
import { AlertVariant, AmountSize, AmountFraction, AnimatedCheckVariant, ArtPlateSafeArea, ArtPlateSize, ArtPlateTone, ArtPlateVeil, AutocompleteSize, AutocompleteSizeAlias, AvatarRing, AvatarShape, AvatarSize, AvatarSizeAlias, BadgeVariant, BadgeSize, BadgeDotColor, SeparatorVariant, ButtonGroupOrientation, ButtonGroupSize, ButtonGroupSizeAlias, CarouselDotShape, CarouselDotTone, TextareaSize, InputSize, InputVariant, InputGroupAlign, ChatComposerLayout, ChatComposerStatus, ChatMessageRole, ChatMessageAppearance, ChatStepStatus, CheckboxIndicator, CheckboxSize, ConnectedPanelAlign, CopyButtonSize, CopyButtonVariant, DrawerDirection, DrawerFooterVariant, EmptyMediaVariant, FeedbackStateSize, FeedbackStateKind, FieldOrientation, FieldLegendVariant, FrameVariant, FrameTray, FramePanelSurface, FrameBorder, ItemVariant, ItemSize, ItemSizeAlias, ItemTone, ItemGroupVariant, ItemGroupSurface, ItemMediaVariant, KbdSize, LayeredScenePlacement, LayeredSceneWidth, LoadMoreTriggerState, LoadMoreTriggerVariant, MessageDirection, MessagePosition, MessageDeliveryState, ProgressTone, ProgressiveBlurPosition, RadioIndicator, RadioSize, RatingSize, ResizableVariant, SegmentedControlSize, SegmentedControlTone, SegmentedControlVariant, SheetSide as SheetSide$1, SheetVariant as SheetVariant$1, SheetFooterVariant, SidebarSide, SidebarVariant, SidebarCollapsible, SidebarState, SidebarMenuButtonVariant, SidebarMenuButtonSize, SidebarMenuButtonTone, SidebarMenuSubButtonSize, SidebarNavTreeTone, SliderTone, SwitchSize, TableSize, TableSizeAlias, TableTone, TableVariant, TableStickyEdge, TabsSize, TabsSizeAlias, TabsVariant, TextTickerVariant, ToasterVariant, ToggleSize, ToggleTone, ToggleGroupVariant, UIEnvironment, Mode, Theme } from '@atom63/ui-foundation';
|
|
5
5
|
export { AvatarSize, Density, DesignLanguage, DestinationKind, DialogFooterVariant, DialogMobilePlacement, DialogSize, EmptyMediaVariant, FeedbackStateKind, FeedbackStateSize, FieldOrientation, InputGroupAlign, LoadMoreTriggerState, LoadMoreTriggerVariant, Mode, PointerInput, ProgressiveBlurPosition, Theme, UIEnvironment } from '@atom63/ui-foundation';
|
|
6
6
|
import { T as TooltipPopup } from './index-DlcaeyJS.js';
|
|
7
7
|
export { A as ATOM63_FLYOUT_TRANSITION, a as ATOM63_FLYOUT_TRANSITION_CSS, b as ATOM63_MOTION_EASE, c as ATOM63_MOTION_EASE_CSS, d as ATOM63_OVERLAY_MOTION_DURATION_CSS, e as ATOM63_OVERLAY_MOTION_DURATION_MS, f as ATOM63_OVERLAY_MOTION_EASE, g as ATOM63_OVERLAY_MOTION_EASE_CSS, h as AlertDialog, i as AlertDialogAction, j as AlertDialogBackdrop, k as AlertDialogCancel, l as AlertDialogClose, m as AlertDialogContent, n as AlertDialogCreateHandle, o as AlertDialogDescription, p as AlertDialogFooter, q as AlertDialogHeader, r as AlertDialogMedia, j as AlertDialogOverlay, m as AlertDialogPopup, s as AlertDialogPortal, t as AlertDialogTitle, u as AlertDialogTrigger, v as AlertDialogViewport, B as ButtonGroupProvider, C as Card, w as CardAction, x as CardContent, y as CardContentProps, z as CardCursorLabel, D as CardDescription, E as CardDescriptionProps, F as CardFooter, G as CardFooterProps, H as CardHeader, I as CardHeaderProps, J as CardLabel, K as CardMedia, L as CardMediaOverlay, M as CardMediaOverlayBottom, N as CardMediaOverlayIconButton, O as CardMediaOverlayImage, P as CardMediaOverlayProps, Q as CardMediaOverlayScrim, R as CardMediaOverlayTopRight, S as CardMediaProps, U as CardProps, V as CardResponsivePadding, W as CardTags, X as CardTitle, Y as CardTitleProps, Z as Command, _ as CommandCollection, $ as CommandCreateHandle, a0 as CommandDialog, a1 as CommandDialogBackdrop, a2 as CommandDialogPopup, a3 as CommandDialogPortal, a4 as CommandDialogTrigger, a5 as CommandDialogViewport, a6 as CommandEmpty, a7 as CommandFooter, a8 as CommandGroup, a9 as CommandGroupLabel, aa as CommandInput, ab as CommandInputProps, ac as CommandItem, ad as CommandList, ae as CommandPanel, af as CommandSeparator, ag as CommandShortcut, ah as Dialog, ai as DialogBackdrop, aj as DialogClose, ak as DialogContent, al as DialogCreateHandle, am as DialogDescription, an as DialogFooter, ao as DialogHeader, ai as DialogOverlay, ap as DialogPanel, ak as DialogPopup, aq as DialogPortal, ar as DialogTitle, as as DialogTrigger, at as DialogViewport, au as NavigationMenu, av as NavigationMenuContent, aw as NavigationMenuIndicator, ax as NavigationMenuItem, ay as NavigationMenuLink, az as NavigationMenuList, aA as NavigationMenuPositioner, aB as NavigationMenuPositionerProps, aC as NavigationMenuProps, aD as NavigationMenuTrigger, aE as NavigationMenuViewport, aF as ReactRendererConformanceEvidence, aG as ReactVerifiedContractId, aH as ScrollableList, aI as ScrollableListProps, aJ as Select, aK as SelectContent, aL as SelectGroup, aM as SelectGroupLabel, aN as SelectItem, aO as SelectPopup, aP as SelectPopupProps, aQ as SelectSeparator, aR as SelectTrigger, aS as SelectTriggerProps, aT as SelectValue, aU as Tooltip, aV as TooltipContentProps, aW as TooltipCreateHandle, aX as TooltipPopupProps, aY as TooltipProvider, aZ as TooltipTrigger, a_ as cardLinkClassName, a$ as getReactRendererConformance, b0 as navigationMenuTriggerStyle, b1 as reactRendererConformance, b2 as scrollableListControlClassNames, b3 as selectTriggerDefaultClassName, b4 as useButtonGroupContext } from './index-DlcaeyJS.js';
|
|
@@ -36,11 +36,11 @@ import { Radio as Radio$1 } from '@base-ui/react/radio';
|
|
|
36
36
|
import { RadioGroup as RadioGroup$1 } from '@base-ui/react/radio-group';
|
|
37
37
|
import * as ResizablePrimitive from 'react-resizable-panels';
|
|
38
38
|
import { ScrollArea as ScrollArea$1 } from '@base-ui/react/scroll-area';
|
|
39
|
-
import { Tabs as Tabs$1 } from '@base-ui/react/tabs';
|
|
40
39
|
import { Dialog } from '@base-ui/react/dialog';
|
|
41
40
|
export { Dialog as DialogPrimitive, Dialog as SheetPrimitive } from '@base-ui/react/dialog';
|
|
42
41
|
import { Slider as Slider$1 } from '@base-ui/react/slider';
|
|
43
42
|
import { Switch as Switch$1 } from '@base-ui/react/switch';
|
|
43
|
+
import { Tabs as Tabs$1 } from '@base-ui/react/tabs';
|
|
44
44
|
import { ToasterProps as ToasterProps$1 } from 'sonner';
|
|
45
45
|
export { toast } from 'sonner';
|
|
46
46
|
import { Toggle as Toggle$1 } from '@base-ui/react/toggle';
|
|
@@ -113,6 +113,44 @@ interface AnimatedCheckProps extends Omit<React$1.ComponentProps<'svg'>, 'animat
|
|
|
113
113
|
}
|
|
114
114
|
declare function AnimatedCheck({ variant, animate, className, ...props }: AnimatedCheckProps): React$1.ReactElement;
|
|
115
115
|
|
|
116
|
+
/** A focal point in the picture, 0–1 from the start (x) and the top (y) edge. */
|
|
117
|
+
interface ArtPlateFocus {
|
|
118
|
+
x: number;
|
|
119
|
+
y: number;
|
|
120
|
+
}
|
|
121
|
+
type ArtPlateProps = Omit<React$1.ComponentProps<'div'>, 'children'> & {
|
|
122
|
+
/** Describes the picture; pass `''` when it is purely decorative. */
|
|
123
|
+
alt: string;
|
|
124
|
+
children?: React$1.ReactNode;
|
|
125
|
+
/** Point of the picture kept in frame on wide screens. Defaults to the centre. */
|
|
126
|
+
focus?: ArtPlateFocus;
|
|
127
|
+
/** Point kept in frame below the medium breakpoint. Defaults to `focus`. */
|
|
128
|
+
focusMobile?: ArtPlateFocus;
|
|
129
|
+
/** Slow scroll-driven drift of the picture (transform only, off under reduced motion). */
|
|
130
|
+
parallax?: boolean;
|
|
131
|
+
/** Above the fold: load eagerly with high fetch priority, so the plate can be the LCP element. */
|
|
132
|
+
priority?: boolean;
|
|
133
|
+
safeArea?: ArtPlateSafeArea;
|
|
134
|
+
size?: ArtPlateSize;
|
|
135
|
+
/** Layout width hint for `srcSet`. Defaults to `100vw`. */
|
|
136
|
+
sizes?: string;
|
|
137
|
+
/** The wide picture. */
|
|
138
|
+
src: string;
|
|
139
|
+
/** Width candidates of the wide picture, such as `plate-960.webp 960w, plate-1920.webp 1920w`. */
|
|
140
|
+
srcSet?: string;
|
|
141
|
+
/** An art-directed picture for phones (a URL or a `srcSet`), used below the medium breakpoint. */
|
|
142
|
+
srcMobile?: string;
|
|
143
|
+
tone?: ArtPlateTone;
|
|
144
|
+
veil?: ArtPlateVeil;
|
|
145
|
+
};
|
|
146
|
+
/**
|
|
147
|
+
* ArtPlate is a full-bleed picture that owns its crop, with a content region in the picture's
|
|
148
|
+
* calm area: a landing hero, a section band or a portfolio cover. It is not an inline figure
|
|
149
|
+
* (use `Image`) or a card thumbnail (use `CardMedia`). Pair it with `LayeredScene` to float
|
|
150
|
+
* product UI and a foreground cut-out over the picture.
|
|
151
|
+
*/
|
|
152
|
+
declare function ArtPlate({ alt, children, className, focus, focusMobile, parallax, priority, safeArea, size, sizes, src, srcMobile, srcSet, style, tone, veil, ...props }: ArtPlateProps): React$1.ReactElement;
|
|
153
|
+
|
|
116
154
|
declare const Autocomplete: typeof Autocomplete$1.Root;
|
|
117
155
|
interface AutocompleteInputProps extends Omit<Autocomplete$1.Input.Props, 'size'> {
|
|
118
156
|
showTrigger?: boolean;
|
|
@@ -850,6 +888,49 @@ type KbdProps = React$1.ComponentProps<'kbd'> & {
|
|
|
850
888
|
declare function Kbd({ className, size, ...props }: KbdProps): React$1.ReactElement;
|
|
851
889
|
declare function KbdGroup({ className, ...props }: React$1.ComponentProps<'div'>): React$1.ReactElement;
|
|
852
890
|
|
|
891
|
+
type LayeredSceneProps = React$1.ComponentProps<'div'> & {
|
|
892
|
+
/** Where the stage sits, and how the copy aligns: centred, or docked to the inline end or start. */
|
|
893
|
+
placement?: LayeredScenePlacement;
|
|
894
|
+
/** Stage width from the medium breakpoint up. */
|
|
895
|
+
width?: LayeredSceneWidth;
|
|
896
|
+
};
|
|
897
|
+
/**
|
|
898
|
+
* LayeredScene stacks three layers in one box: a plate at the back
|
|
899
|
+
* (`LayeredScenePlate`, an ArtPlate), the copy (`LayeredSceneContent`) and live
|
|
900
|
+
* product UI (`LayeredSceneStage`) in the middle, and an optional inert
|
|
901
|
+
* cut-out of the plate in front (`LayeredSceneForeground`). It is for a landing
|
|
902
|
+
* or portfolio hero where the interface sits inside the picture, not for a
|
|
903
|
+
* plain image with text on it (use ArtPlate alone).
|
|
904
|
+
*/
|
|
905
|
+
declare function LayeredScene({ className, placement, width, ...props }: LayeredSceneProps): React$1.ReactElement;
|
|
906
|
+
type LayeredScenePlateProps = Omit<ArtPlateProps, 'children'>;
|
|
907
|
+
/** The plate: an ArtPlate that spans the whole scene. Give the copy to LayeredSceneContent. */
|
|
908
|
+
declare function LayeredScenePlate({ className, ...props }: LayeredScenePlateProps): React$1.ReactElement;
|
|
909
|
+
/** The copy above the stage: badge, headline, subhead and actions. */
|
|
910
|
+
declare function LayeredSceneContent({ className, ...props }: React$1.ComponentProps<'div'>): React$1.ReactElement;
|
|
911
|
+
/** The stage: live product UI, such as a Frame, docked at the bottom of the scene. */
|
|
912
|
+
declare function LayeredSceneStage({ className, ...props }: React$1.ComponentProps<'div'>): React$1.ReactElement;
|
|
913
|
+
type LayeredSceneForegroundProps = Omit<React$1.ComponentProps<'div'>, 'aria-hidden' | 'children'> & {
|
|
914
|
+
/** Same focal point as the plate, so the cut-out lines up with it. */
|
|
915
|
+
focus?: ArtPlateFocus;
|
|
916
|
+
/** Same phone focal point as the plate. */
|
|
917
|
+
focusMobile?: ArtPlateFocus;
|
|
918
|
+
/** Load eagerly, as for the hero plate. */
|
|
919
|
+
priority?: boolean;
|
|
920
|
+
/** Keep the cut-out below the medium breakpoint too. By default phones drop it. */
|
|
921
|
+
showOnPhone?: boolean;
|
|
922
|
+
sizes?: string;
|
|
923
|
+
/** A transparent cut-out of the plate, at the plate's size. */
|
|
924
|
+
src: string;
|
|
925
|
+
srcSet?: string;
|
|
926
|
+
};
|
|
927
|
+
/**
|
|
928
|
+
* The foreground: a transparent cut-out of the plate in front of the stage.
|
|
929
|
+
* Decorative and inert (aria-hidden, no pointer events). Only padding, axes or
|
|
930
|
+
* window edges may sit under it, never text or controls.
|
|
931
|
+
*/
|
|
932
|
+
declare function LayeredSceneForeground({ className, focus, focusMobile, priority, showOnPhone, sizes, src, srcSet, style, ...props }: LayeredSceneForegroundProps): React$1.ReactElement;
|
|
933
|
+
|
|
853
934
|
interface LoadMoreTriggerProps {
|
|
854
935
|
children?: ReactNode;
|
|
855
936
|
className?: string;
|
|
@@ -1122,9 +1203,11 @@ interface SegmentedControlItem {
|
|
|
1122
1203
|
label: string;
|
|
1123
1204
|
value: string;
|
|
1124
1205
|
}
|
|
1125
|
-
interface SegmentedControlProps extends Omit<
|
|
1206
|
+
interface SegmentedControlProps extends Omit<RadioGroup$1.Props<string>, 'children' | 'className' | 'defaultValue' | 'onValueChange' | 'value'> {
|
|
1126
1207
|
/** Animate the sliding indicator between segments (default true). */
|
|
1127
1208
|
animateBackplate?: boolean;
|
|
1209
|
+
/** The group's accessible name, when no visible label names it through `aria-labelledby`. */
|
|
1210
|
+
'aria-label'?: string;
|
|
1128
1211
|
className?: string;
|
|
1129
1212
|
/** The initially selected segment when the control is uncontrolled. */
|
|
1130
1213
|
defaultValue?: string;
|
|
@@ -1134,7 +1217,7 @@ interface SegmentedControlProps extends Omit<Tabs$1.Root.Props, 'children' | 'cl
|
|
|
1134
1217
|
onValueChange?: (value: string) => void;
|
|
1135
1218
|
ref?: React$1.Ref<HTMLDivElement>;
|
|
1136
1219
|
size?: SegmentedControlSize;
|
|
1137
|
-
/** Per-segment class escape hatch merged onto every
|
|
1220
|
+
/** Per-segment class escape hatch merged onto every segment. */
|
|
1138
1221
|
tabClassName?: string;
|
|
1139
1222
|
tone?: SegmentedControlTone;
|
|
1140
1223
|
/** The selected segment. Leave it out, with `defaultValue`, for an
|
|
@@ -1589,5 +1672,5 @@ interface Atom63ThemeProps extends useRender.ComponentProps<'div'> {
|
|
|
1589
1672
|
}
|
|
1590
1673
|
declare function Atom63Theme({ className, mode, render, theme, ...props }: Atom63ThemeProps): React$1.ReactElement;
|
|
1591
1674
|
|
|
1592
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertAction, AlertDescription, AlertIcon, AlertTitle, Amount, AnimatedCheck, Atom63Theme, Autocomplete, AutocompleteClear, AutocompleteCollection, AutocompleteEmpty, AutocompleteGroup, AutocompleteGroupLabel, AutocompleteInput, AutocompleteItem, AutocompleteList, AutocompletePopup, AutocompleteRow, AutocompleteSeparator, AutocompleteStatus, AutocompleteTrigger, AutocompleteValue, Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage, Badge, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, ButtonProps, Carousel, CarouselContent, CarouselDots, CarouselItem, CarouselNext, CarouselPrevious, ChatComposer, ChatMessage, ChatMessageList, ChatStep, ChatSteps, ChatTypingIndicator, Checkbox, Collapsible, CollapsibleContent, CollapsibleIndicator, CollapsibleTrigger, ConnectedPanel, ConnectedPanelBody, ConnectedPanelContent, ConnectedPanelDescription, ConnectedPanelFooter, ConnectedPanelHeader, ConnectedPanelTitle, ConnectedPanelTrigger, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, CopyButton, CopyButtonFeedback, Drawer, DrawerBody, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHandle, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Empty, EmptyContent, EmptyDescription, EmptyErrorDetail, EmptyHeader, EmptyMedia, EmptyTitle, FeedbackState, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, Frame, FrameDescription, FrameFooter, FrameHeader, FramePanel, FrameTitle, HoverCard, HoverCardContent, HoverCardTrigger, Input, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle, Kbd, KbdGroup, Label, LoadMoreTrigger, Marquee, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, Message, MessageEvent, MessageList, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, PanelSettingButton, Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverDescription, PopoverHeader, PopoverPortal, PopoverTitle, PopoverTrigger, PortalContainerProvider, PreviewCard, PreviewCardPopup, PreviewCardTrigger, Progress, ProgressIndicator, ProgressLabel, ProgressTrack, ProgressValue, ProgressiveBlur, Radio, RadioGroup, Radio as RadioGroupItem, Rating, ResizableHandle, ResizablePanel, ResizablePanelGroup, ScrollArea, ScrollBar, SearchField, SegmentedControl, Separator, Sheet, SheetBackdrop, SheetClose, SheetPopup as SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetBackdrop as SheetOverlay, SheetPanel, SheetPopup, SheetPortal, SheetTitle, SheetTrigger, SheetViewport, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarNavCollapsibleItem, SidebarNavGroup, SidebarNavLinkItem, SidebarNavSubLinkItem, SidebarNavSubList, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, Slider, SliderValue, Spinner, Switch, TINT_MAX_LUMINANCE, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsPanel as TabsContent, TabsList, TabsPanel, TabsTab, TabsTab as TabsTrigger, TextTicker, Textarea, Toaster, Toggle, ToggleGroup, ToggleGroupItem, ToggleGroupSeparator, TooltipPopup as TooltipContent, TooltipPopup, UIProvider, capColorForContrast, colorCacheKey, extractColorFromImage, extractColorFromLoadedImage, getCachedColor, loadAndExtractColor, useAutocompleteFilter, useCardCursor, useCarousel, useExtractColor, useFormField, usePortalContainer, useSidebar, useUIEnvironment };
|
|
1593
|
-
export type { AccordionProps, AccordionTriggerProps, AlertProps, AmountProps, AnimatedCheckProps, Atom63ThemeMode, Atom63ThemeProps, AutocompleteInputProps, AutocompletePopupProps, AvatarProps, BadgeProps, BreadcrumbLinkProps, ButtonGroupProps, ButtonGroupSeparatorProps, CardCursorBinding, CarouselApi, CarouselContextProps, CarouselDotsProps, CarouselOptions, CarouselPlugin, CarouselProps, ChatComposerProps, ChatMessageListProps, ChatMessageProps, ChatStepProps, ChatStepsProps, ChatTypingIndicatorProps, CheckboxProps, CollapsibleContentProps, CollapsibleProps, CollapsibleTriggerProps, ColorSampleRegion, ConnectedPanelContentProps, ConnectedPanelProps, ConnectedPanelTriggerProps, ConnectedPanelVariant, ContextMenuContentProps, ContextMenuItemProps, ContextMenuLabelProps, ContextMenuSubContentProps, ContextMenuSubTriggerProps, CopyButtonFeedbackProps, CopyButtonProps, DrawerAsChildProps, DrawerCloseProps, DrawerContentProps, DrawerRootProps, DrawerTriggerProps, DropdownMenuContentProps, DropdownMenuItemProps, DropdownMenuLabelProps, DropdownMenuSubContentProps, DropdownMenuSubTriggerProps, ExtractColorOptions, ExtractedColor, FeedbackStateAction, FeedbackStateIcon, FeedbackStateIconName, FeedbackStateProps, FieldContentProps, FieldDescriptionProps, FieldErrorProps, FieldGroupProps, FieldLabelProps, FieldLegendProps, FieldProps, FieldSeparatorProps, FieldSetProps, FieldTitleProps, FramePanelProps, FrameProps, HoverCardContentProps, InputGroupAddonAlign, InputGroupAddonProps, InputGroupButtonProps, InputGroupInputProps, InputGroupProps, InputGroupTextProps, InputGroupTextareaProps, InputProps, ItemGroupProps, ItemMediaProps, ItemProps, ItemSeparatorProps, KbdProps, LabelProps, LoadMoreTriggerProps, MarqueeProps, MenubarCheckboxItemProps, MenubarRadioItemProps, MessageEventProps, MessageListProps, MessageProps, PaginationContentProps, PaginationEllipsisProps, PaginationItemProps, PaginationLinkProps, PaginationNextProps, PaginationPreviousProps, PaginationProps, PanelSettingButtonProps, PopoverContentProps, PortalContainer, PortalContainerProviderProps, PreviewCardPopupProps, ProgressProps, ProgressiveBlurProps, RadioGroupProps, RadioProps, RatingProps, ResizableHandleProps, ResizableOrientation, ResizablePanelGroupProps, ResizablePanelProps, ScrollAreaViewportProps, SearchFieldProps, SegmentedControlItem, SegmentedControlProps, SeparatorProps, SheetFooterProps, SheetPanelProps, SheetPopupProps, SheetSide, SheetVariant, SheetViewportProps, SidebarContextProps, SidebarMenuButtonProps, SidebarMenuSubButtonProps, SidebarNavCollapsibleItemProps, SidebarNavGroupProps, SidebarNavLinkItemProps, SidebarNavSubLinkItemProps, SidebarNavSubListProps, SidebarProps, SidebarProviderProps, SliderProps, SliderRootProps, SwitchProps, TableBodyProps, TableCaptionProps, TableCellProps, TableFooterProps, TableHeadProps, TableHeaderProps, TableProps, TableRowProps, TabsListProps, TabsPanelProps, TabsTabProps, TextTickerProps, TextareaProps, ToasterProps, ToggleGroupItemProps, ToggleGroupProps, ToggleGroupSeparatorProps, ToggleProps, UIProviderProps, UseCardCursorOptions, UseExtractColorOptions, UseExtractColorReturn };
|
|
1675
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertAction, AlertDescription, AlertIcon, AlertTitle, Amount, AnimatedCheck, ArtPlate, Atom63Theme, Autocomplete, AutocompleteClear, AutocompleteCollection, AutocompleteEmpty, AutocompleteGroup, AutocompleteGroupLabel, AutocompleteInput, AutocompleteItem, AutocompleteList, AutocompletePopup, AutocompleteRow, AutocompleteSeparator, AutocompleteStatus, AutocompleteTrigger, AutocompleteValue, Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage, Badge, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, ButtonProps, Carousel, CarouselContent, CarouselDots, CarouselItem, CarouselNext, CarouselPrevious, ChatComposer, ChatMessage, ChatMessageList, ChatStep, ChatSteps, ChatTypingIndicator, Checkbox, Collapsible, CollapsibleContent, CollapsibleIndicator, CollapsibleTrigger, ConnectedPanel, ConnectedPanelBody, ConnectedPanelContent, ConnectedPanelDescription, ConnectedPanelFooter, ConnectedPanelHeader, ConnectedPanelTitle, ConnectedPanelTrigger, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, CopyButton, CopyButtonFeedback, Drawer, DrawerBody, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHandle, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Empty, EmptyContent, EmptyDescription, EmptyErrorDetail, EmptyHeader, EmptyMedia, EmptyTitle, FeedbackState, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, Frame, FrameDescription, FrameFooter, FrameHeader, FramePanel, FrameTitle, HoverCard, HoverCardContent, HoverCardTrigger, Input, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle, Kbd, KbdGroup, Label, LayeredScene, LayeredSceneContent, LayeredSceneForeground, LayeredScenePlate, LayeredSceneStage, LoadMoreTrigger, Marquee, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, Message, MessageEvent, MessageList, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, PanelSettingButton, Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverDescription, PopoverHeader, PopoverPortal, PopoverTitle, PopoverTrigger, PortalContainerProvider, PreviewCard, PreviewCardPopup, PreviewCardTrigger, Progress, ProgressIndicator, ProgressLabel, ProgressTrack, ProgressValue, ProgressiveBlur, Radio, RadioGroup, Radio as RadioGroupItem, Rating, ResizableHandle, ResizablePanel, ResizablePanelGroup, ScrollArea, ScrollBar, SearchField, SegmentedControl, Separator, Sheet, SheetBackdrop, SheetClose, SheetPopup as SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetBackdrop as SheetOverlay, SheetPanel, SheetPopup, SheetPortal, SheetTitle, SheetTrigger, SheetViewport, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarNavCollapsibleItem, SidebarNavGroup, SidebarNavLinkItem, SidebarNavSubLinkItem, SidebarNavSubList, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, Slider, SliderValue, Spinner, Switch, TINT_MAX_LUMINANCE, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsPanel as TabsContent, TabsList, TabsPanel, TabsTab, TabsTab as TabsTrigger, TextTicker, Textarea, Toaster, Toggle, ToggleGroup, ToggleGroupItem, ToggleGroupSeparator, TooltipPopup as TooltipContent, TooltipPopup, UIProvider, capColorForContrast, colorCacheKey, extractColorFromImage, extractColorFromLoadedImage, getCachedColor, loadAndExtractColor, useAutocompleteFilter, useCardCursor, useCarousel, useExtractColor, useFormField, usePortalContainer, useSidebar, useUIEnvironment };
|
|
1676
|
+
export type { AccordionProps, AccordionTriggerProps, AlertProps, AmountProps, AnimatedCheckProps, ArtPlateFocus, ArtPlateProps, Atom63ThemeMode, Atom63ThemeProps, AutocompleteInputProps, AutocompletePopupProps, AvatarProps, BadgeProps, BreadcrumbLinkProps, ButtonGroupProps, ButtonGroupSeparatorProps, CardCursorBinding, CarouselApi, CarouselContextProps, CarouselDotsProps, CarouselOptions, CarouselPlugin, CarouselProps, ChatComposerProps, ChatMessageListProps, ChatMessageProps, ChatStepProps, ChatStepsProps, ChatTypingIndicatorProps, CheckboxProps, CollapsibleContentProps, CollapsibleProps, CollapsibleTriggerProps, ColorSampleRegion, ConnectedPanelContentProps, ConnectedPanelProps, ConnectedPanelTriggerProps, ConnectedPanelVariant, ContextMenuContentProps, ContextMenuItemProps, ContextMenuLabelProps, ContextMenuSubContentProps, ContextMenuSubTriggerProps, CopyButtonFeedbackProps, CopyButtonProps, DrawerAsChildProps, DrawerCloseProps, DrawerContentProps, DrawerRootProps, DrawerTriggerProps, DropdownMenuContentProps, DropdownMenuItemProps, DropdownMenuLabelProps, DropdownMenuSubContentProps, DropdownMenuSubTriggerProps, ExtractColorOptions, ExtractedColor, FeedbackStateAction, FeedbackStateIcon, FeedbackStateIconName, FeedbackStateProps, FieldContentProps, FieldDescriptionProps, FieldErrorProps, FieldGroupProps, FieldLabelProps, FieldLegendProps, FieldProps, FieldSeparatorProps, FieldSetProps, FieldTitleProps, FramePanelProps, FrameProps, HoverCardContentProps, InputGroupAddonAlign, InputGroupAddonProps, InputGroupButtonProps, InputGroupInputProps, InputGroupProps, InputGroupTextProps, InputGroupTextareaProps, InputProps, ItemGroupProps, ItemMediaProps, ItemProps, ItemSeparatorProps, KbdProps, LabelProps, LayeredSceneForegroundProps, LayeredScenePlateProps, LayeredSceneProps, LoadMoreTriggerProps, MarqueeProps, MenubarCheckboxItemProps, MenubarRadioItemProps, MessageEventProps, MessageListProps, MessageProps, PaginationContentProps, PaginationEllipsisProps, PaginationItemProps, PaginationLinkProps, PaginationNextProps, PaginationPreviousProps, PaginationProps, PanelSettingButtonProps, PopoverContentProps, PortalContainer, PortalContainerProviderProps, PreviewCardPopupProps, ProgressProps, ProgressiveBlurProps, RadioGroupProps, RadioProps, RatingProps, ResizableHandleProps, ResizableOrientation, ResizablePanelGroupProps, ResizablePanelProps, ScrollAreaViewportProps, SearchFieldProps, SegmentedControlItem, SegmentedControlProps, SeparatorProps, SheetFooterProps, SheetPanelProps, SheetPopupProps, SheetSide, SheetVariant, SheetViewportProps, SidebarContextProps, SidebarMenuButtonProps, SidebarMenuSubButtonProps, SidebarNavCollapsibleItemProps, SidebarNavGroupProps, SidebarNavLinkItemProps, SidebarNavSubLinkItemProps, SidebarNavSubListProps, SidebarProps, SidebarProviderProps, SliderProps, SliderRootProps, SwitchProps, TableBodyProps, TableCaptionProps, TableCellProps, TableFooterProps, TableHeadProps, TableHeaderProps, TableProps, TableRowProps, TabsListProps, TabsPanelProps, TabsTabProps, TextTickerProps, TextareaProps, ToasterProps, ToggleGroupItemProps, ToggleGroupProps, ToggleGroupSeparatorProps, ToggleProps, UIProviderProps, UseCardCursorOptions, UseExtractColorOptions, UseExtractColorReturn };
|