@rarui/components 1.27.0-rc.3 → 1.27.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 +0 -11
- package/custom-elements.json +1 -1
- package/dist/index.d.ts +10 -22
- package/dist/index.js +300 -305
- package/package.json +3 -4
package/CHANGELOG.md
CHANGED
|
@@ -2,16 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
`@rarui/components` components is a component library built with [Lit](https://lit.dev/).
|
|
4
4
|
|
|
5
|
-
## 2025-09-26 `1.28.0`
|
|
6
|
-
|
|
7
|
-
- **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. ([#139](https://git.rarolabs.com.br/frontend/rarui/-/merge_requests/139) by [@junior](https://git.rarolabs.com.br/junior))
|
|
8
|
-
|
|
9
|
-
#### 💡 Others
|
|
10
|
-
|
|
11
|
-
- **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. ([#139](https://git.rarolabs.com.br/frontend/rarui/-/merge_requests/139) by [@junior](https://git.rarolabs.com.br/junior))
|
|
12
|
-
|
|
13
|
-
#### 🎉 New features
|
|
14
|
-
|
|
15
5
|
## 2025-09-25 `1.27.0`
|
|
16
6
|
|
|
17
7
|
#### 🎉 New features
|
|
@@ -30,7 +20,6 @@
|
|
|
30
20
|
#### 💡 Others
|
|
31
21
|
|
|
32
22
|
- **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))
|
|
33
|
-
|
|
34
23
|
- **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))
|
|
35
24
|
- **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))
|
|
36
25
|
- **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
package/dist/index.d.ts
CHANGED
|
@@ -18801,11 +18801,6 @@ type ButtonManifestProperties = ButtonProps & {
|
|
|
18801
18801
|
type ButtonProperties = WebComponentProperties<ButtonManifestProperties>;
|
|
18802
18802
|
|
|
18803
18803
|
declare const RaruiButton_base: (new (...args: any[]) => {
|
|
18804
|
-
getPassThroughAttributes(allowedPrefixes?: string[], excludedAttributes?: string[]): Record<string, string>;
|
|
18805
|
-
isManagedAttribute(attrName: string, additionalManagedAttrs?: string[]): boolean;
|
|
18806
|
-
getDataAttributes(excludedAttributes?: string[]): Record<string, string>;
|
|
18807
|
-
getDataAndAriaAttributes(excludedAttributes?: string[]): Record<string, string>;
|
|
18808
|
-
}) & (new (...args: any[]) => {
|
|
18809
18804
|
ariaLabel: string | null;
|
|
18810
18805
|
ariaLabelledBy: string | null;
|
|
18811
18806
|
ariaDescribedBy: string | null;
|
|
@@ -19300,12 +19295,7 @@ type InputManifestProperties = InputProps & {
|
|
|
19300
19295
|
};
|
|
19301
19296
|
type InputProperties = WebComponentProperties<InputManifestProperties>;
|
|
19302
19297
|
|
|
19303
|
-
declare
|
|
19304
|
-
ariaLabel: string | null;
|
|
19305
|
-
ariaLabelledBy: string | null;
|
|
19306
|
-
ariaDescribedBy: string | null;
|
|
19307
|
-
}) & typeof LitElement;
|
|
19308
|
-
declare class RaruiInput extends RaruiInput_base {
|
|
19298
|
+
declare class RaruiInput extends LitElement {
|
|
19309
19299
|
static shadowRootOptions: {
|
|
19310
19300
|
delegatesFocus: boolean;
|
|
19311
19301
|
mode: ShadowRootMode;
|
|
@@ -19329,6 +19319,9 @@ declare class RaruiInput extends RaruiInput_base {
|
|
|
19329
19319
|
minlength: InputProperties["minlength"];
|
|
19330
19320
|
maxlength: InputProperties["maxlength"];
|
|
19331
19321
|
pattern: InputProperties["pattern"];
|
|
19322
|
+
ariaLabel: string | null;
|
|
19323
|
+
ariaLabelledBy: string | null;
|
|
19324
|
+
ariaDescribedBy: string | null;
|
|
19332
19325
|
ariaInvalid: AriaInvalid;
|
|
19333
19326
|
private _internals;
|
|
19334
19327
|
static formAssociated: boolean;
|
|
@@ -19807,17 +19800,7 @@ type LinkManifestProperties = LinkProps & {
|
|
|
19807
19800
|
};
|
|
19808
19801
|
type LinkProperties = WebComponentProperties<LinkManifestProperties>;
|
|
19809
19802
|
|
|
19810
|
-
declare
|
|
19811
|
-
getPassThroughAttributes(allowedPrefixes?: string[], excludedAttributes?: string[]): Record<string, string>;
|
|
19812
|
-
isManagedAttribute(attrName: string, additionalManagedAttrs?: string[]): boolean;
|
|
19813
|
-
getDataAttributes(excludedAttributes?: string[]): Record<string, string>;
|
|
19814
|
-
getDataAndAriaAttributes(excludedAttributes?: string[]): Record<string, string>;
|
|
19815
|
-
}) & (new (...args: any[]) => {
|
|
19816
|
-
ariaLabel: string | null;
|
|
19817
|
-
ariaLabelledBy: string | null;
|
|
19818
|
-
ariaDescribedBy: string | null;
|
|
19819
|
-
}) & typeof LitElement;
|
|
19820
|
-
declare class RaruiLink extends RaruiLink_base {
|
|
19803
|
+
declare class RaruiLink extends LitElement {
|
|
19821
19804
|
static shadowRootOptions: {
|
|
19822
19805
|
delegatesFocus: boolean;
|
|
19823
19806
|
mode: ShadowRootMode;
|
|
@@ -19835,6 +19818,11 @@ declare class RaruiLink extends RaruiLink_base {
|
|
|
19835
19818
|
name?: LinkProperties["name"];
|
|
19836
19819
|
value?: LinkProperties["value"];
|
|
19837
19820
|
form?: LinkProperties["form"];
|
|
19821
|
+
ariaLabel: string | null;
|
|
19822
|
+
ariaLabelledBy: string | null;
|
|
19823
|
+
ariaDescribedBy: string | null;
|
|
19824
|
+
private _getPassThroughAttributes;
|
|
19825
|
+
private _isManagedAttribute;
|
|
19838
19826
|
static styles: CSSResult;
|
|
19839
19827
|
private _onClick;
|
|
19840
19828
|
render(): TemplateResult<1>;
|