@almadar/ui 2.46.0 → 2.46.1

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.
@@ -3225,6 +3225,7 @@ var init_Box = __esm({
3225
3225
  action,
3226
3226
  actionPayload,
3227
3227
  hoverEvent,
3228
+ maxWidth,
3228
3229
  onClick,
3229
3230
  onMouseEnter,
3230
3231
  onMouseLeave,
@@ -3289,6 +3290,7 @@ var init_Box = __esm({
3289
3290
  onClick: isClickable ? handleClick : void 0,
3290
3291
  onMouseEnter: hoverEvent || onMouseEnter ? handleMouseEnter : void 0,
3291
3292
  onMouseLeave: hoverEvent || onMouseLeave ? handleMouseLeave : void 0,
3293
+ style: maxWidth ? { maxWidth, ...rest.style } : rest.style,
3292
3294
  ...rest,
3293
3295
  children
3294
3296
  }
package/dist/avl/index.js CHANGED
@@ -3178,6 +3178,7 @@ var init_Box = __esm({
3178
3178
  action,
3179
3179
  actionPayload,
3180
3180
  hoverEvent,
3181
+ maxWidth,
3181
3182
  onClick,
3182
3183
  onMouseEnter,
3183
3184
  onMouseLeave,
@@ -3242,6 +3243,7 @@ var init_Box = __esm({
3242
3243
  onClick: isClickable ? handleClick : void 0,
3243
3244
  onMouseEnter: hoverEvent || onMouseEnter ? handleMouseEnter : void 0,
3244
3245
  onMouseLeave: hoverEvent || onMouseLeave ? handleMouseLeave : void 0,
3246
+ style: maxWidth ? { maxWidth, ...rest.style } : rest.style,
3245
3247
  ...rest,
3246
3248
  children
3247
3249
  }
@@ -49,6 +49,10 @@ export interface BoxProps extends React.HTMLAttributes<HTMLDivElement> {
49
49
  actionPayload?: Record<string, unknown>;
50
50
  /** Declarative hover event — emits UI:{hoverEvent} with { hovered: true/false } on mouseEnter/mouseLeave */
51
51
  hoverEvent?: string;
52
+ /** Maximum width (CSS value, e.g., "550px", "80rem") */
53
+ maxWidth?: string;
54
+ /** Children elements */
55
+ children?: React.ReactNode;
52
56
  }
53
57
  /**
54
58
  * Box - Versatile container component with design tokens
@@ -1089,6 +1089,7 @@ var Box = React90__namespace.default.forwardRef(
1089
1089
  action,
1090
1090
  actionPayload,
1091
1091
  hoverEvent,
1092
+ maxWidth,
1092
1093
  onClick,
1093
1094
  onMouseEnter,
1094
1095
  onMouseLeave,
@@ -1153,6 +1154,7 @@ var Box = React90__namespace.default.forwardRef(
1153
1154
  onClick: isClickable ? handleClick : void 0,
1154
1155
  onMouseEnter: hoverEvent || onMouseEnter ? handleMouseEnter : void 0,
1155
1156
  onMouseLeave: hoverEvent || onMouseLeave ? handleMouseLeave : void 0,
1157
+ style: maxWidth ? { maxWidth, ...rest.style } : rest.style,
1156
1158
  ...rest,
1157
1159
  children
1158
1160
  }
@@ -1043,6 +1043,7 @@ var Box = React90__default.forwardRef(
1043
1043
  action,
1044
1044
  actionPayload,
1045
1045
  hoverEvent,
1046
+ maxWidth,
1046
1047
  onClick,
1047
1048
  onMouseEnter,
1048
1049
  onMouseLeave,
@@ -1107,6 +1108,7 @@ var Box = React90__default.forwardRef(
1107
1108
  onClick: isClickable ? handleClick : void 0,
1108
1109
  onMouseEnter: hoverEvent || onMouseEnter ? handleMouseEnter : void 0,
1109
1110
  onMouseLeave: hoverEvent || onMouseLeave ? handleMouseLeave : void 0,
1111
+ style: maxWidth ? { maxWidth, ...rest.style } : rest.style,
1110
1112
  ...rest,
1111
1113
  children
1112
1114
  }
@@ -2844,6 +2844,7 @@ var Box = React21__default.default.forwardRef(
2844
2844
  action,
2845
2845
  actionPayload,
2846
2846
  hoverEvent,
2847
+ maxWidth,
2847
2848
  onClick,
2848
2849
  onMouseEnter,
2849
2850
  onMouseLeave,
@@ -2908,6 +2909,7 @@ var Box = React21__default.default.forwardRef(
2908
2909
  onClick: isClickable ? handleClick : void 0,
2909
2910
  onMouseEnter: hoverEvent || onMouseEnter ? handleMouseEnter : void 0,
2910
2911
  onMouseLeave: hoverEvent || onMouseLeave ? handleMouseLeave : void 0,
2912
+ style: maxWidth ? { maxWidth, ...rest.style } : rest.style,
2911
2913
  ...rest,
2912
2914
  children
2913
2915
  }
@@ -2820,6 +2820,7 @@ var Box = React21.forwardRef(
2820
2820
  action,
2821
2821
  actionPayload,
2822
2822
  hoverEvent,
2823
+ maxWidth,
2823
2824
  onClick,
2824
2825
  onMouseEnter,
2825
2826
  onMouseLeave,
@@ -2884,6 +2885,7 @@ var Box = React21.forwardRef(
2884
2885
  onClick: isClickable ? handleClick : void 0,
2885
2886
  onMouseEnter: hoverEvent || onMouseEnter ? handleMouseEnter : void 0,
2886
2887
  onMouseLeave: hoverEvent || onMouseLeave ? handleMouseLeave : void 0,
2888
+ style: maxWidth ? { maxWidth, ...rest.style } : rest.style,
2887
2889
  ...rest,
2888
2890
  children
2889
2891
  }
@@ -2704,6 +2704,7 @@ var Box = React4__default.default.forwardRef(
2704
2704
  action,
2705
2705
  actionPayload,
2706
2706
  hoverEvent,
2707
+ maxWidth,
2707
2708
  onClick,
2708
2709
  onMouseEnter,
2709
2710
  onMouseLeave,
@@ -2768,6 +2769,7 @@ var Box = React4__default.default.forwardRef(
2768
2769
  onClick: isClickable ? handleClick : void 0,
2769
2770
  onMouseEnter: hoverEvent || onMouseEnter ? handleMouseEnter : void 0,
2770
2771
  onMouseLeave: hoverEvent || onMouseLeave ? handleMouseLeave : void 0,
2772
+ style: maxWidth ? { maxWidth, ...rest.style } : rest.style,
2771
2773
  ...rest,
2772
2774
  children
2773
2775
  }
@@ -53,6 +53,10 @@ interface BoxProps extends React.HTMLAttributes<HTMLDivElement> {
53
53
  actionPayload?: Record<string, unknown>;
54
54
  /** Declarative hover event — emits UI:{hoverEvent} with { hovered: true/false } on mouseEnter/mouseLeave */
55
55
  hoverEvent?: string;
56
+ /** Maximum width (CSS value, e.g., "550px", "80rem") */
57
+ maxWidth?: string;
58
+ /** Children elements */
59
+ children?: React.ReactNode;
56
60
  }
57
61
  /**
58
62
  * Box - Versatile container component with design tokens
@@ -2680,6 +2680,7 @@ var Box = React4.forwardRef(
2680
2680
  action,
2681
2681
  actionPayload,
2682
2682
  hoverEvent,
2683
+ maxWidth,
2683
2684
  onClick,
2684
2685
  onMouseEnter,
2685
2686
  onMouseLeave,
@@ -2744,6 +2745,7 @@ var Box = React4.forwardRef(
2744
2745
  onClick: isClickable ? handleClick : void 0,
2745
2746
  onMouseEnter: hoverEvent || onMouseEnter ? handleMouseEnter : void 0,
2746
2747
  onMouseLeave: hoverEvent || onMouseLeave ? handleMouseLeave : void 0,
2748
+ style: maxWidth ? { maxWidth, ...rest.style } : rest.style,
2747
2749
  ...rest,
2748
2750
  children
2749
2751
  }
@@ -2704,6 +2704,7 @@ var Box = React5__default.default.forwardRef(
2704
2704
  action,
2705
2705
  actionPayload,
2706
2706
  hoverEvent,
2707
+ maxWidth,
2707
2708
  onClick,
2708
2709
  onMouseEnter,
2709
2710
  onMouseLeave,
@@ -2768,6 +2769,7 @@ var Box = React5__default.default.forwardRef(
2768
2769
  onClick: isClickable ? handleClick : void 0,
2769
2770
  onMouseEnter: hoverEvent || onMouseEnter ? handleMouseEnter : void 0,
2770
2771
  onMouseLeave: hoverEvent || onMouseLeave ? handleMouseLeave : void 0,
2772
+ style: maxWidth ? { maxWidth, ...rest.style } : rest.style,
2771
2773
  ...rest,
2772
2774
  children
2773
2775
  }
@@ -52,6 +52,10 @@ interface BoxProps extends React.HTMLAttributes<HTMLDivElement> {
52
52
  actionPayload?: Record<string, unknown>;
53
53
  /** Declarative hover event — emits UI:{hoverEvent} with { hovered: true/false } on mouseEnter/mouseLeave */
54
54
  hoverEvent?: string;
55
+ /** Maximum width (CSS value, e.g., "550px", "80rem") */
56
+ maxWidth?: string;
57
+ /** Children elements */
58
+ children?: React.ReactNode;
55
59
  }
56
60
  /**
57
61
  * Box - Versatile container component with design tokens
@@ -2680,6 +2680,7 @@ var Box = React5.forwardRef(
2680
2680
  action,
2681
2681
  actionPayload,
2682
2682
  hoverEvent,
2683
+ maxWidth,
2683
2684
  onClick,
2684
2685
  onMouseEnter,
2685
2686
  onMouseLeave,
@@ -2744,6 +2745,7 @@ var Box = React5.forwardRef(
2744
2745
  onClick: isClickable ? handleClick : void 0,
2745
2746
  onMouseEnter: hoverEvent || onMouseEnter ? handleMouseEnter : void 0,
2746
2747
  onMouseLeave: hoverEvent || onMouseLeave ? handleMouseLeave : void 0,
2748
+ style: maxWidth ? { maxWidth, ...rest.style } : rest.style,
2747
2749
  ...rest,
2748
2750
  children
2749
2751
  }
@@ -923,6 +923,7 @@ var Box = React114__namespace.default.forwardRef(
923
923
  action,
924
924
  actionPayload,
925
925
  hoverEvent,
926
+ maxWidth,
926
927
  onClick,
927
928
  onMouseEnter,
928
929
  onMouseLeave,
@@ -987,6 +988,7 @@ var Box = React114__namespace.default.forwardRef(
987
988
  onClick: isClickable ? handleClick : void 0,
988
989
  onMouseEnter: hoverEvent || onMouseEnter ? handleMouseEnter : void 0,
989
990
  onMouseLeave: hoverEvent || onMouseLeave ? handleMouseLeave : void 0,
991
+ style: maxWidth ? { maxWidth, ...rest.style } : rest.style,
990
992
  ...rest,
991
993
  children
992
994
  }
@@ -877,6 +877,7 @@ var Box = React114__default.forwardRef(
877
877
  action,
878
878
  actionPayload,
879
879
  hoverEvent,
880
+ maxWidth,
880
881
  onClick,
881
882
  onMouseEnter,
882
883
  onMouseLeave,
@@ -941,6 +942,7 @@ var Box = React114__default.forwardRef(
941
942
  onClick: isClickable ? handleClick : void 0,
942
943
  onMouseEnter: hoverEvent || onMouseEnter ? handleMouseEnter : void 0,
943
944
  onMouseLeave: hoverEvent || onMouseLeave ? handleMouseLeave : void 0,
945
+ style: maxWidth ? { maxWidth, ...rest.style } : rest.style,
944
946
  ...rest,
945
947
  children
946
948
  }
@@ -1703,6 +1703,7 @@ var Box = React117__namespace.default.forwardRef(
1703
1703
  action,
1704
1704
  actionPayload,
1705
1705
  hoverEvent,
1706
+ maxWidth,
1706
1707
  onClick,
1707
1708
  onMouseEnter,
1708
1709
  onMouseLeave,
@@ -1767,6 +1768,7 @@ var Box = React117__namespace.default.forwardRef(
1767
1768
  onClick: isClickable ? handleClick : void 0,
1768
1769
  onMouseEnter: hoverEvent || onMouseEnter ? handleMouseEnter : void 0,
1769
1770
  onMouseLeave: hoverEvent || onMouseLeave ? handleMouseLeave : void 0,
1771
+ style: maxWidth ? { maxWidth, ...rest.style } : rest.style,
1770
1772
  ...rest,
1771
1773
  children
1772
1774
  }
@@ -1657,6 +1657,7 @@ var Box = React117__default.forwardRef(
1657
1657
  action,
1658
1658
  actionPayload,
1659
1659
  hoverEvent,
1660
+ maxWidth,
1660
1661
  onClick,
1661
1662
  onMouseEnter,
1662
1663
  onMouseLeave,
@@ -1721,6 +1722,7 @@ var Box = React117__default.forwardRef(
1721
1722
  onClick: isClickable ? handleClick : void 0,
1722
1723
  onMouseEnter: hoverEvent || onMouseEnter ? handleMouseEnter : void 0,
1723
1724
  onMouseLeave: hoverEvent || onMouseLeave ? handleMouseLeave : void 0,
1725
+ style: maxWidth ? { maxWidth, ...rest.style } : rest.style,
1724
1726
  ...rest,
1725
1727
  children
1726
1728
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@almadar/ui",
3
- "version": "2.46.0",
3
+ "version": "2.46.1",
4
4
  "description": "React UI components, hooks, and providers for Almadar",
5
5
  "type": "module",
6
6
  "main": "./dist/components/index.js",