@rarui/components 1.17.0 → 1.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +21 -0
- package/custom-elements.json +370 -1
- package/dist/index.d.ts +367 -0
- package/dist/index.js +395 -159
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -16804,6 +16804,130 @@ declare const iconButtonStyles: {
|
|
|
16804
16804
|
|
|
16805
16805
|
type IconButtonVariants = NonNullable<RecipeVariants<typeof iconButtonStyles.iconButton>>;
|
|
16806
16806
|
|
|
16807
|
+
declare const styles$6: {
|
|
16808
|
+
container: RuntimeFn<{
|
|
16809
|
+
/**
|
|
16810
|
+
* Determines the visual style of the input, affecting its border
|
|
16811
|
+
*/
|
|
16812
|
+
appearance: {
|
|
16813
|
+
success: {
|
|
16814
|
+
borderColor: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16815
|
+
":hover": {
|
|
16816
|
+
borderColor: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16817
|
+
};
|
|
16818
|
+
":focus": {
|
|
16819
|
+
borderColor: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16820
|
+
};
|
|
16821
|
+
};
|
|
16822
|
+
error: {
|
|
16823
|
+
borderColor: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16824
|
+
":hover": {
|
|
16825
|
+
borderColor: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16826
|
+
};
|
|
16827
|
+
":focus": {
|
|
16828
|
+
borderColor: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16829
|
+
};
|
|
16830
|
+
};
|
|
16831
|
+
};
|
|
16832
|
+
/**
|
|
16833
|
+
* Determines if the input have borders or not.
|
|
16834
|
+
* @default true
|
|
16835
|
+
*/
|
|
16836
|
+
border: {
|
|
16837
|
+
true: {
|
|
16838
|
+
borderWidth: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16839
|
+
};
|
|
16840
|
+
false: {
|
|
16841
|
+
borderWidth: number;
|
|
16842
|
+
};
|
|
16843
|
+
};
|
|
16844
|
+
size: {
|
|
16845
|
+
large: {
|
|
16846
|
+
height: "3rem";
|
|
16847
|
+
};
|
|
16848
|
+
medium: {
|
|
16849
|
+
height: "2.5rem";
|
|
16850
|
+
};
|
|
16851
|
+
small: {
|
|
16852
|
+
height: "2rem";
|
|
16853
|
+
};
|
|
16854
|
+
};
|
|
16855
|
+
}>;
|
|
16856
|
+
input: RuntimeFn<{
|
|
16857
|
+
/**
|
|
16858
|
+
* Places a divider between the input and the leading components
|
|
16859
|
+
* @default true
|
|
16860
|
+
*/
|
|
16861
|
+
divider: {
|
|
16862
|
+
false: {};
|
|
16863
|
+
};
|
|
16864
|
+
/**
|
|
16865
|
+
* Specifies the size of the input, controlling its dimensions.
|
|
16866
|
+
* @default medium
|
|
16867
|
+
*/
|
|
16868
|
+
size: {
|
|
16869
|
+
large: {
|
|
16870
|
+
fontSize: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16871
|
+
lineHeight: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16872
|
+
};
|
|
16873
|
+
medium: {
|
|
16874
|
+
fontSize: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16875
|
+
lineHeight: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16876
|
+
};
|
|
16877
|
+
small: {
|
|
16878
|
+
fontSize: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16879
|
+
lineHeight: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16880
|
+
padding: `0 var(--${string})` | `0 var(--${string}, ${string})`;
|
|
16881
|
+
};
|
|
16882
|
+
};
|
|
16883
|
+
}>;
|
|
16884
|
+
leading: RuntimeFn<{
|
|
16885
|
+
position: {
|
|
16886
|
+
start: {
|
|
16887
|
+
borderRightWidth: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16888
|
+
};
|
|
16889
|
+
end: {
|
|
16890
|
+
borderLeftWidth: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16891
|
+
};
|
|
16892
|
+
};
|
|
16893
|
+
divider: {
|
|
16894
|
+
true: {
|
|
16895
|
+
borderStyle: "solid";
|
|
16896
|
+
borderColor: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16897
|
+
};
|
|
16898
|
+
false: {
|
|
16899
|
+
borderRightWidth: number;
|
|
16900
|
+
borderLeftWidth: number;
|
|
16901
|
+
};
|
|
16902
|
+
};
|
|
16903
|
+
appearance: {
|
|
16904
|
+
success: {
|
|
16905
|
+
color: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16906
|
+
backgroundColor: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16907
|
+
borderColor: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16908
|
+
};
|
|
16909
|
+
error: {
|
|
16910
|
+
color: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16911
|
+
backgroundColor: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16912
|
+
borderColor: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16913
|
+
};
|
|
16914
|
+
};
|
|
16915
|
+
size: {
|
|
16916
|
+
large: {
|
|
16917
|
+
padding: `0 var(--${string})` | `0 var(--${string}, ${string})`;
|
|
16918
|
+
};
|
|
16919
|
+
medium: {
|
|
16920
|
+
padding: `0 var(--${string})` | `0 var(--${string}, ${string})`;
|
|
16921
|
+
};
|
|
16922
|
+
small: {
|
|
16923
|
+
padding: `0 var(--${string})` | `0 var(--${string}, ${string})`;
|
|
16924
|
+
};
|
|
16925
|
+
};
|
|
16926
|
+
}>;
|
|
16927
|
+
};
|
|
16928
|
+
|
|
16929
|
+
type InputVariants = NonNullable<RecipeVariants<typeof styles$6.container> & RecipeVariants<typeof styles$6.input>>;
|
|
16930
|
+
|
|
16807
16931
|
declare const styles$5: {
|
|
16808
16932
|
label: RuntimeFn<{
|
|
16809
16933
|
/**
|
|
@@ -17452,6 +17576,81 @@ declare const paginationStyles: {
|
|
|
17452
17576
|
|
|
17453
17577
|
type PaginationVariants = Omit<NonNullable<RecipeVariants<typeof paginationStyles.item>>, "selected">;
|
|
17454
17578
|
|
|
17579
|
+
declare const sideNavigationStyles: {
|
|
17580
|
+
sideNavigation: RuntimeFn<{
|
|
17581
|
+
active: {
|
|
17582
|
+
true: {
|
|
17583
|
+
color: `var(--${string})` | `var(--${string}, ${string})`;
|
|
17584
|
+
":after": {
|
|
17585
|
+
content: "";
|
|
17586
|
+
position: "absolute";
|
|
17587
|
+
left: number;
|
|
17588
|
+
right: number;
|
|
17589
|
+
top: number;
|
|
17590
|
+
bottom: number;
|
|
17591
|
+
backgroundColor: `var(--${string})` | `var(--${string}, ${string})`;
|
|
17592
|
+
};
|
|
17593
|
+
":hover": {
|
|
17594
|
+
backgroundColor: `var(--${string})` | `var(--${string}, ${string})`;
|
|
17595
|
+
};
|
|
17596
|
+
":active": {
|
|
17597
|
+
backgroundColor: `var(--${string})` | `var(--${string}, ${string})`;
|
|
17598
|
+
};
|
|
17599
|
+
":disabled": {
|
|
17600
|
+
backgroundColor: `var(--${string})` | `var(--${string}, ${string})`;
|
|
17601
|
+
cursor: "not-allowed";
|
|
17602
|
+
};
|
|
17603
|
+
};
|
|
17604
|
+
};
|
|
17605
|
+
}>;
|
|
17606
|
+
item: RuntimeFn<{
|
|
17607
|
+
/**
|
|
17608
|
+
* Determines the level of nesting for the item.
|
|
17609
|
+
*/
|
|
17610
|
+
level: {
|
|
17611
|
+
0: {
|
|
17612
|
+
paddingLeft: `var(--${string})` | `var(--${string}, ${string})`;
|
|
17613
|
+
};
|
|
17614
|
+
1: {
|
|
17615
|
+
paddingLeft: `var(--${string})` | `var(--${string}, ${string})`;
|
|
17616
|
+
};
|
|
17617
|
+
2: {
|
|
17618
|
+
paddingLeft: `var(--${string})` | `var(--${string}, ${string})`;
|
|
17619
|
+
};
|
|
17620
|
+
};
|
|
17621
|
+
}>;
|
|
17622
|
+
name: RuntimeFn<{
|
|
17623
|
+
active: {
|
|
17624
|
+
true: {
|
|
17625
|
+
color: `var(--${string})` | `var(--${string}, ${string})`;
|
|
17626
|
+
};
|
|
17627
|
+
};
|
|
17628
|
+
disabled: {
|
|
17629
|
+
true: {
|
|
17630
|
+
color: `var(--${string})` | `var(--${string}, ${string})`;
|
|
17631
|
+
};
|
|
17632
|
+
};
|
|
17633
|
+
}>;
|
|
17634
|
+
description: RuntimeFn<{
|
|
17635
|
+
disabled: {
|
|
17636
|
+
true: {
|
|
17637
|
+
color: `var(--${string})` | `var(--${string}, ${string})`;
|
|
17638
|
+
};
|
|
17639
|
+
};
|
|
17640
|
+
}>;
|
|
17641
|
+
content: RuntimeFn<{
|
|
17642
|
+
open: {
|
|
17643
|
+
true: {
|
|
17644
|
+
overflow: "visible";
|
|
17645
|
+
maxHeight: "unset";
|
|
17646
|
+
marginTop: `var(--${string})` | `var(--${string}, ${string})`;
|
|
17647
|
+
};
|
|
17648
|
+
};
|
|
17649
|
+
}>;
|
|
17650
|
+
};
|
|
17651
|
+
|
|
17652
|
+
type SideNavigationVariants = NonNullable<RecipeVariants<typeof sideNavigationStyles.sideNavigation> & RecipeVariants<typeof sideNavigationStyles.item>>;
|
|
17653
|
+
|
|
17455
17654
|
declare const stepperStyles: {
|
|
17456
17655
|
stepper: RuntimeFn<{
|
|
17457
17656
|
/**
|
|
@@ -17701,6 +17900,8 @@ interface ChipTyping extends ChipSprinkle {
|
|
|
17701
17900
|
}
|
|
17702
17901
|
type ChipProps = ChipTyping & ChipVariants;
|
|
17703
17902
|
|
|
17903
|
+
type InputProps = InputVariants;
|
|
17904
|
+
|
|
17704
17905
|
interface DropdownTyping {
|
|
17705
17906
|
/**
|
|
17706
17907
|
* A common feature of select dropdowns is that the dropdown matches the width of the reference regardless of its contents.
|
|
@@ -17887,6 +18088,26 @@ interface PaginationTyping {
|
|
|
17887
18088
|
}
|
|
17888
18089
|
type PaginationProps = PaginationTyping & PaginationVariants;
|
|
17889
18090
|
|
|
18091
|
+
interface SideNavigationTyping {
|
|
18092
|
+
/**
|
|
18093
|
+
* Title of the sideNavigation
|
|
18094
|
+
*/
|
|
18095
|
+
name: string;
|
|
18096
|
+
/**
|
|
18097
|
+
* Description of the sideNavigation.
|
|
18098
|
+
*/
|
|
18099
|
+
description?: string;
|
|
18100
|
+
}
|
|
18101
|
+
type SideNavigationProps = SideNavigationTyping & SideNavigationVariants;
|
|
18102
|
+
|
|
18103
|
+
interface SideNavigationItemTypings {
|
|
18104
|
+
/**
|
|
18105
|
+
* Determines if the item is active or not.
|
|
18106
|
+
*/
|
|
18107
|
+
active?: boolean;
|
|
18108
|
+
}
|
|
18109
|
+
type SideNavigationItemProps = SideNavigationItemTypings & Pick<SideNavigationVariants, "level">;
|
|
18110
|
+
|
|
17890
18111
|
declare global {
|
|
17891
18112
|
interface HTMLElementTagNameMap {
|
|
17892
18113
|
"rarui-avatar": RaruiAvatar;
|
|
@@ -18452,6 +18673,51 @@ declare class RaruiIconButton extends LitElement {
|
|
|
18452
18673
|
render(): TemplateResult<1>;
|
|
18453
18674
|
}
|
|
18454
18675
|
|
|
18676
|
+
declare global {
|
|
18677
|
+
interface HTMLElementTagNameMap {
|
|
18678
|
+
"rarui-input": RaruiInput;
|
|
18679
|
+
}
|
|
18680
|
+
}
|
|
18681
|
+
/**
|
|
18682
|
+
* ## Rarui Input
|
|
18683
|
+
* ---
|
|
18684
|
+
* Input component allows users to enter and edit text.
|
|
18685
|
+
*
|
|
18686
|
+
* See [a complete document](https://rarui.rarolabs.com.br/docs/components-web-components/input/input) for more details.
|
|
18687
|
+
*/
|
|
18688
|
+
type InputProperties = Partial<InputProps> & {
|
|
18689
|
+
/**
|
|
18690
|
+
* The value of the input element.
|
|
18691
|
+
*/
|
|
18692
|
+
value?: string;
|
|
18693
|
+
/**
|
|
18694
|
+
* Placeholder text for the input element.
|
|
18695
|
+
*/
|
|
18696
|
+
placeholder?: string;
|
|
18697
|
+
/**
|
|
18698
|
+
* Whether the input is disabled.
|
|
18699
|
+
* @default false
|
|
18700
|
+
*/
|
|
18701
|
+
disabled?: boolean;
|
|
18702
|
+
};
|
|
18703
|
+
|
|
18704
|
+
declare class RaruiInput extends LitElement {
|
|
18705
|
+
size: InputProperties["size"];
|
|
18706
|
+
appearance?: InputProperties["appearance"];
|
|
18707
|
+
border: InputProperties["border"];
|
|
18708
|
+
divider: InputProperties["divider"];
|
|
18709
|
+
disabled: InputProperties["disabled"];
|
|
18710
|
+
value: string;
|
|
18711
|
+
placeholder?: string;
|
|
18712
|
+
static styles: CSSResult;
|
|
18713
|
+
render(): TemplateResult<1>;
|
|
18714
|
+
private _focusInput;
|
|
18715
|
+
private _onInput;
|
|
18716
|
+
private _onChange;
|
|
18717
|
+
private _onFocus;
|
|
18718
|
+
private _onBlur;
|
|
18719
|
+
}
|
|
18720
|
+
|
|
18455
18721
|
declare global {
|
|
18456
18722
|
interface HTMLElementTagNameMap {
|
|
18457
18723
|
"rarui-radio-button": RaruiRadioButton;
|
|
@@ -18635,6 +18901,88 @@ declare class RaruiPagination extends LitElement {
|
|
|
18635
18901
|
render(): TemplateResult<1>;
|
|
18636
18902
|
}
|
|
18637
18903
|
|
|
18904
|
+
declare global {
|
|
18905
|
+
interface HTMLElementTagNameMap {
|
|
18906
|
+
"rarui-side-navigation": RaruiSideNavigation;
|
|
18907
|
+
}
|
|
18908
|
+
}
|
|
18909
|
+
/**
|
|
18910
|
+
* ## Rarui SideNavigation
|
|
18911
|
+
* ---
|
|
18912
|
+
* A navigation component that supports collapsible content with nested items.
|
|
18913
|
+
*
|
|
18914
|
+
* ### Slots
|
|
18915
|
+
* - **Default slot**: Content for nested navigation items
|
|
18916
|
+
* - **leading-start**: Content to display at the start (e.g., icons)
|
|
18917
|
+
* - **leading-end**: Content to display at the end (e.g., custom icons)
|
|
18918
|
+
*
|
|
18919
|
+
* See [a complete document](https://rarui.rarolabs.com.br/docs/components-web-components/navigation/side-navigation) for more details.
|
|
18920
|
+
*/
|
|
18921
|
+
type SideNavigationProperties = Partial<SideNavigationProps> & {
|
|
18922
|
+
/**
|
|
18923
|
+
* Whether the navigation item is disabled.
|
|
18924
|
+
* @default false
|
|
18925
|
+
*/
|
|
18926
|
+
disabled?: boolean;
|
|
18927
|
+
/**
|
|
18928
|
+
* Whether the navigation item is in active state.
|
|
18929
|
+
* @default false
|
|
18930
|
+
*/
|
|
18931
|
+
active?: boolean;
|
|
18932
|
+
/**
|
|
18933
|
+
* The HTML element type to render.
|
|
18934
|
+
* @default "button"
|
|
18935
|
+
*/
|
|
18936
|
+
as?: "button" | "a";
|
|
18937
|
+
};
|
|
18938
|
+
|
|
18939
|
+
declare class RaruiSideNavigation extends LitElement {
|
|
18940
|
+
name: SideNavigationProperties["name"];
|
|
18941
|
+
description: SideNavigationProperties["description"];
|
|
18942
|
+
active: SideNavigationProperties["active"];
|
|
18943
|
+
disabled: SideNavigationProperties["disabled"];
|
|
18944
|
+
as: SideNavigationProperties["as"];
|
|
18945
|
+
private _open;
|
|
18946
|
+
private _buttonRef;
|
|
18947
|
+
static styles: CSSResult;
|
|
18948
|
+
connectedCallback(): void;
|
|
18949
|
+
private _handleToggle;
|
|
18950
|
+
private _hasChildItems;
|
|
18951
|
+
private _renderLeadingEnd;
|
|
18952
|
+
private _renderContent;
|
|
18953
|
+
render(): TemplateResult<1>;
|
|
18954
|
+
}
|
|
18955
|
+
|
|
18956
|
+
declare global {
|
|
18957
|
+
interface HTMLElementTagNameMap {
|
|
18958
|
+
"rarui-side-navigation-item": RaruiSideNavigationItem;
|
|
18959
|
+
}
|
|
18960
|
+
}
|
|
18961
|
+
/**
|
|
18962
|
+
* ## Rarui SideNavigationItem
|
|
18963
|
+
* ---
|
|
18964
|
+
* A navigation item component for use within SideNavigation.
|
|
18965
|
+
*
|
|
18966
|
+
* See [a complete document](https://rarui.rarolabs.com.br/docs/components-web-components/navigation/side-navigation) for more details.
|
|
18967
|
+
*/
|
|
18968
|
+
type SideNavigationItemProperties = Partial<SideNavigationItemProps> & {
|
|
18969
|
+
/**
|
|
18970
|
+
* The HTML element type to render.
|
|
18971
|
+
* @default "button"
|
|
18972
|
+
*/
|
|
18973
|
+
as?: "button" | "a";
|
|
18974
|
+
};
|
|
18975
|
+
|
|
18976
|
+
declare class RaruiSideNavigationItem extends LitElement {
|
|
18977
|
+
active: SideNavigationItemProperties["active"];
|
|
18978
|
+
level: SideNavigationItemProperties["level"];
|
|
18979
|
+
as: SideNavigationItemProperties["as"];
|
|
18980
|
+
private _itemRef;
|
|
18981
|
+
static styles: CSSResult;
|
|
18982
|
+
private _handleClick;
|
|
18983
|
+
render(): TemplateResult<1>;
|
|
18984
|
+
}
|
|
18985
|
+
|
|
18638
18986
|
declare global {
|
|
18639
18987
|
interface HTMLElementTagNameMap {
|
|
18640
18988
|
"rarui-banner": RaruiBanner;
|
|
@@ -18762,3 +19110,22 @@ declare class RaruiModalHeader extends LitElement {
|
|
|
18762
19110
|
private handleClose;
|
|
18763
19111
|
render(): TemplateResult<1>;
|
|
18764
19112
|
}
|
|
19113
|
+
|
|
19114
|
+
declare global {
|
|
19115
|
+
interface HTMLElementTagNameMap {
|
|
19116
|
+
"rarui-theme-provider": RaruiThemeProvider;
|
|
19117
|
+
}
|
|
19118
|
+
}
|
|
19119
|
+
type Theme = "dark" | "base";
|
|
19120
|
+
|
|
19121
|
+
declare class RaruiThemeProvider extends LitElement {
|
|
19122
|
+
theme: Theme;
|
|
19123
|
+
private previousTheme?;
|
|
19124
|
+
protected createRenderRoot(): this;
|
|
19125
|
+
static styles: CSSResult;
|
|
19126
|
+
connectedCallback(): void;
|
|
19127
|
+
updated(changedProperties: Map<string, unknown>): void;
|
|
19128
|
+
disconnectedCallback(): void;
|
|
19129
|
+
private applyTheme;
|
|
19130
|
+
render(): TemplateResult<1>;
|
|
19131
|
+
}
|