@rarui/components 1.31.1 → 1.32.0

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/CHANGELOG.md CHANGED
@@ -2,6 +2,18 @@
2
2
 
3
3
  `@rarui/components` components is a component library built with [Lit](https://lit.dev/).
4
4
 
5
+ ## 2026-01-19 `1.32.0`
6
+
7
+ #### 🎉 New features
8
+
9
+ - **Modal Header title Property**: Added `title` and `subtitle` properties to ModalHeader component for simplified modal header creation. When provided, automatically renders title as `<rarui-title as="h5">` and subtitle as `<rarui-text>` with appropriate styling, eliminating the need for manual slot content for common use cases. ([#151](https://git.rarolabs.com.br/frontend/rarui/-/merge_requests/151) by [@junior](https://git.rarolabs.com.br/junior))
10
+
11
+ #### 🐛 Bug fixes
12
+
13
+ - **Select Form Value Clear Fix**: Fixed Select component not clearing form values when clicking the clear all options button in multiple selection mode. Added missing `_updateFormValue()` call in `handleResetOptions()` method to properly sync FormData with ElementInternals API, ensuring form submission reflects cleared state. ([#151](https://git.rarolabs.com.br/frontend/rarui/-/merge_requests/151) by [@junior](https://git.rarolabs.com.br/junior))
14
+ - **Banner Tonal Close Button Color**: Fixed Banner component close button color inconsistency in tonal variant. Implemented `getTonalColorButtonClose` mapping to ensure close button uses appropriate appearance colors (brand, warning, error, success, primary) based on banner appearance when tonal variant is enabled, improving visual consistency and readability. ([#151](https://git.rarolabs.com.br/frontend/rarui/-/merge_requests/151) by [@junior](https://git.rarolabs.com.br/junior))
15
+ - **RadioButton Shape Preservation**: Fixed RadioButton component visual deformation when label text becomes too large. Radio button now maintains its circular shape with proper `minWidth` and `minHeight` constraints (1.25rem for small, 1.5rem for large), preventing flex container from shrinking the radio circle regardless of label length. ([#151](https://git.rarolabs.com.br/frontend/rarui/-/merge_requests/151) by [@junior](https://git.rarolabs.com.br/junior))
16
+
5
17
  ## 2025-11-26 `1.31.1`
6
18
 
7
19
  #### 🎉 New features
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.31.0",
2
+ "version": "1.31.1",
3
3
  "tags": [
4
4
  {
5
5
  "name": "rarui-avatar",
@@ -2493,6 +2493,33 @@
2493
2493
  }
2494
2494
  ],
2495
2495
  "default": "solid"
2496
+ },
2497
+ {
2498
+ "name": "min-width",
2499
+ "description": "The **`min-width`** CSS property sets the minimum width of an element. It prevents the used value of the `width` property from becoming smaller than the value specified for `min-width`. It is also possible to pass a specific value.\n\n\n**Initial value**: `auto`\n\nThis property supports responsive values. You can pass a single value like `\"auto\"`.\n\n Or an object like:\n \n ```\n{\n \"xs\": \"auto\",\n \"md\": \"fit-content\",\n \"lg\": \"intrinsic\",\n \"xl\": \"max-content\"\n}\n```\n\n- auto\n- fit-content\n- intrinsic\n- max-content\n- min-content\n- min-intrinsic\n- stretch",
2500
+ "values": [
2501
+ {
2502
+ "name": "auto"
2503
+ },
2504
+ {
2505
+ "name": "fit-content"
2506
+ },
2507
+ {
2508
+ "name": "intrinsic"
2509
+ },
2510
+ {
2511
+ "name": "max-content"
2512
+ },
2513
+ {
2514
+ "name": "min-content"
2515
+ },
2516
+ {
2517
+ "name": "min-intrinsic"
2518
+ },
2519
+ {
2520
+ "name": "stretch"
2521
+ }
2522
+ ]
2496
2523
  }
2497
2524
  ]
2498
2525
  },
package/dist/index.d.ts CHANGED
@@ -17020,7 +17020,9 @@ declare const styles$3: {
17020
17020
  size: {
17021
17021
  small: {
17022
17022
  width: "1.25rem";
17023
+ minWidth: "1.25rem";
17023
17024
  height: "1.25rem";
17025
+ minHeight: "1.25rem";
17024
17026
  ":before": {
17025
17027
  width: "2rem";
17026
17028
  height: "2rem";
@@ -17032,7 +17034,9 @@ declare const styles$3: {
17032
17034
  };
17033
17035
  large: {
17034
17036
  width: "1.5rem";
17037
+ minWidth: "1.5rem";
17035
17038
  height: "1.5rem";
17039
+ minHeight: "1.5rem";
17036
17040
  ":before": {
17037
17041
  width: "2.75rem";
17038
17042
  height: "2.75rem";
@@ -17259,6 +17263,8 @@ declare const statusStyles: {
17259
17263
  };
17260
17264
 
17261
17265
  type StatusVariants = NonNullable<RecipeVariants<typeof statusStyles.status>>;
17266
+ type StatusDynamicProperties = Pick<StandardLonghandProperties, "minWidth">;
17267
+ type StatusSprinkle = StatusDynamicProperties;
17262
17268
 
17263
17269
  declare const bannerStyles: {
17264
17270
  banner: RuntimeFn<{
@@ -18014,7 +18020,7 @@ interface StatusTyping {
18014
18020
  */
18015
18021
  dot?: boolean;
18016
18022
  }
18017
- type StatusProps = StatusTyping & StatusVariants;
18023
+ type StatusProps = StatusTyping & StatusVariants & StatusSprinkle;
18018
18024
 
18019
18025
  interface ButtonTyping {
18020
18026
  /**
@@ -18900,6 +18906,13 @@ type StatusManifestProperties = StatusProps;
18900
18906
  type StatusProperties = WebComponentProperties<StatusManifestProperties>;
18901
18907
 
18902
18908
  declare const RaruiStatus_base: (new (...args: any[]) => {
18909
+ cssProps: Record<string, any>;
18910
+ sprinkleAttrs: Record<string, any>;
18911
+ }) & (new (...args: any[]) => {
18912
+ ariaLabel: string | null;
18913
+ ariaLabelledBy: string | null;
18914
+ ariaDescribedBy: string | null;
18915
+ }) & (new (...args: any[]) => {
18903
18916
  ariaLabel: string | null;
18904
18917
  ariaLabelledBy: string | null;
18905
18918
  ariaDescribedBy: string | null;