@epam/ai-dial-ui-kit 0.6.0-rc.2 → 0.6.0-rc.4

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/README.md CHANGED
@@ -73,9 +73,10 @@ import '@epam/ai-dial-ui-kit/styles.css';
73
73
  function App() {
74
74
  return (
75
75
  <div>
76
- <DialButton
77
- className="dial-primary-button"
78
- onClick={() => alert('Hello AI DIAL!')}
76
+ <DialButton
77
+ label="Click me"
78
+ variant={ButtonVariant.Primary}
79
+ onClick={() => console.log("Next.js + AI DIAL UI Kit!")}
79
80
  />
80
81
  </div>
81
82
  );
@@ -21,9 +21,18 @@ export interface DialButtonProps extends DetailedHTMLProps<ButtonHTMLAttributes<
21
21
  * />
22
22
  * ```
23
23
  *
24
+ * @example
25
+ * ```tsx
26
+ * <DialButton
27
+ * label={<span>Custom <strong>Label</strong></span>}
28
+ * aria-label="Custom Label"
29
+ * onClick={handleClick}
30
+ * />
31
+ * ```
32
+ *
24
33
  * inherits all properties from the `ButtonHTMLAttributes<HTMLButtonElement>`
25
34
  *
26
- * @param [label] - The text content of the button
35
+ * @param [label] - The content of the button. Can be any React node.
27
36
  * @param [variant=ButtonVariant.Primary] - Defines the visual style of the button
28
37
  * @param [textClassName] - Additional CSS classes to apply specifically to the button text
29
38
  * @param [iconAfter] - Icon or element to display after the button text
@@ -24,7 +24,7 @@ export interface DialConfirmationPopupProps extends DialPopupProps {
24
24
  * ```tsx
25
25
  * <ConfirmationModal
26
26
  * open
27
- * title="Delete item?"
27
+ * header="Delete item?"
28
28
  * description="This action cannot be undone."
29
29
  * confirmLabel="Delete"
30
30
  * onClose={() => setOpen(false)}
@@ -32,7 +32,7 @@ export interface DialConfirmationPopupProps extends DialPopupProps {
32
32
  * />
33
33
  * ```
34
34
  *
35
- * @param title - Title content for the header
35
+ * @param header - Title content for the header
36
36
  * @param [description] - Secondary text (ignored when `children` set)
37
37
  * @param [descriptionClassName] - Custom CSS class for the description
38
38
  * @param [open=false] - Controls visibility of the popup
@@ -20,13 +20,13 @@ export interface DialFormPopupProps extends DialPopupProps {
20
20
  * ```tsx
21
21
  * <DialFormPopup
22
22
  * open
23
- * title="Create Model"
23
+ * header="Create Model"
24
24
  * onClose={() => setOpen(false)}
25
25
  * onSubmit={handleSubmit}
26
26
  * />
27
27
  * ```
28
28
  *
29
- * @param title - Title content for the header
29
+ * @param header - Title content for the header
30
30
  * @param [open=false] - Controls visibility of the popup
31
31
  * @param [submitLabel="Submit"] - Label for the primary action button
32
32
  * @param [cancelLabel="Cancel"] - Label for the cancel button
@@ -55,7 +55,7 @@ export interface RadioGroupPopupFieldProps extends Pick<DialFieldLabelProps, 'fi
55
55
  * @param [inputClassName] - Extra classes applied to the collapsed input container
56
56
  * @param emptyValueText - Placeholder text when no value is selected
57
57
  * @param [onClose] - Callback fired when the popup closes
58
- * @param title - Title text shown in the popup header
58
+ * @param header - Title text shown in the popup header
59
59
  * @param [portalId] - Target portal id for rendering the popup
60
60
  * @param onApply - Callback fired when the Apply button is clicked
61
61
  * @param [cancelButtonTitle="Cancel"] - Text for the Cancel button
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epam/ai-dial-ui-kit",
3
- "version": "0.6.0-rc.2",
3
+ "version": "0.6.0-rc.4",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "description": "A modern UI kit for building AI DIAL interfaces with React",