@cloudflare/kumo 2.11.0 → 2.13.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 +99 -0
- package/ai/component-registry.json +147 -278
- package/ai/component-registry.md +193 -111
- package/ai/schemas.ts +17 -3
- package/dist/.build-complete +1 -1
- package/dist/ai/schemas.d.ts +62 -0
- package/dist/ai/schemas.js +32 -0
- package/dist/chunks/{ToolbarInput-gxep3ixoe8r6v2to.js → ToolbarInput-er5t9irqvuwcjrir.js} +28 -1
- package/dist/chunks/{autocomplete-o55qql22kc47sjlw.js → autocomplete-msex8kc8sw3fp373.js} +2 -2
- package/dist/chunks/{banner-eq9kh1g8b9oyi6hq.js → banner-nz02b60ech1e2m6f.js} +1 -1
- package/dist/chunks/{breadcrumbs-kgasqdmjbg8y681l.js → breadcrumbs-jvlyp3bw0u8qx4fi.js} +1 -1
- package/dist/chunks/{button-hxznqqdd77atsof9.js → button-iqaz1uluabeo18f0.js} +1 -1
- package/dist/chunks/{chart-ic080rf74tgjrgyk.js → chart-qmls2klknm1pd6hs.js} +1 -1
- package/dist/chunks/{checkbox-bh2l73lmhuj6pshe.js → checkbox-crxoyqsxiupt9kmi.js} +1 -1
- package/dist/chunks/{clipboard-text-gidf1di12egsm2ik.js → clipboard-text-osbgah3jz16ma2vv.js} +4 -4
- package/dist/chunks/{collapsible-iztmqjgwv877bx6n.js → collapsible-jyajpe40jcca357s.js} +1 -1
- package/dist/chunks/{combobox-lsb1ow9xp8x1rdjk.js → combobox-fktl12ss7vfjryga.js} +3 -3
- package/dist/chunks/{dialog-nas75qs6d8gj5dxm.js → dialog-o0164pgcyc74lvp9.js} +1 -1
- package/dist/chunks/{empty-m9dbasp44rt37k5y.js → empty-kfofsb6khrn1s26v.js} +1 -1
- package/dist/chunks/{field-n2gxrne3rms27myo.js → field-i7lxgmtio7nutt7c.js} +1 -1
- package/dist/chunks/{index2.parts-epkfat8l4pvwpd1a.js → index2.parts-kiwz8e3k8utvm4zb.js} +1 -29
- package/dist/chunks/{input-group-guisk75j53d1uu5i.js → input-group-ijrmolg1svgq4ayn.js} +5 -5
- package/dist/chunks/{input-lmu1aox2ng66bkbr.js → input-jthoux2vfxltqtdh.js} +1 -1
- package/dist/chunks/{input-mgdv0d1bgdbaysob.js → input-oc9u4galsdrwy00s.js} +2 -2
- package/dist/chunks/{label-jgamnajeg6rm1yz1.js → label-ow6ait7o31g1umgy.js} +2 -2
- package/dist/chunks/{menubar-nbjb2uvnryypqjq3.js → menubar-fu5u76o529yi19kp.js} +3 -1
- package/dist/chunks/{pagination-oe76uhkp5m9zscrh.js → pagination-crizrd9w23nyw7zq.js} +13 -9
- package/dist/chunks/{popover-paah5lvqh1juhfcd.js → popover-jal8z9sv176703lf.js} +3 -3
- package/dist/chunks/{select-ipshr3kdgcnjnmyj.js → select-k4olzuzdl8an5gez.js} +27 -12
- package/dist/chunks/{sensitive-input-n12o9f5nq4hs9taw.js → sensitive-input-lba9qvv3ai4xwgux.js} +2 -2
- package/dist/chunks/{sidebar-ky36geri6bjucsgn.js → sidebar-enm5suo7wq163iw5.js} +106 -48
- package/dist/chunks/{switch-entfc87rkpmxuzk0.js → switch-bstb0wl1bi8hjt4z.js} +1 -1
- package/dist/chunks/{table-pcdrtuyq1b11t7nr.js → table-hhq2akb92vd5e1x6.js} +2 -2
- package/dist/chunks/{text-g96suuboob3eum1a.js → text-jzp4mdlr222iuzxt.js} +33 -16
- package/dist/chunks/{toast-c068v3bvvpjn5s4d.js → toast-byzrdv104awqbkjh.js} +2 -2
- package/dist/chunks/{toolbar-c3pgxrsuq041bkgt.js → toolbar-jcocktiw68xtixzj.js} +24 -4
- package/dist/chunks/{tooltip-fjmcl6d0rrc7ssgu.js → tooltip-k9f7io0k22k5jorq.js} +3 -3
- package/dist/code.js +1 -1
- 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.js +1 -1
- package/dist/components/checkbox.js +1 -1
- package/dist/components/clipboard-text.js +1 -1
- package/dist/components/collapsible.js +1 -1
- package/dist/components/combobox.js +1 -1
- package/dist/components/dialog.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/menubar.d.ts +1 -1
- package/dist/components/menubar.js +1 -1
- package/dist/components/pagination.d.ts +1 -1
- package/dist/components/pagination.js +1 -1
- package/dist/components/popover.js +1 -1
- package/dist/components/select.d.ts +1 -1
- package/dist/components/select.js +1 -1
- package/dist/components/sensitive-input.js +1 -1
- package/dist/components/sidebar.d.ts +2 -2
- package/dist/components/sidebar.js +1 -1
- package/dist/components/switch.js +1 -1
- package/dist/components/table.d.ts +1 -1
- package/dist/components/table.js +1 -1
- package/dist/components/text.d.ts +1 -1
- package/dist/components/text.js +1 -1
- package/dist/components/toast.js +1 -1
- package/dist/components/toolbar.d.ts +2 -2
- package/dist/components/toolbar.js +1 -1
- package/dist/components/tooltip.js +1 -1
- package/dist/{index-DCA5tjHa.d.ts → index-B7epkoHc.d.ts} +4 -0
- package/dist/{index-DTjmw8Vy2.d.ts → index-BXsHCLB82.d.ts} +4 -2
- package/dist/{index-DpzpArsi2.d.ts → index-CMiftS8L2.d.ts} +45 -3
- package/dist/{index-CaoLMX-b2.d.ts → index-D97n4Bpf2.d.ts} +4 -2
- package/dist/{index-Dsn2VLZv.d.ts → index-DYYiDxZs.d.ts} +5 -0
- package/dist/index-Dh95FgdH2.d.ts +60 -0
- package/dist/{index-BkyMHk632.d.ts → index-Dzzi1o7w2.d.ts} +30 -16
- package/dist/{index-BHclAeEt2.d.ts → index-_Sl5wohy2.d.ts} +1 -1
- package/dist/index.d.ts +8 -8
- package/dist/index.js +28 -28
- package/dist/primitives/toolbar.js +1 -1
- package/dist/primitives.js +1 -1
- package/dist/scripts/theme-generator/config.js +6 -4
- package/dist/styles/kumo-standalone.css +1 -1
- package/dist/styles/theme-kumo.css +7 -10
- package/package.json +1 -1
- package/scripts/theme-generator/config.ts +8 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,104 @@
|
|
|
1
1
|
# @cloudflare/kumo
|
|
2
2
|
|
|
3
|
+
## 2.13.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 4066307: Add unknown-total pagination support through `hasNextPage`.
|
|
8
|
+
- f74936f: Add `Toolbar.Link`, which renders a `LinkButton` with toolbar sizing, styling, and keyboard navigation.
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- d004940: Position dialogs near the top of the viewport instead of vertically centering them.
|
|
13
|
+
- 8f0a1f0: Use the elevated surface color for even rows in the default Table variant.
|
|
14
|
+
- 1ede8bf: fix(select): align the trigger surface with form controls
|
|
15
|
+
|
|
16
|
+
Select triggers now use `bg-kumo-control`, including their open and disabled
|
|
17
|
+
states, so they match Input, Combobox, and the rest of the form-control family.
|
|
18
|
+
Consumer background classes can still override the default without using
|
|
19
|
+
`!important`. The popup remains on the floating `bg-kumo-base` surface.
|
|
20
|
+
|
|
21
|
+
- 8482c50: fix(select): anchor the popup below the trigger and expose placement props
|
|
22
|
+
|
|
23
|
+
`Select.Positioner` relied on Base UI's `alignItemWithTrigger` default (`true`),
|
|
24
|
+
which overlays the popup on the trigger so the selected option's text lands on
|
|
25
|
+
the trigger's value text, emulating a native `<select>`. Options always render at
|
|
26
|
+
`text-base`, so on `xs`/`sm` triggers the popup was much taller than its anchor,
|
|
27
|
+
and Base UI's compensating shift detached it from the trigger — on `xs` it
|
|
28
|
+
overhung by 12.5px above and 45.5px below and sat 8px to the left, covering
|
|
29
|
+
adjacent content.
|
|
30
|
+
|
|
31
|
+
The popup now prefers `bottom` placement and is offset from the trigger, with
|
|
32
|
+
Base UI's collision avoidance still flipping it automatically when the preferred
|
|
33
|
+
side lacks space. Placement is configurable:
|
|
34
|
+
|
|
35
|
+
| prop | default | notes |
|
|
36
|
+
| ---------------------- | ---------- | ------------------------------------------------------------- |
|
|
37
|
+
| `side` | `"bottom"` | preferred side; still flips automatically on collision |
|
|
38
|
+
| `sideOffset` | `4` | gap between trigger and popup, matching Combobox/Autocomplete |
|
|
39
|
+
| `align` | `"start"` | alignment along the trigger edge |
|
|
40
|
+
| `alignOffset` | — | additional offset along the alignment axis |
|
|
41
|
+
| `alignItemWithTrigger` | `false` | opt back in to the native `<select>` overlay |
|
|
42
|
+
|
|
43
|
+
The remaining Base UI Positioner controls are also forwarded unchanged:
|
|
44
|
+
`anchor`, `arrowPadding`, `positionMethod`, `collisionAvoidance`,
|
|
45
|
+
`collisionBoundary`, `collisionPadding`, `sticky`, and
|
|
46
|
+
`disableAnchorTracking`.
|
|
47
|
+
|
|
48
|
+
The popup also now tracks the trigger width via `min-w-(--anchor-width)` instead
|
|
49
|
+
of `min-w-[calc(var(--anchor-width)+3px)]`, which existed to visually offset the
|
|
50
|
+
old item-alignment shift.
|
|
51
|
+
|
|
52
|
+
- 7526a6a: Allow non-heading Text variants to inherit line height from their surrounding context.
|
|
53
|
+
- b094a5a: Make `Combobox.Input` sit flush with the top and sides of `Combobox.Content` and remove its bottom corner rounding.
|
|
54
|
+
- 20b7880: Reduce the trailing inset for buttons inside large InputGroup addons.
|
|
55
|
+
|
|
56
|
+
## 2.12.0
|
|
57
|
+
|
|
58
|
+
### Minor Changes
|
|
59
|
+
|
|
60
|
+
- 716e5b8: Add the `Text` `heading` variant with a 16px semibold default and a 20px
|
|
61
|
+
`size="lg"` option. The variant defaults to a `span`, so callers choose heading
|
|
62
|
+
semantics explicitly with `as`. Deprecate the numbered `heading1`, `heading2`,
|
|
63
|
+
and `heading3` variants.
|
|
64
|
+
|
|
65
|
+
### Patch Changes
|
|
66
|
+
|
|
67
|
+
- d7a7a35: `Collapsible.DefaultTrigger` now uses `text-kumo-default` (neutral) with `font-medium` instead of the blue `text-kumo-link` color.
|
|
68
|
+
- 0db4f66: deprecate `MenuBar` in favor of segmented `Tabs`
|
|
69
|
+
|
|
70
|
+
- mark the `MenuBar` component (and its exports) as `@deprecated`; it will be removed in a future release
|
|
71
|
+
- new usage should prefer `Tabs` with `variant="segmented"` (the default `Tabs` variant)
|
|
72
|
+
- the runtime behaviour of `MenuBar` is unchanged for existing consumers
|
|
73
|
+
- remove the `MenuBar` documentation page and demos from the docs site
|
|
74
|
+
|
|
75
|
+
- c64183b: Fix Toast background clipping the ring outline at the corners — the inner background layer's radius (11px) was smaller than the root's `rounded-xl` (12px), painting over the ring at the corners. Matched them up.
|
|
76
|
+
- ef13cb4: Restore disabled and loading state handling for `Toolbar.Button` so disabled
|
|
77
|
+
controls expose the correct semantics and cannot be activated.
|
|
78
|
+
- 51d0f03: Normalize shadows and outlines on tip-style overlays (Popover, Tooltip, ClipboardText, Chart tooltip).
|
|
79
|
+
|
|
80
|
+
- Drop the `shadow-kumo-tip-shadow` color override so shadows use Tailwind's default translucent black instead of an opaque light-gray in light mode.
|
|
81
|
+
- Tune shadow sizes: Popover, Tooltip, ClipboardText tooltip, and Chart tooltip use `shadow-md`; ClipboardText's "Copied" toast keeps `shadow-lg` to match the Toast component.
|
|
82
|
+
- Switch these overlays from `outline-kumo-fill` to `outline-kumo-line`, matching every other floating surface (Dropdown, Select, Combobox, Dialog, etc.).
|
|
83
|
+
- Rename `kumo-tip-shadow` → `kumo-arrow-edge` and `kumo-tip-stroke` → `kumo-arrow-stroke`. The tokens draw the border on Popover/Tooltip arrow SVGs, not a box shadow. Both now resolve to `kumo-line`, so the arrow border aligns with the popup outline in both modes.
|
|
84
|
+
|
|
85
|
+
- d586bf3: Add `scrollToItem(id, options?)` to `useSidebar()` for imperatively scrolling
|
|
86
|
+
a nav item into the sidebar viewport. Tag items with the new `itemId` prop on
|
|
87
|
+
`Sidebar.MenuButton` or `Sidebar.MenuItem`.
|
|
88
|
+
|
|
89
|
+
Options:
|
|
90
|
+
|
|
91
|
+
- `align`: `"start" | "center" | "end" | "auto"` (default `"auto"` — no-op if
|
|
92
|
+
the item is already visible; otherwise scroll the minimum distance).
|
|
93
|
+
- `behavior`: `"auto" | "smooth"` (default `"auto"` — instant, best for
|
|
94
|
+
cross-app landings so users don't watch the sidebar animate on entry).
|
|
95
|
+
`prefers-reduced-motion` forces `"auto"`.
|
|
96
|
+
|
|
97
|
+
Scrolls only the sidebar viewport (never the document) and works with
|
|
98
|
+
`Sidebar.SlidingViews`: items register with the provider via an internal
|
|
99
|
+
map, so `scrollToItem` walks up from the target to find its owning viewport
|
|
100
|
+
rather than querying the DOM.
|
|
101
|
+
|
|
3
102
|
## 2.11.0
|
|
4
103
|
|
|
5
104
|
### Minor Changes
|