@rarui/components 1.9.0 → 1.11.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 +257 -121
- package/dist/index.d.ts +279 -0
- package/dist/index.js +194 -108
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -16137,6 +16137,91 @@ declare const borderColorProperties: {
|
|
|
16137
16137
|
warning: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
16138
16138
|
};
|
|
16139
16139
|
|
|
16140
|
+
declare const chipStyles: {
|
|
16141
|
+
chip: RuntimeFn<{
|
|
16142
|
+
/**
|
|
16143
|
+
* Specifies whether the chip will be displayed in the pill shape
|
|
16144
|
+
* @default false
|
|
16145
|
+
*/
|
|
16146
|
+
pill: {
|
|
16147
|
+
true: {
|
|
16148
|
+
borderRadius: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
16149
|
+
};
|
|
16150
|
+
};
|
|
16151
|
+
/**
|
|
16152
|
+
* Specifies whether the chip is selected
|
|
16153
|
+
* @default false
|
|
16154
|
+
*/
|
|
16155
|
+
selected: {
|
|
16156
|
+
true: {
|
|
16157
|
+
borderColor: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
16158
|
+
backgroundColor: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
16159
|
+
color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
16160
|
+
":hover": {
|
|
16161
|
+
backgroundColor: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
16162
|
+
};
|
|
16163
|
+
};
|
|
16164
|
+
};
|
|
16165
|
+
/**
|
|
16166
|
+
* Specifies the size of the chip
|
|
16167
|
+
* @default medium
|
|
16168
|
+
*/
|
|
16169
|
+
size: {
|
|
16170
|
+
medium: {
|
|
16171
|
+
lineHeight: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
16172
|
+
fontSize: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
16173
|
+
height: "2rem";
|
|
16174
|
+
};
|
|
16175
|
+
small: {
|
|
16176
|
+
lineHeight: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
16177
|
+
fontSize: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
16178
|
+
height: "1.5rem";
|
|
16179
|
+
};
|
|
16180
|
+
};
|
|
16181
|
+
/**
|
|
16182
|
+
* Specifies whether to handle text overflow within the chip.
|
|
16183
|
+
* When true, overflowing text is typically truncated with an ellipsis.
|
|
16184
|
+
* @default false
|
|
16185
|
+
*/
|
|
16186
|
+
textOverflow: {
|
|
16187
|
+
true: {
|
|
16188
|
+
minWidth: "auto";
|
|
16189
|
+
width: "100%";
|
|
16190
|
+
};
|
|
16191
|
+
};
|
|
16192
|
+
}>;
|
|
16193
|
+
content: RuntimeFn<{
|
|
16194
|
+
/**
|
|
16195
|
+
* Specifies whether to handle text overflow within the chip.
|
|
16196
|
+
* When true, overflowing text is typically truncated with an ellipsis.
|
|
16197
|
+
*/
|
|
16198
|
+
textOverflow: {
|
|
16199
|
+
true: {
|
|
16200
|
+
textOverflow: "ellipsis";
|
|
16201
|
+
whiteSpace: "nowrap";
|
|
16202
|
+
width: "100%";
|
|
16203
|
+
display: "block";
|
|
16204
|
+
overflow: "hidden";
|
|
16205
|
+
};
|
|
16206
|
+
};
|
|
16207
|
+
}>;
|
|
16208
|
+
close: string;
|
|
16209
|
+
overlay: string;
|
|
16210
|
+
};
|
|
16211
|
+
declare const paddingProperties: {
|
|
16212
|
+
medium: string;
|
|
16213
|
+
small: string;
|
|
16214
|
+
};
|
|
16215
|
+
|
|
16216
|
+
type ChipVariants = NonNullable<RecipeVariants<typeof chipStyles.chip>>;
|
|
16217
|
+
type ChipDynamicProperties = Pick<StandardLonghandProperties, "textTransform">;
|
|
16218
|
+
interface ChipSprinkle extends ChipDynamicProperties {
|
|
16219
|
+
/**
|
|
16220
|
+
* The padding properties are used to generate space around an chip's content area.
|
|
16221
|
+
*/
|
|
16222
|
+
padding?: AddDollar<keyof typeof paddingProperties> | Conditions<AddDollar<keyof typeof paddingProperties>>;
|
|
16223
|
+
}
|
|
16224
|
+
|
|
16140
16225
|
declare const dividerBorderWidthProperties: {
|
|
16141
16226
|
"1": string;
|
|
16142
16227
|
"2": string;
|
|
@@ -16888,6 +16973,94 @@ interface CardSprinkle {
|
|
|
16888
16973
|
backgroundColor?: AddDollar<keyof typeof cardBackgroundColorProperties> | Conditions<AddDollar<keyof typeof cardBackgroundColorProperties>>;
|
|
16889
16974
|
}
|
|
16890
16975
|
|
|
16976
|
+
declare const stepperStyles: {
|
|
16977
|
+
stepper: RuntimeFn<{
|
|
16978
|
+
/**
|
|
16979
|
+
* Specifies the direction of the stepper. This prop accepts one of the following values: vertical or horizontal.
|
|
16980
|
+
* @default horizontal
|
|
16981
|
+
*/
|
|
16982
|
+
direction: {
|
|
16983
|
+
horizontal: {
|
|
16984
|
+
width: "100%";
|
|
16985
|
+
flexDirection: "row";
|
|
16986
|
+
};
|
|
16987
|
+
vertical: {
|
|
16988
|
+
flexDirection: "column";
|
|
16989
|
+
height: "100%";
|
|
16990
|
+
};
|
|
16991
|
+
};
|
|
16992
|
+
}>;
|
|
16993
|
+
step: RuntimeFn<{
|
|
16994
|
+
direction: {
|
|
16995
|
+
/**
|
|
16996
|
+
* Specifies the direction of the stepper. This prop accepts one of the following values: vertical or horizontal.
|
|
16997
|
+
* @default horizontal
|
|
16998
|
+
*/
|
|
16999
|
+
horizontal: {
|
|
17000
|
+
flexDirection: "column";
|
|
17001
|
+
":after": {
|
|
17002
|
+
top: "20px";
|
|
17003
|
+
height: "1px";
|
|
17004
|
+
width: "calc(100% - 60px)";
|
|
17005
|
+
left: "calc(50% + 30px)";
|
|
17006
|
+
};
|
|
17007
|
+
};
|
|
17008
|
+
vertical: {
|
|
17009
|
+
":after": {
|
|
17010
|
+
width: "1px";
|
|
17011
|
+
height: "calc(100% - 60px)";
|
|
17012
|
+
top: "calc(50% + 30px)";
|
|
17013
|
+
left: "18px";
|
|
17014
|
+
};
|
|
17015
|
+
};
|
|
17016
|
+
};
|
|
17017
|
+
}>;
|
|
17018
|
+
circle: RuntimeFn<{
|
|
17019
|
+
/**
|
|
17020
|
+
* Indicates whether the step is currently active. An active step is typically highlighted to show that it is the current step.
|
|
17021
|
+
* @default false
|
|
17022
|
+
*/
|
|
17023
|
+
active: {
|
|
17024
|
+
true: {
|
|
17025
|
+
backgroundColor: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
17026
|
+
color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
17027
|
+
};
|
|
17028
|
+
};
|
|
17029
|
+
/**
|
|
17030
|
+
* Indicates whether the step has been completed. A completed step is usually marked with a checkmark or other indicator.
|
|
17031
|
+
* @default false
|
|
17032
|
+
*/
|
|
17033
|
+
done: {
|
|
17034
|
+
true: {
|
|
17035
|
+
backgroundColor: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
17036
|
+
color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
17037
|
+
};
|
|
17038
|
+
};
|
|
17039
|
+
}>;
|
|
17040
|
+
separator: RuntimeFn<{
|
|
17041
|
+
direction: {
|
|
17042
|
+
/**
|
|
17043
|
+
* Specifies the direction of the stepper. This prop accepts one of the following values: vertical or horizontal.
|
|
17044
|
+
* @default horizontal
|
|
17045
|
+
*/
|
|
17046
|
+
horizontal: {
|
|
17047
|
+
height: "1px";
|
|
17048
|
+
marginLeft: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
17049
|
+
marginRight: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
17050
|
+
marginTop: "20px";
|
|
17051
|
+
};
|
|
17052
|
+
vertical: {
|
|
17053
|
+
width: "1px";
|
|
17054
|
+
marginTop: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
17055
|
+
marginBottom: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
17056
|
+
marginLeft: "18px";
|
|
17057
|
+
};
|
|
17058
|
+
};
|
|
17059
|
+
}>;
|
|
17060
|
+
};
|
|
17061
|
+
|
|
17062
|
+
type StepperVariants = NonNullable<RecipeVariants<typeof stepperStyles.stepper> & RecipeVariants<typeof stepperStyles.circle>>;
|
|
17063
|
+
|
|
16891
17064
|
type BadgeProps = BadgeVariants;
|
|
16892
17065
|
|
|
16893
17066
|
interface AvatarTypings {
|
|
@@ -16909,6 +17082,8 @@ interface DividerProps extends DividerSprinkle {
|
|
|
16909
17082
|
|
|
16910
17083
|
type IconProps = IconSprinkle;
|
|
16911
17084
|
|
|
17085
|
+
type StepperProps = Pick<StepperVariants, "direction">;
|
|
17086
|
+
|
|
16912
17087
|
interface TitleProps extends TitleSprinkle {
|
|
16913
17088
|
/**
|
|
16914
17089
|
* Type of html tag to create for the title.
|
|
@@ -16977,6 +17152,18 @@ interface TooltipTyping {
|
|
|
16977
17152
|
}
|
|
16978
17153
|
type TooltipProps = TooltipTyping & TooltipVariants;
|
|
16979
17154
|
|
|
17155
|
+
interface StepperStepTyping {
|
|
17156
|
+
/**
|
|
17157
|
+
* The title of the step. This provides a brief summary of the step's purpose.
|
|
17158
|
+
*/
|
|
17159
|
+
title?: string;
|
|
17160
|
+
/**
|
|
17161
|
+
* A more detailed description of the step. This can provide additional context or instructions.
|
|
17162
|
+
*/
|
|
17163
|
+
description?: string;
|
|
17164
|
+
}
|
|
17165
|
+
type StepperStepProps = StepperStepTyping & Pick<StepperVariants, "active" | "done">;
|
|
17166
|
+
|
|
16980
17167
|
interface ProgressTyping {
|
|
16981
17168
|
/**
|
|
16982
17169
|
* The progress percentage, represented as a number between 0 and 100.
|
|
@@ -17009,6 +17196,15 @@ interface CheckboxTyping {
|
|
|
17009
17196
|
}
|
|
17010
17197
|
type CheckboxProps = CheckboxTyping & CheckboxVariants;
|
|
17011
17198
|
|
|
17199
|
+
interface ChipTyping extends ChipSprinkle {
|
|
17200
|
+
/**
|
|
17201
|
+
* Displays a delete icon and adds user interaction.
|
|
17202
|
+
* @default false
|
|
17203
|
+
*/
|
|
17204
|
+
closeable?: boolean;
|
|
17205
|
+
}
|
|
17206
|
+
type ChipProps = ChipTyping & ChipVariants;
|
|
17207
|
+
|
|
17012
17208
|
interface IconButtonTyping {
|
|
17013
17209
|
/**
|
|
17014
17210
|
* Disables the button, disallowing user interaction.
|
|
@@ -17154,6 +17350,53 @@ declare class RaruiIcon extends LitElement {
|
|
|
17154
17350
|
render(): TemplateResult<1> | null;
|
|
17155
17351
|
}
|
|
17156
17352
|
|
|
17353
|
+
declare global {
|
|
17354
|
+
interface HTMLElementTagNameMap {
|
|
17355
|
+
"rarui-stepper-step": RaruiStepperStep;
|
|
17356
|
+
}
|
|
17357
|
+
}
|
|
17358
|
+
/**
|
|
17359
|
+
* ## Rarui Stepper Step
|
|
17360
|
+
* ---
|
|
17361
|
+
* Stepper transmit progress through steps.
|
|
17362
|
+
*
|
|
17363
|
+
* See [a complete document](https://rarui.rarolabs.com.br/docs/components/exhibition/stepper) for more details.
|
|
17364
|
+
*/
|
|
17365
|
+
type StepperStepProperties = Partial<StepperStepProps>;
|
|
17366
|
+
|
|
17367
|
+
declare class RaruiStepperStep extends LitElement {
|
|
17368
|
+
description: StepperStepProperties["description"];
|
|
17369
|
+
active: StepperStepProperties["active"];
|
|
17370
|
+
done: StepperStepProperties["done"];
|
|
17371
|
+
private direction;
|
|
17372
|
+
static styles: CSSResult;
|
|
17373
|
+
connectedCallback(): void;
|
|
17374
|
+
render(): TemplateResult<1>;
|
|
17375
|
+
}
|
|
17376
|
+
|
|
17377
|
+
declare global {
|
|
17378
|
+
interface HTMLElementTagNameMap {
|
|
17379
|
+
"rarui-stepper": RaruiStepper;
|
|
17380
|
+
}
|
|
17381
|
+
}
|
|
17382
|
+
/**
|
|
17383
|
+
* ## Rarui Stepper
|
|
17384
|
+
* ---
|
|
17385
|
+
* Stepper transmit progress through steps.
|
|
17386
|
+
*
|
|
17387
|
+
* See [a complete document](https://rarui.rarolabs.com.br/docs/components/exhibition/stepper) for more details.
|
|
17388
|
+
*/
|
|
17389
|
+
type StepperProperties = Partial<StepperProps>;
|
|
17390
|
+
|
|
17391
|
+
declare class RaruiStepper extends LitElement {
|
|
17392
|
+
direction: StepperProperties["direction"];
|
|
17393
|
+
private assignedSteps;
|
|
17394
|
+
private steps;
|
|
17395
|
+
static styles: CSSResult;
|
|
17396
|
+
firstUpdated(): void;
|
|
17397
|
+
render(): TemplateResult<1>;
|
|
17398
|
+
}
|
|
17399
|
+
|
|
17157
17400
|
declare global {
|
|
17158
17401
|
interface HTMLElementTagNameMap {
|
|
17159
17402
|
"rarui-text": RaruiText;
|
|
@@ -17378,6 +17621,42 @@ declare class RaruiCheckbox extends LitElement {
|
|
|
17378
17621
|
private _onChange;
|
|
17379
17622
|
}
|
|
17380
17623
|
|
|
17624
|
+
declare global {
|
|
17625
|
+
interface HTMLElementTagNameMap {
|
|
17626
|
+
"rarui-chip": RaruiChip;
|
|
17627
|
+
}
|
|
17628
|
+
}
|
|
17629
|
+
/**
|
|
17630
|
+
* ## Rarui Chip
|
|
17631
|
+
* ---
|
|
17632
|
+
* Chip component helps people enter information, make selections, filter content or trigger actions.
|
|
17633
|
+
*
|
|
17634
|
+
* See [a complete document](https://rarui.rarolabs.com.br/docs/components/input/button) for more details.
|
|
17635
|
+
*/
|
|
17636
|
+
type ChipProperties = Partial<ChipProps> & {
|
|
17637
|
+
/**
|
|
17638
|
+
* Disables the chip, disallowing user interaction.
|
|
17639
|
+
* @default false
|
|
17640
|
+
*/
|
|
17641
|
+
disabled?: boolean;
|
|
17642
|
+
};
|
|
17643
|
+
|
|
17644
|
+
declare class RaruiChip extends LitElement {
|
|
17645
|
+
sprinkleAttrs: Record<string, string>;
|
|
17646
|
+
padding: ChipProperties["padding"];
|
|
17647
|
+
size?: ChipProperties["size"];
|
|
17648
|
+
closeable: ChipProperties["closeable"];
|
|
17649
|
+
pill: ChipProperties["pill"];
|
|
17650
|
+
textTransform?: ChipProperties["textTransform"];
|
|
17651
|
+
textOverflow?: ChipProperties["textOverflow"];
|
|
17652
|
+
selected?: ChipProperties["selected"];
|
|
17653
|
+
disabled?: ChipProperties["disabled"];
|
|
17654
|
+
static styles: CSSResult;
|
|
17655
|
+
private handleClick;
|
|
17656
|
+
private handleCloseClick;
|
|
17657
|
+
render(): TemplateResult<1>;
|
|
17658
|
+
}
|
|
17659
|
+
|
|
17381
17660
|
declare global {
|
|
17382
17661
|
interface HTMLElementTagNameMap {
|
|
17383
17662
|
"rarui-icon-button": RaruiIconButton;
|