@epam/ai-dial-ui-kit 0.10.0-dev.8 → 0.10.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/dist/JsonEditor-CVewYMqi.js +111 -0
- package/dist/JsonEditor-D9i1Icn9.cjs +1 -0
- package/dist/MarkdownEditor-DN2TOpyj.js +36 -0
- package/dist/MarkdownEditor-Df9W4VL7.cjs +1 -0
- package/dist/components-manifest.json +368 -59
- package/dist/dial-ui-kit.cjs.js +1 -71
- package/dist/dial-ui-kit.es.js +126 -60556
- package/dist/editor-Ba3vCFHk.cjs +1 -0
- package/dist/editor-Cu1dRT39.js +4 -0
- package/dist/index-AS4M_ATi.js +61363 -0
- package/dist/index-BwReoFLu.cjs +71 -0
- package/dist/index.css +2 -2
- package/dist/mcp-server.cjs +9 -0
- package/dist/src/components/Alert/Alert.d.ts +8 -6
- package/dist/src/components/Alert/constants.d.ts +1 -1
- package/dist/src/components/Button/ButtonWrappers.d.ts +15 -0
- package/dist/src/components/Dropdown/Dropdown.d.ts +0 -47
- package/dist/src/components/Dropdown/DropdownSubMenuItem.d.ts +8 -0
- package/dist/src/components/DropdownIcon/DropdownIcon.d.ts +38 -0
- package/dist/src/components/FabButton/FabButton.d.ts +27 -0
- package/dist/src/components/FileManager/FileManager.d.ts +0 -4
- package/dist/src/components/FileManager/FileManagerContext.d.ts +6 -2
- package/dist/src/components/FileManager/FileManagerTooltip.d.ts +3 -2
- package/dist/src/components/FileManager/components/FileManagerItemName/FileManagerItemName.d.ts +3 -0
- package/dist/src/components/FileManager/components/FileManagerToolbar/DialFileManagerToolbar.d.ts +2 -2
- package/dist/src/components/FileManager/components/FoldersTree/FoldersTree.d.ts +8 -0
- package/dist/src/components/FileManager/components/FoldersTree/constants.d.ts +1 -0
- package/dist/src/components/FileManager/constants.d.ts +1 -0
- package/dist/src/components/FileManager/hooks/use-file-manager-columns.d.ts +1 -0
- package/dist/src/components/FileManager/hooks/use-folder-creation.d.ts +8 -1
- package/dist/src/components/FileManager/hooks/use-grid-context-menu.d.ts +3 -3
- package/dist/src/components/FileManager/hooks/use-trigger-view-create-folder.d.ts +26 -0
- package/dist/src/components/FileManager/utils.d.ts +7 -1
- package/dist/src/components/FormItem/constants.d.ts +1 -1
- package/dist/src/components/MarkdownEditor/MarkdownEditor.d.ts +4 -2
- package/dist/src/components/Pagination/Pagination.d.ts +8 -0
- package/dist/src/components/Pagination/utils.d.ts +5 -0
- package/dist/src/components/ProgressBar/ProgressBar.d.ts +13 -0
- package/dist/src/components/SchemaRenderer/components/SchemaObjectEditor.d.ts +1 -1
- package/dist/src/components/SchemaRenderer/types.d.ts +2 -0
- package/dist/src/components/Select/SelectSubMenuItem.d.ts +8 -0
- package/dist/src/components/Select/constants.d.ts +1 -0
- package/dist/src/components/Spinner/Spinner.d.ts +8 -0
- package/dist/src/hooks/use-editable-item.d.ts +5 -1
- package/dist/src/index.d.ts +14 -1
- package/dist/src/mcp/types.d.ts +7 -0
- package/dist/src/models/dropdown.d.ts +1 -0
- package/dist/src/models/select.d.ts +1 -0
- package/dist/src/types/alert.d.ts +2 -1
- package/dist/src/types/file-manager.d.ts +9 -0
- package/dist/src/utils/mobile.d.ts +2 -2
- package/dist/src/utils/sub-menu-floating.d.ts +51 -0
- package/package.json +5 -5
- /package/dist/{.cursor/hooks/post-write-verify.d.ts → src/components/Pagination/tests/utils.spec.d.ts} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.10.0
|
|
3
|
-
"generatedAt": "2026-05-
|
|
2
|
+
"version": "0.10.0",
|
|
3
|
+
"generatedAt": "2026-05-25T19:48:43.159Z",
|
|
4
4
|
"kit": {
|
|
5
5
|
"name": "@epam/ai-dial-ui-kit",
|
|
6
6
|
"description": "A modern UI kit for building AI DIAL interfaces with React",
|
|
@@ -109,7 +109,7 @@
|
|
|
109
109
|
},
|
|
110
110
|
{
|
|
111
111
|
"name": "DialAlert",
|
|
112
|
-
"category": "
|
|
112
|
+
"category": "Elements",
|
|
113
113
|
"description": "A contextual feedback component for displaying important messages.\naliases: Notification|StatusBanner\n\nRenders a colored container with an icon, message text, and an optional\nclose button.",
|
|
114
114
|
"props": [
|
|
115
115
|
{
|
|
@@ -119,6 +119,12 @@
|
|
|
119
119
|
"defaultValue": "AlertVariant.Info",
|
|
120
120
|
"description": "Defines the visual style and icon of the alert"
|
|
121
121
|
},
|
|
122
|
+
{
|
|
123
|
+
"name": "title",
|
|
124
|
+
"type": "ReactNode",
|
|
125
|
+
"required": false,
|
|
126
|
+
"description": "Optional heading displayed above the message in semibold"
|
|
127
|
+
},
|
|
122
128
|
{
|
|
123
129
|
"name": "message",
|
|
124
130
|
"type": "ReactNode",
|
|
@@ -154,7 +160,7 @@
|
|
|
154
160
|
}
|
|
155
161
|
],
|
|
156
162
|
"examples": [
|
|
157
|
-
"<DialAlert\n variant={AlertVariant.Info}\n message=\"This is an info alert.\"\n/>\n\n<DialAlert\n variant={AlertVariant.Success}\n message=\"Changes saved successfully.\"\n/>\n\n<DialAlert\n variant={AlertVariant.Error}\n closable\n message=\"Something went wrong.\"\n onClose={(e) => console.log('closed', e)}\n/>\n\n<DialAlert\n variant={AlertVariant.
|
|
163
|
+
"<DialAlert\n variant={AlertVariant.Info}\n message=\"This is an info alert.\"\n/>\n\n<DialAlert\n variant={AlertVariant.Success}\n title=\"Saved\"\n message=\"Changes saved successfully.\"\n/>\n\n<DialAlert\n variant={AlertVariant.Error}\n closable\n message=\"Something went wrong.\"\n onClose={(e) => console.log('closed', e)}\n/>\n\n<DialAlert\n variant={AlertVariant.Loading}\n title=\"Processing\"\n message=\"Please wait...\"\n/>"
|
|
158
164
|
],
|
|
159
165
|
"sourceFile": "components/Alert/Alert.tsx"
|
|
160
166
|
},
|
|
@@ -202,6 +208,104 @@
|
|
|
202
208
|
],
|
|
203
209
|
"sourceFile": "components/Loader/Loader.tsx"
|
|
204
210
|
},
|
|
211
|
+
{
|
|
212
|
+
"name": "DialSpinner",
|
|
213
|
+
"category": "Status",
|
|
214
|
+
"description": "",
|
|
215
|
+
"props": [
|
|
216
|
+
{
|
|
217
|
+
"name": "size",
|
|
218
|
+
"type": "number",
|
|
219
|
+
"required": false,
|
|
220
|
+
"defaultValue": "24"
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
"name": "className",
|
|
224
|
+
"type": "string",
|
|
225
|
+
"required": false
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
"name": "fullWidth",
|
|
229
|
+
"type": "boolean",
|
|
230
|
+
"required": false,
|
|
231
|
+
"defaultValue": "false"
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
"name": "ariaLabel",
|
|
235
|
+
"type": "string",
|
|
236
|
+
"required": false,
|
|
237
|
+
"defaultValue": "'Loading'"
|
|
238
|
+
}
|
|
239
|
+
],
|
|
240
|
+
"examples": [],
|
|
241
|
+
"sourceFile": "components/Spinner/Spinner.tsx"
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
"name": "DialProgressBar",
|
|
245
|
+
"category": "Status",
|
|
246
|
+
"description": "",
|
|
247
|
+
"props": [
|
|
248
|
+
{
|
|
249
|
+
"name": "value",
|
|
250
|
+
"type": "number",
|
|
251
|
+
"required": true
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
"name": "max",
|
|
255
|
+
"type": "number",
|
|
256
|
+
"required": false,
|
|
257
|
+
"defaultValue": "100"
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
"name": "size",
|
|
261
|
+
"type": "DialProgressBarSize",
|
|
262
|
+
"required": false,
|
|
263
|
+
"defaultValue": "DialProgressBarSize.Medium"
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
"name": "className",
|
|
267
|
+
"type": "string",
|
|
268
|
+
"required": false
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
"name": "ariaLabel",
|
|
272
|
+
"type": "string",
|
|
273
|
+
"required": false,
|
|
274
|
+
"defaultValue": "'Progress'"
|
|
275
|
+
}
|
|
276
|
+
],
|
|
277
|
+
"examples": [],
|
|
278
|
+
"sourceFile": "components/ProgressBar/ProgressBar.tsx"
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
"name": "DialPagination",
|
|
282
|
+
"category": "Navigation",
|
|
283
|
+
"description": "",
|
|
284
|
+
"props": [
|
|
285
|
+
{
|
|
286
|
+
"name": "page",
|
|
287
|
+
"type": "number",
|
|
288
|
+
"required": true
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
"name": "totalPages",
|
|
292
|
+
"type": "number",
|
|
293
|
+
"required": true
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
"name": "onPageChange",
|
|
297
|
+
"type": "(page: number) => void",
|
|
298
|
+
"required": true
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
"name": "className",
|
|
302
|
+
"type": "string",
|
|
303
|
+
"required": false
|
|
304
|
+
}
|
|
305
|
+
],
|
|
306
|
+
"examples": [],
|
|
307
|
+
"sourceFile": "components/Pagination/Pagination.tsx"
|
|
308
|
+
},
|
|
205
309
|
{
|
|
206
310
|
"name": "DialCheckbox",
|
|
207
311
|
"category": "Form",
|
|
@@ -1771,6 +1875,23 @@
|
|
|
1771
1875
|
],
|
|
1772
1876
|
"sourceFile": "components/Button/ButtonWrappers.tsx"
|
|
1773
1877
|
},
|
|
1878
|
+
{
|
|
1879
|
+
"name": "DialRoundedButton",
|
|
1880
|
+
"category": "Elements/Buttons",
|
|
1881
|
+
"description": "A pill-shaped neutral button with an optional selected state.",
|
|
1882
|
+
"props": [
|
|
1883
|
+
{
|
|
1884
|
+
"name": "selected",
|
|
1885
|
+
"type": "boolean",
|
|
1886
|
+
"required": false,
|
|
1887
|
+
"description": "Applies accent-primary tint and border when true"
|
|
1888
|
+
}
|
|
1889
|
+
],
|
|
1890
|
+
"examples": [
|
|
1891
|
+
"<DialRoundedButton label=\"Tag\" selected={isActive} onClick={handleClick} />"
|
|
1892
|
+
],
|
|
1893
|
+
"sourceFile": "components/Button/ButtonWrappers.tsx"
|
|
1894
|
+
},
|
|
1774
1895
|
{
|
|
1775
1896
|
"name": "DialErrorIconButton",
|
|
1776
1897
|
"category": "Elements/Buttons",
|
|
@@ -1900,6 +2021,29 @@
|
|
|
1900
2021
|
],
|
|
1901
2022
|
"sourceFile": "components/RemoveButton/RemoveButton.tsx"
|
|
1902
2023
|
},
|
|
2024
|
+
{
|
|
2025
|
+
"name": "DialFabButton",
|
|
2026
|
+
"category": "Elements/Buttons",
|
|
2027
|
+
"description": "A Floating Action Button (FAB) component — circular icon button for primary actions.\naliases: FloatingActionButton|FabButton|CircularButton",
|
|
2028
|
+
"props": [
|
|
2029
|
+
{
|
|
2030
|
+
"name": "icon",
|
|
2031
|
+
"type": "ReactNode",
|
|
2032
|
+
"required": false,
|
|
2033
|
+
"description": "Icon to display inside the button"
|
|
2034
|
+
},
|
|
2035
|
+
{
|
|
2036
|
+
"name": "tooltipProps",
|
|
2037
|
+
"type": "TooltipProps",
|
|
2038
|
+
"required": false,
|
|
2039
|
+
"description": "Optional tooltip configuration"
|
|
2040
|
+
}
|
|
2041
|
+
],
|
|
2042
|
+
"examples": [
|
|
2043
|
+
"<DialFabButton\n icon={<IconArrowNarrowDown size={24} stroke={1.5} />}\n onClick={handleClick}\n aria-label=\"Scroll to bottom\"\n/>"
|
|
2044
|
+
],
|
|
2045
|
+
"sourceFile": "components/FabButton/FabButton.tsx"
|
|
2046
|
+
},
|
|
1903
2047
|
{
|
|
1904
2048
|
"name": "DialTextarea",
|
|
1905
2049
|
"category": "Elements",
|
|
@@ -3016,133 +3160,112 @@
|
|
|
3016
3160
|
{
|
|
3017
3161
|
"name": "DialDropdown",
|
|
3018
3162
|
"category": "Dropdown",
|
|
3019
|
-
"description": "
|
|
3163
|
+
"description": "",
|
|
3020
3164
|
"props": [
|
|
3021
3165
|
{
|
|
3022
3166
|
"name": "children",
|
|
3023
3167
|
"type": "ReactNode",
|
|
3024
|
-
"required": true
|
|
3025
|
-
"description": "Trigger element(s) to anchor and open the menu"
|
|
3168
|
+
"required": true
|
|
3026
3169
|
},
|
|
3027
3170
|
{
|
|
3028
3171
|
"name": "menu",
|
|
3029
3172
|
"type": "DropdownMenuProps",
|
|
3030
|
-
"required": false
|
|
3031
|
-
"description": "Items-based menu definition"
|
|
3173
|
+
"required": false
|
|
3032
3174
|
},
|
|
3033
3175
|
{
|
|
3034
3176
|
"name": "renderOverlay",
|
|
3035
3177
|
"type": "() => ReactNode",
|
|
3036
|
-
"required": false
|
|
3037
|
-
"description": "Render function for fully custom overlay content (ignored when `menu` is provided)"
|
|
3178
|
+
"required": false
|
|
3038
3179
|
},
|
|
3039
3180
|
{
|
|
3040
3181
|
"name": "trigger",
|
|
3041
3182
|
"type": "DropdownTrigger[]",
|
|
3042
3183
|
"required": false,
|
|
3043
|
-
"defaultValue": "[DropdownTrigger.Click]"
|
|
3044
|
-
"description": "Interactions that open the menu"
|
|
3184
|
+
"defaultValue": "[DropdownTrigger.Click]"
|
|
3045
3185
|
},
|
|
3046
3186
|
{
|
|
3047
3187
|
"name": "placement",
|
|
3048
3188
|
"type": "Placement",
|
|
3049
|
-
"required": false
|
|
3050
|
-
"description": "Floating UI placement string; when omitted, auto placement is used"
|
|
3189
|
+
"required": false
|
|
3051
3190
|
},
|
|
3052
3191
|
{
|
|
3053
3192
|
"name": "allowedPlacements",
|
|
3054
3193
|
"type": "Placement[]",
|
|
3055
|
-
"required": false
|
|
3056
|
-
"description": "Restricts the allowed placements"
|
|
3194
|
+
"required": false
|
|
3057
3195
|
},
|
|
3058
3196
|
{
|
|
3059
3197
|
"name": "disabled",
|
|
3060
3198
|
"type": "boolean",
|
|
3061
3199
|
"required": false,
|
|
3062
|
-
"defaultValue": "false"
|
|
3063
|
-
"description": "Disables interaction and prevents opening"
|
|
3200
|
+
"defaultValue": "false"
|
|
3064
3201
|
},
|
|
3065
3202
|
{
|
|
3066
3203
|
"name": "open",
|
|
3067
3204
|
"type": "boolean",
|
|
3068
|
-
"required": false
|
|
3069
|
-
"description": "Controlled open state (when provided, `defaultOpen` is ignored)"
|
|
3205
|
+
"required": false
|
|
3070
3206
|
},
|
|
3071
3207
|
{
|
|
3072
3208
|
"name": "defaultOpen",
|
|
3073
3209
|
"type": "boolean",
|
|
3074
3210
|
"required": false,
|
|
3075
|
-
"defaultValue": "false"
|
|
3076
|
-
"description": "Initial open state in uncontrolled mode"
|
|
3211
|
+
"defaultValue": "false"
|
|
3077
3212
|
},
|
|
3078
3213
|
{
|
|
3079
3214
|
"name": "onOpenChange",
|
|
3080
3215
|
"type": "(open: boolean) => void",
|
|
3081
|
-
"required": false
|
|
3082
|
-
"description": "Fired whenever the open state changes"
|
|
3216
|
+
"required": false
|
|
3083
3217
|
},
|
|
3084
3218
|
{
|
|
3085
3219
|
"name": "closable",
|
|
3086
3220
|
"type": "boolean",
|
|
3087
3221
|
"required": false,
|
|
3088
|
-
"defaultValue": "false"
|
|
3089
|
-
"description": "Whether the overlay shows an internal close button"
|
|
3222
|
+
"defaultValue": "false"
|
|
3090
3223
|
},
|
|
3091
3224
|
{
|
|
3092
3225
|
"name": "onClose",
|
|
3093
3226
|
"type": "(e: MouseEvent<HTMLButtonElement>) => void",
|
|
3094
|
-
"required": false
|
|
3095
|
-
"description": "Fired when the close button inside the overlay is clicked"
|
|
3227
|
+
"required": false
|
|
3096
3228
|
},
|
|
3097
3229
|
{
|
|
3098
3230
|
"name": "className",
|
|
3099
3231
|
"type": "string",
|
|
3100
|
-
"required": false
|
|
3101
|
-
"description": "Additional CSS classes applied to the trigger wrapper"
|
|
3232
|
+
"required": false
|
|
3102
3233
|
},
|
|
3103
3234
|
{
|
|
3104
3235
|
"name": "listClassName",
|
|
3105
3236
|
"type": "string",
|
|
3106
|
-
"required": false
|
|
3107
|
-
"description": "Additional CSS classes applied to the floating overlay"
|
|
3237
|
+
"required": false
|
|
3108
3238
|
},
|
|
3109
3239
|
{
|
|
3110
3240
|
"name": "outsidePressIgnoreRef",
|
|
3111
3241
|
"type": "RefObject<HTMLElement | null>",
|
|
3112
|
-
"required": false
|
|
3113
|
-
"description": "Ref to an element that should not trigger outside press behavior"
|
|
3242
|
+
"required": false
|
|
3114
3243
|
},
|
|
3115
3244
|
{
|
|
3116
3245
|
"name": "outsideClosable",
|
|
3117
3246
|
"type": "boolean",
|
|
3118
3247
|
"required": false,
|
|
3119
|
-
"defaultValue": "true"
|
|
3120
|
-
"description": "Whether clicks outside the overlay should close it"
|
|
3248
|
+
"defaultValue": "true"
|
|
3121
3249
|
},
|
|
3122
3250
|
{
|
|
3123
3251
|
"name": "anchorToMouse",
|
|
3124
3252
|
"type": "boolean",
|
|
3125
3253
|
"required": false,
|
|
3126
|
-
"defaultValue": "false"
|
|
3127
|
-
"description": "Whether to anchor the dropdown to the mouse position"
|
|
3254
|
+
"defaultValue": "false"
|
|
3128
3255
|
},
|
|
3129
3256
|
{
|
|
3130
3257
|
"name": "matchReferenceWidth",
|
|
3131
3258
|
"type": "boolean",
|
|
3132
3259
|
"required": false,
|
|
3133
|
-
"defaultValue": "true"
|
|
3134
|
-
"description": "Whether to match the reference element's width"
|
|
3260
|
+
"defaultValue": "true"
|
|
3135
3261
|
},
|
|
3136
3262
|
{
|
|
3137
3263
|
"name": "maxDropdownHeight",
|
|
3138
3264
|
"type": "number | null",
|
|
3139
|
-
"required": false
|
|
3140
|
-
"description": "Maximum height of the dropdown menu; when omitted, no limit is applied"
|
|
3265
|
+
"required": false
|
|
3141
3266
|
}
|
|
3142
3267
|
],
|
|
3143
|
-
"examples": [
|
|
3144
|
-
"// Simple items menu\n<DialDropdown menu={{ items: [{ key: 'profile', label: 'Profile' }, { key: 'logout', label: 'Logout' }] }}>\n <button type=\"button\" className=\"px-3 py-2 rounded border\">Open</button>\n</DialDropdown>\n\n// Hover trigger\n<DialDropdown trigger={[DropdownTrigger.Hover]} placement=\"bottom-end\" menu={{ items }}>\n <button type=\"button\" className=\"px-3 py-2 rounded border\">Hover me</button>\n</DialDropdown>\n\n// Custom overlay content\n<DialDropdown closable renderOverlay={() => <div className=\"p-3\">Custom content</div>}>\n <button type=\"button\" className=\"px-3 py-2 rounded border\">Custom</button>\n</DialDropdown>"
|
|
3145
|
-
],
|
|
3268
|
+
"examples": [],
|
|
3146
3269
|
"sourceFile": "components/Dropdown/Dropdown.tsx"
|
|
3147
3270
|
},
|
|
3148
3271
|
{
|
|
@@ -3162,6 +3285,74 @@
|
|
|
3162
3285
|
],
|
|
3163
3286
|
"sourceFile": "components/ButtonDropdown/ButtonDropdown.tsx"
|
|
3164
3287
|
},
|
|
3288
|
+
{
|
|
3289
|
+
"name": "DialDropdownIcon",
|
|
3290
|
+
"category": "Dropdown",
|
|
3291
|
+
"description": "A compact icon trigger with a dropdown menu.\naliases: ModelPicker|IconMenu|AvatarDropdown",
|
|
3292
|
+
"props": [
|
|
3293
|
+
{
|
|
3294
|
+
"name": "menu",
|
|
3295
|
+
"type": "DropdownMenuProps",
|
|
3296
|
+
"required": true,
|
|
3297
|
+
"description": "Dropdown menu definition."
|
|
3298
|
+
},
|
|
3299
|
+
{
|
|
3300
|
+
"name": "icon",
|
|
3301
|
+
"type": "ReactNode",
|
|
3302
|
+
"required": true,
|
|
3303
|
+
"description": "Primary trigger icon."
|
|
3304
|
+
},
|
|
3305
|
+
{
|
|
3306
|
+
"name": "ariaLabel",
|
|
3307
|
+
"type": "string",
|
|
3308
|
+
"required": true,
|
|
3309
|
+
"description": "Accessible name for the trigger button."
|
|
3310
|
+
},
|
|
3311
|
+
{
|
|
3312
|
+
"name": "size",
|
|
3313
|
+
"type": "ElementSize",
|
|
3314
|
+
"required": false,
|
|
3315
|
+
"defaultValue": "ElementSize.Standard",
|
|
3316
|
+
"description": "Trigger size."
|
|
3317
|
+
},
|
|
3318
|
+
{
|
|
3319
|
+
"name": "className",
|
|
3320
|
+
"type": "string",
|
|
3321
|
+
"required": false,
|
|
3322
|
+
"description": "Additional CSS classes applied to the dropdown wrapper."
|
|
3323
|
+
},
|
|
3324
|
+
{
|
|
3325
|
+
"name": "buttonClassName",
|
|
3326
|
+
"type": "string",
|
|
3327
|
+
"required": false,
|
|
3328
|
+
"description": "Additional CSS classes applied to the trigger button."
|
|
3329
|
+
},
|
|
3330
|
+
{
|
|
3331
|
+
"name": "iconClassName",
|
|
3332
|
+
"type": "string",
|
|
3333
|
+
"required": false,
|
|
3334
|
+
"description": "Additional CSS classes applied to the primary icon wrapper."
|
|
3335
|
+
},
|
|
3336
|
+
{
|
|
3337
|
+
"name": "caretIcon",
|
|
3338
|
+
"type": "ReactNode",
|
|
3339
|
+
"required": false,
|
|
3340
|
+
"defaultValue": "<IconChevronDown size={DIAL_ICON_SIZE.SM} />",
|
|
3341
|
+
"description": "Custom caret icon."
|
|
3342
|
+
},
|
|
3343
|
+
{
|
|
3344
|
+
"name": "showCaret",
|
|
3345
|
+
"type": "boolean",
|
|
3346
|
+
"required": false,
|
|
3347
|
+
"defaultValue": "true",
|
|
3348
|
+
"description": "Whether to render the caret."
|
|
3349
|
+
}
|
|
3350
|
+
],
|
|
3351
|
+
"examples": [
|
|
3352
|
+
"<DialDropdownIcon\n ariaLabel=\"Select model\"\n icon={<IconBrandOpenai size={18} />}\n menu={{ items }}\n/>"
|
|
3353
|
+
],
|
|
3354
|
+
"sourceFile": "components/DropdownIcon/DropdownIcon.tsx"
|
|
3355
|
+
},
|
|
3165
3356
|
{
|
|
3166
3357
|
"name": "DialFileManager",
|
|
3167
3358
|
"category": "FileManager",
|
|
@@ -3369,18 +3560,6 @@
|
|
|
3369
3560
|
"required": false,
|
|
3370
3561
|
"description": "Callback fired when files are downloaded"
|
|
3371
3562
|
},
|
|
3372
|
-
{
|
|
3373
|
-
"name": "onAddSibling",
|
|
3374
|
-
"type": "(items: DialFile[]) => void",
|
|
3375
|
-
"required": false,
|
|
3376
|
-
"description": "Callback fired when when a new folder is added as a sibling to the selected folder"
|
|
3377
|
-
},
|
|
3378
|
-
{
|
|
3379
|
-
"name": "onAddChild",
|
|
3380
|
-
"type": "(items: DialFile[]) => void",
|
|
3381
|
-
"required": false,
|
|
3382
|
-
"description": "Callback fired when when a new folder is added as a child to the selected folder"
|
|
3383
|
-
},
|
|
3384
3563
|
{
|
|
3385
3564
|
"name": "onRenameValidate",
|
|
3386
3565
|
"type": "(value: string, item: DialFile) => string | null",
|
|
@@ -3649,6 +3828,120 @@
|
|
|
3649
3828
|
"<DialSchemaRenderer\n schema={mySchema}\n onChange={(v) => console.log(v)}\n onDefaultValues={(defaults) => console.log(defaults)}\n/>"
|
|
3650
3829
|
],
|
|
3651
3830
|
"sourceFile": "components/SchemaRenderer/SchemaRenderer.tsx"
|
|
3831
|
+
},
|
|
3832
|
+
{
|
|
3833
|
+
"name": "DialJsonEditor",
|
|
3834
|
+
"category": "Data Display",
|
|
3835
|
+
"description": "A JSON editor component built on top of Monaco Editor.\nProvides syntax highlighting, validation, and theme support for JSON editing.\n\nLazy-loaded component. This component is not exported directly from the UI kit to avoid errors when using with SSR. Use `LazyDialJsonEditor` and the manifest `lazy` field for dynamic import guidance.",
|
|
3836
|
+
"props": [
|
|
3837
|
+
{
|
|
3838
|
+
"name": "value",
|
|
3839
|
+
"type": "string | undefined",
|
|
3840
|
+
"required": false,
|
|
3841
|
+
"description": "The JSON string value to edit"
|
|
3842
|
+
},
|
|
3843
|
+
{
|
|
3844
|
+
"name": "currentTheme",
|
|
3845
|
+
"type": "string",
|
|
3846
|
+
"required": true,
|
|
3847
|
+
"description": "The theme to apply to the editor"
|
|
3848
|
+
},
|
|
3849
|
+
{
|
|
3850
|
+
"name": "themesConfig",
|
|
3851
|
+
"type": "Record<EditorThemes, editor.IStandaloneThemeData>",
|
|
3852
|
+
"required": false,
|
|
3853
|
+
"defaultValue": "EDITOR_THEMES_CONFIG",
|
|
3854
|
+
"description": "Custom theme configurations"
|
|
3855
|
+
},
|
|
3856
|
+
{
|
|
3857
|
+
"name": "onChange",
|
|
3858
|
+
"type": "(value: string | undefined) => void",
|
|
3859
|
+
"required": true,
|
|
3860
|
+
"description": "Callback fired when the editor content changes"
|
|
3861
|
+
},
|
|
3862
|
+
{
|
|
3863
|
+
"name": "onValidateJSON",
|
|
3864
|
+
"type": "OnValidate",
|
|
3865
|
+
"required": false,
|
|
3866
|
+
"description": "Callback fired when JSON validation occurs"
|
|
3867
|
+
},
|
|
3868
|
+
{
|
|
3869
|
+
"name": "options",
|
|
3870
|
+
"type": "editor.IStandaloneEditorConstructionOptions",
|
|
3871
|
+
"required": false,
|
|
3872
|
+
"description": "Additional Monaco editor options"
|
|
3873
|
+
}
|
|
3874
|
+
],
|
|
3875
|
+
"examples": [],
|
|
3876
|
+
"sourceFile": "components/JsonEditor/JsonEditor.tsx",
|
|
3877
|
+
"lazy": {
|
|
3878
|
+
"loaderExportName": "LazyDialJsonEditor",
|
|
3879
|
+
"packageImport": "@epam/ai-dial-ui-kit",
|
|
3880
|
+
"ssr": false,
|
|
3881
|
+
"nextDynamicExample": "import dynamic from 'next/dynamic';\nimport { LazyDialJsonEditor } from '@epam/ai-dial-ui-kit';\n\nconst DialJsonEditor = dynamic(\n async () => (await LazyDialJsonEditor()).DialJsonEditor,\n { ssr: false },\n);"
|
|
3882
|
+
}
|
|
3883
|
+
},
|
|
3884
|
+
{
|
|
3885
|
+
"name": "DialMarkdownEditor",
|
|
3886
|
+
"category": "Data Display",
|
|
3887
|
+
"description": "A Markdown editor component built on top of\n\nLazy-loaded component. This component is not exported directly from the UI kit to avoid errors when using with SSR. Use `LazyDialMarkdownEditor` and the manifest `lazy` field for dynamic import guidance.",
|
|
3888
|
+
"props": [
|
|
3889
|
+
{
|
|
3890
|
+
"name": "value",
|
|
3891
|
+
"type": "string",
|
|
3892
|
+
"required": false,
|
|
3893
|
+
"description": "The current markdown content"
|
|
3894
|
+
},
|
|
3895
|
+
{
|
|
3896
|
+
"name": "onChange",
|
|
3897
|
+
"type": "(value: string) => void",
|
|
3898
|
+
"required": false,
|
|
3899
|
+
"description": "Callback fired when the editor content changes"
|
|
3900
|
+
},
|
|
3901
|
+
{
|
|
3902
|
+
"name": "height",
|
|
3903
|
+
"type": "number",
|
|
3904
|
+
"required": false,
|
|
3905
|
+
"defaultValue": "300",
|
|
3906
|
+
"description": "Height of the editor in pixels"
|
|
3907
|
+
},
|
|
3908
|
+
{
|
|
3909
|
+
"name": "preview",
|
|
3910
|
+
"type": "PreviewType",
|
|
3911
|
+
"required": false,
|
|
3912
|
+
"defaultValue": "'edit'",
|
|
3913
|
+
"description": "Preview mode ('edit', 'live', 'preview')"
|
|
3914
|
+
},
|
|
3915
|
+
{
|
|
3916
|
+
"name": "theme",
|
|
3917
|
+
"type": "EditorThemes",
|
|
3918
|
+
"required": false,
|
|
3919
|
+
"defaultValue": "EditorThemes.dark",
|
|
3920
|
+
"description": "Theme for the editor ('light' or 'dark')"
|
|
3921
|
+
},
|
|
3922
|
+
{
|
|
3923
|
+
"name": "className",
|
|
3924
|
+
"type": "string",
|
|
3925
|
+
"required": false,
|
|
3926
|
+
"description": "Additional CSS classes for the container"
|
|
3927
|
+
},
|
|
3928
|
+
{
|
|
3929
|
+
"name": "placeholder",
|
|
3930
|
+
"type": "ReactNode",
|
|
3931
|
+
"required": false,
|
|
3932
|
+
"description": "Content to display when the editor is empty"
|
|
3933
|
+
}
|
|
3934
|
+
],
|
|
3935
|
+
"examples": [
|
|
3936
|
+
"<DialMarkdownEditor\nvalue=\"# Hello World\"\nonChange={(value) => console.log(value)}\nheight={400}\ntheme=\"dark\"\n/>"
|
|
3937
|
+
],
|
|
3938
|
+
"sourceFile": "components/MarkdownEditor/MarkdownEditor.tsx",
|
|
3939
|
+
"lazy": {
|
|
3940
|
+
"loaderExportName": "LazyDialMarkdownEditor",
|
|
3941
|
+
"packageImport": "@epam/ai-dial-ui-kit",
|
|
3942
|
+
"ssr": false,
|
|
3943
|
+
"nextDynamicExample": "import dynamic from 'next/dynamic';\nimport { LazyDialMarkdownEditor } from '@epam/ai-dial-ui-kit';\n\nconst DialMarkdownEditor = dynamic(\n async () => (await LazyDialMarkdownEditor()).DialMarkdownEditor,\n { ssr: false },\n);"
|
|
3944
|
+
}
|
|
3652
3945
|
}
|
|
3653
3946
|
],
|
|
3654
3947
|
"types": [
|
|
@@ -3797,6 +4090,10 @@
|
|
|
3797
4090
|
{
|
|
3798
4091
|
"name": "Error",
|
|
3799
4092
|
"value": "'error'"
|
|
4093
|
+
},
|
|
4094
|
+
{
|
|
4095
|
+
"name": "Loading",
|
|
4096
|
+
"value": "'loading'"
|
|
3800
4097
|
}
|
|
3801
4098
|
],
|
|
3802
4099
|
"sourceFile": "types/alert.ts"
|
|
@@ -4382,6 +4679,10 @@
|
|
|
4382
4679
|
{
|
|
4383
4680
|
"name": "icon?",
|
|
4384
4681
|
"value": "ReactNode"
|
|
4682
|
+
},
|
|
4683
|
+
{
|
|
4684
|
+
"name": "children?",
|
|
4685
|
+
"value": "SelectOption[]"
|
|
4385
4686
|
}
|
|
4386
4687
|
],
|
|
4387
4688
|
"sourceFile": "models/select.ts"
|
|
@@ -4448,6 +4749,10 @@
|
|
|
4448
4749
|
{
|
|
4449
4750
|
"name": "onClick?",
|
|
4450
4751
|
"value": "(info: { key: string; domEvent: MouseEvent }) => void"
|
|
4752
|
+
},
|
|
4753
|
+
{
|
|
4754
|
+
"name": "children?",
|
|
4755
|
+
"value": "DropdownItem[]"
|
|
4451
4756
|
}
|
|
4452
4757
|
],
|
|
4453
4758
|
"sourceFile": "models/dropdown.ts"
|
|
@@ -4730,6 +5035,10 @@
|
|
|
4730
5035
|
"name": "description?",
|
|
4731
5036
|
"value": "string"
|
|
4732
5037
|
},
|
|
5038
|
+
{
|
|
5039
|
+
"name": "isHidden?",
|
|
5040
|
+
"value": "boolean"
|
|
5041
|
+
},
|
|
4733
5042
|
{
|
|
4734
5043
|
"name": "isProtected?",
|
|
4735
5044
|
"value": "boolean"
|
|
@@ -4823,7 +5132,7 @@
|
|
|
4823
5132
|
"name": "useEditableItem",
|
|
4824
5133
|
"sourceFile": "hooks/use-editable-item.tsx",
|
|
4825
5134
|
"description": "A React hook that manages the behavior of an inline-editable text input.\nIt provides validation handling, cancel/restore logic, auto-focus behavior,\nkeyboard shortcuts, and outside-click detection.",
|
|
4826
|
-
"signature": "function useEditableItem({\n value: initialValue,\n isEditing,\n restoreOnCancel = true,\n onValidate,\n onSave,\n onCancel,\n}: UseEditableItemOptions): UseEditableItemResult"
|
|
5135
|
+
"signature": "function useEditableItem({\n value: initialValue,\n isEditing,\n isCreating,\n isLoading = false,\n restoreOnCancel = true,\n onValidate,\n onSave,\n onCancel,\n onCreateFolderSave,\n onCreateFolderCancel,\n}: UseEditableItemOptions): UseEditableItemResult"
|
|
4827
5136
|
},
|
|
4828
5137
|
{
|
|
4829
5138
|
"name": "FileManagerProvider",
|