@rarui/components 1.23.0 → 1.24.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/dist/index.d.ts CHANGED
@@ -16928,29 +16928,6 @@ declare const styles$6: {
16928
16928
 
16929
16929
  type InputVariants = NonNullable<RecipeVariants<typeof styles$6.container> & RecipeVariants<typeof styles$6.input>>;
16930
16930
 
16931
- declare const styles$5: {
16932
- label: RuntimeFn<{
16933
- /**
16934
- * Specifies whether the label is hidden or not
16935
- * @default false
16936
- */
16937
- hidden: {
16938
- true: {
16939
- border: "0";
16940
- clip: "rect(0 0 0 0)";
16941
- height: "1px";
16942
- margin: "-1px";
16943
- overflow: "hidden";
16944
- padding: "0";
16945
- position: "absolute";
16946
- width: "1px";
16947
- };
16948
- };
16949
- }>;
16950
- };
16951
-
16952
- type LabelVariants = RecipeVariants<typeof styles$5.label>;
16953
-
16954
16931
  declare const styles$4: {
16955
16932
  link: RuntimeFn<{
16956
16933
  /**
@@ -17894,14 +17871,6 @@ interface TextProps extends TextSprinkle {
17894
17871
  lineClamp?: number;
17895
17872
  }
17896
17873
 
17897
- interface LabelTyping {
17898
- /**
17899
- * The for attribute specifies which form element a label is bound to.
17900
- */
17901
- htmlFor?: string;
17902
- }
17903
- type LabelProps = LabelTyping & LabelVariants;
17904
-
17905
17874
  interface TooltipTyping {
17906
17875
  /**
17907
17876
  * Conditional for displaying the popover arrow.
@@ -18350,6 +18319,9 @@ declare class RaruiAvatar extends LitElement {
18350
18319
  size?: AvatarProperties["size"];
18351
18320
  static styles: CSSResult;
18352
18321
  render(): TemplateResult<1>;
18322
+ private handleSlotChange;
18323
+ private handleImageError;
18324
+ private handleImageLoad;
18353
18325
  }
18354
18326
 
18355
18327
  declare global {
@@ -18401,7 +18373,7 @@ declare class RaruiDivider extends LitElement {
18401
18373
  render(): TemplateResult<1>;
18402
18374
  }
18403
18375
 
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";
18376
+ 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
18377
 
18406
18378
  declare global {
18407
18379
  interface HTMLElementTagNameMap {
@@ -18450,14 +18422,20 @@ declare global {
18450
18422
  *
18451
18423
  See [a complete document](https://rarui.rarolabs.com.br/docs/components-web-components/exhibition/label) for more details.
18452
18424
  */
18453
- type LabelManifestProperties = LabelProps;
18425
+ type LabelManifestProperties = {
18426
+ /**
18427
+ * The for attribute specifies which form element a label is bound to.
18428
+ */
18429
+ for?: string;
18430
+ };
18454
18431
  type LabelProperties = WebComponentProperties<LabelManifestProperties>;
18455
18432
 
18456
18433
  declare class RaruiLabel extends LitElement {
18457
- htmlFor: LabelProperties["html-for"];
18434
+ for: LabelProperties["for"];
18458
18435
  hidden: boolean;
18459
18436
  static styles: CSSResult;
18460
18437
  render(): TemplateResult<1>;
18438
+ private _handleClick;
18461
18439
  }
18462
18440
 
18463
18441
  declare global {
@@ -18476,12 +18454,13 @@ type StepperStepManifestProperties = StepperStepProps;
18476
18454
  type StepperStepProperties = WebComponentProperties<StepperStepManifestProperties>;
18477
18455
 
18478
18456
  declare class RaruiStepperStep extends LitElement {
18479
- description: StepperStepProperties["description"];
18480
- active: StepperStepProperties["active"];
18481
- done: StepperStepProperties["done"];
18457
+ description?: StepperStepProperties["description"];
18458
+ active?: StepperStepProperties["active"];
18459
+ done?: StepperStepProperties["done"];
18482
18460
  private direction;
18483
18461
  static styles: CSSResult;
18484
18462
  connectedCallback(): void;
18463
+ private getStepAriaLabel;
18485
18464
  render(): TemplateResult<1>;
18486
18465
  }
18487
18466
 
@@ -18521,17 +18500,24 @@ declare global {
18521
18500
  *
18522
18501
  See [a complete document](https://rarui.rarolabs.com.br/docs/components-web-components/exhibition/typography) for more details.
18523
18502
  */
18524
- type TextManifestProperties = TextProps;
18525
- type TextProperties = WebComponentProperties<TextManifestProperties, "as">;
18503
+ type TextManifestProperties = TextProps & {
18504
+ /**
18505
+ * Changes the rendered element for semantic HTML.
18506
+ * @default p
18507
+ */
18508
+ as?: "p" | "span" | "div" | "small" | "strong" | "em";
18509
+ };
18510
+ type TextProperties = WebComponentProperties<TextManifestProperties>;
18526
18511
 
18527
18512
  declare class RaruiText extends LitElement {
18528
18513
  sprinkleAttrs: Record<string, string>;
18514
+ as: TextProperties["as"];
18529
18515
  "line-clamp"?: TextProperties["line-clamp"];
18530
18516
  "color"?: TextProperties["color"];
18531
18517
  "font-weight"?: TextProperties["font-weight"];
18532
18518
  "text-align"?: TextProperties["text-align"];
18533
18519
  static styles: CSSResult;
18534
- render(): TemplateResult<1>;
18520
+ render(): TemplateResult;
18535
18521
  }
18536
18522
 
18537
18523
  declare global {
@@ -18546,16 +18532,22 @@ declare global {
18546
18532
  *
18547
18533
  See [a complete document](https://rarui.rarolabs.com.br/docs/components-web-components/exhibition/typography) for more details.
18548
18534
  */
18549
- type TitleManifestProperties = TitleProps;
18535
+ type TitleManifestProperties = TitleProps & {
18536
+ /**
18537
+ * Changes the rendered heading element for semantic hierarchy.
18538
+ * @default h1
18539
+ */
18540
+ as?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
18541
+ };
18550
18542
  type TitleProperties = WebComponentProperties<TitleManifestProperties>;
18551
18543
 
18552
18544
  declare class RaruiTitle extends LitElement {
18553
18545
  sprinkleAttrs: Record<string, string>;
18554
- as?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
18546
+ as: TitleProperties["as"];
18555
18547
  "font-weight"?: TitleProperties["font-weight"];
18556
18548
  "text-align"?: TitleProperties["text-align"];
18557
18549
  static styles: CSSResult;
18558
- render(): TemplateResult<1>;
18550
+ render(): TemplateResult;
18559
18551
  }
18560
18552
 
18561
18553
  declare type AlignedPlacement = `${Side}-${Alignment}`;
@@ -18726,6 +18718,18 @@ type ButtonManifestProperties = ButtonProps & {
18726
18718
  * @default button
18727
18719
  */
18728
18720
  type?: "button" | "submit" | "reset";
18721
+ /**
18722
+ * The name of the button for form submission.
18723
+ */
18724
+ name?: string;
18725
+ /**
18726
+ * The value of the button for form submission.
18727
+ */
18728
+ value?: string;
18729
+ /**
18730
+ * Associates the button with a form element by ID.
18731
+ */
18732
+ form?: string;
18729
18733
  };
18730
18734
  type ButtonProperties = WebComponentProperties<ButtonManifestProperties>;
18731
18735
 
@@ -18736,8 +18740,12 @@ declare class RaruiButton extends LitElement {
18736
18740
  appearance: ButtonProperties["appearance"];
18737
18741
  disabled: ButtonProperties["disabled"];
18738
18742
  full: ButtonProperties["full"];
18743
+ name: ButtonProperties["name"];
18744
+ value: ButtonProperties["value"];
18745
+ form: ButtonProperties["form"];
18739
18746
  static styles: CSSResult;
18740
18747
  render(): TemplateResult<1>;
18748
+ private _handleClick;
18741
18749
  }
18742
18750
 
18743
18751
  declare global {
@@ -18774,6 +18782,23 @@ type CheckboxManifestProperties = CheckboxProps & {
18774
18782
  * @default false
18775
18783
  */
18776
18784
  readonly?: boolean;
18785
+ /**
18786
+ * The name of the checkbox for form submission.
18787
+ */
18788
+ name?: string;
18789
+ /**
18790
+ * The value of the checkbox when checked for form submission.
18791
+ */
18792
+ value?: string;
18793
+ /**
18794
+ * Associates the checkbox with a form element by ID.
18795
+ */
18796
+ form?: string;
18797
+ /**
18798
+ * Indicates whether the checkbox is required for form validation.
18799
+ * @default false
18800
+ */
18801
+ required?: boolean;
18777
18802
  };
18778
18803
  type CheckboxProperties = WebComponentProperties<CheckboxManifestProperties>;
18779
18804
 
@@ -18784,15 +18809,29 @@ declare class RaruiCheckbox extends LitElement {
18784
18809
  indeterminate: CheckboxProperties["indeterminate"];
18785
18810
  disabled: boolean;
18786
18811
  checked: boolean;
18787
- private _hasCheckedAttribute;
18788
18812
  readonly: boolean;
18813
+ required: boolean;
18814
+ name?: CheckboxProperties["name"];
18815
+ value?: CheckboxProperties["value"];
18816
+ form?: CheckboxProperties["form"];
18817
+ private _hasCheckedAttribute;
18818
+ private _internals;
18789
18819
  private input;
18820
+ static formAssociated: boolean;
18821
+ constructor();
18790
18822
  static styles: CSSResult;
18791
18823
  connectedCallback(): void;
18824
+ disconnectedCallback(): void;
18792
18825
  attributeChangedCallback(name: string, oldValue: string | null, newValue: string | null): void;
18793
18826
  updated(changedProperties: Map<string, any>): void;
18794
18827
  render(): TemplateResult<1>;
18795
18828
  private _onChange;
18829
+ private _updateFormValue;
18830
+ focus(): void;
18831
+ blur(): void;
18832
+ private _handleLabelClick;
18833
+ formResetCallback(): void;
18834
+ private getAriaCheckedValue;
18796
18835
  }
18797
18836
 
18798
18837
  declare global {
@@ -18813,6 +18852,36 @@ type ChipManifestProperties = ChipProps & {
18813
18852
  * @default false
18814
18853
  */
18815
18854
  disabled?: boolean;
18855
+ /**
18856
+ * Defines the native button type.
18857
+ * @default button
18858
+ */
18859
+ type?: "button" | "submit" | "reset";
18860
+ /**
18861
+ * The name of the chip for form submission.
18862
+ */
18863
+ name?: string;
18864
+ /**
18865
+ * The value of the chip for form submission.
18866
+ */
18867
+ value?: string;
18868
+ /**
18869
+ * Associates the chip with a form element by ID.
18870
+ */
18871
+ form?: string;
18872
+ /**
18873
+ * @events
18874
+ * rarui-chip-click: Fired when the chip is clicked (only when not closeable)
18875
+ * rarui-chip-close: Fired when the close button is clicked (only when closeable is true)
18876
+ */
18877
+ _events?: {
18878
+ "rarui-chip-click": {
18879
+ detail: MouseEvent;
18880
+ };
18881
+ "rarui-chip-close": {
18882
+ detail: MouseEvent | KeyboardEvent;
18883
+ };
18884
+ };
18816
18885
  };
18817
18886
  type ChipProperties = WebComponentProperties<ChipManifestProperties>;
18818
18887
 
@@ -18826,9 +18895,14 @@ declare class RaruiChip extends LitElement {
18826
18895
  textOverflow?: ChipProperties["text-overflow"];
18827
18896
  selected?: ChipProperties["selected"];
18828
18897
  disabled?: ChipProperties["disabled"];
18898
+ type: ChipProperties["type"];
18899
+ name?: ChipProperties["name"];
18900
+ value?: ChipProperties["value"];
18901
+ form?: ChipProperties["form"];
18829
18902
  static styles: CSSResult;
18830
18903
  private handleClick;
18831
18904
  private handleCloseClick;
18905
+ private handleCloseKeydown;
18832
18906
  render(): TemplateResult<1>;
18833
18907
  }
18834
18908
 
@@ -18909,6 +18983,7 @@ declare class RaruiDropdown extends LitElement {
18909
18983
  private handleKeyDown;
18910
18984
  private closeDropdown;
18911
18985
  private handleClick;
18986
+ private handleReferenceKeydown;
18912
18987
  updatePosition(): Promise<void>;
18913
18988
  private getMiddleware;
18914
18989
  computePosition(): Promise<void>;
@@ -18927,14 +19002,39 @@ declare global {
18927
19002
  *
18928
19003
  See [a complete document](https://rarui.rarolabs.com.br/docs/components-web-components/surface/dropdown) for more details.
18929
19004
  */
18930
- type DropdownItemManifestProperties = DropdownItemProps;
19005
+ type DropdownItemManifestProperties = DropdownItemProps & {
19006
+ /**
19007
+ * Disables the dropdown item, disallowing user interaction.
19008
+ * @default false
19009
+ */
19010
+ disabled?: boolean;
19011
+ /**
19012
+ * The value associated with this dropdown item for form submission or identification.
19013
+ */
19014
+ value?: string;
19015
+ /**
19016
+ * Defines the native button type.
19017
+ * @default button
19018
+ */
19019
+ type?: "button" | "submit" | "reset";
19020
+ /**
19021
+ * ARIA role for the dropdown item.
19022
+ * @default menuitem
19023
+ */
19024
+ role?: string;
19025
+ };
18931
19026
  type DropdownItemProperties = WebComponentProperties<DropdownItemManifestProperties>;
18932
19027
 
18933
19028
  declare class RaruiDropdownItem extends LitElement {
18934
19029
  name: DropdownItemProperties["name"];
18935
19030
  selected: DropdownItemProperties["selected"];
19031
+ disabled: DropdownItemProperties["disabled"];
19032
+ value: DropdownItemProperties["value"];
19033
+ type: DropdownItemProperties["type"];
18936
19034
  attributeChangedCallback(name: string, oldValue: string | null, newValue: string | null): void;
18937
19035
  static styles: CSSResult;
19036
+ private handleClick;
19037
+ private handleKeydown;
18938
19038
  render(): TemplateResult<1>;
18939
19039
  }
18940
19040
 
@@ -18950,7 +19050,25 @@ declare global {
18950
19050
  *
18951
19051
  See [a complete document](https://rarui.rarolabs.com.br/docs/components-web-components/input/button) for more details.
18952
19052
  */
18953
- type IconButtonManifestProperties = IconButtonProps;
19053
+ type IconButtonManifestProperties = IconButtonProps & {
19054
+ /**
19055
+ * Defines the native button type.
19056
+ * @default button
19057
+ */
19058
+ type?: "button" | "submit" | "reset";
19059
+ /**
19060
+ * The name of the button for form submission.
19061
+ */
19062
+ name?: string;
19063
+ /**
19064
+ * The value of the button for form submission.
19065
+ */
19066
+ value?: string;
19067
+ /**
19068
+ * Associates the button with a form element by ID.
19069
+ */
19070
+ form?: string;
19071
+ };
18954
19072
  type IconButtonProperties = WebComponentProperties<IconButtonManifestProperties>;
18955
19073
 
18956
19074
  declare class RaruiIconButton extends LitElement {
@@ -18959,7 +19077,12 @@ declare class RaruiIconButton extends LitElement {
18959
19077
  appearance: IconButtonProperties["appearance"];
18960
19078
  disabled: IconButtonProperties["disabled"];
18961
19079
  rounded: IconButtonProperties["rounded"];
19080
+ type: IconButtonProperties["type"];
19081
+ name: IconButtonProperties["name"];
19082
+ value: IconButtonProperties["value"];
19083
+ form: IconButtonProperties["form"];
18962
19084
  static styles: CSSResult;
19085
+ private handleClick;
18963
19086
  render(): TemplateResult<1>;
18964
19087
  }
18965
19088
 
@@ -18989,6 +19112,45 @@ type InputManifestProperties = InputProps & {
18989
19112
  * @default false
18990
19113
  */
18991
19114
  disabled?: boolean;
19115
+ /**
19116
+ * The type of input element.
19117
+ * @default text
19118
+ */
19119
+ type?: "text" | "email" | "password" | "tel" | "url" | "number" | "search" | "date" | "datetime-local" | "month" | "week" | "time" | "color" | "range" | "file" | "hidden";
19120
+ /**
19121
+ * The name of the input for form submission.
19122
+ */
19123
+ name: string;
19124
+ /**
19125
+ * The id of the input for form submission.
19126
+ */
19127
+ id: string;
19128
+ /**
19129
+ * Associates the input with a form element by ID.
19130
+ */
19131
+ form?: string;
19132
+ /**
19133
+ * Whether the input is required.
19134
+ * @default false
19135
+ */
19136
+ required?: boolean;
19137
+ /**
19138
+ * Whether the input is readonly.
19139
+ * @default false
19140
+ */
19141
+ readonly?: boolean;
19142
+ /**
19143
+ * Minimum length of the input value.
19144
+ */
19145
+ minlength?: number;
19146
+ /**
19147
+ * Maximum length of the input value.
19148
+ */
19149
+ maxlength?: number;
19150
+ /**
19151
+ * Regular expression pattern for input validation.
19152
+ */
19153
+ pattern?: string;
18992
19154
  };
18993
19155
  type InputProperties = WebComponentProperties<InputManifestProperties>;
18994
19156
 
@@ -19000,13 +19162,27 @@ declare class RaruiInput extends LitElement {
19000
19162
  disabled: InputProperties["disabled"];
19001
19163
  value: string;
19002
19164
  placeholder?: string;
19165
+ type: InputProperties["type"];
19166
+ name: InputProperties["name"];
19167
+ form: InputProperties["form"];
19168
+ required: InputProperties["required"];
19169
+ readonly: InputProperties["readonly"];
19170
+ minlength: InputProperties["minlength"];
19171
+ maxlength: InputProperties["maxlength"];
19172
+ pattern: InputProperties["pattern"];
19173
+ private _internals;
19174
+ static formAssociated: boolean;
19175
+ constructor();
19176
+ connectedCallback(): void;
19177
+ disconnectedCallback(): void;
19003
19178
  static styles: CSSResult;
19004
19179
  render(): TemplateResult<1>;
19005
19180
  private _focusInput;
19006
19181
  private _onInput;
19007
- private _onChange;
19008
- private _onFocus;
19009
- private _onBlur;
19182
+ focus(): void;
19183
+ blur(): void;
19184
+ private _handleLabelClick;
19185
+ formResetCallback(): void;
19010
19186
  }
19011
19187
 
19012
19188
  declare global {
@@ -19032,6 +19208,24 @@ type RadioButtonManifestProperties = RadioButtonProps & {
19032
19208
  * @default false
19033
19209
  */
19034
19210
  disabled?: boolean;
19211
+ /**
19212
+ * The value of the radio button for form submission.
19213
+ */
19214
+ value?: string;
19215
+ /**
19216
+ * Associates the radio button with a form element by ID.
19217
+ */
19218
+ form?: string;
19219
+ /**
19220
+ * Whether the radio button is required.
19221
+ * @default false
19222
+ */
19223
+ required?: boolean;
19224
+ /**
19225
+ * Whether the radio button is readonly.
19226
+ * @default false
19227
+ */
19228
+ readonly?: boolean;
19035
19229
  };
19036
19230
  type RadioButtonProperties = WebComponentProperties<RadioButtonManifestProperties>;
19037
19231
 
@@ -19043,6 +19237,10 @@ declare class RaruiRadioButton extends LitElement {
19043
19237
  size?: RadioButtonProperties["size"];
19044
19238
  error?: RadioButtonProperties["error"];
19045
19239
  selected?: RadioButtonProperties["selected"];
19240
+ value: RadioButtonProperties["value"];
19241
+ form: RadioButtonProperties["form"];
19242
+ required: RadioButtonProperties["required"];
19243
+ readonly: RadioButtonProperties["readonly"];
19046
19244
  static styles: CSSResult;
19047
19245
  render(): TemplateResult<1>;
19048
19246
  private _onChange;
@@ -19060,7 +19258,7 @@ declare global {
19060
19258
  }
19061
19259
  }
19062
19260
  /**
19063
- * ## Rarui Radio Button
19261
+ * ## Rarui Textarea
19064
19262
  * ---
19065
19263
  * Expanded text area for long text entries. Allows you to enter large blocks of text, such as comments or detailed descriptions.
19066
19264
  *
@@ -19072,17 +19270,63 @@ type TextareaManifestProperties = TextareaProps & {
19072
19270
  * @default false
19073
19271
  */
19074
19272
  disabled?: boolean;
19273
+ /**
19274
+ * The name of the textarea for form submission.
19275
+ */
19276
+ name?: string;
19277
+ /**
19278
+ * Associates the textarea with a form element by ID.
19279
+ */
19280
+ form?: string;
19281
+ /**
19282
+ * Whether the textarea is required for form validation.
19283
+ * @default false
19284
+ */
19285
+ required?: boolean;
19286
+ /**
19287
+ * Whether the textarea is readonly.
19288
+ * @default false
19289
+ */
19290
+ readonly?: boolean;
19291
+ /**
19292
+ * Placeholder text to display when the textarea is empty.
19293
+ */
19294
+ placeholder?: string;
19295
+ /**
19296
+ * Minimum number of characters required.
19297
+ */
19298
+ minlength?: number;
19299
+ /**
19300
+ * Maximum number of characters allowed.
19301
+ */
19302
+ maxlength?: number;
19075
19303
  };
19076
19304
  type TextareaProperties = WebComponentProperties<TextareaManifestProperties>;
19077
19305
 
19078
19306
  declare class RaruiTextarea extends LitElement {
19079
19307
  disabled: boolean;
19080
- value?: string;
19308
+ value: string;
19309
+ private _internals;
19310
+ static formAssociated: boolean;
19311
+ constructor();
19081
19312
  appearance?: TextareaProperties["appearance"];
19082
19313
  lines?: TextareaProperties["lines"];
19314
+ name: TextareaProperties["name"];
19315
+ form: TextareaProperties["form"];
19316
+ required: TextareaProperties["required"];
19317
+ readonly: TextareaProperties["readonly"];
19318
+ placeholder: TextareaProperties["placeholder"];
19319
+ minlength: TextareaProperties["minlength"];
19320
+ maxlength: TextareaProperties["maxlength"];
19083
19321
  static styles: CSSResult;
19084
19322
  render(): TemplateResult<1>;
19085
- private _onChange;
19323
+ connectedCallback(): void;
19324
+ disconnectedCallback(): void;
19325
+ private _onInput;
19326
+ focus(): void;
19327
+ blur(): void;
19328
+ private _handleLabelClick;
19329
+ formResetCallback(): void;
19086
19330
  }
19087
19331
 
19088
19332
  declare global {
@@ -19109,6 +19353,19 @@ type ToggleManifestProperties = ToggleProps & {
19109
19353
  * The name will be used as Fallback to `id`.
19110
19354
  */
19111
19355
  id?: string;
19356
+ /**
19357
+ * The value of the toggle for form submission.
19358
+ */
19359
+ value?: string;
19360
+ /**
19361
+ * Associates the toggle with a form element by ID.
19362
+ */
19363
+ form?: string;
19364
+ /**
19365
+ * Whether the toggle is required for form validation.
19366
+ * @default false
19367
+ */
19368
+ required?: boolean;
19112
19369
  };
19113
19370
  type ToggleProperties = WebComponentProperties<ToggleManifestProperties>;
19114
19371
 
@@ -19119,8 +19376,10 @@ declare class RaruiToggle extends LitElement {
19119
19376
  error: ToggleProperties["error"];
19120
19377
  selected?: ToggleProperties["selected"];
19121
19378
  disabled?: ToggleProperties["disabled"];
19379
+ value: ToggleProperties["value"];
19380
+ form: ToggleProperties["form"];
19381
+ required: ToggleProperties["required"];
19122
19382
  static styles: CSSResult;
19123
- private handleChange;
19124
19383
  render(): TemplateResult<1>;
19125
19384
  }
19126
19385
 
@@ -19280,6 +19539,31 @@ type LinkManifestProperties = LinkProps & {
19280
19539
  * ** IMPORTANT: ** should only be used when `as="a"`.
19281
19540
  */
19282
19541
  href?: string;
19542
+ /**
19543
+ * Defines the target attribute for links.
19544
+ * @default "_blank" for external links, undefined for internal
19545
+ */
19546
+ target?: "_blank" | "_self" | "_parent" | "_top";
19547
+ /**
19548
+ * Defines the rel attribute for links.
19549
+ * @default "noopener noreferrer" for external links with target="_blank"
19550
+ */
19551
+ rel?: string;
19552
+ /**
19553
+ * The name of the button for form submission.
19554
+ * ** IMPORTANT: ** should only be used when `as="button"`.
19555
+ */
19556
+ name?: string;
19557
+ /**
19558
+ * The value of the button for form submission.
19559
+ * ** IMPORTANT: ** should only be used when `as="button"`.
19560
+ */
19561
+ value?: string;
19562
+ /**
19563
+ * Associates the button with a form element by ID.
19564
+ * ** IMPORTANT: ** should only be used when `as="button"`.
19565
+ */
19566
+ form?: string;
19283
19567
  };
19284
19568
  type LinkProperties = WebComponentProperties<LinkManifestProperties>;
19285
19569
 
@@ -19290,7 +19574,13 @@ declare class RaruiLink extends LitElement {
19290
19574
  size?: LinkProperties["size"];
19291
19575
  href?: LinkProperties["href"];
19292
19576
  disabled: LinkProperties["disabled"];
19577
+ target?: LinkProperties["target"];
19578
+ rel?: LinkProperties["rel"];
19579
+ name?: LinkProperties["name"];
19580
+ value?: LinkProperties["value"];
19581
+ form?: LinkProperties["form"];
19293
19582
  static styles: CSSResult;
19583
+ private _onClick;
19294
19584
  render(): TemplateResult<1>;
19295
19585
  }
19296
19586
 
@@ -19371,6 +19661,7 @@ declare class RaruiSideNavigation extends LitElement {
19371
19661
  private _renderLeadingEnd;
19372
19662
  private _renderContent;
19373
19663
  render(): TemplateResult<1>;
19664
+ private getAriaExpanded;
19374
19665
  }
19375
19666
 
19376
19667
  declare global {