@rarui/components 1.30.0 → 1.30.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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,20 @@
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`
6
+
7
+ #### 🎉 New features
8
+
9
+ - **BreadcrumbItem Disabled Property**: Added `disabled` property to BreadcrumbItem component allowing items to be marked as non-interactive. Disabled items prevent clicks, display with disabled styling, and include proper accessibility attributes (`aria-disabled`, `disabled` for buttons) for screen reader compatibility. ([#145](https://git.rarolabs.com.br/frontend/rarui/-/merge_requests/145) by [@junior](https://git.rarolabs.com.br/junior))
10
+
11
+ #### 🐛 Bug fixes
12
+
13
+ - **Breadcrumb Property Binding Optimization**: Fixed BreadcrumbItem boolean property bindings following Lit best practices. Replaced incorrect `.active=${value}` property binding with `?active=${value}` boolean attribute binding for optimal performance. Removed unnecessary boolean converter and added `reflect: true` to `active` property for CSS styling support and better debugging visibility. ([#145](https://git.rarolabs.com.br/frontend/rarui/-/merge_requests/145) by [@junior](https://git.rarolabs.com.br/junior))
14
+
15
+ #### 💡 Others
16
+
17
+ - **Lit Binding Standards Compliance**: Comprehensive review of Breadcrumb and BreadcrumbItem components ensuring full compliance with Lit binding best practices. Implemented proper boolean attribute binding (`?attribute`), added reflection for CSS-dependent properties, improved type safety, and enhanced accessibility with semantic HTML attributes. ([#145](https://git.rarolabs.com.br/frontend/rarui/-/merge_requests/145) by [@junior](https://git.rarolabs.com.br/junior))
18
+
5
19
  ## 2025-10-16 `1.30.0`
6
20
 
7
21
  #### 🎉 New features
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.29.0",
2
+ "version": "1.30.0",
3
3
  "tags": [
4
4
  {
5
5
  "name": "rarui-avatar",
@@ -8551,14 +8551,21 @@
8551
8551
  },
8552
8552
  {
8553
8553
  "name": "active",
8554
- "description": "Indicates whether the breadcrumb item is currently active.\nAn active item is typically styled differently to show that it represents the current page.",
8555
- "type": "boolean"
8554
+ "description": "Indica se o item está ativo (representa a página atual).\nReflete no HTML para styling CSS.",
8555
+ "type": "boolean",
8556
+ "default": false
8556
8557
  },
8557
8558
  {
8558
8559
  "name": "href",
8559
8560
  "description": "URL de destino quando o item for um link.",
8560
8561
  "type": "string"
8561
8562
  },
8563
+ {
8564
+ "name": "disabled",
8565
+ "description": "Indica se o item está desabilitado e não pode ser clicado.\nReflete no HTML para styling CSS.",
8566
+ "type": "boolean",
8567
+ "default": false
8568
+ },
8562
8569
  {
8563
8570
  "name": "as",
8564
8571
  "description": "Tipo de elemento a ser renderizado.\n\n- a\n- button\n\n@default button",
package/dist/index.d.ts CHANGED
@@ -20022,6 +20022,18 @@ type BreadcrumbItemManifestProperties = BreadcrumbItemProps & {
20022
20022
  * URL de destino quando o item for um link.
20023
20023
  */
20024
20024
  href?: string;
20025
+ /**
20026
+ * Indica se o item está ativo (representa a página atual).
20027
+ * Reflete no HTML para styling CSS.
20028
+ * @default false
20029
+ */
20030
+ active?: boolean;
20031
+ /**
20032
+ * Indica se o item está desabilitado e não pode ser clicado.
20033
+ * Reflete no HTML para styling CSS.
20034
+ * @default false
20035
+ */
20036
+ disabled?: boolean;
20025
20037
  /**
20026
20038
  * Tipo de elemento a ser renderizado.
20027
20039
  * @default "button"
@@ -20049,8 +20061,11 @@ declare class RaruiBreadcrumbItem extends RaruiBreadcrumbItem_base {
20049
20061
  };
20050
20062
  name?: BreadcrumbItemProperties["name"];
20051
20063
  href?: BreadcrumbItemProperties["href"];
20052
- active?: BreadcrumbItemProperties["active"];
20053
- as?: BreadcrumbItemProperties["as"];
20064
+ /** Active state - reflects to CSS for styling */
20065
+ active: BreadcrumbItemProperties["active"];
20066
+ /** Disabled state - reflects to CSS for styling */
20067
+ disabled: BreadcrumbItemProperties["disabled"];
20068
+ as: BreadcrumbItemProperties["as"];
20054
20069
  static styles: CSSResult;
20055
20070
  private handleClick;
20056
20071
  render(): TemplateResult<1>;