@copilotkit/react-core 1.82.0 → 1.84.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{MarkdownSurfaces-DGpjmPaB.mjs → MarkdownSurfaces-DV9P0Gi9.mjs} +55 -13
- package/dist/MarkdownSurfaces-DV9P0Gi9.mjs.map +1 -0
- package/dist/{MarkdownSurfaces-FF5za2kU.cjs → MarkdownSurfaces-IUaWSJ0E.cjs} +54 -12
- package/dist/MarkdownSurfaces-IUaWSJ0E.cjs.map +1 -0
- package/dist/{copilotkit-CVvbU9lV.cjs → copilotkit-BOTf5RHF.cjs} +296 -291
- package/dist/copilotkit-BOTf5RHF.cjs.map +1 -0
- package/dist/{copilotkit-wqaNanhw.d.cts → copilotkit-C3mvJexb.d.cts} +31 -8
- package/dist/copilotkit-C3mvJexb.d.cts.map +1 -0
- package/dist/{copilotkit-DDReN1Px.mjs → copilotkit-CKnD8GeM.mjs} +300 -295
- package/dist/copilotkit-CKnD8GeM.mjs.map +1 -0
- package/dist/{copilotkit-C765tOUi.d.mts → copilotkit-CnYo662V.d.mts} +31 -8
- package/dist/copilotkit-CnYo662V.d.mts.map +1 -0
- package/dist/index.cjs +2 -2
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.umd.js +199 -289
- package/dist/index.umd.js.map +1 -1
- package/dist/v2/generative-ui.cjs +33 -54
- package/dist/v2/generative-ui.cjs.map +1 -1
- package/dist/v2/generative-ui.d.cts +118 -118
- package/dist/v2/generative-ui.d.mts +118 -118
- package/dist/v2/generative-ui.mjs +33 -54
- package/dist/v2/generative-ui.mjs.map +1 -1
- package/dist/v2/headless.cjs +32 -16
- package/dist/v2/headless.cjs.map +1 -1
- package/dist/v2/headless.d.cts +2 -0
- package/dist/v2/headless.d.cts.map +1 -1
- package/dist/v2/headless.d.mts +2 -0
- package/dist/v2/headless.d.mts.map +1 -1
- package/dist/v2/headless.mjs +33 -17
- package/dist/v2/headless.mjs.map +1 -1
- package/dist/v2/index.cjs +14 -2
- package/dist/v2/index.css +1 -1
- package/dist/v2/index.d.cts +2 -2
- package/dist/v2/index.d.mts +2 -2
- package/dist/v2/index.mjs +3 -3
- package/dist/v2/index.umd.js +359 -300
- package/dist/v2/index.umd.js.map +1 -1
- package/package.json +8 -8
- package/dist/MarkdownSurfaces-DGpjmPaB.mjs.map +0 -1
- package/dist/MarkdownSurfaces-FF5za2kU.cjs.map +0 -1
- package/dist/copilotkit-C765tOUi.d.mts.map +0 -1
- package/dist/copilotkit-CVvbU9lV.cjs.map +0 -1
- package/dist/copilotkit-DDReN1Px.mjs.map +0 -1
- package/dist/copilotkit-wqaNanhw.d.cts.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
-
const require_MarkdownSurfaces = require('../MarkdownSurfaces-
|
|
4
|
+
const require_MarkdownSurfaces = require('../MarkdownSurfaces-IUaWSJ0E.cjs');
|
|
5
5
|
let react = require("react");
|
|
6
6
|
react = require_MarkdownSurfaces.__toESM(react);
|
|
7
7
|
let _copilotkit_shared = require("@copilotkit/shared");
|
|
@@ -588,27 +588,6 @@ const BORDER_COLORS = [
|
|
|
588
588
|
"danger",
|
|
589
589
|
"discovery"
|
|
590
590
|
];
|
|
591
|
-
const BACKGROUNDS = [
|
|
592
|
-
"surface",
|
|
593
|
-
"surface-secondary",
|
|
594
|
-
"surface-tertiary",
|
|
595
|
-
"surface-elevated",
|
|
596
|
-
"surface-elevated-secondary",
|
|
597
|
-
"surface-inverted",
|
|
598
|
-
"surface-soft",
|
|
599
|
-
"info",
|
|
600
|
-
"warning",
|
|
601
|
-
"caution",
|
|
602
|
-
"success",
|
|
603
|
-
"danger",
|
|
604
|
-
"discovery",
|
|
605
|
-
"info-solid",
|
|
606
|
-
"warning-solid",
|
|
607
|
-
"caution-solid",
|
|
608
|
-
"success-solid",
|
|
609
|
-
"danger-solid",
|
|
610
|
-
"discovery-solid"
|
|
611
|
-
];
|
|
612
591
|
const RADIUS_PX = {
|
|
613
592
|
"2xs": "2px",
|
|
614
593
|
xs: "4px",
|
|
@@ -999,7 +978,7 @@ const layoutProps = {
|
|
|
999
978
|
rowGap: sizeValue.optional(),
|
|
1000
979
|
columnGap: sizeValue.optional(),
|
|
1001
980
|
padding: sizeValue.optional().describe("4px steps when a number"),
|
|
1002
|
-
background: zod.z.string().optional().describe(
|
|
981
|
+
background: zod.z.string().optional().describe("Leave it unset. A surface token such as surface, surface-secondary, info, success, warning, danger, discovery, or one with -solid, or a CSS color. Only one summary panel in a Card uses \"surface-secondary\""),
|
|
1003
982
|
border: zod.z.boolean().optional(),
|
|
1004
983
|
borderColor: zod.z.enum(BORDER_COLORS).optional(),
|
|
1005
984
|
radius: radiusValue.optional(),
|
|
@@ -1867,7 +1846,7 @@ const layoutComponents = {
|
|
|
1867
1846
|
},
|
|
1868
1847
|
Row: {
|
|
1869
1848
|
component: Row,
|
|
1870
|
-
description: "A horizontal flex container.
|
|
1849
|
+
description: "A horizontal flex container. Label and value pair: justify \"spaceBetween\", a Caption left and a Text with fontWeight \"medium\" right. Buttons go in a Row at the bottom of a Card: one variant \"primary\", the others default or \"borderless\".",
|
|
1871
1850
|
props: layoutSchema,
|
|
1872
1851
|
events: VISIBLE_EVENT,
|
|
1873
1852
|
slots: CHILDREN_SLOT
|
|
@@ -1888,7 +1867,7 @@ const layoutComponents = {
|
|
|
1888
1867
|
},
|
|
1889
1868
|
Card: {
|
|
1890
1869
|
component: Card,
|
|
1891
|
-
description: "A bordered
|
|
1870
|
+
description: "A bordered panel, only for an interactive panel (controls, a form, a configurator); tables, charts and text need none. Give it a Title and a Caption. Separate groups with a Divider or the gap, never a nested Card or bordered Box. Variant \"section\": no box; \"outline\": always a box. In markdown mode, without controls it renders as \"section\" unless variant or border is set.",
|
|
1892
1871
|
props: cardSchema,
|
|
1893
1872
|
events: VISIBLE_EVENT,
|
|
1894
1873
|
slots: {
|
|
@@ -1912,7 +1891,7 @@ const layoutComponents = {
|
|
|
1912
1891
|
},
|
|
1913
1892
|
Carousel: {
|
|
1914
1893
|
component: Carousel,
|
|
1915
|
-
description: "A row that
|
|
1894
|
+
description: "A horizontally scrolling row that snaps to its CarouselItem or CarouselMediaItem children, with arrows. Bind activeIndex to read or set the slide in view.",
|
|
1916
1895
|
props: carouselSchema,
|
|
1917
1896
|
events: VISIBLE_EVENT,
|
|
1918
1897
|
slots: CHILDREN_SLOT,
|
|
@@ -1927,7 +1906,7 @@ const layoutComponents = {
|
|
|
1927
1906
|
},
|
|
1928
1907
|
CarouselMediaItem: {
|
|
1929
1908
|
component: CarouselMediaItem,
|
|
1930
|
-
description: "A
|
|
1909
|
+
description: "A Carousel slide: an image with its children (a Caption, a Text) under it. size \"sm\" 160px, \"md\" 240px (default), \"lg\" 320px wide. A click opens all slides full-screen, unless href or onClick is set.",
|
|
1931
1910
|
props: carouselMediaItemSchema,
|
|
1932
1911
|
events: {
|
|
1933
1912
|
...VISIBLE_EVENT,
|
|
@@ -3004,7 +2983,7 @@ const mediaComponents = {
|
|
|
3004
2983
|
},
|
|
3005
2984
|
Video: {
|
|
3006
2985
|
component: Video,
|
|
3007
|
-
description: "A video
|
|
2986
|
+
description: "A video file URL (optional captions) or a YouTube link, privacy-enhanced: the poster shows until play. Other video sites show as a link. Set title.",
|
|
3008
2987
|
props: videoSchema
|
|
3009
2988
|
},
|
|
3010
2989
|
AudioPlayer: {
|
|
@@ -3050,7 +3029,7 @@ const followUpItem = zod.z.union([zod.z.string(), zod.z.object({
|
|
|
3050
3029
|
message: text("The text sent when the user clicks. Default: label")
|
|
3051
3030
|
})]);
|
|
3052
3031
|
const followUpSchema = zod.z.object({
|
|
3053
|
-
items: zod.z.array(followUpItem).optional()
|
|
3032
|
+
items: zod.z.array(followUpItem).optional(),
|
|
3054
3033
|
title: text("A caption above the pills")
|
|
3055
3034
|
});
|
|
3056
3035
|
const followUpArgs = zod.z.object({ message: zod.z.string().describe("The message of the clicked pill") });
|
|
@@ -3098,7 +3077,7 @@ const gridImage = zod.z.object({
|
|
|
3098
3077
|
href: text("Opens this URL instead of the full-screen view")
|
|
3099
3078
|
});
|
|
3100
3079
|
const imageGridSchema = zod.z.object({
|
|
3101
|
-
images: zod.z.array(gridImage).optional()
|
|
3080
|
+
images: zod.z.array(gridImage).optional(),
|
|
3102
3081
|
columns: zod.z.number().optional().describe("Default 3"),
|
|
3103
3082
|
aspectRatio: zod.z.string().optional().describe("Default \"1 / 1\""),
|
|
3104
3083
|
gap: sizeValue.optional().describe("Default 2"),
|
|
@@ -3678,7 +3657,7 @@ function ImageGrid(props) {
|
|
|
3678
3657
|
const compositeComponents = {
|
|
3679
3658
|
LinkCard: {
|
|
3680
3659
|
component: LinkCard,
|
|
3681
|
-
description: "A preview
|
|
3660
|
+
description: "A preview of a URL: favicon and domain, title, description, thumbnail. A click opens it in a new tab, or sends onClick when bound. For sources, articles and products with a page.",
|
|
3682
3661
|
props: linkCardSchema,
|
|
3683
3662
|
events: { onClick: {
|
|
3684
3663
|
description: "Sent when the user clicks the card, instead of the link.",
|
|
@@ -3687,12 +3666,12 @@ const compositeComponents = {
|
|
|
3687
3666
|
},
|
|
3688
3667
|
Citation: {
|
|
3689
3668
|
component: Citation,
|
|
3690
|
-
description: "An inline source marker ([1])
|
|
3669
|
+
description: "An inline source marker ([1]) showing title, snippet and link on hover or click. Put it right after the sentence it supports, as a child of a Text or in a Row.",
|
|
3691
3670
|
props: citationSchema
|
|
3692
3671
|
},
|
|
3693
3672
|
FollowUp: {
|
|
3694
3673
|
component: FollowUp,
|
|
3695
|
-
description: "Suggested next prompts as pills
|
|
3674
|
+
description: "Suggested next prompts as pills; a click sends the pill's message as the user's next turn, no event needed. At the end of a surface, two to four short items.",
|
|
3696
3675
|
props: followUpSchema,
|
|
3697
3676
|
events: { onFollowUp: {
|
|
3698
3677
|
description: "Sent when the user clicks a pill. The args carry the message of the pill.",
|
|
@@ -3701,7 +3680,7 @@ const compositeComponents = {
|
|
|
3701
3680
|
},
|
|
3702
3681
|
EntityCard: {
|
|
3703
3682
|
component: EntityCard,
|
|
3704
|
-
description: "A card for one
|
|
3683
|
+
description: "A card for one product, place, person or listing: image, title, subtitle, description, a price or meta line, badge, rating and up to three buttons. href opens a page; onClick is sent when bound. Use a Grid of them for several things.",
|
|
3705
3684
|
props: entityCardSchema,
|
|
3706
3685
|
events: {
|
|
3707
3686
|
onClick: {
|
|
@@ -3737,9 +3716,9 @@ const chartSchema = zod.z.object({
|
|
|
3737
3716
|
"pie",
|
|
3738
3717
|
"donut"
|
|
3739
3718
|
]).optional().describe("Default \"bar\""),
|
|
3740
|
-
data: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).optional()
|
|
3719
|
+
data: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).optional(),
|
|
3741
3720
|
xKey: zod.z.string().optional().describe("The field of the category axis"),
|
|
3742
|
-
series: zod.z.array(chartSeries).optional().describe("
|
|
3721
|
+
series: zod.z.array(chartSeries).optional().describe("Default: every number field except xKey"),
|
|
3743
3722
|
stacked: zod.z.boolean().optional(),
|
|
3744
3723
|
layout: zod.z.enum(["vertical", "horizontal"]).optional().describe("\"horizontal\" draws the bars from left to right. Default \"vertical\""),
|
|
3745
3724
|
yAxis: zod.z.object({
|
|
@@ -3747,7 +3726,7 @@ const chartSchema = zod.z.object({
|
|
|
3747
3726
|
min: zod.z.number().optional(),
|
|
3748
3727
|
max: zod.z.number().optional(),
|
|
3749
3728
|
width: zod.z.number().optional().describe("Pixels")
|
|
3750
|
-
}).optional().describe("
|
|
3729
|
+
}).optional().describe("Example: {label: \"Revenue (USD)\", min: 0, max: 100}. In a horizontal chart it is the horizontal axis, and width sets the category axis width"),
|
|
3751
3730
|
showDots: zod.z.boolean().optional().describe("Point markers on a line or area"),
|
|
3752
3731
|
barRadius: zod.z.number().optional().describe("The corner radius of a bar, in pixels"),
|
|
3753
3732
|
innerRadius: zod.z.union([zod.z.number(), zod.z.string()]).optional().describe("Pie and donut"),
|
|
@@ -3766,7 +3745,7 @@ const chartSchema = zod.z.object({
|
|
|
3766
3745
|
"number",
|
|
3767
3746
|
"currency",
|
|
3768
3747
|
"percent"
|
|
3769
|
-
]).optional().describe("
|
|
3748
|
+
]).optional().describe("With \"percent\", data values and axis min/max are fractions: 0.4 shows as 40%; for 0% to 10%, use min: 0 and max: 0.1."),
|
|
3770
3749
|
currency: zod.z.string().optional().describe("ISO code. Default \"USD\""),
|
|
3771
3750
|
title: zod.z.string().optional()
|
|
3772
3751
|
});
|
|
@@ -4180,7 +4159,7 @@ const mapMarker = zod.z.object({
|
|
|
4180
4159
|
icon: zod.z.string().optional()
|
|
4181
4160
|
});
|
|
4182
4161
|
const mapSchema = zod.z.object({
|
|
4183
|
-
markers: zod.z.array(mapMarker).optional()
|
|
4162
|
+
markers: zod.z.array(mapMarker).optional(),
|
|
4184
4163
|
route: zod.z.boolean().optional().describe("Draws a line through the markers in order"),
|
|
4185
4164
|
selected: zod.z.string().optional().describe("The label of the selected marker. Bind it with { \"@path\": \"/x\" } to read the choice of the user"),
|
|
4186
4165
|
height: zod.z.number().optional().describe("Pixels. Default 240"),
|
|
@@ -4508,8 +4487,8 @@ const tableColumn = zod.z.union([
|
|
|
4508
4487
|
]);
|
|
4509
4488
|
const tableSchema = zod.z.object({
|
|
4510
4489
|
caption: zod.z.string().optional().describe("A short name of the table for screen readers. It is not shown"),
|
|
4511
|
-
columns: zod.z.array(tableColumn).optional().describe("
|
|
4512
|
-
rows: zod.z.array(zod.z.array(zod.z.unknown())).optional().describe("A list of row lists
|
|
4490
|
+
columns: zod.z.array(tableColumn).optional().describe("Default []"),
|
|
4491
|
+
rows: zod.z.array(zod.z.array(zod.z.unknown())).optional().describe("A list of row lists. A cell is a string, a number, or { \"componentId\": \"<id>\" } to show a component. Default []"),
|
|
4513
4492
|
columnSizing: zod.z.enum(["auto", "equal"]).optional().describe("Default \"auto\""),
|
|
4514
4493
|
dividers: zod.z.boolean().optional().describe("Default true"),
|
|
4515
4494
|
stickyHeader: zod.z.boolean().optional().describe("Default false"),
|
|
@@ -4541,7 +4520,7 @@ const listItemValue = zod.z.union([zod.z.string(), zod.z.object({
|
|
|
4541
4520
|
value: zod.z.union([zod.z.string(), zod.z.number()]).optional().describe("Without an action: shown on the right of the label, for a key and value fact. With an action: the payload of the pick, not shown")
|
|
4542
4521
|
})]);
|
|
4543
4522
|
const listSchema = zod.z.object({
|
|
4544
|
-
items: zod.z.array(listItemValue).optional()
|
|
4523
|
+
items: zod.z.array(listItemValue).optional(),
|
|
4545
4524
|
direction: zod.z.enum(["vertical", "horizontal"]).optional().describe("Default \"vertical\". \"horizontal\" scrolls sideways"),
|
|
4546
4525
|
align: zod.z.enum([
|
|
4547
4526
|
"start",
|
|
@@ -4995,7 +4974,7 @@ function ListItem(props) {
|
|
|
4995
4974
|
const dataComponents = {
|
|
4996
4975
|
Table: {
|
|
4997
4976
|
component: Table,
|
|
4998
|
-
description: "A data table
|
|
4977
|
+
description: "A data table, in a plain Column, not a Card. Give \"columns\" and \"rows\", or \"children\": TableSection or TableRow ids, or a template { \"componentId\", \"path\" } repeating a TableRow per item. A component in a cell or header (Badge, Button, Icon, Text): { \"componentId\": \"<id>\" }, with the id in \"cellComponents\".",
|
|
4999
4978
|
props: tableSchema,
|
|
5000
4979
|
slots: {
|
|
5001
4980
|
children: "multiple",
|
|
@@ -5025,7 +5004,7 @@ const dataComponents = {
|
|
|
5025
5004
|
},
|
|
5026
5005
|
List: {
|
|
5027
5006
|
component: List,
|
|
5028
|
-
description: "A list in a Card or next to another component
|
|
5007
|
+
description: "A list in a Card or next to another component; a plain list of text is markdown. Give \"items\": an item with a value and no action is a key-value row (Price: $1,599). Or give \"children\": ListItem ids or a template. With \"action\" the user picks an item; the event context gets its index, label and value.",
|
|
5029
5008
|
props: listSchema,
|
|
5030
5009
|
events: { action: {
|
|
5031
5010
|
description: "Runs when the user picks an item. The args are the index, label and value of the item.",
|
|
@@ -5050,7 +5029,7 @@ const dataComponents = {
|
|
|
5050
5029
|
},
|
|
5051
5030
|
Map: {
|
|
5052
5031
|
component: MapView,
|
|
5053
|
-
description: "A map with markers
|
|
5032
|
+
description: "A map with markers; with \"route\" a line connects them in order. Bind \"selected\" to get the label of the marker the user picks. Without maps it shows a list of the places.",
|
|
5054
5033
|
props: mapSchema,
|
|
5055
5034
|
writable: ["selected"]
|
|
5056
5035
|
}
|
|
@@ -5606,7 +5585,7 @@ const feedbackComponents = {
|
|
|
5606
5585
|
},
|
|
5607
5586
|
Popover: {
|
|
5608
5587
|
component: Popover,
|
|
5609
|
-
description: "A small overlay
|
|
5588
|
+
description: "A small overlay: exactly two children, one PopoverTrigger then one PopoverContent. A click on the trigger toggles it; Escape or a click outside closes it.",
|
|
5610
5589
|
props: popoverSchema,
|
|
5611
5590
|
slots: CHILDREN_SLOT,
|
|
5612
5591
|
writable: ["open"]
|
|
@@ -5740,7 +5719,7 @@ const optionList = zod.z.array(zod.z.union([zod.z.string(), zod.z.object({
|
|
|
5740
5719
|
value: zod.z.string(),
|
|
5741
5720
|
label: zod.z.string().optional(),
|
|
5742
5721
|
description: zod.z.string().optional()
|
|
5743
|
-
})])).optional()
|
|
5722
|
+
})])).optional();
|
|
5744
5723
|
const SIZES = [
|
|
5745
5724
|
"sm",
|
|
5746
5725
|
"md",
|
|
@@ -7192,7 +7171,7 @@ function Slider(props) {
|
|
|
7192
7171
|
const inputComponents = {
|
|
7193
7172
|
Button: {
|
|
7194
7173
|
component: Button,
|
|
7195
|
-
description: "
|
|
7174
|
+
description: "Sends its onClick event; with href it opens the URL, with copy it copies the text. Variant \"primary\" for the one main Button in a Row. submit true submits the Form around it. Its children render instead of the label. With checks it is disabled while a check fails.",
|
|
7196
7175
|
props: buttonSchema,
|
|
7197
7176
|
events: { onClick: {
|
|
7198
7177
|
description: "Sent when the user clicks the button.",
|
|
@@ -7218,7 +7197,7 @@ const inputComponents = {
|
|
|
7218
7197
|
},
|
|
7219
7198
|
Form: {
|
|
7220
7199
|
component: Form,
|
|
7221
|
-
description: "A layout container that is a form. It sends
|
|
7200
|
+
description: "A layout container that is a form. It sends onSubmit when the user submits (a Button with submit true, or Enter in a field). Put its field values in the event context with { \"@path\": \"/x\" }.",
|
|
7222
7201
|
props: formSchema,
|
|
7223
7202
|
events: { onSubmit: {
|
|
7224
7203
|
description: "Sent when the user submits the form.",
|
|
@@ -7275,13 +7254,13 @@ const inputComponents = {
|
|
|
7275
7254
|
},
|
|
7276
7255
|
ChoicePicker: {
|
|
7277
7256
|
component: ChoicePicker,
|
|
7278
|
-
description: "
|
|
7257
|
+
description: "Options as checkboxes or chips: pick one, or several with variant \"multipleSelection\". Its value is the list of chosen values. Give it a label.",
|
|
7279
7258
|
props: choicePickerSchema,
|
|
7280
7259
|
writable: VALUE_WRITABLE
|
|
7281
7260
|
},
|
|
7282
7261
|
DateTimeInput: {
|
|
7283
7262
|
component: DateTimeInput,
|
|
7284
|
-
description: "A date picker,
|
|
7263
|
+
description: "A date picker, a time picker with enableTime, or both. timeStep (minutes) offers fixed times, e.g. 30 for a booking. The value is ISO 8601. Give it a label.",
|
|
7285
7264
|
props: dateTimeInputSchema,
|
|
7286
7265
|
writable: VALUE_WRITABLE
|
|
7287
7266
|
}
|
|
@@ -7783,12 +7762,12 @@ function Tooltip({ trigger, content }) {
|
|
|
7783
7762
|
const textComponents = {
|
|
7784
7763
|
Title: {
|
|
7785
7764
|
component: Title,
|
|
7786
|
-
description: "A heading
|
|
7765
|
+
description: "A heading in a Card or next to another component; a heading alone is markdown. Size \"2xl\" at most once per surface, \"lg\" for sections. \"sm\" is an h4, \"md\"/\"lg\" an h3 (default \"md\"), \"xl\" and up an h2. Bold unless strong is false.",
|
|
7787
7766
|
props: titleSchema
|
|
7788
7767
|
},
|
|
7789
7768
|
Text: {
|
|
7790
7769
|
component: Text,
|
|
7791
|
-
description: "Body text
|
|
7770
|
+
description: "Body text in a Card or next to another component; a paragraph alone is markdown outside the fence. Color \"default\" or \"secondary\". `text` takes inline markdown (**bold**, *italic*, ~~strike~~, ++underline++, `code`, [link](url)). `children` ids render inline after it, e.g. a Badge.",
|
|
7792
7771
|
props: textSchema,
|
|
7793
7772
|
slots: CHILDREN_SLOT
|
|
7794
7773
|
},
|
|
@@ -7859,7 +7838,7 @@ const textComponents = {
|
|
|
7859
7838
|
},
|
|
7860
7839
|
Tooltip: {
|
|
7861
7840
|
component: Tooltip,
|
|
7862
|
-
description: "Shows `content` when the user points at
|
|
7841
|
+
description: "Shows `content` when the user points at or focuses `trigger`. `trigger`: one child id, a Text, Icon or Badge (not a Button or Link). `content`: one child id of short text, no links or buttons.",
|
|
7863
7842
|
slots: {
|
|
7864
7843
|
trigger: "single",
|
|
7865
7844
|
content: "single"
|