@rarui/components 1.26.0 → 1.27.0-rc.2

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
@@ -18276,6 +18276,8 @@ interface SideNavigationItemTypings {
18276
18276
  }
18277
18277
  type SideNavigationItemProps = SideNavigationItemTypings & Pick<SideNavigationVariants, "level">;
18278
18278
 
18279
+ type AriaInvalid = "false" | "true" | "grammar" | "spelling" | null;
18280
+
18279
18281
  /**
18280
18282
  * Utility types for Web Components property handling in Rarui Design System
18281
18283
  *
@@ -18315,11 +18317,13 @@ declare global {
18315
18317
  type AvatarManifestProperties = Pick<AvatarProps, "size">;
18316
18318
  type AvatarProperties = WebComponentProperties<AvatarManifestProperties>;
18317
18319
 
18318
- declare class RaruiAvatar extends LitElement {
18319
- size?: AvatarProperties["size"];
18320
+ declare const RaruiAvatar_base: (new (...args: any[]) => {
18320
18321
  ariaLabel: string | null;
18321
18322
  ariaLabelledBy: string | null;
18322
18323
  ariaDescribedBy: string | null;
18324
+ }) & typeof LitElement;
18325
+ declare class RaruiAvatar extends RaruiAvatar_base {
18326
+ size?: AvatarProperties["size"];
18323
18327
  static styles: CSSResult;
18324
18328
  render(): TemplateResult<1>;
18325
18329
  private handleSlotChange;
@@ -18342,13 +18346,15 @@ declare global {
18342
18346
  type BadgeManifestProperties = BadgeProps;
18343
18347
  type BadgeProperties = WebComponentProperties<BadgeManifestProperties>;
18344
18348
 
18345
- declare class RaruiBagde extends LitElement {
18346
- variant?: BadgeProperties["variant"];
18347
- size?: BadgeProperties["size"];
18348
- appearance?: BadgeProperties["appearance"];
18349
+ declare const RaruiBagde_base: (new (...args: any[]) => {
18349
18350
  ariaLabel: string | null;
18350
18351
  ariaLabelledBy: string | null;
18351
18352
  ariaDescribedBy: string | null;
18353
+ }) & typeof LitElement;
18354
+ declare class RaruiBagde extends RaruiBagde_base {
18355
+ variant?: BadgeProperties["variant"];
18356
+ size?: BadgeProperties["size"];
18357
+ appearance?: BadgeProperties["appearance"];
18352
18358
  static styles: CSSResult;
18353
18359
  render(): TemplateResult<1>;
18354
18360
  }
@@ -18368,14 +18374,22 @@ declare global {
18368
18374
  type DividerManifestProperties = DividerProps;
18369
18375
  type DividerProperties = WebComponentProperties<DividerManifestProperties>;
18370
18376
 
18371
- declare class RaruiDivider extends LitElement {
18377
+ declare const RaruiDivider_base: (new (...args: any[]) => {
18378
+ cssProps: Record<string, any>;
18379
+ sprinkleAttrs: Record<string, any>;
18380
+ }) & typeof LitElement;
18381
+ declare class RaruiDivider extends RaruiDivider_base {
18372
18382
  sprinkleAttrs: Record<string, string>;
18373
18383
  direction?: DividerProperties["direction"];
18374
18384
  type?: DividerProperties["type"];
18375
18385
  thickness?: DividerProperties["thickness"];
18376
18386
  color?: DividerProperties["color"];
18377
18387
  size?: DividerProperties["size"];
18388
+ private get _isPercentageSize();
18378
18389
  static styles: CSSResult;
18390
+ updated(changedProperties: PropertyValues): void;
18391
+ connectedCallback(): void;
18392
+ private _updateHostWidth;
18379
18393
  render(): TemplateResult<1>;
18380
18394
  }
18381
18395
 
@@ -18407,13 +18421,18 @@ type IconManifestProperties = IconProps & {
18407
18421
  };
18408
18422
  type IconProperties = WebComponentProperties<IconManifestProperties>;
18409
18423
 
18410
- declare class RaruiIcon extends LitElement {
18411
- sprinkleAttrs: Record<string, string>;
18412
- name: IconProperties["name"];
18413
- size: Sizes | string;
18424
+ declare const RaruiIcon_base: (new (...args: any[]) => {
18414
18425
  ariaLabel: string | null;
18415
18426
  ariaLabelledBy: string | null;
18416
18427
  ariaDescribedBy: string | null;
18428
+ }) & (new (...args: any[]) => {
18429
+ cssProps: Record<string, any>;
18430
+ sprinkleAttrs: Record<string, any>;
18431
+ }) & typeof LitElement;
18432
+ declare class RaruiIcon extends RaruiIcon_base {
18433
+ sprinkleAttrs: Record<string, string>;
18434
+ name: IconProperties["name"];
18435
+ size: Sizes | string;
18417
18436
  static styles: CSSResult;
18418
18437
  private getSvgWithSize;
18419
18438
  render(): TemplateResult<1> | null;
@@ -18526,16 +18545,21 @@ type TextManifestProperties = TextProps & {
18526
18545
  };
18527
18546
  type TextProperties = WebComponentProperties<TextManifestProperties>;
18528
18547
 
18529
- declare class RaruiText extends LitElement {
18548
+ declare const RaruiText_base: (new (...args: any[]) => {
18549
+ ariaLabel: string | null;
18550
+ ariaLabelledBy: string | null;
18551
+ ariaDescribedBy: string | null;
18552
+ }) & (new (...args: any[]) => {
18553
+ cssProps: Record<string, any>;
18554
+ sprinkleAttrs: Record<string, any>;
18555
+ }) & typeof LitElement;
18556
+ declare class RaruiText extends RaruiText_base {
18530
18557
  sprinkleAttrs: Record<string, string>;
18531
18558
  as: TextProperties["as"];
18532
18559
  "line-clamp"?: TextProperties["line-clamp"];
18533
18560
  "color"?: TextProperties["color"];
18534
18561
  "font-weight"?: TextProperties["font-weight"];
18535
18562
  "text-align"?: TextProperties["text-align"];
18536
- ariaLabel: string | null;
18537
- ariaLabelledBy: string | null;
18538
- ariaDescribedBy: string | null;
18539
18563
  static styles: CSSResult;
18540
18564
  render(): TemplateResult;
18541
18565
  }
@@ -18561,14 +18585,19 @@ type TitleManifestProperties = TitleProps & {
18561
18585
  };
18562
18586
  type TitleProperties = WebComponentProperties<TitleManifestProperties>;
18563
18587
 
18564
- declare class RaruiTitle extends LitElement {
18588
+ declare const RaruiTitle_base: (new (...args: any[]) => {
18589
+ ariaLabel: string | null;
18590
+ ariaLabelledBy: string | null;
18591
+ ariaDescribedBy: string | null;
18592
+ }) & (new (...args: any[]) => {
18593
+ cssProps: Record<string, any>;
18594
+ sprinkleAttrs: Record<string, any>;
18595
+ }) & typeof LitElement;
18596
+ declare class RaruiTitle extends RaruiTitle_base {
18565
18597
  sprinkleAttrs: Record<string, string>;
18566
18598
  as: TitleProperties["as"];
18567
18599
  "font-weight"?: TitleProperties["font-weight"];
18568
18600
  "text-align"?: TitleProperties["text-align"];
18569
- ariaLabel: string | null;
18570
- ariaLabelledBy: string | null;
18571
- ariaDescribedBy: string | null;
18572
18601
  static styles: CSSResult;
18573
18602
  render(): TemplateResult;
18574
18603
  }
@@ -18771,7 +18800,17 @@ type ButtonManifestProperties = ButtonProps & {
18771
18800
  };
18772
18801
  type ButtonProperties = WebComponentProperties<ButtonManifestProperties>;
18773
18802
 
18774
- declare class RaruiButton extends LitElement {
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
+ ariaLabel: string | null;
18810
+ ariaLabelledBy: string | null;
18811
+ ariaDescribedBy: string | null;
18812
+ }) & typeof LitElement;
18813
+ declare class RaruiButton extends RaruiButton_base {
18775
18814
  static shadowRootOptions: {
18776
18815
  delegatesFocus: boolean;
18777
18816
  mode: ShadowRootMode;
@@ -18787,9 +18826,6 @@ declare class RaruiButton extends LitElement {
18787
18826
  name: ButtonProperties["name"];
18788
18827
  value: ButtonProperties["value"];
18789
18828
  form: ButtonProperties["form"];
18790
- ariaLabel: string | null;
18791
- ariaLabelledBy: string | null;
18792
- ariaDescribedBy: string | null;
18793
18829
  ariaPressed: "true" | "false" | "mixed" | null;
18794
18830
  ariaExpanded: "true" | "false" | null;
18795
18831
  ariaHasPopup: "menu" | "dialog" | "listbox" | "tree" | "grid" | "true" | "false" | null;
@@ -18865,7 +18901,12 @@ type CheckboxManifestProperties = Pick<CheckboxProps, "error" | "size" | "indete
18865
18901
  };
18866
18902
  type CheckboxProperties = WebComponentProperties<CheckboxManifestProperties>;
18867
18903
 
18868
- declare class RaruiCheckbox extends LitElement {
18904
+ declare const RaruiCheckbox_base: (new (...args: any[]) => {
18905
+ ariaLabel: string | null;
18906
+ ariaLabelledBy: string | null;
18907
+ ariaDescribedBy: string | null;
18908
+ }) & typeof LitElement;
18909
+ declare class RaruiCheckbox extends RaruiCheckbox_base {
18869
18910
  label?: CheckboxProperties["label"];
18870
18911
  size: CheckboxProperties["size"];
18871
18912
  error: CheckboxProperties["error"];
@@ -18877,9 +18918,6 @@ declare class RaruiCheckbox extends LitElement {
18877
18918
  name?: CheckboxProperties["name"];
18878
18919
  value?: CheckboxProperties["value"];
18879
18920
  form?: CheckboxProperties["form"];
18880
- ariaLabel: string | null;
18881
- ariaLabelledBy: string | null;
18882
- ariaDescribedBy: string | null;
18883
18921
  static shadowRootOptions: {
18884
18922
  delegatesFocus: boolean;
18885
18923
  mode: ShadowRootMode;
@@ -18944,7 +18982,15 @@ type ChipManifestProperties = ChipProps & {
18944
18982
  };
18945
18983
  type ChipProperties = WebComponentProperties<ChipManifestProperties>;
18946
18984
 
18947
- declare class RaruiChip extends LitElement {
18985
+ declare const RaruiChip_base: (new (...args: any[]) => {
18986
+ ariaLabel: string | null;
18987
+ ariaLabelledBy: string | null;
18988
+ ariaDescribedBy: string | null;
18989
+ }) & (new (...args: any[]) => {
18990
+ cssProps: Record<string, any>;
18991
+ sprinkleAttrs: Record<string, any>;
18992
+ }) & typeof LitElement;
18993
+ declare class RaruiChip extends RaruiChip_base {
18948
18994
  static shadowRootOptions: {
18949
18995
  delegatesFocus: boolean;
18950
18996
  mode: ShadowRootMode;
@@ -18964,9 +19010,6 @@ declare class RaruiChip extends LitElement {
18964
19010
  name?: ChipProperties["name"];
18965
19011
  value?: ChipProperties["value"];
18966
19012
  form?: ChipProperties["form"];
18967
- ariaLabel: string | null;
18968
- ariaLabelledBy: string | null;
18969
- ariaDescribedBy: string | null;
18970
19013
  ariaPressed: "true" | "false" | "mixed" | null;
18971
19014
  static styles: CSSResult;
18972
19015
  private handleClick;
@@ -19023,7 +19066,15 @@ type DropdownManifestProperties = DropdownProps & {
19023
19066
  };
19024
19067
  type DropdownProperties = WebComponentProperties<DropdownManifestProperties, "onVisibility" | "portalId">;
19025
19068
 
19026
- declare class RaruiDropdown extends LitElement {
19069
+ declare const RaruiDropdown_base: (new (...args: any[]) => {
19070
+ ariaLabel: string | null;
19071
+ ariaLabelledBy: string | null;
19072
+ ariaDescribedBy: string | null;
19073
+ }) & (new (...args: any[]) => {
19074
+ cssProps: Record<string, any>;
19075
+ sprinkleAttrs: Record<string, any>;
19076
+ }) & typeof LitElement;
19077
+ declare class RaruiDropdown extends RaruiDropdown_base {
19027
19078
  static shadowRootOptions: {
19028
19079
  delegatesFocus: boolean;
19029
19080
  mode: ShadowRootMode;
@@ -19044,9 +19095,6 @@ declare class RaruiDropdown extends LitElement {
19044
19095
  get visible(): boolean | undefined;
19045
19096
  private _visible?;
19046
19097
  private _hasVisibleAttribute;
19047
- ariaLabel: string | null;
19048
- ariaLabelledBy: string | null;
19049
- ariaDescribedBy: string | null;
19050
19098
  reference: HTMLElement;
19051
19099
  floating: HTMLElement;
19052
19100
  static styles: CSSResult;
@@ -19252,7 +19300,12 @@ type InputManifestProperties = InputProps & {
19252
19300
  };
19253
19301
  type InputProperties = WebComponentProperties<InputManifestProperties>;
19254
19302
 
19255
- declare class RaruiInput extends LitElement {
19303
+ declare const RaruiInput_base: (new (...args: any[]) => {
19304
+ ariaLabel: string | null;
19305
+ ariaLabelledBy: string | null;
19306
+ ariaDescribedBy: string | null;
19307
+ }) & typeof LitElement;
19308
+ declare class RaruiInput extends RaruiInput_base {
19256
19309
  static shadowRootOptions: {
19257
19310
  delegatesFocus: boolean;
19258
19311
  mode: ShadowRootMode;
@@ -19276,10 +19329,7 @@ declare class RaruiInput extends LitElement {
19276
19329
  minlength: InputProperties["minlength"];
19277
19330
  maxlength: InputProperties["maxlength"];
19278
19331
  pattern: InputProperties["pattern"];
19279
- ariaLabel: string | null;
19280
- ariaLabelledBy: string | null;
19281
- ariaDescribedBy: string | null;
19282
- ariaInvalid: "true" | "false" | null;
19332
+ ariaInvalid: AriaInvalid;
19283
19333
  private _internals;
19284
19334
  static formAssociated: boolean;
19285
19335
  constructor();
@@ -19464,7 +19514,7 @@ declare class RaruiTextarea extends LitElement {
19464
19514
  ariaLabel: string | null;
19465
19515
  ariaLabelledBy: string | null;
19466
19516
  ariaDescribedBy: string | null;
19467
- ariaInvalid: "true" | "false" | null;
19517
+ ariaInvalid: AriaInvalid;
19468
19518
  static styles: CSSResult;
19469
19519
  render(): TemplateResult<1>;
19470
19520
  connectedCallback(): void;
@@ -19535,7 +19585,7 @@ declare class RaruiToggle extends LitElement {
19535
19585
  ariaLabel: string | null;
19536
19586
  ariaLabelledBy: string | null;
19537
19587
  ariaDescribedBy: string | null;
19538
- ariaInvalid: "true" | "false" | null;
19588
+ ariaInvalid: AriaInvalid;
19539
19589
  private _internals;
19540
19590
  static formAssociated: boolean;
19541
19591
  constructor();
@@ -19562,7 +19612,15 @@ declare global {
19562
19612
  type SidebarManifestProperties = SidebarProps;
19563
19613
  type SidebarProperties = WebComponentProperties<SidebarManifestProperties, "onRemove">;
19564
19614
 
19565
- declare class RaruiSidebar extends LitElement {
19615
+ declare const RaruiSidebar_base: (new (...args: any[]) => {
19616
+ ariaLabel: string | null;
19617
+ ariaLabelledBy: string | null;
19618
+ ariaDescribedBy: string | null;
19619
+ }) & (new (...args: any[]) => {
19620
+ cssProps: Record<string, any>;
19621
+ sprinkleAttrs: Record<string, any>;
19622
+ }) & typeof LitElement;
19623
+ declare class RaruiSidebar extends RaruiSidebar_base {
19566
19624
  static shadowRootOptions: {
19567
19625
  delegatesFocus: boolean;
19568
19626
  mode: ShadowRootMode;
@@ -19575,9 +19633,6 @@ declare class RaruiSidebar extends LitElement {
19575
19633
  maxWidth: SidebarProperties["max-width"];
19576
19634
  padding: SidebarProperties["padding"];
19577
19635
  portalId: SidebarProperties["portal-id"];
19578
- ariaLabel: string | null;
19579
- ariaLabelledBy: string | null;
19580
- ariaDescribedBy: string | null;
19581
19636
  sidebarElement: HTMLElement;
19582
19637
  overlayElement: HTMLElement;
19583
19638
  static styles: CSSResult;
@@ -19752,7 +19807,17 @@ type LinkManifestProperties = LinkProps & {
19752
19807
  };
19753
19808
  type LinkProperties = WebComponentProperties<LinkManifestProperties>;
19754
19809
 
19755
- declare class RaruiLink extends LitElement {
19810
+ declare const RaruiLink_base: (new (...args: any[]) => {
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 {
19756
19821
  static shadowRootOptions: {
19757
19822
  delegatesFocus: boolean;
19758
19823
  mode: ShadowRootMode;
@@ -19770,9 +19835,6 @@ declare class RaruiLink extends LitElement {
19770
19835
  name?: LinkProperties["name"];
19771
19836
  value?: LinkProperties["value"];
19772
19837
  form?: LinkProperties["form"];
19773
- ariaLabel: string | null;
19774
- ariaLabelledBy: string | null;
19775
- ariaDescribedBy: string | null;
19776
19838
  static styles: CSSResult;
19777
19839
  private _onClick;
19778
19840
  render(): TemplateResult<1>;
@@ -19932,7 +19994,11 @@ declare global {
19932
19994
  type AccordionManifestProperties = AccordionProps;
19933
19995
  type AccordionProperties = WebComponentProperties<AccordionManifestProperties>;
19934
19996
 
19935
- declare class RaruiAccordion extends LitElement {
19997
+ declare const RaruiAccordion_base: (new (...args: any[]) => {
19998
+ cssProps: Record<string, any>;
19999
+ sprinkleAttrs: Record<string, any>;
20000
+ }) & typeof LitElement;
20001
+ declare class RaruiAccordion extends RaruiAccordion_base {
19936
20002
  sprinkleAttrs: Record<string, string>;
19937
20003
  selectedDefault?: AccordionProperties["selected-default"];
19938
20004
  disabled?: AccordionProperties["disabled"];
@@ -20104,13 +20170,18 @@ declare global {
20104
20170
  type CardManifestProperties = CardProps;
20105
20171
  type CardProperties = WebComponentProperties<CardManifestProperties>;
20106
20172
 
20107
- declare class RaruiCard extends LitElement {
20108
- sprinkleAttrs: Record<string, string>;
20109
- padding?: CardProperties["padding"];
20110
- "background-color": CardProperties["background-color"];
20173
+ declare const RaruiCard_base: (new (...args: any[]) => {
20111
20174
  ariaLabel: string | null;
20112
20175
  ariaLabelledBy: string | null;
20113
20176
  ariaDescribedBy: string | null;
20177
+ }) & (new (...args: any[]) => {
20178
+ cssProps: Record<string, any>;
20179
+ sprinkleAttrs: Record<string, any>;
20180
+ }) & typeof LitElement;
20181
+ declare class RaruiCard extends RaruiCard_base {
20182
+ sprinkleAttrs: Record<string, string>;
20183
+ padding?: CardProperties["padding"];
20184
+ "background-color": CardProperties["background-color"];
20114
20185
  static styles: CSSResult;
20115
20186
  render(): TemplateResult<1>;
20116
20187
  }
@@ -20130,7 +20201,15 @@ declare global {
20130
20201
  type ModalManifestProperties = ModalProps;
20131
20202
  type ModalProperties = WebComponentProperties<ModalManifestProperties, "onDismiss">;
20132
20203
 
20133
- declare class RaruiModal extends LitElement {
20204
+ declare const RaruiModal_base: (new (...args: any[]) => {
20205
+ ariaLabel: string | null;
20206
+ ariaLabelledBy: string | null;
20207
+ ariaDescribedBy: string | null;
20208
+ }) & (new (...args: any[]) => {
20209
+ cssProps: Record<string, any>;
20210
+ sprinkleAttrs: Record<string, any>;
20211
+ }) & typeof LitElement;
20212
+ declare class RaruiModal extends RaruiModal_base {
20134
20213
  static shadowRootOptions: {
20135
20214
  delegatesFocus: boolean;
20136
20215
  mode: ShadowRootMode;
@@ -20142,9 +20221,6 @@ declare class RaruiModal extends LitElement {
20142
20221
  portalId: ModalProperties["portal-id"];
20143
20222
  open: ModalProperties["open"];
20144
20223
  maxWidth: ModalProperties["max-width"];
20145
- ariaLabel: string | null;
20146
- ariaLabelledBy: string | null;
20147
- ariaDescribedBy: string | null;
20148
20224
  dialog: HTMLElement;
20149
20225
  static styles: CSSResult;
20150
20226
  cleanupAutoUpdate?: () => void;