@atom63/mdx 0.4.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (88) hide show
  1. package/API.md +47 -0
  2. package/CONTRIBUTING.md +58 -0
  3. package/LICENSE +21 -0
  4. package/README.md +190 -0
  5. package/dist/article/index.d.ts +32 -0
  6. package/dist/article/index.js +38 -0
  7. package/dist/article/index.js.map +1 -0
  8. package/dist/blocks/credits-block-entry.d.ts +14 -0
  9. package/dist/blocks/credits-block-entry.js +4 -0
  10. package/dist/blocks/credits-block-entry.js.map +1 -0
  11. package/dist/blocks/index.d.ts +175 -0
  12. package/dist/blocks/index.js +9 -0
  13. package/dist/blocks/index.js.map +1 -0
  14. package/dist/blocks/media-caption-entry.d.ts +11 -0
  15. package/dist/blocks/media-caption-entry.js +4 -0
  16. package/dist/blocks/media-caption-entry.js.map +1 -0
  17. package/dist/chunk-2RCEDZBB.js +11 -0
  18. package/dist/chunk-2RCEDZBB.js.map +1 -0
  19. package/dist/chunk-34B2U2Y2.js +59 -0
  20. package/dist/chunk-34B2U2Y2.js.map +1 -0
  21. package/dist/chunk-A3NG5VKX.js +169 -0
  22. package/dist/chunk-A3NG5VKX.js.map +1 -0
  23. package/dist/chunk-CSXZ2XEN.js +479 -0
  24. package/dist/chunk-CSXZ2XEN.js.map +1 -0
  25. package/dist/chunk-DJSENA7Q.js +63 -0
  26. package/dist/chunk-DJSENA7Q.js.map +1 -0
  27. package/dist/chunk-EIY6ZR6T.js +2471 -0
  28. package/dist/chunk-EIY6ZR6T.js.map +1 -0
  29. package/dist/chunk-EPSRYU5X.js +61 -0
  30. package/dist/chunk-EPSRYU5X.js.map +1 -0
  31. package/dist/chunk-FVCE4FER.js +132 -0
  32. package/dist/chunk-FVCE4FER.js.map +1 -0
  33. package/dist/chunk-IART7J2U.js +101 -0
  34. package/dist/chunk-IART7J2U.js.map +1 -0
  35. package/dist/chunk-OUEW54AC.js +144 -0
  36. package/dist/chunk-OUEW54AC.js.map +1 -0
  37. package/dist/chunk-WZ6US342.js +231 -0
  38. package/dist/chunk-WZ6US342.js.map +1 -0
  39. package/dist/constants-CuaBcwMe.d.ts +4 -0
  40. package/dist/editor/index.d.ts +47 -0
  41. package/dist/editor/index.js +118 -0
  42. package/dist/editor/index.js.map +1 -0
  43. package/dist/framed-block-DM5LLxO7.d.ts +87 -0
  44. package/dist/index.d.ts +45 -0
  45. package/dist/index.js +20 -0
  46. package/dist/index.js.map +1 -0
  47. package/dist/lightbox/index.d.ts +44 -0
  48. package/dist/lightbox/index.js +5 -0
  49. package/dist/lightbox/index.js.map +1 -0
  50. package/dist/mdx-provider-6gOypsy5.d.ts +185 -0
  51. package/dist/photo-swipe-CwzAHpP-.d.ts +66 -0
  52. package/dist/primitives/index.d.ts +130 -0
  53. package/dist/primitives/index.js +132 -0
  54. package/dist/primitives/index.js.map +1 -0
  55. package/dist/runtime/index.d.ts +39 -0
  56. package/dist/runtime/index.js +4 -0
  57. package/dist/runtime/index.js.map +1 -0
  58. package/dist/slots-BvPdUMdY.d.ts +23 -0
  59. package/dist/video-block-C0a5Yx9x.d.ts +468 -0
  60. package/package.json +139 -0
  61. package/src/blocks/callout/callout.css +37 -0
  62. package/src/blocks/code-block/code-block.css +40 -0
  63. package/src/blocks/color-swatch-item/color-swatch-item.css +36 -0
  64. package/src/blocks/compare/compare.css +14 -0
  65. package/src/blocks/comparison-pair/comparison-pair.css +27 -0
  66. package/src/blocks/credits-block/credits-block.css +16 -0
  67. package/src/blocks/demo-stage/demo-stage.css +50 -0
  68. package/src/blocks/doc-example/doc-example.css +44 -0
  69. package/src/blocks/image-compare/image-compare.css +45 -0
  70. package/src/blocks/layer-stack/layer-stack.css +28 -0
  71. package/src/blocks/media-placeholder/media-placeholder.css +11 -0
  72. package/src/blocks/mermaid-diagram/mermaid-diagram.css +52 -0
  73. package/src/blocks/page-meta/page-meta.css +7 -0
  74. package/src/blocks/page-table-of-contents/page-table-of-contents.css +73 -0
  75. package/src/blocks/resource-list/resource-list.css +138 -0
  76. package/src/blocks/scroll-stage/scroll-stage.css +12 -0
  77. package/src/blocks/stat-card/stat-card.css +18 -0
  78. package/src/blocks/steps/steps.css +20 -0
  79. package/src/blocks/timeline/timeline.css +12 -0
  80. package/src/blocks/video-block/video-block.css +11 -0
  81. package/src/primitives/motion-tokens.css +16 -0
  82. package/src/styles/a63.css +13 -0
  83. package/src/styles/base.css +362 -0
  84. package/src/styles/block-recipes.css +21 -0
  85. package/src/styles/consumer.css +7 -0
  86. package/src/styles/index.css +12 -0
  87. package/src/styles/mdx-blocks.css +9 -0
  88. package/src/styles/shadcn.css +12 -0
@@ -0,0 +1,231 @@
1
+ import { mdxStyles } from './chunk-FVCE4FER.js';
2
+ import { Frame, FramePanel, FrameHeader, FrameFooter } from '@atom63/ui-react';
3
+ import { clsx } from 'clsx';
4
+ import { forwardRef, createElement, Children, isValidElement } from 'react';
5
+ import { jsx, jsxs } from 'react/jsx-runtime';
6
+ import { useReducedMotion } from 'motion/react';
7
+
8
+ var spacingClasses = {
9
+ block: mdxStyles.spacing.block,
10
+ component: mdxStyles.spacing.component,
11
+ media: mdxStyles.spacing.media
12
+ };
13
+ var itemToneClasses = {
14
+ neutral: "mdx-frame-item-neutral",
15
+ negative: "mdx-frame-item-negative",
16
+ positive: "mdx-frame-item-positive",
17
+ warning: "mdx-frame-item-warning"
18
+ };
19
+ function MdxFrameHeading({
20
+ className,
21
+ description,
22
+ descriptionClassName,
23
+ title,
24
+ titleClassName
25
+ }) {
26
+ if (!title && !description) {
27
+ return null;
28
+ }
29
+ return /* @__PURE__ */ jsxs(MdxFrameHeader, { className, children: [
30
+ title ? /* @__PURE__ */ jsx(MdxFrameTitle, { className: titleClassName, "data-slot": "title", children: title }) : null,
31
+ description ? /* @__PURE__ */ jsx(MdxFrameDescription, { className: descriptionClassName, "data-slot": "description", children: description }) : null
32
+ ] });
33
+ }
34
+ function MdxFrameChrome({ border, children, className, ...props }) {
35
+ return /* @__PURE__ */ jsx(Frame, { border, className: clsx("mdx-frame", className), ...props, children });
36
+ }
37
+ var MdxFrame = forwardRef(function MdxFrame2({
38
+ as: Root = "figure",
39
+ border,
40
+ children,
41
+ className,
42
+ frameClassName,
43
+ spacing = "block",
44
+ width = "wide",
45
+ ...props
46
+ }, ref) {
47
+ return createElement(
48
+ Root,
49
+ {
50
+ className: clsx("not-mdx mdx-block", spacingClasses[spacing], className),
51
+ "data-mdx-width": width,
52
+ ref,
53
+ ...props
54
+ },
55
+ /* @__PURE__ */ jsx(MdxFrameChrome, { border, className: frameClassName, children })
56
+ );
57
+ });
58
+ function MdxFrameSurface({
59
+ border,
60
+ children,
61
+ className,
62
+ spacing = "block",
63
+ width = "column",
64
+ ...props
65
+ }) {
66
+ return /* @__PURE__ */ jsx(
67
+ FramePanel,
68
+ {
69
+ border,
70
+ className: clsx("mdx-frame-panel not-mdx mdx-block", spacingClasses[spacing], className),
71
+ "data-mdx-width": width,
72
+ ...props,
73
+ children
74
+ }
75
+ );
76
+ }
77
+ var FramedBlockHeader = MdxFrameHeading;
78
+ var FramedBlock = MdxFrame;
79
+ function TechnicalFrame({
80
+ border,
81
+ children,
82
+ className,
83
+ dataNumbered,
84
+ headerClassName,
85
+ headerEnd,
86
+ headerStart,
87
+ panelClassName,
88
+ width
89
+ }) {
90
+ return /* @__PURE__ */ jsxs(
91
+ MdxFrameChrome,
92
+ {
93
+ border,
94
+ className,
95
+ "data-mdx-width": width,
96
+ "data-numbered": dataNumbered || void 0,
97
+ children: [
98
+ /* @__PURE__ */ jsxs(
99
+ FrameHeader,
100
+ {
101
+ className: clsx("flex-row items-center justify-between gap-3 px-3 py-2", headerClassName),
102
+ children: [
103
+ headerStart,
104
+ headerEnd
105
+ ]
106
+ }
107
+ ),
108
+ /* @__PURE__ */ jsx(MdxFramePanel, { className: panelClassName, children })
109
+ ]
110
+ }
111
+ );
112
+ }
113
+ function MdxFrameHeader({ className, ...props }) {
114
+ return /* @__PURE__ */ jsx(FrameHeader, { className: clsx("mdx-frame-header", className), ...props });
115
+ }
116
+ function MdxFrameTitle({ className, ...props }) {
117
+ return /* @__PURE__ */ jsx("div", { className: clsx("a63-Frame-title", className), "data-slot": "frame-panel-title", ...props });
118
+ }
119
+ function MdxFrameDescription({ className, ...props }) {
120
+ return /* @__PURE__ */ jsx(
121
+ "div",
122
+ {
123
+ className: clsx("a63-Frame-description", className),
124
+ "data-slot": "frame-panel-description",
125
+ ...props
126
+ }
127
+ );
128
+ }
129
+ function MdxFramePanel({ border, className, ...props }) {
130
+ return /* @__PURE__ */ jsx(FramePanel, { border, className: clsx("mdx-frame-panel", className), ...props });
131
+ }
132
+ function MdxFrameItemPanel({
133
+ bodyClassName,
134
+ children,
135
+ className,
136
+ eyebrow,
137
+ title,
138
+ tone = "neutral",
139
+ ...props
140
+ }) {
141
+ return /* @__PURE__ */ jsx(
142
+ MdxFramePanel,
143
+ {
144
+ className: clsx(
145
+ "mdx-frame-item min-w-0 overflow-hidden p-0 transition-colors",
146
+ itemToneClasses[tone],
147
+ className
148
+ ),
149
+ ...props,
150
+ children: /* @__PURE__ */ jsxs("div", { className: "px-3.5 pt-3.5 pb-3 sm:px-4", children: [
151
+ /* @__PURE__ */ jsxs("div", { className: "mb-2.5 flex min-w-0 items-start gap-2.5", children: [
152
+ /* @__PURE__ */ jsx(
153
+ "span",
154
+ {
155
+ "aria-hidden": true,
156
+ className: clsx("mdx-frame-item-marker mt-1.5 size-2 shrink-0 rounded-full")
157
+ }
158
+ ),
159
+ /* @__PURE__ */ jsxs("div", { className: "min-w-0", children: [
160
+ eyebrow ? /* @__PURE__ */ jsx("p", { className: "mdx-frame-item-eyebrow mb-1 font-mono text-[0.6875rem] leading-none tracking-wider uppercase", children: eyebrow }) : null,
161
+ /* @__PURE__ */ jsx("h3", { className: "mdx-frame-item-title text-sm leading-snug font-semibold text-wrap", children: title })
162
+ ] })
163
+ ] }),
164
+ /* @__PURE__ */ jsx(
165
+ "div",
166
+ {
167
+ className: clsx(
168
+ "mdx-frame-item-body text-sm leading-relaxed text-pretty [&_.code-block]:my-3 [&_.code-block]:first:mt-0 [&_.code-block]:last:mb-0 [&_li]:mt-1.5 [&_ol]:mt-3 [&_ol]:ps-4 [&_p]:mt-2 [&_p_code]:px-1 [&_p_code]:py-0.5 [&_p_code]:font-mono [&_p_code]:text-xs [&_pre:not(.code-block-pre):not(.shiki)]:mt-4 [&_pre:not(.code-block-pre):not(.shiki)]:overflow-x-auto [&_pre:not(.code-block-pre):not(.shiki)]:p-3 [&_pre:not(.code-block-pre):not(.shiki)]:text-xs [&_ul]:mt-3 [&_ul]:list-disc [&_ul]:ps-4 [&>*:first-child]:mt-0 [&>*:last-child]:mb-0",
169
+ bodyClassName
170
+ ),
171
+ children
172
+ }
173
+ )
174
+ ] })
175
+ }
176
+ );
177
+ }
178
+ function MdxFrameFooter({ className, ...props }) {
179
+ return /* @__PURE__ */ jsx(FrameFooter, { className: clsx("mdx-frame-footer", className), ...props });
180
+ }
181
+ function createSlot(name) {
182
+ const Slot = (_props) => null;
183
+ const typed = Slot;
184
+ typed.slotName = name;
185
+ return typed;
186
+ }
187
+ function slotNameOf(child) {
188
+ if (!isValidElement(child)) return void 0;
189
+ return child.type?.slotName;
190
+ }
191
+ function hasSlot(children, slot) {
192
+ let present = false;
193
+ Children.forEach(children, (child) => {
194
+ if (slotNameOf(child) === slot.slotName) present = true;
195
+ });
196
+ return present;
197
+ }
198
+ function pickSlot(children, slot) {
199
+ let found = null;
200
+ Children.forEach(children, (child) => {
201
+ if (found === null && slotNameOf(child) === slot.slotName && isValidElement(child)) {
202
+ found = child.props.children ?? null;
203
+ }
204
+ });
205
+ return found;
206
+ }
207
+ function pickRest(children, slots) {
208
+ const names = new Set(slots.map((s) => s.slotName));
209
+ return Children.toArray(children).filter((child) => {
210
+ const name = slotNameOf(child);
211
+ return name === void 0 || !names.has(name);
212
+ });
213
+ }
214
+
215
+ // src/primitives/motion-tokens.ts
216
+ var motionDurations = {
217
+ fast: 0.15,
218
+ base: 0.3,
219
+ slow: 0.6
220
+ };
221
+ var motionEasings = {
222
+ standard: [0.2, 0, 0, 1],
223
+ emphasized: [0.3, 0, 0, 1]
224
+ };
225
+ function useMdxReducedMotion() {
226
+ return useReducedMotion() ?? false;
227
+ }
228
+
229
+ export { FramedBlock, FramedBlockHeader, MdxFrame, MdxFrameChrome, MdxFrameDescription, MdxFrameFooter, MdxFrameHeader, MdxFrameItemPanel, MdxFramePanel, MdxFrameSurface, MdxFrameTitle, TechnicalFrame, createSlot, hasSlot, motionDurations, motionEasings, pickRest, pickSlot, useMdxReducedMotion };
230
+ //# sourceMappingURL=chunk-WZ6US342.js.map
231
+ //# sourceMappingURL=chunk-WZ6US342.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/foundations/frame/framed-block.tsx","../src/primitives/slots.tsx","../src/primitives/motion-tokens.ts","../src/primitives/use-reduced-motion.ts"],"names":["MdxFrame"],"mappings":";;;;;;;AAMA,IAAM,cAAA,GAAiB;AAAA,EACrB,KAAA,EAAO,UAAU,OAAA,CAAQ,KAAA;AAAA,EACzB,SAAA,EAAW,UAAU,OAAA,CAAQ,SAAA;AAAA,EAC7B,KAAA,EAAO,UAAU,OAAA,CAAQ;AAC3B,CAAA;AAOA,IAAM,eAAA,GAAoD;AAAA,EACxD,OAAA,EAAS,wBAAA;AAAA,EACT,QAAA,EAAU,yBAAA;AAAA,EACV,QAAA,EAAU,yBAAA;AAAA,EACV,OAAA,EAAS;AACX,CAAA;AAUO,SAAS,eAAA,CAAgB;AAAA,EAC9B,SAAA;AAAA,EACA,WAAA;AAAA,EACA,oBAAA;AAAA,EACA,KAAA;AAAA,EACA;AACF,CAAA,EAAyB;AACvB,EAAA,IAAI,CAAC,KAAA,IAAS,CAAC,WAAA,EAAa;AAC1B,IAAA,OAAO,IAAA;AAAA,EACT;AAEA,EAAA,uBACE,IAAA,CAAC,kBAAe,SAAA,EACb,QAAA,EAAA;AAAA,IAAA,KAAA,uBACE,aAAA,EAA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ramePanel } from '@atom63/ui-react'\nimport { clsx } from 'clsx'\nimport { createElement, forwardRef } from 'react'\nimport type { ComponentPropsWithoutRef, ReactNode } from 'react'\nimport { mdxStyles } from '../../mdx-styles'\n\nconst spacingClasses = {\n block: mdxStyles.spacing.block,\n component: mdxStyles.spacing.component,\n media: mdxStyles.spacing.media,\n} as const\n\nexport type MdxFrameSpacing = keyof typeof spacingClasses\nexport type MdxFrameRootElement = 'aside' | 'div' | 'figure'\nexport type MdxFrameWidth = 'column' | 'wide' | 'bleed'\nexport type MdxFrameItemTone = 'neutral' | 'negative' | 'positive' | 'warning'\n\nconst itemToneClasses: Record<MdxFrameItemTone, string> = {\n neutral: 'mdx-frame-item-neutral',\n negative: 'mdx-frame-item-negative',\n positive: 'mdx-frame-item-positive',\n warning: 'mdx-frame-item-warning',\n}\n\nexport type MdxFrameHeadingProps = {\n className?: string\n description?: ReactNode\n descriptionClassName?: string\n title?: ReactNode\n titleClassName?: string\n}\n\nexport function MdxFrameHeading({\n className,\n description,\n descriptionClassName,\n title,\n titleClassName,\n}: MdxFrameHeadingProps) {\n if (!title && !description) {\n return null\n }\n\n return (\n <MdxFrameHeader className={className}>\n {title ? (\n <MdxFrameTitle className={titleClassName} data-slot=\"title\">\n {title}\n </MdxFrameTitle>\n ) : null}\n {description ? (\n <MdxFrameDescription className={descriptionClassName} data-slot=\"description\">\n {description}\n </MdxFrameDescription>\n ) : null}\n </MdxFrameHeader>\n )\n}\n\nexport type MdxFrameChromeProps = ComponentPropsWithoutRef<typeof Frame>\n\nexport function MdxFrameChrome({ border, children, className, ...props }: MdxFrameChromeProps) {\n return (\n <Frame border={border} className={clsx('mdx-frame', className)} {...props}>\n {children}\n </Frame>\n )\n}\n\nexport type MdxFrameProps = Omit<ComponentPropsWithoutRef<'figure'>, 'children'> & {\n as?: MdxFrameRootElement\n border?: MdxFrameChromeProps['border']\n children: ReactNode\n frameClassName?: string\n spacing?: MdxFrameSpacing\n width?: MdxFrameWidth\n}\n\nexport const MdxFrame = forwardRef<HTMLElement, MdxFrameProps>(function MdxFrame(\n {\n as: Root = 'figure',\n border,\n children,\n className,\n frameClassName,\n spacing = 'block',\n width = 'wide',\n ...props\n },\n ref\n) {\n return createElement(\n Root,\n {\n className: clsx('not-mdx mdx-block', spacingClasses[spacing], className),\n 'data-mdx-width': width,\n ref,\n ...props,\n },\n <MdxFrameChrome border={border} className={frameClassName}>\n {children}\n </MdxFrameChrome>\n )\n})\n\nexport type MdxFrameSurfaceProps = ComponentPropsWithoutRef<typeof FramePanel> & {\n spacing?: MdxFrameSpacing\n width?: MdxFrameWidth\n}\n\nexport function MdxFrameSurface({\n border,\n children,\n className,\n spacing = 'block',\n width = 'column',\n ...props\n}: MdxFrameSurfaceProps) {\n return (\n <FramePanel\n border={border}\n className={clsx('mdx-frame-panel not-mdx mdx-block', spacingClasses[spacing], className)}\n data-mdx-width={width}\n {...props}\n >\n {children}\n </FramePanel>\n )\n}\n\nexport type FramedBlockHeaderProps = MdxFrameHeadingProps\nexport const FramedBlockHeader = MdxFrameHeading\n\nexport type FramedBlockSpacing = MdxFrameSpacing\nexport type FramedBlockProps = MdxFrameProps\nexport const FramedBlock = MdxFrame\n\nexport type TechnicalFrameProps = {\n border?: MdxFrameChromeProps['border']\n children: ReactNode\n className?: string\n dataNumbered?: boolean\n headerClassName?: string\n headerEnd?: ReactNode\n headerStart: ReactNode\n panelClassName?: string\n width?: MdxFrameWidth\n}\n\nexport function TechnicalFrame({\n border,\n children,\n className,\n dataNumbered,\n headerClassName,\n headerEnd,\n headerStart,\n panelClassName,\n width,\n}: TechnicalFrameProps) {\n return (\n <MdxFrameChrome\n border={border}\n className={className}\n data-mdx-width={width}\n data-numbered={dataNumbered || undefined}\n >\n <FrameHeader\n className={clsx('flex-row items-center justify-between gap-3 px-3 py-2', headerClassName)}\n >\n {headerStart}\n {headerEnd}\n </FrameHeader>\n <MdxFramePanel className={panelClassName}>{children}</MdxFramePanel>\n </MdxFrameChrome>\n )\n}\n\nexport type MdxFrameHeaderProps = ComponentPropsWithoutRef<typeof FrameHeader>\n\nexport function MdxFrameHeader({ className, ...props }: MdxFrameHeaderProps) {\n return <FrameHeader className={clsx('mdx-frame-header', className)} {...props} />\n}\n\nexport type MdxFrameTitleProps = ComponentPropsWithoutRef<'div'>\n\nexport function MdxFrameTitle({ className, ...props }: MdxFrameTitleProps) {\n return (\n <div className={clsx('a63-Frame-title', className)} data-slot=\"frame-panel-title\" {...props} />\n )\n}\n\nexport type MdxFrameDescriptionProps = ComponentPropsWithoutRef<'div'>\n\nexport function MdxFrameDescription({ className, ...props }: MdxFrameDescriptionProps) {\n return (\n <div\n className={clsx('a63-Frame-description', className)}\n data-slot=\"frame-panel-description\"\n {...props}\n />\n )\n}\n\nexport type MdxFramePanelProps = ComponentPropsWithoutRef<typeof FramePanel>\n\nexport function MdxFramePanel({ border, className, ...props }: MdxFramePanelProps) {\n return <FramePanel border={border} className={clsx('mdx-frame-panel', className)} {...props} />\n}\n\nexport type MdxFrameItemPanelProps = Omit<MdxFramePanelProps, 'title'> & {\n bodyClassName?: string\n eyebrow?: ReactNode\n title: ReactNode\n tone?: MdxFrameItemTone\n}\n\nexport function MdxFrameItemPanel({\n bodyClassName,\n children,\n className,\n eyebrow,\n title,\n tone = 'neutral',\n ...props\n}: MdxFrameItemPanelProps) {\n return (\n <MdxFramePanel\n className={clsx(\n 'mdx-frame-item min-w-0 overflow-hidden p-0 transition-colors',\n itemToneClasses[tone],\n className\n )}\n {...props}\n >\n <div className=\"px-3.5 pt-3.5 pb-3 sm:px-4\">\n <div className=\"mb-2.5 flex min-w-0 items-start gap-2.5\">\n <span\n aria-hidden\n className={clsx('mdx-frame-item-marker mt-1.5 size-2 shrink-0 rounded-full')}\n />\n <div className=\"min-w-0\">\n {eyebrow ? (\n <p className=\"mdx-frame-item-eyebrow mb-1 font-mono text-[0.6875rem] leading-none tracking-wider uppercase\">\n {eyebrow}\n </p>\n ) : null}\n <h3 className=\"mdx-frame-item-title text-sm leading-snug font-semibold text-wrap\">\n {title}\n </h3>\n </div>\n </div>\n <div\n className={clsx(\n 'mdx-frame-item-body text-sm leading-relaxed text-pretty [&_.code-block]:my-3 [&_.code-block]:first:mt-0 [&_.code-block]:last:mb-0 [&_li]:mt-1.5 [&_ol]:mt-3 [&_ol]:ps-4 [&_p]:mt-2 [&_p_code]:px-1 [&_p_code]:py-0.5 [&_p_code]:font-mono [&_p_code]:text-xs [&_pre:not(.code-block-pre):not(.shiki)]:mt-4 [&_pre:not(.code-block-pre):not(.shiki)]:overflow-x-auto [&_pre:not(.code-block-pre):not(.shiki)]:p-3 [&_pre:not(.code-block-pre):not(.shiki)]:text-xs [&_ul]:mt-3 [&_ul]:list-disc [&_ul]:ps-4 [&>*:first-child]:mt-0 [&>*:last-child]:mb-0',\n bodyClassName\n )}\n >\n {children}\n </div>\n </div>\n </MdxFramePanel>\n )\n}\n\nexport type MdxFrameFooterProps = ComponentPropsWithoutRef<typeof FrameFooter>\n\nexport function MdxFrameFooter({ className, ...props }: MdxFrameFooterProps) {\n return <FrameFooter className={clsx('mdx-frame-footer', className)} {...props} />\n}\n","import { Children, isValidElement, type ReactNode } from 'react'\n\nexport type SlotComponent = ((props: { children?: ReactNode }) => null) & {\n slotName: string\n}\n\n/** Create a named marker component. It renders nothing on its own; its parent\n * extracts its children via `pickSlot`. */\nexport function createSlot(name: string): SlotComponent {\n const Slot = (_props: { children?: ReactNode }) => null\n const typed = Slot as SlotComponent\n typed.slotName = name\n return typed\n}\n\nfunction slotNameOf(child: ReactNode): string | undefined {\n if (!isValidElement(child)) return undefined\n return (child.type as Partial<SlotComponent>)?.slotName\n}\n\n/** Whether any child is an element for the given slot, regardless of its\n * content. Use this to detect slot *presence* — `pickSlot` returning null is\n * ambiguous (a present-but-empty slot also yields null). */\nexport function hasSlot(children: ReactNode, slot: SlotComponent): boolean {\n let present = false\n Children.forEach(children, child => {\n if (slotNameOf(child) === slot.slotName) present = true\n })\n return present\n}\n\n/** Return the children of the first element matching `slot`, or null when the\n * slot is absent OR present-but-empty. Pair with `hasSlot` when the distinction\n * matters. */\nexport function pickSlot(children: ReactNode, slot: SlotComponent): ReactNode | null {\n let found: ReactNode | null = null\n Children.forEach(children, child => {\n if (found === null && slotNameOf(child) === slot.slotName && isValidElement(child)) {\n found = (child.props as { children?: ReactNode }).children ?? null\n }\n })\n return found\n}\n\n/** Return the children that are NOT one of the given slots (loose content),\n * re-keyed via `Children.toArray` so the result is safe to render as a list. */\nexport function pickRest(children: ReactNode, slots: SlotComponent[]): ReactNode[] {\n const names = new Set(slots.map(s => s.slotName))\n return Children.toArray(children).filter(child => {\n const name = slotNameOf(child)\n return name === undefined || !names.has(name)\n })\n}\n","/**\n * Motion tokens for the `motion` library (seconds). Mirrors the CSS custom\n * properties in `@atom63/styles/tokens/motion` — keep the two in sync.\n */\nexport const motionDurations = {\n fast: 0.15,\n base: 0.3,\n slow: 0.6,\n} as const\n\nexport const motionEasings = {\n standard: [0.2, 0, 0, 1],\n emphasized: [0.3, 0, 0, 1],\n} as const\n\nexport type MotionSpeed = keyof typeof motionDurations\n","import { useReducedMotion } from 'motion/react'\n\n/**\n * The single reduced-motion gate for all engine motion. Wraps motion's hook\n * so every primitive reads the preference from one place.\n */\nexport function useMdxReducedMotion(): boolean {\n return useReducedMotion() ?? false\n}\n"]}
@@ -0,0 +1,4 @@
1
+ /** Default gallery id — all FigureBlocks with lightbox share this connected set. */
2
+ declare const MDX_FIGURE_LIGHTBOX_GALLERY_ID = "atom63-mdx-figures";
3
+
4
+ export { MDX_FIGURE_LIGHTBOX_GALLERY_ID as M };
@@ -0,0 +1,47 @@
1
+ import * as React from 'react';
2
+ import { ComponentType } from 'react';
3
+
4
+ interface MdxLivePreviewProps {
5
+ source: string;
6
+ components: Record<string, ComponentType<unknown>>;
7
+ onError?: (error: Error | null) => void;
8
+ }
9
+ /**
10
+ * Renders runtime-compiled MDX inside the given component scope, isolating
11
+ * runtime throws in an error boundary. Compile errors are surfaced via onError
12
+ * while the last good render stays on screen.
13
+ */
14
+ declare function MdxLivePreview({ source, components, onError }: MdxLivePreviewProps): React.JSX.Element;
15
+
16
+ interface MdxSourceEditorProps {
17
+ value: string;
18
+ onChange: (next: string) => void;
19
+ className?: string;
20
+ }
21
+ /**
22
+ * Editable MDX surface — a textarea layered over shiki-highlighted output.
23
+ * Sibling of the read-only MdxSourceView; the panel chooses which to show.
24
+ */
25
+ declare function MdxSourceEditor({ value, onChange, className }: MdxSourceEditorProps): React.JSX.Element;
26
+
27
+ interface MdxSourceViewProps {
28
+ source: string;
29
+ /** 1-based, inclusive line range to highlight + scroll into view. */
30
+ activeRange?: {
31
+ startLine: number;
32
+ endLine: number;
33
+ };
34
+ className?: string;
35
+ }
36
+ /**
37
+ * Read-only, syntax-highlighted view of MDX source. Presentation-only — no
38
+ * docking/positioning. MDX is highlighted as `tsx` (JSX superset). When
39
+ * `activeRange` is set, those lines get a subtle highlight band and are
40
+ * scrolled into view.
41
+ *
42
+ * Phase-2 seam: a future editable `MdxSourceEditor` replaces this surface inside
43
+ * the same panel shell without changing the source plumbing.
44
+ */
45
+ declare function MdxSourceView({ source, activeRange, className }: MdxSourceViewProps): React.JSX.Element;
46
+
47
+ export { MdxLivePreview, type MdxLivePreviewProps, MdxSourceEditor, type MdxSourceEditorProps, MdxSourceView, type MdxSourceViewProps };
@@ -0,0 +1,118 @@
1
+ import { useMdxRuntime } from '../chunk-EPSRYU5X.js';
2
+ import { loadHighlighter, useShikiHighlight, highlightWithLoadedHighlighter } from '../chunk-A3NG5VKX.js';
3
+ import { MDXProvider } from '@mdx-js/react';
4
+ import { useEffect, useState, useRef, Component } from 'react';
5
+ import { jsx, jsxs } from 'react/jsx-runtime';
6
+ import Editor from 'react-simple-code-editor';
7
+
8
+ var MdxErrorBoundary = class extends Component {
9
+ state = { err: null };
10
+ static getDerivedStateFromError(err) {
11
+ return { err };
12
+ }
13
+ componentDidUpdate(prev) {
14
+ if (prev.resetKey !== this.props.resetKey && this.state.err) {
15
+ this.setState({ err: null });
16
+ }
17
+ }
18
+ render() {
19
+ return this.state.err ? this.props.fallback(this.state.err) : this.props.children;
20
+ }
21
+ };
22
+ function MdxLivePreview({ source, components, onError }) {
23
+ const { Component, error } = useMdxRuntime(source);
24
+ useEffect(() => {
25
+ onError?.(error);
26
+ }, [error, onError]);
27
+ if (!Component) {
28
+ return /* @__PURE__ */ jsx("div", { className: "text-muted-foreground flex h-full items-center justify-center p-8 text-sm", children: "Start typing MDX\u2026" });
29
+ }
30
+ return /* @__PURE__ */ jsx(
31
+ MdxErrorBoundary,
32
+ {
33
+ fallback: (e) => /* @__PURE__ */ jsxs("div", { className: "text-destructive p-4 text-sm", children: [
34
+ "Runtime error: ",
35
+ e.message
36
+ ] }),
37
+ resetKey: source,
38
+ children: /* @__PURE__ */ jsx(MDXProvider, { components, children: /* @__PURE__ */ jsx(Component, {}) })
39
+ }
40
+ );
41
+ }
42
+ function escapeHtml(s) {
43
+ return s.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
44
+ }
45
+ function highlight(code) {
46
+ const html = highlightWithLoadedHighlighter(code);
47
+ if (!html) return escapeHtml(code);
48
+ return html.replace(/^<pre[^>]*>/, "").replace(/<\/pre>$/, "").replace(/^<code[^>]*>/, "").replace(/<\/code>$/, "");
49
+ }
50
+ function MdxSourceEditor({ value, onChange, className }) {
51
+ const [, force] = useState(0);
52
+ useEffect(() => {
53
+ let active = true;
54
+ loadHighlighter().then(
55
+ () => {
56
+ if (active) force((n) => n + 1);
57
+ },
58
+ () => {
59
+ }
60
+ );
61
+ return () => {
62
+ active = false;
63
+ };
64
+ }, []);
65
+ return /* @__PURE__ */ jsx("div", { className: `bg-card/40 h-full overflow-auto ${className ?? ""}`, children: /* @__PURE__ */ jsx(
66
+ Editor,
67
+ {
68
+ highlight,
69
+ onValueChange: onChange,
70
+ padding: 12,
71
+ style: {
72
+ fontFamily: "ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace",
73
+ fontSize: 12,
74
+ lineHeight: 1.5,
75
+ minHeight: "100%"
76
+ },
77
+ textareaClassName: "focus:outline-none",
78
+ value
79
+ }
80
+ ) });
81
+ }
82
+ var LINE_HEIGHT = "1.5em";
83
+ var PRE_PADDING = "0.75rem";
84
+ function MdxSourceView({ source, activeRange, className }) {
85
+ const html = useShikiHighlight(source, "tsx");
86
+ const activeRef = useRef(null);
87
+ useEffect(() => {
88
+ if (!activeRange) return;
89
+ activeRef.current?.scrollIntoView({ block: "nearest" });
90
+ }, [activeRange, html]);
91
+ const overlay = activeRange ? /* @__PURE__ */ jsx(
92
+ "div",
93
+ {
94
+ "aria-hidden": true,
95
+ className: "bg-primary/10 pointer-events-none absolute inset-x-0",
96
+ ref: activeRef,
97
+ style: {
98
+ // The shiki <pre> is padded by PRE_PADDING; offset the band to match.
99
+ top: `calc(${PRE_PADDING} + ${activeRange.startLine - 1} * ${LINE_HEIGHT})`,
100
+ height: `calc(${activeRange.endLine - activeRange.startLine + 1} * ${LINE_HEIGHT})`
101
+ }
102
+ }
103
+ ) : null;
104
+ return /* @__PURE__ */ jsxs(
105
+ "div",
106
+ {
107
+ className: `bg-card/40 relative h-full overflow-auto font-mono text-xs [&_code]:leading-[1.5em] [&_pre]:!m-0 [&_pre]:!bg-transparent [&_pre]:p-3 [&_pre]:leading-[1.5em] ${className ?? ""}`,
108
+ children: [
109
+ overlay,
110
+ html ? /* @__PURE__ */ jsx("div", { className: "relative", dangerouslySetInnerHTML: { __html: html } }) : /* @__PURE__ */ jsx("pre", { className: "text-muted-foreground m-0 p-3 leading-[1.5em]", children: source })
111
+ ]
112
+ }
113
+ );
114
+ }
115
+
116
+ export { MdxLivePreview, MdxSourceEditor, MdxSourceView };
117
+ //# sourceMappingURL=index.js.map
118
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/mdx-live-preview.tsx","../../src/mdx-source-editor.tsx","../../src/mdx-source-view.tsx"],"names":["ReactComponent","useEffect","jsx","jsxs"],"m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AAQ,WAAA,CAAY,OAAA,GAAU,YAAY,SAAA,GAAY,CAAC,MAAM,WAAW,CAAA,CAAA;AAAA;AAClF;AAAA,GACF,GACE,IAAA;AAEJ,EAAA,uBACEC,IAAAA;AAAA,IAAC,KAAA;AAAA,IAAA;AAAA,MACC,SAAA,EAAW,CAAA,6JAAA,EAAgK,SAAA,IAAa,EAAE,CAAA,CAAA;AAAA,MAEzL,QAAA,EAAA;AAAA,QAAA,OAAA;AAAA,QACA,uBACCD,GAAAA,CAAC,KAAA,EAAA,EAAI,SAAA,EAAU,YAAW,uBAAA,EAAyB,EAAE,MAAA,EAAQ,IAAA,IAAQ,CAAA,mBAErEA,IAAC,KAAA,EAAA,EAAI,SAAA,EAAU,iDAAiD,QAAA,EAAA,MAAA,EAAO;AAAA;AAAA;AAAA,GAE3E;AAEJ","file":"index.js","sourcesContent":["// packages/mdx/src/mdx-live-preview.tsx\nimport { MDXProvider } from '@mdx-js/react'\nimport type { ComponentType, ReactNode } from 'react'\nimport { Component as ReactComponent, useEffect } from 'react'\nimport { useMdxRuntime } from './lib/use-mdx-runtime'\n\nclass MdxErrorBoundary extends ReactComponent<\n { children: ReactNode; resetKey: string; fallback: (e: Error) => ReactNode },\n { err: Error | null }\n> {\n state: { err: Error | null } = { err: null }\n static getDerivedStateFromError(err: Error) {\n return { err }\n }\n componentDidUpdate(prev: { resetKey: string }) {\n if (prev.resetKey !== this.props.resetKey && this.state.err) {\n this.setState({ err: null })\n }\n }\n render() {\n return this.state.err ? this.props.fallback(this.state.err) : this.props.children\n }\n}\n\nexport interface MdxLivePreviewProps {\n source: string\n components: Record<string, ComponentType<unknown>>\n onError?: (error: Error | null) => void\n}\n\n/**\n * Renders runtime-compiled MDX inside the given component scope, isolating\n * runtime throws in an error boundary. Compile errors are surfaced via onError\n * while the last good render stays on screen.\n */\nexport function MdxLivePreview({ source, components, onError }: MdxLivePreviewProps) {\n const { Component, error } = useMdxRuntime(source)\n\n useEffect(() => {\n onError?.(error)\n }, [error, onError])\n\n if (!Component) {\n return (\n <div className=\"text-muted-foreground flex h-full items-center justify-center p-8 text-sm\">\n Start typing MDX…\n </div>\n )\n }\n\n return (\n <MdxErrorBoundary\n fallback={e => <div className=\"text-destructive p-4 text-sm\">Runtime error: {e.message}</div>}\n resetKey={source}\n >\n <MDXProvider components={components}>\n <Component />\n </MDXProvider>\n </MdxErrorBoundary>\n )\n}\n","// packages/mdx/src/mdx-source-editor.tsx\nimport { useEffect, useState } from 'react'\nimport Editor from 'react-simple-code-editor'\nimport { highlightWithLoadedHighlighter, loadHighlighter } from './lib/use-shiki-highlight'\n\nexport interface MdxSourceEditorProps {\n value: string\n onChange: (next: string) => void\n className?: string\n}\n\nfunction escapeHtml(s: string): string {\n return s.replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;')\n}\n\n// react-simple-code-editor's highlight prop is synchronous; shiki loads async.\n// Return escaped plain text until the shared highlighter is ready (forced\n// re-render below), then highlighted spans. Single dark theme = real inline\n// colors that don't depend on theme CSS.\nfunction highlight(code: string): string {\n const html = highlightWithLoadedHighlighter(code)\n if (!html) return escapeHtml(code)\n return html\n .replace(/^<pre[^>]*>/, '')\n .replace(/<\\/pre>$/, '')\n .replace(/^<code[^>]*>/, '')\n .replace(/<\\/code>$/, '')\n}\n\n/**\n * Editable MDX surface — a textarea layered over shiki-highlighted output.\n * Sibling of the read-only MdxSourceView; the panel chooses which to show.\n */\nexport function MdxSourceEditor({ value, onChange, className }: MdxSourceEditorProps) {\n const [, force] = useState(0)\n useEffect(() => {\n let active = true\n // loadHighlighter() dynamically imports shiki and CAN reject; without the\n // rejection handler a failed load became an unhandled rejection. On failure\n // we simply stay on the escaped plain-text fallback in highlight().\n loadHighlighter().then(\n () => {\n if (active) force(n => n + 1)\n },\n () => {\n // no-op: highlight() already degrades to escaped plain text\n }\n )\n return () => {\n active = false\n }\n }, [])\n\n return (\n <div className={`bg-card/40 h-full overflow-auto ${className ?? ''}`}>\n <Editor\n highlight={highlight}\n onValueChange={onChange}\n padding={12}\n style={{\n fontFamily: 'ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace',\n fontSize: 12,\n lineHeight: 1.5,\n minHeight: '100%',\n }}\n textareaClassName=\"focus:outline-none\"\n value={value}\n />\n </div>\n )\n}\n","import { useEffect, useRef } from 'react'\nimport { useShikiHighlight } from './lib/use-shiki-highlight'\n\nexport interface MdxSourceViewProps {\n source: string\n /** 1-based, inclusive line range to highlight + scroll into view. */\n activeRange?: { startLine: number; endLine: number }\n className?: string\n}\n\n// Matches the forced `--pre` line-height and padding below, so the active-range\n// band lines up with shiki's rendered lines.\nconst LINE_HEIGHT = '1.5em'\nconst PRE_PADDING = '0.75rem' // Tailwind p-3\n\n/**\n * Read-only, syntax-highlighted view of MDX source. Presentation-only — no\n * docking/positioning. MDX is highlighted as `tsx` (JSX superset). When\n * `activeRange` is set, those lines get a subtle highlight band and are\n * scrolled into view.\n *\n * Phase-2 seam: a future editable `MdxSourceEditor` replaces this surface inside\n * the same panel shell without changing the source plumbing.\n */\nexport function MdxSourceView({ source, activeRange, className }: MdxSourceViewProps) {\n const html = useShikiHighlight(source, 'tsx')\n const activeRef = useRef<HTMLDivElement>(null)\n\n // Scroll the active band into view when the range or content changes.\n // `html` is a trigger, not read in the body: the band only has correct\n // geometry once the highlighted source has rendered.\n // html re-triggers the scroll after highlight renders\n useEffect(() => {\n if (!activeRange) return\n activeRef.current?.scrollIntoView({ block: 'nearest' })\n }, [activeRange, html])\n\n const overlay = activeRange ? (\n <div\n aria-hidden\n className=\"bg-primary/10 pointer-events-none absolute inset-x-0\"\n ref={activeRef}\n style={{\n // The shiki <pre> is padded by PRE_PADDING; offset the band to match.\n top: `calc(${PRE_PADDING} + ${activeRange.startLine - 1} * ${LINE_HEIGHT})`,\n height: `calc(${activeRange.endLine - activeRange.startLine + 1} * ${LINE_HEIGHT})`,\n }}\n />\n ) : null\n\n return (\n <div\n className={`bg-card/40 relative h-full overflow-auto font-mono text-xs [&_code]:leading-[1.5em] [&_pre]:!m-0 [&_pre]:!bg-transparent [&_pre]:p-3 [&_pre]:leading-[1.5em] ${className ?? ''}`}\n >\n {overlay}\n {html ? (\n <div className=\"relative\" dangerouslySetInnerHTML={{ __html: html }} />\n ) : (\n <pre className=\"text-muted-foreground m-0 p-3 leading-[1.5em]\">{source}</pre>\n )}\n </div>\n )\n}\n"]}
@@ -0,0 +1,87 @@
1
+ import * as React from 'react';
2
+ import { ComponentPropsWithoutRef, ReactNode } from 'react';
3
+ import { Frame, FrameFooter, FrameHeader, FramePanel } from '@atom63/ui-react';
4
+
5
+ declare const spacingClasses: {
6
+ readonly block: "my-6 first:mt-0 last:mb-0 sm:my-8";
7
+ readonly component: "my-5 first:mt-0 last:mb-0";
8
+ readonly media: "my-8 first:mt-0 last:mb-0 sm:my-10";
9
+ };
10
+ type MdxFrameSpacing = keyof typeof spacingClasses;
11
+ type MdxFrameRootElement = 'aside' | 'div' | 'figure';
12
+ type MdxFrameWidth = 'column' | 'wide' | 'bleed';
13
+ type MdxFrameItemTone = 'neutral' | 'negative' | 'positive' | 'warning';
14
+ type MdxFrameHeadingProps = {
15
+ className?: string;
16
+ description?: ReactNode;
17
+ descriptionClassName?: string;
18
+ title?: ReactNode;
19
+ titleClassName?: string;
20
+ };
21
+ declare function MdxFrameHeading({ className, description, descriptionClassName, title, titleClassName, }: MdxFrameHeadingProps): React.JSX.Element | null;
22
+ type MdxFrameChromeProps = ComponentPropsWithoutRef<typeof Frame>;
23
+ declare function MdxFrameChrome({ border, children, className, ...props }: MdxFrameChromeProps): React.JSX.Element;
24
+ type MdxFrameProps = Omit<ComponentPropsWithoutRef<'figure'>, 'children'> & {
25
+ as?: MdxFrameRootElement;
26
+ border?: MdxFrameChromeProps['border'];
27
+ children: ReactNode;
28
+ frameClassName?: string;
29
+ spacing?: MdxFrameSpacing;
30
+ width?: MdxFrameWidth;
31
+ };
32
+ declare const MdxFrame: React.ForwardRefExoticComponent<Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>, "ref">, "children"> & {
33
+ as?: MdxFrameRootElement;
34
+ border?: MdxFrameChromeProps["border"];
35
+ children: ReactNode;
36
+ frameClassName?: string;
37
+ spacing?: MdxFrameSpacing;
38
+ width?: MdxFrameWidth;
39
+ } & React.RefAttributes<HTMLElement>>;
40
+ type MdxFrameSurfaceProps = ComponentPropsWithoutRef<typeof FramePanel> & {
41
+ spacing?: MdxFrameSpacing;
42
+ width?: MdxFrameWidth;
43
+ };
44
+ declare function MdxFrameSurface({ border, children, className, spacing, width, ...props }: MdxFrameSurfaceProps): React.JSX.Element;
45
+ type FramedBlockHeaderProps = MdxFrameHeadingProps;
46
+ declare const FramedBlockHeader: typeof MdxFrameHeading;
47
+ type FramedBlockSpacing = MdxFrameSpacing;
48
+ type FramedBlockProps = MdxFrameProps;
49
+ declare const FramedBlock: React.ForwardRefExoticComponent<Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>, "ref">, "children"> & {
50
+ as?: MdxFrameRootElement;
51
+ border?: MdxFrameChromeProps["border"];
52
+ children: ReactNode;
53
+ frameClassName?: string;
54
+ spacing?: MdxFrameSpacing;
55
+ width?: MdxFrameWidth;
56
+ } & React.RefAttributes<HTMLElement>>;
57
+ type TechnicalFrameProps = {
58
+ border?: MdxFrameChromeProps['border'];
59
+ children: ReactNode;
60
+ className?: string;
61
+ dataNumbered?: boolean;
62
+ headerClassName?: string;
63
+ headerEnd?: ReactNode;
64
+ headerStart: ReactNode;
65
+ panelClassName?: string;
66
+ width?: MdxFrameWidth;
67
+ };
68
+ declare function TechnicalFrame({ border, children, className, dataNumbered, headerClassName, headerEnd, headerStart, panelClassName, width, }: TechnicalFrameProps): React.JSX.Element;
69
+ type MdxFrameHeaderProps = ComponentPropsWithoutRef<typeof FrameHeader>;
70
+ declare function MdxFrameHeader({ className, ...props }: MdxFrameHeaderProps): React.JSX.Element;
71
+ type MdxFrameTitleProps = ComponentPropsWithoutRef<'div'>;
72
+ declare function MdxFrameTitle({ className, ...props }: MdxFrameTitleProps): React.JSX.Element;
73
+ type MdxFrameDescriptionProps = ComponentPropsWithoutRef<'div'>;
74
+ declare function MdxFrameDescription({ className, ...props }: MdxFrameDescriptionProps): React.JSX.Element;
75
+ type MdxFramePanelProps = ComponentPropsWithoutRef<typeof FramePanel>;
76
+ declare function MdxFramePanel({ border, className, ...props }: MdxFramePanelProps): React.JSX.Element;
77
+ type MdxFrameItemPanelProps = Omit<MdxFramePanelProps, 'title'> & {
78
+ bodyClassName?: string;
79
+ eyebrow?: ReactNode;
80
+ title: ReactNode;
81
+ tone?: MdxFrameItemTone;
82
+ };
83
+ declare function MdxFrameItemPanel({ bodyClassName, children, className, eyebrow, title, tone, ...props }: MdxFrameItemPanelProps): React.JSX.Element;
84
+ type MdxFrameFooterProps = ComponentPropsWithoutRef<typeof FrameFooter>;
85
+ declare function MdxFrameFooter({ className, ...props }: MdxFrameFooterProps): React.JSX.Element;
86
+
87
+ export { type TechnicalFrameProps as A, FramedBlock as F, type MdxFrameItemTone as M, TechnicalFrame as T, FramedBlockHeader as a, type FramedBlockHeaderProps as b, type FramedBlockProps as c, type FramedBlockSpacing as d, MdxFrame as e, MdxFrameChrome as f, type MdxFrameChromeProps as g, MdxFrameDescription as h, type MdxFrameDescriptionProps as i, MdxFrameFooter as j, type MdxFrameFooterProps as k, MdxFrameHeader as l, type MdxFrameHeaderProps as m, type MdxFrameHeadingProps as n, MdxFrameItemPanel as o, type MdxFrameItemPanelProps as p, MdxFramePanel as q, type MdxFramePanelProps as r, type MdxFrameProps as s, type MdxFrameRootElement as t, type MdxFrameSpacing as u, MdxFrameSurface as v, type MdxFrameSurfaceProps as w, MdxFrameTitle as x, type MdxFrameTitleProps as y, type MdxFrameWidth as z };
@@ -0,0 +1,45 @@
1
+ import * as React$1 from 'react';
2
+ import { a as MDXContentProviderProps } from './mdx-provider-6gOypsy5.js';
3
+ export { E as ExampleContext, e as MDXContentProvider, b as MdxProviderVariant, c as blockMdxComponents, h as hasSkipClass, m as mdxComponents, u as useIsInsideExample, d as useMdxStyle } from './mdx-provider-6gOypsy5.js';
4
+ export { M as MDX_FIGURE_LIGHTBOX_GALLERY_ID } from './constants-CuaBcwMe.js';
5
+ export { a as PhotoSwipeGallery, c as PhotoSwipeImage, e as getRealImageDimensions } from './photo-swipe-CwzAHpP-.js';
6
+ export { C as CalloutType, m as mdxStyles } from './video-block-C0a5Yx9x.js';
7
+ import './blocks/credits-block-entry.js';
8
+ import './blocks/media-caption-entry.js';
9
+ import '@mdx-js/react';
10
+ import './slots-BvPdUMdY.js';
11
+ import '@atom63/ui-react';
12
+
13
+ interface ComparisonContextValue {
14
+ durationScale: number;
15
+ }
16
+ declare function ComparisonProvider({ children, durationScale, }: {
17
+ children: React.ReactNode;
18
+ durationScale: number;
19
+ }): React$1.JSX.Element;
20
+ declare function useComparisonContext(): ComparisonContextValue;
21
+
22
+ /**
23
+ * True when `href` should open in a new tab: off-origin http(s), protocol-relative,
24
+ * or absolute http(s) during SSR. Same-origin URLs, in-app paths (`/…`, `#…`),
25
+ * relative paths, and `mailto:` / `tel:` / `javascript:` stay in-tab / default behavior.
26
+ */
27
+ declare function isExternalMdxHref(href: string | undefined): boolean;
28
+
29
+ declare const articleNarrowProse: string;
30
+
31
+ /**
32
+ * Doc-specific overrides layered on top of mdxStyles.root.
33
+ *
34
+ * Body copy (p, ul, ol, li, blockquote) inherits sizing from the base
35
+ * mdxStyles — this file only adds layout and structural overrides
36
+ * unique to the component catalog / reference pages.
37
+ */
38
+ declare const docMdxStyles: {
39
+ readonly root: string;
40
+ };
41
+
42
+ /** Design-system docs: wider code blocks and doc rhythm (see `docMdxStyles`). */
43
+ declare function DocsMDXContentProvider({ variant, ...props }: MDXContentProviderProps): React$1.JSX.Element;
44
+
45
+ export { ComparisonProvider, DocsMDXContentProvider, MDXContentProviderProps, articleNarrowProse, docMdxStyles, isExternalMdxHref, useComparisonContext };
package/dist/index.js ADDED
@@ -0,0 +1,20 @@
1
+ import { MDXContentProvider } from './chunk-CSXZ2XEN.js';
2
+ export { MDXContentProvider, articleNarrowProse, blockMdxComponents, docMdxStyles, hasSkipClass, isExternalMdxHref, mdxComponents, useMdxStyle } from './chunk-CSXZ2XEN.js';
3
+ export { ComparisonProvider, ExampleContext, useComparisonContext, useIsInsideExample } from './chunk-EIY6ZR6T.js';
4
+ import './chunk-WZ6US342.js';
5
+ import './chunk-DJSENA7Q.js';
6
+ import './chunk-2RCEDZBB.js';
7
+ export { mdxStyles } from './chunk-FVCE4FER.js';
8
+ export { PhotoSwipeGallery, PhotoSwipeImage } from './chunk-34B2U2Y2.js';
9
+ import './chunk-OUEW54AC.js';
10
+ export { MDX_FIGURE_LIGHTBOX_GALLERY_ID, getRealImageDimensions } from './chunk-IART7J2U.js';
11
+ import './chunk-A3NG5VKX.js';
12
+ import { jsx } from 'react/jsx-runtime';
13
+
14
+ function DocsMDXContentProvider({ variant = "docs", ...props }) {
15
+ return /* @__PURE__ */ jsx(MDXContentProvider, { variant, ...props });
16
+ }
17
+
18
+ export { DocsMDXContentProvider };
19
+ //# sourceMappingURL=index.js.map
20
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/variants/docs-provider.tsx"],"names":[],"mappings":";;;;;;;;;;;;;AAQO,SAAS,uBAAuB,EAAE,OAAA,GAAU,MAAA,EAAQ,GAAG,OAAM,EAA4B;AAC9F,EAAA,uBAAO,GAAA,CAAC,kBAAA,EAAA,EAAuB,OAAA,EAAmB,GAAG,KAAA,EAAO,CAAA;AAC9D","file":"index.js","sourcesContent":["import {\n MDXContentProvider as BaseMDXContentProvider,\n type MDXContentProviderProps,\n} from '../mdx-provider'\n\nexport type { MDXContentProviderProps, MdxProviderVariant } from '../mdx-provider'\n\n/** Design-system docs: wider code blocks and doc rhythm (see `docMdxStyles`). */\nexport function DocsMDXContentProvider({ variant = 'docs', ...props }: MDXContentProviderProps) {\n return <BaseMDXContentProvider variant={variant} {...props} />\n}\n"]}