@rarui/components 1.19.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/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
  /**
@@ -18059,6 +18076,14 @@ interface ModalHeaderTypings {
18059
18076
  }
18060
18077
  type ModalHeaderProps = ModalHeaderTypings;
18061
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
+
18062
18087
  type LinkProps = LinkVariants;
18063
18088
 
18064
18089
  interface PaginationTyping {
@@ -18824,6 +18849,86 @@ declare class RaruiToggle extends LitElement {
18824
18849
  render(): TemplateResult<1>;
18825
18850
  }
18826
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
+
18827
18932
  declare global {
18828
18933
  interface HTMLElementTagNameMap {
18829
18934
  "rarui-link": RaruiLink;