@epam/ai-dial-ui-kit 0.5.0-rc.17 → 0.5.0-rc.19

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.
@@ -2915,15 +2915,16 @@ const hv = {
2915
2915
  iconAfter: a,
2916
2916
  iconBefore: l,
2917
2917
  hideTitleOnMobile: c,
2918
- ariaLabel: d
2918
+ ariaLabel: d,
2919
+ type: u = "button"
2919
2920
  }) => {
2920
- const u = q(
2921
+ const h = q(
2921
2922
  "dial-small-semi",
2922
2923
  a ? "mr-2" : "",
2923
2924
  l ? "ml-2" : "",
2924
2925
  c ? "hidden sm:inline" : "inline",
2925
2926
  o
2926
- ), h = q(
2927
+ ), g = q(
2927
2928
  t && hv[t],
2928
2929
  s,
2929
2930
  "focus-visible:outline outline-offset-0"
@@ -2932,14 +2933,14 @@ const hv = {
2932
2933
  "button",
2933
2934
  {
2934
2935
  ref: i,
2935
- type: "button",
2936
- className: h,
2937
- onClick: (g) => n?.(g),
2936
+ type: u,
2937
+ className: g,
2938
+ onClick: (p) => n?.(p),
2938
2939
  disabled: r,
2939
2940
  "aria-label": e || d,
2940
2941
  children: [
2941
2942
  /* @__PURE__ */ C(Ae, { icon: l }),
2942
- e && /* @__PURE__ */ C("span", { className: u, children: e }),
2943
+ e && /* @__PURE__ */ C("span", { className: h, children: e }),
2943
2944
  /* @__PURE__ */ C(Ae, { icon: a })
2944
2945
  ]
2945
2946
  }
@@ -1,6 +1,7 @@
1
1
  import { FC, MouseEvent, ReactNode, Ref } from 'react';
2
2
  import { ButtonVariant } from '../../types/button';
3
3
  export interface DialButtonProps {
4
+ type?: 'button' | 'submit' | 'reset';
4
5
  variant?: ButtonVariant;
5
6
  cssClass?: string;
6
7
  textCssClass?: string;
@@ -27,6 +28,7 @@ export interface DialButtonProps {
27
28
  * ```
28
29
  *
29
30
  * @param [title] - The text content of the button
31
+ * @param [type='button'] - The HTML button type attribute
30
32
  * @param [variant=ButtonVariant.Primary] - Defines the visual style of the button
31
33
  * @param [cssClass] - Additional CSS classes to apply to the button
32
34
  * @param [textCssClass] - Additional CSS classes to apply specifically to the button text
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epam/ai-dial-ui-kit",
3
- "version": "0.5.0-rc.17",
3
+ "version": "0.5.0-rc.19",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "description": "A modern UI kit for building AI DIAL interfaces with React",