@rarui/components 1.14.0 → 1.16.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 +12 -0
- package/custom-elements.json +292 -29
- package/dist/index.d.ts +315 -25
- package/dist/index.js +165 -82
- package/package.json +2 -1
package/dist/index.d.ts
CHANGED
|
@@ -16141,6 +16141,17 @@ declare const fontWeightProperties: {
|
|
|
16141
16141
|
semiBold: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16142
16142
|
bold: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16143
16143
|
};
|
|
16144
|
+
declare const zIndexProperties: {
|
|
16145
|
+
"100": `var(--${string})` | `var(--${string}, ${string})`;
|
|
16146
|
+
"200": `var(--${string})` | `var(--${string}, ${string})`;
|
|
16147
|
+
"300": `var(--${string})` | `var(--${string}, ${string})`;
|
|
16148
|
+
"400": `var(--${string})` | `var(--${string}, ${string})`;
|
|
16149
|
+
"500": `var(--${string})` | `var(--${string}, ${string})`;
|
|
16150
|
+
"600": `var(--${string})` | `var(--${string}, ${string})`;
|
|
16151
|
+
"700": `var(--${string})` | `var(--${string}, ${string})`;
|
|
16152
|
+
"800": `var(--${string})` | `var(--${string}, ${string})`;
|
|
16153
|
+
"900": `var(--${string})` | `var(--${string}, ${string})`;
|
|
16154
|
+
};
|
|
16144
16155
|
declare const colorProperties: {
|
|
16145
16156
|
currentColor: string;
|
|
16146
16157
|
brand: `var(--${string})` | `var(--${string}, ${string})`;
|
|
@@ -16967,6 +16978,48 @@ declare const styles$3: {
|
|
|
16967
16978
|
|
|
16968
16979
|
type RadioButtonVariants = NonNullable<RecipeVariants<typeof styles$3.radioButton>>;
|
|
16969
16980
|
|
|
16981
|
+
declare const dropdownStyles: {
|
|
16982
|
+
dropdown: RuntimeFn<{
|
|
16983
|
+
/**
|
|
16984
|
+
* Specifies the padding inside the dropdown menu. This prop accepts one of the following values: "base" or "none".
|
|
16985
|
+
* @default base
|
|
16986
|
+
*/
|
|
16987
|
+
padding: {
|
|
16988
|
+
base: {
|
|
16989
|
+
padding: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16990
|
+
};
|
|
16991
|
+
none: {
|
|
16992
|
+
padding: number;
|
|
16993
|
+
};
|
|
16994
|
+
};
|
|
16995
|
+
}>;
|
|
16996
|
+
item: RuntimeFn<{
|
|
16997
|
+
/**
|
|
16998
|
+
* Indicates if the item is selected.
|
|
16999
|
+
* This affects the visual style, such as highlight or marking.
|
|
17000
|
+
*
|
|
17001
|
+
* @default false
|
|
17002
|
+
*/
|
|
17003
|
+
selected: {
|
|
17004
|
+
true: {
|
|
17005
|
+
backgroundColor: `var(--${string})` | `var(--${string}, ${string})`;
|
|
17006
|
+
":hover": {
|
|
17007
|
+
backgroundColor: `var(--${string})` | `var(--${string}, ${string})`;
|
|
17008
|
+
};
|
|
17009
|
+
};
|
|
17010
|
+
};
|
|
17011
|
+
}>;
|
|
17012
|
+
};
|
|
17013
|
+
|
|
17014
|
+
type DropdownVariants = NonNullable<RecipeVariants<typeof dropdownStyles.dropdown> & RecipeVariants<typeof dropdownStyles.item>>;
|
|
17015
|
+
type DropdownDynamicProperties = Pick<StandardLonghandProperties, "width" | "maxWidth">;
|
|
17016
|
+
interface DropdownSprinkle extends DropdownDynamicProperties {
|
|
17017
|
+
/**
|
|
17018
|
+
* The zIndex property specifies the stack order of the box.
|
|
17019
|
+
*/
|
|
17020
|
+
zIndex?: AddDollar<keyof typeof zIndexProperties> | Conditions<AddDollar<keyof typeof zIndexProperties>>;
|
|
17021
|
+
}
|
|
17022
|
+
|
|
16970
17023
|
declare const statusStyles: {
|
|
16971
17024
|
status: RuntimeFn<{
|
|
16972
17025
|
/**
|
|
@@ -17324,6 +17377,54 @@ interface CardSprinkle {
|
|
|
17324
17377
|
backgroundColor?: AddDollar<keyof typeof cardBackgroundColorProperties> | Conditions<AddDollar<keyof typeof cardBackgroundColorProperties>>;
|
|
17325
17378
|
}
|
|
17326
17379
|
|
|
17380
|
+
declare const paginationStyles: {
|
|
17381
|
+
container: RuntimeFn<{
|
|
17382
|
+
size: {
|
|
17383
|
+
dot: {
|
|
17384
|
+
gap: `var(--${string})` | `var(--${string}, ${string})`;
|
|
17385
|
+
};
|
|
17386
|
+
small: {};
|
|
17387
|
+
large: {};
|
|
17388
|
+
};
|
|
17389
|
+
}>;
|
|
17390
|
+
item: RuntimeFn<{
|
|
17391
|
+
selected: {
|
|
17392
|
+
true: {
|
|
17393
|
+
backgroundColor: `var(--${string})` | `var(--${string}, ${string})`;
|
|
17394
|
+
color: `var(--${string})` | `var(--${string}, ${string})`;
|
|
17395
|
+
":hover": {
|
|
17396
|
+
backgroundColor: `var(--${string})` | `var(--${string}, ${string})`;
|
|
17397
|
+
color: `var(--${string})` | `var(--${string}, ${string})`;
|
|
17398
|
+
};
|
|
17399
|
+
};
|
|
17400
|
+
};
|
|
17401
|
+
/**
|
|
17402
|
+
* Specifies the size of the Pagination component.
|
|
17403
|
+
* @default large
|
|
17404
|
+
*/
|
|
17405
|
+
size: {
|
|
17406
|
+
dot: {
|
|
17407
|
+
width: "0.75rem";
|
|
17408
|
+
height: "0.75rem";
|
|
17409
|
+
borderRadius: `var(--${string})` | `var(--${string}, ${string})`;
|
|
17410
|
+
backgroundColor: `var(--${string})` | `var(--${string}, ${string})`;
|
|
17411
|
+
};
|
|
17412
|
+
small: {
|
|
17413
|
+
minWidth: "2.5rem";
|
|
17414
|
+
height: "2.5rem";
|
|
17415
|
+
fontSize: `var(--${string})` | `var(--${string}, ${string})`;
|
|
17416
|
+
};
|
|
17417
|
+
large: {
|
|
17418
|
+
minWidth: "2.75rem";
|
|
17419
|
+
height: "2.75rem";
|
|
17420
|
+
fontSize: `var(--${string})` | `var(--${string}, ${string})`;
|
|
17421
|
+
};
|
|
17422
|
+
};
|
|
17423
|
+
}>;
|
|
17424
|
+
};
|
|
17425
|
+
|
|
17426
|
+
type PaginationVariants = Omit<NonNullable<RecipeVariants<typeof paginationStyles.item>>, "selected">;
|
|
17427
|
+
|
|
17327
17428
|
declare const stepperStyles: {
|
|
17328
17429
|
stepper: RuntimeFn<{
|
|
17329
17430
|
/**
|
|
@@ -17573,6 +17674,58 @@ interface ChipTyping extends ChipSprinkle {
|
|
|
17573
17674
|
}
|
|
17574
17675
|
type ChipProps = ChipTyping & ChipVariants;
|
|
17575
17676
|
|
|
17677
|
+
interface DropdownTyping {
|
|
17678
|
+
/**
|
|
17679
|
+
* A common feature of select dropdowns is that the dropdown matches the width of the reference regardless of its contents.
|
|
17680
|
+
* @default false
|
|
17681
|
+
*/
|
|
17682
|
+
matchReferenceWidth?: boolean;
|
|
17683
|
+
/**
|
|
17684
|
+
* Adds listeners that dismiss (close) the floating element.
|
|
17685
|
+
* @default true
|
|
17686
|
+
*/
|
|
17687
|
+
enabledDismiss?: boolean;
|
|
17688
|
+
/**
|
|
17689
|
+
* Adds click event listeners that change the open state.
|
|
17690
|
+
* @default true
|
|
17691
|
+
*/
|
|
17692
|
+
enabledClick?: boolean;
|
|
17693
|
+
/**
|
|
17694
|
+
* Determines whether the dropdown should enable flipping the options' dropdown when there is not enough space to display it in its default direction.
|
|
17695
|
+
* This can help ensure the dropdown is always visible on the screen.
|
|
17696
|
+
* @default true
|
|
17697
|
+
*/
|
|
17698
|
+
enabledFlip?: boolean;
|
|
17699
|
+
/**
|
|
17700
|
+
* Offest displaces the floating element from its core placement along the specified axes.
|
|
17701
|
+
* @default 10
|
|
17702
|
+
*/
|
|
17703
|
+
offset?: number;
|
|
17704
|
+
/**
|
|
17705
|
+
* Specifies the ID of the portal element where the dropdown should be rendered.
|
|
17706
|
+
* This can be useful for rendering the dropdown in a different part of the DOM, such as a modal or overlay.
|
|
17707
|
+
*/
|
|
17708
|
+
portalId?: string;
|
|
17709
|
+
/**
|
|
17710
|
+
* If true, the component is shown.
|
|
17711
|
+
*/
|
|
17712
|
+
visible?: boolean;
|
|
17713
|
+
/**
|
|
17714
|
+
* Function to control dropdown opening and closing.
|
|
17715
|
+
* @TJS-type (visible: boolean) => void;
|
|
17716
|
+
*/
|
|
17717
|
+
onVisibility?: (visible: boolean) => void;
|
|
17718
|
+
}
|
|
17719
|
+
type DropdownProps = DropdownTyping & DropdownSprinkle & Pick<DropdownVariants, "padding">;
|
|
17720
|
+
|
|
17721
|
+
interface DropdownItemTyping {
|
|
17722
|
+
/**
|
|
17723
|
+
* The name of the dropdown item. This is typically the text that is displayed for the item.
|
|
17724
|
+
*/
|
|
17725
|
+
name?: string;
|
|
17726
|
+
}
|
|
17727
|
+
type DropdownItemProps = DropdownItemTyping & Pick<DropdownVariants, "selected">;
|
|
17728
|
+
|
|
17576
17729
|
interface IconButtonTyping {
|
|
17577
17730
|
/**
|
|
17578
17731
|
* Disables the button, disallowing user interaction.
|
|
@@ -17650,6 +17803,33 @@ interface CardHeaderProps {
|
|
|
17650
17803
|
|
|
17651
17804
|
type LinkProps = LinkVariants;
|
|
17652
17805
|
|
|
17806
|
+
interface PaginationTyping {
|
|
17807
|
+
/**
|
|
17808
|
+
* The currently selected page.
|
|
17809
|
+
*/
|
|
17810
|
+
activePage: number;
|
|
17811
|
+
/**
|
|
17812
|
+
* The total number of pages.
|
|
17813
|
+
*/
|
|
17814
|
+
pageCount: number;
|
|
17815
|
+
/**
|
|
17816
|
+
* Determines whether page numbers should be shown.
|
|
17817
|
+
* @default true
|
|
17818
|
+
*/
|
|
17819
|
+
showNumbers?: boolean;
|
|
17820
|
+
/**
|
|
17821
|
+
* Determines whether page arrows should be shown.
|
|
17822
|
+
* @default true
|
|
17823
|
+
*/
|
|
17824
|
+
showArrows?: boolean;
|
|
17825
|
+
/**
|
|
17826
|
+
* Called with event and page number when a page is clicked.
|
|
17827
|
+
* @TJS-type (page: number) => void;
|
|
17828
|
+
*/
|
|
17829
|
+
onPageChange: (page: number) => void;
|
|
17830
|
+
}
|
|
17831
|
+
type PaginationProps = PaginationTyping & PaginationVariants;
|
|
17832
|
+
|
|
17653
17833
|
declare global {
|
|
17654
17834
|
interface HTMLElementTagNameMap {
|
|
17655
17835
|
"rarui-avatar": RaruiAvatar;
|
|
@@ -17660,7 +17840,7 @@ declare global {
|
|
|
17660
17840
|
* ---
|
|
17661
17841
|
* The Avatar component is normally used to display circular photos of the user's profile.
|
|
17662
17842
|
*
|
|
17663
|
-
|
|
17843
|
+
See [a complete document](https://rarui.rarolabs.com.br/docs/components-web-components/exhibition/avatar) for more details.
|
|
17664
17844
|
*/
|
|
17665
17845
|
type AvatarProperties = Pick<AvatarProps, "size">;
|
|
17666
17846
|
|
|
@@ -17680,7 +17860,7 @@ declare global {
|
|
|
17680
17860
|
* ---
|
|
17681
17861
|
* The Badge components are only used to transmit dynamic information, such as a connection or status.
|
|
17682
17862
|
*
|
|
17683
|
-
|
|
17863
|
+
See [a complete document](https://rarui.rarolabs.com.br/docs/components-web-components/exhibition/badge) for more details.
|
|
17684
17864
|
*/
|
|
17685
17865
|
type BadgeProperties = Partial<BadgeProps>;
|
|
17686
17866
|
|
|
@@ -17702,7 +17882,7 @@ declare global {
|
|
|
17702
17882
|
* ---
|
|
17703
17883
|
* A Divider is a thin line used to separate or group content in lists and layouts.
|
|
17704
17884
|
*
|
|
17705
|
-
|
|
17885
|
+
See [a complete document](https://rarui.rarolabs.com.br/docs/components-web-components/exhibition/divider) for more details.
|
|
17706
17886
|
*/
|
|
17707
17887
|
type DividerProperties = Partial<DividerProps>;
|
|
17708
17888
|
|
|
@@ -17729,7 +17909,7 @@ declare global {
|
|
|
17729
17909
|
* ---
|
|
17730
17910
|
* Iconography used in the system based on Google's Material Design.
|
|
17731
17911
|
*
|
|
17732
|
-
|
|
17912
|
+
See [a complete document](https://rarui.rarolabs.com.br/docs/components-web-components/exhibition/icon) for more details.
|
|
17733
17913
|
*/
|
|
17734
17914
|
type Sizes = "small" | "medium" | "large";
|
|
17735
17915
|
type IconProperties = IconProps & {
|
|
@@ -17763,7 +17943,7 @@ declare global {
|
|
|
17763
17943
|
* ---
|
|
17764
17944
|
* The label component allows us to name elements within a form.
|
|
17765
17945
|
*
|
|
17766
|
-
|
|
17946
|
+
See [a complete document](https://rarui.rarolabs.com.br/docs/components-web-components/exhibition/label) for more details.
|
|
17767
17947
|
*/
|
|
17768
17948
|
type LabelProperties = Partial<LabelProps>;
|
|
17769
17949
|
|
|
@@ -17784,7 +17964,7 @@ declare global {
|
|
|
17784
17964
|
* ---
|
|
17785
17965
|
* Stepper transmit progress through steps.
|
|
17786
17966
|
*
|
|
17787
|
-
|
|
17967
|
+
See [a complete document](https://rarui.rarolabs.com.br/docs/components-web-components/exhibition/stepper) for more details.
|
|
17788
17968
|
*/
|
|
17789
17969
|
type StepperStepProperties = Partial<StepperStepProps>;
|
|
17790
17970
|
|
|
@@ -17808,7 +17988,7 @@ declare global {
|
|
|
17808
17988
|
* ---
|
|
17809
17989
|
* Stepper transmit progress through steps.
|
|
17810
17990
|
*
|
|
17811
|
-
|
|
17991
|
+
See [a complete document](https://rarui.rarolabs.com.br/docs/components-web-components/exhibition/stepper) for more details.
|
|
17812
17992
|
*/
|
|
17813
17993
|
type StepperProperties = Partial<StepperProps>;
|
|
17814
17994
|
|
|
@@ -17831,7 +18011,7 @@ declare global {
|
|
|
17831
18011
|
* ---
|
|
17832
18012
|
* Text is a basic component that allows us to write blocks of text and give it formatting to use within other components, sections and pages of our application or website.
|
|
17833
18013
|
*
|
|
17834
|
-
|
|
18014
|
+
See [a complete document](https://rarui.rarolabs.com.br/docs/components-web-components/exhibition/typography) for more details.
|
|
17835
18015
|
*/
|
|
17836
18016
|
type TextProperties = Omit<TextProps, "as">;
|
|
17837
18017
|
|
|
@@ -17855,7 +18035,7 @@ declare global {
|
|
|
17855
18035
|
* ---
|
|
17856
18036
|
* Tilte is a basic component that allows you to give titles and more hierarchy to blocks of text for sections or header components.
|
|
17857
18037
|
*
|
|
17858
|
-
|
|
18038
|
+
See [a complete document](https://rarui.rarolabs.com.br/docs/components-web-components/exhibition/typography) for more details.
|
|
17859
18039
|
*/
|
|
17860
18040
|
type TitleProperties = Partial<TitleProps>;
|
|
17861
18041
|
|
|
@@ -17890,11 +18070,11 @@ declare global {
|
|
|
17890
18070
|
* ---
|
|
17891
18071
|
* Tooltips are informative, specific, and action-oriented text labels that provide contextual support
|
|
17892
18072
|
*
|
|
17893
|
-
|
|
18073
|
+
See [a complete document](https://rarui.rarolabs.com.br/docs/components-web-components/exhibition/tooltip) for more details.
|
|
17894
18074
|
*/
|
|
17895
18075
|
type TooltipProperties = Partial<Omit<TooltipProps, "visible" | "onVisibility" | "portalId">> & {
|
|
17896
18076
|
/**
|
|
17897
|
-
* Position of the
|
|
18077
|
+
* Position of the tooltip.
|
|
17898
18078
|
* @default bottom
|
|
17899
18079
|
*/
|
|
17900
18080
|
position?: Placement;
|
|
@@ -17955,7 +18135,7 @@ declare global {
|
|
|
17955
18135
|
* ---
|
|
17956
18136
|
* The Card component contains textual content, images, and actions about a topic.
|
|
17957
18137
|
*
|
|
17958
|
-
|
|
18138
|
+
See [a complete document](https://rarui.rarolabs.com.br/docs/components-web-components/surface/card) for more details.
|
|
17959
18139
|
*/
|
|
17960
18140
|
type ProgressCircleProperties = Partial<ProgressCircleProps>;
|
|
17961
18141
|
|
|
@@ -17977,7 +18157,7 @@ declare global {
|
|
|
17977
18157
|
* ---
|
|
17978
18158
|
* The Badge components are only used to transmit dynamic information, such as a connection or status.
|
|
17979
18159
|
*
|
|
17980
|
-
|
|
18160
|
+
See [a complete document](https://rarui.rarolabs.com.br/docs/components-web-components/exhibition/badge) for more details.
|
|
17981
18161
|
*/
|
|
17982
18162
|
type ProgressProperties = Partial<ProgressProps>;
|
|
17983
18163
|
|
|
@@ -17999,7 +18179,7 @@ declare global {
|
|
|
17999
18179
|
* Visual indicator that shows the current status or situation of an item or process.
|
|
18000
18180
|
* Useful for providing fast and understandable feedback to users.
|
|
18001
18181
|
*
|
|
18002
|
-
|
|
18182
|
+
See [a complete document](https://rarui.rarolabs.com.br/docs/components-web-components/exhibition/status) for more details.
|
|
18003
18183
|
*/
|
|
18004
18184
|
type StatusProperties = Partial<StatusProps>;
|
|
18005
18185
|
|
|
@@ -18023,7 +18203,7 @@ declare global {
|
|
|
18023
18203
|
* ---
|
|
18024
18204
|
* Button allows the user to perform actions, such as sending a file, advancing a form, sharing a document, or making a comment.
|
|
18025
18205
|
*
|
|
18026
|
-
|
|
18206
|
+
See [a complete document](https://rarui.rarolabs.com.br/docs/components-web-components/input/button) for more details.
|
|
18027
18207
|
*/
|
|
18028
18208
|
type ButtonProperties = Partial<ButtonProps> & {
|
|
18029
18209
|
/**
|
|
@@ -18055,7 +18235,7 @@ declare global {
|
|
|
18055
18235
|
* ---
|
|
18056
18236
|
* The Checkbox allows users to select one or more items from a set and can be used to enable or disable an option.
|
|
18057
18237
|
*
|
|
18058
|
-
|
|
18238
|
+
See [a complete document](https://rarui.rarolabs.com.br/docs/components-web-components/input/checkbox) for more details.
|
|
18059
18239
|
*/
|
|
18060
18240
|
type CheckboxProperties = Partial<CheckboxProps>;
|
|
18061
18241
|
|
|
@@ -18080,7 +18260,7 @@ declare global {
|
|
|
18080
18260
|
* ---
|
|
18081
18261
|
* Chip component helps people enter information, make selections, filter content or trigger actions.
|
|
18082
18262
|
*
|
|
18083
|
-
|
|
18263
|
+
See [a complete document](https://rarui.rarolabs.com.br/docs/components-web-components/input/button) for more details.
|
|
18084
18264
|
*/
|
|
18085
18265
|
type ChipProperties = Partial<ChipProps> & {
|
|
18086
18266
|
/**
|
|
@@ -18106,6 +18286,91 @@ declare class RaruiChip extends LitElement {
|
|
|
18106
18286
|
render(): TemplateResult<1>;
|
|
18107
18287
|
}
|
|
18108
18288
|
|
|
18289
|
+
declare global {
|
|
18290
|
+
interface HTMLElementTagNameMap {
|
|
18291
|
+
"rarui-dropdown": RaruiDropdown;
|
|
18292
|
+
}
|
|
18293
|
+
}
|
|
18294
|
+
/**
|
|
18295
|
+
* ## Rarui Dropdown
|
|
18296
|
+
* ---
|
|
18297
|
+
* An suspended menu displays a list of options on a temporary surface.
|
|
18298
|
+
*
|
|
18299
|
+
See [a complete document](https://rarui.rarolabs.com.br/docs/components-web-components/input/dropdown) for more details.
|
|
18300
|
+
*/
|
|
18301
|
+
type DropdownProperties = Omit<Partial<DropdownProps>, "onVisibility" | "portalId"> & {
|
|
18302
|
+
/**
|
|
18303
|
+
* Position of the dropdown.
|
|
18304
|
+
* @default bottom-start
|
|
18305
|
+
*/
|
|
18306
|
+
position?: Placement;
|
|
18307
|
+
/**
|
|
18308
|
+
* CSS positioning strategy used for the tooltip.
|
|
18309
|
+
*
|
|
18310
|
+
* - `"fixed"` (default) positions the tooltip relative to the viewport,
|
|
18311
|
+
* so it stays in the same place even when the page is scrolled.
|
|
18312
|
+
* - `"absolute"` positions the tooltip relative to the nearest positioned ancestor,
|
|
18313
|
+
* which can be useful when you want the tooltip to move with page content.
|
|
18314
|
+
*
|
|
18315
|
+
* Use `"fixed"` for tooltips that should remain visible on scroll,
|
|
18316
|
+
* and `"absolute"` when tooltips need to be positioned within scrollable containers.
|
|
18317
|
+
* @default fixed
|
|
18318
|
+
*/
|
|
18319
|
+
strategy?: "fixed" | "absolute";
|
|
18320
|
+
};
|
|
18321
|
+
|
|
18322
|
+
declare class RaruiDropdown extends LitElement {
|
|
18323
|
+
sprinkleAttrs: Record<string, string>;
|
|
18324
|
+
offset: DropdownProperties["offset"];
|
|
18325
|
+
padding: DropdownProperties["padding"];
|
|
18326
|
+
position: DropdownProperties["position"];
|
|
18327
|
+
strategy: DropdownProperties["strategy"];
|
|
18328
|
+
matchReferenceWidth?: DropdownProperties["matchReferenceWidth"];
|
|
18329
|
+
enabledFlip?: DropdownProperties["enabledFlip"];
|
|
18330
|
+
enabledClick: DropdownProperties["enabledClick"];
|
|
18331
|
+
enabledDismiss: DropdownProperties["enabledDismiss"];
|
|
18332
|
+
open: boolean;
|
|
18333
|
+
set visible(value: boolean | undefined);
|
|
18334
|
+
get visible(): boolean | undefined;
|
|
18335
|
+
private _visible?;
|
|
18336
|
+
reference: HTMLElement;
|
|
18337
|
+
floating: HTMLElement;
|
|
18338
|
+
static styles: CSSResult;
|
|
18339
|
+
cleanupAutoUpdate?: () => void;
|
|
18340
|
+
private updatePositionDebounceId;
|
|
18341
|
+
connectedCallback(): void;
|
|
18342
|
+
disconnectedCallback(): void;
|
|
18343
|
+
updated(changed: Map<string, any>): void;
|
|
18344
|
+
private scheduleUpdatePosition;
|
|
18345
|
+
private handleClickOutside;
|
|
18346
|
+
private handleClick;
|
|
18347
|
+
updatePosition(): Promise<void>;
|
|
18348
|
+
private getMiddleware;
|
|
18349
|
+
computePosition(): Promise<void>;
|
|
18350
|
+
render(): TemplateResult<1>;
|
|
18351
|
+
}
|
|
18352
|
+
|
|
18353
|
+
declare global {
|
|
18354
|
+
interface HTMLElementTagNameMap {
|
|
18355
|
+
"rarui-dropdown-item": RaruiDropdownItem;
|
|
18356
|
+
}
|
|
18357
|
+
}
|
|
18358
|
+
/**
|
|
18359
|
+
* ## Rarui Dropdown Item
|
|
18360
|
+
* ---
|
|
18361
|
+
* An suspended menu displays a list of options on a temporary surface.
|
|
18362
|
+
*
|
|
18363
|
+
See [a complete document](https://rarui.rarolabs.com.br/docs/components-web-components/surface/dropdown) for more details.
|
|
18364
|
+
*/
|
|
18365
|
+
type DropdownItemProperties = Omit<DropdownItemProps, "icon">;
|
|
18366
|
+
|
|
18367
|
+
declare class RaruiDropdownItem extends LitElement {
|
|
18368
|
+
name: DropdownItemProperties["name"];
|
|
18369
|
+
selected: DropdownItemProperties["selected"];
|
|
18370
|
+
static styles: CSSResult;
|
|
18371
|
+
render(): TemplateResult<1>;
|
|
18372
|
+
}
|
|
18373
|
+
|
|
18109
18374
|
declare global {
|
|
18110
18375
|
interface HTMLElementTagNameMap {
|
|
18111
18376
|
"rarui-icon-button": RaruiIconButton;
|
|
@@ -18116,7 +18381,7 @@ declare global {
|
|
|
18116
18381
|
* ---
|
|
18117
18382
|
* Button allows the user to perform actions, such as sending a file, advancing a form, sharing a document, or making a comment.
|
|
18118
18383
|
*
|
|
18119
|
-
|
|
18384
|
+
See [a complete document](https://rarui.rarolabs.com.br/docs/components-web-components/input/button) for more details.
|
|
18120
18385
|
*/
|
|
18121
18386
|
type IconButtonProperties = Partial<IconButtonProps>;
|
|
18122
18387
|
|
|
@@ -18140,7 +18405,7 @@ declare global {
|
|
|
18140
18405
|
* ---
|
|
18141
18406
|
* Radio Button allows users to select one option from a set. They are a selection control that usually appears when users are asked to make decisions or select an option from a set of choices.
|
|
18142
18407
|
*
|
|
18143
|
-
|
|
18408
|
+
See [a complete document](https://rarui.rarolabs.com.br/docs/components-web-components/input/radiobutton) for more details.
|
|
18144
18409
|
*/
|
|
18145
18410
|
type RadioButtonProperties = Partial<RadioButtonProps> & {
|
|
18146
18411
|
/**
|
|
@@ -18178,7 +18443,7 @@ declare global {
|
|
|
18178
18443
|
* ---
|
|
18179
18444
|
* Expanded text area for long text entries. Allows you to enter large blocks of text, such as comments or detailed descriptions.
|
|
18180
18445
|
*
|
|
18181
|
-
|
|
18446
|
+
See [a complete document](https://rarui.rarolabs.com.br/docs/components-web-components/input/textarea) for more details.
|
|
18182
18447
|
*/
|
|
18183
18448
|
type TextareaProperties = Partial<TextareaProps> & {
|
|
18184
18449
|
/**
|
|
@@ -18208,7 +18473,7 @@ declare global {
|
|
|
18208
18473
|
* ---
|
|
18209
18474
|
* Toggle switches activate or deactivate the state of a single item.
|
|
18210
18475
|
*
|
|
18211
|
-
|
|
18476
|
+
See [a complete document](https://rarui.rarolabs.com.br/docs/components-web-components/input/toggle) for more details.
|
|
18212
18477
|
*/
|
|
18213
18478
|
type ToggleProperties = Partial<ToggleProps> & {
|
|
18214
18479
|
/**
|
|
@@ -18246,7 +18511,7 @@ declare global {
|
|
|
18246
18511
|
* ---
|
|
18247
18512
|
* A link (abbreviation of hyperlink) is an html object that allows you to jump to a new location when clicking or playing it
|
|
18248
18513
|
*
|
|
18249
|
-
|
|
18514
|
+
See [a complete document](https://rarui.rarolabs.com.br/docs/components-web-components/navigation/link) for more details.
|
|
18250
18515
|
*/
|
|
18251
18516
|
type LinkProperties = Partial<LinkProps> & {
|
|
18252
18517
|
/**
|
|
@@ -18288,6 +18553,31 @@ declare class RaruiLink extends LitElement {
|
|
|
18288
18553
|
render(): TemplateResult<1>;
|
|
18289
18554
|
}
|
|
18290
18555
|
|
|
18556
|
+
declare global {
|
|
18557
|
+
interface HTMLElementTagNameMap {
|
|
18558
|
+
"rarui-pagination": RaruiPagination;
|
|
18559
|
+
}
|
|
18560
|
+
}
|
|
18561
|
+
/**
|
|
18562
|
+
* ## Rarui Pagination
|
|
18563
|
+
* ---
|
|
18564
|
+
* The pagination component allows the user to select a specific page in a page range.
|
|
18565
|
+
*
|
|
18566
|
+
* See [a complete document](https://rarui.rarolabs.com.br/docs/components-web-components/navigation/pagination) for more details.
|
|
18567
|
+
*/
|
|
18568
|
+
type PaginationProperties = Partial<Omit<PaginationProps, "onPageChange">>;
|
|
18569
|
+
|
|
18570
|
+
declare class RaruiPagination extends LitElement {
|
|
18571
|
+
activePage: PaginationProperties["activePage"];
|
|
18572
|
+
pageCount: PaginationProperties["pageCount"];
|
|
18573
|
+
size?: PaginationProperties["size"];
|
|
18574
|
+
showNumbers: PaginationProperties["showNumbers"];
|
|
18575
|
+
showArrows: PaginationProperties["showArrows"];
|
|
18576
|
+
static styles: CSSResult;
|
|
18577
|
+
private handlePageChange;
|
|
18578
|
+
render(): TemplateResult<1>;
|
|
18579
|
+
}
|
|
18580
|
+
|
|
18291
18581
|
declare global {
|
|
18292
18582
|
interface HTMLElementTagNameMap {
|
|
18293
18583
|
"rarui-banner": RaruiBanner;
|
|
@@ -18298,7 +18588,7 @@ declare global {
|
|
|
18298
18588
|
* ---
|
|
18299
18589
|
* Banner messages are displayed to the user at the top of the window/screen.
|
|
18300
18590
|
*
|
|
18301
|
-
|
|
18591
|
+
See [a complete document](https://rarui.rarolabs.com.br/docs/components-web-components/surface/banner) for more details.
|
|
18302
18592
|
*/
|
|
18303
18593
|
type BannerProperties = Partial<Pick<BannerProps, "appearance" | "floating">> & {
|
|
18304
18594
|
/**
|
|
@@ -18329,7 +18619,7 @@ declare global {
|
|
|
18329
18619
|
* ---
|
|
18330
18620
|
* The Card component contains textual content, images, and actions about a topic.
|
|
18331
18621
|
*
|
|
18332
|
-
|
|
18622
|
+
See [a complete document](https://rarui.rarolabs.com.br/docs/components-web-components/surface/card) for more details.
|
|
18333
18623
|
*/
|
|
18334
18624
|
type CardHeaderProperties = Partial<CardHeaderProps>;
|
|
18335
18625
|
|
|
@@ -18350,7 +18640,7 @@ declare global {
|
|
|
18350
18640
|
* ---
|
|
18351
18641
|
* The Card component contains textual content, images, and actions about a topic.
|
|
18352
18642
|
*
|
|
18353
|
-
|
|
18643
|
+
See [a complete document](https://rarui.rarolabs.com.br/docs/components-web-components/surface/card) for more details.
|
|
18354
18644
|
*/
|
|
18355
18645
|
type CardProperties = Partial<CardProps>;
|
|
18356
18646
|
|