@rarui/components 1.30.1 → 1.30.3

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.
Files changed (40) hide show
  1. package/CHANGELOG.md +20 -1
  2. package/custom-elements.json +1 -1
  3. package/dist/index.d.ts +43 -5
  4. package/dist/index.js +17 -16
  5. package/package.json +2 -2
  6. package/src/exhibition/Avatar/README.md +0 -15
  7. package/src/exhibition/Badge/README.md +0 -15
  8. package/src/exhibition/Divider/README.md +0 -15
  9. package/src/exhibition/Icon/README.md +0 -15
  10. package/src/exhibition/Label/README.md +0 -15
  11. package/src/exhibition/Stepper/README.md +0 -15
  12. package/src/exhibition/Text/README.md +0 -15
  13. package/src/exhibition/Title/README.md +0 -15
  14. package/src/exhibition/Tooltip/README.md +0 -15
  15. package/src/feedback/Progress/README.md +0 -15
  16. package/src/feedback/Skeleton/README.md +0 -15
  17. package/src/feedback/Status/README.md +0 -15
  18. package/src/input/Button/README.md +0 -15
  19. package/src/input/Checkbox/README.md +0 -15
  20. package/src/input/Chip/README.md +0 -15
  21. package/src/input/Dropdown/README.md +0 -15
  22. package/src/input/IconButton/README.md +0 -15
  23. package/src/input/Input/README.md +0 -44
  24. package/src/input/RadioButton/README.md +0 -15
  25. package/src/input/Select/README.md +0 -13
  26. package/src/input/Textarea/README.md +0 -15
  27. package/src/input/Toggle/README.md +0 -15
  28. package/src/layout/Box/README.md +0 -15
  29. package/src/layout/Sidebar/README.md +0 -109
  30. package/src/navigation/Breadcrumb/README.md +0 -56
  31. package/src/navigation/Link/README.md +0 -15
  32. package/src/navigation/Pagination/README.md +0 -15
  33. package/src/navigation/SideNavigation/README.md +0 -87
  34. package/src/navigation/Tabs/README.md +0 -9
  35. package/src/stylization/ThemeProvider/README.md +0 -56
  36. package/src/surface/Accordion/README.md +0 -93
  37. package/src/surface/Banner/README.md +0 -15
  38. package/src/surface/Card/README.md +0 -15
  39. package/src/surface/Modal/README.md +0 -15
  40. package/src/types/README.md +0 -73
package/CHANGELOG.md CHANGED
@@ -2,7 +2,26 @@
2
2
 
3
3
  `@rarui/components` components is a component library built with [Lit](https://lit.dev/).
4
4
 
5
- ## 2025-10-20 `1.31.0`
5
+ ## 2025-11-14 `1.30.3`
6
+
7
+ #### 🐛 Bug fixes
8
+
9
+ - **Dropdown Accessibility Improvement**: Removed unnecessary `role="button"` and `tabindex="0"` attributes from dropdown reference container to prevent duplicate focus targets and improve screen reader navigation. The dropdown now relies on proper slot content for interactive elements while maintaining ARIA attributes for popup functionality. ([#148](https://git.rarolabs.com.br/frontend/rarui/-/merge_requests/148) by [@junior](https://git.rarolabs.com.br/junior))
10
+ - **Accordion Header Focus Management**: Enhanced AccordionHeader component focus handling by removing redundant focus-related attributes that conflicted with the component's internal button element, ensuring proper keyboard navigation and accessibility compliance. ([#148](https://git.rarolabs.com.br/frontend/rarui/-/merge_requests/148) by [@junior](https://git.rarolabs.com.br/junior))
11
+
12
+ ## 2025-11-06 `1.30.2`
13
+
14
+ #### 🎉 New features
15
+
16
+ - **KeyboardNavigationMixin**: Added standardized keyboard navigation mixin for consistent keyboard interaction patterns across web components. Implements WAI-ARIA keyboard patterns (Enter/Space activation, Arrow navigation, Escape close) through reusable mixin architecture with `KeyboardNavigationBehavior` interface. ([#147](https://git.rarolabs.com.br/frontend/rarui/-/merge_requests/147) by [@junior](https://git.rarolabs.com.br/junior))
17
+
18
+ #### 🐛 Bug fixes
19
+
20
+ - **RadioButton Form Integration**: Fixed RadioButton component not sending form value when loaded with default selected state. Added proper form value initialization in `connectedCallback()` and reactive form value updates when `selected` property changes via `updated()` lifecycle method. ([#147](https://git.rarolabs.com.br/frontend/rarui/-/merge_requests/147) by [@junior](https://git.rarolabs.com.br/junior))
21
+ - **Select Keyboard Navigation**: Fixed Select component not opening dropdown with Enter/Space key navigation. Implemented proper keyboard event handling using new KeyboardNavigationMixin with support for Enter/Space (toggle), Arrow keys (open), and Escape (close) following accessibility standards. ([#147](https://git.rarolabs.com.br/frontend/rarui/-/merge_requests/147) by [@junior](https://git.rarolabs.com.br/junior))
22
+ - **Banner Event Handling**: Enhanced Banner component event handling and accessibility improvements with better focus management and semantic interaction patterns. ([#147](https://git.rarolabs.com.br/frontend/rarui/-/merge_requests/147) by [@junior](https://git.rarolabs.com.br/junior))
23
+
24
+ ## 2025-10-20 `1.30.1`
6
25
 
7
26
  #### 🎉 New features
8
27
 
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.30.0",
2
+ "version": "1.30.3",
3
3
  "tags": [
4
4
  {
5
5
  "name": "rarui-avatar",
package/dist/index.d.ts CHANGED
@@ -17247,12 +17247,12 @@ declare const statusStyles: {
17247
17247
  dot: RuntimeFn<{
17248
17248
  size: {
17249
17249
  normal: {
17250
- height: ".5rem";
17251
- width: ".5rem";
17250
+ minHeight: ".5rem";
17251
+ minWidth: ".5rem";
17252
17252
  };
17253
17253
  small: {
17254
- height: ".25rem";
17255
- width: ".25rem";
17254
+ minHeight: ".25rem";
17255
+ minWidth: ".25rem";
17256
17256
  };
17257
17257
  };
17258
17258
  }>;
@@ -19588,6 +19588,7 @@ declare class RaruiRadioButton extends RaruiRadioButton_base {
19588
19588
  static formAssociated: boolean;
19589
19589
  constructor();
19590
19590
  connectedCallback(): void;
19591
+ updated(changedProperties: Map<string | number | symbol, unknown>): void;
19591
19592
  disconnectedCallback(): void;
19592
19593
  static styles: CSSResult;
19593
19594
  render(): TemplateResult<1>;
@@ -19599,6 +19600,38 @@ declare class RaruiRadioButton extends RaruiRadioButton_base {
19599
19600
  formResetCallback(): void;
19600
19601
  }
19601
19602
 
19603
+ /**
19604
+ * Interface for keyboard navigation behavior
19605
+ */
19606
+ interface KeyboardNavigationBehavior {
19607
+ /**
19608
+ * Called when Enter or Space key is pressed
19609
+ */
19610
+ handleActivation?(): void;
19611
+ /**
19612
+ * Called when arrow keys are pressed
19613
+ * @param key - The arrow key pressed ('ArrowUp', 'ArrowDown', 'ArrowLeft', 'ArrowRight')
19614
+ */
19615
+ handleArrowNavigation?(key: string): void;
19616
+ /**
19617
+ * Called when Escape key is pressed
19618
+ */
19619
+ handleEscape?(): void;
19620
+ /**
19621
+ * Called when Home key is pressed
19622
+ */
19623
+ handleHome?(): void;
19624
+ /**
19625
+ * Called when End key is pressed
19626
+ */
19627
+ handleEnd?(): void;
19628
+ /**
19629
+ * Called when Tab key is pressed
19630
+ * @param event - The keyboard event (in case you need to prevent default)
19631
+ */
19632
+ handleTab?(event: KeyboardEvent): void;
19633
+ }
19634
+
19602
19635
  declare global {
19603
19636
  interface HTMLElementTagNameMap {
19604
19637
  "rarui-select": RaruiSelect;
@@ -19654,6 +19687,8 @@ type SelectManifestProperties = Omit<SelectProps, "onChange" | "portalId" | "opt
19654
19687
  type SelectProperties = WebComponentProperties<SelectManifestProperties>;
19655
19688
 
19656
19689
  declare const RaruiSelect_base: (new (...args: any[]) => {
19690
+ handleKeydown(event: KeyboardEvent): void;
19691
+ }) & (new (...args: any[]) => {
19657
19692
  ariaLabel: string | null;
19658
19693
  ariaLabelledBy: string | null;
19659
19694
  ariaDescribedBy: string | null;
@@ -19661,7 +19696,7 @@ declare const RaruiSelect_base: (new (...args: any[]) => {
19661
19696
  cssProps: Record<string, any>;
19662
19697
  sprinkleAttrs: Record<string, any>;
19663
19698
  }) & typeof LitElement;
19664
- declare class RaruiSelect extends RaruiSelect_base {
19699
+ declare class RaruiSelect extends RaruiSelect_base implements KeyboardNavigationBehavior {
19665
19700
  static shadowRootOptions: {
19666
19701
  delegatesFocus: boolean;
19667
19702
  mode: ShadowRootMode;
@@ -19717,6 +19752,9 @@ declare class RaruiSelect extends RaruiSelect_base {
19717
19752
  private _handleOptionUnmount;
19718
19753
  private _updateContext;
19719
19754
  private handleSelectClick;
19755
+ handleActivation(): void;
19756
+ handleArrowNavigation(key: string): void;
19757
+ handleEscape(): void;
19720
19758
  render(): TemplateResult<1>;
19721
19759
  private _renderTrigger;
19722
19760
  private _renderPlaceholder;