@gears-frontx/ui-kit 0.4.2 → 0.4.3

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 (150) hide show
  1. package/README.md +6 -5
  2. package/dist/alert.js +35 -24
  3. package/dist/alert.js.map +1 -1
  4. package/dist/attachment.js +117 -76
  5. package/dist/attachment.js.map +1 -1
  6. package/dist/avatar.js +43 -43
  7. package/dist/badge.js +14 -14
  8. package/dist/card.js +81 -44
  9. package/dist/card.js.map +1 -1
  10. package/dist/chart.js +50 -50
  11. package/dist/chunks/alert.Csv2-ccF.css +1 -0
  12. package/dist/chunks/attachment.BRyIQq3F.css +1 -0
  13. package/dist/chunks/avatar.7EUG65-M.css +1 -0
  14. package/dist/chunks/badge.BwUxa9PB.css +1 -0
  15. package/dist/chunks/card.DSiUMxGK.css +1 -0
  16. package/dist/chunks/chart.B9cGEno8.css +1 -0
  17. package/dist/chunks/code-block.r7Cm0ncj.css +1 -0
  18. package/dist/chunks/description-list.Cx-vFGJL.css +1 -0
  19. package/dist/chunks/empty.DWqLrSfF.css +1 -0
  20. package/dist/chunks/heading.DQxQs5po.css +1 -0
  21. package/dist/chunks/item.BQ70Khqj.css +1 -0
  22. package/dist/chunks/link.BOE4f-aB.css +1 -0
  23. package/dist/chunks/message-scroller.CBjPcz8Y.css +1 -0
  24. package/dist/chunks/sheet.BkZyzAbA.css +1 -0
  25. package/dist/chunks/sidebar.CIuN--7U.css +1 -0
  26. package/dist/chunks/slider.DY1XDCPw.css +1 -0
  27. package/dist/chunks/status-dot.39NKkKQF.css +1 -0
  28. package/dist/chunks/text.7frjnkUr.css +1 -0
  29. package/dist/chunks/visually-hidden.Bd2oAR5D.css +1 -0
  30. package/dist/code-block.d.ts +1 -0
  31. package/dist/code-block.js +152 -0
  32. package/dist/code-block.js.map +1 -0
  33. package/dist/command.js +63 -48
  34. package/dist/command.js.map +1 -1
  35. package/dist/components/alert/alert.d.ts +3 -2
  36. package/dist/components/alert/alert.d.ts.map +1 -1
  37. package/dist/components/attachment/attachment.d.ts +10 -3
  38. package/dist/components/attachment/attachment.d.ts.map +1 -1
  39. package/dist/components/card/card.d.ts +6 -4
  40. package/dist/components/card/card.d.ts.map +1 -1
  41. package/dist/components/code-block/code-block.d.ts +57 -0
  42. package/dist/components/code-block/code-block.d.ts.map +1 -0
  43. package/dist/components/code-block/public.d.ts +2 -0
  44. package/dist/components/code-block/public.d.ts.map +1 -0
  45. package/dist/components/command/command.d.ts +1 -1
  46. package/dist/components/command/command.d.ts.map +1 -1
  47. package/dist/components/description-list/description-list.d.ts +21 -0
  48. package/dist/components/description-list/description-list.d.ts.map +1 -0
  49. package/dist/components/description-list/public.d.ts +2 -0
  50. package/dist/components/description-list/public.d.ts.map +1 -0
  51. package/dist/components/empty/empty.d.ts +3 -2
  52. package/dist/components/empty/empty.d.ts.map +1 -1
  53. package/dist/components/heading/heading.d.ts +10 -0
  54. package/dist/components/heading/heading.d.ts.map +1 -0
  55. package/dist/components/heading/public.d.ts +2 -0
  56. package/dist/components/heading/public.d.ts.map +1 -0
  57. package/dist/components/input-otp/input-otp.d.ts +1 -1
  58. package/dist/components/input-otp/input-otp.d.ts.map +1 -1
  59. package/dist/components/item/item.d.ts +15 -6
  60. package/dist/components/item/item.d.ts.map +1 -1
  61. package/dist/components/link/link.d.ts +18 -0
  62. package/dist/components/link/link.d.ts.map +1 -0
  63. package/dist/components/link/public.d.ts +2 -0
  64. package/dist/components/link/public.d.ts.map +1 -0
  65. package/dist/components/sidebar/sidebar.d.ts +13 -3
  66. package/dist/components/sidebar/sidebar.d.ts.map +1 -1
  67. package/dist/components/slider/slider.d.ts +1 -1
  68. package/dist/components/slider/slider.d.ts.map +1 -1
  69. package/dist/components/table/table.d.ts.map +1 -1
  70. package/dist/components/text/public.d.ts +2 -0
  71. package/dist/components/text/public.d.ts.map +1 -0
  72. package/dist/components/text/text.d.ts +11 -0
  73. package/dist/components/text/text.d.ts.map +1 -0
  74. package/dist/components/visually-hidden/public.d.ts +2 -0
  75. package/dist/components/visually-hidden/public.d.ts.map +1 -0
  76. package/dist/components/visually-hidden/visually-hidden.d.ts +4 -0
  77. package/dist/components/visually-hidden/visually-hidden.d.ts.map +1 -0
  78. package/dist/description-list.d.ts +1 -0
  79. package/dist/description-list.js +78 -0
  80. package/dist/description-list.js.map +1 -0
  81. package/dist/docs/alert.md +8 -2
  82. package/dist/docs/attachment.md +20 -8
  83. package/dist/docs/avatar.md +8 -2
  84. package/dist/docs/badge.md +12 -11
  85. package/dist/docs/button.md +16 -4
  86. package/dist/docs/calendar.md +6 -0
  87. package/dist/docs/card.md +38 -6
  88. package/dist/docs/carousel.md +4 -2
  89. package/dist/docs/chart.md +23 -0
  90. package/dist/docs/code-block.md +114 -0
  91. package/dist/docs/description-list.md +53 -0
  92. package/dist/docs/empty.md +9 -3
  93. package/dist/docs/heading.md +60 -0
  94. package/dist/docs/item.md +70 -3
  95. package/dist/docs/link.md +48 -0
  96. package/dist/docs/message-scroller.md +5 -0
  97. package/dist/docs/sheet.md +20 -3
  98. package/dist/docs/sidebar.md +27 -0
  99. package/dist/docs/status-dot.md +2 -2
  100. package/dist/docs/switch.md +10 -4
  101. package/dist/docs/text.md +51 -0
  102. package/dist/docs/visually-hidden.md +44 -0
  103. package/dist/empty.js +47 -36
  104. package/dist/empty.js.map +1 -1
  105. package/dist/heading.d.ts +1 -0
  106. package/dist/heading.js +36 -0
  107. package/dist/heading.js.map +1 -0
  108. package/dist/index.d.ts +6 -0
  109. package/dist/index.d.ts.map +1 -1
  110. package/dist/index.js +427 -401
  111. package/dist/index.js.map +1 -1
  112. package/dist/input-otp.js +34 -20
  113. package/dist/input-otp.js.map +1 -1
  114. package/dist/item.js +119 -71
  115. package/dist/item.js.map +1 -1
  116. package/dist/link.d.ts +1 -0
  117. package/dist/link.js +55 -0
  118. package/dist/link.js.map +1 -0
  119. package/dist/message-scroller.js +24 -24
  120. package/dist/sheet.js +41 -41
  121. package/dist/sidebar.js +220 -206
  122. package/dist/sidebar.js.map +1 -1
  123. package/dist/slider.js +34 -21
  124. package/dist/slider.js.map +1 -1
  125. package/dist/status-dot.js +25 -25
  126. package/dist/table.js +172 -157
  127. package/dist/table.js.map +1 -1
  128. package/dist/text.d.ts +1 -0
  129. package/dist/text.js +53 -0
  130. package/dist/text.js.map +1 -0
  131. package/dist/theme.css +29 -6
  132. package/dist/utilities.css +25 -2
  133. package/dist/visually-hidden.d.ts +1 -0
  134. package/dist/visually-hidden.js +18 -0
  135. package/dist/visually-hidden.js.map +1 -0
  136. package/llms.txt +72 -15
  137. package/package.json +1 -1
  138. package/dist/chunks/alert.DsgRIXLn.css +0 -1
  139. package/dist/chunks/attachment.CZuZdlXC.css +0 -1
  140. package/dist/chunks/avatar.BMm-Z9l5.css +0 -1
  141. package/dist/chunks/badge.BCreEn3O.css +0 -1
  142. package/dist/chunks/card.DdBl-usf.css +0 -1
  143. package/dist/chunks/chart.CeyctrXQ.css +0 -1
  144. package/dist/chunks/empty.DnAKlw2g.css +0 -1
  145. package/dist/chunks/item.BkcgydVc.css +0 -1
  146. package/dist/chunks/message-scroller.CbLooS7Q.css +0 -1
  147. package/dist/chunks/sheet.BWvXXyXk.css +0 -1
  148. package/dist/chunks/sidebar.DdEvMURX.css +0 -1
  149. package/dist/chunks/slider.inyNxx4y.css +0 -1
  150. package/dist/chunks/status-dot.DWa2qGKe.css +0 -1
@@ -0,0 +1 @@
1
+ export * from './components/code-block/public.js'
@@ -0,0 +1,152 @@
1
+ "use client";
2
+ import { jsx as n, jsxs as z, Fragment as p } from "react/jsx-runtime";
3
+ import { cx as c, cva as v } from "class-variance-authority";
4
+ import { CheckIcon as h, CopyIcon as q } from "lucide-react";
5
+ import { useState as B, useEffect as y, Children as C } from "react";
6
+ import { Button as D } from "./button.js";
7
+ import './chunks/code-block.r7Cm0ncj.css';const g = "_codeBlock_1qzo7_11", k = "_variantDefault_1qzo7_24", N = "_variantDestructive_1qzo7_29", A = "_sizeDefault_1qzo7_36", x = "_sizeSm_1qzo7_39", b = "_content_1qzo7_49", w = "_header_1qzo7_61", H = "_title_1qzo7_80", R = "_actions_1qzo7_119", S = "_copyButton_1qzo7_168", O = "_footer_1qzo7_198", T = "_wrap_1qzo7_205", V = "_code_1qzo7_11", I = "_numbered_1qzo7_218", j = "_line_1qzo7_223", F = "_lineContent_1qzo7_274", $ = "_lineDefault_1qzo7_278", E = "_lineAdded_1qzo7_282", L = "_lineHighlighted_1qzo7_283", P = "_lineRemoved_1qzo7_291", G = "_srOnly_1qzo7_316", e = {
8
+ codeBlock: g,
9
+ variantDefault: k,
10
+ variantDestructive: N,
11
+ sizeDefault: A,
12
+ sizeSm: x,
13
+ content: b,
14
+ header: w,
15
+ title: H,
16
+ actions: R,
17
+ copyButton: S,
18
+ footer: O,
19
+ wrap: T,
20
+ code: V,
21
+ numbered: I,
22
+ line: j,
23
+ lineContent: F,
24
+ lineDefault: $,
25
+ lineAdded: E,
26
+ lineHighlighted: L,
27
+ lineRemoved: P,
28
+ srOnly: G
29
+ }, J = v(e.codeBlock, {
30
+ variants: {
31
+ variant: {
32
+ default: e.variantDefault,
33
+ destructive: e.variantDestructive
34
+ },
35
+ size: {
36
+ default: e.sizeDefault,
37
+ sm: e.sizeSm
38
+ }
39
+ },
40
+ defaultVariants: {
41
+ variant: "default",
42
+ size: "default"
43
+ }
44
+ });
45
+ function Z({ className: o, variant: t, size: i, ...a }) {
46
+ return /* @__PURE__ */ n("div", { className: J({ variant: t, size: i, className: o }), ...a });
47
+ }
48
+ function ee({ className: o, ...t }) {
49
+ return /* @__PURE__ */ n("div", { className: c(e.header, o), ...t });
50
+ }
51
+ function te({ className: o, ...t }) {
52
+ return /* @__PURE__ */ n("div", { className: c(e.title, o), ...t });
53
+ }
54
+ function oe({ className: o, ...t }) {
55
+ return /* @__PURE__ */ n("div", { className: c(e.actions, o), ...t });
56
+ }
57
+ function ne({
58
+ value: o,
59
+ copyLabel: t = "Copy",
60
+ copiedLabel: i = "Copied",
61
+ variant: a = "ghost",
62
+ size: l = "sm",
63
+ className: s,
64
+ onClick: r,
65
+ ...u
66
+ }) {
67
+ const [d, m] = B(null), _ = d !== null;
68
+ return y(() => {
69
+ if (d === null)
70
+ return;
71
+ const f = setTimeout(() => m(null), 2e3);
72
+ return () => clearTimeout(f);
73
+ }, [d]), /* @__PURE__ */ z(p, { children: [
74
+ /* @__PURE__ */ n(
75
+ D,
76
+ {
77
+ variant: a,
78
+ size: l,
79
+ "aria-label": _ ? i : t,
80
+ className: c(e.copyButton, s),
81
+ icon: _ ? /* @__PURE__ */ n(h, {}) : /* @__PURE__ */ n(q, {}),
82
+ onClick: (f) => {
83
+ r == null || r(f), Promise.resolve().then(() => navigator.clipboard.writeText(o)).then(() => m(Date.now())).catch(() => {
84
+ });
85
+ },
86
+ ...u
87
+ }
88
+ ),
89
+ /* @__PURE__ */ n("span", { "aria-live": "polite", className: e.srOnly, children: _ ? i : "" })
90
+ ] });
91
+ }
92
+ function ie({
93
+ className: o,
94
+ children: t,
95
+ style: i,
96
+ wrap: a = !1,
97
+ lineNumbers: l = !1,
98
+ startLine: s = 1,
99
+ ...r
100
+ }) {
101
+ return /* @__PURE__ */ n(
102
+ "pre",
103
+ {
104
+ dir: "ltr",
105
+ tabIndex: 0,
106
+ style: { counterReset: `line ${s - 1}`, ...i },
107
+ className: c(
108
+ e.content,
109
+ a ? "scroll-fade-y" : "scroll-fade-x",
110
+ a && e.wrap,
111
+ l && e.numbered,
112
+ o
113
+ ),
114
+ ...r,
115
+ children: /* @__PURE__ */ n("code", { className: e.code, children: l && typeof t == "string" ? t.replace(/\n$/, "").split(`
116
+ `).map((u, d) => /* @__PURE__ */ n(M, { children: u }, d)) : t })
117
+ }
118
+ );
119
+ }
120
+ const K = v(e.line, {
121
+ variants: {
122
+ variant: {
123
+ default: e.lineDefault,
124
+ added: e.lineAdded,
125
+ removed: e.lineRemoved,
126
+ highlighted: e.lineHighlighted
127
+ }
128
+ },
129
+ defaultVariants: {
130
+ variant: "default"
131
+ }
132
+ });
133
+ function M({ className: o, variant: t, children: i, ...a }) {
134
+ const l = C.toArray(i).every((s) => s === "");
135
+ return /* @__PURE__ */ n("span", { className: K({ variant: t, className: o }), ...a, children: /* @__PURE__ */ n("span", { className: e.lineContent, children: l ? `
136
+ ` : i }) });
137
+ }
138
+ function ae({ className: o, ...t }) {
139
+ return /* @__PURE__ */ n("div", { className: c(e.footer, o), ...t });
140
+ }
141
+ export {
142
+ Z as CodeBlock,
143
+ oe as CodeBlockActions,
144
+ ie as CodeBlockContent,
145
+ ne as CodeBlockCopyButton,
146
+ ae as CodeBlockFooter,
147
+ ee as CodeBlockHeader,
148
+ M as CodeBlockLine,
149
+ te as CodeBlockTitle,
150
+ J as codeBlockVariants
151
+ };
152
+ //# sourceMappingURL=code-block.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"code-block.js","sources":["../src/components/code-block/code-block.tsx"],"sourcesContent":["'use client';\n\nimport { cva, cx, type VariantProps } from 'class-variance-authority';\nimport { CheckIcon, CopyIcon } from 'lucide-react';\nimport { Children, type ComponentProps, type CSSProperties, useEffect, useState } from 'react';\n\nimport { Button, type ButtonProps } from '../button/button';\nimport styles from './code-block.module.css';\n\n/*\n * CodeBlock, translated from shadcn/ui's base CodeBlock (MIT,\n * registry/bases/base/ui/code-block.tsx) to CSS Modules: a frame with an\n * optional header (title and actions) over a focusable `pre`, an optional\n * footer, and line parts for numbers, diffs and highlighted lines. No Base\n * UI primitive. Syntax highlighting is not ported: upstream keeps it in a\n * separate hook (`useHighlightedCode`, Shiki), which would add a\n * highlighter to every consumer; a consumer that highlights passes the\n * tokens as CodeBlockLine children.\n *\n * Deviations, per the kit-wide conventions: no `data-slot`/`data-*` state\n * attributes (the size, variant, wrap and numbering hooks are classes, and\n * the parts find each other through `:has()` on their classes); the focus\n * state is the kit's border recolour plus inset ring rather than upstream's\n * `ring-3` halo; the copy button is the kit's icon-only Button (`size=\"sm\"`,\n * the glyph in its `icon` slot) and takes `copyLabel`/`copiedLabel` so the\n * announced words can be translated.\n */\n\nconst codeBlockVariants = cva(styles.codeBlock, {\n variants: {\n variant: {\n default: styles.variantDefault,\n destructive: styles.variantDestructive,\n },\n size: {\n default: styles.sizeDefault,\n sm: styles.sizeSm,\n },\n },\n defaultVariants: {\n variant: 'default',\n size: 'default',\n },\n});\n\nexport interface CodeBlockProps\n extends ComponentProps<'div'>, VariantProps<typeof codeBlockVariants> {}\n\nexport function CodeBlock({ className, variant, size, ...props }: CodeBlockProps) {\n return <div className={codeBlockVariants({ variant, size, className })} {...props} />;\n}\n\nexport type CodeBlockHeaderProps = ComponentProps<'div'>;\n\nexport function CodeBlockHeader({ className, ...props }: CodeBlockHeaderProps) {\n return <div className={cx(styles.header, className)} {...props} />;\n}\n\nexport type CodeBlockTitleProps = ComponentProps<'div'>;\n\n/** One line, cut with an ellipsis; an svg before the text is sized to it. */\nexport function CodeBlockTitle({ className, ...props }: CodeBlockTitleProps) {\n return <div className={cx(styles.title, className)} {...props} />;\n}\n\nexport type CodeBlockActionsProps = ComponentProps<'div'>;\n\n/**\n * Inside CodeBlockHeader it sits at the end of the row. As a direct child\n * of CodeBlock (no header) it floats over the top end of the block and\n * shows on hover or focus, and always on a coarse pointer.\n */\nexport function CodeBlockActions({ className, ...props }: CodeBlockActionsProps) {\n return <div className={cx(styles.actions, className)} {...props} />;\n}\n\nexport interface CodeBlockCopyButtonProps\n extends Omit<\n ButtonProps,\n 'icon' | 'end' | 'children' | 'render' | 'nativeButton' | 'aria-label'\n > {\n /** The text written to the clipboard. */\n value: string;\n /** The button's accessible name before a copy. @default 'Copy' */\n copyLabel?: string;\n /** The button's accessible name and the announcement after a copy. @default 'Copied' */\n copiedLabel?: string;\n}\n\n/*\n * Upstream's copy flow: write `value`, switch to the check glyph and the\n * copied name for two seconds, and say it once in a polite live region. A\n * refused write changes nothing (upstream swallows it the same way), and\n * so does a missing clipboard (an insecure context), which would otherwise\n * throw before any promise exists. The reset timer lives in an effect\n * keyed on the time of the last copy, so a second copy within the two\n * seconds restarts it, and an unmount clears it.\n */\nexport function CodeBlockCopyButton({\n value,\n copyLabel = 'Copy',\n copiedLabel = 'Copied',\n variant = 'ghost',\n size = 'sm',\n className,\n onClick,\n ...props\n}: CodeBlockCopyButtonProps) {\n const [copiedAt, setCopiedAt] = useState<number | null>(null);\n const copied = copiedAt !== null;\n\n useEffect(() => {\n if (copiedAt === null) {\n return;\n }\n const timeout = setTimeout(() => setCopiedAt(null), 2000);\n return () => clearTimeout(timeout);\n }, [copiedAt]);\n\n return (\n <>\n <Button\n variant={variant}\n size={size}\n aria-label={copied ? copiedLabel : copyLabel}\n className={cx(styles.copyButton, className)}\n icon={copied ? <CheckIcon /> : <CopyIcon />}\n onClick={(event) => {\n onClick?.(event);\n Promise.resolve()\n .then(() => navigator.clipboard.writeText(value))\n .then(() => setCopiedAt(Date.now()))\n .catch(() => {});\n }}\n {...props}\n />\n <span aria-live=\"polite\" className={styles.srOnly}>\n {copied ? copiedLabel : ''}\n </span>\n </>\n );\n}\n\nexport interface CodeBlockContentProps extends ComponentProps<'pre'> {\n /**\n * Soft-wrap long lines instead of scrolling them sideways.\n * @default false\n */\n wrap?: boolean;\n /**\n * Number the lines. A string child is split into CodeBlockLine parts;\n * CodeBlockLine children are numbered as they are.\n * @default false\n */\n lineNumbers?: boolean;\n /** The number of the first line. @default 1 */\n startLine?: number;\n}\n\n/*\n * The `pre` is always a tab stop, so a keyboard user can scroll a long\n * line (axe `scrollable-region-focusable`); name it with `aria-label` when\n * the page holds several blocks. It is always left to right, whatever the\n * page direction. Line numbers come from a CSS counter the `pre` resets\n * to `startLine - 1`, so they stay out of a copied selection.\n */\nexport function CodeBlockContent({\n className,\n children,\n style,\n wrap = false,\n lineNumbers = false,\n startLine = 1,\n ...props\n}: CodeBlockContentProps) {\n return (\n <pre\n dir=\"ltr\"\n tabIndex={0}\n style={{ counterReset: `line ${startLine - 1}`, ...style } as CSSProperties}\n className={cx(\n styles.content,\n wrap ? 'scroll-fade-y' : 'scroll-fade-x',\n wrap && styles.wrap,\n lineNumbers && styles.numbered,\n className,\n )}\n {...props}\n >\n <code className={styles.code}>\n {lineNumbers && typeof children === 'string'\n ? children\n .replace(/\\n$/, '')\n .split('\\n')\n .map((line, index) => <CodeBlockLine key={index}>{line}</CodeBlockLine>)\n : children}\n </code>\n </pre>\n );\n}\n\nconst codeBlockLineVariants = cva(styles.line, {\n variants: {\n variant: {\n default: styles.lineDefault,\n added: styles.lineAdded,\n removed: styles.lineRemoved,\n highlighted: styles.lineHighlighted,\n },\n },\n defaultVariants: {\n variant: 'default',\n },\n});\n\nexport interface CodeBlockLineProps\n extends ComponentProps<'span'>, VariantProps<typeof codeBlockLineVariants> {}\n\nexport function CodeBlockLine({ className, variant, children, ...props }: CodeBlockLineProps) {\n // An empty line holds a newline so copying a selection keeps blank lines.\n // `Children.toArray` drops null, undefined and booleans, so a line whose\n // children all render nothing counts as empty too.\n const empty = Children.toArray(children).every((child) => child === '');\n\n return (\n <span className={codeBlockLineVariants({ variant, className })} {...props}>\n <span className={styles.lineContent}>{empty ? '\\n' : children}</span>\n </span>\n );\n}\n\nexport type CodeBlockFooterProps = ComponentProps<'div'>;\n\nexport function CodeBlockFooter({ className, ...props }: CodeBlockFooterProps) {\n return <div className={cx(styles.footer, className)} {...props} />;\n}\n\nexport { codeBlockVariants };\n"],"names":["codeBlockVariants","cva","styles","CodeBlock","className","variant","size","props","jsx","CodeBlockHeader","cx","CodeBlockTitle","CodeBlockActions","CodeBlockCopyButton","value","copyLabel","copiedLabel","onClick","copiedAt","setCopiedAt","useState","copied","useEffect","timeout","jsxs","Fragment","Button","CheckIcon","CopyIcon","event","CodeBlockContent","children","style","wrap","lineNumbers","startLine","line","index","CodeBlockLine","codeBlockLineVariants","empty","Children","child","CodeBlockFooter"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BMA,IAAoBC,EAAIC,EAAO,WAAW;AAAA,EAC9C,UAAU;AAAA,IACR,SAAS;AAAA,MACP,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A;AAAA,MAED,GAAGG;AAAA,MAEJ,UAAA,gBAAAC,EAAC,QAAA,EAAK,WAAWN,EAAO,MACrB,UAAAgC,KAAe,OAAOH,KAAa,WAChCA,EACG,QAAQ,OAAO,EAAE,EACjB,MAAM;AAAA,CAAI,EACV,IAAI,CAACK,GAAMC,MAAU,gBAAA7B,EAAC8B,GAAA,EAA2B,UAAAF,EAAA,GAARC,CAAa,CAAgB,IACzEN,EAAA,CACN;AAAA,IAAA;AAAA,EAAA;AAGN;AAEA,MAAMQ,IAAwBtC,EAAIC,EAAO,MAAM;AAAA,EAC7C,UAAU;AAAA,IACR,SAAS;AAAA,MACP,SAASA,EAAO;AAAA,MAChB,OAAOA,EAAO;AAAA,MACd,SAASA,EAAO;AAAA,MAChB,aAAaA,EAAO;AAAA,IAAA;AAAA,EACtB;AAAA,EAEF,iBAAiB;AAAA,IACf,SAAS;AAAA,EAAA;AAEb,CAAC;AAKM,SAASoC,EAAc,EAAE,WAAAlC,GAAW,SAAAC,GAAS,UAAA0B,GAAU,GAAGxB,KAA6B;AAI5F,QAAMiC,IAAQC,EAAS,QAAQV,CAAQ,EAAE,MAAM,CAACW,MAAUA,MAAU,EAAE;AAEtE,2BACG,QAAA,EAAK,WAAWH,EAAsB,EAAE,SAAAlC,GAAS,WAAAD,GAAW,GAAI,GAAGG,GAClE,UAAA,gBAAAC,EAAC,UAAK,WAAWN,EAAO,aAAc,UAAAsC,IAAQ;AAAA,IAAOT,GAAS,GAChE;AAEJ;AAIO,SAASY,GAAgB,EAAE,WAAAvC,GAAW,GAAGG,KAA+B;AAC7E,SAAO,gBAAAC,EAAC,SAAI,WAAWE,EAAGR,EAAO,QAAQE,CAAS,GAAI,GAAGG,GAAO;AAClE;"}
package/dist/command.js CHANGED
@@ -1,75 +1,90 @@
1
- import { jsx as r, jsxs as c } from "react/jsx-runtime";
2
- import { Command as m } from "cmdk";
1
+ "use client";
2
+ import { jsx as r, jsxs as i } from "react/jsx-runtime";
3
+ import { Command as m, useCommandState as _ } from "cmdk";
3
4
  import { cx as a } from "class-variance-authority";
4
- import { SearchIcon as u } from "lucide-react";
5
- import { Dialog as l, DialogHeader as _, DialogTitle as d, DialogDescription as g, DialogContent as f } from "./dialog.js";
6
- import './chunks/command.BBW1Cy-M.css';const h = "_command_1nrt6_16", C = "_dialogPopup_1nrt6_38", I = "_srOnly_1nrt6_52", N = "_inputWrapper_1nrt6_69", y = "_inputIcon_1nrt6_77", D = "_input_1nrt6_69", v = "_list_1nrt6_113", P = "_empty_1nrt6_120", S = "_group_1nrt6_128", x = "_item_1nrt6_146", O = "_shortcut_1nrt6_187", W = "_separator_1nrt6_202", j = "_svgIcon_1nrt6_209", o = {
7
- command: h,
8
- dialogPopup: C,
9
- srOnly: I,
10
- inputWrapper: N,
11
- inputIcon: y,
12
- input: D,
13
- list: v,
14
- empty: P,
15
- group: S,
16
- item: x,
17
- shortcut: O,
18
- separator: W,
19
- svgIcon: j
5
+ import { SearchIcon as d } from "lucide-react";
6
+ import { isValidElement as g, cloneElement as f } from "react";
7
+ import { Dialog as C, DialogHeader as N, DialogTitle as h, DialogDescription as I, DialogContent as y } from "./dialog.js";
8
+ import './chunks/command.BBW1Cy-M.css';const D = "_command_1nrt6_16", v = "_dialogPopup_1nrt6_38", P = "_srOnly_1nrt6_52", S = "_inputWrapper_1nrt6_69", x = "_inputIcon_1nrt6_77", E = "_input_1nrt6_69", O = "_list_1nrt6_113", W = "_empty_1nrt6_120", j = "_group_1nrt6_128", G = "_item_1nrt6_146", L = "_shortcut_1nrt6_187", k = "_separator_1nrt6_202", w = "_svgIcon_1nrt6_209", o = {
9
+ command: D,
10
+ dialogPopup: v,
11
+ srOnly: P,
12
+ inputWrapper: S,
13
+ inputIcon: x,
14
+ input: E,
15
+ list: O,
16
+ empty: W,
17
+ group: j,
18
+ item: G,
19
+ shortcut: L,
20
+ separator: k,
21
+ svgIcon: w
20
22
  };
21
- function E({ className: n, ...t }) {
23
+ function H({ className: n, ...t }) {
22
24
  return /* @__PURE__ */ r(m, { className: a(o.command, n), ...t });
23
25
  }
24
- function b({
26
+ function A({
25
27
  title: n = "Command Palette",
26
28
  description: t = "Search for a command to run...",
27
- children: s,
28
- className: e,
29
- showCloseButton: i = !1,
29
+ children: e,
30
+ className: s,
31
+ showCloseButton: c = !1,
30
32
  ...p
31
33
  }) {
32
- return /* @__PURE__ */ c(l, { ...p, children: [
33
- /* @__PURE__ */ c(_, { className: o.srOnly, children: [
34
- /* @__PURE__ */ r(d, { children: n }),
35
- /* @__PURE__ */ r(g, { children: t })
34
+ return /* @__PURE__ */ i(C, { ...p, children: [
35
+ /* @__PURE__ */ i(N, { className: o.srOnly, children: [
36
+ /* @__PURE__ */ r(h, { children: n }),
37
+ /* @__PURE__ */ r(I, { children: t })
36
38
  ] }),
37
- /* @__PURE__ */ r(f, { className: a(o.dialogPopup, e), showCloseButton: i, children: /* @__PURE__ */ r(E, { className: o.command, children: s }) })
39
+ /* @__PURE__ */ r(y, { className: a(o.dialogPopup, s), showCloseButton: c, children: /* @__PURE__ */ r(H, { className: o.command, children: e }) })
38
40
  ] });
39
41
  }
40
- function k({ className: n, wrapperClassName: t, ...s }) {
41
- return /* @__PURE__ */ c("div", { className: a(o.inputWrapper, t), children: [
42
- /* @__PURE__ */ r(u, { className: a(o.svgIcon, o.inputIcon) }),
43
- /* @__PURE__ */ r(m.Input, { className: a(o.input, n), ...s })
42
+ function B({ className: n, wrapperClassName: t, ...e }) {
43
+ return /* @__PURE__ */ i("div", { className: a(o.inputWrapper, t), children: [
44
+ /* @__PURE__ */ r(d, { className: a(o.svgIcon, o.inputIcon) }),
45
+ /* @__PURE__ */ r(m.Input, { className: a(o.input, n), ...e })
44
46
  ] });
45
47
  }
46
- function q({ className: n, ...t }) {
48
+ function F({ className: n, ...t }) {
47
49
  return /* @__PURE__ */ r(m.List, { className: a(o.list, n), ...t });
48
50
  }
49
- function w({ className: n, ...t }) {
51
+ function J({ className: n, ...t }) {
50
52
  return /* @__PURE__ */ r(m.Empty, { className: a(o.empty, n), ...t });
51
53
  }
52
- function z({ className: n, ...t }) {
54
+ function K({ className: n, ...t }) {
53
55
  return /* @__PURE__ */ r(m.Group, { className: a(o.group, n), ...t });
54
56
  }
55
- function A({ className: n, ...t }) {
57
+ function M({ className: n, ...t }) {
56
58
  return /* @__PURE__ */ r(m.Item, { className: a(o.item, n), ...t });
57
59
  }
58
- function B({ className: n, ...t }) {
60
+ function Q({ className: n, ...t }) {
59
61
  return /* @__PURE__ */ r("span", { className: a(o.shortcut, n), ...t });
60
62
  }
61
- function F({ className: n, ...t }) {
62
- return /* @__PURE__ */ r(m.Separator, { className: a(o.separator, n), ...t });
63
+ function R({
64
+ className: n,
65
+ alwaysRender: t,
66
+ asChild: e,
67
+ children: s,
68
+ ...c
69
+ }) {
70
+ if (_((l) => l.search !== "") && !t)
71
+ return null;
72
+ const u = { role: "none", "cmdk-separator": "" };
73
+ return e && g(s) ? f(s, {
74
+ ...c,
75
+ ...u,
76
+ className: a(o.separator, n, s.props.className)
77
+ }) : /* @__PURE__ */ r("div", { ...u, className: a(o.separator, n), ...c, children: s });
63
78
  }
64
79
  export {
65
- E as Command,
66
- b as CommandDialog,
67
- w as CommandEmpty,
68
- z as CommandGroup,
69
- k as CommandInput,
70
- A as CommandItem,
71
- q as CommandList,
72
- F as CommandSeparator,
73
- B as CommandShortcut
80
+ H as Command,
81
+ A as CommandDialog,
82
+ J as CommandEmpty,
83
+ K as CommandGroup,
84
+ B as CommandInput,
85
+ M as CommandItem,
86
+ F as CommandList,
87
+ R as CommandSeparator,
88
+ Q as CommandShortcut
74
89
  };
75
90
  //# sourceMappingURL=command.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"command.js","sources":["../src/components/command/command.tsx"],"sourcesContent":["import { Command as CommandPrimitive } from 'cmdk';\nimport { cx } from 'class-variance-authority';\nimport { SearchIcon } from 'lucide-react';\nimport type { ComponentProps, ReactNode } from 'react';\n\nimport {\n Dialog,\n DialogContent,\n DialogDescription,\n DialogHeader,\n DialogTitle,\n type DialogProps,\n} from '../dialog/public.js';\nimport styles from './command.module.css';\n\nexport type CommandProps = ComponentProps<typeof CommandPrimitive>;\n\nexport function Command({ className, ...props }: CommandProps) {\n return <CommandPrimitive className={cx(styles.command, className)} {...props} />;\n}\n\nexport interface CommandDialogProps extends Omit<DialogProps, 'children'> {\n /**\n * Accessible name for the palette — visually hidden, only reaches\n * screen readers via the dialog's title association. @default 'Command Palette'\n */\n title?: ReactNode;\n /** Accessible description, same visually-hidden treatment as `title`. @default 'Search for a command to run...' */\n description?: ReactNode;\n className?: string;\n /**\n * Renders DialogContent's built-in top-right close (X) button.\n * @default false — the palette already dismisses on Escape/outside-press\n * (Dialog's own behavior) and a close button competes with the search\n * input for the popup's one-line header, unlike a regular Dialog where\n * that header has room to spare.\n */\n showCloseButton?: boolean;\n children: ReactNode;\n}\n\nexport function CommandDialog({\n title = 'Command Palette',\n description = 'Search for a command to run...',\n children,\n className,\n showCloseButton = false,\n ...props\n}: CommandDialogProps) {\n return (\n <Dialog {...props}>\n <DialogHeader className={styles.srOnly}>\n <DialogTitle>{title}</DialogTitle>\n <DialogDescription>{description}</DialogDescription>\n </DialogHeader>\n <DialogContent className={cx(styles.dialogPopup, className)} showCloseButton={showCloseButton}>\n {/*\n * CommandInput/CommandList/CommandItem/CommandGroup all read their\n * shared state off the nearest ancestor <Command> root's React\n * context (cmdk's internal Provider pair) — without this wrapper\n * they don't just lose styling, `Command.Item`'s registration\n * effect throws trying to call a context value that doesn't exist.\n * cmdk's own bundled `Command.Dialog` (which this kit does NOT use,\n * composing its own Dialog instead — see command.md) wraps its\n * children in exactly this same root internally, for the same\n * reason.\n */}\n <Command className={styles.command}>{children}</Command>\n </DialogContent>\n </Dialog>\n );\n}\n\nexport interface CommandInputProps\n extends Omit<ComponentProps<typeof CommandPrimitive.Input>, 'className'> {\n className?: string;\n /** className for the wrapper div around the icon + input. */\n wrapperClassName?: string;\n}\n\nexport function CommandInput({ className, wrapperClassName, ...props }: CommandInputProps) {\n return (\n <div className={cx(styles.inputWrapper, wrapperClassName)}>\n <SearchIcon className={cx(styles.svgIcon, styles.inputIcon)} />\n <CommandPrimitive.Input className={cx(styles.input, className)} {...props} />\n </div>\n );\n}\n\nexport type CommandListProps = ComponentProps<typeof CommandPrimitive.List>;\n\nexport function CommandList({ className, ...props }: CommandListProps) {\n return <CommandPrimitive.List className={cx(styles.list, className)} {...props} />;\n}\n\nexport type CommandEmptyProps = ComponentProps<typeof CommandPrimitive.Empty>;\n\nexport function CommandEmpty({ className, ...props }: CommandEmptyProps) {\n return <CommandPrimitive.Empty className={cx(styles.empty, className)} {...props} />;\n}\n\nexport type CommandGroupProps = ComponentProps<typeof CommandPrimitive.Group>;\n\nexport function CommandGroup({ className, ...props }: CommandGroupProps) {\n return <CommandPrimitive.Group className={cx(styles.group, className)} {...props} />;\n}\n\nexport type CommandItemProps = ComponentProps<typeof CommandPrimitive.Item>;\n\nexport function CommandItem({ className, ...props }: CommandItemProps) {\n return <CommandPrimitive.Item className={cx(styles.item, className)} {...props} />;\n}\n\nexport type CommandShortcutProps = ComponentProps<'span'>;\n\nexport function CommandShortcut({ className, ...props }: CommandShortcutProps) {\n return <span className={cx(styles.shortcut, className)} {...props} />;\n}\n\nexport type CommandSeparatorProps = ComponentProps<typeof CommandPrimitive.Separator>;\n\nexport function CommandSeparator({ className, ...props }: CommandSeparatorProps) {\n return <CommandPrimitive.Separator className={cx(styles.separator, className)} {...props} />;\n}\n"],"names":["Command","className","props","jsx","CommandPrimitive","cx","styles","CommandDialog","title","description","children","showCloseButton","jsxs","Dialog","DialogHeader","DialogTitle","DialogDescription","DialogContent","CommandInput","wrapperClassName","SearchIcon","CommandList","CommandEmpty","CommandGroup","CommandItem","CommandShortcut","CommandSeparator"],"mappings":";;;;;;;;;;;;;;;;;;;;AAiBO,SAASA,EAAQ,EAAE,WAAAC,GAAW,GAAGC,KAAuB;AAC7D,SAAO,gBAAAC,EAACC,KAAiB,WAAWC,EAAGC,EAAO,S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B,OAAjB,EAAuB,WAAWC,EAAGC,EAAO,OAAOL,CAAS,GAAI,GAAGC,EAAA,CAAO;AACpF;AAIO,SAASqB,EAAa,EAAE,WAAAtB,GAAW,GAAGC,KAA4B;AACvE,SAAO,gBAAAC,EAACC,EAAiB,OAAjB,EAAuB,WAAWC,EAAGC,EAAO,OAAOL,CAAS,GAAI,GAAGC,EAAA,CAAO;AACpF;AAIO,SAASsB,EAAY,EAAE,WAAAvB,GAAW,GAAGC,KAA2B;AACrE,SAAO,gBAAAC,EAACC,EAAiB,MAAjB,EAAsB,WAAWC,EAAGC,EAAO,MAAML,CAAS,GAAI,GAAGC,EAAA,CAAO;AAClF;AAIO,SAASuB,EAAgB,EAAE,WAAAxB,GAAW,GAAGC,KAA+B;AAC7E,SAAO,gBAAAC,EAAC,UAAK,WAAWE,EAAGC,EAAO,UAAUL,CAAS,GAAI,GAAGC,GAAO;AACrE;AAIO,SAASwB,EAAiB,EAAE,WAAAzB,GAAW,GAAGC,KAAgC;AAC/E,SAAO,gBAAAC,EAACC,EAAiB,WAAjB,EAA2B,WAAWC,EAAGC,EAAO,WAAWL,CAAS,GAAI,GAAGC,EAAA,CAAO;AAC5F;"}
1
+ {"version":3,"file":"command.js","sources":["../src/components/command/command.tsx"],"sourcesContent":["'use client';\n\nimport { Command as CommandPrimitive, useCommandState } from 'cmdk';\nimport { cx } from 'class-variance-authority';\nimport { SearchIcon } from 'lucide-react';\nimport { cloneElement, type ComponentProps, isValidElement, type ReactNode } from 'react';\n\nimport {\n Dialog,\n DialogContent,\n DialogDescription,\n DialogHeader,\n DialogTitle,\n type DialogProps,\n} from '../dialog/public.js';\nimport styles from './command.module.css';\n\nexport type CommandProps = ComponentProps<typeof CommandPrimitive>;\n\nexport function Command({ className, ...props }: CommandProps) {\n return <CommandPrimitive className={cx(styles.command, className)} {...props} />;\n}\n\nexport interface CommandDialogProps extends Omit<DialogProps, 'children'> {\n /**\n * Accessible name for the palette — visually hidden, only reaches\n * screen readers via the dialog's title association. @default 'Command Palette'\n */\n title?: ReactNode;\n /** Accessible description, same visually-hidden treatment as `title`. @default 'Search for a command to run...' */\n description?: ReactNode;\n className?: string;\n /**\n * Renders DialogContent's built-in top-right close (X) button.\n * @default false — the palette already dismisses on Escape/outside-press\n * (Dialog's own behavior) and a close button competes with the search\n * input for the popup's one-line header, unlike a regular Dialog where\n * that header has room to spare.\n */\n showCloseButton?: boolean;\n children: ReactNode;\n}\n\nexport function CommandDialog({\n title = 'Command Palette',\n description = 'Search for a command to run...',\n children,\n className,\n showCloseButton = false,\n ...props\n}: CommandDialogProps) {\n return (\n <Dialog {...props}>\n <DialogHeader className={styles.srOnly}>\n <DialogTitle>{title}</DialogTitle>\n <DialogDescription>{description}</DialogDescription>\n </DialogHeader>\n <DialogContent className={cx(styles.dialogPopup, className)} showCloseButton={showCloseButton}>\n {/*\n * CommandInput/CommandList/CommandItem/CommandGroup all read their\n * shared state off the nearest ancestor <Command> root's React\n * context (cmdk's internal Provider pair) — without this wrapper\n * they don't just lose styling, `Command.Item`'s registration\n * effect throws trying to call a context value that doesn't exist.\n * cmdk's own bundled `Command.Dialog` (which this kit does NOT use,\n * composing its own Dialog instead — see command.md) wraps its\n * children in exactly this same root internally, for the same\n * reason.\n */}\n <Command className={styles.command}>{children}</Command>\n </DialogContent>\n </Dialog>\n );\n}\n\nexport interface CommandInputProps\n extends Omit<ComponentProps<typeof CommandPrimitive.Input>, 'className'> {\n className?: string;\n /** className for the wrapper div around the icon + input. */\n wrapperClassName?: string;\n}\n\nexport function CommandInput({ className, wrapperClassName, ...props }: CommandInputProps) {\n return (\n <div className={cx(styles.inputWrapper, wrapperClassName)}>\n <SearchIcon className={cx(styles.svgIcon, styles.inputIcon)} />\n <CommandPrimitive.Input className={cx(styles.input, className)} {...props} />\n </div>\n );\n}\n\nexport type CommandListProps = ComponentProps<typeof CommandPrimitive.List>;\n\nexport function CommandList({ className, ...props }: CommandListProps) {\n return <CommandPrimitive.List className={cx(styles.list, className)} {...props} />;\n}\n\nexport type CommandEmptyProps = ComponentProps<typeof CommandPrimitive.Empty>;\n\nexport function CommandEmpty({ className, ...props }: CommandEmptyProps) {\n return <CommandPrimitive.Empty className={cx(styles.empty, className)} {...props} />;\n}\n\nexport type CommandGroupProps = ComponentProps<typeof CommandPrimitive.Group>;\n\nexport function CommandGroup({ className, ...props }: CommandGroupProps) {\n return <CommandPrimitive.Group className={cx(styles.group, className)} {...props} />;\n}\n\nexport type CommandItemProps = ComponentProps<typeof CommandPrimitive.Item>;\n\nexport function CommandItem({ className, ...props }: CommandItemProps) {\n return <CommandPrimitive.Item className={cx(styles.item, className)} {...props} />;\n}\n\nexport type CommandShortcutProps = ComponentProps<'span'>;\n\nexport function CommandShortcut({ className, ...props }: CommandShortcutProps) {\n return <span className={cx(styles.shortcut, className)} {...props} />;\n}\n\nexport type CommandSeparatorProps = ComponentProps<typeof CommandPrimitive.Separator>;\n\n/*\n * cmdk's own Separator always sets `role=\"separator\"` (after the caller's\n * props, so it cannot be overridden), and inside CommandList's\n * `role=\"listbox\"` that is a child the listbox role does not allow (axe\n * `aria-required-children`). This part keeps cmdk's behaviour, hidden while\n * a search is typed unless `alwaysRender`, and renders a presentational\n * line instead: the groups already separate the options for assistive\n * technology.\n */\nexport function CommandSeparator({\n className,\n alwaysRender,\n asChild,\n children,\n ...props\n}: CommandSeparatorProps) {\n const searching = useCommandState((state) => state.search !== '');\n if (searching && !alwaysRender) {\n return null;\n }\n const own = { role: 'none', 'cmdk-separator': '' } as const;\n // `asChild`, as cmdk offers it: the single child element takes the\n // separator's props instead of a div.\n if (asChild && isValidElement<{ className?: string }>(children)) {\n return cloneElement(children, {\n ...props,\n ...own,\n className: cx(styles.separator, className, children.props.className),\n });\n }\n return (\n <div {...own} className={cx(styles.separator, className)} {...props}>\n {children}\n </div>\n );\n}\n"],"names":["Command","className","props","jsx","CommandPrimitive","cx","styles","CommandDialog","title","description","children","showCloseButton","jsxs","Dialog","DialogHeader","DialogTitle","DialogDescription","DialogContent","CommandInput","wrapperClassName","SearchIcon","CommandList","CommandEmpty","CommandGroup","CommandItem","CommandShortcut","CommandSeparator","alwaysRender","asChild","useCommandState","state","own","isValidElement","cloneElement"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAmBO,SAASA,EAAQ,EAAE,WAAAC,GAAW,GAAGC,KAAuB;AAC7D,SAAO,gBAAAC,EAACC,KAAiB,WAAWC,EAAGC,EAAO,SAASL,CAAS,GAAI,GAAGC,GAAO;AAChF;AAsBO,SAASK,EAAc;AAAA,EAC5B,OAAAC,IAAQ;AAAA,EACR,aAAAC,IAAc;AAAA,EACd,UAAAC;AAAA,EACA,WAAAT;AAAA,EACA,iBAAAU,IAAkB;AAAA,EAClB,GAAGT;AACL,GAAuB;AACrB,SACE,gBAAAU,EAACC,GAAA,EAAQ,GAAGX,GACV,UAAA;AAAA,IAAA,gBAAAU,EAACE,GAAA,EAAa,WAAWR,EAAO,QAC9B,UAAA;AAAA,MAAA,gBAAAH,EAACY,KAAa,UAAAP,EAAA,CAAM;AAAA,MACpB,gBAAAL,EAACa,KAAmB,UAAAP,EAAA,CAAY;AAAA,IAAA,GAClC;AAAA,IACA,gBAAAN,EAACc,GAAA,EAAc,WAAWZ,EAAGC,EAAO,aAAaL,CAAS,GAAG,iBAAAU,GAY3D,4BAACX,GAAA,EAAQ,WAAWM,EAAO,SAAU,UAAAI,GAAS,EAAA,CAChD;AAAA,EAAA,GACF;AAEJ;AASO,SAASQ,EAAa,EAAE,WAAAjB,GAAW,kBAAAkB,GAAkB,GAAGjB,KAA4B;AACzF,2BACG,OAAA,EAAI,WAAWG,EAAGC,EAAO,cAAca,CAAgB,GACtD,UAAA;AAAA,IAAA,gBAAAhB,EAACiB,KAAW,WAAWf,EAAGC,EAAO,SAASA,EAAO,SAAS,GAAG;AAAA,IAC7D,gBAAAH,EAACC,EAAiB,OAAjB,EAAuB,WAAWC,EAAGC,EAAO,OAAOL,CAAS,GAAI,GAAGC,EAAA,CAAO;AAAA,EAAA,GA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AS,MAAM,SAAS;AAAA,EAAA,CACpE,IAGD,gBAAAP,EAAC,OAAA,EAAK,GAAG4B,GAAK,WAAW1B,EAAGC,EAAO,WAAWL,CAAS,GAAI,GAAGC,GAC3D,UAAAQ,EAAA,CACH;AAEJ;"}
@@ -1,3 +1,4 @@
1
+ import { useRender } from '@base-ui/react/use-render';
1
2
  import { VariantProps } from 'class-variance-authority';
2
3
  import { ComponentProps } from 'react';
3
4
  declare const alertVariants: (props?: ({
@@ -5,8 +6,8 @@ declare const alertVariants: (props?: ({
5
6
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
6
7
  export type AlertProps = ComponentProps<'div'> & VariantProps<typeof alertVariants>;
7
8
  export declare function Alert({ className, variant, ...props }: AlertProps): import("react").JSX.Element;
8
- export type AlertTitleProps = ComponentProps<'div'>;
9
- export declare function AlertTitle({ className, ...props }: AlertTitleProps): import("react").JSX.Element;
9
+ export type AlertTitleProps = useRender.ComponentProps<'div'>;
10
+ export declare function AlertTitle({ className, render, ...props }: AlertTitleProps): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
10
11
  export type AlertDescriptionProps = ComponentProps<'div'>;
11
12
  export declare function AlertDescription({ className, ...props }: AlertDescriptionProps): import("react").JSX.Element;
12
13
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"alert.d.ts","sourceRoot":"","sources":["../../../src/components/alert/alert.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAW,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACtE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAc5C,QAAA,MAAM,aAAa;;8EAUjB,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,cAAc,CAAC,KAAK,CAAC,GAAG,YAAY,CAAC,OAAO,aAAa,CAAC,CAAC;AAEpF,wBAAgB,KAAK,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,GAAG,KAAK,EAAE,EAAE,UAAU,+BAEjE;AAED,MAAM,MA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;AAED;;;;;GAKG;AACH,MAAM,MAAM,gBAAgB,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;AAErD,wBAAgB,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,gBAAgB,+BAEpE"}
@@ -61,11 +61,18 @@ export type AttachmentTriggerProps = useRender.ComponentProps<'button'>;
61
61
  * dialog while `AttachmentActions` stay independently clickable (it sits
62
62
  * behind them in the stacking order). Renders a `<button>` by default. */
63
63
  export declare function AttachmentTrigger({ className, render, type, ...props }: AttachmentTriggerProps): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
64
- export type AttachmentGroupProps = ComponentProps<'div'>;
64
+ export interface AttachmentGroupProps extends ComponentProps<'div'> {
65
+ /**
66
+ * Accessible name for the row (`role="group"` + `aria-label`). Announced
67
+ * when keyboard focus lands on an overflowing row; without it the group
68
+ * has no role and no name.
69
+ */
70
+ label?: string;
71
+ }
65
72
  /** Lays out attachments in a horizontally scrollable, snapping row with an
66
73
  * edge fade. Applies `scroll-fade-x` and `no-scrollbar` (this package's
67
- * global utilities — see this file's own header) directly, by class name,
74
+ * global utilities, see this file's own header) directly, by class name,
68
75
  * alongside the module's own layout class. */
69
- export declare function AttachmentGroup({ className, ...props }: AttachmentGroupProps): import("react").JSX.Element;
76
+ export declare function AttachmentGroup({ className, label, tabIndex, ref, ...props }: AttachmentGroupProps): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
70
77
  export { attachmentMediaVariants, attachmentVariants };
71
78
  //# sourceMappingURL=attachment.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"attachment.d.ts","sourceRoot":"","sources":["../../../src/components/attachment/attachment.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAW,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACtE,OAAO,EAA6B,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAE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AAE,EAAE,qBAAqB,+BASpG;AAED,MAAM,MAAM,sBAAsB,GAAG,SAAS,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC;AAExE;;0EAE0E;AAC1E,wBAAgB,iBAAiB,CAAC,EAAE,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,KAAK,EAAE,EAAE,sBAAsB,8FAY9F;AAED,MAAM,WAAW,oBAAqB,SAAQ,cAAc,CAAC,KAAK,CAAC;IACjE;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAkDD;;;8CAG8C;AAC9C,wBAAgB,eAAe,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,EAAE,GAAG,KAAK,EAAE,EAAE,oBAAoB,8FA0BlG;AAED,OAAO,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,CAAC"}
@@ -1,10 +1,12 @@
1
+ import { useRender } from '@base-ui/react/use-render';
1
2
  import { VariantProps } from 'class-variance-authority';
2
3
  import { ComponentProps } from 'react';
3
4
  declare const cardVariants: (props?: ({
5
+ variant?: "panel" | "default" | null | undefined;
4
6
  size?: "default" | "sm" | null | undefined;
5
7
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
6
- export type CardProps = ComponentProps<'div'> & VariantProps<typeof cardVariants>;
7
- export declare function Card({ className, size, ...props }: CardProps): import("react").JSX.Element;
8
+ export type CardProps = useRender.ComponentProps<'div'> & VariantProps<typeof cardVariants>;
9
+ export declare function Card({ className, variant, size, render, ...props }: CardProps): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
8
10
  export type CardHeaderProps = ComponentProps<'div'>;
9
11
  export declare function CardHeader({ className, ...props }: CardHeaderProps): import("react").JSX.Element;
10
12
  declare const cardTitleVariants: (props?: ({
@@ -13,8 +15,8 @@ declare const cardTitleVariants: (props?: ({
13
15
  declare const cardDescriptionVariants: (props?: ({
14
16
  typography?: "panel" | "default" | null | undefined;
15
17
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
16
- export type CardTitleProps = ComponentProps<'div'> & VariantProps<typeof cardTitleVariants>;
17
- export declare function CardTitle({ className, typography, ...props }: CardTitleProps): import("react").JSX.Element;
18
+ export type CardTitleProps = useRender.ComponentProps<'div'> & VariantProps<typeof cardTitleVariants>;
19
+ export declare function CardTitle({ className, typography, render, ...props }: CardTitleProps): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
18
20
  export type CardDescriptionProps = ComponentProps<'div'> & VariantProps<typeof cardDescriptionVariants>;
19
21
  export declare function CardDescription({ className, typography, ...props }: CardDescriptionProps): import("react").JSX.Element;
20
22
  /** Positions in the header's second column, spanning both its rows (see CSS). */
@@ -1 +1 @@
1
- {"version":3,"file":"card.d.ts","sourceRoot":"","sources":["../../../src/components/card/card.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAW,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACtE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAU5C,QAAA,MAAM,YAAY;;8EAUhB,CAAC;AAEH,MAAM,MAAM,SAAS,GAAG,cAAc,CAAC,KAAK,CAAC,GAAG,YAAY,CAAC,OAAO,YAAY,CAAC,CAAC;AAElF,wBAAgB,IAAI,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,GAAG,KAAK,EAAE,EAAE,SAAS,+BAE5D;AAED,MAAM,MAAM,eAAe,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;AAEpD,wBAAgB,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,eAAe,+BAElE;AASD,QAAA,MAAM,iBAAiB;;8EAUrB,CAAC;AAEH,QAAA,MAAM,uBAAuB;;8EAU3B,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,cAAc,CAAC,KAAK,CAAC,GAAG,YAAY,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5F,wBAAgB,SAAS,CAAC,EAAE,SAAS,EAAE,UAA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CAAC,KAAK,CAAC,CAAC;AAEpD,wBAAgB,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,eAAe,+BAElE;AASD,QAAA,MAAM,iBAAiB;;8EAUrB,CAAC;AAEH,QAAA,MAAM,uBAAuB;;8EAU3B,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,SAAS,CAAC,cAAc,CAAC,KAAK,CAAC,GAC1D,YAAY,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAOzC,wBAAgB,SAAS,CAAC,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,8FAcpF;AAED,MAAM,MAAM,oBAAoB,GAAG,cAAc,CAAC,KAAK,CAAC,GACtD,YAAY,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAE/C,wBAAgB,eAAe,CAAC,EAAE,SAAS,EAAE,UAAU,EAAE,GAAG,KAAK,EAAE,EAAE,oBAAoB,+BAExF;AAED,iFAAiF;AACjF,MAAM,MAAM,eAAe,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;AAEpD,wBAAgB,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,eAAe,+BAElE;AAED,MAAM,MAAM,gBAAgB,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;AAErD,wBAAgB,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,gBAAgB,+BAEpE;AAED,MAAM,MAAM,eAAe,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;AAEpD,wBAAgB,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,eAAe,+BAElE"}
@@ -0,0 +1,57 @@
1
+ import { VariantProps } from 'class-variance-authority';
2
+ import { ComponentProps } from 'react';
3
+ import { ButtonProps } from '../button/button';
4
+ declare const codeBlockVariants: (props?: ({
5
+ variant?: "default" | "destructive" | null | undefined;
6
+ size?: "default" | "sm" | null | undefined;
7
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
8
+ export interface CodeBlockProps extends ComponentProps<'div'>, VariantProps<typeof codeBlockVariants> {
9
+ }
10
+ export declare function CodeBlock({ className, variant, size, ...props }: CodeBlockProps): import("react").JSX.Element;
11
+ export type CodeBlockHeaderProps = ComponentProps<'div'>;
12
+ export declare function CodeBlockHeader({ className, ...props }: CodeBlockHeaderProps): import("react").JSX.Element;
13
+ export type CodeBlockTitleProps = ComponentProps<'div'>;
14
+ /** One line, cut with an ellipsis; an svg before the text is sized to it. */
15
+ export declare function CodeBlockTitle({ className, ...props }: CodeBlockTitleProps): import("react").JSX.Element;
16
+ export type CodeBlockActionsProps = ComponentProps<'div'>;
17
+ /**
18
+ * Inside CodeBlockHeader it sits at the end of the row. As a direct child
19
+ * of CodeBlock (no header) it floats over the top end of the block and
20
+ * shows on hover or focus, and always on a coarse pointer.
21
+ */
22
+ export declare function CodeBlockActions({ className, ...props }: CodeBlockActionsProps): import("react").JSX.Element;
23
+ export interface CodeBlockCopyButtonProps extends Omit<ButtonProps, 'icon' | 'end' | 'children' | 'render' | 'nativeButton' | 'aria-label'> {
24
+ /** The text written to the clipboard. */
25
+ value: string;
26
+ /** The button's accessible name before a copy. @default 'Copy' */
27
+ copyLabel?: string;
28
+ /** The button's accessible name and the announcement after a copy. @default 'Copied' */
29
+ copiedLabel?: string;
30
+ }
31
+ export declare function CodeBlockCopyButton({ value, copyLabel, copiedLabel, variant, size, className, onClick, ...props }: CodeBlockCopyButtonProps): import("react").JSX.Element;
32
+ export interface CodeBlockContentProps extends ComponentProps<'pre'> {
33
+ /**
34
+ * Soft-wrap long lines instead of scrolling them sideways.
35
+ * @default false
36
+ */
37
+ wrap?: boolean;
38
+ /**
39
+ * Number the lines. A string child is split into CodeBlockLine parts;
40
+ * CodeBlockLine children are numbered as they are.
41
+ * @default false
42
+ */
43
+ lineNumbers?: boolean;
44
+ /** The number of the first line. @default 1 */
45
+ startLine?: number;
46
+ }
47
+ export declare function CodeBlockContent({ className, children, style, wrap, lineNumbers, startLine, ...props }: CodeBlockContentProps): import("react").JSX.Element;
48
+ declare const codeBlockLineVariants: (props?: ({
49
+ variant?: "default" | "added" | "removed" | "highlighted" | null | undefined;
50
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
51
+ export interface CodeBlockLineProps extends ComponentProps<'span'>, VariantProps<typeof codeBlockLineVariants> {
52
+ }
53
+ export declare function CodeBlockLine({ className, variant, children, ...props }: CodeBlockLineProps): import("react").JSX.Element;
54
+ export type CodeBlockFooterProps = ComponentProps<'div'>;
55
+ export declare function CodeBlockFooter({ className, ...props }: CodeBlockFooterProps): import("react").JSX.Element;
56
+ export { codeBlockVariants };
57
+ //# sourceMappingURL=code-block.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"code-block.d.ts","sourceRoot":"","sources":["../../../src/components/code-block/code-block.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAW,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAEtE,OAAO,EAAY,KAAK,cAAc,EAA2C,MAAM,OAAO,CAAC;AAE/F,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAsB5D,QAAA,MAAM,iBAAiB;;;8EAerB,CAAC;AAEH,MAAM,WAAW,cACf,SAAQ,cAAc,CAAC,KAAK,CAAC,EAAE,YAAY,CAAC,OAAO,iBAAiB,CAAC;CAAG;AAE1E,wBAAgB,SAAS,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,+BAE/E;AAED,MAAM,MAAM,oBAAoB,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;AAEzD,wBAAgB,eAAe,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,oBAAoB,+BAE5E;AAED,MAAM,MAAM,mBAAmB,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;AAExD,6EAA6E;AAC7E,wBAAgB,cA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AAE,GAAG,KAAK,EAAE,EAAE,kBAAkB,+BAW3F;AAED,MAAM,MAAM,oBAAoB,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;AAEzD,wBAAgB,eAAe,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,oBAAoB,+BAE5E;AAED,OAAO,EAAE,iBAAiB,EAAE,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { CodeBlock, CodeBlockActions, CodeBlockContent, CodeBlockCopyButton, CodeBlockFooter, CodeBlockHeader, CodeBlockLine, CodeBlockTitle, codeBlockVariants, type CodeBlockActionsProps, type CodeBlockContentProps, type CodeBlockCopyButtonProps, type CodeBlockFooterProps, type CodeBlockHeaderProps, type CodeBlockLineProps, type CodeBlockProps, type CodeBlockTitleProps, } from './code-block.js';
2
+ //# sourceMappingURL=public.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"public.d.ts","sourceRoot":"","sources":["../../../src/components/code-block/public.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,gBAAgB,EAChB,gBAAgB,EAChB,mBAAmB,EACnB,eAAe,EACf,eAAe,EACf,aAAa,EACb,cAAc,EACd,iBAAiB,EACjB,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,wBAAwB,EAC7B,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,cAAc,EACnB,KAAK,mBAAmB,GACzB,MAAM,iBAAiB,CAAC"}
@@ -40,5 +40,5 @@ export declare function CommandItem({ className, ...props }: CommandItemProps):
40
40
  export type CommandShortcutProps = ComponentProps<'span'>;
41
41
  export declare function CommandShortcut({ className, ...props }: CommandShortcutProps): import("react").JSX.Element;
42
42
  export type CommandSeparatorProps = ComponentProps<typeof CommandPrimitive.Separator>;
43
- export declare function CommandSeparator({ className, ...props }: CommandSeparatorProps): import("react").JSX.Element;
43
+ export declare function CommandSeparator({ className, alwaysRender, asChild, children, ...props }: CommandSeparatorProps): import("react").JSX.Element | null;
44
44
  //# sourceMappingURL=command.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../../src/components/command/command.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,MAAM,CAAC;AAGnD,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,OAAO,EAML,KAAK,WAAW,EACjB,MAAM,qBAAqB,CAAC;AAG7B,MAAM,MAAM,YAAY,GAAG,cAAc,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAEnE,wBAAgB,OAAO,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,YAAY,+BAE5D;AAED,MAAM,WAAW,kBAAmB,SAAQ,IAAI,CAAC,WAAW,EAAE,UAAU,CAAC;IACvE;;;OAGG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,mHAAmH;IACnH,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;;;OAMG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,wBAAgB,aAAa,CAAC,EAC5B,KAAyB,EACzB,WAA8C,EAC9C,QAAQ,EACR,SAAS,EACT,eAAuB,EACvB,GAAG,KAAK,EACT,EAAE,kBAAkB,+BAuBpB;AAED,MAAM,WAAW,iBACf,SAAQ,IAAI,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,KAAK,CAAC,EAAE,WAAW,CAAC;IACxE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,6DAA6D;IAC7D,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,wBAAgB,YAAY,CAAC,EAAE,SAAS,EAAE,gBAAgB,EAAE,GAAG,KAAK,EAAE,EAAE,iBAAiB,+BAOxF;AAED,MAAM,M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AiB,+BAEtE;AAED,MAAM,MAAM,iBAAiB,GAAG,cAAc,CAAC,OAAO,gBAAgB,CAAC,KAAK,CAAC,CAAC;AAE9E,wBAAgB,YAAY,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,iBAAiB,+BAEtE;AAED,MAAM,MAAM,gBAAgB,GAAG,cAAc,CAAC,OAAO,gBAAgB,CAAC,IAAI,CAAC,CAAC;AAE5E,wBAAgB,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,gBAAgB,+BAEpE;AAED,MAAM,MAAM,oBAAoB,GAAG,cAAc,CAAC,MAAM,CAAC,CAAC;AAE1D,wBAAgB,eAAe,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,oBAAoB,+BAE5E;AAED,MAAM,MAAM,qBAAqB,GAAG,cAAc,CAAC,OAAO,gBAAgB,CAAC,SAAS,CAAC,CAAC;AAWtF,wBAAgB,gBAAgB,CAAC,EAC/B,SAAS,EACT,YAAY,EACZ,OAAO,EACP,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,qBAAqB,sCAoBvB"}
@@ -0,0 +1,21 @@
1
+ import { VariantProps } from 'class-variance-authority';
2
+ import { ComponentProps } from 'react';
3
+ declare const descriptionListVariants: (props?: ({
4
+ orientation?: "horizontal" | "vertical" | null | undefined;
5
+ size?: "default" | "sm" | null | undefined;
6
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
7
+ declare const descriptionDetailsVariants: (props?: ({
8
+ typography?: "body" | "mono" | null | undefined;
9
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
10
+ export interface DescriptionListProps extends ComponentProps<'dl'>, VariantProps<typeof descriptionListVariants> {
11
+ }
12
+ export declare function DescriptionList({ className, orientation, size, ...props }: DescriptionListProps): import("react").JSX.Element;
13
+ export type DescriptionListItemProps = ComponentProps<'div'>;
14
+ export declare function DescriptionListItem({ className, ...props }: DescriptionListItemProps): import("react").JSX.Element;
15
+ export type DescriptionListTermProps = ComponentProps<'dt'>;
16
+ export declare function DescriptionListTerm({ className, ...props }: DescriptionListTermProps): import("react").JSX.Element;
17
+ export interface DescriptionListDetailsProps extends ComponentProps<'dd'>, VariantProps<typeof descriptionDetailsVariants> {
18
+ }
19
+ export declare function DescriptionListDetails({ className, typography, ...props }: DescriptionListDetailsProps): import("react").JSX.Element;
20
+ export {};
21
+ //# sourceMappingURL=description-list.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"description-list.d.ts","sourceRoot":"","sources":["../../../src/components/description-list/description-list.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAW,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACtE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAW5C,QAAA,MAAM,uBAAuB;;;8EAe3B,CAAC;AAGH,QAAA,MAAM,0BAA0B;;8EAU9B,CAAC;AAEH,MAAM,WAAW,oBACf,SAAQ,cAAc,CAAC,IAAI,CAAC,EAAE,YAAY,CAAC,OAAO,uBAAuB,CAAC;CAAG;AAE/E,wBAAgB,eAAe,CAAC,EAAE,SAAS,EAAE,WAAW,EAAE,IAAI,EAAE,GAAG,KAAK,EAAE,EAAE,oBAAoB,+BAW/F;AAED,MAAM,MAAM,wBAAwB,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;AAE7D,wBAAgB,mBAAmB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,wBAAwB,+BAEpF;AAED,MAAM,MAAM,wBAAwB,GAAG,cAAc,CAAC,IAAI,CAAC,CAAC;AAE5D,wBAAgB,mBAAmB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,wBAAwB,+BAEpF;AAED,MAAM,WAAW,2BACf,SAAQ,cAAc,CAAC,IAAI,CAAC,EAAE,YAAY,CAAC,OAAO,0BAA0B,CAAC;CAAG;AAElF,wBAAgB,sBAAsB,CAAC,EACrC,SAAS,EACT,UAAU,EACV,GAAG,KAAK,EACT,EAAE,2BAA2B,+BAO7B"}
@@ -0,0 +1,2 @@
1
+ export { DescriptionListDetails, DescriptionListItem, DescriptionList, DescriptionListTerm, type DescriptionListDetailsProps, type DescriptionListItemProps, type DescriptionListProps, type DescriptionListTermProps, } from './description-list.js';
2
+ //# sourceMappingURL=public.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"public.d.ts","sourceRoot":"","sources":["../../../src/components/description-list/public.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,sBAAsB,EACtB,mBAAmB,EACnB,eAAe,EACf,mBAAmB,EACnB,KAAK,2BAA2B,EAChC,KAAK,wBAAwB,EAC7B,KAAK,oBAAoB,EACzB,KAAK,wBAAwB,GAC9B,MAAM,uBAAuB,CAAC"}
@@ -1,3 +1,4 @@
1
+ import { useRender } from '@base-ui/react/use-render';
1
2
  import { VariantProps } from 'class-variance-authority';
2
3
  import { ComponentProps } from 'react';
3
4
  export type EmptyProps = ComponentProps<'div'>;
@@ -13,8 +14,8 @@ export interface EmptyMediaProps extends ComponentProps<'div'>, VariantProps<typ
13
14
  * treatment uses; `variant="default"` (the default) stays transparent —
14
15
  * for an illustration or image that already carries its own chrome. */
15
16
  export declare function EmptyMedia({ className, variant, ...props }: EmptyMediaProps): import("react").JSX.Element;
16
- export type EmptyTitleProps = ComponentProps<'div'>;
17
- export declare function EmptyTitle({ className, ...props }: EmptyTitleProps): import("react").JSX.Element;
17
+ export type EmptyTitleProps = useRender.ComponentProps<'div'>;
18
+ export declare function EmptyTitle({ className, render, ...props }: EmptyTitleProps): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
18
19
  export type EmptyDescriptionProps = ComponentProps<'div'>;
19
20
  export declare function EmptyDescription({ className, ...props }: EmptyDescriptionProps): import("react").JSX.Element;
20
21
  export type EmptyContentProps = ComponentProps<'div'>;