@almadar/ui 3.7.0 → 3.7.2

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.
@@ -4992,6 +4992,9 @@ var init_Button = __esm({
4992
4992
  const resolvedRightIcon = resolveIconProp(rightIconValue, iconSizeStyles[size]);
4993
4993
  const handleClick = (e) => {
4994
4994
  if (action) {
4995
+ if (typeof console !== "undefined") {
4996
+ console.warn("[Button.click]", action, "actionPayload=", JSON.stringify(actionPayload));
4997
+ }
4995
4998
  eventBus.emit(`UI:${action}`, actionPayload ?? {});
4996
4999
  }
4997
5000
  onClick?.(e);
package/dist/avl/index.js CHANGED
@@ -4946,6 +4946,9 @@ var init_Button = __esm({
4946
4946
  const resolvedRightIcon = resolveIconProp(rightIconValue, iconSizeStyles[size]);
4947
4947
  const handleClick = (e) => {
4948
4948
  if (action) {
4949
+ if (typeof console !== "undefined") {
4950
+ console.warn("[Button.click]", action, "actionPayload=", JSON.stringify(actionPayload));
4951
+ }
4949
4952
  eventBus.emit(`UI:${action}`, actionPayload ?? {});
4950
4953
  }
4951
4954
  onClick?.(e);
@@ -484,6 +484,9 @@ var init_Button = __esm({
484
484
  const resolvedRightIcon = resolveIconProp(rightIconValue, iconSizeStyles[size]);
485
485
  const handleClick = (e) => {
486
486
  if (action) {
487
+ if (typeof console !== "undefined") {
488
+ console.warn("[Button.click]", action, "actionPayload=", JSON.stringify(actionPayload));
489
+ }
487
490
  eventBus.emit(`UI:${action}`, actionPayload ?? {});
488
491
  }
489
492
  onClick?.(e);
@@ -439,6 +439,9 @@ var init_Button = __esm({
439
439
  const resolvedRightIcon = resolveIconProp(rightIconValue, iconSizeStyles[size]);
440
440
  const handleClick = (e) => {
441
441
  if (action) {
442
+ if (typeof console !== "undefined") {
443
+ console.warn("[Button.click]", action, "actionPayload=", JSON.stringify(actionPayload));
444
+ }
442
445
  eventBus.emit(`UI:${action}`, actionPayload ?? {});
443
446
  }
444
447
  onClick?.(e);
@@ -3200,6 +3200,9 @@ var Button = React4__default.default.forwardRef(
3200
3200
  const resolvedRightIcon = resolveIconProp(rightIconValue, iconSizeStyles[size]);
3201
3201
  const handleClick = (e) => {
3202
3202
  if (action) {
3203
+ if (typeof console !== "undefined") {
3204
+ console.warn("[Button.click]", action, "actionPayload=", JSON.stringify(actionPayload));
3205
+ }
3203
3206
  eventBus.emit(`UI:${action}`, actionPayload ?? {});
3204
3207
  }
3205
3208
  onClick?.(e);
@@ -3176,6 +3176,9 @@ var Button = React4.forwardRef(
3176
3176
  const resolvedRightIcon = resolveIconProp(rightIconValue, iconSizeStyles[size]);
3177
3177
  const handleClick = (e) => {
3178
3178
  if (action) {
3179
+ if (typeof console !== "undefined") {
3180
+ console.warn("[Button.click]", action, "actionPayload=", JSON.stringify(actionPayload));
3181
+ }
3179
3182
  eventBus.emit(`UI:${action}`, actionPayload ?? {});
3180
3183
  }
3181
3184
  onClick?.(e);
@@ -3200,6 +3200,9 @@ var Button = React5__default.default.forwardRef(
3200
3200
  const resolvedRightIcon = resolveIconProp(rightIconValue, iconSizeStyles[size]);
3201
3201
  const handleClick = (e) => {
3202
3202
  if (action) {
3203
+ if (typeof console !== "undefined") {
3204
+ console.warn("[Button.click]", action, "actionPayload=", JSON.stringify(actionPayload));
3205
+ }
3203
3206
  eventBus.emit(`UI:${action}`, actionPayload ?? {});
3204
3207
  }
3205
3208
  onClick?.(e);
@@ -3176,6 +3176,9 @@ var Button = React5.forwardRef(
3176
3176
  const resolvedRightIcon = resolveIconProp(rightIconValue, iconSizeStyles[size]);
3177
3177
  const handleClick = (e) => {
3178
3178
  if (action) {
3179
+ if (typeof console !== "undefined") {
3180
+ console.warn("[Button.click]", action, "actionPayload=", JSON.stringify(actionPayload));
3181
+ }
3179
3182
  eventBus.emit(`UI:${action}`, actionPayload ?? {});
3180
3183
  }
3181
3184
  onClick?.(e);
@@ -1544,6 +1544,9 @@ var init_Button = __esm({
1544
1544
  const resolvedRightIcon = resolveIconProp(rightIconValue, iconSizeStyles[size]);
1545
1545
  const handleClick = (e) => {
1546
1546
  if (action) {
1547
+ if (typeof console !== "undefined") {
1548
+ console.warn("[Button.click]", action, "actionPayload=", JSON.stringify(actionPayload));
1549
+ }
1547
1550
  eventBus.emit(`UI:${action}`, actionPayload ?? {});
1548
1551
  }
1549
1552
  onClick?.(e);
@@ -1499,6 +1499,9 @@ var init_Button = __esm({
1499
1499
  const resolvedRightIcon = resolveIconProp(rightIconValue, iconSizeStyles[size]);
1500
1500
  const handleClick = (e) => {
1501
1501
  if (action) {
1502
+ if (typeof console !== "undefined") {
1503
+ console.warn("[Button.click]", action, "actionPayload=", JSON.stringify(actionPayload));
1504
+ }
1502
1505
  eventBus.emit(`UI:${action}`, actionPayload ?? {});
1503
1506
  }
1504
1507
  onClick?.(e);
@@ -2087,6 +2087,9 @@ var init_Button = __esm({
2087
2087
  const resolvedRightIcon = resolveIconProp(rightIconValue, iconSizeStyles[size]);
2088
2088
  const handleClick = (e) => {
2089
2089
  if (action) {
2090
+ if (typeof console !== "undefined") {
2091
+ console.warn("[Button.click]", action, "actionPayload=", JSON.stringify(actionPayload));
2092
+ }
2090
2093
  eventBus.emit(`UI:${action}`, actionPayload ?? {});
2091
2094
  }
2092
2095
  onClick?.(e);
@@ -2042,6 +2042,9 @@ var init_Button = __esm({
2042
2042
  const resolvedRightIcon = resolveIconProp(rightIconValue, iconSizeStyles[size]);
2043
2043
  const handleClick = (e) => {
2044
2044
  if (action) {
2045
+ if (typeof console !== "undefined") {
2046
+ console.warn("[Button.click]", action, "actionPayload=", JSON.stringify(actionPayload));
2047
+ }
2045
2048
  eventBus.emit(`UI:${action}`, actionPayload ?? {});
2046
2049
  }
2047
2050
  onClick?.(e);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@almadar/ui",
3
- "version": "3.7.0",
3
+ "version": "3.7.2",
4
4
  "description": "React UI components, hooks, and providers for Almadar",
5
5
  "type": "module",
6
6
  "main": "./dist/components/index.js",