@imfusion/web-ui 0.11.1-dev.57.g3cec18fa → 0.11.1-dev.58.ge2daec34
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 +8 -0
- package/dist/components/dialog/dialog.d.ts +23 -3
- package/dist/index.js +1766 -1738
- package/package.json +1 -1
- package/src/docgen/doc.gen.json +118 -0
package/package.json
CHANGED
package/src/docgen/doc.gen.json
CHANGED
|
@@ -4081,6 +4081,124 @@
|
|
|
4081
4081
|
]
|
|
4082
4082
|
},
|
|
4083
4083
|
"subComponents": [
|
|
4084
|
+
{
|
|
4085
|
+
"name": "Dialog.Alert",
|
|
4086
|
+
"description": "Dialog.Alert — pre-composed confirmation that interrupts the user, announced as an `alertdialog`. Always modal; a click\non the overlay does not close it, Escape does. Like Dialog.Simple, without a header close button. Root props pass\nthrough.",
|
|
4087
|
+
"props": [
|
|
4088
|
+
{
|
|
4089
|
+
"name": "actions",
|
|
4090
|
+
"required": true,
|
|
4091
|
+
"type": "ReactNode",
|
|
4092
|
+
"defaultValue": null,
|
|
4093
|
+
"description": "Buttons of the footer, the only way out. Include a Cancel `Dialog.Close`."
|
|
4094
|
+
},
|
|
4095
|
+
{
|
|
4096
|
+
"name": "actionsRef",
|
|
4097
|
+
"required": false,
|
|
4098
|
+
"type": "RefObject<DialogRootActions | null>",
|
|
4099
|
+
"defaultValue": null,
|
|
4100
|
+
"description": "A ref to imperative actions.\n- `unmount`: Manually unmounts the alert dialog.\nCall this after any externally controlled closing animation finishes.\n- `close`: Closes the alert dialog imperatively when called."
|
|
4101
|
+
},
|
|
4102
|
+
{
|
|
4103
|
+
"name": "children",
|
|
4104
|
+
"required": false,
|
|
4105
|
+
"type": "ReactNode",
|
|
4106
|
+
"defaultValue": null,
|
|
4107
|
+
"description": "Content of the body."
|
|
4108
|
+
},
|
|
4109
|
+
{
|
|
4110
|
+
"name": "defaultOpen",
|
|
4111
|
+
"required": false,
|
|
4112
|
+
"type": "boolean",
|
|
4113
|
+
"defaultValue": "false",
|
|
4114
|
+
"description": "Whether the dialog is initially open.\n\nTo render a controlled dialog, use the `open` prop instead."
|
|
4115
|
+
},
|
|
4116
|
+
{
|
|
4117
|
+
"name": "defaultTriggerId",
|
|
4118
|
+
"required": false,
|
|
4119
|
+
"type": "string | null",
|
|
4120
|
+
"defaultValue": null,
|
|
4121
|
+
"description": "ID of the trigger that the dialog is associated with.\nThis is useful in conjunction with the `defaultOpen` prop to create an initially open dialog."
|
|
4122
|
+
},
|
|
4123
|
+
{
|
|
4124
|
+
"name": "description",
|
|
4125
|
+
"required": false,
|
|
4126
|
+
"type": "ReactNode",
|
|
4127
|
+
"defaultValue": null,
|
|
4128
|
+
"description": "Line of context under the title."
|
|
4129
|
+
},
|
|
4130
|
+
{
|
|
4131
|
+
"name": "eyebrow",
|
|
4132
|
+
"required": false,
|
|
4133
|
+
"type": "ReactNode",
|
|
4134
|
+
"defaultValue": null,
|
|
4135
|
+
"description": "Short uppercase label above the title."
|
|
4136
|
+
},
|
|
4137
|
+
{
|
|
4138
|
+
"name": "handle",
|
|
4139
|
+
"required": false,
|
|
4140
|
+
"type": "AlertDialogHandle<unknown>",
|
|
4141
|
+
"defaultValue": null,
|
|
4142
|
+
"description": "A handle to associate the alert dialog with a trigger.\nIf specified, allows external triggers to control the alert dialog's open state.\nCan be created with the AlertDialog.createHandle() method."
|
|
4143
|
+
},
|
|
4144
|
+
{
|
|
4145
|
+
"name": "onOpenChange",
|
|
4146
|
+
"required": false,
|
|
4147
|
+
"type": "(\n open: boolean,\n eventDetails: AlertDialogRootChangeEventDetails\n) => void",
|
|
4148
|
+
"defaultValue": null,
|
|
4149
|
+
"description": "Event handler called when the alert dialog is opened or closed."
|
|
4150
|
+
},
|
|
4151
|
+
{
|
|
4152
|
+
"name": "onOpenChangeComplete",
|
|
4153
|
+
"required": false,
|
|
4154
|
+
"type": "(open: boolean) => void",
|
|
4155
|
+
"defaultValue": null,
|
|
4156
|
+
"description": "Event handler called after any animations complete when the dialog is opened or closed."
|
|
4157
|
+
},
|
|
4158
|
+
{
|
|
4159
|
+
"name": "open",
|
|
4160
|
+
"required": false,
|
|
4161
|
+
"type": "boolean",
|
|
4162
|
+
"defaultValue": null,
|
|
4163
|
+
"description": "Whether the dialog is currently open."
|
|
4164
|
+
},
|
|
4165
|
+
{
|
|
4166
|
+
"name": "size",
|
|
4167
|
+
"required": false,
|
|
4168
|
+
"type": "\"sm\" | \"md\" | \"lg\" | \"full\"",
|
|
4169
|
+
"defaultValue": "sm",
|
|
4170
|
+
"description": "Width of the window."
|
|
4171
|
+
},
|
|
4172
|
+
{
|
|
4173
|
+
"name": "status",
|
|
4174
|
+
"required": false,
|
|
4175
|
+
"type": "| NonNullable<\n \"info\" | \"positive\" | \"warning\" | \"negative\" | null\n >\n| undefined",
|
|
4176
|
+
"defaultValue": null,
|
|
4177
|
+
"description": "Adds a `Dialog.Status` with this variant at the start of the popup."
|
|
4178
|
+
},
|
|
4179
|
+
{
|
|
4180
|
+
"name": "title",
|
|
4181
|
+
"required": true,
|
|
4182
|
+
"type": "ReactNode",
|
|
4183
|
+
"defaultValue": null,
|
|
4184
|
+
"description": "Heading of the dialog."
|
|
4185
|
+
},
|
|
4186
|
+
{
|
|
4187
|
+
"name": "trigger",
|
|
4188
|
+
"required": false,
|
|
4189
|
+
"type": "ReactElement<\n unknown,\n string | JSXElementConstructor<any>\n>",
|
|
4190
|
+
"defaultValue": null,
|
|
4191
|
+
"description": "Element rendered as the trigger, such as a `Button`. Omit it for a controlled dialog."
|
|
4192
|
+
},
|
|
4193
|
+
{
|
|
4194
|
+
"name": "triggerId",
|
|
4195
|
+
"required": false,
|
|
4196
|
+
"type": "string | null",
|
|
4197
|
+
"defaultValue": null,
|
|
4198
|
+
"description": "ID of the trigger that the dialog is associated with.\nThis is useful in conjunction with the `open` prop to create a controlled dialog.\nThere's no need to specify this prop when the dialog is uncontrolled (that is, when the `open` prop is not set)."
|
|
4199
|
+
}
|
|
4200
|
+
]
|
|
4201
|
+
},
|
|
4084
4202
|
{
|
|
4085
4203
|
"name": "Dialog.Backdrop",
|
|
4086
4204
|
"description": "Dialog.Backdrop — flat dark overlay that dims the page behind the dialog.",
|