@cloudflare/kumo 2.15.0 → 2.17.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/CHANGELOG.md +40 -0
- package/ai/component-registry.json +49 -11
- package/ai/component-registry.md +102 -4
- package/ai/schemas.ts +5 -3
- package/dist/.build-complete +1 -1
- package/dist/ai/schemas.d.ts +4 -0
- package/dist/ai/schemas.js +2 -0
- package/dist/chunks/{autocomplete-kgp17p6oz4pczxt9.js → autocomplete-evlm6fj7v7w0g2z2.js} +2 -2
- package/dist/chunks/{banner-cpla8vqjxaulggyd.js → banner-lvbgdzxq3yndkbot.js} +1 -1
- package/dist/chunks/{breadcrumbs-oyuqwb09l08uhok2.js → breadcrumbs-fsuyq7z6hdh1thjv.js} +1 -1
- package/dist/chunks/{button-oxy32x5w9x9az80g.js → button-k7axs4vu1rwx89w3.js} +1 -1
- package/dist/chunks/{chart-foxl6xbubuoshfcs.js → chart-hp3vqwe49tbyywqm.js} +17 -6
- package/dist/chunks/{checkbox-o9627970y7c9ciqy.js → checkbox-g8b4f2hs5vux3u26.js} +1 -1
- package/dist/chunks/{clipboard-text-bhy88tgvk1o6wmyl.js → clipboard-text-fffd5tpa0iye6r6m.js} +17 -6
- package/dist/chunks/{combobox-hwrq8etkr7p2id0x.js → combobox-iawd8lxwd5b18fce.js} +2 -2
- package/dist/chunks/{date-picker-oee5ehsrepnlmltj.js → date-picker-kfoxd4u7ckg4nsez.js} +78 -6
- package/dist/chunks/{empty-ft85jcbs7fd5t3tn.js → empty-ir5bg5w4kkisuc1c.js} +1 -1
- package/dist/chunks/{field-jzzlgre0jmrr38o2.js → field-n7gmbg5xvh6oqbom.js} +7 -2
- package/dist/chunks/{input-ksy1w6j1m6olz6ck.js → input-f0pbcvjudf5zb8ek.js} +2 -2
- package/dist/chunks/{input-group-n08mcd8b36wbylro.js → input-group-dqo5tcoewbdx86qx.js} +4 -4
- package/dist/chunks/{input-il37wjigy2xtgdo2.js → input-iev3wgdzhkqpae2k.js} +2 -2
- package/dist/chunks/{label-hugrtzreeqk5mtqu.js → label-njfcj6h9utmg2n9l.js} +2 -2
- package/dist/chunks/{layer-dialog-dwrrgv1wasrerow4.js → layer-dialog-n7foup6icxowm82n.js} +11 -3
- package/dist/chunks/{menubar-m5pqhx7lu5z7mkks.js → menubar-b454nksysu0wicbz.js} +1 -1
- package/dist/chunks/{pagination-h24on80p2z5ugqdb.js → pagination-mwlpbysq4cxmvs45.js} +25 -23
- package/dist/chunks/{select-ey03k4630uckf1rk.js → select-fae2ls189jrq902h.js} +4 -4
- package/dist/chunks/{sensitive-input-lfrrtyg9n5ulq3tb.js → sensitive-input-heb3xapwahzhpq6y.js} +2 -2
- package/dist/chunks/{sidebar-gluq5b5oacrdk4m4.js → sidebar-h6g412ror8p7uo0d.js} +3 -3
- package/dist/chunks/{switch-mqf1ulvle4nd6d2t.js → switch-ktfauhluw1yi5tkk.js} +1 -1
- package/dist/chunks/{table-nysse5tiwf47gg4k.js → table-lp41fsw7mqr751hn.js} +1 -1
- package/dist/chunks/{tag-input-b10gfxoob9vcizpm.js → tag-input-k6vzllby4qebmv63.js} +38 -22
- package/dist/chunks/{toast-b4t9rt9y1sumcmy2.js → toast-kzwscia42707sau6.js} +60 -52
- package/dist/chunks/{toolbar-hov6sa3ui366f447.js → toolbar-nnos2ouwfk7i6tpw.js} +3 -3
- package/dist/chunks/{tooltip-lguwh8bjhxwnjfus.js → tooltip-bcymn9bfyz29fvji.js} +2 -0
- package/dist/code.js +4 -4
- package/dist/components/autocomplete.js +1 -1
- package/dist/components/banner.js +1 -1
- package/dist/components/breadcrumbs.js +1 -1
- package/dist/components/button.js +1 -1
- package/dist/components/chart.d.ts +1 -1
- package/dist/components/chart.js +1 -1
- package/dist/components/checkbox.js +1 -1
- package/dist/components/clipboard-text.d.ts +1 -1
- package/dist/components/clipboard-text.js +1 -1
- package/dist/components/combobox.js +1 -1
- package/dist/components/date-picker.d.ts +1 -1
- package/dist/components/date-picker.js +1 -1
- package/dist/components/empty.js +1 -1
- package/dist/components/field.js +1 -1
- package/dist/components/input-group.js +1 -1
- package/dist/components/input.js +3 -3
- package/dist/components/label.js +1 -1
- package/dist/components/layer-dialog.d.ts +1 -1
- package/dist/components/layer-dialog.js +1 -1
- package/dist/components/menubar.js +1 -1
- package/dist/components/pagination.js +1 -1
- package/dist/components/select.js +1 -1
- package/dist/components/sensitive-input.js +1 -1
- package/dist/components/sidebar.js +1 -1
- package/dist/components/switch.js +1 -1
- package/dist/components/table.js +1 -1
- package/dist/components/tag-input.d.ts +1 -1
- package/dist/components/tag-input.js +1 -1
- package/dist/components/toast.js +1 -1
- package/dist/components/toolbar.js +1 -1
- package/dist/components/tooltip.js +1 -1
- package/dist/{index-CiwC1j1N.d.ts → index-2jvVmJ8P.d.ts} +9 -0
- package/dist/{index-DJIRVD5B.d.ts → index-CReGk3Dc.d.ts} +6 -0
- package/dist/{index-5bJAnzUo.d.ts → index-Dmbgjww7.d.ts} +1 -0
- package/dist/{index-DNsSKNUe.d.ts → index-bBPKMepR.d.ts} +4 -0
- package/dist/{index-fsZE0vPs.d.ts → index-g-eFm1Bq.d.ts} +2 -0
- package/dist/index.d.ts +5 -5
- package/dist/index.js +27 -27
- package/dist/styles/kumo-binding.css +159 -0
- package/dist/styles/kumo-standalone.css +1 -1
- package/dist/styles/kumo.css +0 -545
- package/package.json +1 -1
- package/scripts/format-generated.ts +12 -0
- package/scripts/generate-primitives.ts +16 -12
- package/scripts/theme-generator/index.ts +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,45 @@
|
|
|
1
1
|
# @cloudflare/kumo
|
|
2
2
|
|
|
3
|
+
## 2.17.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- c2b2fc4: Add a `masked` option to `ClipboardText` for sensitive values that should be hidden initially and revealed on demand.
|
|
8
|
+
- 7d1c776: Refresh DatePicker's styling. Days are 32px squares in 36px columns with 8px between weeks and 14px text, and the previous and next buttons are borderless squares that match the days. Two-month views sit side by side, range bands are rounded at their ends and where weeks wrap, and month and year dropdowns (`captionLayout="dropdown"`) are styled.
|
|
9
|
+
|
|
10
|
+
DatePicker now uses Kumo tokens instead of hard-coded colors, so it follows the active theme, and `@cloudflare/kumo/styles/standalone` now styles it too. Month-change animations respect `prefers-reduced-motion`.
|
|
11
|
+
|
|
12
|
+
The `.rdp-*` rules and `--rdp-*` variables in `kumo.css` are gone, apart from the month-change animations. If you customized DatePicker through them, use the `classNames` prop instead.
|
|
13
|
+
|
|
14
|
+
- 40eaa25: Fix the toast bump animation cutting off a toast's slide-in when the same `id` is added again while the toast is still entering. Duplicate adds through `createKumoToastManager()` now bump too, and toast motion respects `prefers-reduced-motion`. Toast surface styles now live on an inner `[data-kumo-part="surface"]` element instead of the `role="dialog"` root.
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- 06726b0: `Field` no longer renders a `<label>` when it would be empty: when `label` and `labelTooltip` are each `undefined`, `null`, a boolean or `""`, and there is no "(optional)" indicator. This fixes `Input`, `InputArea` and `TagInput` without a `label` but with a description or error: they no longer show an empty row above the control, and their `aria-label` is no longer replaced by an empty accessible name.
|
|
19
|
+
- 595463b: Format generated primitive and theme files with Oxfmt so codegen does not create formatting-only changes.
|
|
20
|
+
- 3aa0d59: Hide the native scrollbars of the LayerDialog body and Sidebar content with Kumo's own CSS. Base UI only hides them with a style element it injects into the document head, so client routers that swap the head (such as Astro's ClientRouter) or a Content Security Policy that blocks inline styles could leave empty scrollbar tracks along the dialog body.
|
|
21
|
+
- 890a6ab: Add a full-width `LayerDialog.Separator` for dividing sections of dialog body content.
|
|
22
|
+
- 4185bb1: `Tooltip` now keeps its own trigger out of the tab order while the tooltip is `disabled`. This applies only when Kumo renders the trigger (no `render` or `asChild`), for example around truncated `Text` that needs a tooltip only when it overflows. A disabled tooltip there has nothing to reveal, so keyboard users no longer stop on it. Custom triggers passed through `render` keep their own focus behavior.
|
|
23
|
+
|
|
24
|
+
## 2.16.0
|
|
25
|
+
|
|
26
|
+
### Minor Changes
|
|
27
|
+
|
|
28
|
+
- 810d820: Add the `xAxisHideLabelOverlap` prop to `TimeseriesChart`, defaulting to `true`.
|
|
29
|
+
|
|
30
|
+
### Patch Changes
|
|
31
|
+
|
|
32
|
+
- 99b17fb: Match CodeHighlighted loading and error fallback styling to highlighted code. Reset host app backgrounds, borders, and pre border radii to keep the frame and spacing consistent while syntax colors load.
|
|
33
|
+
- 6a093a5: Fix disabled `Input` text color. It used an undefined `text-kumo-disabled` token, so disabled inputs looked the same as enabled ones. It now uses `text-kumo-inactive`.
|
|
34
|
+
- e16f41f: Fix `Pagination` page validation. The page input only accepts whole numbers written as digits, so it no longer calls `setPage` with `NaN`, fractions, or values like `0x10` and `1e1`. Invalid input now restores the current page. With `totalCount={0}`, or when `page` is past the last page, Next and Last are disabled and nothing requests page 0.
|
|
35
|
+
- fedc8a7: Fix three `TagInput` bugs:
|
|
36
|
+
|
|
37
|
+
- `readOnly` now prevents all value changes. Tags can no longer be removed with their remove buttons or Backspace, and new tags can't be added by typing, pasting, or blurring.
|
|
38
|
+
- Pasting comma- or newline-separated text now merges it with the draft text and replaces the current selection before splitting it into tags. Previously, text you were already typing was lost.
|
|
39
|
+
- Native forms now submit the accepted tags. With `name`, each tag is submitted as its own form value, so the empty draft is no longer sent. With `required`, validation passes as soon as there is at least one tag.
|
|
40
|
+
|
|
41
|
+
- 947065a: Fix `TimeseriesChart` crashing with `RangeError: Maximum call stack size exceeded` on large datasets. Marker clustering no longer spreads every timestamp into `Math.max`/`Math.min`, and is skipped entirely when the chart has no markers.
|
|
42
|
+
|
|
3
43
|
## 2.15.0
|
|
4
44
|
|
|
5
45
|
### Minor Changes
|
|
@@ -1362,6 +1362,11 @@
|
|
|
1362
1362
|
"optional": true,
|
|
1363
1363
|
"description": "If provided, this text will be copied to clipboard instead of the `text` prop."
|
|
1364
1364
|
},
|
|
1365
|
+
"masked": {
|
|
1366
|
+
"type": "boolean",
|
|
1367
|
+
"optional": true,
|
|
1368
|
+
"description": "Masks the text initially and adds a control to reveal or hide it."
|
|
1369
|
+
},
|
|
1365
1370
|
"className": {
|
|
1366
1371
|
"type": "string",
|
|
1367
1372
|
"optional": true,
|
|
@@ -1382,6 +1387,7 @@
|
|
|
1382
1387
|
"<ClipboardText text=\"0c239dd2\" />",
|
|
1383
1388
|
"<ClipboardText text=\"abc123\" />",
|
|
1384
1389
|
"<ClipboardText text=\"sk_live_51H8...\" />",
|
|
1390
|
+
"<div className=\"w-full max-w-xs\">\n <ClipboardText className=\"w-full\" text=\"sk_live_51H8_abc123\" masked />\n </div>",
|
|
1385
1391
|
"<ClipboardText\n text=\"sk_live_***********\"\n textToCopy=\"sk_live_51H8_abc123\"\n />",
|
|
1386
1392
|
"<ClipboardText text=\"https://example.com/very/long/url/path\" />",
|
|
1387
1393
|
"<ClipboardText\n text=\"npx kumo add button\"\n tooltip={{ text: \"Copy\", copiedText: \"Copied!\", side: \"top\" }}\n />"
|
|
@@ -3111,17 +3117,29 @@
|
|
|
3111
3117
|
}
|
|
3112
3118
|
},
|
|
3113
3119
|
"examples": [
|
|
3114
|
-
"<div className=\"flex flex-col gap-4\">\n <DatePicker\n mode=\"single\"\n selected={date}\n onChange={(d) => {\n if (d) {\n setDate(d);\n }\n }}\n />\n <p className=\"text-sm text-kumo-subtle\">\n Selected: {date ? date.toLocaleDateString() : \"None\"}\n </p>\n </div>",
|
|
3115
|
-
"<div className=\"flex flex-col gap-4\">\n <DatePicker\n mode=\"multiple\"\n selected={dates}\n onChange={setDates}\n max={5}\n />\n <p className=\"text-sm text-kumo-subtle\">\n Selected: {dates?.length ?? 0} date(s)\n </p>\n </div>",
|
|
3116
|
-
"<div className=\"flex flex-col gap-4\">\n <DatePicker\n mode=\"range\"\n selected={range}\n onChange={setRange}\n numberOfMonths={2}\n />\n <p className=\"text-sm text-kumo-subtle\">\n Range:{\" \"}\n {range?.from\n ? `${range.from.toLocaleDateString()} - ${range.to?.toLocaleDateString() ?? \"...\"}`\n : \"None\"}\n </p>\n </div>",
|
|
3117
|
-
"<div className=\"flex flex-col gap-4\">\n <DatePicker\n mode=\"range\"\n selected={range}\n onChange={setRange}\n min={3}\n max={7}\n footer={\n <span className=\"text-xs text-kumo-subtle\">Select 3-7 nights</span>\n }\n />\n </div>",
|
|
3120
|
+
"<div className=\"flex flex-col gap-4\">\n <DatePicker\n className=\"p-3\"\n mode=\"single\"\n selected={date}\n onChange={(d) => {\n if (d) {\n setDate(d);\n }\n }}\n />\n <p className=\"text-sm text-kumo-subtle\">\n Selected: {date ? date.toLocaleDateString() : \"None\"}\n </p>\n </div>",
|
|
3121
|
+
"<div className=\"flex flex-col gap-4\">\n <DatePicker\n className=\"p-3\"\n mode=\"multiple\"\n selected={dates}\n onChange={setDates}\n max={5}\n />\n <p className=\"text-sm text-kumo-subtle\">\n Selected: {dates?.length ?? 0} date(s)\n </p>\n </div>",
|
|
3122
|
+
"<div className=\"flex flex-col gap-4\">\n <DatePicker\n className=\"p-3\"\n mode=\"range\"\n selected={range}\n onChange={setRange}\n numberOfMonths={2}\n />\n <p className=\"text-sm text-kumo-subtle\">\n Range:{\" \"}\n {range?.from\n ? `${range.from.toLocaleDateString()} - ${range.to?.toLocaleDateString() ?? \"...\"}`\n : \"None\"}\n </p>\n </div>",
|
|
3123
|
+
"<div className=\"flex flex-col gap-4\">\n <DatePicker\n className=\"p-3\"\n mode=\"range\"\n selected={range}\n onChange={setRange}\n min={3}\n max={7}\n footer={\n <span className=\"text-xs text-kumo-subtle\">Select 3-7 nights</span>\n }\n />\n </div>",
|
|
3124
|
+
"<DatePicker\n className=\"p-3\"\n mode=\"single\"\n selected={date}\n onChange={setDate}\n captionLayout=\"dropdown\"\n startMonth={new Date(2020, 0)}\n endMonth={new Date(2030, 11)}\n />",
|
|
3118
3125
|
"<Popover>\n <Popover.Trigger\n render={<Button variant=\"outline\" icon={CalendarDotsIcon} />}\n >\n {date ? date.toLocaleDateString() : \"Pick a date\"}\n </Popover.Trigger>\n <Popover.Content className=\"p-3\">\n <DatePicker mode=\"single\" selected={date} onChange={setDate} />\n </Popover.Content>\n </Popover>",
|
|
3119
3126
|
"<Popover>\n <Popover.Trigger\n render={<Button variant=\"outline\" icon={CalendarDotsIcon} />}\n >\n {formatRange()}\n </Popover.Trigger>\n <Popover.Content className=\"p-3\">\n <DatePicker\n mode=\"range\"\n selected={range}\n onChange={setRange}\n numberOfMonths={2}\n />\n </Popover.Content>\n </Popover>",
|
|
3120
|
-
"<Popover>\n <Popover.Trigger\n render={<Button variant=\"outline\" icon={CalendarDotsIcon} />}\n >\n {formatRange()}\n </Popover.Trigger>\n <Popover.Content className=\"p-0\">\n <div className=\"flex\">\n <div className=\"flex flex-col gap-1 border-r border-kumo-hairline p-2 text-sm\">\n {presets.map((preset) => {\n const isActive = isPresetActive(preset);\n return (\n <button\n key={preset.label}\n type=\"button\"\n onClick={() => handlePresetClick(preset)}\n className={`rounded-md px-3 py-1.5 text-left whitespace-nowrap ${\n isActive\n ? \"bg-kumo-
|
|
3121
|
-
"<DatePicker\n mode=\"multiple\"\n selected={dates}\n onChange={setDates}\n max={maxDays}\n disabled={unavailableDates}\n fixedWeeks\n footer={\n <p className=\"w-full pt-2 text-xs text-kumo-subtle\">\n {selectedCount}/{maxDays} days selected. Grayed dates are unavailable.\n </p>\n }\n />"
|
|
3127
|
+
"<Popover>\n <Popover.Trigger\n render={<Button variant=\"outline\" icon={CalendarDotsIcon} />}\n >\n {formatRange()}\n </Popover.Trigger>\n <Popover.Content className=\"p-0\">\n <div className=\"flex\">\n <div className=\"flex flex-col gap-1 border-r border-kumo-hairline p-2 text-sm\">\n {presets.map((preset) => {\n const isActive = isPresetActive(preset);\n return (\n <button\n key={preset.label}\n type=\"button\"\n onClick={() => handlePresetClick(preset)}\n className={`rounded-md px-3 py-1.5 text-left whitespace-nowrap ${\n isActive\n ? \"bg-kumo-contrast text-kumo-inverse\"\n : \"text-kumo-subtle hover:bg-kumo-control\"\n }`}\n >\n {preset.label}\n </button>\n );\n })}\n </div>\n <div className=\"p-3\">\n <DatePicker\n mode=\"range\"\n selected={range}\n onChange={setRange}\n month={month}\n onMonthChange={setMonth}\n numberOfMonths={2}\n />\n </div>\n </div>\n </Popover.Content>\n </Popover>",
|
|
3128
|
+
"<DatePicker\n className=\"p-3\"\n mode=\"multiple\"\n selected={dates}\n onChange={setDates}\n max={maxDays}\n disabled={unavailableDates}\n fixedWeeks\n footer={\n <p className=\"w-full pt-2 text-xs text-kumo-subtle\">\n {selectedCount}/{maxDays} days selected. Grayed dates are unavailable.\n </p>\n }\n />"
|
|
3122
3129
|
],
|
|
3123
3130
|
"colors": [
|
|
3124
|
-
"bg-kumo-base"
|
|
3131
|
+
"bg-kumo-base",
|
|
3132
|
+
"bg-kumo-contrast",
|
|
3133
|
+
"bg-kumo-fill",
|
|
3134
|
+
"bg-kumo-interact",
|
|
3135
|
+
"bg-kumo-tint",
|
|
3136
|
+
"ring-kumo-brand",
|
|
3137
|
+
"ring-kumo-line",
|
|
3138
|
+
"text-kumo-default",
|
|
3139
|
+
"text-kumo-inactive",
|
|
3140
|
+
"text-kumo-inverse",
|
|
3141
|
+
"text-kumo-link",
|
|
3142
|
+
"text-kumo-subtle"
|
|
3125
3143
|
]
|
|
3126
3144
|
},
|
|
3127
3145
|
"DateRangePicker": {
|
|
@@ -4253,7 +4271,8 @@
|
|
|
4253
4271
|
"ring-kumo-danger",
|
|
4254
4272
|
"ring-kumo-focus",
|
|
4255
4273
|
"ring-kumo-line",
|
|
4256
|
-
"text-kumo-default"
|
|
4274
|
+
"text-kumo-default",
|
|
4275
|
+
"text-kumo-inactive"
|
|
4257
4276
|
],
|
|
4258
4277
|
"styling": {
|
|
4259
4278
|
"dimensions": {
|
|
@@ -4635,6 +4654,7 @@
|
|
|
4635
4654
|
"<LayerDialog.Root>\n <LayerDialog.Trigger\n render={(props) => <Button {...props}>Open settings</Button>}\n />\n <LayerDialog.Content>\n <LayerDialog.Title>Configure custom hostname</LayerDialog.Title>\n <LayerDialog.Description>\n Route requests for this hostname to your Worker.\n </LayerDialog.Description>\n <LayerDialog.Body>\n <div className=\"flex flex-col gap-5\">\n <Input\n label=\"Hostname\"\n onChange={(event) => setHostname(event.target.value)}\n value={hostname}\n />\n <Input\n label=\"Display name\"\n onChange={(event) => setName(event.target.value)}\n value={name}\n />\n </div>\n </LayerDialog.Body>\n <LayerDialog.Actions>\n <LayerDialog.Action\n disabled={!hostname || !name}\n onClick={() => undefined}\n >\n Save hostname\n </LayerDialog.Action>\n </LayerDialog.Actions>\n </LayerDialog.Content>\n </LayerDialog.Root>",
|
|
4636
4655
|
"<LayerDialog.Root>\n <LayerDialog.Trigger\n render={(props) => <Button {...props}>Create deployment</Button>}\n />\n <LayerDialog.Content>\n <LayerDialog.Title>Create deployment</LayerDialog.Title>\n <LayerDialog.Description>\n The browser owns the form’s native validation and submission state.\n </LayerDialog.Description>\n <LayerDialog.Body>\n <form\n id={formId}\n className=\"flex flex-col gap-5\"\n onSubmit={(event) => event.preventDefault()}\n >\n <Input\n label=\"Service name\"\n name=\"serviceName\"\n placeholder=\"production-api\"\n required\n />\n <Input\n label=\"Compatibility date\"\n name=\"compatibilityDate\"\n required\n type=\"date\"\n />\n </form>\n </LayerDialog.Body>\n <LayerDialog.Actions dismissLabel=\"Cancel\">\n <LayerDialog.Action form={formId} type=\"submit\">\n Create deployment\n </LayerDialog.Action>\n </LayerDialog.Actions>\n </LayerDialog.Content>\n </LayerDialog.Root>",
|
|
4637
4656
|
"<LayerDialog.Root>\n <LayerDialog.Trigger\n render={(props) => <Button {...props}>Choose a Worker</Button>}\n />\n <LayerDialog.Content>\n <LayerDialog.Title>Choose a Worker</LayerDialog.Title>\n <LayerDialog.Description>\n Select the Worker that handles requests for this route.\n </LayerDialog.Description>\n <LayerDialog.Body>\n <div className=\"flex flex-col gap-3\">\n <Input\n aria-label=\"Search Workers\"\n onChange={(event) => setQuery(event.target.value)}\n placeholder=\"Search Workers\"\n type=\"search\"\n value={query}\n />\n {matches.length > 0 ? (\n <ul className=\"flex flex-col divide-y divide-kumo-hairline rounded-lg border border-kumo-hairline\">\n {matches.map((worker) => (\n <li key={worker} className=\"px-3 py-2 text-kumo-default\">\n {worker}\n </li>\n ))}\n </ul>\n ) : (\n <Text variant=\"secondary\">No Workers match “{query}”.</Text>\n )}\n </div>\n </LayerDialog.Body>\n </LayerDialog.Content>\n </LayerDialog.Root>",
|
|
4657
|
+
"<LayerDialog.Root>\n <LayerDialog.Trigger\n render={(props) => <Button {...props}>Review deployment</Button>}\n />\n <LayerDialog.Content>\n <LayerDialog.Title>Deployment summary</LayerDialog.Title>\n <LayerDialog.Description>\n Review the configuration before deploying.\n </LayerDialog.Description>\n <LayerDialog.Body>\n <Text variant=\"secondary\">\n production-api will deploy to the global network.\n </Text>\n <LayerDialog.Separator />\n <Text variant=\"secondary\">\n The deployment uses compatibility date 2026-10-26.\n </Text>\n </LayerDialog.Body>\n <LayerDialog.Actions>\n <LayerDialog.Action>Deploy</LayerDialog.Action>\n </LayerDialog.Actions>\n </LayerDialog.Content>\n </LayerDialog.Root>",
|
|
4638
4658
|
"<div className=\"flex flex-wrap justify-center gap-3\">\n <LayerDialog.Root>\n <LayerDialog.Trigger\n render={(props) => <Button {...props}>Edit deployment</Button>}\n />\n <LayerDialog.Content>\n <LayerDialog.Title>Save deployment</LayerDialog.Title>\n <LayerDialog.Description>\n Deploy these changes now, or keep them as a draft.\n </LayerDialog.Description>\n <LayerDialog.Body>\n <Text variant=\"secondary\">\n The alternate save outcome is related to the primary action, so it\n lives in its split-button menu rather than as an unrelated footer\n button.\n </Text>\n </LayerDialog.Body>\n <LayerDialog.Actions>\n <LayerDialog.Action\n menu={[\n <DropdownMenu.Item key=\"draft\">\n Save as draft\n </DropdownMenu.Item>,\n ]}\n menuLabel=\"Save options\"\n >\n Save and deploy\n </LayerDialog.Action>\n </LayerDialog.Actions>\n </LayerDialog.Content>\n </LayerDialog.Root>\n\n <LayerDialog.Alert>\n <LayerDialog.Trigger\n render={(props) => (\n <Button {...props} variant=\"secondary\">\n Delete deployment\n </Button>\n )}\n />\n <LayerDialog.Content>\n <LayerDialog.Title>Delete deployment</LayerDialog.Title>\n <LayerDialog.Description>\n This permanently removes the deployment and cannot be undone.\n </LayerDialog.Description>\n <LayerDialog.Body>\n <Text variant=\"secondary\">\n The destructive split button keeps every part of the action,\n including the menu trigger, visually consistent.\n </Text>\n </LayerDialog.Body>\n <LayerDialog.Actions>\n <LayerDialog.Action\n menu={[\n <DropdownMenu.Item key=\"delete-with-tokens\">\n Delete and revoke tokens\n </DropdownMenu.Item>,\n ]}\n menuLabel=\"Delete options\"\n variant=\"destructive\"\n >\n Delete deployment\n </LayerDialog.Action>\n </LayerDialog.Actions>\n </LayerDialog.Content>\n </LayerDialog.Alert>\n </div>",
|
|
4639
4659
|
"<LayerDialog.Root>\n <LayerDialog.Trigger\n render={(props) => <Button {...props}>Edit profile</Button>}\n />\n <LayerDialog.Content>\n <LayerDialog.Title>Edit profile</LayerDialog.Title>\n <LayerDialog.Description>\n Update the profile information shown to your teammates. Changes are\n not saved until you confirm.\n </LayerDialog.Description>\n <LayerDialog.Body>\n <div className=\"flex flex-col gap-5\">\n <Input\n label=\"Display name\"\n onChange={(event) => setName(event.target.value)}\n value={name}\n />\n <Input\n label=\"Email address\"\n onChange={(event) => setEmail(event.target.value)}\n type=\"email\"\n value={email}\n />\n </div>\n </LayerDialog.Body>\n <LayerDialog.Actions dismissLabel=\"Cancel\">\n <LayerDialog.Action\n disabled={!email || !name}\n onClick={() => undefined}\n >\n Save changes\n </LayerDialog.Action>\n </LayerDialog.Actions>\n </LayerDialog.Content>\n </LayerDialog.Root>",
|
|
4640
4660
|
"<LayerDialog.Alert>\n <LayerDialog.Trigger\n render={(props) => (\n <Button variant=\"secondary-destructive\" {...props}>\n Delete Worker\n </Button>\n )}\n />\n <LayerDialog.Content>\n <LayerDialog.Title>Delete Worker</LayerDialog.Title>\n <LayerDialog.Description>\n Deleting{\" \"}\n <strong className=\"font-medium text-kumo-default\">\n {workerName}\n </strong>{\" \"}\n is permanent.\n </LayerDialog.Description>\n <LayerDialog.Body>\n <div className=\"flex flex-col gap-5\">\n <Text variant=\"secondary\">\n This deletes the Worker, deployments, and configuration. If this\n Worker consumes Queues, those connections are removed first.\n Queues, D1 databases, and messages stay in your account.\n </Text>\n <Input\n label={\n <>\n Type{\" \"}\n <strong className=\"font-medium text-kumo-default\">\n {workerName}\n </strong>{\" \"}\n to confirm\n </>\n }\n onChange={(event) => setConfirmation(event.target.value)}\n placeholder={workerName}\n value={confirmation}\n />\n </div>\n </LayerDialog.Body>\n <LayerDialog.Actions>\n <LayerDialog.Action\n disabled={confirmation !== workerName}\n onClick={() => undefined}\n variant=\"destructive\"\n >\n Delete Worker\n </LayerDialog.Action>\n </LayerDialog.Actions>\n </LayerDialog.Content>\n </LayerDialog.Alert>",
|
|
@@ -4650,6 +4670,7 @@
|
|
|
4650
4670
|
"bg-kumo-contrast",
|
|
4651
4671
|
"bg-kumo-elevated",
|
|
4652
4672
|
"bg-kumo-fill",
|
|
4673
|
+
"bg-kumo-hairline",
|
|
4653
4674
|
"bg-kumo-recessed",
|
|
4654
4675
|
"border-kumo-hairline"
|
|
4655
4676
|
],
|
|
@@ -4729,6 +4750,11 @@
|
|
|
4729
4750
|
}
|
|
4730
4751
|
}
|
|
4731
4752
|
},
|
|
4753
|
+
"Separator": {
|
|
4754
|
+
"name": "Separator",
|
|
4755
|
+
"description": "Separator sub-component",
|
|
4756
|
+
"props": {}
|
|
4757
|
+
},
|
|
4732
4758
|
"Action": {
|
|
4733
4759
|
"name": "Action",
|
|
4734
4760
|
"description": "Action sub-component",
|
|
@@ -5087,6 +5113,7 @@
|
|
|
5087
5113
|
"<Pagination\n text={() => `Page ${page}`}\n page={page}\n setPage={setPage}\n hasNextPage={hasNextPage}\n />",
|
|
5088
5114
|
"<Pagination\n page={page}\n setPage={setPage}\n perPage={10}\n totalCount={100}\n controls=\"full\"\n />",
|
|
5089
5115
|
"<Pagination page={page} setPage={setPage} perPage={10} totalCount={100} />",
|
|
5116
|
+
"<Pagination page={page} setPage={setPage} perPage={10} totalCount={0} />",
|
|
5090
5117
|
"<Pagination page={page} setPage={setPage} perPage={25} totalCount={1250} />",
|
|
5091
5118
|
"<Pagination\n text={({ perPage }: { perPage?: number }) =>\n `Page ${page} - showing ${perPage} per page`\n }\n page={page}\n setPage={setPage}\n perPage={25}\n totalCount={100}\n />",
|
|
5092
5119
|
"<Pagination\n page={page}\n setPage={setPage}\n perPage={perPage}\n totalCount={500}\n >\n <Pagination.Info />\n <Pagination.Separator />\n <Pagination.PageSize\n value={perPage}\n onChange={(size) => {\n setPerPage(size);\n setPage(1);\n }}\n />\n <Pagination.Controls />\n </Pagination>",
|
|
@@ -7383,7 +7410,8 @@
|
|
|
7383
7410
|
},
|
|
7384
7411
|
"name": {
|
|
7385
7412
|
"type": "string",
|
|
7386
|
-
"optional": true
|
|
7413
|
+
"optional": true,
|
|
7414
|
+
"description": "Submits each accepted tag as a separate form value under this name."
|
|
7387
7415
|
},
|
|
7388
7416
|
"placeholder": {
|
|
7389
7417
|
"type": "string",
|
|
@@ -7391,11 +7419,13 @@
|
|
|
7391
7419
|
},
|
|
7392
7420
|
"readOnly": {
|
|
7393
7421
|
"type": "boolean",
|
|
7394
|
-
"optional": true
|
|
7422
|
+
"optional": true,
|
|
7423
|
+
"description": "Prevents adding or removing tags while keeping the input focusable."
|
|
7395
7424
|
},
|
|
7396
7425
|
"required": {
|
|
7397
7426
|
"type": "boolean",
|
|
7398
|
-
"optional": true
|
|
7427
|
+
"optional": true,
|
|
7428
|
+
"description": "Requires at least one accepted tag for native form validation. Like a native input, a `readOnly` TagInput is skipped by validation."
|
|
7399
7429
|
},
|
|
7400
7430
|
"type": {
|
|
7401
7431
|
"type": "React.HTMLInputTypeAttribute",
|
|
@@ -7480,6 +7510,8 @@
|
|
|
7480
7510
|
"<TagInput\n label=\"Recipients\"\n description=\"Paste comma- or newline-separated email addresses.\"\n placeholder=\"name@example.com\"\n autoComplete=\"off\"\n value={recipients}\n onValueChange={setRecipients}\n validateValue={(value) => /^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/.test(value)}\n />",
|
|
7481
7511
|
"<TagInput\n defaultValue={[\"frontend\", \"priority\"]}\n label=\"Labels\"\n description=\"Accepts any non-empty value.\"\n placeholder=\"Add a label\"\n />",
|
|
7482
7512
|
"<TagInput\n defaultValue={[\"alpha\"]}\n label=\"Access groups\"\n maxValues={3}\n description=\"A maximum of three groups.\"\n placeholder=\"Type a group name\"\n />",
|
|
7513
|
+
"<form\n className=\"flex w-full max-w-md flex-col gap-3\"\n onSubmit={(event) => {\n event.preventDefault();\n const data = new FormData(event.currentTarget);\n setSubmitted(data.getAll(\"topics\").map(String));\n }}\n >\n <TagInput\n name=\"topics\"\n required\n label=\"Topics\"\n description=\"Add at least one topic, then submit.\"\n placeholder=\"Add a topic\"\n />\n <div className=\"flex items-center gap-3\">\n <Button type=\"submit\" variant=\"primary\">\n Submit\n </Button>\n {submitted ? (\n <code className=\"text-sm text-kumo-subtle\">\n topics: {JSON.stringify(submitted)}\n </code>\n ) : null}\n </div>\n </form>",
|
|
7514
|
+
"<TagInput\n readOnly\n defaultValue={[\"billing\", \"dns\", \"workers\"]}\n label=\"Assigned teams\"\n description=\"Managed by your organization's administrator.\"\n />",
|
|
7483
7515
|
"<TagInput\n defaultValue={[\"uno\"]}\n label=\"Etiquetas\"\n labels={{\n input: \"Agregar etiqueta\",\n removeValue: (value) => `Eliminar ${value}`,\n invalidValue: (value) => `${value} no es valido.`,\n maxValuesReached: (maxValues) => `Maximo de ${maxValues} etiquetas.`,\n }}\n maxValues={3}\n placeholder=\"Agregar una etiqueta\"\n />"
|
|
7484
7516
|
],
|
|
7485
7517
|
"colors": [
|
|
@@ -7690,6 +7722,11 @@
|
|
|
7690
7722
|
"optional": true,
|
|
7691
7723
|
"description": "Number of ticks to display on the x-axis"
|
|
7692
7724
|
},
|
|
7725
|
+
"xAxisHideLabelOverlap": {
|
|
7726
|
+
"type": "boolean",
|
|
7727
|
+
"optional": true,
|
|
7728
|
+
"description": "Whether overlapping x-axis labels are automatically hidden. Defaults to `true`."
|
|
7729
|
+
},
|
|
7693
7730
|
"xAxisTickFormat": {
|
|
7694
7731
|
"type": "(value: number) => string",
|
|
7695
7732
|
"optional": true,
|
|
@@ -7880,6 +7917,7 @@
|
|
|
7880
7917
|
"<Toasty>\n <ToastDescriptionOnlyButton />\n </Toasty>",
|
|
7881
7918
|
"<Toasty>\n <ToastSuccessButton />\n </Toasty>",
|
|
7882
7919
|
"<Toasty>\n <ToastMultipleButton />\n </Toasty>",
|
|
7920
|
+
"<Toasty>\n <ToastDeduplicatedButton />\n </Toasty>",
|
|
7883
7921
|
"<Toasty>\n <ToastErrorButton />\n </Toasty>",
|
|
7884
7922
|
"<Toasty>\n <ToastWarningButton />\n </Toasty>",
|
|
7885
7923
|
"<Toasty>\n <ToastInfoButton />\n </Toasty>",
|
package/ai/component-registry.md
CHANGED
|
@@ -1794,6 +1794,8 @@ Read-only text field with a one-click copy-to-clipboard button.
|
|
|
1794
1794
|
The text to display and copy to clipboard.
|
|
1795
1795
|
- `textToCopy`: string
|
|
1796
1796
|
If provided, this text will be copied to clipboard instead of the `text` prop.
|
|
1797
|
+
- `masked`: boolean
|
|
1798
|
+
Masks the text initially and adds a control to reveal or hide it.
|
|
1797
1799
|
- `className`: string
|
|
1798
1800
|
Additional CSS classes merged via `cn()`.
|
|
1799
1801
|
- `tooltip`: object
|
|
@@ -1857,6 +1859,12 @@ Read-only text field with a one-click copy-to-clipboard button.
|
|
|
1857
1859
|
<ClipboardText text="0c239dd2" />
|
|
1858
1860
|
```
|
|
1859
1861
|
|
|
1862
|
+
```tsx
|
|
1863
|
+
<div className="w-full max-w-xs">
|
|
1864
|
+
<ClipboardText className="w-full" text="sk_live_51H8_abc123" masked />
|
|
1865
|
+
</div>
|
|
1866
|
+
```
|
|
1867
|
+
|
|
1860
1868
|
```tsx
|
|
1861
1869
|
<ClipboardText
|
|
1862
1870
|
text="sk_live_***********"
|
|
@@ -3338,13 +3346,14 @@ DatePicker — a date selection calendar.
|
|
|
3338
3346
|
|
|
3339
3347
|
**Colors (kumo tokens used):**
|
|
3340
3348
|
|
|
3341
|
-
`bg-kumo-base`
|
|
3349
|
+
`bg-kumo-base`, `bg-kumo-contrast`, `bg-kumo-fill`, `bg-kumo-interact`, `bg-kumo-tint`, `ring-kumo-brand`, `ring-kumo-line`, `text-kumo-default`, `text-kumo-inactive`, `text-kumo-inverse`, `text-kumo-link`, `text-kumo-subtle`
|
|
3342
3350
|
|
|
3343
3351
|
**Examples:**
|
|
3344
3352
|
|
|
3345
3353
|
```tsx
|
|
3346
3354
|
<div className="flex flex-col gap-4">
|
|
3347
3355
|
<DatePicker
|
|
3356
|
+
className="p-3"
|
|
3348
3357
|
mode="single"
|
|
3349
3358
|
selected={date}
|
|
3350
3359
|
onChange={(d) => {
|
|
@@ -3362,6 +3371,7 @@ DatePicker — a date selection calendar.
|
|
|
3362
3371
|
```tsx
|
|
3363
3372
|
<div className="flex flex-col gap-4">
|
|
3364
3373
|
<DatePicker
|
|
3374
|
+
className="p-3"
|
|
3365
3375
|
mode="multiple"
|
|
3366
3376
|
selected={dates}
|
|
3367
3377
|
onChange={setDates}
|
|
@@ -3376,6 +3386,7 @@ DatePicker — a date selection calendar.
|
|
|
3376
3386
|
```tsx
|
|
3377
3387
|
<div className="flex flex-col gap-4">
|
|
3378
3388
|
<DatePicker
|
|
3389
|
+
className="p-3"
|
|
3379
3390
|
mode="range"
|
|
3380
3391
|
selected={range}
|
|
3381
3392
|
onChange={setRange}
|
|
@@ -3393,6 +3404,7 @@ DatePicker — a date selection calendar.
|
|
|
3393
3404
|
```tsx
|
|
3394
3405
|
<div className="flex flex-col gap-4">
|
|
3395
3406
|
<DatePicker
|
|
3407
|
+
className="p-3"
|
|
3396
3408
|
mode="range"
|
|
3397
3409
|
selected={range}
|
|
3398
3410
|
onChange={setRange}
|
|
@@ -3405,6 +3417,18 @@ DatePicker — a date selection calendar.
|
|
|
3405
3417
|
</div>
|
|
3406
3418
|
```
|
|
3407
3419
|
|
|
3420
|
+
```tsx
|
|
3421
|
+
<DatePicker
|
|
3422
|
+
className="p-3"
|
|
3423
|
+
mode="single"
|
|
3424
|
+
selected={date}
|
|
3425
|
+
onChange={setDate}
|
|
3426
|
+
captionLayout="dropdown"
|
|
3427
|
+
startMonth={new Date(2020, 0)}
|
|
3428
|
+
endMonth={new Date(2030, 11)}
|
|
3429
|
+
/>
|
|
3430
|
+
```
|
|
3431
|
+
|
|
3408
3432
|
```tsx
|
|
3409
3433
|
<Popover>
|
|
3410
3434
|
<Popover.Trigger
|
|
@@ -3455,7 +3479,7 @@ DatePicker — a date selection calendar.
|
|
|
3455
3479
|
onClick={() => handlePresetClick(preset)}
|
|
3456
3480
|
className={`rounded-md px-3 py-1.5 text-left whitespace-nowrap ${
|
|
3457
3481
|
isActive
|
|
3458
|
-
? "bg-kumo-
|
|
3482
|
+
? "bg-kumo-contrast text-kumo-inverse"
|
|
3459
3483
|
: "text-kumo-subtle hover:bg-kumo-control"
|
|
3460
3484
|
}`}
|
|
3461
3485
|
>
|
|
@@ -3481,6 +3505,7 @@ DatePicker — a date selection calendar.
|
|
|
3481
3505
|
|
|
3482
3506
|
```tsx
|
|
3483
3507
|
<DatePicker
|
|
3508
|
+
className="p-3"
|
|
3484
3509
|
mode="multiple"
|
|
3485
3510
|
selected={dates}
|
|
3486
3511
|
onChange={setDates}
|
|
@@ -5001,7 +5026,7 @@ Input component
|
|
|
5001
5026
|
|
|
5002
5027
|
**Colors (kumo tokens used):**
|
|
5003
5028
|
|
|
5004
|
-
`bg-kumo-control`, `ring-kumo-danger`, `ring-kumo-focus`, `ring-kumo-line`, `text-kumo-default`
|
|
5029
|
+
`bg-kumo-control`, `ring-kumo-danger`, `ring-kumo-focus`, `ring-kumo-line`, `text-kumo-default`, `text-kumo-inactive`
|
|
5005
5030
|
|
|
5006
5031
|
**Styling:**
|
|
5007
5032
|
|
|
@@ -5742,7 +5767,7 @@ LayerDialog component
|
|
|
5742
5767
|
|
|
5743
5768
|
**Colors (kumo tokens used):**
|
|
5744
5769
|
|
|
5745
|
-
`bg-kumo-base`, `bg-kumo-contrast`, `bg-kumo-elevated`, `bg-kumo-fill`, `bg-kumo-recessed`, `border-kumo-hairline`
|
|
5770
|
+
`bg-kumo-base`, `bg-kumo-contrast`, `bg-kumo-elevated`, `bg-kumo-fill`, `bg-kumo-hairline`, `bg-kumo-recessed`, `border-kumo-hairline`
|
|
5746
5771
|
|
|
5747
5772
|
**Sub-Components:**
|
|
5748
5773
|
|
|
@@ -5792,6 +5817,10 @@ Body sub-component
|
|
|
5792
5817
|
Props:
|
|
5793
5818
|
- `children`: ReactNode (required)
|
|
5794
5819
|
|
|
5820
|
+
#### LayerDialog.Separator
|
|
5821
|
+
|
|
5822
|
+
Separator sub-component
|
|
5823
|
+
|
|
5795
5824
|
#### LayerDialog.Action
|
|
5796
5825
|
|
|
5797
5826
|
Action sub-component
|
|
@@ -5935,6 +5964,32 @@ Props:
|
|
|
5935
5964
|
</LayerDialog.Root>
|
|
5936
5965
|
```
|
|
5937
5966
|
|
|
5967
|
+
```tsx
|
|
5968
|
+
<LayerDialog.Root>
|
|
5969
|
+
<LayerDialog.Trigger
|
|
5970
|
+
render={(props) => <Button {...props}>Review deployment</Button>}
|
|
5971
|
+
/>
|
|
5972
|
+
<LayerDialog.Content>
|
|
5973
|
+
<LayerDialog.Title>Deployment summary</LayerDialog.Title>
|
|
5974
|
+
<LayerDialog.Description>
|
|
5975
|
+
Review the configuration before deploying.
|
|
5976
|
+
</LayerDialog.Description>
|
|
5977
|
+
<LayerDialog.Body>
|
|
5978
|
+
<Text variant="secondary">
|
|
5979
|
+
production-api will deploy to the global network.
|
|
5980
|
+
</Text>
|
|
5981
|
+
<LayerDialog.Separator />
|
|
5982
|
+
<Text variant="secondary">
|
|
5983
|
+
The deployment uses compatibility date 2026-10-26.
|
|
5984
|
+
</Text>
|
|
5985
|
+
</LayerDialog.Body>
|
|
5986
|
+
<LayerDialog.Actions>
|
|
5987
|
+
<LayerDialog.Action>Deploy</LayerDialog.Action>
|
|
5988
|
+
</LayerDialog.Actions>
|
|
5989
|
+
</LayerDialog.Content>
|
|
5990
|
+
</LayerDialog.Root>
|
|
5991
|
+
```
|
|
5992
|
+
|
|
5938
5993
|
```tsx
|
|
5939
5994
|
<div className="flex flex-wrap justify-center gap-3">
|
|
5940
5995
|
<LayerDialog.Root>
|
|
@@ -10683,9 +10738,12 @@ TagInput component
|
|
|
10683
10738
|
- `height`: number | string
|
|
10684
10739
|
- `list`: string
|
|
10685
10740
|
- `name`: string
|
|
10741
|
+
Submits each accepted tag as a separate form value under this name.
|
|
10686
10742
|
- `placeholder`: string
|
|
10687
10743
|
- `readOnly`: boolean
|
|
10744
|
+
Prevents adding or removing tags while keeping the input focusable.
|
|
10688
10745
|
- `required`: boolean
|
|
10746
|
+
Requires at least one accepted tag for native form validation. Like a native input, a `readOnly` TagInput is skipped by validation.
|
|
10689
10747
|
- `type`: React.HTMLInputTypeAttribute
|
|
10690
10748
|
- `width`: number | string
|
|
10691
10749
|
- `className`: string
|
|
@@ -10747,6 +10805,44 @@ TagInput component
|
|
|
10747
10805
|
/>
|
|
10748
10806
|
```
|
|
10749
10807
|
|
|
10808
|
+
```tsx
|
|
10809
|
+
<form
|
|
10810
|
+
className="flex w-full max-w-md flex-col gap-3"
|
|
10811
|
+
onSubmit={(event) => {
|
|
10812
|
+
event.preventDefault();
|
|
10813
|
+
const data = new FormData(event.currentTarget);
|
|
10814
|
+
setSubmitted(data.getAll("topics").map(String));
|
|
10815
|
+
}}
|
|
10816
|
+
>
|
|
10817
|
+
<TagInput
|
|
10818
|
+
name="topics"
|
|
10819
|
+
required
|
|
10820
|
+
label="Topics"
|
|
10821
|
+
description="Add at least one topic, then submit."
|
|
10822
|
+
placeholder="Add a topic"
|
|
10823
|
+
/>
|
|
10824
|
+
<div className="flex items-center gap-3">
|
|
10825
|
+
<Button type="submit" variant="primary">
|
|
10826
|
+
Submit
|
|
10827
|
+
</Button>
|
|
10828
|
+
{submitted ? (
|
|
10829
|
+
<code className="text-sm text-kumo-subtle">
|
|
10830
|
+
topics: {JSON.stringify(submitted)}
|
|
10831
|
+
</code>
|
|
10832
|
+
) : null}
|
|
10833
|
+
</div>
|
|
10834
|
+
</form>
|
|
10835
|
+
```
|
|
10836
|
+
|
|
10837
|
+
```tsx
|
|
10838
|
+
<TagInput
|
|
10839
|
+
readOnly
|
|
10840
|
+
defaultValue={["billing", "dns", "workers"]}
|
|
10841
|
+
label="Assigned teams"
|
|
10842
|
+
description="Managed by your organization's administrator."
|
|
10843
|
+
/>
|
|
10844
|
+
```
|
|
10845
|
+
|
|
10750
10846
|
```tsx
|
|
10751
10847
|
<TagInput
|
|
10752
10848
|
defaultValue={["uno"]}
|
|
@@ -10914,6 +11010,8 @@ TimeseriesChart — a time-series line or bar chart.
|
|
|
10914
11010
|
Label for the x-axis (time axis)
|
|
10915
11011
|
- `xAxisTickCount`: number
|
|
10916
11012
|
Number of ticks to display on the x-axis
|
|
11013
|
+
- `xAxisHideLabelOverlap`: boolean
|
|
11014
|
+
Whether overlapping x-axis labels are automatically hidden. Defaults to `true`.
|
|
10917
11015
|
- `xAxisTickFormat`: (value: number) => string
|
|
10918
11016
|
Custom formatter for x-axis tick labels. Receives the raw timestamp in milliseconds and returns a display string, overriding ECharts' built-in time formatting.
|
|
10919
11017
|
- `yAxisTickFormat`: (value: number) => string
|
package/ai/schemas.ts
CHANGED
|
@@ -255,6 +255,7 @@ export const ClipboardTextPropsSchema = z.object({
|
|
|
255
255
|
size: z.enum(["sm", "base", "lg"]).optional(), // Size of the clipboard text field. - `"sm"` — Small clipboard text for compact UIs - `"base"` — Default clipboard text size - `"lg"` — Large clipboard text for prominent display
|
|
256
256
|
text: z.string(), // The text to display and copy to clipboard.
|
|
257
257
|
textToCopy: z.string().optional(), // If provided, this text will be copied to clipboard instead of the `text` prop.
|
|
258
|
+
masked: z.boolean().optional(), // Masks the text initially and adds a control to reveal or hide it.
|
|
258
259
|
className: z.string().optional(), // Additional CSS classes merged via `cn()`.
|
|
259
260
|
tooltip: z.unknown().optional(), // Tooltip config. Shows tooltip on hover, anchored toast on click.
|
|
260
261
|
labels: z.unknown().optional(), // Accessible labels for i18n.
|
|
@@ -962,10 +963,10 @@ export const TagInputPropsSchema = z.object({
|
|
|
962
963
|
checked: z.boolean().optional(),
|
|
963
964
|
height: z.unknown().optional(),
|
|
964
965
|
list: z.string().optional(),
|
|
965
|
-
name: z.string().optional(),
|
|
966
|
+
name: z.string().optional(), // Submits each accepted tag as a separate form value under this name.
|
|
966
967
|
placeholder: z.string().optional(),
|
|
967
|
-
readOnly: z.boolean().optional(),
|
|
968
|
-
required: z.boolean().optional(),
|
|
968
|
+
readOnly: z.boolean().optional(), // Prevents adding or removing tags while keeping the input focusable.
|
|
969
|
+
required: z.boolean().optional(), // Requires at least one accepted tag for native form validation. Like a native input, a `readOnly` TagInput is skipped by validation.
|
|
969
970
|
type: z.unknown().optional(),
|
|
970
971
|
width: z.unknown().optional(),
|
|
971
972
|
className: z.string().optional(),
|
|
@@ -1002,6 +1003,7 @@ export const TimeseriesChartPropsSchema = z.object({
|
|
|
1002
1003
|
thresholds: z.array(z.unknown()).optional(), // Horizontal threshold lines rendered on the value axis.
|
|
1003
1004
|
xAxisName: z.string().optional(), // Label for the x-axis (time axis)
|
|
1004
1005
|
xAxisTickCount: z.number().optional(), // Number of ticks to display on the x-axis
|
|
1006
|
+
xAxisHideLabelOverlap: z.boolean().optional(), // Whether overlapping x-axis labels are automatically hidden. Defaults to `true`.
|
|
1005
1007
|
xAxisTickFormat: z.unknown().optional(), // Custom formatter for x-axis tick labels. Receives the raw timestamp in milliseconds and returns a display string, overriding ECharts' built-in time formatting.
|
|
1006
1008
|
yAxisTickFormat: z.unknown().optional(), // Custom formatter for y-axis tick labels. Receives the raw value and returns a display string. When omitted, ECharts' built-in formatter is used.
|
|
1007
1009
|
yAxisTickLabelFormat: z.unknown().optional(),
|
package/dist/.build-complete
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
1793640397744
|
package/dist/ai/schemas.d.ts
CHANGED
|
@@ -322,6 +322,7 @@ export declare const ClipboardTextPropsSchema: z.ZodObject<{
|
|
|
322
322
|
}>>;
|
|
323
323
|
text: z.ZodString;
|
|
324
324
|
textToCopy: z.ZodOptional<z.ZodString>;
|
|
325
|
+
masked: z.ZodOptional<z.ZodBoolean>;
|
|
325
326
|
className: z.ZodOptional<z.ZodString>;
|
|
326
327
|
tooltip: z.ZodOptional<z.ZodUnknown>;
|
|
327
328
|
labels: z.ZodOptional<z.ZodUnknown>;
|
|
@@ -1448,6 +1449,7 @@ export declare const TimeseriesChartPropsSchema: z.ZodObject<{
|
|
|
1448
1449
|
thresholds: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
1449
1450
|
xAxisName: z.ZodOptional<z.ZodString>;
|
|
1450
1451
|
xAxisTickCount: z.ZodOptional<z.ZodNumber>;
|
|
1452
|
+
xAxisHideLabelOverlap: z.ZodOptional<z.ZodBoolean>;
|
|
1451
1453
|
xAxisTickFormat: z.ZodOptional<z.ZodUnknown>;
|
|
1452
1454
|
yAxisTickFormat: z.ZodOptional<z.ZodUnknown>;
|
|
1453
1455
|
yAxisTickLabelFormat: z.ZodOptional<z.ZodUnknown>;
|
|
@@ -1808,6 +1810,7 @@ export declare const ComponentPropsSchemas: {
|
|
|
1808
1810
|
}>>;
|
|
1809
1811
|
text: z.ZodString;
|
|
1810
1812
|
textToCopy: z.ZodOptional<z.ZodString>;
|
|
1813
|
+
masked: z.ZodOptional<z.ZodBoolean>;
|
|
1811
1814
|
className: z.ZodOptional<z.ZodString>;
|
|
1812
1815
|
tooltip: z.ZodOptional<z.ZodUnknown>;
|
|
1813
1816
|
labels: z.ZodOptional<z.ZodUnknown>;
|
|
@@ -2934,6 +2937,7 @@ export declare const ComponentPropsSchemas: {
|
|
|
2934
2937
|
thresholds: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
2935
2938
|
xAxisName: z.ZodOptional<z.ZodString>;
|
|
2936
2939
|
xAxisTickCount: z.ZodOptional<z.ZodNumber>;
|
|
2940
|
+
xAxisHideLabelOverlap: z.ZodOptional<z.ZodBoolean>;
|
|
2937
2941
|
xAxisTickFormat: z.ZodOptional<z.ZodUnknown>;
|
|
2938
2942
|
yAxisTickFormat: z.ZodOptional<z.ZodUnknown>;
|
|
2939
2943
|
yAxisTickLabelFormat: z.ZodOptional<z.ZodUnknown>;
|
package/dist/ai/schemas.js
CHANGED
|
@@ -4366,6 +4366,7 @@ const ClipboardTextPropsSchema = object({
|
|
|
4366
4366
|
]).optional(),
|
|
4367
4367
|
text: string(),
|
|
4368
4368
|
textToCopy: string().optional(),
|
|
4369
|
+
masked: boolean().optional(),
|
|
4369
4370
|
className: string().optional(),
|
|
4370
4371
|
tooltip: unknown().optional(),
|
|
4371
4372
|
labels: unknown().optional()
|
|
@@ -5656,6 +5657,7 @@ const TimeseriesChartPropsSchema = object({
|
|
|
5656
5657
|
thresholds: array(unknown()).optional(),
|
|
5657
5658
|
xAxisName: string().optional(),
|
|
5658
5659
|
xAxisTickCount: number().optional(),
|
|
5660
|
+
xAxisHideLabelOverlap: boolean().optional(),
|
|
5659
5661
|
xAxisTickFormat: unknown().optional(),
|
|
5660
5662
|
yAxisTickFormat: unknown().optional(),
|
|
5661
5663
|
yAxisTickLabelFormat: unknown().optional(),
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { t as cn } from "./vendor-styling-gs32v7xt5znc8kg0.js";
|
|
3
3
|
import { t as resolveVariant } from "./resolve-variant-l6x5ksfrjtu4m66l.js";
|
|
4
|
-
import { t as Field } from "./field-
|
|
5
|
-
import { n as KUMO_INPUT_VARIANTS, r as inputVariants } from "./input-
|
|
4
|
+
import { t as Field } from "./field-n7gmbg5xvh6oqbom.js";
|
|
5
|
+
import { n as KUMO_INPUT_VARIANTS, r as inputVariants } from "./input-f0pbcvjudf5zb8ek.js";
|
|
6
6
|
import { a as ComboboxGroupLabel, c as ComboboxCollection, l as ComboboxInput, o as ComboboxGroup, s as ComboboxList, t as ComboboxEmpty, w as useCoreFilter } from "./ComboboxEmpty-gkt1y5b81a4983v7.js";
|
|
7
7
|
import { n as ComboboxPositioner, r as ComboboxPortal, t as ComboboxPopup } from "./ComboboxPopup-n8cbgys9st446j1i.js";
|
|
8
8
|
import { n as AutocompleteRoot, t as AutocompleteItem } from "./AutocompleteItem-36ysm5nwbsd0snr6.js";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { t as cn } from "./vendor-styling-gs32v7xt5znc8kg0.js";
|
|
3
3
|
import { t as resolveVariant } from "./resolve-variant-l6x5ksfrjtu4m66l.js";
|
|
4
4
|
import { r as Link } from "./link-h84bkh8eem39p529.js";
|
|
5
|
-
import { t as Button } from "./button-
|
|
5
|
+
import { t as Button } from "./button-k7axs4vu1rwx89w3.js";
|
|
6
6
|
import { createContext, forwardRef, isValidElement, useContext } from "react";
|
|
7
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
//#region src/components/banner/banner-action.tsx
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { t as cn } from "./vendor-styling-gs32v7xt5znc8kg0.js";
|
|
3
3
|
import { t as resolveVariant } from "./resolve-variant-l6x5ksfrjtu4m66l.js";
|
|
4
4
|
import { n as useLinkComponent } from "./link-provider-kbwllpbo24fvgioj.js";
|
|
5
|
-
import { t as Button } from "./button-
|
|
5
|
+
import { t as Button } from "./button-k7axs4vu1rwx89w3.js";
|
|
6
6
|
import { t as useCopyFeedback } from "./use-copy-feedback-gl55ghst0csvpv4j.js";
|
|
7
7
|
import { t as SkeletonLine } from "./skeleton-line-gjf1fecmyy82aejz.js";
|
|
8
8
|
import { Children, cloneElement, isValidElement } from "react";
|
|
@@ -3,7 +3,7 @@ import { t as cn } from "./vendor-styling-gs32v7xt5znc8kg0.js";
|
|
|
3
3
|
import { t as resolveVariant } from "./resolve-variant-l6x5ksfrjtu4m66l.js";
|
|
4
4
|
import { n as useLinkComponent } from "./link-provider-kbwllpbo24fvgioj.js";
|
|
5
5
|
import { t as Loader } from "./loader-kv5nk8j8tsuesxqo.js";
|
|
6
|
-
import { t as Tooltip } from "./tooltip-
|
|
6
|
+
import { t as Tooltip } from "./tooltip-bcymn9bfyz29fvji.js";
|
|
7
7
|
import React from "react";
|
|
8
8
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
import { ArrowsClockwise } from "@phosphor-icons/react";
|