@rarui/components 1.27.0 → 1.28.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 +16 -0
- package/custom-elements.json +86 -7
- package/dist/index.d.ts +201 -91
- package/dist/index.js +450 -413
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,21 @@
|
|
|
2
2
|
|
|
3
3
|
`@rarui/components` components is a component library built with [Lit](https://lit.dev/).
|
|
4
4
|
|
|
5
|
+
## 2025-10-07 `1.28.1`
|
|
6
|
+
|
|
7
|
+
#### 🐛 Bug fixes
|
|
8
|
+
|
|
9
|
+
- **Dropdown Visible Attribute Detection**: Fixed `_hasVisibleAttribute` flag to properly detect when the component is in controlled mode. Resolved timing issue where `hasAttribute("visible")` was always returning false by moving detection logic to the property setter and using `updateComplete` promise for initial state verification. ([#142](https://git.rarolabs.com.br/frontend/rarui/-/merge_requests/142) by [@junior](https://git.rarolabs.com.br/junior))
|
|
10
|
+
|
|
11
|
+
## 2025-09-29 `1.28.0`
|
|
12
|
+
|
|
13
|
+
#### 💡 Others
|
|
14
|
+
|
|
15
|
+
- **BaseComponentMixin Migration**: Updated components (Divider, Box, Breadcrumb, SideNavigation, Tabs, Accordion, Banner) from `SprinkleAttributesMixin` to `BaseComponentMixin` for complete functionality including both CSS properties and ARIA support. Ensures consistent architecture across all web components. ([#141](https://git.rarolabs.com.br/frontend/rarui/-/merge_requests/141) by [@junior](https://git.rarolabs.com.br/junior))
|
|
16
|
+
- **ARIA Mixin Adoption**: Applied `AriaAttributesMixin` to 20+ components (Label, Stepper, Step, Tooltip, Progress, Skeleton, Status, DropdownItem, IconButton, RadioButton, SelectOptGroup, SelectOption, Textarea, Toggle, Pagination, BreadcrumbItem, AccordionHeader) eliminating duplicated ARIA properties and ensuring consistent accessibility implementation. ([#141](https://git.rarolabs.com.br/frontend/rarui/-/merge_requests/141) by [@junior](https://git.rarolabs.com.br/junior))
|
|
17
|
+
- **PassThroughAttributesMixin**: Introduced mixin for managing pass-through attributes (data-_, aria-_) to internal elements, providing consistent attribute filtering and avoiding conflicts with component-managed attributes. Includes convenience methods `getDataAttributes()`, `getDataAndAriaAttributes()`, and configurable exclusion patterns. ([#141](https://git.rarolabs.com.br/frontend/rarui/-/merge_requests/141) by [@junior](https://git.rarolabs.com.br/junior))
|
|
18
|
+
- **Lit Binding Best Practices**: Comprehensive review and improvement of property binding patterns across Link, Button, Input, Password, and Search components following Lit best practices. Added `reflect: true` to all visual properties for better CSS styling and debugging, removed unnecessary boolean converters, and applied consistent mixin usage for ARIA properties and pass-through attributes. ([#141](https://git.rarolabs.com.br/frontend/rarui/-/merge_requests/141) by [@junior](https://git.rarolabs.com.br/junior))
|
|
19
|
+
|
|
5
20
|
## 2025-09-25 `1.27.0`
|
|
6
21
|
|
|
7
22
|
#### 🎉 New features
|
|
@@ -20,6 +35,7 @@
|
|
|
20
35
|
#### 💡 Others
|
|
21
36
|
|
|
22
37
|
- **Enhanced Dropdown Events**: Improved Dropdown component's `dropdown-visibility-change` event to include specific reason information ("click-outside", "escape-key", "click-open", "click-close") instead of generic reasons, enabling better component communication and more precise interaction handling. Updated Select component to properly respond to specific dismissal reasons. ([#139](https://git.rarolabs.com.br/frontend/rarui/-/merge_requests/139) by [@junior](https://git.rarolabs.com.br/junior))
|
|
38
|
+
|
|
23
39
|
- **Utils Structure Cleanup**: Removed unused utility files and mixins, keeping only essential mixins for better maintainability and reduced bundle size. ([#139](https://git.rarolabs.com.br/frontend/rarui/-/merge_requests/139) by [@junior](https://git.rarolabs.com.br/junior))
|
|
24
40
|
- **Divider Width Fix**: Fixed host element width behavior to respect user-provided size values, using fit-content for fixed sizes and proper percentage handling for values like "50%". ([#139](https://git.rarolabs.com.br/frontend/rarui/-/merge_requests/139) by [@junior](https://git.rarolabs.com.br/junior))
|
|
25
41
|
- **Code Duplication Reduction**: Eliminated 9+ lines of duplicated ARIA property declarations per component, reducing codebase size and improving maintainability across all web components. ([#139](https://git.rarolabs.com.br/frontend/rarui/-/merge_requests/139) by [@junior](https://git.rarolabs.com.br/junior))
|
package/custom-elements.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.
|
|
2
|
+
"version": "1.28.0",
|
|
3
3
|
"tags": [
|
|
4
4
|
{
|
|
5
5
|
"name": "rarui-avatar",
|
|
@@ -3035,22 +3035,43 @@
|
|
|
3035
3035
|
"type": "string"
|
|
3036
3036
|
},
|
|
3037
3037
|
{
|
|
3038
|
-
"name": "
|
|
3039
|
-
"description": "Defines the
|
|
3038
|
+
"name": "as",
|
|
3039
|
+
"description": "Defines the HTML element type to render (button or anchor).\n\n- a\n- button\n\n@default button",
|
|
3040
3040
|
"type": "string",
|
|
3041
3041
|
"values": [
|
|
3042
|
+
{
|
|
3043
|
+
"name": "a"
|
|
3044
|
+
},
|
|
3042
3045
|
{
|
|
3043
3046
|
"name": "button",
|
|
3044
3047
|
"description": "(default)"
|
|
3048
|
+
}
|
|
3049
|
+
],
|
|
3050
|
+
"default": "button"
|
|
3051
|
+
},
|
|
3052
|
+
{
|
|
3053
|
+
"name": "href",
|
|
3054
|
+
"description": "The href URL when as=\"a\".",
|
|
3055
|
+
"type": "string"
|
|
3056
|
+
},
|
|
3057
|
+
{
|
|
3058
|
+
"name": "target",
|
|
3059
|
+
"description": "The target attribute when as=\"a\".\n\n- _blank\n- _parent\n- _self\n- _top",
|
|
3060
|
+
"type": "string",
|
|
3061
|
+
"values": [
|
|
3062
|
+
{
|
|
3063
|
+
"name": "_blank"
|
|
3045
3064
|
},
|
|
3046
3065
|
{
|
|
3047
|
-
"name": "
|
|
3066
|
+
"name": "_parent"
|
|
3048
3067
|
},
|
|
3049
3068
|
{
|
|
3050
|
-
"name": "
|
|
3069
|
+
"name": "_self"
|
|
3070
|
+
},
|
|
3071
|
+
{
|
|
3072
|
+
"name": "_top"
|
|
3051
3073
|
}
|
|
3052
|
-
]
|
|
3053
|
-
"default": "button"
|
|
3074
|
+
]
|
|
3054
3075
|
},
|
|
3055
3076
|
{
|
|
3056
3077
|
"name": "role",
|
|
@@ -8709,6 +8730,35 @@
|
|
|
8709
8730
|
}
|
|
8710
8731
|
],
|
|
8711
8732
|
"default": "button"
|
|
8733
|
+
},
|
|
8734
|
+
{
|
|
8735
|
+
"name": "href",
|
|
8736
|
+
"description": "The href URL when as=\"a\".",
|
|
8737
|
+
"type": "string"
|
|
8738
|
+
},
|
|
8739
|
+
{
|
|
8740
|
+
"name": "target",
|
|
8741
|
+
"description": "The target attribute when as=\"a\".\n\n- _blank\n- _parent\n- _self\n- _top",
|
|
8742
|
+
"type": "string",
|
|
8743
|
+
"values": [
|
|
8744
|
+
{
|
|
8745
|
+
"name": "_blank"
|
|
8746
|
+
},
|
|
8747
|
+
{
|
|
8748
|
+
"name": "_parent"
|
|
8749
|
+
},
|
|
8750
|
+
{
|
|
8751
|
+
"name": "_self"
|
|
8752
|
+
},
|
|
8753
|
+
{
|
|
8754
|
+
"name": "_top"
|
|
8755
|
+
}
|
|
8756
|
+
]
|
|
8757
|
+
},
|
|
8758
|
+
{
|
|
8759
|
+
"name": "rel",
|
|
8760
|
+
"description": "The rel attribute when as=\"a\".",
|
|
8761
|
+
"type": "string"
|
|
8712
8762
|
}
|
|
8713
8763
|
]
|
|
8714
8764
|
},
|
|
@@ -8768,6 +8818,35 @@
|
|
|
8768
8818
|
}
|
|
8769
8819
|
],
|
|
8770
8820
|
"default": "button"
|
|
8821
|
+
},
|
|
8822
|
+
{
|
|
8823
|
+
"name": "href",
|
|
8824
|
+
"description": "The href URL when as=\"a\".",
|
|
8825
|
+
"type": "string"
|
|
8826
|
+
},
|
|
8827
|
+
{
|
|
8828
|
+
"name": "target",
|
|
8829
|
+
"description": "The target attribute when as=\"a\".\n\n- _blank\n- _parent\n- _self\n- _top",
|
|
8830
|
+
"type": "string",
|
|
8831
|
+
"values": [
|
|
8832
|
+
{
|
|
8833
|
+
"name": "_blank"
|
|
8834
|
+
},
|
|
8835
|
+
{
|
|
8836
|
+
"name": "_parent"
|
|
8837
|
+
},
|
|
8838
|
+
{
|
|
8839
|
+
"name": "_self"
|
|
8840
|
+
},
|
|
8841
|
+
{
|
|
8842
|
+
"name": "_top"
|
|
8843
|
+
}
|
|
8844
|
+
]
|
|
8845
|
+
},
|
|
8846
|
+
{
|
|
8847
|
+
"name": "rel",
|
|
8848
|
+
"description": "The rel attribute when as=\"a\".",
|
|
8849
|
+
"type": "string"
|
|
8771
8850
|
}
|
|
8772
8851
|
]
|
|
8773
8852
|
},
|