@cloudflare/kumo 2.11.0 → 2.12.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 +46 -0
- package/ai/component-registry.json +42 -269
- package/ai/component-registry.md +59 -110
- package/ai/schemas.ts +3 -3
- package/dist/.build-complete +1 -1
- package/dist/ai/schemas.d.ts +2 -0
- package/dist/ai/schemas.js +1 -0
- 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-nosdsxdxe2abnqzr.js} +2 -2
- 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/{input-group-guisk75j53d1uu5i.js → input-group-ksh61axy2qgkxl5y.js} +4 -4
- 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-hu8y5b8zpef2z4lp.js} +2 -2
- package/dist/chunks/{popover-paah5lvqh1juhfcd.js → popover-jal8z9sv176703lf.js} +3 -3
- package/dist/chunks/{select-ipshr3kdgcnjnmyj.js → select-jdz3yg2pvcjlkroy.js} +4 -4
- 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-ebfyk2rmebrn82k0.js} +1 -1
- package/dist/chunks/{text-g96suuboob3eum1a.js → text-fsaeol90bjy3pnik.js} +29 -12
- package/dist/chunks/{toast-c068v3bvvpjn5s4d.js → toast-byzrdv104awqbkjh.js} +2 -2
- package/dist/chunks/{toolbar-c3pgxrsuq041bkgt.js → toolbar-djjwqq141iealxa6.js} +4 -3
- 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/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.js +1 -1
- package/dist/components/popover.js +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.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.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-BkyMHk632.d.ts → index-Bl6QyQDi2.d.ts} +26 -12
- package/dist/{index-DpzpArsi2.d.ts → index-CMiftS8L2.d.ts} +45 -3
- package/dist/index.d.ts +4 -4
- package/dist/index.js +27 -27
- 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,51 @@
|
|
|
1
1
|
# @cloudflare/kumo
|
|
2
2
|
|
|
3
|
+
## 2.12.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 716e5b8: Add the `Text` `heading` variant with a 16px semibold default and a 20px
|
|
8
|
+
`size="lg"` option. The variant defaults to a `span`, so callers choose heading
|
|
9
|
+
semantics explicitly with `as`. Deprecate the numbered `heading1`, `heading2`,
|
|
10
|
+
and `heading3` variants.
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- d7a7a35: `Collapsible.DefaultTrigger` now uses `text-kumo-default` (neutral) with `font-medium` instead of the blue `text-kumo-link` color.
|
|
15
|
+
- 0db4f66: deprecate `MenuBar` in favor of segmented `Tabs`
|
|
16
|
+
|
|
17
|
+
- mark the `MenuBar` component (and its exports) as `@deprecated`; it will be removed in a future release
|
|
18
|
+
- new usage should prefer `Tabs` with `variant="segmented"` (the default `Tabs` variant)
|
|
19
|
+
- the runtime behaviour of `MenuBar` is unchanged for existing consumers
|
|
20
|
+
- remove the `MenuBar` documentation page and demos from the docs site
|
|
21
|
+
|
|
22
|
+
- 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.
|
|
23
|
+
- ef13cb4: Restore disabled and loading state handling for `Toolbar.Button` so disabled
|
|
24
|
+
controls expose the correct semantics and cannot be activated.
|
|
25
|
+
- 51d0f03: Normalize shadows and outlines on tip-style overlays (Popover, Tooltip, ClipboardText, Chart tooltip).
|
|
26
|
+
|
|
27
|
+
- 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.
|
|
28
|
+
- 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.
|
|
29
|
+
- Switch these overlays from `outline-kumo-fill` to `outline-kumo-line`, matching every other floating surface (Dropdown, Select, Combobox, Dialog, etc.).
|
|
30
|
+
- 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.
|
|
31
|
+
|
|
32
|
+
- d586bf3: Add `scrollToItem(id, options?)` to `useSidebar()` for imperatively scrolling
|
|
33
|
+
a nav item into the sidebar viewport. Tag items with the new `itemId` prop on
|
|
34
|
+
`Sidebar.MenuButton` or `Sidebar.MenuItem`.
|
|
35
|
+
|
|
36
|
+
Options:
|
|
37
|
+
|
|
38
|
+
- `align`: `"start" | "center" | "end" | "auto"` (default `"auto"` — no-op if
|
|
39
|
+
the item is already visible; otherwise scroll the minimum distance).
|
|
40
|
+
- `behavior`: `"auto" | "smooth"` (default `"auto"` — instant, best for
|
|
41
|
+
cross-app landings so users don't watch the sidebar animate on entry).
|
|
42
|
+
`prefers-reduced-motion` forces `"auto"`.
|
|
43
|
+
|
|
44
|
+
Scrolls only the sidebar viewport (never the document) and works with
|
|
45
|
+
`Sidebar.SlidingViews`: items register with the provider via an internal
|
|
46
|
+
map, so `scrollToItem` walks up from the target to find its owning viewport
|
|
47
|
+
rather than querying the DOM.
|
|
48
|
+
|
|
3
49
|
## 2.11.0
|
|
4
50
|
|
|
5
51
|
### Minor Changes
|
|
@@ -1332,7 +1332,7 @@
|
|
|
1332
1332
|
"colors": [
|
|
1333
1333
|
"bg-kumo-base",
|
|
1334
1334
|
"border-kumo-line",
|
|
1335
|
-
"outline-kumo-
|
|
1335
|
+
"outline-kumo-line",
|
|
1336
1336
|
"ring-kumo-brand",
|
|
1337
1337
|
"ring-kumo-focus",
|
|
1338
1338
|
"text-kumo-default"
|
|
@@ -2660,7 +2660,7 @@
|
|
|
2660
2660
|
],
|
|
2661
2661
|
"colors": [
|
|
2662
2662
|
"border-kumo-fill",
|
|
2663
|
-
"text-kumo-
|
|
2663
|
+
"text-kumo-default"
|
|
2664
2664
|
],
|
|
2665
2665
|
"subComponents": {
|
|
2666
2666
|
"Root": {
|
|
@@ -4515,11 +4515,7 @@
|
|
|
4515
4515
|
"description": "When true, each option's `id` field is used for matching instead of its array index."
|
|
4516
4516
|
}
|
|
4517
4517
|
},
|
|
4518
|
-
"examples": [
|
|
4519
|
-
"<MenuBar\n isActive={active}\n optionIds\n options={[\n {\n icon: <TextBolderIcon />,\n id: \"bold\",\n tooltip: \"Bold\",\n onClick: () => setActive(active === \"bold\" ? undefined : \"bold\"),\n },\n {\n icon: <TextItalicIcon />,\n id: \"italic\",\n tooltip: \"Italic\",\n onClick: () => setActive(active === \"italic\" ? undefined : \"italic\"),\n },\n ]}\n />",
|
|
4520
|
-
"<MenuBar\n isActive={active}\n optionIds\n options={[\n {\n icon: <TextBolderIcon />,\n id: \"bold\",\n tooltip: \"Bold\",\n onClick: () => setActive(active === \"bold\" ? undefined : \"bold\"),\n },\n {\n icon: <TextItalicIcon />,\n id: \"italic\",\n tooltip: \"Italic\",\n onClick: () => setActive(active === \"italic\" ? undefined : \"italic\"),\n },\n ]}\n />",
|
|
4521
|
-
"<MenuBar\n isActive={active}\n optionIds\n options={[\n {\n icon: <TextBolderIcon />,\n id: \"bold\",\n tooltip: \"Bold\",\n onClick: () => setActive(active === \"bold\" ? undefined : \"bold\"),\n },\n {\n icon: <TextItalicIcon />,\n id: \"italic\",\n tooltip: \"Italic\",\n onClick: () => setActive(active === \"italic\" ? undefined : \"italic\"),\n },\n ]}\n />"
|
|
4522
|
-
],
|
|
4518
|
+
"examples": [],
|
|
4523
4519
|
"colors": [
|
|
4524
4520
|
"bg-kumo-base",
|
|
4525
4521
|
"bg-kumo-recessed",
|
|
@@ -4799,10 +4795,10 @@
|
|
|
4799
4795
|
],
|
|
4800
4796
|
"colors": [
|
|
4801
4797
|
"bg-kumo-base",
|
|
4798
|
+
"fill-kumo-arrow-edge",
|
|
4799
|
+
"fill-kumo-arrow-stroke",
|
|
4802
4800
|
"fill-kumo-base",
|
|
4803
|
-
"
|
|
4804
|
-
"fill-kumo-tip-stroke",
|
|
4805
|
-
"outline-kumo-fill",
|
|
4801
|
+
"outline-kumo-line",
|
|
4806
4802
|
"text-kumo-default",
|
|
4807
4803
|
"text-kumo-subtle"
|
|
4808
4804
|
],
|
|
@@ -5615,6 +5611,7 @@
|
|
|
5615
5611
|
"<div className=\"relative h-[420px] w-full overflow-hidden rounded-lg border border-kumo-line bg-kumo-base\">\n <Sidebar.Provider contained defaultOpen className=\"h-full min-h-0!\">\n <Sidebar>\n <Sidebar.Header>\n <BrandLogo />\n </Sidebar.Header>\n <Sidebar.Content>\n <Sidebar.Group>\n <Sidebar.GroupLabel>Overview</Sidebar.GroupLabel>\n <Sidebar.Menu>\n <Sidebar.MenuButton icon={HouseIcon} active>\n Home\n </Sidebar.MenuButton>\n <Sidebar.MenuButton icon={ChartBarIcon}>\n Analytics\n </Sidebar.MenuButton>\n <Sidebar.MenuButton icon={GlobeIcon}>\n Domains\n </Sidebar.MenuButton>\n </Sidebar.Menu>\n </Sidebar.Group>\n\n <Sidebar.Group>\n <Sidebar.GroupLabel>Platform</Sidebar.GroupLabel>\n <Sidebar.Menu>\n <Sidebar.MenuButton icon={DatabaseIcon}>\n Storage\n </Sidebar.MenuButton>\n <Sidebar.MenuButton icon={ShieldCheckIcon}>\n Security\n </Sidebar.MenuButton>\n <Sidebar.MenuButton icon={LockIcon}>\n Zero Trust\n </Sidebar.MenuButton>\n <Sidebar.MenuButton icon={GearIcon}>\n Settings\n </Sidebar.MenuButton>\n </Sidebar.Menu>\n </Sidebar.Group>\n\n <Sidebar.Group>\n <Sidebar.GroupLabel>Build</Sidebar.GroupLabel>\n <Sidebar.Menu>\n <Sidebar.MenuItem>\n <Sidebar.Collapsible autoScrollOnOpen>\n <Sidebar.CollapsibleTrigger\n render={\n <Sidebar.MenuButton icon={CodeIcon}>\n Workers\n <Sidebar.MenuChevron />\n </Sidebar.MenuButton>\n }\n />\n <Sidebar.CollapsibleContent>\n <Sidebar.MenuSub>\n <Sidebar.MenuSubButton>Overview</Sidebar.MenuSubButton>\n <Sidebar.MenuSubButton>\n Deployments\n </Sidebar.MenuSubButton>\n <Sidebar.MenuSubButton>\n Observability\n </Sidebar.MenuSubButton>\n <Sidebar.MenuSubButton>Settings</Sidebar.MenuSubButton>\n </Sidebar.MenuSub>\n </Sidebar.CollapsibleContent>\n </Sidebar.Collapsible>\n </Sidebar.MenuItem>\n <Sidebar.MenuButton icon={CubeIcon}>\n Containers\n <Sidebar.MenuBadge>Beta</Sidebar.MenuBadge>\n </Sidebar.MenuButton>\n </Sidebar.Menu>\n </Sidebar.Group>\n </Sidebar.Content>\n <Sidebar.Footer>\n <Sidebar.Trigger />\n </Sidebar.Footer>\n </Sidebar>\n <DemoMain>\n <p>Open Workers near the bottom of the list</p>\n </DemoMain>\n </Sidebar.Provider>\n </div>",
|
|
5616
5612
|
"<DemoContainer>\n <Sidebar.Provider contained defaultOpen className=\"h-full min-h-0!\">\n <Sidebar>\n <Sidebar.Header>\n <button\n type=\"button\"\n onClick={() =>\n setSurface((s) => (s === \"account\" ? \"zone\" : \"account\"))\n }\n className=\"flex w-full cursor-pointer items-center gap-2 rounded-lg px-3 py-2 text-sm font-medium text-kumo-default transition-colors hover:bg-kumo-tint\"\n >\n <ArrowsLeftRightIcon className=\"size-4 shrink-0 text-kumo-brand\" />\n <span className=\"flex-1 text-left font-semibold text-kumo-strong\">\n {surface === \"account\" ? \"Account Nav\" : \"Zone Nav\"}\n </span>\n </button>\n </Sidebar.Header>\n\n <Sidebar.SlidingViews\n activeKey={surface}\n direction={surface === \"zone\" ? \"left\" : \"right\"}\n >\n <Sidebar.SlidingView value=\"account\">\n <Sidebar.Content>\n <Sidebar.Group>\n <Sidebar.GroupLabel>Account</Sidebar.GroupLabel>\n <Sidebar.Menu>\n <Sidebar.MenuButton icon={HouseIcon} active>\n Home\n </Sidebar.MenuButton>\n <Sidebar.MenuButton icon={UserIcon}>\n Members\n </Sidebar.MenuButton>\n <Sidebar.MenuButton icon={ChartBarIcon}>\n Analytics\n </Sidebar.MenuButton>\n <Sidebar.MenuButton icon={GearIcon}>\n Settings\n </Sidebar.MenuButton>\n </Sidebar.Menu>\n </Sidebar.Group>\n </Sidebar.Content>\n </Sidebar.SlidingView>\n\n <Sidebar.SlidingView value=\"zone\">\n <Sidebar.Content>\n <Sidebar.Group>\n <Sidebar.GroupLabel>Zone</Sidebar.GroupLabel>\n <Sidebar.Menu>\n <Sidebar.MenuButton icon={GlobeIcon} active>\n Overview\n </Sidebar.MenuButton>\n <Sidebar.MenuButton icon={ShieldCheckIcon}>\n Security\n </Sidebar.MenuButton>\n <Sidebar.MenuButton icon={LockIcon}>\n SSL/TLS\n </Sidebar.MenuButton>\n <Sidebar.MenuButton icon={DatabaseIcon}>\n Caching\n </Sidebar.MenuButton>\n </Sidebar.Menu>\n </Sidebar.Group>\n </Sidebar.Content>\n </Sidebar.SlidingView>\n </Sidebar.SlidingViews>\n </Sidebar>\n <DemoMain>\n <div className=\"flex flex-col items-center gap-2\">\n <p className=\"font-medium text-kumo-default\">\n Active: {surface === \"account\" ? \"Account\" : \"Zone\"} surface\n </p>\n <p>Click the header button to slide between views</p>\n </div>\n </DemoMain>\n </Sidebar.Provider>\n </DemoContainer>",
|
|
5617
5613
|
"<DemoContainer>\n <Sidebar.Provider\n contained\n defaultOpen\n peekable\n className=\"h-full min-h-0!\"\n >\n <Sidebar>\n <Sidebar.Header>\n <AccountSwitcher />\n </Sidebar.Header>\n <Sidebar.SlidingViews\n activeKey={surface}\n direction={surface === \"domain\" ? \"left\" : \"right\"}\n >\n <Sidebar.SlidingView value=\"account\">\n <Sidebar.Content>\n <Sidebar.Group>\n <Sidebar.Menu>\n <Sidebar.MenuButton\n icon={MagnifyingGlassIcon}\n tooltip=\"Search\"\n className=\"mb-3 ring ring-kumo-line transition-[margin] duration-(--sidebar-animation-duration) group-data-[state=collapsed]/sidebar:mb-0 group-data-[state=collapsed]/sidebar:ring-transparent\"\n >\n Quick search…\n </Sidebar.MenuButton>\n </Sidebar.Menu>\n </Sidebar.Group>\n <Sidebar.Group>\n <Sidebar.Menu>\n <Sidebar.MenuButton icon={HouseIcon} active>\n Home\n </Sidebar.MenuButton>\n <Sidebar.MenuButton icon={ChartBarIcon}>\n Analytics & Logs\n </Sidebar.MenuButton>\n <Sidebar.MenuButton\n icon={GlobeIcon}\n onClick={() => setSurface(\"domain\")}\n >\n Domains\n </Sidebar.MenuButton>\n </Sidebar.Menu>\n </Sidebar.Group>\n\n <Sidebar.Group>\n <Sidebar.GroupLabel>Build</Sidebar.GroupLabel>\n <Sidebar.Menu>\n <Sidebar.MenuItem>\n <Sidebar.Collapsible defaultOpen>\n <Sidebar.CollapsibleTrigger\n render={\n <Sidebar.MenuButton icon={CodeIcon}>\n Compute\n <Sidebar.MenuChevron />\n </Sidebar.MenuButton>\n }\n />\n <Sidebar.CollapsibleContent>\n <Sidebar.MenuSub>\n <Sidebar.MenuSubItem>\n <Sidebar.Collapsible>\n <Sidebar.CollapsibleTrigger\n render={\n <Sidebar.MenuSubButton>\n Workers & Pages\n <Sidebar.MenuChevron />\n </Sidebar.MenuSubButton>\n }\n />\n <Sidebar.CollapsibleContent>\n <Sidebar.MenuSub>\n <Sidebar.MenuSubButton>\n Overview\n </Sidebar.MenuSubButton>\n <Sidebar.MenuSubButton>\n Workers\n </Sidebar.MenuSubButton>\n <Sidebar.MenuSubButton>\n Pages\n </Sidebar.MenuSubButton>\n </Sidebar.MenuSub>\n </Sidebar.CollapsibleContent>\n </Sidebar.Collapsible>\n </Sidebar.MenuSubItem>\n <Sidebar.MenuSubButton>\n Durable Objects\n </Sidebar.MenuSubButton>\n <Sidebar.MenuSubButton>\n Containers\n <Sidebar.MenuBadge>Beta</Sidebar.MenuBadge>\n </Sidebar.MenuSubButton>\n </Sidebar.MenuSub>\n </Sidebar.CollapsibleContent>\n </Sidebar.Collapsible>\n </Sidebar.MenuItem>\n <Sidebar.MenuButton icon={DatabaseIcon}>\n Storage\n </Sidebar.MenuButton>\n </Sidebar.Menu>\n </Sidebar.Group>\n\n <Sidebar.Group>\n <Sidebar.GroupLabel>Protect & Connect</Sidebar.GroupLabel>\n <Sidebar.Menu>\n <Sidebar.MenuButton icon={ShieldCheckIcon}>\n Security\n </Sidebar.MenuButton>\n <Sidebar.MenuButton icon={LockIcon}>\n Zero Trust\n <Sidebar.MenuBadge>Beta</Sidebar.MenuBadge>\n </Sidebar.MenuButton>\n </Sidebar.Menu>\n </Sidebar.Group>\n </Sidebar.Content>\n </Sidebar.SlidingView>\n\n <Sidebar.SlidingView value=\"domain\">\n <Sidebar.Content>\n <Sidebar.Group>\n <Sidebar.Menu>\n <Sidebar.MenuButton\n icon={ArrowLeftIcon}\n onClick={() => setSurface(\"account\")}\n >\n Back\n </Sidebar.MenuButton>\n </Sidebar.Menu>\n </Sidebar.Group>\n <Sidebar.Group>\n <Sidebar.GroupLabel>example.com</Sidebar.GroupLabel>\n <Sidebar.Menu>\n <Sidebar.MenuButton icon={GlobeIcon} active>\n Overview\n </Sidebar.MenuButton>\n <Sidebar.MenuButton icon={ShieldCheckIcon}>\n Security\n </Sidebar.MenuButton>\n <Sidebar.MenuButton icon={LockIcon}>\n SSL/TLS\n </Sidebar.MenuButton>\n <Sidebar.MenuButton icon={ChartBarIcon}>\n Analytics\n </Sidebar.MenuButton>\n <Sidebar.MenuButton icon={DatabaseIcon}>\n Caching\n </Sidebar.MenuButton>\n </Sidebar.Menu>\n </Sidebar.Group>\n </Sidebar.Content>\n </Sidebar.SlidingView>\n </Sidebar.SlidingViews>\n\n <Sidebar.Footer>\n <Sidebar.Trigger />\n </Sidebar.Footer>\n </Sidebar>\n <DemoMain />\n </Sidebar.Provider>\n </DemoContainer>",
|
|
5614
|
+
"<DemoContainer>\n <Sidebar.Provider contained defaultOpen className=\"h-full min-h-0!\">\n <Sidebar>\n <Sidebar.Header>\n <BrandLogo />\n </Sidebar.Header>\n <Sidebar.Content>\n <Sidebar.Group>\n <Sidebar.Menu>\n {LONG_NAV_ITEMS.map((label, idx) => (\n <Sidebar.MenuButton\n key={label}\n icon={idx === 0 ? HouseIcon : GlobeIcon}\n active={idx === 0}\n itemId={ANCHOR_ID_BY_LABEL[label]}\n >\n {label}\n </Sidebar.MenuButton>\n ))}\n </Sidebar.Menu>\n </Sidebar.Group>\n </Sidebar.Content>\n <Sidebar.Footer>\n <Sidebar.Trigger />\n </Sidebar.Footer>\n </Sidebar>\n <DemoMain>\n <ScrollToItemControls />\n </DemoMain>\n </Sidebar.Provider>\n </DemoContainer>",
|
|
5618
5615
|
"<div className=\"relative h-[540px] w-full overflow-hidden rounded-lg border border-kumo-line bg-kumo-base\">\n <Sidebar.Provider contained mobileBreakpoint={9999} className=\"h-full\">\n <Sidebar>\n <Sidebar.Header>\n <BrandLogo />\n </Sidebar.Header>\n <Sidebar.Content>\n <Sidebar.Group>\n <Sidebar.GroupLabel>Overview</Sidebar.GroupLabel>\n <Sidebar.Menu>\n <Sidebar.MenuButton icon={HouseIcon} active>\n Home\n </Sidebar.MenuButton>\n <Sidebar.MenuButton icon={ChartBarIcon}>\n Analytics\n </Sidebar.MenuButton>\n <Sidebar.MenuButton icon={GlobeIcon}>\n Domains\n </Sidebar.MenuButton>\n </Sidebar.Menu>\n </Sidebar.Group>\n\n <Sidebar.Group>\n <Sidebar.GroupLabel>Build</Sidebar.GroupLabel>\n <Sidebar.Menu>\n <Sidebar.MenuButton icon={CodeIcon}>Compute</Sidebar.MenuButton>\n <Sidebar.MenuButton icon={DatabaseIcon}>\n Storage\n </Sidebar.MenuButton>\n </Sidebar.Menu>\n </Sidebar.Group>\n </Sidebar.Content>\n <Sidebar.Footer>\n <Sidebar.Trigger />\n </Sidebar.Footer>\n </Sidebar>\n <DemoMain>\n <MobileToggleButton />\n <p>Click the button to open the mobile sidebar</p>\n <p className=\"text-sm text-kumo-subtle\">\n Press Escape or click the backdrop to close\n </p>\n </DemoMain>\n </Sidebar.Provider>\n </div>",
|
|
5619
5616
|
"<div className=\"flex flex-col gap-3\">\n {/* Width control — stands in for resizing a real phone viewport. */}\n <label className=\"flex items-center gap-3 text-sm text-kumo-subtle\">\n <span className=\"shrink-0\">Viewport</span>\n <input\n type=\"range\"\n min={280}\n max={720}\n value={width}\n onChange={(e) => setWidth(Number(e.target.value))}\n className=\"flex-1 cursor-pointer\"\n />\n <span className=\"w-14 shrink-0 text-right tabular-nums\">{width}px</span>\n </label>\n\n <div\n className=\"relative h-[540px] overflow-hidden rounded-lg border border-kumo-line bg-kumo-base\"\n style={{ width }}\n >\n <Sidebar.Provider contained mobileBreakpoint={9999} className=\"h-full\">\n <Sidebar fullScreenOnMobile>\n {/* Single row: avatar, then the trail takes the rest of the width.\n Mirrors the product header — account mark, then breadcrumbs. */}\n <Sidebar.Header className=\"gap-2 px-3.5\">\n <CompactAccountSwitcher />\n <div className=\"min-w-0 flex-1\">\n <Breadcrumbs size=\"sm\">\n {trail.map((label) => (\n <Fragment key={label}>\n <Breadcrumbs.Link href=\"#\">{label}</Breadcrumbs.Link>\n <Breadcrumbs.Separator />\n </Fragment>\n ))}\n <Breadcrumbs.Current>{current}</Breadcrumbs.Current>\n </Breadcrumbs>\n </div>\n <Sidebar.Close />\n </Sidebar.Header>\n <Sidebar.Content>\n <div className=\"pt-1 pb-2\">\n <QuickSearch />\n </div>\n <NavTree selected={selected} onSelect={setSelected} />\n </Sidebar.Content>\n </Sidebar>\n\n <div className=\"flex min-w-0 flex-1 flex-col\">\n <header className=\"flex h-12 shrink-0 items-center gap-2 border-b border-kumo-line px-3\">\n <Sidebar.Trigger />\n <div className=\"min-w-0 flex-1\">\n <Breadcrumbs size=\"sm\">\n {trail.map((label) => (\n <Fragment key={label}>\n <Breadcrumbs.Link href=\"#\">{label}</Breadcrumbs.Link>\n <Breadcrumbs.Separator />\n </Fragment>\n ))}\n <Breadcrumbs.Current>{current}</Breadcrumbs.Current>\n </Breadcrumbs>\n </div>\n </header>\n <DemoMain>\n <p className=\"text-kumo-default\">{current}</p>\n <p className=\"text-sm text-kumo-subtle\">\n Drill into the nav — the trail is derived from the tree, so it\n always matches where you are.\n </p>\n </DemoMain>\n </div>\n </Sidebar.Provider>\n </div>\n </div>"
|
|
5620
5617
|
],
|
|
@@ -5714,39 +5711,10 @@
|
|
|
5714
5711
|
"name": "Header",
|
|
5715
5712
|
"description": "Header sub-component",
|
|
5716
5713
|
"props": {
|
|
5717
|
-
"
|
|
5718
|
-
"type": "React.ComponentType<{ className?: string }> | React.ReactNode",
|
|
5719
|
-
"optional": true
|
|
5720
|
-
},
|
|
5721
|
-
"active": {
|
|
5722
|
-
"type": "boolean",
|
|
5723
|
-
"optional": true
|
|
5724
|
-
},
|
|
5725
|
-
"size": {
|
|
5726
|
-
"type": "SidebarMenuButtonSize",
|
|
5727
|
-
"optional": true,
|
|
5728
|
-
"description": "Button size. - `\"base\"` — Standard nav item - `\"sm\"` — Compact nav item"
|
|
5729
|
-
},
|
|
5730
|
-
"href": {
|
|
5714
|
+
"itemId": {
|
|
5731
5715
|
"type": "string",
|
|
5732
|
-
"optional": true
|
|
5733
|
-
},
|
|
5734
|
-
"target": {
|
|
5735
|
-
"type": "React.HTMLAttributeAnchorTarget",
|
|
5736
5716
|
"optional": true,
|
|
5737
|
-
"description": "
|
|
5738
|
-
},
|
|
5739
|
-
"tooltip": {
|
|
5740
|
-
"type": "string",
|
|
5741
|
-
"optional": true
|
|
5742
|
-
},
|
|
5743
|
-
"className": {
|
|
5744
|
-
"type": "string",
|
|
5745
|
-
"optional": true
|
|
5746
|
-
},
|
|
5747
|
-
"children": {
|
|
5748
|
-
"type": "ReactNode",
|
|
5749
|
-
"optional": true
|
|
5717
|
+
"description": "Anchor id for `useSidebar().scrollToItem(id)`."
|
|
5750
5718
|
}
|
|
5751
5719
|
}
|
|
5752
5720
|
},
|
|
@@ -5754,39 +5722,10 @@
|
|
|
5754
5722
|
"name": "Content",
|
|
5755
5723
|
"description": "Content sub-component",
|
|
5756
5724
|
"props": {
|
|
5757
|
-
"
|
|
5758
|
-
"type": "React.ComponentType<{ className?: string }> | React.ReactNode",
|
|
5759
|
-
"optional": true
|
|
5760
|
-
},
|
|
5761
|
-
"active": {
|
|
5762
|
-
"type": "boolean",
|
|
5763
|
-
"optional": true
|
|
5764
|
-
},
|
|
5765
|
-
"size": {
|
|
5766
|
-
"type": "SidebarMenuButtonSize",
|
|
5767
|
-
"optional": true,
|
|
5768
|
-
"description": "Button size. - `\"base\"` — Standard nav item - `\"sm\"` — Compact nav item"
|
|
5769
|
-
},
|
|
5770
|
-
"href": {
|
|
5725
|
+
"itemId": {
|
|
5771
5726
|
"type": "string",
|
|
5772
|
-
"optional": true
|
|
5773
|
-
},
|
|
5774
|
-
"target": {
|
|
5775
|
-
"type": "React.HTMLAttributeAnchorTarget",
|
|
5776
5727
|
"optional": true,
|
|
5777
|
-
"description": "
|
|
5778
|
-
},
|
|
5779
|
-
"tooltip": {
|
|
5780
|
-
"type": "string",
|
|
5781
|
-
"optional": true
|
|
5782
|
-
},
|
|
5783
|
-
"className": {
|
|
5784
|
-
"type": "string",
|
|
5785
|
-
"optional": true
|
|
5786
|
-
},
|
|
5787
|
-
"children": {
|
|
5788
|
-
"type": "ReactNode",
|
|
5789
|
-
"optional": true
|
|
5728
|
+
"description": "Anchor id for `useSidebar().scrollToItem(id)`."
|
|
5790
5729
|
}
|
|
5791
5730
|
}
|
|
5792
5731
|
},
|
|
@@ -5794,39 +5733,10 @@
|
|
|
5794
5733
|
"name": "Footer",
|
|
5795
5734
|
"description": "Footer sub-component",
|
|
5796
5735
|
"props": {
|
|
5797
|
-
"
|
|
5798
|
-
"type": "React.ComponentType<{ className?: string }> | React.ReactNode",
|
|
5799
|
-
"optional": true
|
|
5800
|
-
},
|
|
5801
|
-
"active": {
|
|
5802
|
-
"type": "boolean",
|
|
5803
|
-
"optional": true
|
|
5804
|
-
},
|
|
5805
|
-
"size": {
|
|
5806
|
-
"type": "SidebarMenuButtonSize",
|
|
5807
|
-
"optional": true,
|
|
5808
|
-
"description": "Button size. - `\"base\"` — Standard nav item - `\"sm\"` — Compact nav item"
|
|
5809
|
-
},
|
|
5810
|
-
"href": {
|
|
5736
|
+
"itemId": {
|
|
5811
5737
|
"type": "string",
|
|
5812
|
-
"optional": true
|
|
5813
|
-
},
|
|
5814
|
-
"target": {
|
|
5815
|
-
"type": "React.HTMLAttributeAnchorTarget",
|
|
5816
5738
|
"optional": true,
|
|
5817
|
-
"description": "
|
|
5818
|
-
},
|
|
5819
|
-
"tooltip": {
|
|
5820
|
-
"type": "string",
|
|
5821
|
-
"optional": true
|
|
5822
|
-
},
|
|
5823
|
-
"className": {
|
|
5824
|
-
"type": "string",
|
|
5825
|
-
"optional": true
|
|
5826
|
-
},
|
|
5827
|
-
"children": {
|
|
5828
|
-
"type": "ReactNode",
|
|
5829
|
-
"optional": true
|
|
5739
|
+
"description": "Anchor id for `useSidebar().scrollToItem(id)`."
|
|
5830
5740
|
}
|
|
5831
5741
|
}
|
|
5832
5742
|
},
|
|
@@ -5834,39 +5744,10 @@
|
|
|
5834
5744
|
"name": "Loading",
|
|
5835
5745
|
"description": "Loading sub-component",
|
|
5836
5746
|
"props": {
|
|
5837
|
-
"
|
|
5838
|
-
"type": "React.ComponentType<{ className?: string }> | React.ReactNode",
|
|
5839
|
-
"optional": true
|
|
5840
|
-
},
|
|
5841
|
-
"active": {
|
|
5842
|
-
"type": "boolean",
|
|
5843
|
-
"optional": true
|
|
5844
|
-
},
|
|
5845
|
-
"size": {
|
|
5846
|
-
"type": "SidebarMenuButtonSize",
|
|
5847
|
-
"optional": true,
|
|
5848
|
-
"description": "Button size. - `\"base\"` — Standard nav item - `\"sm\"` — Compact nav item"
|
|
5849
|
-
},
|
|
5850
|
-
"href": {
|
|
5747
|
+
"itemId": {
|
|
5851
5748
|
"type": "string",
|
|
5852
|
-
"optional": true
|
|
5853
|
-
},
|
|
5854
|
-
"target": {
|
|
5855
|
-
"type": "React.HTMLAttributeAnchorTarget",
|
|
5856
5749
|
"optional": true,
|
|
5857
|
-
"description": "
|
|
5858
|
-
},
|
|
5859
|
-
"tooltip": {
|
|
5860
|
-
"type": "string",
|
|
5861
|
-
"optional": true
|
|
5862
|
-
},
|
|
5863
|
-
"className": {
|
|
5864
|
-
"type": "string",
|
|
5865
|
-
"optional": true
|
|
5866
|
-
},
|
|
5867
|
-
"children": {
|
|
5868
|
-
"type": "ReactNode",
|
|
5869
|
-
"optional": true
|
|
5750
|
+
"description": "Anchor id for `useSidebar().scrollToItem(id)`."
|
|
5870
5751
|
}
|
|
5871
5752
|
}
|
|
5872
5753
|
},
|
|
@@ -5874,39 +5755,10 @@
|
|
|
5874
5755
|
"name": "Group",
|
|
5875
5756
|
"description": "Group sub-component",
|
|
5876
5757
|
"props": {
|
|
5877
|
-
"
|
|
5878
|
-
"type": "React.ComponentType<{ className?: string }> | React.ReactNode",
|
|
5879
|
-
"optional": true
|
|
5880
|
-
},
|
|
5881
|
-
"active": {
|
|
5882
|
-
"type": "boolean",
|
|
5883
|
-
"optional": true
|
|
5884
|
-
},
|
|
5885
|
-
"size": {
|
|
5886
|
-
"type": "SidebarMenuButtonSize",
|
|
5887
|
-
"optional": true,
|
|
5888
|
-
"description": "Button size. - `\"base\"` — Standard nav item - `\"sm\"` — Compact nav item"
|
|
5889
|
-
},
|
|
5890
|
-
"href": {
|
|
5758
|
+
"itemId": {
|
|
5891
5759
|
"type": "string",
|
|
5892
|
-
"optional": true
|
|
5893
|
-
},
|
|
5894
|
-
"target": {
|
|
5895
|
-
"type": "React.HTMLAttributeAnchorTarget",
|
|
5896
5760
|
"optional": true,
|
|
5897
|
-
"description": "
|
|
5898
|
-
},
|
|
5899
|
-
"tooltip": {
|
|
5900
|
-
"type": "string",
|
|
5901
|
-
"optional": true
|
|
5902
|
-
},
|
|
5903
|
-
"className": {
|
|
5904
|
-
"type": "string",
|
|
5905
|
-
"optional": true
|
|
5906
|
-
},
|
|
5907
|
-
"children": {
|
|
5908
|
-
"type": "ReactNode",
|
|
5909
|
-
"optional": true
|
|
5761
|
+
"description": "Anchor id for `useSidebar().scrollToItem(id)`."
|
|
5910
5762
|
}
|
|
5911
5763
|
}
|
|
5912
5764
|
},
|
|
@@ -5914,39 +5766,10 @@
|
|
|
5914
5766
|
"name": "GroupLabel",
|
|
5915
5767
|
"description": "GroupLabel sub-component",
|
|
5916
5768
|
"props": {
|
|
5917
|
-
"
|
|
5918
|
-
"type": "React.ComponentType<{ className?: string }> | React.ReactNode",
|
|
5919
|
-
"optional": true
|
|
5920
|
-
},
|
|
5921
|
-
"active": {
|
|
5922
|
-
"type": "boolean",
|
|
5923
|
-
"optional": true
|
|
5924
|
-
},
|
|
5925
|
-
"size": {
|
|
5926
|
-
"type": "SidebarMenuButtonSize",
|
|
5927
|
-
"optional": true,
|
|
5928
|
-
"description": "Button size. - `\"base\"` — Standard nav item - `\"sm\"` — Compact nav item"
|
|
5929
|
-
},
|
|
5930
|
-
"href": {
|
|
5769
|
+
"itemId": {
|
|
5931
5770
|
"type": "string",
|
|
5932
|
-
"optional": true
|
|
5933
|
-
},
|
|
5934
|
-
"target": {
|
|
5935
|
-
"type": "React.HTMLAttributeAnchorTarget",
|
|
5936
5771
|
"optional": true,
|
|
5937
|
-
"description": "
|
|
5938
|
-
},
|
|
5939
|
-
"tooltip": {
|
|
5940
|
-
"type": "string",
|
|
5941
|
-
"optional": true
|
|
5942
|
-
},
|
|
5943
|
-
"className": {
|
|
5944
|
-
"type": "string",
|
|
5945
|
-
"optional": true
|
|
5946
|
-
},
|
|
5947
|
-
"children": {
|
|
5948
|
-
"type": "ReactNode",
|
|
5949
|
-
"optional": true
|
|
5772
|
+
"description": "Anchor id for `useSidebar().scrollToItem(id)`."
|
|
5950
5773
|
}
|
|
5951
5774
|
}
|
|
5952
5775
|
},
|
|
@@ -5954,39 +5777,10 @@
|
|
|
5954
5777
|
"name": "Menu",
|
|
5955
5778
|
"description": "Menu sub-component",
|
|
5956
5779
|
"props": {
|
|
5957
|
-
"
|
|
5958
|
-
"type": "React.ComponentType<{ className?: string }> | React.ReactNode",
|
|
5959
|
-
"optional": true
|
|
5960
|
-
},
|
|
5961
|
-
"active": {
|
|
5962
|
-
"type": "boolean",
|
|
5963
|
-
"optional": true
|
|
5964
|
-
},
|
|
5965
|
-
"size": {
|
|
5966
|
-
"type": "SidebarMenuButtonSize",
|
|
5967
|
-
"optional": true,
|
|
5968
|
-
"description": "Button size. - `\"base\"` — Standard nav item - `\"sm\"` — Compact nav item"
|
|
5969
|
-
},
|
|
5970
|
-
"href": {
|
|
5780
|
+
"itemId": {
|
|
5971
5781
|
"type": "string",
|
|
5972
|
-
"optional": true
|
|
5973
|
-
},
|
|
5974
|
-
"target": {
|
|
5975
|
-
"type": "React.HTMLAttributeAnchorTarget",
|
|
5976
5782
|
"optional": true,
|
|
5977
|
-
"description": "
|
|
5978
|
-
},
|
|
5979
|
-
"tooltip": {
|
|
5980
|
-
"type": "string",
|
|
5981
|
-
"optional": true
|
|
5982
|
-
},
|
|
5983
|
-
"className": {
|
|
5984
|
-
"type": "string",
|
|
5985
|
-
"optional": true
|
|
5986
|
-
},
|
|
5987
|
-
"children": {
|
|
5988
|
-
"type": "ReactNode",
|
|
5989
|
-
"optional": true
|
|
5783
|
+
"description": "Anchor id for `useSidebar().scrollToItem(id)`."
|
|
5990
5784
|
}
|
|
5991
5785
|
}
|
|
5992
5786
|
},
|
|
@@ -5994,39 +5788,10 @@
|
|
|
5994
5788
|
"name": "MenuItem",
|
|
5995
5789
|
"description": "MenuItem sub-component",
|
|
5996
5790
|
"props": {
|
|
5997
|
-
"
|
|
5998
|
-
"type": "React.ComponentType<{ className?: string }> | React.ReactNode",
|
|
5999
|
-
"optional": true
|
|
6000
|
-
},
|
|
6001
|
-
"active": {
|
|
6002
|
-
"type": "boolean",
|
|
6003
|
-
"optional": true
|
|
6004
|
-
},
|
|
6005
|
-
"size": {
|
|
6006
|
-
"type": "SidebarMenuButtonSize",
|
|
6007
|
-
"optional": true,
|
|
6008
|
-
"description": "Button size. - `\"base\"` — Standard nav item - `\"sm\"` — Compact nav item"
|
|
6009
|
-
},
|
|
6010
|
-
"href": {
|
|
5791
|
+
"itemId": {
|
|
6011
5792
|
"type": "string",
|
|
6012
|
-
"optional": true
|
|
6013
|
-
},
|
|
6014
|
-
"target": {
|
|
6015
|
-
"type": "React.HTMLAttributeAnchorTarget",
|
|
6016
5793
|
"optional": true,
|
|
6017
|
-
"description": "
|
|
6018
|
-
},
|
|
6019
|
-
"tooltip": {
|
|
6020
|
-
"type": "string",
|
|
6021
|
-
"optional": true
|
|
6022
|
-
},
|
|
6023
|
-
"className": {
|
|
6024
|
-
"type": "string",
|
|
6025
|
-
"optional": true
|
|
6026
|
-
},
|
|
6027
|
-
"children": {
|
|
6028
|
-
"type": "ReactNode",
|
|
6029
|
-
"optional": true
|
|
5794
|
+
"description": "Anchor id for `useSidebar().scrollToItem(id)`."
|
|
6030
5795
|
}
|
|
6031
5796
|
}
|
|
6032
5797
|
},
|
|
@@ -6060,6 +5825,11 @@
|
|
|
6060
5825
|
"type": "string",
|
|
6061
5826
|
"optional": true
|
|
6062
5827
|
},
|
|
5828
|
+
"itemId": {
|
|
5829
|
+
"type": "string",
|
|
5830
|
+
"optional": true,
|
|
5831
|
+
"description": "Anchor id for `useSidebar().scrollToItem(id)`."
|
|
5832
|
+
},
|
|
6063
5833
|
"className": {
|
|
6064
5834
|
"type": "string",
|
|
6065
5835
|
"optional": true
|
|
@@ -6949,8 +6719,9 @@
|
|
|
6949
6719
|
"variant": {
|
|
6950
6720
|
"type": "enum",
|
|
6951
6721
|
"optional": true,
|
|
6952
|
-
"description": "Text style variant. Determines color, font, and weight.\n- `\"heading1\"` —
|
|
6722
|
+
"description": "Text style variant. Determines color, font, and weight.\n- `\"heading\"` — Heading text (16px by default, 20px with `size=\"lg\"`; semibold)\n- `\"heading1\"` — Deprecated; use `\"heading\"` (30px, semibold)\n- `\"heading2\"` — Deprecated; use `\"heading\"` (24px, semibold)\n- `\"heading3\"` — Deprecated; use `\"heading\"` (16px, semibold)\n- `\"body\"` — Default body text\n- `\"secondary\"` — Muted text for secondary information\n- `\"success\"` — Success state text\n- `\"error\"` — Error state text\n- `\"mono\"` — Monospace text for code\n- `\"mono-secondary\"` — Muted monospace text",
|
|
6953
6723
|
"values": [
|
|
6724
|
+
"heading",
|
|
6954
6725
|
"heading1",
|
|
6955
6726
|
"heading2",
|
|
6956
6727
|
"heading3",
|
|
@@ -6962,9 +6733,10 @@
|
|
|
6962
6733
|
"mono-secondary"
|
|
6963
6734
|
],
|
|
6964
6735
|
"descriptions": {
|
|
6965
|
-
"
|
|
6966
|
-
"
|
|
6967
|
-
"
|
|
6736
|
+
"heading": "Heading text (16px by default, 20px at large size)",
|
|
6737
|
+
"heading1": "Deprecated large heading for page titles; use heading instead",
|
|
6738
|
+
"heading2": "Deprecated medium heading for section titles; use heading instead",
|
|
6739
|
+
"heading3": "Deprecated small heading for subsections; use heading instead",
|
|
6968
6740
|
"body": "Default body text",
|
|
6969
6741
|
"secondary": "Muted text for secondary information",
|
|
6970
6742
|
"success": "Success state text",
|
|
@@ -6973,6 +6745,7 @@
|
|
|
6973
6745
|
"mono-secondary": "Muted monospace text"
|
|
6974
6746
|
},
|
|
6975
6747
|
"classes": {
|
|
6748
|
+
"heading": "text-lg font-semibold",
|
|
6976
6749
|
"heading1": "text-3xl font-semibold",
|
|
6977
6750
|
"heading2": "text-2xl font-semibold",
|
|
6978
6751
|
"heading3": "text-lg font-semibold",
|
|
@@ -6988,7 +6761,7 @@
|
|
|
6988
6761
|
"size": {
|
|
6989
6762
|
"type": "enum",
|
|
6990
6763
|
"optional": true,
|
|
6991
|
-
"description": "Text size
|
|
6764
|
+
"description": "Text size. Supported values depend on the variant:\n- `\"heading\"` — 16px when omitted, or 20px with `\"lg\"`\n- Body variants — `\"xs\"` (12px), `\"sm\"` (13px), `\"base\"` (14px), or `\"lg\"` (16px)\n- Monospace variants — 13px when omitted, or 14px with `\"lg\"`",
|
|
6992
6765
|
"values": [
|
|
6993
6766
|
"xs",
|
|
6994
6767
|
"sm",
|
|
@@ -7022,7 +6795,7 @@
|
|
|
7022
6795
|
"as": {
|
|
7023
6796
|
"type": "enum",
|
|
7024
6797
|
"optional": true,
|
|
7025
|
-
"description": "The HTML element to render. Accepts headings (`\"h1\"`–`\"h6\"`), block text (`\"p\"`, `\"pre\"`), inline text (`\"span\"`, `\"code\"`, `\"em\"`, `\"strong\"`, `\"small\"`, `\"abbr\"`, `\"time\"`), form-related (`\"label\"`, `\"legend\"`), list/definition (`\"dt\"`, `\"dd\"`, `\"li\"`), and `\"figcaption\"`.\n\n- **
|
|
6798
|
+
"description": "The HTML element to render. Accepts headings (`\"h1\"`–`\"h6\"`), block text (`\"p\"`, `\"pre\"`), inline text (`\"span\"`, `\"code\"`, `\"em\"`, `\"strong\"`, `\"small\"`, `\"abbr\"`, `\"time\"`), form-related (`\"label\"`, `\"legend\"`), list/definition (`\"dt\"`, `\"dd\"`, `\"li\"`), and `\"figcaption\"`.\n\n- **Optional** for `\"heading\"` (defaults to `\"span\"`). Pass the heading element that reflects this text's place in the document outline.\n- **Required** for deprecated heading variants (`\"heading1\"`, `\"heading2\"`, `\"heading3\"`).\n- **Optional** for body variants (defaults to `\"p\"`) and monospace variants (defaults to `\"span\"`).",
|
|
7026
6799
|
"values": [
|
|
7027
6800
|
"h1",
|
|
7028
6801
|
"h2",
|
|
@@ -7054,7 +6827,7 @@
|
|
|
7054
6827
|
}
|
|
7055
6828
|
},
|
|
7056
6829
|
"examples": [
|
|
7057
|
-
"<div className=\"grid w-full grid-cols-1 gap-4 md:grid-cols-2 lg:grid-cols-3\">\n <div className=\"flex flex-col justify-end gap-1 rounded-lg border border-kumo-hairline bg-kumo-base p-4\">\n <Text variant=\"
|
|
6830
|
+
"<div className=\"grid w-full grid-cols-1 gap-4 md:grid-cols-2 lg:grid-cols-3\">\n <div className=\"flex flex-col justify-end gap-1 rounded-lg border border-kumo-hairline bg-kumo-base p-4\">\n <Text variant=\"heading\">Heading</Text>\n <Text variant=\"mono-secondary\">text-lg (16px)</Text>\n </div>\n <div className=\"flex flex-col justify-end gap-1 rounded-lg border border-kumo-hairline bg-kumo-base p-4\">\n <Text variant=\"heading\" size=\"lg\" as=\"h2\">\n Heading large\n </Text>\n <Text variant=\"mono-secondary\">text-xl (20px)</Text>\n </div>\n <div className=\"flex flex-col justify-end gap-1 rounded-lg border border-kumo-hairline bg-kumo-base p-4\">\n <Text>Body</Text>\n <Text variant=\"mono-secondary\">text-base (14px)</Text>\n </div>\n <div className=\"flex flex-col justify-end gap-1 rounded-lg border border-kumo-hairline bg-kumo-base p-4\">\n <Text bold>Body bold</Text>\n <Text variant=\"mono-secondary\">text-base (14px)</Text>\n </div>\n <div className=\"flex flex-col justify-end gap-1 rounded-lg border border-kumo-hairline bg-kumo-base p-4\">\n <Text size=\"lg\">Body lg</Text>\n <Text variant=\"mono-secondary\">text-lg (16px)</Text>\n </div>\n <div className=\"flex flex-col justify-end gap-1 rounded-lg border border-kumo-hairline bg-kumo-base p-4\">\n <Text size=\"sm\">Body sm</Text>\n <Text variant=\"mono-secondary\">text-sm (13px)</Text>\n </div>\n <div className=\"flex flex-col justify-end gap-1 rounded-lg border border-kumo-hairline bg-kumo-base p-4\">\n <Text size=\"xs\">Body xs</Text>\n <Text variant=\"mono-secondary\">text-xs (12px)</Text>\n </div>\n <div className=\"flex flex-col justify-end gap-1 rounded-lg border border-kumo-hairline bg-kumo-base p-4\">\n <Text variant=\"secondary\">Body secondary</Text>\n <Text variant=\"mono-secondary\">text-base (14px)</Text>\n </div>\n <div className=\"flex flex-col justify-end gap-1 rounded-lg border border-kumo-hairline bg-kumo-base p-4\">\n <Text variant=\"mono\">Monospace</Text>\n <Text variant=\"mono-secondary\">text-sm (13px)</Text>\n </div>\n <div className=\"flex flex-col justify-end gap-1 rounded-lg border border-kumo-hairline bg-kumo-base p-4\">\n <Text variant=\"mono\" size=\"lg\">\n Monospace lg\n </Text>\n <Text variant=\"mono-secondary\">text-base (14px)</Text>\n </div>\n <div className=\"flex flex-col justify-end gap-1 rounded-lg border border-kumo-hairline bg-kumo-base p-4\">\n <Text variant=\"mono-secondary\">Monospace secondary</Text>\n <Text variant=\"mono-secondary\">text-sm (13px)</Text>\n </div>\n <div className=\"flex flex-col justify-end gap-1 rounded-lg border border-kumo-hairline bg-kumo-base p-4\">\n <Text variant=\"success\">Success</Text>\n <Text variant=\"mono-secondary\">text-base (14px)</Text>\n </div>\n <div className=\"flex flex-col justify-end gap-1 rounded-lg border border-kumo-hairline bg-kumo-base p-4\">\n <Text variant=\"error\">Error</Text>\n <Text variant=\"mono-secondary\">text-base (14px)</Text>\n </div>\n </div>",
|
|
7058
6831
|
"<div className=\"w-64 rounded-lg border border-kumo-hairline bg-kumo-base p-4\">\n <Text truncate>\n This is a long piece of text that will be truncated with an ellipsis\n when it overflows its container.\n </Text>\n </div>"
|
|
7059
6832
|
],
|
|
7060
6833
|
"colors": [
|
|
@@ -7251,7 +7024,7 @@
|
|
|
7251
7024
|
],
|
|
7252
7025
|
"colors": [
|
|
7253
7026
|
"bg-kumo-base",
|
|
7254
|
-
"outline-kumo-
|
|
7027
|
+
"outline-kumo-line"
|
|
7255
7028
|
]
|
|
7256
7029
|
},
|
|
7257
7030
|
"Toasty": {
|
|
@@ -7520,10 +7293,10 @@
|
|
|
7520
7293
|
],
|
|
7521
7294
|
"colors": [
|
|
7522
7295
|
"bg-kumo-base",
|
|
7296
|
+
"fill-kumo-arrow-edge",
|
|
7297
|
+
"fill-kumo-arrow-stroke",
|
|
7523
7298
|
"fill-kumo-base",
|
|
7524
|
-
"
|
|
7525
|
-
"fill-kumo-tip-stroke",
|
|
7526
|
-
"outline-kumo-fill",
|
|
7299
|
+
"outline-kumo-line",
|
|
7527
7300
|
"text-kumo-default"
|
|
7528
7301
|
],
|
|
7529
7302
|
"subComponents": {
|