@rarui/components 1.18.0 → 1.20.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 +18 -0
- package/custom-elements.json +1679 -1186
- package/dist/index.d.ts +282 -0
- package/dist/index.js +386 -173
- package/package.json +1 -2
package/dist/index.d.ts
CHANGED
|
@@ -17466,6 +17466,23 @@ declare const styles: {
|
|
|
17466
17466
|
|
|
17467
17467
|
type TooltipVariants = NonNullable<RecipeVariants<typeof styles.tooltip>>;
|
|
17468
17468
|
|
|
17469
|
+
declare const breadcrumbStyles: {
|
|
17470
|
+
breadcrumb: string;
|
|
17471
|
+
item: RuntimeFn<{
|
|
17472
|
+
/**
|
|
17473
|
+
* Indicates whether the breadcrumb item is currently active.
|
|
17474
|
+
* An active item is typically styled differently to show that it represents the current page.
|
|
17475
|
+
*/
|
|
17476
|
+
active: {
|
|
17477
|
+
true: {
|
|
17478
|
+
color: `var(--${string})` | `var(--${string}, ${string})`;
|
|
17479
|
+
};
|
|
17480
|
+
};
|
|
17481
|
+
}>;
|
|
17482
|
+
};
|
|
17483
|
+
|
|
17484
|
+
type BreadcrumbVariants = NonNullable<RecipeVariants<typeof breadcrumbStyles.item>>;
|
|
17485
|
+
|
|
17469
17486
|
declare const cardStyles: {
|
|
17470
17487
|
card: RuntimeFn<{
|
|
17471
17488
|
/**
|
|
@@ -17576,6 +17593,81 @@ declare const paginationStyles: {
|
|
|
17576
17593
|
|
|
17577
17594
|
type PaginationVariants = Omit<NonNullable<RecipeVariants<typeof paginationStyles.item>>, "selected">;
|
|
17578
17595
|
|
|
17596
|
+
declare const sideNavigationStyles: {
|
|
17597
|
+
sideNavigation: RuntimeFn<{
|
|
17598
|
+
active: {
|
|
17599
|
+
true: {
|
|
17600
|
+
color: `var(--${string})` | `var(--${string}, ${string})`;
|
|
17601
|
+
":after": {
|
|
17602
|
+
content: "";
|
|
17603
|
+
position: "absolute";
|
|
17604
|
+
left: number;
|
|
17605
|
+
right: number;
|
|
17606
|
+
top: number;
|
|
17607
|
+
bottom: number;
|
|
17608
|
+
backgroundColor: `var(--${string})` | `var(--${string}, ${string})`;
|
|
17609
|
+
};
|
|
17610
|
+
":hover": {
|
|
17611
|
+
backgroundColor: `var(--${string})` | `var(--${string}, ${string})`;
|
|
17612
|
+
};
|
|
17613
|
+
":active": {
|
|
17614
|
+
backgroundColor: `var(--${string})` | `var(--${string}, ${string})`;
|
|
17615
|
+
};
|
|
17616
|
+
":disabled": {
|
|
17617
|
+
backgroundColor: `var(--${string})` | `var(--${string}, ${string})`;
|
|
17618
|
+
cursor: "not-allowed";
|
|
17619
|
+
};
|
|
17620
|
+
};
|
|
17621
|
+
};
|
|
17622
|
+
}>;
|
|
17623
|
+
item: RuntimeFn<{
|
|
17624
|
+
/**
|
|
17625
|
+
* Determines the level of nesting for the item.
|
|
17626
|
+
*/
|
|
17627
|
+
level: {
|
|
17628
|
+
0: {
|
|
17629
|
+
paddingLeft: `var(--${string})` | `var(--${string}, ${string})`;
|
|
17630
|
+
};
|
|
17631
|
+
1: {
|
|
17632
|
+
paddingLeft: `var(--${string})` | `var(--${string}, ${string})`;
|
|
17633
|
+
};
|
|
17634
|
+
2: {
|
|
17635
|
+
paddingLeft: `var(--${string})` | `var(--${string}, ${string})`;
|
|
17636
|
+
};
|
|
17637
|
+
};
|
|
17638
|
+
}>;
|
|
17639
|
+
name: RuntimeFn<{
|
|
17640
|
+
active: {
|
|
17641
|
+
true: {
|
|
17642
|
+
color: `var(--${string})` | `var(--${string}, ${string})`;
|
|
17643
|
+
};
|
|
17644
|
+
};
|
|
17645
|
+
disabled: {
|
|
17646
|
+
true: {
|
|
17647
|
+
color: `var(--${string})` | `var(--${string}, ${string})`;
|
|
17648
|
+
};
|
|
17649
|
+
};
|
|
17650
|
+
}>;
|
|
17651
|
+
description: RuntimeFn<{
|
|
17652
|
+
disabled: {
|
|
17653
|
+
true: {
|
|
17654
|
+
color: `var(--${string})` | `var(--${string}, ${string})`;
|
|
17655
|
+
};
|
|
17656
|
+
};
|
|
17657
|
+
}>;
|
|
17658
|
+
content: RuntimeFn<{
|
|
17659
|
+
open: {
|
|
17660
|
+
true: {
|
|
17661
|
+
overflow: "visible";
|
|
17662
|
+
maxHeight: "unset";
|
|
17663
|
+
marginTop: `var(--${string})` | `var(--${string}, ${string})`;
|
|
17664
|
+
};
|
|
17665
|
+
};
|
|
17666
|
+
}>;
|
|
17667
|
+
};
|
|
17668
|
+
|
|
17669
|
+
type SideNavigationVariants = NonNullable<RecipeVariants<typeof sideNavigationStyles.sideNavigation> & RecipeVariants<typeof sideNavigationStyles.item>>;
|
|
17670
|
+
|
|
17579
17671
|
declare const stepperStyles: {
|
|
17580
17672
|
stepper: RuntimeFn<{
|
|
17581
17673
|
/**
|
|
@@ -17984,6 +18076,14 @@ interface ModalHeaderTypings {
|
|
|
17984
18076
|
}
|
|
17985
18077
|
type ModalHeaderProps = ModalHeaderTypings;
|
|
17986
18078
|
|
|
18079
|
+
interface BreadcrumbItemTyping {
|
|
18080
|
+
/**
|
|
18081
|
+
* The name of the breadcrumb item. This is typically the text that is displayed for the item.
|
|
18082
|
+
*/
|
|
18083
|
+
name?: string;
|
|
18084
|
+
}
|
|
18085
|
+
type BreadcrumbItemProps = BreadcrumbItemTyping & BreadcrumbVariants;
|
|
18086
|
+
|
|
17987
18087
|
type LinkProps = LinkVariants;
|
|
17988
18088
|
|
|
17989
18089
|
interface PaginationTyping {
|
|
@@ -18013,6 +18113,26 @@ interface PaginationTyping {
|
|
|
18013
18113
|
}
|
|
18014
18114
|
type PaginationProps = PaginationTyping & PaginationVariants;
|
|
18015
18115
|
|
|
18116
|
+
interface SideNavigationTyping {
|
|
18117
|
+
/**
|
|
18118
|
+
* Title of the sideNavigation
|
|
18119
|
+
*/
|
|
18120
|
+
name: string;
|
|
18121
|
+
/**
|
|
18122
|
+
* Description of the sideNavigation.
|
|
18123
|
+
*/
|
|
18124
|
+
description?: string;
|
|
18125
|
+
}
|
|
18126
|
+
type SideNavigationProps = SideNavigationTyping & SideNavigationVariants;
|
|
18127
|
+
|
|
18128
|
+
interface SideNavigationItemTypings {
|
|
18129
|
+
/**
|
|
18130
|
+
* Determines if the item is active or not.
|
|
18131
|
+
*/
|
|
18132
|
+
active?: boolean;
|
|
18133
|
+
}
|
|
18134
|
+
type SideNavigationItemProps = SideNavigationItemTypings & Pick<SideNavigationVariants, "level">;
|
|
18135
|
+
|
|
18016
18136
|
declare global {
|
|
18017
18137
|
interface HTMLElementTagNameMap {
|
|
18018
18138
|
"rarui-avatar": RaruiAvatar;
|
|
@@ -18729,6 +18849,86 @@ declare class RaruiToggle extends LitElement {
|
|
|
18729
18849
|
render(): TemplateResult<1>;
|
|
18730
18850
|
}
|
|
18731
18851
|
|
|
18852
|
+
declare global {
|
|
18853
|
+
interface HTMLElementTagNameMap {
|
|
18854
|
+
"rarui-breadcrumb": RaruiBreadcrumb;
|
|
18855
|
+
}
|
|
18856
|
+
}
|
|
18857
|
+
/**
|
|
18858
|
+
* ## Rarui Breadcrumb
|
|
18859
|
+
* ---
|
|
18860
|
+
* Componente de navegação hierárquica que permite aos usuários navegar através de uma estrutura de páginas.
|
|
18861
|
+
*
|
|
18862
|
+
* See [a complete document](https://rarui.rarolabs.com.br/docs/components-web-components/navigation/breadcrumb) for more details.
|
|
18863
|
+
*/
|
|
18864
|
+
interface BreadcrumbProperties {
|
|
18865
|
+
/**
|
|
18866
|
+
* Especifica o número de itens do breadcrumb a serem exibidos após o truncamento.
|
|
18867
|
+
* Útil para gerenciar a exibição de listas longas de breadcrumb.
|
|
18868
|
+
* @default 10
|
|
18869
|
+
*/
|
|
18870
|
+
'items-after-truncate'?: number;
|
|
18871
|
+
}
|
|
18872
|
+
|
|
18873
|
+
declare class RaruiBreadcrumb extends LitElement {
|
|
18874
|
+
itemsAfterTruncate: BreadcrumbProperties["items-after-truncate"];
|
|
18875
|
+
private items;
|
|
18876
|
+
private visibleItems;
|
|
18877
|
+
private hiddenItems;
|
|
18878
|
+
private firstItem?;
|
|
18879
|
+
static styles: CSSResult;
|
|
18880
|
+
connectedCallback(): void;
|
|
18881
|
+
private updateItems;
|
|
18882
|
+
private getTextContent;
|
|
18883
|
+
private getSlotContent;
|
|
18884
|
+
private calculateVisibilityDistribution;
|
|
18885
|
+
private renderSeparator;
|
|
18886
|
+
private renderFirstItem;
|
|
18887
|
+
private renderDropdownItems;
|
|
18888
|
+
private renderVisibleItems;
|
|
18889
|
+
render(): TemplateResult<1>;
|
|
18890
|
+
}
|
|
18891
|
+
|
|
18892
|
+
declare global {
|
|
18893
|
+
interface HTMLElementTagNameMap {
|
|
18894
|
+
"rarui-breadcrumb-item": RaruiBreadcrumbItem;
|
|
18895
|
+
}
|
|
18896
|
+
}
|
|
18897
|
+
/**
|
|
18898
|
+
* ## Rarui BreadcrumbItem
|
|
18899
|
+
* ---
|
|
18900
|
+
* Item individual do breadcrumb que pode ser renderizado como link ou botão.
|
|
18901
|
+
*
|
|
18902
|
+
* See [a complete document](https://rarui.rarolabs.com.br/docs/components-web-components/navigation/breadcrumb-item) for more details.
|
|
18903
|
+
*/
|
|
18904
|
+
type BreadcrumbItemProperties = BreadcrumbItemProps & {
|
|
18905
|
+
/**
|
|
18906
|
+
* Nome do item do breadcrumb exibido como texto.
|
|
18907
|
+
*/
|
|
18908
|
+
name?: string;
|
|
18909
|
+
/**
|
|
18910
|
+
* URL de destino quando o item for um link.
|
|
18911
|
+
*/
|
|
18912
|
+
href?: string;
|
|
18913
|
+
/**
|
|
18914
|
+
* Tipo de elemento a ser renderizado.
|
|
18915
|
+
* @default "button"
|
|
18916
|
+
*/
|
|
18917
|
+
as?: "button" | "a";
|
|
18918
|
+
};
|
|
18919
|
+
|
|
18920
|
+
declare class RaruiBreadcrumbItem extends LitElement {
|
|
18921
|
+
name?: BreadcrumbItemProperties["name"];
|
|
18922
|
+
href?: BreadcrumbItemProperties["href"];
|
|
18923
|
+
active?: BreadcrumbItemProperties["active"];
|
|
18924
|
+
as?: BreadcrumbItemProperties["as"];
|
|
18925
|
+
static styles: CSSResult;
|
|
18926
|
+
private handleClick;
|
|
18927
|
+
render(): TemplateResult<1>;
|
|
18928
|
+
private renderContent;
|
|
18929
|
+
private hasSlotContent;
|
|
18930
|
+
}
|
|
18931
|
+
|
|
18732
18932
|
declare global {
|
|
18733
18933
|
interface HTMLElementTagNameMap {
|
|
18734
18934
|
"rarui-link": RaruiLink;
|
|
@@ -18806,6 +19006,88 @@ declare class RaruiPagination extends LitElement {
|
|
|
18806
19006
|
render(): TemplateResult<1>;
|
|
18807
19007
|
}
|
|
18808
19008
|
|
|
19009
|
+
declare global {
|
|
19010
|
+
interface HTMLElementTagNameMap {
|
|
19011
|
+
"rarui-side-navigation": RaruiSideNavigation;
|
|
19012
|
+
}
|
|
19013
|
+
}
|
|
19014
|
+
/**
|
|
19015
|
+
* ## Rarui SideNavigation
|
|
19016
|
+
* ---
|
|
19017
|
+
* A navigation component that supports collapsible content with nested items.
|
|
19018
|
+
*
|
|
19019
|
+
* ### Slots
|
|
19020
|
+
* - **Default slot**: Content for nested navigation items
|
|
19021
|
+
* - **leading-start**: Content to display at the start (e.g., icons)
|
|
19022
|
+
* - **leading-end**: Content to display at the end (e.g., custom icons)
|
|
19023
|
+
*
|
|
19024
|
+
* See [a complete document](https://rarui.rarolabs.com.br/docs/components-web-components/navigation/side-navigation) for more details.
|
|
19025
|
+
*/
|
|
19026
|
+
type SideNavigationProperties = Partial<SideNavigationProps> & {
|
|
19027
|
+
/**
|
|
19028
|
+
* Whether the navigation item is disabled.
|
|
19029
|
+
* @default false
|
|
19030
|
+
*/
|
|
19031
|
+
disabled?: boolean;
|
|
19032
|
+
/**
|
|
19033
|
+
* Whether the navigation item is in active state.
|
|
19034
|
+
* @default false
|
|
19035
|
+
*/
|
|
19036
|
+
active?: boolean;
|
|
19037
|
+
/**
|
|
19038
|
+
* The HTML element type to render.
|
|
19039
|
+
* @default "button"
|
|
19040
|
+
*/
|
|
19041
|
+
as?: "button" | "a";
|
|
19042
|
+
};
|
|
19043
|
+
|
|
19044
|
+
declare class RaruiSideNavigation extends LitElement {
|
|
19045
|
+
name: SideNavigationProperties["name"];
|
|
19046
|
+
description: SideNavigationProperties["description"];
|
|
19047
|
+
active: SideNavigationProperties["active"];
|
|
19048
|
+
disabled: SideNavigationProperties["disabled"];
|
|
19049
|
+
as: SideNavigationProperties["as"];
|
|
19050
|
+
private _open;
|
|
19051
|
+
private _buttonRef;
|
|
19052
|
+
static styles: CSSResult;
|
|
19053
|
+
connectedCallback(): void;
|
|
19054
|
+
private _handleToggle;
|
|
19055
|
+
private _hasChildItems;
|
|
19056
|
+
private _renderLeadingEnd;
|
|
19057
|
+
private _renderContent;
|
|
19058
|
+
render(): TemplateResult<1>;
|
|
19059
|
+
}
|
|
19060
|
+
|
|
19061
|
+
declare global {
|
|
19062
|
+
interface HTMLElementTagNameMap {
|
|
19063
|
+
"rarui-side-navigation-item": RaruiSideNavigationItem;
|
|
19064
|
+
}
|
|
19065
|
+
}
|
|
19066
|
+
/**
|
|
19067
|
+
* ## Rarui SideNavigationItem
|
|
19068
|
+
* ---
|
|
19069
|
+
* A navigation item component for use within SideNavigation.
|
|
19070
|
+
*
|
|
19071
|
+
* See [a complete document](https://rarui.rarolabs.com.br/docs/components-web-components/navigation/side-navigation) for more details.
|
|
19072
|
+
*/
|
|
19073
|
+
type SideNavigationItemProperties = Partial<SideNavigationItemProps> & {
|
|
19074
|
+
/**
|
|
19075
|
+
* The HTML element type to render.
|
|
19076
|
+
* @default "button"
|
|
19077
|
+
*/
|
|
19078
|
+
as?: "button" | "a";
|
|
19079
|
+
};
|
|
19080
|
+
|
|
19081
|
+
declare class RaruiSideNavigationItem extends LitElement {
|
|
19082
|
+
active: SideNavigationItemProperties["active"];
|
|
19083
|
+
level: SideNavigationItemProperties["level"];
|
|
19084
|
+
as: SideNavigationItemProperties["as"];
|
|
19085
|
+
private _itemRef;
|
|
19086
|
+
static styles: CSSResult;
|
|
19087
|
+
private _handleClick;
|
|
19088
|
+
render(): TemplateResult<1>;
|
|
19089
|
+
}
|
|
19090
|
+
|
|
18809
19091
|
declare global {
|
|
18810
19092
|
interface HTMLElementTagNameMap {
|
|
18811
19093
|
"rarui-banner": RaruiBanner;
|