@cloudflare/kumo 2.7.0 → 2.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/ai/component-registry.json +1164 -149
  3. package/ai/component-registry.md +1325 -114
  4. package/ai/schemas.ts +136 -7
  5. package/dist/.build-complete +1 -1
  6. package/dist/ai/schemas.d.ts +259 -22
  7. package/dist/ai/schemas.d.ts.map +1 -1
  8. package/dist/ai/schemas.js +1515 -1298
  9. package/dist/ai/schemas.js.map +1 -1
  10. package/dist/chunks/Maps-imwfwgb7do9lr3i5.js +2448 -0
  11. package/dist/chunks/Maps-imwfwgb7do9lr3i5.js.map +1 -0
  12. package/dist/chunks/input-area-sg518xu4pyg4m0km.js +144 -0
  13. package/dist/chunks/input-area-sg518xu4pyg4m0km.js.map +1 -0
  14. package/dist/chunks/{sidebar-ctd980heycmxsux1.js → sidebar-7whsl7qwrw5b6ip8.js} +306 -306
  15. package/dist/chunks/sidebar-7whsl7qwrw5b6ip8.js.map +1 -0
  16. package/dist/components/chart.js +1 -1
  17. package/dist/components/flow.js +2306 -2350
  18. package/dist/components/flow.js.map +1 -1
  19. package/dist/components/input.js +1 -1
  20. package/dist/components/sidebar.js +1 -1
  21. package/dist/index.js +3 -3
  22. package/dist/src/components/chart/TimeseriesChart.d.ts +8 -0
  23. package/dist/src/components/chart/TimeseriesChart.d.ts.map +1 -1
  24. package/dist/src/components/chart/index.d.ts +1 -1
  25. package/dist/src/components/chart/index.d.ts.map +1 -1
  26. package/dist/src/components/chart/timeseries-markers.d.ts +107 -0
  27. package/dist/src/components/chart/timeseries-markers.d.ts.map +1 -0
  28. package/dist/src/components/chart/timeseries-thresholds.d.ts +61 -0
  29. package/dist/src/components/chart/timeseries-thresholds.d.ts.map +1 -0
  30. package/dist/src/components/chart/timeseries-tooltip.d.ts +28 -0
  31. package/dist/src/components/chart/timeseries-tooltip.d.ts.map +1 -0
  32. package/dist/src/components/flow/connectors.d.ts +18 -0
  33. package/dist/src/components/flow/connectors.d.ts.map +1 -1
  34. package/dist/src/components/flow/diagram.d.ts +48 -41
  35. package/dist/src/components/flow/diagram.d.ts.map +1 -1
  36. package/dist/src/components/flow/flow-layout.d.ts +77 -0
  37. package/dist/src/components/flow/flow-layout.d.ts.map +1 -0
  38. package/dist/src/components/flow/node.d.ts.map +1 -1
  39. package/dist/src/components/flow/parallel.d.ts +3 -7
  40. package/dist/src/components/flow/parallel.d.ts.map +1 -1
  41. package/dist/src/components/flow/use-children.d.ts +0 -60
  42. package/dist/src/components/flow/use-children.d.ts.map +1 -1
  43. package/dist/src/components/input/input-area.d.ts +18 -0
  44. package/dist/src/components/input/input-area.d.ts.map +1 -1
  45. package/dist/src/components/sidebar/sidebar.d.ts +2 -0
  46. package/dist/src/components/sidebar/sidebar.d.ts.map +1 -1
  47. package/dist/src/primitives/index.d.ts +1 -1
  48. package/dist/src/primitives/index.d.ts.map +1 -1
  49. package/dist/src/primitives/otp-field.d.ts +1 -1
  50. package/dist/src/primitives/otp-field.d.ts.map +1 -1
  51. package/dist/styles/kumo-standalone.css +1 -1
  52. package/package.json +1 -1
  53. package/scripts/component-registry/discovery.ts +87 -0
  54. package/scripts/component-registry/index.test.ts +89 -1
  55. package/scripts/component-registry/index.ts +27 -2
  56. package/scripts/component-registry/sub-components.ts +34 -21
  57. package/scripts/generate-primitives.ts +1 -1
  58. package/dist/chunks/Maps-fkiyllhs5w0qzw1y.js +0 -2155
  59. package/dist/chunks/Maps-fkiyllhs5w0qzw1y.js.map +0 -1
  60. package/dist/chunks/input-area-ixtj4e8eny58nbf9.js +0 -78
  61. package/dist/chunks/input-area-ixtj4e8eny58nbf9.js.map +0 -1
  62. package/dist/chunks/sidebar-ctd980heycmxsux1.js.map +0 -1
package/ai/schemas.ts CHANGED
@@ -149,6 +149,34 @@ export const BreadcrumbsPropsSchema = z.object({
149
149
  className: z.string().optional(), // Additional CSS classes merged via `cn()`.
150
150
  });
151
151
 
152
+ export const BubbleMapPropsSchema = z.object({
153
+ echarts: z.unknown(), // The ECharts core instance imported by the consumer (passed in for tree-shaking). Requires `MapChart`, `ScatterChart`, `TooltipComponent`, and a renderer registered via `echarts.use([...])`.
154
+ geoJson: z.unknown(), // GeoJSON `FeatureCollection` for the land base.
155
+ mapName: z.string().optional(), // Optional stable ECharts map registry name. Set this when the same GeoJSON is parsed into new object instances across mounts and should reuse one global ECharts registration.
156
+ data: z.array(z.unknown()), // Raw data rows. Coordinates/value/name are read via the accessors below.
157
+ lng: z.unknown(), // Longitude accessor (key of `T` or `(row) => number`).
158
+ lat: z.unknown(), // Latitude accessor (key of `T` or `(row) => number`).
159
+ value: z.unknown(), // Value accessor — drives bubble size.
160
+ name: z.unknown().optional(), // Optional name accessor — used by the default tooltip.
161
+ minRadius: z.number().optional(), // Smallest bubble radius in px. Default: `6`.
162
+ maxRadius: z.number().optional(), // Largest bubble radius in px. Default: `26`.
163
+ bubbleSize: z.unknown().optional(), // Explicit bubble radius `(value) => px`. Overrides the default `minRadius`/`maxRadius` scaling.
164
+ bubbleColor: z.unknown().optional(), // Bubble fill colour — constant or `(row) => color`. Defaults to the chart blue.
165
+ bubbleBorderColor: z.unknown().optional(), // Bubble border colour — constant or `(row) => color`. Default: `transparent`.
166
+ bubbleBorderWidth: z.unknown().optional(), // Bubble border width — constant or `(row) => px`. Default: `0`.
167
+ center: z.unknown().optional(), // Map center as `[longitude, latitude]`. Defaults to auto-fit.
168
+ zoom: z.number().optional(), // Zoom level — multiplies the auto-fit scale. Default: `1.25`.
169
+ roam: z.boolean().optional(), // Enable drag-to-pan and scroll-to-zoom. Default: `false`.
170
+ projection: z.unknown().optional(), // Geographic projection. Defaults to a latitude-clamped Mercator (flat 2D web-map look). Pass another d3-geo projection to override, or `null` for ECharts' raw equirectangular plotting. Use a stable reference (module-level or memoised): a new object each render rebuilds the view and resets a roamed/zoomed map.
171
+ showTooltip: z.boolean().optional(), // Show the tooltip. Default: `true`.
172
+ valueFormat: z.unknown().optional(), // Format the value for the default tooltip. Default: `toLocaleString()`.
173
+ tooltipFormatter: z.unknown().optional(), // Override the tooltip content for a row. Returns an HTML string rendered by ECharts' own tooltip. USE WITH CAUTION: the return value is injected as HTML. Escape any user-provided strings to avoid XSS.
174
+ aspectRatio: z.unknown().optional(), // Container aspect ratio as `width / height` (e.g. `1.7` or `"16 / 9"`). The height derives from the rendered width so the map fills the frame with no letterboxing. Defaults to the projected aspect of the displayed window, so the land fits edge-to-edge. Pass `height` to fix a pixel height instead.
175
+ height: z.number().optional(), // Fixed chart height in pixels. Overrides `aspectRatio` when set. Leave unset to size by aspect ratio (the default) so the map fills the container.
176
+ className: z.string().optional(),
177
+ isDarkMode: z.boolean().optional(),
178
+ });
179
+
152
180
  export const ButtonPropsSchema = z.object({
153
181
  shape: z.enum(["base", "square", "circle"]).optional(),
154
182
  size: z.enum(["xs", "sm", "base", "lg"]).optional(),
@@ -166,6 +194,16 @@ export const ButtonPropsSchema = z.object({
166
194
  value: z.unknown().optional(),
167
195
  });
168
196
 
197
+ export const ChartPropsSchema = z.object({
198
+ echarts: z.unknown(), // The ECharts core instance imported by the consumer. Passed in rather than imported directly so the consumer controls which ECharts modules are bundled (tree-shaking).
199
+ options: z.unknown(), // ECharts option object — passed through to `chart.setOption()`
200
+ optionUpdateBehavior: z.unknown().optional(), // Additional options passed as the second argument to `chart.setOption()`. Defaults to `{ notMerge: false, lazyUpdate: true }`.
201
+ className: z.string().optional(), // Additional CSS classes applied to the chart container `<div>`
202
+ isDarkMode: z.boolean().optional(), // When `true`, initialises ECharts with its built-in dark theme. Changing this value after mount destroys and re-creates the chart instance.
203
+ height: z.number().optional(), // Height of the chart container in pixels. Defaults to `350`.
204
+ aspectRatio: z.unknown().optional(), // Container aspect ratio as `width / height` (e.g. `1.7` or `"16 / 9"`). When set, the height derives from the rendered width via CSS `aspect-ratio` and the `height` prop is ignored — useful for maps so the canvas matches the map's shape and fills the frame with no letterboxing.
205
+ });
206
+
169
207
  export const CheckboxPropsSchema = z.object({
170
208
  variant: z.enum(["default", "error"]).optional(), // Visual variant: "default" or "error" for validation failures (visual only, no error text)
171
209
  label: z.union([z.string(), z.number(), z.boolean(), z.null(), DynamicValueSchema]).optional(), // Label content for the checkbox (enables built-in Field wrapper) - can be a string or any React node
@@ -179,6 +217,30 @@ export const CheckboxPropsSchema = z.object({
179
217
  className: z.string().optional(), // Additional class name
180
218
  });
181
219
 
220
+ export const ChoroplethMapPropsSchema = z.object({
221
+ echarts: z.unknown(), // The ECharts core instance imported by the consumer (passed in for tree-shaking). Requires `MapChart`, `VisualMapComponent`, `TooltipComponent`, and a renderer registered via `echarts.use([...])`.
222
+ geoJson: z.unknown(), // GeoJSON `FeatureCollection` whose regions are shaded by value.
223
+ mapName: z.string().optional(), // Optional stable ECharts map registry name. Set this when the same GeoJSON is parsed into new object instances across mounts and should reuse one global ECharts registration.
224
+ data: z.array(z.unknown()), // Raw data rows. The region key and value are read via the accessors below.
225
+ name: z.unknown(), // Region-key accessor (key of `T` or `(row) => string`). Each row is joined to a GeoJSON feature whose `nameProperty` equals this value.
226
+ value: z.unknown(), // Value accessor — drives the region's fill colour.
227
+ nameProperty: z.string().optional(), // GeoJSON feature property to join on. Default: `"name"`. Real-world data is often more reliably matched on an ISO-code property (e.g. `"iso_a2"`).
228
+ colorRange: z.array(z.string()).optional(), // Sequential colour ramp (low → high). Defaults to the Kumo choropleth blues, tuned to stay distinct from the no-data fill. Distributed across the continuous gradient.
229
+ noDataColor: z.string().optional(), // Fill for regions with no matching data row. Defaults to the neutral land grey.
230
+ showLegend: z.boolean().optional(), // Show the visualMap colour legend. Default: `false`.
231
+ showTooltip: z.boolean().optional(), // Show the tooltip. Default: `true`.
232
+ valueFormat: z.unknown().optional(), // Format the value for the default tooltip. Default: `toLocaleString()`.
233
+ tooltipFormatter: z.unknown().optional(), // Override the tooltip content for a row. Returns an HTML string rendered by ECharts' own tooltip. USE WITH CAUTION: the return value is injected as HTML. Escape any user-provided strings to avoid XSS.
234
+ center: z.unknown().optional(), // Map center as `[longitude, latitude]`. Defaults to auto-fit.
235
+ zoom: z.number().optional(), // Zoom level — multiplies the auto-fit scale. Default: `1.25`.
236
+ roam: z.boolean().optional(), // Enable drag-to-pan and scroll-to-zoom. Default: `false`.
237
+ projection: z.unknown().optional(), // Geographic projection. Defaults to a latitude-clamped Mercator (flat 2D web-map look). Pass another d3-geo projection to override, or `null` for ECharts' raw equirectangular plotting. Use a stable reference (module-level or memoised): a new object each render rebuilds the view and resets a roamed/zoomed map.
238
+ aspectRatio: z.unknown().optional(), // Container aspect ratio as `width / height` (e.g. `1.7` or `"16 / 9"`). The height derives from the rendered width so the map fills the frame with no letterboxing. Defaults to the projected aspect of the displayed window, so the regions fit edge-to-edge. Pass `height` to fix a pixel height instead.
239
+ height: z.number().optional(), // Fixed chart height in pixels. Overrides `aspectRatio` when set. Leave unset to size by aspect ratio (the default) so the map fills the container.
240
+ className: z.string().optional(),
241
+ isDarkMode: z.boolean().optional(),
242
+ });
243
+
182
244
  export const ClipboardTextPropsSchema = z.object({
183
245
  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
184
246
  text: z.string(), // The text to display and copy to clipboard.
@@ -642,14 +704,42 @@ export const PopoverPropsSchema = z.object({
642
704
 
643
705
  export const RadioPropsSchema = z.object({
644
706
  variant: z.enum(["default", "error"]).optional(),
645
- appearance: z.enum(["default", "card"]).optional(),
646
- className: z.string().optional(), // Additional CSS classes
647
- children: z.union([z.string(), z.number(), z.boolean(), z.null(), DynamicValueSchema]).optional(), // Child elements
707
+ appearance: z.unknown().optional(), // Visual appearance applied to all Radio.Item children. - `"default"` — Standard inline radio items - `"card"` — Choice card with border, padding, and highlighted selection state Individual items can override this with their own `appearance` prop.
708
+ legend: z.string().optional(), // Legend text for the group (required for accessibility). For more control over legend styling, omit this prop and use `<Radio.Legend>` as a child instead.
709
+ children: z.union([z.string(), z.number(), z.boolean(), z.null(), DynamicValueSchema]), // Child Radio.Item components (and optionally a Radio.Legend)
710
+ orientation: z.unknown().optional(), // Layout direction of the radio items
711
+ error: z.string().optional(), // Error message for the group
712
+ description: z.union([z.string(), z.number(), z.boolean(), z.null(), DynamicValueSchema]).optional(), // Helper text for the group
648
713
  value: z.unknown().optional(), // The controlled value of the selected radio item.
714
+ disabled: z.boolean().optional(), // Whether all radios in the group are disabled
715
+ controlPosition: z.unknown().optional(), // Position of radio control relative to label: "start" puts radio before label, "end" puts label before radio. Defaults to "start" for default appearance and "end" for card appearance.
716
+ name: z.string().optional(), // Form submission name for the radio group
717
+ className: z.string().optional(), // Additional CSS classes
649
718
  defaultValue: z.unknown().optional(), // The uncontrolled initial value of the selected radio item.
650
719
  onValueChange: z.unknown().optional(), // Callback fired when the selected value changes. The second argument carries native event details about the interaction.
651
720
  });
652
721
 
722
+ export const SankeyChartPropsSchema = z.object({
723
+ echarts: z.unknown(), // The ECharts core instance imported by the consumer. Passed in rather than imported directly so the consumer controls which ECharts modules are bundled (tree-shaking).
724
+ nodes: z.array(z.unknown()), // Array of nodes in the Sankey diagram
725
+ links: z.array(z.unknown()), // Array of links connecting nodes by index
726
+ height: z.number().optional(), // Height of the chart in pixels
727
+ showNodeValues: z.boolean().optional(), // Show node values above labels (default: true if any node has a value)
728
+ nodeLabelLayout: z.unknown().optional(), // Layout for node labels when showNodeValues is true. - 'stacked': value on top, name below (default) - 'inline': "value name" on a single line (better for small nodes)
729
+ formatValue: z.unknown().optional(), // Format function for node values (default: toLocaleString)
730
+ tooltipFormatter: z.unknown().optional(), // Custom tooltip formatter. Return HTML string or empty string to hide tooltip.
731
+ nodeWidth: z.number().optional(),
732
+ nodePadding: z.number().optional(),
733
+ showTooltip: z.boolean().optional(),
734
+ defaultNodeColor: z.string().optional(),
735
+ left: z.unknown().optional(), // Left padding of the Sankey layout within the chart container. Accepts a number (px) or percentage string. ECharts default: '5%'.
736
+ right: z.unknown().optional(), // Right padding of the Sankey layout within the chart container. Accepts a number (px) or percentage string. ECharts default: '5%'.
737
+ linkColor: z.unknown().optional(), // Link fill style: 'gradient' blends source to target colors, 'gray' uses flat gray
738
+ linkOpacity: z.number().optional(),
739
+ className: z.string().optional(),
740
+ isDarkMode: z.boolean().optional(),
741
+ });
742
+
653
743
  export const SelectPropsSchema = z.object({
654
744
  className: z.string().optional(), // Additional CSS classes merged via `cn()`.
655
745
  size: z.enum(["xs", "sm", "base", "lg"]).optional(), // Size of the select trigger. Matches Input component sizes.
@@ -783,10 +873,39 @@ export const TextPropsSchema = z.object({
783
873
  children: z.union([z.string(), z.number(), z.boolean(), z.null(), DynamicValueSchema]).optional(), // Text content.
784
874
  });
785
875
 
876
+ export const TimeseriesChartPropsSchema = z.object({
877
+ echarts: z.unknown(), // The ECharts core instance imported by the consumer. Passed in rather than imported directly so the consumer controls which ECharts modules are bundled (tree-shaking).
878
+ type: z.unknown().optional(), // Visual style of each series. Defaults to `"line"`.
879
+ data: z.array(z.unknown()), // Array of time series data to display on the chart
880
+ markers: z.array(z.unknown()).optional(), // Vertical reference markers rendered on the time axis.
881
+ thresholds: z.array(z.unknown()).optional(), // Horizontal threshold lines rendered on the value axis.
882
+ xAxisName: z.string().optional(), // Label for the x-axis (time axis)
883
+ xAxisTickCount: z.number().optional(), // Number of ticks to display on the x-axis
884
+ 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.
885
+ 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.
886
+ yAxisTickLabelFormat: z.unknown().optional(),
887
+ yAxisName: z.string().optional(), // Label for the y-axis (value axis)
888
+ yAxisTickCount: z.number().optional(), // Number of ticks to display on the y-axis
889
+ tooltipValueFormat: z.unknown().optional(), // Custom formatter for tooltip values. Receives the raw y-value and returns a display string. When omitted, the raw value is shown. Takes precedence over the deprecated `yAxisTickLabelFormat` prop.
890
+ tooltipMode: z.unknown().optional(), // Controls which series are shown in the tooltip. - `"all"` — show all series at the hovered timestamp (default) - `"single"` — show only the series whose value is closest to the cursor
891
+ tooltipMaxItems: z.number().optional(), // Maximum number of series rows shown in the tooltip when `tooltipMode` is `"all"`. Additional series are hidden with a `+N more` footer. Defaults to `10`.
892
+ tooltipBoundary: z.array(z.unknown()).optional(), // Constrains the tooltip to stay within a specific element or region. By default the tooltip avoids overflowing any clipping ancestor (scroll containers, viewports, etc.). Pass an `Element` or array of elements to restrict the tooltip to a specific container.
893
+ tooltipFollowCursor: z.unknown().optional(), // Which axis the tooltip follows the cursor on. - `"both"` — tooltip tracks the cursor on both axes, staying near the pointer at all times. This is the default and matches the behaviour of ECharts' built-in tooltip. - `"x"` — tooltip follows the cursor horizontally but is locked to a fixed vertical position relative to the chart. This keeps the tooltip out of the way of the data and avoids vertical jitter as series values change — the same approach used by Recharts and many dashboard UIs. Only these two modes are offered because the x-axis is always time in a `TimeseriesChart`: y-only tracking and fully-fixed positioning don't produce useful tooltip behaviour for time-series data. Powered by Base UI Tooltip's `trackCursorAxis` under the hood.
894
+ incomplete: z.unknown().optional(), // Indicates incomplete data periods with optional before/after timestamps in ms
895
+ enableLegendSelection: z.boolean().optional(), // When `true`, adds a hidden ECharts legend so consumers can drive series visibility imperatively via the `legendSelect` / `legendUnSelect` / `legendToggleSelect` actions (e.g. to build a custom interactive legend). Toggled-off series are also excluded from the tooltip. Requires the consumer to register ECharts' `LegendComponent` (`echarts.use([LegendComponent])`); otherwise the legend actions no-op and, in development, ECharts logs a "component legend is used but not imported" warning.
896
+ height: z.number().optional(), // Height of the chart in pixels. Defaults to `350`.
897
+ isDarkMode: z.boolean().optional(), // When `true`, switches the chart to ECharts' built-in dark theme
898
+ gradient: z.boolean().optional(), // When `true`, renders a vertical gradient fill beneath each line series. The gradient fades from the series' color at the top to transparent at the bottom. Has no effect when `type` is `"bar"`.
899
+ loading: z.boolean().optional(), // When `true`, hides the chart and displays an animated sine-wave skeleton that oscillates back and forth to indicate that data is being fetched.
900
+ ariaDescription: z.string().optional(), // Accessible description for screen readers. When provided, it is passed to ECharts' `aria.label.description` and announced when the chart receives focus. Consumers are responsible for writing a meaningful description — see the W3C guidance on complex images for recommendations.
901
+ optionUpdateBehavior: z.unknown().optional(), // Additional options passed as the second argument to `chart.setOption()`. Defaults to `{ notMerge: false, lazyUpdate: true }`.
902
+ });
903
+
786
904
  export const ToastyPropsSchema = z.object({
787
905
  variant: z.enum(["default", "success", "error", "warning", "info"]).optional(),
788
- className: z.string().optional(), // Additional CSS classes
789
- children: z.union([z.string(), z.number(), z.boolean(), z.null(), DynamicValueSchema]).optional(), // Child elements
906
+ children: z.unknown(), // Application content. Toasts render via a portal above this.
907
+ container: z.unknown().optional(), // Container element for the portal. Use this to render toasts inside a Shadow DOM or custom container. Overrides `KumoPortalProvider` context.
908
+ toastManager: z.unknown().optional(), // Optional toast manager created by `createKumoToastManager()`. When provided, allows code outside the React tree (timers, module-load callbacks, query-cache listeners) to dispatch toasts via the same dedupe-aware manager that `useKumoToastManager()` returns inside the tree. Forwarded to the underlying `@base-ui/react/toast` `Toast.Provider` `toastManager` prop — see https://base-ui.com/react/components/toast for the upstream primitive.
790
909
  });
791
910
 
792
911
  export const ToolbarPropsSchema = z.object({
@@ -816,15 +935,18 @@ export const TooltipPropsSchema = z.object({
816
935
  /**
817
936
  * All valid component type names
818
937
  */
819
- export type KumoComponentType = "Autocomplete" | "Badge" | "Banner" | "Breadcrumbs" | "Button" | "Checkbox" | "ClipboardText" | "CloudflareLogo" | "Code" | "Collapsible" | "Combobox" | "CommandPalette" | "DatePicker" | "DateRangePicker" | "Dialog" | "DropdownMenu" | "Empty" | "Field" | "Grid" | "Input" | "InputArea" | "InputGroup" | "Label" | "LayerCard" | "Link" | "Loader" | "MenuBar" | "Meter" | "Pagination" | "Popover" | "Radio" | "Select" | "SensitiveInput" | "Sidebar" | "Surface" | "Switch" | "Table" | "TableOfContents" | "Tabs" | "Text" | "Toasty" | "Toolbar" | "Tooltip";
938
+ export type KumoComponentType = "Autocomplete" | "Badge" | "Banner" | "Breadcrumbs" | "BubbleMap" | "Button" | "Chart" | "Checkbox" | "ChoroplethMap" | "ClipboardText" | "CloudflareLogo" | "Code" | "Collapsible" | "Combobox" | "CommandPalette" | "DatePicker" | "DateRangePicker" | "Dialog" | "DropdownMenu" | "Empty" | "Field" | "Grid" | "Input" | "InputArea" | "InputGroup" | "Label" | "LayerCard" | "Link" | "Loader" | "MenuBar" | "Meter" | "Pagination" | "Popover" | "Radio" | "SankeyChart" | "Select" | "SensitiveInput" | "Sidebar" | "Surface" | "Switch" | "Table" | "TableOfContents" | "Tabs" | "Text" | "TimeseriesChart" | "Toasty" | "Toolbar" | "Tooltip";
820
939
 
821
940
  export const KumoComponentTypeSchema = z.enum([
822
941
  "Autocomplete",
823
942
  "Badge",
824
943
  "Banner",
825
944
  "Breadcrumbs",
945
+ "BubbleMap",
826
946
  "Button",
947
+ "Chart",
827
948
  "Checkbox",
949
+ "ChoroplethMap",
828
950
  "ClipboardText",
829
951
  "CloudflareLogo",
830
952
  "Code",
@@ -850,6 +972,7 @@ export const KumoComponentTypeSchema = z.enum([
850
972
  "Pagination",
851
973
  "Popover",
852
974
  "Radio",
975
+ "SankeyChart",
853
976
  "Select",
854
977
  "SensitiveInput",
855
978
  "Sidebar",
@@ -859,6 +982,7 @@ export const KumoComponentTypeSchema = z.enum([
859
982
  "TableOfContents",
860
983
  "Tabs",
861
984
  "Text",
985
+ "TimeseriesChart",
862
986
  "Toasty",
863
987
  "Toolbar",
864
988
  "Tooltip",
@@ -872,8 +996,11 @@ export const ComponentPropsSchemas = {
872
996
  Badge: BadgePropsSchema,
873
997
  Banner: BannerPropsSchema,
874
998
  Breadcrumbs: BreadcrumbsPropsSchema,
999
+ BubbleMap: BubbleMapPropsSchema,
875
1000
  Button: ButtonPropsSchema,
1001
+ Chart: ChartPropsSchema,
876
1002
  Checkbox: CheckboxPropsSchema,
1003
+ ChoroplethMap: ChoroplethMapPropsSchema,
877
1004
  ClipboardText: ClipboardTextPropsSchema,
878
1005
  CloudflareLogo: CloudflareLogoPropsSchema,
879
1006
  Code: CodePropsSchema,
@@ -899,6 +1026,7 @@ export const ComponentPropsSchemas = {
899
1026
  Pagination: PaginationPropsSchema,
900
1027
  Popover: PopoverPropsSchema,
901
1028
  Radio: RadioPropsSchema,
1029
+ SankeyChart: SankeyChartPropsSchema,
902
1030
  Select: SelectPropsSchema,
903
1031
  SensitiveInput: SensitiveInputPropsSchema,
904
1032
  Sidebar: SidebarPropsSchema,
@@ -908,6 +1036,7 @@ export const ComponentPropsSchemas = {
908
1036
  TableOfContents: TableOfContentsPropsSchema,
909
1037
  Tabs: TabsPropsSchema,
910
1038
  Text: TextPropsSchema,
1039
+ TimeseriesChart: TimeseriesChartPropsSchema,
911
1040
  Toasty: ToastyPropsSchema,
912
1041
  Toolbar: ToolbarPropsSchema,
913
1042
  Tooltip: TooltipPropsSchema,
@@ -967,4 +1096,4 @@ export function validateUITree(tree: unknown): SafeParseResult<UITree> {
967
1096
  /**
968
1097
  * List of all component names (for catalog generation)
969
1098
  */
970
- export const KUMO_COMPONENT_NAMES = ["Autocomplete", "Badge", "Banner", "Breadcrumbs", "Button", "Checkbox", "ClipboardText", "CloudflareLogo", "Code", "Collapsible", "Combobox", "CommandPalette", "DatePicker", "DateRangePicker", "Dialog", "DropdownMenu", "Empty", "Field", "Grid", "Input", "InputArea", "InputGroup", "Label", "LayerCard", "Link", "Loader", "MenuBar", "Meter", "Pagination", "Popover", "Radio", "Select", "SensitiveInput", "Sidebar", "Surface", "Switch", "Table", "TableOfContents", "Tabs", "Text", "Toasty", "Toolbar", "Tooltip"] as const;
1099
+ export const KUMO_COMPONENT_NAMES = ["Autocomplete", "Badge", "Banner", "Breadcrumbs", "BubbleMap", "Button", "Chart", "Checkbox", "ChoroplethMap", "ClipboardText", "CloudflareLogo", "Code", "Collapsible", "Combobox", "CommandPalette", "DatePicker", "DateRangePicker", "Dialog", "DropdownMenu", "Empty", "Field", "Grid", "Input", "InputArea", "InputGroup", "Label", "LayerCard", "Link", "Loader", "MenuBar", "Meter", "Pagination", "Popover", "Radio", "SankeyChart", "Select", "SensitiveInput", "Sidebar", "Surface", "Switch", "Table", "TableOfContents", "Tabs", "Text", "TimeseriesChart", "Toasty", "Toolbar", "Tooltip"] as const;
@@ -1 +1 @@
1
- 1783356823391
1
+ 1783951926746