@rarui/components 1.23.0 → 1.24.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
@@ -18350,6 +18350,9 @@ declare class RaruiAvatar extends LitElement {
18350
18350
  size?: AvatarProperties["size"];
18351
18351
  static styles: CSSResult;
18352
18352
  render(): TemplateResult<1>;
18353
+ private handleSlotChange;
18354
+ private handleImageError;
18355
+ private handleImageLoad;
18353
18356
  }
18354
18357
 
18355
18358
  declare global {
@@ -18401,7 +18404,7 @@ declare class RaruiDivider extends LitElement {
18401
18404
  render(): TemplateResult<1>;
18402
18405
  }
18403
18406
 
18404
- type IconName = "phone-call-outlined" | "add-circle-filled" | "add-circle-outlined" | "alarm-filled" | "alarm-outlined" | "alternate-email" | "archive-all-filled" | "archive-all-outlined" | "archive-filled" | "archive-in-filled" | "archive-in-outlined" | "archive-outlined" | "arrow-alt-down" | "arrow-alt-left" | "arrow-alt-right" | "arrow-alt-up" | "arrow-circle-down-filled" | "arrow-circle-down-outlined" | "arrow-circle-up-filled" | "arrow-circle-up-outlined" | "arrow-circled-down-circle-outlined" | "arrow-circled-down-filled" | "arrow-circled-up-circle-outlined" | "arrow-direction-down-up" | "arrow-direction-left-right" | "arrow-direction-right-left" | "arrow-direction-up-down" | "arrow-directions" | "arrow-down" | "arrow-down-left" | "arrow-down-right" | "arrow-first-page" | "arrow-last-page" | "arrow-left" | "arrow-line-down" | "arrow-line-left" | "arrow-line-long-down" | "arrow-line-long-left" | "arrow-line-long-right" | "arrow-line-long-up" | "arrow-line-right" | "arrow-line-up" | "arrow-right" | "arrow-subdirectory-left" | "arrow-subdirectory-right" | "arrow-trending-down" | "arrow-trending-up" | "arrow-up" | "arrow-up-left" | "arrow-up-right" | "attachment" | "backspace" | "backspace-outlined" | "barley" | "barley-off" | "bolt-circle-filled" | "bolt-circle-outlined" | "bookmark-filled" | "bookmark-outlined" | "calendar-date-range-filled" | "calendar-date-range-outlined" | "calendar-event-filled" | "calendar-event-outlined" | "calendar-filled" | "calendar-outlined" | "camera-filled" | "camera-outlined" | "camera-shutter-filled" | "camera-shutter-outlined" | "cancel-circle-filled" | "cancel-circle-outlined" | "car-filled" | "car-outlined" | "chart-bars-filled" | "chart-bars-outlined" | "chat-bubble-filled" | "chat-bubble-outlined" | "chat-message-filled" | "chat-message-outlined" | "check" | "check-circle-filled" | "check-circle-outlined" | "check-small" | "chevron-big-down" | "chevron-big-left" | "chevron-big-right" | "chevron-big-up" | "chevron-down" | "chevron-left" | "chevron-right" | "chevron-up" | "clock-filled" | "clock-outlined" | "close" | "cloud-filled" | "cloud-outlined" | "contact-support-filled" | "contact-support-outlined" | "content-copy-filled" | "content-copy-outlined" | "content-paste-filled" | "content-paste-outlined" | "conversation-filled" | "conversation-outlined" | "copyright-filled" | "copyright-outlined" | "credit-card-filled" | "credit-card-outlined" | "danger-filled" | "danger-outlined" | "dashboard-filled" | "dashboard-outlined" | "document-filled" | "document-outlined" | "document-text-filled" | "document-text-outlined" | "download-filled" | "download-outlined" | "eco-filled" | "eco-outlined" | "edit-filled" | "edit-outlined" | "euro-symbol" | "exit-fullscreen" | "eye-filled" | "eye-off-filled" | "eye-off-outlined" | "eye-outlined" | "facebook-filled" | "facebook-outlined" | "file-copy-filled" | "file-copy-outlined" | "filter-alt-filled" | "filter-alt-outlined" | "filter-list" | "fingerprint" | "flag-filled" | "flag-outlined" | "flag-tour-filled" | "flag-tour-outlined" | "flower-filled" | "flower-outlined" | "folder-filled" | "folder-list-filled" | "folder-list-outlined" | "folder-open" | "folder-outlined" | "fruit-apple-filled" | "fruit-apple-outlined" | "fullscreen-filled" | "fullscreen-outlined" | "google" | "google-play" | "headphones-filled" | "headphones-outlined" | "heart-filled" | "heart-outlined" | "help-filled" | "help-outlined" | "history" | "home-filled" | "home-outlined" | "image-filled" | "image-outlined" | "info-circle-filled" | "info-circle-outlined" | "instagram" | "instagram-outlined" | "label-filled" | "label-important-filled" | "label-important-outlined" | "label-outlined" | "language" | "lightbulb-filled" | "lightbulb-outlined" | "link" | "linkedin-filled" | "linkedin-outlined" | "loader" | "loading" | "lock-filled" | "lock-open-filled" | "lock-open-outlined" | "lock-outlined" | "login" | "logout" | "mail-filled" | "mail-open-filled" | "mail-open-outlined" | "mail-outlined" | "menu" | "menu-large" | "microphone-filled" | "microphone-outlined" | "minus" | "money-filled" | "money-outlined" | "mood-bad" | "mood-bad-outlined" | "mood-filled" | "mood-outlined" | "more-horiz" | "more-vert" | "music-note-filled" | "music-note-outlined" | "notification-filled" | "notification-outlined" | "open-in-new" | "package" | "package-outlined" | "pause-filled" | "pause-outlined" | "pets-filled" | "pets-outlined" | "phone-call-filled" | "phone-filled" | "phone-outlined" | "pin-filled" | "pin-outlined" | "play-arrow-filled" | "play-arrow-outlined" | "play-circle-filled" | "play-circle-outlined" | "plus" | "power-settings-new" | "printer-filled" | "printer-outlined" | "push-pin-filled" | "push-pin-outlined" | "receipt-filled" | "receipt-outlined" | "recycle" | "redeem" | "redo" | "refresh" | "refresh-alt" | "remove" | "remove-circle-filled" | "remove-circle-outlined" | "repeat" | "reply" | "save-alt" | "screen-outlined" | "search" | "send-filled" | "send-outlined" | "sentiment-dissatisfied-filled" | "sentiment-dissatisfied-outlined" | "sentiment-neutral-filled" | "sentiment-neutral-outlined" | "sentiment-satisfied-filled" | "sentiment-satisfied-outlined" | "sentiment-very-dissatisfied-filled" | "sentiment-very-dissatisfied-outlined" | "sentiment-very-satisfied-filled" | "sentiment-very-satisfied-outlined" | "settings-filled" | "settings-outlined" | "share-filled" | "share-outlined" | "shopping-bag-filled" | "shopping-bag-outlined" | "shopping-cart-add" | "shopping-cart-filled" | "shopping-cart-outlined" | "sprout" | "sprout-outline-outlined" | "star-filled" | "star-outlined" | "stay-primary-portrait" | "storefront" | "tag-filled" | "tag-outlined" | "textsms-filled" | "textsms-outlined" | "thumb-down-filled" | "thumb-down-outlined" | "thumb-up-filled" | "thumb-up-outlined" | "tiktok" | "toc" | "trash-filled" | "trash-outlined" | "truck-filled" | "truck-outlined" | "tune" | "twitter" | "undo" | "upload-filled" | "upload-outlined" | "user-circle-filled" | "user-circle-outlined" | "user-filled" | "user-outlined" | "user-square-filled" | "user-square-outlined" | "users-filled" | "users-outlined" | "view-grid-filled" | "view-grid-outlined" | "view-list-filled" | "view-list-outlined" | "warning-bubble-filled" | "warning-bubble-outlined" | "warning-filled" | "warning-outlined" | "whatsapp-filled" | "whatsapp-outlined" | "work-filled" | "work-outlined" | "wysiwyg-filled" | "youtube-filled" | "youtube-outlined" | "zoom-in" | "zoom-out";
18407
+ type IconName = "add-circle-filled" | "add-circle-outlined" | "alarm-filled" | "alarm-outlined" | "alternate-email" | "archive-all-filled" | "archive-all-outlined" | "archive-filled" | "archive-in-filled" | "archive-in-outlined" | "archive-outlined" | "arrow-alt-down" | "arrow-alt-left" | "arrow-alt-right" | "arrow-alt-up" | "arrow-circle-down-filled" | "arrow-circle-down-outlined" | "arrow-circle-up-filled" | "arrow-circle-up-outlined" | "arrow-circled-down-circle-outlined" | "arrow-circled-down-filled" | "arrow-circled-up-circle-outlined" | "arrow-direction-down-up" | "arrow-direction-left-right" | "arrow-direction-right-left" | "arrow-direction-up-down" | "arrow-directions" | "arrow-down" | "arrow-down-left" | "arrow-down-right" | "arrow-first-page" | "arrow-last-page" | "arrow-left" | "arrow-line-down" | "arrow-line-left" | "arrow-line-long-down" | "arrow-line-long-left" | "arrow-line-long-right" | "arrow-line-long-up" | "arrow-line-right" | "arrow-line-up" | "arrow-right" | "arrow-subdirectory-left" | "arrow-subdirectory-right" | "arrow-trending-down" | "arrow-trending-up" | "arrow-up" | "arrow-up-left" | "arrow-up-right" | "attachment" | "backspace" | "backspace-outlined" | "barley" | "barley-off" | "bolt-circle-filled" | "bolt-circle-outlined" | "bookmark-filled" | "bookmark-outlined" | "calendar-date-range-filled" | "calendar-date-range-outlined" | "calendar-event-filled" | "calendar-event-outlined" | "calendar-filled" | "calendar-outlined" | "camera-filled" | "camera-outlined" | "camera-shutter-filled" | "camera-shutter-outlined" | "cancel-circle-filled" | "cancel-circle-outlined" | "car-filled" | "car-outlined" | "chart-bars-filled" | "chart-bars-outlined" | "chat-bubble-filled" | "chat-bubble-outlined" | "chat-message-filled" | "chat-message-outlined" | "check" | "check-circle-filled" | "check-circle-outlined" | "check-small" | "chevron-big-down" | "chevron-big-left" | "chevron-big-right" | "chevron-big-up" | "chevron-down" | "chevron-left" | "chevron-right" | "chevron-up" | "clock-filled" | "clock-outlined" | "close" | "cloud-filled" | "cloud-outlined" | "contact-support-filled" | "contact-support-outlined" | "content-copy-filled" | "content-copy-outlined" | "content-paste-filled" | "content-paste-outlined" | "conversation-filled" | "conversation-outlined" | "copyright-filled" | "copyright-outlined" | "credit-card-filled" | "credit-card-outlined" | "danger-filled" | "danger-outlined" | "dashboard-filled" | "dashboard-outlined" | "document-filled" | "document-outlined" | "document-text-filled" | "document-text-outlined" | "download-filled" | "download-outlined" | "eco-filled" | "eco-outlined" | "edit-filled" | "edit-outlined" | "euro-symbol" | "exit-fullscreen" | "eye-filled" | "eye-off-filled" | "eye-off-outlined" | "eye-outlined" | "facebook-filled" | "facebook-outlined" | "file-copy-filled" | "file-copy-outlined" | "filter-alt-filled" | "filter-alt-outlined" | "filter-list" | "fingerprint" | "flag-filled" | "flag-outlined" | "flag-tour-filled" | "flag-tour-outlined" | "flower-filled" | "flower-outlined" | "folder-filled" | "folder-list-filled" | "folder-list-outlined" | "folder-open" | "folder-outlined" | "fruit-apple-filled" | "fruit-apple-outlined" | "fullscreen-filled" | "fullscreen-outlined" | "google" | "google-play" | "headphones-filled" | "headphones-outlined" | "heart-filled" | "heart-outlined" | "help-filled" | "help-outlined" | "history" | "home-filled" | "home-outlined" | "image-filled" | "image-outlined" | "info-circle-filled" | "info-circle-outlined" | "instagram" | "instagram-outlined" | "label-filled" | "label-important-filled" | "label-important-outlined" | "label-outlined" | "language" | "lightbulb-filled" | "lightbulb-outlined" | "link" | "linkedin-filled" | "linkedin-outlined" | "loader" | "loading" | "lock-filled" | "lock-open-filled" | "lock-open-outlined" | "lock-outlined" | "login" | "logout" | "mail-filled" | "mail-open-filled" | "mail-open-outlined" | "mail-outlined" | "menu" | "menu-large" | "microphone-filled" | "microphone-outlined" | "minus" | "money-filled" | "money-outlined" | "mood-bad" | "mood-bad-outlined" | "mood-filled" | "mood-outlined" | "more-horiz" | "more-vert" | "music-note-filled" | "music-note-outlined" | "notification-filled" | "notification-outlined" | "open-in-new" | "package" | "package-outlined" | "pause-filled" | "pause-outlined" | "pets-filled" | "pets-outlined" | "phone-call-filled" | "phone-call-outlined" | "phone-filled" | "phone-outlined" | "pin-filled" | "pin-outlined" | "play-arrow-filled" | "play-arrow-outlined" | "play-circle-filled" | "play-circle-outlined" | "plus" | "power-settings-new" | "printer-filled" | "printer-outlined" | "push-pin-filled" | "push-pin-outlined" | "receipt-filled" | "receipt-outlined" | "recycle" | "redeem" | "redo" | "refresh" | "refresh-alt" | "remove" | "remove-circle-filled" | "remove-circle-outlined" | "repeat" | "reply" | "save-alt" | "screen-outlined" | "search" | "send-filled" | "send-outlined" | "sentiment-dissatisfied-filled" | "sentiment-dissatisfied-outlined" | "sentiment-neutral-filled" | "sentiment-neutral-outlined" | "sentiment-satisfied-filled" | "sentiment-satisfied-outlined" | "sentiment-very-dissatisfied-filled" | "sentiment-very-dissatisfied-outlined" | "sentiment-very-satisfied-filled" | "sentiment-very-satisfied-outlined" | "settings-filled" | "settings-outlined" | "share-filled" | "share-outlined" | "shopping-bag-filled" | "shopping-bag-outlined" | "shopping-cart-add" | "shopping-cart-filled" | "shopping-cart-outlined" | "sprout" | "sprout-outline-outlined" | "star-filled" | "star-outlined" | "stay-primary-portrait" | "storefront" | "tag-filled" | "tag-outlined" | "textsms-filled" | "textsms-outlined" | "thumb-down-filled" | "thumb-down-outlined" | "thumb-up-filled" | "thumb-up-outlined" | "tiktok" | "toc" | "trash-filled" | "trash-outlined" | "truck-filled" | "truck-outlined" | "tune" | "twitter" | "undo" | "upload-filled" | "upload-outlined" | "user-circle-filled" | "user-circle-outlined" | "user-filled" | "user-outlined" | "user-square-filled" | "user-square-outlined" | "users-filled" | "users-outlined" | "view-grid-filled" | "view-grid-outlined" | "view-list-filled" | "view-list-outlined" | "warning-bubble-filled" | "warning-bubble-outlined" | "warning-filled" | "warning-outlined" | "whatsapp-filled" | "whatsapp-outlined" | "work-filled" | "work-outlined" | "wysiwyg-filled" | "youtube-filled" | "youtube-outlined" | "zoom-in" | "zoom-out";
18405
18408
 
18406
18409
  declare global {
18407
18410
  interface HTMLElementTagNameMap {
@@ -18476,12 +18479,13 @@ type StepperStepManifestProperties = StepperStepProps;
18476
18479
  type StepperStepProperties = WebComponentProperties<StepperStepManifestProperties>;
18477
18480
 
18478
18481
  declare class RaruiStepperStep extends LitElement {
18479
- description: StepperStepProperties["description"];
18480
- active: StepperStepProperties["active"];
18481
- done: StepperStepProperties["done"];
18482
+ description?: StepperStepProperties["description"];
18483
+ active?: StepperStepProperties["active"];
18484
+ done?: StepperStepProperties["done"];
18482
18485
  private direction;
18483
18486
  static styles: CSSResult;
18484
18487
  connectedCallback(): void;
18488
+ private getStepAriaLabel;
18485
18489
  render(): TemplateResult<1>;
18486
18490
  }
18487
18491
 
@@ -18521,17 +18525,24 @@ declare global {
18521
18525
  *
18522
18526
  See [a complete document](https://rarui.rarolabs.com.br/docs/components-web-components/exhibition/typography) for more details.
18523
18527
  */
18524
- type TextManifestProperties = TextProps;
18525
- type TextProperties = WebComponentProperties<TextManifestProperties, "as">;
18528
+ type TextManifestProperties = TextProps & {
18529
+ /**
18530
+ * Changes the rendered element for semantic HTML.
18531
+ * @default p
18532
+ */
18533
+ as?: "p" | "span" | "div" | "small" | "strong" | "em";
18534
+ };
18535
+ type TextProperties = WebComponentProperties<TextManifestProperties>;
18526
18536
 
18527
18537
  declare class RaruiText extends LitElement {
18528
18538
  sprinkleAttrs: Record<string, string>;
18539
+ as: TextProperties["as"];
18529
18540
  "line-clamp"?: TextProperties["line-clamp"];
18530
18541
  "color"?: TextProperties["color"];
18531
18542
  "font-weight"?: TextProperties["font-weight"];
18532
18543
  "text-align"?: TextProperties["text-align"];
18533
18544
  static styles: CSSResult;
18534
- render(): TemplateResult<1>;
18545
+ render(): TemplateResult;
18535
18546
  }
18536
18547
 
18537
18548
  declare global {
@@ -18546,16 +18557,22 @@ declare global {
18546
18557
  *
18547
18558
  See [a complete document](https://rarui.rarolabs.com.br/docs/components-web-components/exhibition/typography) for more details.
18548
18559
  */
18549
- type TitleManifestProperties = TitleProps;
18560
+ type TitleManifestProperties = TitleProps & {
18561
+ /**
18562
+ * Changes the rendered heading element for semantic hierarchy.
18563
+ * @default h1
18564
+ */
18565
+ as?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
18566
+ };
18550
18567
  type TitleProperties = WebComponentProperties<TitleManifestProperties>;
18551
18568
 
18552
18569
  declare class RaruiTitle extends LitElement {
18553
18570
  sprinkleAttrs: Record<string, string>;
18554
- as?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
18571
+ as: TitleProperties["as"];
18555
18572
  "font-weight"?: TitleProperties["font-weight"];
18556
18573
  "text-align"?: TitleProperties["text-align"];
18557
18574
  static styles: CSSResult;
18558
- render(): TemplateResult<1>;
18575
+ render(): TemplateResult;
18559
18576
  }
18560
18577
 
18561
18578
  declare type AlignedPlacement = `${Side}-${Alignment}`;
@@ -18726,6 +18743,18 @@ type ButtonManifestProperties = ButtonProps & {
18726
18743
  * @default button
18727
18744
  */
18728
18745
  type?: "button" | "submit" | "reset";
18746
+ /**
18747
+ * The name of the button for form submission.
18748
+ */
18749
+ name?: string;
18750
+ /**
18751
+ * The value of the button for form submission.
18752
+ */
18753
+ value?: string;
18754
+ /**
18755
+ * Associates the button with a form element by ID.
18756
+ */
18757
+ form?: string;
18729
18758
  };
18730
18759
  type ButtonProperties = WebComponentProperties<ButtonManifestProperties>;
18731
18760
 
@@ -18736,6 +18765,9 @@ declare class RaruiButton extends LitElement {
18736
18765
  appearance: ButtonProperties["appearance"];
18737
18766
  disabled: ButtonProperties["disabled"];
18738
18767
  full: ButtonProperties["full"];
18768
+ name: ButtonProperties["name"];
18769
+ value: ButtonProperties["value"];
18770
+ form: ButtonProperties["form"];
18739
18771
  static styles: CSSResult;
18740
18772
  render(): TemplateResult<1>;
18741
18773
  }
@@ -18774,6 +18806,23 @@ type CheckboxManifestProperties = CheckboxProps & {
18774
18806
  * @default false
18775
18807
  */
18776
18808
  readonly?: boolean;
18809
+ /**
18810
+ * The name of the checkbox for form submission.
18811
+ */
18812
+ name?: string;
18813
+ /**
18814
+ * The value of the checkbox when checked for form submission.
18815
+ */
18816
+ value?: string;
18817
+ /**
18818
+ * Associates the checkbox with a form element by ID.
18819
+ */
18820
+ form?: string;
18821
+ /**
18822
+ * Indicates whether the checkbox is required for form validation.
18823
+ * @default false
18824
+ */
18825
+ required?: boolean;
18777
18826
  };
18778
18827
  type CheckboxProperties = WebComponentProperties<CheckboxManifestProperties>;
18779
18828
 
@@ -18784,8 +18833,12 @@ declare class RaruiCheckbox extends LitElement {
18784
18833
  indeterminate: CheckboxProperties["indeterminate"];
18785
18834
  disabled: boolean;
18786
18835
  checked: boolean;
18787
- private _hasCheckedAttribute;
18788
18836
  readonly: boolean;
18837
+ required: boolean;
18838
+ name?: CheckboxProperties["name"];
18839
+ value?: CheckboxProperties["value"];
18840
+ form?: CheckboxProperties["form"];
18841
+ private _hasCheckedAttribute;
18789
18842
  private input;
18790
18843
  static styles: CSSResult;
18791
18844
  connectedCallback(): void;
@@ -18793,6 +18846,7 @@ declare class RaruiCheckbox extends LitElement {
18793
18846
  updated(changedProperties: Map<string, any>): void;
18794
18847
  render(): TemplateResult<1>;
18795
18848
  private _onChange;
18849
+ private getAriaCheckedValue;
18796
18850
  }
18797
18851
 
18798
18852
  declare global {
@@ -18813,6 +18867,23 @@ type ChipManifestProperties = ChipProps & {
18813
18867
  * @default false
18814
18868
  */
18815
18869
  disabled?: boolean;
18870
+ /**
18871
+ * Defines the native button type.
18872
+ * @default button
18873
+ */
18874
+ type?: "button" | "submit" | "reset";
18875
+ /**
18876
+ * The name of the chip for form submission.
18877
+ */
18878
+ name?: string;
18879
+ /**
18880
+ * The value of the chip for form submission.
18881
+ */
18882
+ value?: string;
18883
+ /**
18884
+ * Associates the chip with a form element by ID.
18885
+ */
18886
+ form?: string;
18816
18887
  };
18817
18888
  type ChipProperties = WebComponentProperties<ChipManifestProperties>;
18818
18889
 
@@ -18826,9 +18897,14 @@ declare class RaruiChip extends LitElement {
18826
18897
  textOverflow?: ChipProperties["text-overflow"];
18827
18898
  selected?: ChipProperties["selected"];
18828
18899
  disabled?: ChipProperties["disabled"];
18900
+ type: ChipProperties["type"];
18901
+ name?: ChipProperties["name"];
18902
+ value?: ChipProperties["value"];
18903
+ form?: ChipProperties["form"];
18829
18904
  static styles: CSSResult;
18830
18905
  private handleClick;
18831
18906
  private handleCloseClick;
18907
+ private handleCloseKeydown;
18832
18908
  render(): TemplateResult<1>;
18833
18909
  }
18834
18910
 
@@ -18909,6 +18985,7 @@ declare class RaruiDropdown extends LitElement {
18909
18985
  private handleKeyDown;
18910
18986
  private closeDropdown;
18911
18987
  private handleClick;
18988
+ private handleReferenceKeydown;
18912
18989
  updatePosition(): Promise<void>;
18913
18990
  private getMiddleware;
18914
18991
  computePosition(): Promise<void>;
@@ -18927,14 +19004,39 @@ declare global {
18927
19004
  *
18928
19005
  See [a complete document](https://rarui.rarolabs.com.br/docs/components-web-components/surface/dropdown) for more details.
18929
19006
  */
18930
- type DropdownItemManifestProperties = DropdownItemProps;
19007
+ type DropdownItemManifestProperties = DropdownItemProps & {
19008
+ /**
19009
+ * Disables the dropdown item, disallowing user interaction.
19010
+ * @default false
19011
+ */
19012
+ disabled?: boolean;
19013
+ /**
19014
+ * The value associated with this dropdown item for form submission or identification.
19015
+ */
19016
+ value?: string;
19017
+ /**
19018
+ * Defines the native button type.
19019
+ * @default button
19020
+ */
19021
+ type?: "button" | "submit" | "reset";
19022
+ /**
19023
+ * ARIA role for the dropdown item.
19024
+ * @default menuitem
19025
+ */
19026
+ role?: string;
19027
+ };
18931
19028
  type DropdownItemProperties = WebComponentProperties<DropdownItemManifestProperties>;
18932
19029
 
18933
19030
  declare class RaruiDropdownItem extends LitElement {
18934
19031
  name: DropdownItemProperties["name"];
18935
19032
  selected: DropdownItemProperties["selected"];
19033
+ disabled: DropdownItemProperties["disabled"];
19034
+ value: DropdownItemProperties["value"];
19035
+ type: DropdownItemProperties["type"];
18936
19036
  attributeChangedCallback(name: string, oldValue: string | null, newValue: string | null): void;
18937
19037
  static styles: CSSResult;
19038
+ private handleClick;
19039
+ private handleKeydown;
18938
19040
  render(): TemplateResult<1>;
18939
19041
  }
18940
19042
 
@@ -18950,7 +19052,25 @@ declare global {
18950
19052
  *
18951
19053
  See [a complete document](https://rarui.rarolabs.com.br/docs/components-web-components/input/button) for more details.
18952
19054
  */
18953
- type IconButtonManifestProperties = IconButtonProps;
19055
+ type IconButtonManifestProperties = IconButtonProps & {
19056
+ /**
19057
+ * Defines the native button type.
19058
+ * @default button
19059
+ */
19060
+ type?: "button" | "submit" | "reset";
19061
+ /**
19062
+ * The name of the button for form submission.
19063
+ */
19064
+ name?: string;
19065
+ /**
19066
+ * The value of the button for form submission.
19067
+ */
19068
+ value?: string;
19069
+ /**
19070
+ * Associates the button with a form element by ID.
19071
+ */
19072
+ form?: string;
19073
+ };
18954
19074
  type IconButtonProperties = WebComponentProperties<IconButtonManifestProperties>;
18955
19075
 
18956
19076
  declare class RaruiIconButton extends LitElement {
@@ -18959,7 +19079,12 @@ declare class RaruiIconButton extends LitElement {
18959
19079
  appearance: IconButtonProperties["appearance"];
18960
19080
  disabled: IconButtonProperties["disabled"];
18961
19081
  rounded: IconButtonProperties["rounded"];
19082
+ type: IconButtonProperties["type"];
19083
+ name: IconButtonProperties["name"];
19084
+ value: IconButtonProperties["value"];
19085
+ form: IconButtonProperties["form"];
18962
19086
  static styles: CSSResult;
19087
+ private handleClick;
18963
19088
  render(): TemplateResult<1>;
18964
19089
  }
18965
19090
 
@@ -18989,6 +19114,41 @@ type InputManifestProperties = InputProps & {
18989
19114
  * @default false
18990
19115
  */
18991
19116
  disabled?: boolean;
19117
+ /**
19118
+ * The type of input element.
19119
+ * @default text
19120
+ */
19121
+ type?: "text" | "email" | "password" | "tel" | "url" | "number" | "search" | "date" | "datetime-local" | "month" | "week" | "time" | "color" | "range" | "file" | "hidden";
19122
+ /**
19123
+ * The name of the input for form submission.
19124
+ */
19125
+ name?: string;
19126
+ /**
19127
+ * Associates the input with a form element by ID.
19128
+ */
19129
+ form?: string;
19130
+ /**
19131
+ * Whether the input is required.
19132
+ * @default false
19133
+ */
19134
+ required?: boolean;
19135
+ /**
19136
+ * Whether the input is readonly.
19137
+ * @default false
19138
+ */
19139
+ readonly?: boolean;
19140
+ /**
19141
+ * Minimum length of the input value.
19142
+ */
19143
+ minlength?: number;
19144
+ /**
19145
+ * Maximum length of the input value.
19146
+ */
19147
+ maxlength?: number;
19148
+ /**
19149
+ * Regular expression pattern for input validation.
19150
+ */
19151
+ pattern?: string;
18992
19152
  };
18993
19153
  type InputProperties = WebComponentProperties<InputManifestProperties>;
18994
19154
 
@@ -19000,13 +19160,18 @@ declare class RaruiInput extends LitElement {
19000
19160
  disabled: InputProperties["disabled"];
19001
19161
  value: string;
19002
19162
  placeholder?: string;
19163
+ type: InputProperties["type"];
19164
+ name: InputProperties["name"];
19165
+ form: InputProperties["form"];
19166
+ required: InputProperties["required"];
19167
+ readonly: InputProperties["readonly"];
19168
+ minlength: InputProperties["minlength"];
19169
+ maxlength: InputProperties["maxlength"];
19170
+ pattern: InputProperties["pattern"];
19003
19171
  static styles: CSSResult;
19004
19172
  render(): TemplateResult<1>;
19005
19173
  private _focusInput;
19006
19174
  private _onInput;
19007
- private _onChange;
19008
- private _onFocus;
19009
- private _onBlur;
19010
19175
  }
19011
19176
 
19012
19177
  declare global {
@@ -19032,6 +19197,24 @@ type RadioButtonManifestProperties = RadioButtonProps & {
19032
19197
  * @default false
19033
19198
  */
19034
19199
  disabled?: boolean;
19200
+ /**
19201
+ * The value of the radio button for form submission.
19202
+ */
19203
+ value?: string;
19204
+ /**
19205
+ * Associates the radio button with a form element by ID.
19206
+ */
19207
+ form?: string;
19208
+ /**
19209
+ * Whether the radio button is required.
19210
+ * @default false
19211
+ */
19212
+ required?: boolean;
19213
+ /**
19214
+ * Whether the radio button is readonly.
19215
+ * @default false
19216
+ */
19217
+ readonly?: boolean;
19035
19218
  };
19036
19219
  type RadioButtonProperties = WebComponentProperties<RadioButtonManifestProperties>;
19037
19220
 
@@ -19043,6 +19226,10 @@ declare class RaruiRadioButton extends LitElement {
19043
19226
  size?: RadioButtonProperties["size"];
19044
19227
  error?: RadioButtonProperties["error"];
19045
19228
  selected?: RadioButtonProperties["selected"];
19229
+ value: RadioButtonProperties["value"];
19230
+ form: RadioButtonProperties["form"];
19231
+ required: RadioButtonProperties["required"];
19232
+ readonly: RadioButtonProperties["readonly"];
19046
19233
  static styles: CSSResult;
19047
19234
  render(): TemplateResult<1>;
19048
19235
  private _onChange;
@@ -19060,7 +19247,7 @@ declare global {
19060
19247
  }
19061
19248
  }
19062
19249
  /**
19063
- * ## Rarui Radio Button
19250
+ * ## Rarui Textarea
19064
19251
  * ---
19065
19252
  * Expanded text area for long text entries. Allows you to enter large blocks of text, such as comments or detailed descriptions.
19066
19253
  *
@@ -19072,6 +19259,36 @@ type TextareaManifestProperties = TextareaProps & {
19072
19259
  * @default false
19073
19260
  */
19074
19261
  disabled?: boolean;
19262
+ /**
19263
+ * The name of the textarea for form submission.
19264
+ */
19265
+ name?: string;
19266
+ /**
19267
+ * Associates the textarea with a form element by ID.
19268
+ */
19269
+ form?: string;
19270
+ /**
19271
+ * Whether the textarea is required for form validation.
19272
+ * @default false
19273
+ */
19274
+ required?: boolean;
19275
+ /**
19276
+ * Whether the textarea is readonly.
19277
+ * @default false
19278
+ */
19279
+ readonly?: boolean;
19280
+ /**
19281
+ * Placeholder text to display when the textarea is empty.
19282
+ */
19283
+ placeholder?: string;
19284
+ /**
19285
+ * Minimum number of characters required.
19286
+ */
19287
+ minlength?: number;
19288
+ /**
19289
+ * Maximum number of characters allowed.
19290
+ */
19291
+ maxlength?: number;
19075
19292
  };
19076
19293
  type TextareaProperties = WebComponentProperties<TextareaManifestProperties>;
19077
19294
 
@@ -19080,9 +19297,15 @@ declare class RaruiTextarea extends LitElement {
19080
19297
  value?: string;
19081
19298
  appearance?: TextareaProperties["appearance"];
19082
19299
  lines?: TextareaProperties["lines"];
19300
+ name: TextareaProperties["name"];
19301
+ form: TextareaProperties["form"];
19302
+ required: TextareaProperties["required"];
19303
+ readonly: TextareaProperties["readonly"];
19304
+ placeholder: TextareaProperties["placeholder"];
19305
+ minlength: TextareaProperties["minlength"];
19306
+ maxlength: TextareaProperties["maxlength"];
19083
19307
  static styles: CSSResult;
19084
19308
  render(): TemplateResult<1>;
19085
- private _onChange;
19086
19309
  }
19087
19310
 
19088
19311
  declare global {
@@ -19109,6 +19332,19 @@ type ToggleManifestProperties = ToggleProps & {
19109
19332
  * The name will be used as Fallback to `id`.
19110
19333
  */
19111
19334
  id?: string;
19335
+ /**
19336
+ * The value of the toggle for form submission.
19337
+ */
19338
+ value?: string;
19339
+ /**
19340
+ * Associates the toggle with a form element by ID.
19341
+ */
19342
+ form?: string;
19343
+ /**
19344
+ * Whether the toggle is required for form validation.
19345
+ * @default false
19346
+ */
19347
+ required?: boolean;
19112
19348
  };
19113
19349
  type ToggleProperties = WebComponentProperties<ToggleManifestProperties>;
19114
19350
 
@@ -19119,8 +19355,10 @@ declare class RaruiToggle extends LitElement {
19119
19355
  error: ToggleProperties["error"];
19120
19356
  selected?: ToggleProperties["selected"];
19121
19357
  disabled?: ToggleProperties["disabled"];
19358
+ value: ToggleProperties["value"];
19359
+ form: ToggleProperties["form"];
19360
+ required: ToggleProperties["required"];
19122
19361
  static styles: CSSResult;
19123
- private handleChange;
19124
19362
  render(): TemplateResult<1>;
19125
19363
  }
19126
19364
 
@@ -19280,6 +19518,31 @@ type LinkManifestProperties = LinkProps & {
19280
19518
  * ** IMPORTANT: ** should only be used when `as="a"`.
19281
19519
  */
19282
19520
  href?: string;
19521
+ /**
19522
+ * Defines the target attribute for links.
19523
+ * @default "_blank" for external links, undefined for internal
19524
+ */
19525
+ target?: "_blank" | "_self" | "_parent" | "_top";
19526
+ /**
19527
+ * Defines the rel attribute for links.
19528
+ * @default "noopener noreferrer" for external links with target="_blank"
19529
+ */
19530
+ rel?: string;
19531
+ /**
19532
+ * The name of the button for form submission.
19533
+ * ** IMPORTANT: ** should only be used when `as="button"`.
19534
+ */
19535
+ name?: string;
19536
+ /**
19537
+ * The value of the button for form submission.
19538
+ * ** IMPORTANT: ** should only be used when `as="button"`.
19539
+ */
19540
+ value?: string;
19541
+ /**
19542
+ * Associates the button with a form element by ID.
19543
+ * ** IMPORTANT: ** should only be used when `as="button"`.
19544
+ */
19545
+ form?: string;
19283
19546
  };
19284
19547
  type LinkProperties = WebComponentProperties<LinkManifestProperties>;
19285
19548
 
@@ -19290,7 +19553,13 @@ declare class RaruiLink extends LitElement {
19290
19553
  size?: LinkProperties["size"];
19291
19554
  href?: LinkProperties["href"];
19292
19555
  disabled: LinkProperties["disabled"];
19556
+ target?: LinkProperties["target"];
19557
+ rel?: LinkProperties["rel"];
19558
+ name?: LinkProperties["name"];
19559
+ value?: LinkProperties["value"];
19560
+ form?: LinkProperties["form"];
19293
19561
  static styles: CSSResult;
19562
+ private _onClick;
19294
19563
  render(): TemplateResult<1>;
19295
19564
  }
19296
19565
 
@@ -19371,6 +19640,7 @@ declare class RaruiSideNavigation extends LitElement {
19371
19640
  private _renderLeadingEnd;
19372
19641
  private _renderContent;
19373
19642
  render(): TemplateResult<1>;
19643
+ private getAriaExpanded;
19374
19644
  }
19375
19645
 
19376
19646
  declare global {