@imfusion/web-ui 0.6.1-dev.6.g4adc5c3e → 0.6.1
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/LICENSE.txt +30 -0
- package/README.md +104 -171
- package/THIRD_PARTY_NOTICES.md +34 -0
- package/bin/install.js +28 -10
- package/dist/code-BFMQnmu9.js +147 -0
- package/dist/codegen/gen-code-highlight-theme.d.ts +1 -0
- package/dist/components/code/code.d.ts +5 -4
- package/dist/components/stack/stack.d.ts +1 -1
- package/dist/components/toast/index.d.ts +2 -0
- package/dist/components/toast/toast.d.ts +200 -0
- package/dist/components/toast/toast.meta.d.ts +2 -0
- package/dist/components/typo/typo.d.ts +23 -22
- package/dist/icons/icon-config.d.ts +12 -0
- package/dist/{icons-wBmF0U2x.js → icons-Cy1HAosO.js} +1 -1
- package/dist/icons.js +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1278 -1069
- package/dist/integrations/code-highlight/highlighter.d.ts +24 -0
- package/dist/integrations/code-highlight.js +80 -47
- package/dist/integrations/image-display-options.js +2 -2
- package/dist/provider/web-ui-provider.d.ts +3 -3
- package/dist/style.css +1 -1
- package/dist/{tabs-CMKvMF4E.js → tabs-DIe1Utiy.js} +2 -0
- package/docs/assets/imfusion-banner.svg +16 -0
- package/package.json +15 -8
- package/src/docgen/doc.gen.json +515 -1
- package/src/llms/install-templates/AGENTS.md +15 -18
- package/src/llms/llms.gen.txt +39 -33
- package/src/llms/skills/imf-web-ui/SKILL.md +30 -39
- package/src/llms/skills/imf-web-ui-audit/SKILL.md +50 -102
- package/src/llms/skills/imf-web-ui-components/SKILL.md +47 -104
- package/src/llms/skills/imf-web-ui-conventions/SKILL.md +44 -52
- package/src/llms/skills/imf-web-ui-conventions/templates/AUDIT_CHECKLIST.md +1 -0
- package/src/llms/skills/imf-web-ui-conventions/topics/agent-tooling.md +40 -62
- package/src/llms/skills/imf-web-ui-conventions/topics/assets.md +11 -12
- package/src/llms/skills/imf-web-ui-conventions/topics/authentication.md +31 -46
- package/src/llms/skills/imf-web-ui-conventions/topics/class-names.md +18 -23
- package/src/llms/skills/imf-web-ui-conventions/topics/components.md +20 -69
- package/src/llms/skills/imf-web-ui-conventions/topics/data.md +50 -146
- package/src/llms/skills/imf-web-ui-conventions/topics/docs-structure.md +17 -23
- package/src/llms/skills/imf-web-ui-conventions/topics/git.md +15 -20
- package/src/llms/skills/imf-web-ui-conventions/topics/library-boundary.md +28 -19
- package/src/llms/skills/imf-web-ui-conventions/topics/library-setup.md +20 -16
- package/src/llms/skills/imf-web-ui-conventions/topics/npm-project.md +28 -42
- package/src/llms/skills/imf-web-ui-conventions/topics/project-structure.md +28 -30
- package/src/llms/skills/imf-web-ui-conventions/topics/react.md +28 -74
- package/src/llms/skills/imf-web-ui-conventions/topics/styling.md +65 -62
- package/src/llms/skills/imf-web-ui-conventions/topics/testing.md +12 -14
- package/src/llms/skills/imf-web-ui-conventions/topics/tokens.md +9 -4
- package/src/llms/skills/imf-web-ui-conventions/topics/tooling.md +40 -68
- package/src/llms/skills/imf-web-ui-conventions/topics/typescript.md +26 -50
- package/src/llms/skills/imf-web-ui-conventions/topics/validation.md +19 -25
- package/src/llms/skills/imf-web-ui-setup/SKILL.md +45 -64
- package/src/llms/skills/imf-web-ui-update/SKILL.md +48 -114
- package/src/llms/skills/imf-web-ui-ux/SKILL.md +64 -92
- package/src/llms/skills/imf-web-ui-ux/references/forms.md +16 -36
- package/src/llms/skills/imf-web-ui-ux/references/usability-heuristics.md +14 -27
- package/src/llms/skills/imf-web-ui-ux/references/visual-design.md +22 -38
- package/src/llms/tokens.gen.json +5 -5
- package/bin/install.test.ts +0 -329
- package/dist/code-Blo48PGr.js +0 -136
- package/dist/icons/icon-config-provider.d.ts +0 -8
- package/dist/icons/icon-context.d.ts +0 -4
package/src/docgen/doc.gen.json
CHANGED
|
@@ -533,6 +533,13 @@
|
|
|
533
533
|
"type": "boolean",
|
|
534
534
|
"defaultValue": "false",
|
|
535
535
|
"description": "Show a small copy button on the right, behind a hairline separator."
|
|
536
|
+
},
|
|
537
|
+
{
|
|
538
|
+
"name": "render",
|
|
539
|
+
"required": false,
|
|
540
|
+
"type": "| ReactElement<\n unknown,\n string | JSXElementConstructor<any>\n >\n| ComponentRenderFn<HTMLProps, {}>",
|
|
541
|
+
"defaultValue": null,
|
|
542
|
+
"description": "Allows you to replace the component's HTML element\nwith a different tag, or compose it with another component.\n\nAccepts a `ReactElement` or a function that returns the element to render."
|
|
536
543
|
}
|
|
537
544
|
]
|
|
538
545
|
},
|
|
@@ -553,6 +560,13 @@
|
|
|
553
560
|
"type": "CodeInlineLinkKind",
|
|
554
561
|
"defaultValue": "external",
|
|
555
562
|
"description": "Link target scope. `\"external\"` (default) opens in a new tab with a diagonal `ArrowUpRight` icon; `\"internal\"` stays in the current tab with a horizontal `ArrowRight` icon."
|
|
563
|
+
},
|
|
564
|
+
{
|
|
565
|
+
"name": "render",
|
|
566
|
+
"required": false,
|
|
567
|
+
"type": "| ReactElement<\n unknown,\n string | JSXElementConstructor<any>\n >\n| ComponentRenderFn<HTMLProps, {}>",
|
|
568
|
+
"defaultValue": null,
|
|
569
|
+
"description": "Allows you to replace the component's HTML element\nwith a different tag, or compose it with another component.\n\nAccepts a `ReactElement` or a function that returns the element to render."
|
|
556
570
|
}
|
|
557
571
|
]
|
|
558
572
|
}
|
|
@@ -3799,7 +3813,7 @@
|
|
|
3799
3813
|
{
|
|
3800
3814
|
"name": "gap",
|
|
3801
3815
|
"required": false,
|
|
3802
|
-
"type": "| \"1\"\n| \"2\"\n| \"3\"\n| \"4\"\n| \"5\"\n| \"6\"\n| \"7\"\n| \"8\"\n| \"9\"\n| \"10\"\n| null",
|
|
3816
|
+
"type": "| \"0\"\n| \"1\"\n| \"2\"\n| \"3\"\n| \"4\"\n| \"5\"\n| \"6\"\n| \"7\"\n| \"8\"\n| \"9\"\n| \"10\"\n| null",
|
|
3803
3817
|
"defaultValue": "4",
|
|
3804
3818
|
"description": ""
|
|
3805
3819
|
},
|
|
@@ -4180,6 +4194,394 @@
|
|
|
4180
4194
|
}
|
|
4181
4195
|
]
|
|
4182
4196
|
},
|
|
4197
|
+
"toast": {
|
|
4198
|
+
"root": {
|
|
4199
|
+
"name": "Toast.Root",
|
|
4200
|
+
"description": "Toast.Root — one toast surface. Carries the upstream state as data attributes\n(`data-starting-style`, `data-ending-style`, `data-expanded`, `data-limited`,\n`data-swiping`) which the stylesheet uses for stack and exit motion.",
|
|
4201
|
+
"props": [
|
|
4202
|
+
{
|
|
4203
|
+
"name": "className",
|
|
4204
|
+
"required": false,
|
|
4205
|
+
"type": "string | ((state: ToastRootState) => string)",
|
|
4206
|
+
"defaultValue": null,
|
|
4207
|
+
"description": ""
|
|
4208
|
+
},
|
|
4209
|
+
{
|
|
4210
|
+
"name": "render",
|
|
4211
|
+
"required": false,
|
|
4212
|
+
"type": "| ReactElement<\n unknown,\n string | JSXElementConstructor<any>\n >\n| ComponentRenderFn<HTMLProps, ToastRootState>",
|
|
4213
|
+
"defaultValue": null,
|
|
4214
|
+
"description": ""
|
|
4215
|
+
},
|
|
4216
|
+
{
|
|
4217
|
+
"name": "swipeDirection",
|
|
4218
|
+
"required": false,
|
|
4219
|
+
"type": "| \"up\"\n| \"down\"\n| \"left\"\n| \"right\"\n| (\"up\" | \"down\" | \"left\" | \"right\")[]",
|
|
4220
|
+
"defaultValue": "['down', 'right']",
|
|
4221
|
+
"description": ""
|
|
4222
|
+
},
|
|
4223
|
+
{
|
|
4224
|
+
"name": "toast",
|
|
4225
|
+
"required": true,
|
|
4226
|
+
"type": "ToastRootToastObject<any>",
|
|
4227
|
+
"defaultValue": null,
|
|
4228
|
+
"description": "The toast object from the manager's `toasts` array."
|
|
4229
|
+
},
|
|
4230
|
+
{
|
|
4231
|
+
"name": "variant",
|
|
4232
|
+
"required": false,
|
|
4233
|
+
"type": "| \"neutral\"\n| \"info\"\n| \"success\"\n| \"warning\"\n| \"error\"\n| null",
|
|
4234
|
+
"defaultValue": "neutral",
|
|
4235
|
+
"description": "Semantic treatment for the toast surface."
|
|
4236
|
+
}
|
|
4237
|
+
]
|
|
4238
|
+
},
|
|
4239
|
+
"subComponents": [
|
|
4240
|
+
{
|
|
4241
|
+
"name": "Toast.Action",
|
|
4242
|
+
"description": "Toast.Action — the toast's single affordance, typically an undo. Its behavior\ncomes from `actionProps` on the toast object passed to the manager.",
|
|
4243
|
+
"props": [
|
|
4244
|
+
{
|
|
4245
|
+
"name": "className",
|
|
4246
|
+
"required": false,
|
|
4247
|
+
"type": "string | ((state: ToastActionState) => string)",
|
|
4248
|
+
"defaultValue": null,
|
|
4249
|
+
"description": ""
|
|
4250
|
+
},
|
|
4251
|
+
{
|
|
4252
|
+
"name": "nativeButton",
|
|
4253
|
+
"required": false,
|
|
4254
|
+
"type": "boolean",
|
|
4255
|
+
"defaultValue": "true",
|
|
4256
|
+
"description": ""
|
|
4257
|
+
},
|
|
4258
|
+
{
|
|
4259
|
+
"name": "render",
|
|
4260
|
+
"required": false,
|
|
4261
|
+
"type": "| ReactElement<\n unknown,\n string | JSXElementConstructor<any>\n >\n| ComponentRenderFn<HTMLProps, ToastActionState>",
|
|
4262
|
+
"defaultValue": null,
|
|
4263
|
+
"description": ""
|
|
4264
|
+
}
|
|
4265
|
+
]
|
|
4266
|
+
},
|
|
4267
|
+
{
|
|
4268
|
+
"name": "Toast.Arrow",
|
|
4269
|
+
"description": "Toast.Arrow — pointer joining an anchored toast to its anchor. Receives `data-side` for orientation.",
|
|
4270
|
+
"props": [
|
|
4271
|
+
{
|
|
4272
|
+
"name": "className",
|
|
4273
|
+
"required": false,
|
|
4274
|
+
"type": "string | ((state: ToastArrowState) => string)",
|
|
4275
|
+
"defaultValue": null,
|
|
4276
|
+
"description": ""
|
|
4277
|
+
},
|
|
4278
|
+
{
|
|
4279
|
+
"name": "render",
|
|
4280
|
+
"required": false,
|
|
4281
|
+
"type": "| ReactElement<\n unknown,\n string | JSXElementConstructor<any>\n >\n| ComponentRenderFn<HTMLProps, ToastArrowState>",
|
|
4282
|
+
"defaultValue": null,
|
|
4283
|
+
"description": ""
|
|
4284
|
+
}
|
|
4285
|
+
]
|
|
4286
|
+
},
|
|
4287
|
+
{
|
|
4288
|
+
"name": "Toast.Close",
|
|
4289
|
+
"description": "Toast.Close — dismisses the toast it sits in.",
|
|
4290
|
+
"props": [
|
|
4291
|
+
{
|
|
4292
|
+
"name": "className",
|
|
4293
|
+
"required": false,
|
|
4294
|
+
"type": "string | ((state: ToastCloseState) => string)",
|
|
4295
|
+
"defaultValue": null,
|
|
4296
|
+
"description": ""
|
|
4297
|
+
},
|
|
4298
|
+
{
|
|
4299
|
+
"name": "nativeButton",
|
|
4300
|
+
"required": false,
|
|
4301
|
+
"type": "boolean",
|
|
4302
|
+
"defaultValue": "true",
|
|
4303
|
+
"description": ""
|
|
4304
|
+
},
|
|
4305
|
+
{
|
|
4306
|
+
"name": "render",
|
|
4307
|
+
"required": false,
|
|
4308
|
+
"type": "| ReactElement<\n unknown,\n string | JSXElementConstructor<any>\n >\n| ComponentRenderFn<HTMLProps, ToastCloseState>",
|
|
4309
|
+
"defaultValue": null,
|
|
4310
|
+
"description": ""
|
|
4311
|
+
}
|
|
4312
|
+
]
|
|
4313
|
+
},
|
|
4314
|
+
{
|
|
4315
|
+
"name": "Toast.Content",
|
|
4316
|
+
"description": "Toast.Content — lays out title, description, action, and close. Fades out on\nthe toasts stacked behind the frontmost one via `data-behind`.",
|
|
4317
|
+
"props": [
|
|
4318
|
+
{
|
|
4319
|
+
"name": "className",
|
|
4320
|
+
"required": false,
|
|
4321
|
+
"type": "string | ((state: ToastContentState) => string)",
|
|
4322
|
+
"defaultValue": null,
|
|
4323
|
+
"description": ""
|
|
4324
|
+
},
|
|
4325
|
+
{
|
|
4326
|
+
"name": "render",
|
|
4327
|
+
"required": false,
|
|
4328
|
+
"type": "| ReactElement<\n unknown,\n string | JSXElementConstructor<any>\n >\n| ComponentRenderFn<HTMLProps, ToastContentState>",
|
|
4329
|
+
"defaultValue": null,
|
|
4330
|
+
"description": ""
|
|
4331
|
+
}
|
|
4332
|
+
]
|
|
4333
|
+
},
|
|
4334
|
+
{
|
|
4335
|
+
"name": "Toast.Description",
|
|
4336
|
+
"description": "Toast.Description — supporting copy. Falls back to the toast object's `description` when given no children.",
|
|
4337
|
+
"props": [
|
|
4338
|
+
{
|
|
4339
|
+
"name": "className",
|
|
4340
|
+
"required": false,
|
|
4341
|
+
"type": "| string\n| ((state: ToastDescriptionState) => string)",
|
|
4342
|
+
"defaultValue": null,
|
|
4343
|
+
"description": ""
|
|
4344
|
+
},
|
|
4345
|
+
{
|
|
4346
|
+
"name": "render",
|
|
4347
|
+
"required": false,
|
|
4348
|
+
"type": "| ReactElement<\n unknown,\n string | JSXElementConstructor<any>\n >\n| ComponentRenderFn<HTMLProps, ToastDescriptionState>",
|
|
4349
|
+
"defaultValue": null,
|
|
4350
|
+
"description": ""
|
|
4351
|
+
}
|
|
4352
|
+
]
|
|
4353
|
+
},
|
|
4354
|
+
{
|
|
4355
|
+
"name": "Toast.Portal",
|
|
4356
|
+
"description": "Toast.Portal — moves the viewport out of the page flow so toasts float above the app.",
|
|
4357
|
+
"props": [
|
|
4358
|
+
{
|
|
4359
|
+
"name": "className",
|
|
4360
|
+
"required": false,
|
|
4361
|
+
"type": "string | ((state: any) => string)",
|
|
4362
|
+
"defaultValue": null,
|
|
4363
|
+
"description": ""
|
|
4364
|
+
},
|
|
4365
|
+
{
|
|
4366
|
+
"name": "container",
|
|
4367
|
+
"required": false,
|
|
4368
|
+
"type": "| HTMLElement\n| ShadowRoot\n| RefObject<HTMLElement | ShadowRoot | null>\n| null",
|
|
4369
|
+
"defaultValue": null,
|
|
4370
|
+
"description": ""
|
|
4371
|
+
},
|
|
4372
|
+
{
|
|
4373
|
+
"name": "render",
|
|
4374
|
+
"required": false,
|
|
4375
|
+
"type": "| ReactElement<\n unknown,\n string | JSXElementConstructor<any>\n >\n| ComponentRenderFn<HTMLProps, any>",
|
|
4376
|
+
"defaultValue": null,
|
|
4377
|
+
"description": ""
|
|
4378
|
+
}
|
|
4379
|
+
]
|
|
4380
|
+
},
|
|
4381
|
+
{
|
|
4382
|
+
"name": "Toast.Positioner",
|
|
4383
|
+
"description": "Toast.Positioner — anchors a toast to an element instead of the stack, for\nfeedback that belongs next to the control that caused it. Wrap a `Root` in it\nand the root switches to the compact content-sized surface.",
|
|
4384
|
+
"props": [
|
|
4385
|
+
{
|
|
4386
|
+
"name": "align",
|
|
4387
|
+
"required": false,
|
|
4388
|
+
"type": "Align",
|
|
4389
|
+
"defaultValue": "'center'",
|
|
4390
|
+
"description": ""
|
|
4391
|
+
},
|
|
4392
|
+
{
|
|
4393
|
+
"name": "alignOffset",
|
|
4394
|
+
"required": false,
|
|
4395
|
+
"type": "number | OffsetFunction",
|
|
4396
|
+
"defaultValue": "0",
|
|
4397
|
+
"description": ""
|
|
4398
|
+
},
|
|
4399
|
+
{
|
|
4400
|
+
"name": "anchor",
|
|
4401
|
+
"required": false,
|
|
4402
|
+
"type": "Element | null",
|
|
4403
|
+
"defaultValue": null,
|
|
4404
|
+
"description": ""
|
|
4405
|
+
},
|
|
4406
|
+
{
|
|
4407
|
+
"name": "arrowPadding",
|
|
4408
|
+
"required": false,
|
|
4409
|
+
"type": "number",
|
|
4410
|
+
"defaultValue": "5",
|
|
4411
|
+
"description": ""
|
|
4412
|
+
},
|
|
4413
|
+
{
|
|
4414
|
+
"name": "className",
|
|
4415
|
+
"required": false,
|
|
4416
|
+
"type": "| string\n| ((state: ToastPositionerState) => string)",
|
|
4417
|
+
"defaultValue": null,
|
|
4418
|
+
"description": ""
|
|
4419
|
+
},
|
|
4420
|
+
{
|
|
4421
|
+
"name": "collisionAvoidance",
|
|
4422
|
+
"required": false,
|
|
4423
|
+
"type": "CollisionAvoidance",
|
|
4424
|
+
"defaultValue": null,
|
|
4425
|
+
"description": ""
|
|
4426
|
+
},
|
|
4427
|
+
{
|
|
4428
|
+
"name": "collisionBoundary",
|
|
4429
|
+
"required": false,
|
|
4430
|
+
"type": "Boundary",
|
|
4431
|
+
"defaultValue": "'clipping-ancestors'",
|
|
4432
|
+
"description": ""
|
|
4433
|
+
},
|
|
4434
|
+
{
|
|
4435
|
+
"name": "collisionPadding",
|
|
4436
|
+
"required": false,
|
|
4437
|
+
"type": "Padding",
|
|
4438
|
+
"defaultValue": "5",
|
|
4439
|
+
"description": ""
|
|
4440
|
+
},
|
|
4441
|
+
{
|
|
4442
|
+
"name": "disableAnchorTracking",
|
|
4443
|
+
"required": false,
|
|
4444
|
+
"type": "boolean",
|
|
4445
|
+
"defaultValue": "false",
|
|
4446
|
+
"description": ""
|
|
4447
|
+
},
|
|
4448
|
+
{
|
|
4449
|
+
"name": "positionMethod",
|
|
4450
|
+
"required": false,
|
|
4451
|
+
"type": "\"absolute\" | \"fixed\"",
|
|
4452
|
+
"defaultValue": "'absolute'",
|
|
4453
|
+
"description": ""
|
|
4454
|
+
},
|
|
4455
|
+
{
|
|
4456
|
+
"name": "render",
|
|
4457
|
+
"required": false,
|
|
4458
|
+
"type": "| ReactElement<\n unknown,\n string | JSXElementConstructor<any>\n >\n| ComponentRenderFn<HTMLProps, ToastPositionerState>",
|
|
4459
|
+
"defaultValue": null,
|
|
4460
|
+
"description": ""
|
|
4461
|
+
},
|
|
4462
|
+
{
|
|
4463
|
+
"name": "side",
|
|
4464
|
+
"required": false,
|
|
4465
|
+
"type": "Side",
|
|
4466
|
+
"defaultValue": "'top'",
|
|
4467
|
+
"description": ""
|
|
4468
|
+
},
|
|
4469
|
+
{
|
|
4470
|
+
"name": "sideOffset",
|
|
4471
|
+
"required": false,
|
|
4472
|
+
"type": "number | OffsetFunction",
|
|
4473
|
+
"defaultValue": "0",
|
|
4474
|
+
"description": ""
|
|
4475
|
+
},
|
|
4476
|
+
{
|
|
4477
|
+
"name": "sticky",
|
|
4478
|
+
"required": false,
|
|
4479
|
+
"type": "boolean",
|
|
4480
|
+
"defaultValue": "false",
|
|
4481
|
+
"description": ""
|
|
4482
|
+
},
|
|
4483
|
+
{
|
|
4484
|
+
"name": "toast",
|
|
4485
|
+
"required": true,
|
|
4486
|
+
"type": "ToastObject<any>",
|
|
4487
|
+
"defaultValue": null,
|
|
4488
|
+
"description": "The toast object from the manager's `toasts` array."
|
|
4489
|
+
}
|
|
4490
|
+
]
|
|
4491
|
+
},
|
|
4492
|
+
{
|
|
4493
|
+
"name": "Toast.Provider",
|
|
4494
|
+
"description": "Toast.Provider — owns the toast queue for its subtree. Renders no DOM element.\n\n`WebUIProvider` already mounts one, so most applications never write this\npart. Use it for a scoped queue or to attach an external manager.",
|
|
4495
|
+
"props": [
|
|
4496
|
+
{
|
|
4497
|
+
"name": "limit",
|
|
4498
|
+
"required": false,
|
|
4499
|
+
"type": "number",
|
|
4500
|
+
"defaultValue": "3",
|
|
4501
|
+
"description": ""
|
|
4502
|
+
},
|
|
4503
|
+
{
|
|
4504
|
+
"name": "timeout",
|
|
4505
|
+
"required": false,
|
|
4506
|
+
"type": "number",
|
|
4507
|
+
"defaultValue": "5000",
|
|
4508
|
+
"description": ""
|
|
4509
|
+
},
|
|
4510
|
+
{
|
|
4511
|
+
"name": "toastManager",
|
|
4512
|
+
"required": false,
|
|
4513
|
+
"type": "ToastManager<any>",
|
|
4514
|
+
"defaultValue": null,
|
|
4515
|
+
"description": ""
|
|
4516
|
+
}
|
|
4517
|
+
]
|
|
4518
|
+
},
|
|
4519
|
+
{
|
|
4520
|
+
"name": "Toast.Title",
|
|
4521
|
+
"description": "Toast.Title — the message heading. Falls back to the toast object's `title` when given no children.",
|
|
4522
|
+
"props": [
|
|
4523
|
+
{
|
|
4524
|
+
"name": "className",
|
|
4525
|
+
"required": false,
|
|
4526
|
+
"type": "string | ((state: ToastTitleState) => string)",
|
|
4527
|
+
"defaultValue": null,
|
|
4528
|
+
"description": ""
|
|
4529
|
+
},
|
|
4530
|
+
{
|
|
4531
|
+
"name": "render",
|
|
4532
|
+
"required": false,
|
|
4533
|
+
"type": "| ReactElement<\n unknown,\n string | JSXElementConstructor<any>\n >\n| ComponentRenderFn<HTMLProps, ToastTitleState>",
|
|
4534
|
+
"defaultValue": null,
|
|
4535
|
+
"description": ""
|
|
4536
|
+
}
|
|
4537
|
+
]
|
|
4538
|
+
},
|
|
4539
|
+
{
|
|
4540
|
+
"name": "Toast.Provider",
|
|
4541
|
+
"description": "Toast.createToastManager — creates a manager that lives outside React so\nnon-component code can add toasts. Pass it to a `Toast.Provider` via\n`toastManager`.",
|
|
4542
|
+
"props": []
|
|
4543
|
+
},
|
|
4544
|
+
{
|
|
4545
|
+
"name": "Toast.useToastManager",
|
|
4546
|
+
"description": "Toast.useToastManager — reads the queue and the add/close/update/promise\nmethods from the surrounding provider. Must run inside a provider; the one\n`WebUIProvider` mounts satisfies that for the standard setup.",
|
|
4547
|
+
"props": []
|
|
4548
|
+
},
|
|
4549
|
+
{
|
|
4550
|
+
"name": "Toast.Viewport",
|
|
4551
|
+
"description": "Toast.Viewport — the fixed layer that holds the stack. Hovering or focusing it\nexpands the collapsed toasts; it ignores pointer events except on the toasts\nthemselves so the app underneath stays clickable.",
|
|
4552
|
+
"props": [
|
|
4553
|
+
{
|
|
4554
|
+
"name": "className",
|
|
4555
|
+
"required": false,
|
|
4556
|
+
"type": "string | ((state: ToastViewportState) => string)",
|
|
4557
|
+
"defaultValue": null,
|
|
4558
|
+
"description": ""
|
|
4559
|
+
},
|
|
4560
|
+
{
|
|
4561
|
+
"name": "position",
|
|
4562
|
+
"required": false,
|
|
4563
|
+
"type": "| \"top-left\"\n| \"top-center\"\n| \"top-right\"\n| \"bottom-left\"\n| \"bottom-center\"\n| \"bottom-right\"\n| null",
|
|
4564
|
+
"defaultValue": "bottom-center",
|
|
4565
|
+
"description": "Which edge or corner of the screen the stack anchors to."
|
|
4566
|
+
},
|
|
4567
|
+
{
|
|
4568
|
+
"name": "render",
|
|
4569
|
+
"required": false,
|
|
4570
|
+
"type": "| ReactElement<\n unknown,\n string | JSXElementConstructor<any>\n >\n| ComponentRenderFn<HTMLProps, ToastViewportState>",
|
|
4571
|
+
"defaultValue": null,
|
|
4572
|
+
"description": ""
|
|
4573
|
+
},
|
|
4574
|
+
{
|
|
4575
|
+
"name": "width",
|
|
4576
|
+
"required": false,
|
|
4577
|
+
"type": "\"content\" | \"compact\" | \"default\" | \"wide\" | null",
|
|
4578
|
+
"defaultValue": "default",
|
|
4579
|
+
"description": "Width treatment for the toast stack."
|
|
4580
|
+
}
|
|
4581
|
+
]
|
|
4582
|
+
}
|
|
4583
|
+
]
|
|
4584
|
+
},
|
|
4183
4585
|
"toggle": {
|
|
4184
4586
|
"root": {
|
|
4185
4587
|
"name": "Toggle",
|
|
@@ -4665,6 +5067,13 @@
|
|
|
4665
5067
|
"name": "Typo.Blockquote",
|
|
4666
5068
|
"description": "Typo.Blockquote — pulled quotation.",
|
|
4667
5069
|
"props": [
|
|
5070
|
+
{
|
|
5071
|
+
"name": "render",
|
|
5072
|
+
"required": false,
|
|
5073
|
+
"type": "| ReactElement<\n unknown,\n string | JSXElementConstructor<any>\n >\n| ComponentRenderFn<HTMLProps, {}>",
|
|
5074
|
+
"defaultValue": null,
|
|
5075
|
+
"description": "Allows you to replace the component's HTML element\nwith a different tag, or compose it with another component.\n\nAccepts a `ReactElement` or a function that returns the element to render."
|
|
5076
|
+
},
|
|
4668
5077
|
{
|
|
4669
5078
|
"name": "spacing",
|
|
4670
5079
|
"required": false,
|
|
@@ -4685,6 +5094,13 @@
|
|
|
4685
5094
|
"name": "Typo.Detail",
|
|
4686
5095
|
"description": "Typo.Detail — compact UI text, between Small (12px) and P (16px).",
|
|
4687
5096
|
"props": [
|
|
5097
|
+
{
|
|
5098
|
+
"name": "render",
|
|
5099
|
+
"required": false,
|
|
5100
|
+
"type": "| ReactElement<\n unknown,\n string | JSXElementConstructor<any>\n >\n| ComponentRenderFn<HTMLProps, {}>",
|
|
5101
|
+
"defaultValue": null,
|
|
5102
|
+
"description": "Allows you to replace the component's HTML element\nwith a different tag, or compose it with another component.\n\nAccepts a `ReactElement` or a function that returns the element to render."
|
|
5103
|
+
},
|
|
4688
5104
|
{
|
|
4689
5105
|
"name": "variant",
|
|
4690
5106
|
"required": false,
|
|
@@ -4698,6 +5114,13 @@
|
|
|
4698
5114
|
"name": "Typo.H1",
|
|
4699
5115
|
"description": "Typo.H1 — top-level page heading.",
|
|
4700
5116
|
"props": [
|
|
5117
|
+
{
|
|
5118
|
+
"name": "render",
|
|
5119
|
+
"required": false,
|
|
5120
|
+
"type": "| ReactElement<\n unknown,\n string | JSXElementConstructor<any>\n >\n| ComponentRenderFn<HTMLProps, {}>",
|
|
5121
|
+
"defaultValue": null,
|
|
5122
|
+
"description": "Allows you to replace the component's HTML element\nwith a different tag, or compose it with another component.\n\nAccepts a `ReactElement` or a function that returns the element to render."
|
|
5123
|
+
},
|
|
4701
5124
|
{
|
|
4702
5125
|
"name": "spacing",
|
|
4703
5126
|
"required": false,
|
|
@@ -4718,6 +5141,13 @@
|
|
|
4718
5141
|
"name": "Typo.H2",
|
|
4719
5142
|
"description": "Typo.H2 — section heading.",
|
|
4720
5143
|
"props": [
|
|
5144
|
+
{
|
|
5145
|
+
"name": "render",
|
|
5146
|
+
"required": false,
|
|
5147
|
+
"type": "| ReactElement<\n unknown,\n string | JSXElementConstructor<any>\n >\n| ComponentRenderFn<HTMLProps, {}>",
|
|
5148
|
+
"defaultValue": null,
|
|
5149
|
+
"description": "Allows you to replace the component's HTML element\nwith a different tag, or compose it with another component.\n\nAccepts a `ReactElement` or a function that returns the element to render."
|
|
5150
|
+
},
|
|
4721
5151
|
{
|
|
4722
5152
|
"name": "spacing",
|
|
4723
5153
|
"required": false,
|
|
@@ -4738,6 +5168,13 @@
|
|
|
4738
5168
|
"name": "Typo.H3",
|
|
4739
5169
|
"description": "Typo.H3 — sub-section heading.",
|
|
4740
5170
|
"props": [
|
|
5171
|
+
{
|
|
5172
|
+
"name": "render",
|
|
5173
|
+
"required": false,
|
|
5174
|
+
"type": "| ReactElement<\n unknown,\n string | JSXElementConstructor<any>\n >\n| ComponentRenderFn<HTMLProps, {}>",
|
|
5175
|
+
"defaultValue": null,
|
|
5176
|
+
"description": "Allows you to replace the component's HTML element\nwith a different tag, or compose it with another component.\n\nAccepts a `ReactElement` or a function that returns the element to render."
|
|
5177
|
+
},
|
|
4741
5178
|
{
|
|
4742
5179
|
"name": "spacing",
|
|
4743
5180
|
"required": false,
|
|
@@ -4758,6 +5195,13 @@
|
|
|
4758
5195
|
"name": "Typo.H4",
|
|
4759
5196
|
"description": "Typo.H4 — minor heading.",
|
|
4760
5197
|
"props": [
|
|
5198
|
+
{
|
|
5199
|
+
"name": "render",
|
|
5200
|
+
"required": false,
|
|
5201
|
+
"type": "| ReactElement<\n unknown,\n string | JSXElementConstructor<any>\n >\n| ComponentRenderFn<HTMLProps, {}>",
|
|
5202
|
+
"defaultValue": null,
|
|
5203
|
+
"description": "Allows you to replace the component's HTML element\nwith a different tag, or compose it with another component.\n\nAccepts a `ReactElement` or a function that returns the element to render."
|
|
5204
|
+
},
|
|
4761
5205
|
{
|
|
4762
5206
|
"name": "spacing",
|
|
4763
5207
|
"required": false,
|
|
@@ -4778,6 +5222,13 @@
|
|
|
4778
5222
|
"name": "Typo.Highlight",
|
|
4779
5223
|
"description": "Typo.Highlight — inline mark/highlight.",
|
|
4780
5224
|
"props": [
|
|
5225
|
+
{
|
|
5226
|
+
"name": "render",
|
|
5227
|
+
"required": false,
|
|
5228
|
+
"type": "| ReactElement<\n unknown,\n string | JSXElementConstructor<any>\n >\n| ComponentRenderFn<HTMLProps, {}>",
|
|
5229
|
+
"defaultValue": null,
|
|
5230
|
+
"description": "Allows you to replace the component's HTML element\nwith a different tag, or compose it with another component.\n\nAccepts a `ReactElement` or a function that returns the element to render."
|
|
5231
|
+
},
|
|
4781
5232
|
{
|
|
4782
5233
|
"name": "variant",
|
|
4783
5234
|
"required": false,
|
|
@@ -4804,6 +5255,13 @@
|
|
|
4804
5255
|
"type": "boolean",
|
|
4805
5256
|
"defaultValue": "false",
|
|
4806
5257
|
"description": "Show a small copy button on the right, behind a hairline separator."
|
|
5258
|
+
},
|
|
5259
|
+
{
|
|
5260
|
+
"name": "render",
|
|
5261
|
+
"required": false,
|
|
5262
|
+
"type": "| ReactElement<\n unknown,\n string | JSXElementConstructor<any>\n >\n| ComponentRenderFn<HTMLProps, {}>",
|
|
5263
|
+
"defaultValue": null,
|
|
5264
|
+
"description": "Allows you to replace the component's HTML element\nwith a different tag, or compose it with another component.\n\nAccepts a `ReactElement` or a function that returns the element to render."
|
|
4807
5265
|
}
|
|
4808
5266
|
]
|
|
4809
5267
|
},
|
|
@@ -4811,6 +5269,13 @@
|
|
|
4811
5269
|
"name": "Typo.Lead",
|
|
4812
5270
|
"description": "Typo.Lead — emphasised intro paragraph.",
|
|
4813
5271
|
"props": [
|
|
5272
|
+
{
|
|
5273
|
+
"name": "render",
|
|
5274
|
+
"required": false,
|
|
5275
|
+
"type": "| ReactElement<\n unknown,\n string | JSXElementConstructor<any>\n >\n| ComponentRenderFn<HTMLProps, {}>",
|
|
5276
|
+
"defaultValue": null,
|
|
5277
|
+
"description": "Allows you to replace the component's HTML element\nwith a different tag, or compose it with another component.\n\nAccepts a `ReactElement` or a function that returns the element to render."
|
|
5278
|
+
},
|
|
4814
5279
|
{
|
|
4815
5280
|
"name": "spacing",
|
|
4816
5281
|
"required": false,
|
|
@@ -4838,6 +5303,13 @@
|
|
|
4838
5303
|
"defaultValue": "external",
|
|
4839
5304
|
"description": "Link target scope. `\"external\"` (default) opens in a new tab with a diagonal `ArrowUpRight` icon; `\"internal\"` stays in the current tab with a horizontal `ArrowRight` icon."
|
|
4840
5305
|
},
|
|
5306
|
+
{
|
|
5307
|
+
"name": "render",
|
|
5308
|
+
"required": false,
|
|
5309
|
+
"type": "| ReactElement<\n unknown,\n string | JSXElementConstructor<any>\n >\n| ComponentRenderFn<HTMLProps, {}>",
|
|
5310
|
+
"defaultValue": null,
|
|
5311
|
+
"description": "Allows you to replace the component's HTML element\nwith a different tag, or compose it with another component.\n\nAccepts a `ReactElement` or a function that returns the element to render."
|
|
5312
|
+
},
|
|
4841
5313
|
{
|
|
4842
5314
|
"name": "variant",
|
|
4843
5315
|
"required": false,
|
|
@@ -4851,6 +5323,13 @@
|
|
|
4851
5323
|
"name": "Typo.OrderedList",
|
|
4852
5324
|
"description": "Typo.OrderedList — numbered list.",
|
|
4853
5325
|
"props": [
|
|
5326
|
+
{
|
|
5327
|
+
"name": "render",
|
|
5328
|
+
"required": false,
|
|
5329
|
+
"type": "| ReactElement<\n unknown,\n string | JSXElementConstructor<any>\n >\n| ComponentRenderFn<HTMLProps, {}>",
|
|
5330
|
+
"defaultValue": null,
|
|
5331
|
+
"description": "Allows you to replace the component's HTML element\nwith a different tag, or compose it with another component.\n\nAccepts a `ReactElement` or a function that returns the element to render."
|
|
5332
|
+
},
|
|
4854
5333
|
{
|
|
4855
5334
|
"name": "spacing",
|
|
4856
5335
|
"required": false,
|
|
@@ -4871,6 +5350,13 @@
|
|
|
4871
5350
|
"name": "Typo.P",
|
|
4872
5351
|
"description": "Typo.P — body paragraph.",
|
|
4873
5352
|
"props": [
|
|
5353
|
+
{
|
|
5354
|
+
"name": "render",
|
|
5355
|
+
"required": false,
|
|
5356
|
+
"type": "| ReactElement<\n unknown,\n string | JSXElementConstructor<any>\n >\n| ComponentRenderFn<HTMLProps, {}>",
|
|
5357
|
+
"defaultValue": null,
|
|
5358
|
+
"description": "Allows you to replace the component's HTML element\nwith a different tag, or compose it with another component.\n\nAccepts a `ReactElement` or a function that returns the element to render."
|
|
5359
|
+
},
|
|
4874
5360
|
{
|
|
4875
5361
|
"name": "spacing",
|
|
4876
5362
|
"required": false,
|
|
@@ -4891,6 +5377,13 @@
|
|
|
4891
5377
|
"name": "Typo.Small",
|
|
4892
5378
|
"description": "Typo.Small — fine print.",
|
|
4893
5379
|
"props": [
|
|
5380
|
+
{
|
|
5381
|
+
"name": "render",
|
|
5382
|
+
"required": false,
|
|
5383
|
+
"type": "| ReactElement<\n unknown,\n string | JSXElementConstructor<any>\n >\n| ComponentRenderFn<HTMLProps, {}>",
|
|
5384
|
+
"defaultValue": null,
|
|
5385
|
+
"description": "Allows you to replace the component's HTML element\nwith a different tag, or compose it with another component.\n\nAccepts a `ReactElement` or a function that returns the element to render."
|
|
5386
|
+
},
|
|
4894
5387
|
{
|
|
4895
5388
|
"name": "variant",
|
|
4896
5389
|
"required": false,
|
|
@@ -4904,6 +5397,13 @@
|
|
|
4904
5397
|
"name": "Typo.UnorderedList",
|
|
4905
5398
|
"description": "Typo.UnorderedList — bulleted list.",
|
|
4906
5399
|
"props": [
|
|
5400
|
+
{
|
|
5401
|
+
"name": "render",
|
|
5402
|
+
"required": false,
|
|
5403
|
+
"type": "| ReactElement<\n unknown,\n string | JSXElementConstructor<any>\n >\n| ComponentRenderFn<HTMLProps, {}>",
|
|
5404
|
+
"defaultValue": null,
|
|
5405
|
+
"description": "Allows you to replace the component's HTML element\nwith a different tag, or compose it with another component.\n\nAccepts a `ReactElement` or a function that returns the element to render."
|
|
5406
|
+
},
|
|
4907
5407
|
{
|
|
4908
5408
|
"name": "spacing",
|
|
4909
5409
|
"required": false,
|
|
@@ -4980,6 +5480,13 @@
|
|
|
4980
5480
|
"type": "SupportedLanguage",
|
|
4981
5481
|
"defaultValue": null,
|
|
4982
5482
|
"description": ""
|
|
5483
|
+
},
|
|
5484
|
+
{
|
|
5485
|
+
"name": "render",
|
|
5486
|
+
"required": false,
|
|
5487
|
+
"type": "| ReactElement<\n unknown,\n string | JSXElementConstructor<any>\n >\n| ComponentRenderFn<HTMLProps, {}>",
|
|
5488
|
+
"defaultValue": null,
|
|
5489
|
+
"description": "Allows you to replace the component's HTML element\nwith a different tag, or compose it with another component.\n\nAccepts a `ReactElement` or a function that returns the element to render."
|
|
4983
5490
|
}
|
|
4984
5491
|
]
|
|
4985
5492
|
},
|
|
@@ -5000,6 +5507,13 @@
|
|
|
5000
5507
|
"type": "CodeInlineLinkKind",
|
|
5001
5508
|
"defaultValue": "external",
|
|
5002
5509
|
"description": "Link target scope. `\"external\"` (default) opens in a new tab with a diagonal `ArrowUpRight` icon; `\"internal\"` stays in the current tab with a horizontal `ArrowRight` icon."
|
|
5510
|
+
},
|
|
5511
|
+
{
|
|
5512
|
+
"name": "render",
|
|
5513
|
+
"required": false,
|
|
5514
|
+
"type": "| ReactElement<\n unknown,\n string | JSXElementConstructor<any>\n >\n| ComponentRenderFn<HTMLProps, {}>",
|
|
5515
|
+
"defaultValue": null,
|
|
5516
|
+
"description": "Allows you to replace the component's HTML element\nwith a different tag, or compose it with another component.\n\nAccepts a `ReactElement` or a function that returns the element to render."
|
|
5003
5517
|
}
|
|
5004
5518
|
]
|
|
5005
5519
|
}
|