@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
|
@@ -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",
|
|
@@ -4628,6 +4624,11 @@
|
|
|
4628
4624
|
"optional": true,
|
|
4629
4625
|
"description": "Total number of items across all pages."
|
|
4630
4626
|
},
|
|
4627
|
+
"hasNextPage": {
|
|
4628
|
+
"type": "boolean",
|
|
4629
|
+
"optional": true,
|
|
4630
|
+
"description": "Whether another page exists when the total count is unknown. Ignored when `totalCount` is provided. Unknown totals use sequential controls only."
|
|
4631
|
+
},
|
|
4631
4632
|
"className": {
|
|
4632
4633
|
"type": "string",
|
|
4633
4634
|
"optional": true,
|
|
@@ -4664,6 +4665,7 @@
|
|
|
4664
4665
|
"examples": [
|
|
4665
4666
|
"<Pagination page={page} setPage={setPage} perPage={10} totalCount={100} />",
|
|
4666
4667
|
"<Pagination\n page={page}\n setPage={setPage}\n perPage={10}\n totalCount={100}\n controls=\"simple\"\n />",
|
|
4668
|
+
"<Pagination\n text={() => `Page ${page}`}\n page={page}\n setPage={setPage}\n hasNextPage={hasNextPage}\n />",
|
|
4667
4669
|
"<Pagination\n page={page}\n setPage={setPage}\n perPage={10}\n totalCount={100}\n controls=\"full\"\n />",
|
|
4668
4670
|
"<Pagination page={page} setPage={setPage} perPage={10} totalCount={100} />",
|
|
4669
4671
|
"<Pagination page={page} setPage={setPage} perPage={25} totalCount={1250} />",
|
|
@@ -4799,10 +4801,10 @@
|
|
|
4799
4801
|
],
|
|
4800
4802
|
"colors": [
|
|
4801
4803
|
"bg-kumo-base",
|
|
4804
|
+
"fill-kumo-arrow-edge",
|
|
4805
|
+
"fill-kumo-arrow-stroke",
|
|
4802
4806
|
"fill-kumo-base",
|
|
4803
|
-
"
|
|
4804
|
-
"fill-kumo-tip-stroke",
|
|
4805
|
-
"outline-kumo-fill",
|
|
4807
|
+
"outline-kumo-line",
|
|
4806
4808
|
"text-kumo-default",
|
|
4807
4809
|
"text-kumo-subtle"
|
|
4808
4810
|
],
|
|
@@ -5158,6 +5160,88 @@
|
|
|
5158
5160
|
"importPath": "@cloudflare/kumo",
|
|
5159
5161
|
"category": "Input",
|
|
5160
5162
|
"props": {
|
|
5163
|
+
"align": {
|
|
5164
|
+
"type": "enum",
|
|
5165
|
+
"optional": true,
|
|
5166
|
+
"description": "How to align the popup relative to the specified side.",
|
|
5167
|
+
"values": [
|
|
5168
|
+
"start",
|
|
5169
|
+
"center",
|
|
5170
|
+
"end"
|
|
5171
|
+
]
|
|
5172
|
+
},
|
|
5173
|
+
"alignItemWithTrigger": {
|
|
5174
|
+
"type": "boolean",
|
|
5175
|
+
"optional": true,
|
|
5176
|
+
"description": "Whether the positioner overlaps the trigger so the selected item's text is aligned with the trigger's value text. This only applies to mouse input and is automatically disabled if there is not enough space."
|
|
5177
|
+
},
|
|
5178
|
+
"alignOffset": {
|
|
5179
|
+
"type": "number | OffsetFunction",
|
|
5180
|
+
"optional": true,
|
|
5181
|
+
"description": "Additional offset along the alignment axis in pixels. Also accepts a function that returns the offset to read the dimensions of the anchor and positioner elements, along with its side and alignment.\n\nThe function takes a `data` object parameter with the following properties:\n- `data.anchor`: the dimensions of the anchor element with properties `width` and `height`.\n- `data.positioner`: the dimensions of the positioner element with properties `width` and `height`.\n- `data.side`: which side of the anchor element the positioner is aligned against.\n- `data.align`: how the positioner is aligned relative to the specified side."
|
|
5182
|
+
},
|
|
5183
|
+
"anchor": {
|
|
5184
|
+
"type": "ReactNode",
|
|
5185
|
+
"optional": true,
|
|
5186
|
+
"description": "An element to position the popup against. By default, the popup will be positioned against the trigger."
|
|
5187
|
+
},
|
|
5188
|
+
"arrowPadding": {
|
|
5189
|
+
"type": "number",
|
|
5190
|
+
"optional": true,
|
|
5191
|
+
"description": "Minimum distance to maintain between the arrow and the edges of the popup.\n\nUse it to prevent the arrow element from hanging out of the rounded corners of a popup."
|
|
5192
|
+
},
|
|
5193
|
+
"collisionAvoidance": {
|
|
5194
|
+
"type": "CollisionAvoidance",
|
|
5195
|
+
"optional": true,
|
|
5196
|
+
"description": "Determines how to handle collisions when positioning the popup.\n\n`side` controls overflow on the preferred placement axis (`top`/`bottom` or `left`/`right`):\n- `'flip'`: keep the requested side when it fits; otherwise try the opposite side (`top` and `bottom`, or `left` and `right`).\n- `'shift'`: never change side; keep the requested side and move the popup within the clipping boundary so it stays visible.\n- `'none'`: do not correct side-axis overflow.\n\n`align` controls overflow on the alignment axis (`start`/`center`/`end`):\n- `'flip'`: keep side, but swap `start` and `end` when the requested alignment overflows.\n- `'shift'`: keep side and requested alignment, then nudge the popup along the alignment axis to fit.\n- `'none'`: do not correct alignment-axis overflow.\n\n`fallbackAxisSide` controls fallback behavior on the perpendicular axis when the preferred axis cannot fit:\n- `'start'`: allow perpendicular fallback and try the logical start side first (`top` before `bottom`, or `left` before `right` in LTR).\n- `'end'`: allow perpendicular fallback and try the logical end side first (`bottom` before `top`, or `right` before `left` in LTR).\n- `'none'`: do not fallback to the perpendicular axis.\n\nWhen `side` is `'shift'`, explicitly setting `align` only supports `'shift'` or `'none'`. If `align` is omitted, it defaults to `'flip'`."
|
|
5197
|
+
},
|
|
5198
|
+
"collisionBoundary": {
|
|
5199
|
+
"type": "Boundary",
|
|
5200
|
+
"optional": true,
|
|
5201
|
+
"description": "An element or a rectangle that delimits the area that the popup is confined to."
|
|
5202
|
+
},
|
|
5203
|
+
"collisionPadding": {
|
|
5204
|
+
"type": "Padding",
|
|
5205
|
+
"optional": true,
|
|
5206
|
+
"description": "Additional space to maintain from the edge of the collision boundary."
|
|
5207
|
+
},
|
|
5208
|
+
"disableAnchorTracking": {
|
|
5209
|
+
"type": "boolean",
|
|
5210
|
+
"optional": true,
|
|
5211
|
+
"description": "Whether to disable the popup from tracking any layout shift of its positioning anchor."
|
|
5212
|
+
},
|
|
5213
|
+
"positionMethod": {
|
|
5214
|
+
"type": "enum",
|
|
5215
|
+
"optional": true,
|
|
5216
|
+
"description": "Determines which CSS `position` property to use.",
|
|
5217
|
+
"values": [
|
|
5218
|
+
"absolute",
|
|
5219
|
+
"fixed"
|
|
5220
|
+
]
|
|
5221
|
+
},
|
|
5222
|
+
"side": {
|
|
5223
|
+
"type": "enum",
|
|
5224
|
+
"optional": true,
|
|
5225
|
+
"description": "Which side of the anchor element to align the popup against. May automatically change to avoid collisions.",
|
|
5226
|
+
"values": [
|
|
5227
|
+
"top",
|
|
5228
|
+
"bottom",
|
|
5229
|
+
"left",
|
|
5230
|
+
"right",
|
|
5231
|
+
"inline-end",
|
|
5232
|
+
"inline-start"
|
|
5233
|
+
]
|
|
5234
|
+
},
|
|
5235
|
+
"sideOffset": {
|
|
5236
|
+
"type": "number | OffsetFunction",
|
|
5237
|
+
"optional": true,
|
|
5238
|
+
"description": "Distance between the anchor and the popup in pixels. Also accepts a function that returns the distance to read the dimensions of the anchor and positioner elements, along with its side and alignment.\n\nThe function takes a `data` object parameter with the following properties:\n- `data.anchor`: the dimensions of the anchor element with properties `width` and `height`.\n- `data.positioner`: the dimensions of the positioner element with properties `width` and `height`.\n- `data.side`: which side of the anchor element the positioner is aligned against.\n- `data.align`: how the positioner is aligned relative to the specified side."
|
|
5239
|
+
},
|
|
5240
|
+
"sticky": {
|
|
5241
|
+
"type": "boolean",
|
|
5242
|
+
"optional": true,
|
|
5243
|
+
"description": "Whether to maintain the popup in the viewport after the anchor element was scrolled out of view."
|
|
5244
|
+
},
|
|
5161
5245
|
"className": {
|
|
5162
5246
|
"type": "string",
|
|
5163
5247
|
"optional": true,
|
|
@@ -5274,11 +5358,13 @@
|
|
|
5274
5358
|
"<Select\n label=\"Plan\"\n className=\"w-[200px]\"\n value={value}\n onValueChange={(v) => setValue(v as string | null)}\n items={{\n free: \"Free\",\n pro: \"Pro\",\n business: { label: \"Business\", disabled: true },\n enterprise: { label: \"Enterprise\", disabled: true },\n }}\n />",
|
|
5275
5359
|
"<Select\n label=\"Food\"\n placeholder=\"Pick a food...\"\n className=\"w-[220px]\"\n value={value}\n onValueChange={(v) => setValue(v as Food | null)}\n isItemEqualToValue={(item, val) => item.value === val.value}\n >\n <Select.Group>\n <Select.GroupLabel>Fruits</Select.GroupLabel>\n {foods.fruits.map((food) => (\n <Select.Option key={food.value} value={food}>\n {food.label}\n </Select.Option>\n ))}\n </Select.Group>\n <Select.Separator />\n <Select.Group>\n <Select.GroupLabel>Vegetables</Select.GroupLabel>\n {foods.vegetables.map((food) => (\n <Select.Option key={food.value} value={food}>\n {food.label}\n </Select.Option>\n ))}\n </Select.Group>\n </Select>",
|
|
5276
5360
|
"<Select\n label=\"Server Region\"\n placeholder=\"Select a region...\"\n className=\"w-[260px]\"\n value={value}\n onValueChange={(v) => setValue(v as ServerRegion | null)}\n isItemEqualToValue={(item, val) => item.value === val.value}\n >\n <Select.Group>\n <Select.GroupLabel>Available</Select.GroupLabel>\n {serverRegions.available.map((region) => (\n <Select.Option key={region.value} value={region}>\n {region.label}\n </Select.Option>\n ))}\n </Select.Group>\n <Select.Separator />\n <Select.Group>\n <Select.GroupLabel>Unavailable</Select.GroupLabel>\n {serverRegions.unavailable.map((region) => (\n <Select.Option key={region.value} value={region} disabled>\n {region.label}\n </Select.Option>\n ))}\n </Select.Group>\n </Select>",
|
|
5277
|
-
"<Select\n label=\"Long List Select\"\n description=\"Tests scrolling behavior with many options\"\n placeholder=\"Choose an option...\"\n className=\"w-[220px]\"\n value={value}\n onValueChange={(v) => setValue(v as LongListItem | null)}\n isItemEqualToValue={(item, val) => item.value === val.value}\n >\n {longListItems.map((item) => (\n <Select.Option key={item.value} value={item}>\n {item.label}\n </Select.Option>\n ))}\n </Select>"
|
|
5361
|
+
"<Select\n label=\"Long List Select\"\n description=\"Tests scrolling behavior with many options\"\n placeholder=\"Choose an option...\"\n className=\"w-[220px]\"\n value={value}\n onValueChange={(v) => setValue(v as LongListItem | null)}\n isItemEqualToValue={(item, val) => item.value === val.value}\n >\n {longListItems.map((item) => (\n <Select.Option key={item.value} value={item}>\n {item.label}\n </Select.Option>\n ))}\n </Select>",
|
|
5362
|
+
"<div className=\"grid gap-4 sm:grid-cols-2\">\n <Select\n label=\"side=bottom (default)\"\n className=\"w-[200px]\"\n defaultValue=\"earth\"\n items={planets}\n />\n <Select\n label=\"side=top\"\n side=\"top\"\n className=\"w-[200px]\"\n defaultValue=\"earth\"\n items={planets}\n />\n <Select\n label=\"align=end\"\n align=\"end\"\n className=\"w-[200px]\"\n defaultValue=\"earth\"\n items={planets}\n />\n <Select\n label=\"sideOffset=12\"\n sideOffset={12}\n className=\"w-[200px]\"\n defaultValue=\"earth\"\n items={planets}\n />\n </div>",
|
|
5363
|
+
"<div className=\"flex flex-wrap items-start gap-8\">\n <Select\n label=\"Anchored (default)\"\n description=\"Opens below the trigger\"\n className=\"w-[200px]\"\n defaultValue=\"mars\"\n items={planets}\n />\n <Select\n label=\"Aligned to selection\"\n description=\"Selected option lands on the trigger\"\n alignItemWithTrigger\n className=\"w-[200px]\"\n defaultValue=\"mars\"\n items={planets}\n />\n </div>"
|
|
5278
5364
|
],
|
|
5279
5365
|
"colors": [
|
|
5280
5366
|
"bg-kumo-base",
|
|
5281
|
-
"bg-kumo-
|
|
5367
|
+
"bg-kumo-control",
|
|
5282
5368
|
"bg-kumo-hairline",
|
|
5283
5369
|
"bg-kumo-tint",
|
|
5284
5370
|
"border-kumo-line",
|
|
@@ -5318,7 +5404,7 @@
|
|
|
5318
5404
|
"height": 36,
|
|
5319
5405
|
"paddingX": 12,
|
|
5320
5406
|
"borderRadius": 8,
|
|
5321
|
-
"background": "bg-kumo-
|
|
5407
|
+
"background": "bg-kumo-control",
|
|
5322
5408
|
"text": "text-color-surface",
|
|
5323
5409
|
"ring": "color-border",
|
|
5324
5410
|
"fontSize": 16,
|
|
@@ -5343,7 +5429,7 @@
|
|
|
5343
5429
|
}
|
|
5344
5430
|
},
|
|
5345
5431
|
"popup": {
|
|
5346
|
-
"background": "bg-kumo-
|
|
5432
|
+
"background": "bg-kumo-base",
|
|
5347
5433
|
"ring": "border-kumo-line",
|
|
5348
5434
|
"borderRadius": 8,
|
|
5349
5435
|
"padding": 6
|
|
@@ -5615,6 +5701,7 @@
|
|
|
5615
5701
|
"<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
5702
|
"<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
5703
|
"<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>",
|
|
5704
|
+
"<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
5705
|
"<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
5706
|
"<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
5707
|
],
|
|
@@ -5714,39 +5801,10 @@
|
|
|
5714
5801
|
"name": "Header",
|
|
5715
5802
|
"description": "Header sub-component",
|
|
5716
5803
|
"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": {
|
|
5804
|
+
"itemId": {
|
|
5731
5805
|
"type": "string",
|
|
5732
|
-
"optional": true
|
|
5733
|
-
},
|
|
5734
|
-
"target": {
|
|
5735
|
-
"type": "React.HTMLAttributeAnchorTarget",
|
|
5736
5806
|
"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
|
|
5807
|
+
"description": "Anchor id for `useSidebar().scrollToItem(id)`."
|
|
5750
5808
|
}
|
|
5751
5809
|
}
|
|
5752
5810
|
},
|
|
@@ -5754,39 +5812,10 @@
|
|
|
5754
5812
|
"name": "Content",
|
|
5755
5813
|
"description": "Content sub-component",
|
|
5756
5814
|
"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": {
|
|
5815
|
+
"itemId": {
|
|
5771
5816
|
"type": "string",
|
|
5772
|
-
"optional": true
|
|
5773
|
-
},
|
|
5774
|
-
"target": {
|
|
5775
|
-
"type": "React.HTMLAttributeAnchorTarget",
|
|
5776
5817
|
"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
|
|
5818
|
+
"description": "Anchor id for `useSidebar().scrollToItem(id)`."
|
|
5790
5819
|
}
|
|
5791
5820
|
}
|
|
5792
5821
|
},
|
|
@@ -5794,39 +5823,10 @@
|
|
|
5794
5823
|
"name": "Footer",
|
|
5795
5824
|
"description": "Footer sub-component",
|
|
5796
5825
|
"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": {
|
|
5826
|
+
"itemId": {
|
|
5811
5827
|
"type": "string",
|
|
5812
|
-
"optional": true
|
|
5813
|
-
},
|
|
5814
|
-
"target": {
|
|
5815
|
-
"type": "React.HTMLAttributeAnchorTarget",
|
|
5816
5828
|
"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
|
|
5829
|
+
"description": "Anchor id for `useSidebar().scrollToItem(id)`."
|
|
5830
5830
|
}
|
|
5831
5831
|
}
|
|
5832
5832
|
},
|
|
@@ -5834,39 +5834,10 @@
|
|
|
5834
5834
|
"name": "Loading",
|
|
5835
5835
|
"description": "Loading sub-component",
|
|
5836
5836
|
"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": {
|
|
5837
|
+
"itemId": {
|
|
5851
5838
|
"type": "string",
|
|
5852
|
-
"optional": true
|
|
5853
|
-
},
|
|
5854
|
-
"target": {
|
|
5855
|
-
"type": "React.HTMLAttributeAnchorTarget",
|
|
5856
5839
|
"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
|
|
5840
|
+
"description": "Anchor id for `useSidebar().scrollToItem(id)`."
|
|
5870
5841
|
}
|
|
5871
5842
|
}
|
|
5872
5843
|
},
|
|
@@ -5874,39 +5845,10 @@
|
|
|
5874
5845
|
"name": "Group",
|
|
5875
5846
|
"description": "Group sub-component",
|
|
5876
5847
|
"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": {
|
|
5848
|
+
"itemId": {
|
|
5891
5849
|
"type": "string",
|
|
5892
|
-
"optional": true
|
|
5893
|
-
},
|
|
5894
|
-
"target": {
|
|
5895
|
-
"type": "React.HTMLAttributeAnchorTarget",
|
|
5896
5850
|
"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
|
|
5851
|
+
"description": "Anchor id for `useSidebar().scrollToItem(id)`."
|
|
5910
5852
|
}
|
|
5911
5853
|
}
|
|
5912
5854
|
},
|
|
@@ -5914,39 +5856,10 @@
|
|
|
5914
5856
|
"name": "GroupLabel",
|
|
5915
5857
|
"description": "GroupLabel sub-component",
|
|
5916
5858
|
"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": {
|
|
5859
|
+
"itemId": {
|
|
5931
5860
|
"type": "string",
|
|
5932
|
-
"optional": true
|
|
5933
|
-
},
|
|
5934
|
-
"target": {
|
|
5935
|
-
"type": "React.HTMLAttributeAnchorTarget",
|
|
5936
5861
|
"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
|
|
5862
|
+
"description": "Anchor id for `useSidebar().scrollToItem(id)`."
|
|
5950
5863
|
}
|
|
5951
5864
|
}
|
|
5952
5865
|
},
|
|
@@ -5954,39 +5867,10 @@
|
|
|
5954
5867
|
"name": "Menu",
|
|
5955
5868
|
"description": "Menu sub-component",
|
|
5956
5869
|
"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": {
|
|
5870
|
+
"itemId": {
|
|
5971
5871
|
"type": "string",
|
|
5972
|
-
"optional": true
|
|
5973
|
-
},
|
|
5974
|
-
"target": {
|
|
5975
|
-
"type": "React.HTMLAttributeAnchorTarget",
|
|
5976
5872
|
"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
|
|
5873
|
+
"description": "Anchor id for `useSidebar().scrollToItem(id)`."
|
|
5990
5874
|
}
|
|
5991
5875
|
}
|
|
5992
5876
|
},
|
|
@@ -5994,39 +5878,10 @@
|
|
|
5994
5878
|
"name": "MenuItem",
|
|
5995
5879
|
"description": "MenuItem sub-component",
|
|
5996
5880
|
"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": {
|
|
5881
|
+
"itemId": {
|
|
6011
5882
|
"type": "string",
|
|
6012
|
-
"optional": true
|
|
6013
|
-
},
|
|
6014
|
-
"target": {
|
|
6015
|
-
"type": "React.HTMLAttributeAnchorTarget",
|
|
6016
5883
|
"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
|
|
5884
|
+
"description": "Anchor id for `useSidebar().scrollToItem(id)`."
|
|
6030
5885
|
}
|
|
6031
5886
|
}
|
|
6032
5887
|
},
|
|
@@ -6060,6 +5915,11 @@
|
|
|
6060
5915
|
"type": "string",
|
|
6061
5916
|
"optional": true
|
|
6062
5917
|
},
|
|
5918
|
+
"itemId": {
|
|
5919
|
+
"type": "string",
|
|
5920
|
+
"optional": true,
|
|
5921
|
+
"description": "Anchor id for `useSidebar().scrollToItem(id)`."
|
|
5922
|
+
},
|
|
6063
5923
|
"className": {
|
|
6064
5924
|
"type": "string",
|
|
6065
5925
|
"optional": true
|
|
@@ -6629,7 +6489,7 @@
|
|
|
6629
6489
|
"selected": "Selected row variant"
|
|
6630
6490
|
},
|
|
6631
6491
|
"classes": {
|
|
6632
|
-
"default": "even:bg-kumo-
|
|
6492
|
+
"default": "even:bg-kumo-elevated [--kumo-table-row-bg:var(--color-kumo-base)] even:[--kumo-table-row-bg:var(--color-kumo-elevated)]",
|
|
6633
6493
|
"selected": "bg-kumo-tint [--kumo-table-row-bg:var(--color-kumo-tint)]"
|
|
6634
6494
|
}
|
|
6635
6495
|
},
|
|
@@ -6949,8 +6809,9 @@
|
|
|
6949
6809
|
"variant": {
|
|
6950
6810
|
"type": "enum",
|
|
6951
6811
|
"optional": true,
|
|
6952
|
-
"description": "Text style variant. Determines color, font, and weight.\n- `\"heading1\"` —
|
|
6812
|
+
"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
6813
|
"values": [
|
|
6814
|
+
"heading",
|
|
6954
6815
|
"heading1",
|
|
6955
6816
|
"heading2",
|
|
6956
6817
|
"heading3",
|
|
@@ -6962,9 +6823,10 @@
|
|
|
6962
6823
|
"mono-secondary"
|
|
6963
6824
|
],
|
|
6964
6825
|
"descriptions": {
|
|
6965
|
-
"
|
|
6966
|
-
"
|
|
6967
|
-
"
|
|
6826
|
+
"heading": "Heading text (16px by default, 20px at large size)",
|
|
6827
|
+
"heading1": "Deprecated large heading for page titles; use heading instead",
|
|
6828
|
+
"heading2": "Deprecated medium heading for section titles; use heading instead",
|
|
6829
|
+
"heading3": "Deprecated small heading for subsections; use heading instead",
|
|
6968
6830
|
"body": "Default body text",
|
|
6969
6831
|
"secondary": "Muted text for secondary information",
|
|
6970
6832
|
"success": "Success state text",
|
|
@@ -6973,6 +6835,7 @@
|
|
|
6973
6835
|
"mono-secondary": "Muted monospace text"
|
|
6974
6836
|
},
|
|
6975
6837
|
"classes": {
|
|
6838
|
+
"heading": "text-lg font-semibold",
|
|
6976
6839
|
"heading1": "text-3xl font-semibold",
|
|
6977
6840
|
"heading2": "text-2xl font-semibold",
|
|
6978
6841
|
"heading3": "text-lg font-semibold",
|
|
@@ -6988,7 +6851,7 @@
|
|
|
6988
6851
|
"size": {
|
|
6989
6852
|
"type": "enum",
|
|
6990
6853
|
"optional": true,
|
|
6991
|
-
"description": "Text size
|
|
6854
|
+
"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
6855
|
"values": [
|
|
6993
6856
|
"xs",
|
|
6994
6857
|
"sm",
|
|
@@ -7002,10 +6865,10 @@
|
|
|
7002
6865
|
"lg": "Large text"
|
|
7003
6866
|
},
|
|
7004
6867
|
"classes": {
|
|
7005
|
-
"xs": "text-xs",
|
|
7006
|
-
"sm": "text-sm",
|
|
7007
|
-
"base": "text-base",
|
|
7008
|
-
"lg": "text-lg"
|
|
6868
|
+
"xs": "text-xs/[inherit]",
|
|
6869
|
+
"sm": "text-sm/[inherit]",
|
|
6870
|
+
"base": "text-base/[inherit]",
|
|
6871
|
+
"lg": "text-lg/[inherit]"
|
|
7009
6872
|
},
|
|
7010
6873
|
"default": "base"
|
|
7011
6874
|
},
|
|
@@ -7022,7 +6885,7 @@
|
|
|
7022
6885
|
"as": {
|
|
7023
6886
|
"type": "enum",
|
|
7024
6887
|
"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- **
|
|
6888
|
+
"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
6889
|
"values": [
|
|
7027
6890
|
"h1",
|
|
7028
6891
|
"h2",
|
|
@@ -7054,7 +6917,7 @@
|
|
|
7054
6917
|
}
|
|
7055
6918
|
},
|
|
7056
6919
|
"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=\"
|
|
6920
|
+
"<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
6921
|
"<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
6922
|
],
|
|
7060
6923
|
"colors": [
|
|
@@ -7251,7 +7114,7 @@
|
|
|
7251
7114
|
],
|
|
7252
7115
|
"colors": [
|
|
7253
7116
|
"bg-kumo-base",
|
|
7254
|
-
"outline-kumo-
|
|
7117
|
+
"outline-kumo-line"
|
|
7255
7118
|
]
|
|
7256
7119
|
},
|
|
7257
7120
|
"Toasty": {
|
|
@@ -7446,6 +7309,7 @@
|
|
|
7446
7309
|
"<Toolbar className=\"w-full max-w-md\">\n <Toolbar.Input\n aria-label=\"Search DNS records\"\n placeholder=\"Search DNS records\"\n className=\"flex-1\"\n />\n <Toolbar.Button icon={FunnelSimpleIcon} aria-label=\"Filter\" />\n <Toolbar.Button icon={GearSixIcon} aria-label=\"Settings\" />\n </Toolbar>",
|
|
7447
7310
|
"<Toolbar className=\"w-full max-w-lg\">\n <Toolbar.InputGroup aria-label=\"Worker subdomain\" className=\"flex-1\">\n <InputGroup.Input placeholder=\"my-worker\" />\n <InputGroup.Suffix>.workers.dev</InputGroup.Suffix>\n </Toolbar.InputGroup>\n <Toolbar.Button>Visit</Toolbar.Button>\n </Toolbar>",
|
|
7448
7311
|
"<Toolbar>\n <Toolbar.Button icon={UploadSimpleIcon}>Upload</Toolbar.Button>\n <Toolbar.Button icon={DownloadSimpleIcon}>Download</Toolbar.Button>\n </Toolbar>",
|
|
7312
|
+
"<Toolbar>\n <Toolbar.Link href=\"/components/button\" icon={BookOpenIcon}>\n Button documentation\n </Toolbar.Link>\n <Toolbar.Button icon={DownloadSimpleIcon}>Download</Toolbar.Button>\n </Toolbar>",
|
|
7449
7313
|
"<Toolbar className=\"w-full max-w-lg\">\n <Toolbar.Input\n aria-label=\"Search records\"\n className=\"flex-1\"\n placeholder=\"Search\"\n />\n <Toolbar.Button icon={MagnifyingGlassIcon} aria-label=\"Search\" />\n </Toolbar>",
|
|
7450
7314
|
"<Toolbar>\n <Toolbar.Button icon={FunnelSimpleIcon}>Filter</Toolbar.Button>\n <Select\n aria-label=\"Sort records\"\n defaultValue=\"name\"\n items={{ name: \"Name\", created: \"Created date\", status: \"Status\" }}\n render={<Toolbar.Button />}\n />\n <Toolbar.Button icon={GearSixIcon} aria-label=\"View settings\" />\n </Toolbar>",
|
|
7451
7315
|
"<Toolbar className=\"w-full max-w-md\">\n <Toolbar.Button icon={FunnelSimpleIcon}>Status</Toolbar.Button>\n <Combobox items={toolbarComboboxItems}>\n <Combobox.TriggerInput\n aria-label=\"Filter status\"\n className=\"flex-1\"\n placeholder=\"Filter status…\"\n render={<Toolbar.Input />}\n />\n <Combobox.Content>\n <Combobox.List>\n {(item: string) => (\n <Combobox.Item key={item} value={item}>\n {item}\n </Combobox.Item>\n )}\n </Combobox.List>\n <Combobox.Empty>No matching statuses.</Combobox.Empty>\n </Combobox.Content>\n </Combobox>\n </Toolbar>"
|
|
@@ -7461,6 +7325,11 @@
|
|
|
7461
7325
|
"description": "Button sub-component",
|
|
7462
7326
|
"props": {}
|
|
7463
7327
|
},
|
|
7328
|
+
"Link": {
|
|
7329
|
+
"name": "Link",
|
|
7330
|
+
"description": "Link sub-component",
|
|
7331
|
+
"props": {}
|
|
7332
|
+
},
|
|
7464
7333
|
"Input": {
|
|
7465
7334
|
"name": "Input",
|
|
7466
7335
|
"description": "Input sub-component",
|
|
@@ -7520,10 +7389,10 @@
|
|
|
7520
7389
|
],
|
|
7521
7390
|
"colors": [
|
|
7522
7391
|
"bg-kumo-base",
|
|
7392
|
+
"fill-kumo-arrow-edge",
|
|
7393
|
+
"fill-kumo-arrow-stroke",
|
|
7523
7394
|
"fill-kumo-base",
|
|
7524
|
-
"
|
|
7525
|
-
"fill-kumo-tip-stroke",
|
|
7526
|
-
"outline-kumo-fill",
|
|
7395
|
+
"outline-kumo-line",
|
|
7527
7396
|
"text-kumo-default"
|
|
7528
7397
|
],
|
|
7529
7398
|
"subComponents": {
|