@lax-wp/design-system 0.8.7 → 0.8.9

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.
@@ -9,6 +9,7 @@ export interface IconButtonProps {
9
9
  tooltipPlacement?: 'top' | 'bottom' | 'left' | 'right';
10
10
  noborder?: boolean;
11
11
  id?: string;
12
+ type?: 'button' | 'submit' | 'reset';
12
13
  }
13
14
  declare const IconButton: React.FC<IconButtonProps>;
14
15
  export default IconButton;
package/dist/index.es.js CHANGED
@@ -1573,21 +1573,23 @@ const YA = ({
1573
1573
  tooltip: i,
1574
1574
  tooltipPlacement: o = "top",
1575
1575
  noborder: l,
1576
- id: s
1576
+ id: s,
1577
+ type: c = "button"
1577
1578
  }) => {
1578
- const c = "flex items-center", d = {
1579
+ const d = "flex items-center", u = {
1579
1580
  default: `bg-white dark:bg-black-800 hover:bg-neutral-100 dark:hover:bg-black-700 rounded-lg ${l ? "" : "border border-neutral-300 dark:border-neutral-800"} p-2 hover:opacity-80`,
1580
1581
  secondary: `bg-transparent rounded-lg ${l ? "" : "border border-neutral-300 dark:border-black-400"} p-2 hover:opacity-80`,
1581
1582
  native: `bg-transparent rounded-lg ${l ? "" : "border border-neutral-300"} p-2 hover:opacity-80`,
1582
1583
  ghost: "text-neutral-400 hover:bg-neutral-100 hover:text-neutral-600 dark:hover:text-neutral-200 dark:hover:bg-neutral-800 p-1 cursor-pointer rounded-full hover:scale-75 transition-all duration-500 ease-in-out"
1583
- }, u = a ? "cursor-not-allowed opacity-50" : "cursor-pointer";
1584
+ }, f = a ? "cursor-not-allowed opacity-50" : "cursor-pointer";
1584
1585
  return /* @__PURE__ */ r(yA, { title: i, placement: o, delayShow: !0, children: /* @__PURE__ */ r(
1585
1586
  "button",
1586
1587
  {
1587
1588
  id: s,
1588
1589
  disabled: a,
1589
- className: `${c} ${d[t]} ${e || ""} ${u}`,
1590
+ className: `${d} ${u[t]} ${e || ""} ${f}`,
1590
1591
  onClick: n,
1592
+ type: c,
1591
1593
  children: A
1592
1594
  }
1593
1595
  ) });
@@ -7952,6 +7954,7 @@ const E0 = () => /* @__PURE__ */ r("svg", { width: "16", height: "16", viewBox:
7952
7954
  return /* @__PURE__ */ r("li", { className: "inline-flex w-auto", children: /* @__PURE__ */ w(
7953
7955
  "button",
7954
7956
  {
7957
+ type: "button",
7955
7958
  onClick: () => n(s),
7956
7959
  className: V(
7957
7960
  "relative py-0.5 px-3 border-gray-200",
@@ -7974,6 +7977,7 @@ const E0 = () => /* @__PURE__ */ r("svg", { width: "16", height: "16", viewBox:
7974
7977
  return /* @__PURE__ */ r("li", { className: "sm:mr-2", children: /* @__PURE__ */ w(
7975
7978
  "button",
7976
7979
  {
7980
+ type: "button",
7977
7981
  onClick: () => n(s),
7978
7982
  className: V(
7979
7983
  "relative inline-flex pt-1 pb-3 px-2 pl-3 sm:px-2 rounded-t-lg group",
@@ -26920,6 +26924,7 @@ const N8 = ({
26920
26924
  {
26921
26925
  id: `btn-tabs-tabswitch-${e}`,
26922
26926
  className: m,
26927
+ type: "button",
26923
26928
  onClick: g,
26924
26929
  children: /* @__PURE__ */ r(fi, { ...h, children: v })
26925
26930
  }