@rarui/components 1.28.0 → 1.29.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 +7 -1
- package/dist/index.d.ts +1877 -333
- package/dist/index.js +432 -417
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import { AvatarProps, BadgeProps, DividerProps, IconProps, StepperProps, TextProps, TitleProps, TooltipProps, ProgressProps as ProgressProps$1, StatusProps, ButtonProps, CheckboxProps, ChipProps, DropdownProps, IconButtonProps, BreadcrumbProps, AccordionProps } from '@rarui/typings';
|
|
2
|
-
import { IconName } from '@rarui/icons/dist/html/types';
|
|
3
|
-
|
|
4
1
|
/**
|
|
5
2
|
* @license
|
|
6
3
|
* Copyright 2017 Google LLC
|
|
@@ -1044,208 +1041,6 @@ declare class LitElement extends ReactiveElement {
|
|
|
1044
1041
|
protected render(): unknown;
|
|
1045
1042
|
}
|
|
1046
1043
|
|
|
1047
|
-
type AriaInvalid = "false" | "true" | "grammar" | "spelling" | null;
|
|
1048
|
-
|
|
1049
|
-
/**
|
|
1050
|
-
* Utility types for Web Components property handling in Rarui Design System
|
|
1051
|
-
*
|
|
1052
|
-
* These types help convert React-style camelCase properties to web component
|
|
1053
|
-
* kebab-case attributes while maintaining type safety.
|
|
1054
|
-
*/
|
|
1055
|
-
/**
|
|
1056
|
-
* Converts a camelCase string to kebab-case
|
|
1057
|
-
*
|
|
1058
|
-
* @example
|
|
1059
|
-
* CamelToKebab<"maxWidth"> // "max-width"
|
|
1060
|
-
* CamelToKebab<"portalId"> // "portal-id"
|
|
1061
|
-
* CamelToKebab<"position"> // "position"
|
|
1062
|
-
*/
|
|
1063
|
-
type CamelToKebab<T extends string> = T extends `${infer Start}${infer Rest}` ? Rest extends `${infer First}${infer End}` ? First extends Uppercase<First> ? `${Lowercase<Start>}-${CamelToKebab<`${Lowercase<First>}${End}`>}` : `${Lowercase<Start>}${CamelToKebab<Rest>}` : Lowercase<T> : T;
|
|
1064
|
-
type CamelToKebabKeys<T> = {
|
|
1065
|
-
[K in keyof T as CamelToKebab<string & K>]: T[K];
|
|
1066
|
-
};
|
|
1067
|
-
/**
|
|
1068
|
-
* Common React properties that should be excluded from web component types
|
|
1069
|
-
*/
|
|
1070
|
-
type CommonReactExclusions = "children" | "className" | "style" | "ref" | "key";
|
|
1071
|
-
type WebComponentProperties<TReactProps, TExclude extends keyof TReactProps = never> = CamelToKebabKeys<Omit<Partial<TReactProps>, CommonReactExclusions | TExclude>>;
|
|
1072
|
-
|
|
1073
|
-
declare global {
|
|
1074
|
-
interface HTMLElementTagNameMap {
|
|
1075
|
-
"rarui-avatar": RaruiAvatar;
|
|
1076
|
-
}
|
|
1077
|
-
}
|
|
1078
|
-
/**
|
|
1079
|
-
* ## Rarui Avatar
|
|
1080
|
-
* ---
|
|
1081
|
-
* The Avatar component is normally used to display circular photos of the user's profile.
|
|
1082
|
-
*
|
|
1083
|
-
See [a complete document](https://rarui.rarolabs.com.br/docs/components-web-components/exhibition/avatar) for more details.
|
|
1084
|
-
*/
|
|
1085
|
-
type AvatarManifestProperties = Pick<AvatarProps, "size">;
|
|
1086
|
-
type AvatarProperties = WebComponentProperties<AvatarManifestProperties>;
|
|
1087
|
-
|
|
1088
|
-
declare const RaruiAvatar_base: (new (...args: any[]) => {
|
|
1089
|
-
ariaLabel: string | null;
|
|
1090
|
-
ariaLabelledBy: string | null;
|
|
1091
|
-
ariaDescribedBy: string | null;
|
|
1092
|
-
}) & typeof LitElement;
|
|
1093
|
-
declare class RaruiAvatar extends RaruiAvatar_base {
|
|
1094
|
-
size?: AvatarProperties["size"];
|
|
1095
|
-
static styles: CSSResult;
|
|
1096
|
-
render(): TemplateResult<1>;
|
|
1097
|
-
private handleSlotChange;
|
|
1098
|
-
private handleImageError;
|
|
1099
|
-
private handleImageLoad;
|
|
1100
|
-
}
|
|
1101
|
-
|
|
1102
|
-
declare global {
|
|
1103
|
-
interface HTMLElementTagNameMap {
|
|
1104
|
-
"rarui-badge": RaruiBagde;
|
|
1105
|
-
}
|
|
1106
|
-
}
|
|
1107
|
-
/**
|
|
1108
|
-
* ## Rarui Badge
|
|
1109
|
-
* ---
|
|
1110
|
-
* The Badge components are only used to transmit dynamic information, such as a connection or status.
|
|
1111
|
-
*
|
|
1112
|
-
See [a complete document](https://rarui.rarolabs.com.br/docs/components-web-components/exhibition/badge) for more details.
|
|
1113
|
-
*/
|
|
1114
|
-
type BadgeManifestProperties = BadgeProps;
|
|
1115
|
-
type BadgeProperties = WebComponentProperties<BadgeManifestProperties>;
|
|
1116
|
-
|
|
1117
|
-
declare const RaruiBagde_base: (new (...args: any[]) => {
|
|
1118
|
-
ariaLabel: string | null;
|
|
1119
|
-
ariaLabelledBy: string | null;
|
|
1120
|
-
ariaDescribedBy: string | null;
|
|
1121
|
-
}) & typeof LitElement;
|
|
1122
|
-
declare class RaruiBagde extends RaruiBagde_base {
|
|
1123
|
-
variant?: BadgeProperties["variant"];
|
|
1124
|
-
size?: BadgeProperties["size"];
|
|
1125
|
-
appearance?: BadgeProperties["appearance"];
|
|
1126
|
-
static styles: CSSResult;
|
|
1127
|
-
render(): TemplateResult<1>;
|
|
1128
|
-
}
|
|
1129
|
-
|
|
1130
|
-
declare global {
|
|
1131
|
-
interface HTMLElementTagNameMap {
|
|
1132
|
-
"rarui-divider": RaruiDivider;
|
|
1133
|
-
}
|
|
1134
|
-
}
|
|
1135
|
-
/**
|
|
1136
|
-
* ## Rarui Divider
|
|
1137
|
-
* ---
|
|
1138
|
-
* A Divider is a thin line used to separate or group content in lists and layouts.
|
|
1139
|
-
*
|
|
1140
|
-
See [a complete document](https://rarui.rarolabs.com.br/docs/components-web-components/exhibition/divider) for more details.
|
|
1141
|
-
*/
|
|
1142
|
-
type DividerManifestProperties = DividerProps;
|
|
1143
|
-
type DividerProperties = WebComponentProperties<DividerManifestProperties>;
|
|
1144
|
-
|
|
1145
|
-
declare const RaruiDivider_base: (new (...args: any[]) => {
|
|
1146
|
-
cssProps: Record<string, any>;
|
|
1147
|
-
sprinkleAttrs: Record<string, any>;
|
|
1148
|
-
}) & (new (...args: any[]) => {
|
|
1149
|
-
ariaLabel: string | null;
|
|
1150
|
-
ariaLabelledBy: string | null;
|
|
1151
|
-
ariaDescribedBy: string | null;
|
|
1152
|
-
}) & typeof LitElement;
|
|
1153
|
-
declare class RaruiDivider extends RaruiDivider_base {
|
|
1154
|
-
sprinkleAttrs: Record<string, string>;
|
|
1155
|
-
direction?: DividerProperties["direction"];
|
|
1156
|
-
type?: DividerProperties["type"];
|
|
1157
|
-
thickness?: DividerProperties["thickness"];
|
|
1158
|
-
color?: DividerProperties["color"];
|
|
1159
|
-
size?: DividerProperties["size"];
|
|
1160
|
-
private get _isPercentageSize();
|
|
1161
|
-
static styles: CSSResult;
|
|
1162
|
-
updated(changedProperties: PropertyValues): void;
|
|
1163
|
-
connectedCallback(): void;
|
|
1164
|
-
private _updateHostWidth;
|
|
1165
|
-
render(): TemplateResult<1>;
|
|
1166
|
-
}
|
|
1167
|
-
|
|
1168
|
-
declare global {
|
|
1169
|
-
interface HTMLElementTagNameMap {
|
|
1170
|
-
"rarui-icon": RaruiIcon;
|
|
1171
|
-
}
|
|
1172
|
-
}
|
|
1173
|
-
/**
|
|
1174
|
-
* ## Rarui Icon
|
|
1175
|
-
* ---
|
|
1176
|
-
* Iconography used in the system based on Google's Material Design.
|
|
1177
|
-
*
|
|
1178
|
-
See [a complete document](https://rarui.rarolabs.com.br/docs/components-web-components/exhibition/icon) for more details.
|
|
1179
|
-
*/
|
|
1180
|
-
type Sizes = "small" | "medium" | "large";
|
|
1181
|
-
type IconManifestProperties = IconProps & {
|
|
1182
|
-
/**
|
|
1183
|
-
* Name of the icon to be rendered (must be in the @rarui/icons package).
|
|
1184
|
-
*/
|
|
1185
|
-
name: IconName;
|
|
1186
|
-
/**
|
|
1187
|
-
* Icon size, can be 'small' |'medium' |'large' or a number.
|
|
1188
|
-
* @default medium
|
|
1189
|
-
*/
|
|
1190
|
-
size?: Sizes | number;
|
|
1191
|
-
};
|
|
1192
|
-
type IconProperties = WebComponentProperties<IconManifestProperties>;
|
|
1193
|
-
|
|
1194
|
-
declare const RaruiIcon_base: (new (...args: any[]) => {
|
|
1195
|
-
ariaLabel: string | null;
|
|
1196
|
-
ariaLabelledBy: string | null;
|
|
1197
|
-
ariaDescribedBy: string | null;
|
|
1198
|
-
}) & (new (...args: any[]) => {
|
|
1199
|
-
cssProps: Record<string, any>;
|
|
1200
|
-
sprinkleAttrs: Record<string, any>;
|
|
1201
|
-
}) & typeof LitElement;
|
|
1202
|
-
declare class RaruiIcon extends RaruiIcon_base {
|
|
1203
|
-
sprinkleAttrs: Record<string, string>;
|
|
1204
|
-
name: IconProperties["name"];
|
|
1205
|
-
size: Sizes | string;
|
|
1206
|
-
static styles: CSSResult;
|
|
1207
|
-
private getSvgWithSize;
|
|
1208
|
-
render(): TemplateResult<1> | null;
|
|
1209
|
-
}
|
|
1210
|
-
|
|
1211
|
-
declare global {
|
|
1212
|
-
interface HTMLElementTagNameMap {
|
|
1213
|
-
"rarui-label": RaruiLabel;
|
|
1214
|
-
}
|
|
1215
|
-
}
|
|
1216
|
-
/**
|
|
1217
|
-
* ## Rarui Label
|
|
1218
|
-
* ---
|
|
1219
|
-
* The label component allows us to name elements within a form.
|
|
1220
|
-
*
|
|
1221
|
-
See [a complete document](https://rarui.rarolabs.com.br/docs/components-web-components/exhibition/label) for more details.
|
|
1222
|
-
*/
|
|
1223
|
-
type LabelManifestProperties = {
|
|
1224
|
-
/**
|
|
1225
|
-
* The for attribute specifies which form element a label is bound to.
|
|
1226
|
-
*/
|
|
1227
|
-
for?: string;
|
|
1228
|
-
/**
|
|
1229
|
-
* Specifies whether the label is hidden or not
|
|
1230
|
-
* @default false
|
|
1231
|
-
*/
|
|
1232
|
-
hidden?: boolean;
|
|
1233
|
-
};
|
|
1234
|
-
type LabelProperties = WebComponentProperties<LabelManifestProperties>;
|
|
1235
|
-
|
|
1236
|
-
declare const RaruiLabel_base: (new (...args: any[]) => {
|
|
1237
|
-
ariaLabel: string | null;
|
|
1238
|
-
ariaLabelledBy: string | null;
|
|
1239
|
-
ariaDescribedBy: string | null;
|
|
1240
|
-
}) & typeof LitElement;
|
|
1241
|
-
declare class RaruiLabel extends RaruiLabel_base {
|
|
1242
|
-
for: LabelProperties["for"];
|
|
1243
|
-
hidden: boolean;
|
|
1244
|
-
static styles: CSSResult;
|
|
1245
|
-
render(): TemplateResult<1>;
|
|
1246
|
-
private _handleClick;
|
|
1247
|
-
}
|
|
1248
|
-
|
|
1249
1044
|
interface StandardLonghandProperties$1<TLength = (string & {}) | 0, TTime = string & {}> {
|
|
1250
1045
|
/**
|
|
1251
1046
|
* The **`accent-color`** CSS property sets the accent color for user-interface controls generated by some elements.
|
|
@@ -15458,59 +15253,350 @@ interface StandardLonghandProperties {
|
|
|
15458
15253
|
*/
|
|
15459
15254
|
zoom?: Property.Zoom | Conditions<Property.Zoom>;
|
|
15460
15255
|
}
|
|
15461
|
-
|
|
15462
|
-
|
|
15463
|
-
|
|
15464
|
-
|
|
15465
|
-
|
|
15466
|
-
|
|
15467
|
-
|
|
15468
|
-
|
|
15469
|
-
|
|
15470
|
-
|
|
15471
|
-
|
|
15472
|
-
|
|
15473
|
-
|
|
15474
|
-
|
|
15475
|
-
|
|
15476
|
-
|
|
15477
|
-
|
|
15478
|
-
|
|
15479
|
-
|
|
15480
|
-
|
|
15481
|
-
|
|
15482
|
-
|
|
15483
|
-
|
|
15484
|
-
|
|
15485
|
-
|
|
15486
|
-
|
|
15487
|
-
|
|
15488
|
-
|
|
15489
|
-
|
|
15490
|
-
|
|
15491
|
-
|
|
15492
|
-
|
|
15493
|
-
|
|
15494
|
-
|
|
15495
|
-
|
|
15496
|
-
|
|
15497
|
-
|
|
15498
|
-
|
|
15499
|
-
|
|
15500
|
-
|
|
15501
|
-
|
|
15502
|
-
|
|
15503
|
-
|
|
15504
|
-
|
|
15505
|
-
|
|
15506
|
-
|
|
15507
|
-
|
|
15508
|
-
|
|
15509
|
-
|
|
15510
|
-
|
|
15511
|
-
|
|
15512
|
-
|
|
15513
|
-
|
|
15256
|
+
interface StandardShorthandProperties {
|
|
15257
|
+
/**
|
|
15258
|
+
* The `**all**` shorthand CSS property resets all of an element's properties except `unicode-bidi`, `direction`, and CSS Custom Properties. It can set properties to their initial or inherited values, or to the values specified in another stylesheet origin.
|
|
15259
|
+
*
|
|
15260
|
+
*
|
|
15261
|
+
* **Initial value**: There is no practical initial value for it.
|
|
15262
|
+
*
|
|
15263
|
+
*/
|
|
15264
|
+
all?: Property.All | Conditions<Property.All>;
|
|
15265
|
+
/**
|
|
15266
|
+
* The **`animation`** shorthand CSS property applies an animation between styles. It is a shorthand for `animation-name`, `animation-duration`, `animation-timing-function`, `animation-delay`, `animation-iteration-count`, `animation-direction`, `animation-fill-mode`, and `animation-play-state`.
|
|
15267
|
+
*
|
|
15268
|
+
*
|
|
15269
|
+
*/
|
|
15270
|
+
animation?: Property.Animation | Conditions<Property.Animation>;
|
|
15271
|
+
/**
|
|
15272
|
+
* The **`background`** shorthand CSS property sets all background style properties at once, such as color, image, origin and size, or repeat method.
|
|
15273
|
+
*
|
|
15274
|
+
*
|
|
15275
|
+
*/
|
|
15276
|
+
background?: Property.Background | Conditions<Property.Background>;
|
|
15277
|
+
/**
|
|
15278
|
+
* The **`background-position`** CSS property sets the initial position for each background image. The position is relative to the position layer set by `background-origin`.
|
|
15279
|
+
*
|
|
15280
|
+
*
|
|
15281
|
+
* **Initial value**: `0% 0%`
|
|
15282
|
+
*
|
|
15283
|
+
*/
|
|
15284
|
+
backgroundPosition?: Property.BackgroundPosition | Conditions<Property.BackgroundPosition>;
|
|
15285
|
+
/**
|
|
15286
|
+
* The **`border`** shorthand CSS property sets an element's border. It sets the values of `border-width`, `border-style`, and `border-color`.
|
|
15287
|
+
*
|
|
15288
|
+
*
|
|
15289
|
+
*/
|
|
15290
|
+
border?: Property.Border | Conditions<Property.Border>;
|
|
15291
|
+
/**
|
|
15292
|
+
* The **`border-block`** CSS property is a shorthand property for setting the individual logical block border property values in a single place in the style sheet.
|
|
15293
|
+
*
|
|
15294
|
+
*
|
|
15295
|
+
*/
|
|
15296
|
+
borderBlock?: Property.BorderBlock | Conditions<Property.BorderBlock>;
|
|
15297
|
+
/**
|
|
15298
|
+
* The **`border-block-end`** CSS property is a shorthand property for setting the individual logical block-end border property values in a single place in the style sheet.
|
|
15299
|
+
*
|
|
15300
|
+
*
|
|
15301
|
+
*/
|
|
15302
|
+
borderBlockEnd?: Property.BorderBlockEnd | Conditions<Property.BorderBlockEnd>;
|
|
15303
|
+
/**
|
|
15304
|
+
* The **`border-block-start`** CSS property is a shorthand property for setting the individual logical block-start border property values in a single place in the style sheet.
|
|
15305
|
+
*
|
|
15306
|
+
*
|
|
15307
|
+
*/
|
|
15308
|
+
borderBlockStart?: Property.BorderBlockStart | Conditions<Property.BorderBlockStart>;
|
|
15309
|
+
/**
|
|
15310
|
+
* The **`border-bottom`** shorthand CSS property sets an element's bottom border. It sets the values of `border-bottom-width`, `border-bottom-style` and `border-bottom-color`.
|
|
15311
|
+
*
|
|
15312
|
+
*
|
|
15313
|
+
*/
|
|
15314
|
+
borderBottom?: Property.BorderBottom | Conditions<Property.BorderBottom>;
|
|
15315
|
+
/**
|
|
15316
|
+
* The **`border-color`** shorthand CSS property sets the color of an element's border.
|
|
15317
|
+
*
|
|
15318
|
+
*
|
|
15319
|
+
*/
|
|
15320
|
+
borderColor?: Property.BorderColor | Conditions<Property.BorderColor>;
|
|
15321
|
+
/**
|
|
15322
|
+
* The **`border-image`** CSS property draws an image around a given element. It replaces the element's regular border.
|
|
15323
|
+
*
|
|
15324
|
+
*
|
|
15325
|
+
*/
|
|
15326
|
+
borderImage?: Property.BorderImage | Conditions<Property.BorderImage>;
|
|
15327
|
+
/**
|
|
15328
|
+
* The **`border-inline`** CSS property is a shorthand property for setting the individual logical inline border property values in a single place in the style sheet.
|
|
15329
|
+
*
|
|
15330
|
+
*
|
|
15331
|
+
*/
|
|
15332
|
+
borderInline?: Property.BorderInline | Conditions<Property.BorderInline>;
|
|
15333
|
+
/**
|
|
15334
|
+
* The **`border-inline-end`** CSS property is a shorthand property for setting the individual logical inline-end border property values in a single place in the style sheet.
|
|
15335
|
+
*
|
|
15336
|
+
*
|
|
15337
|
+
*/
|
|
15338
|
+
borderInlineEnd?: Property.BorderInlineEnd | Conditions<Property.BorderInlineEnd>;
|
|
15339
|
+
/**
|
|
15340
|
+
* The **`border-inline-start`** CSS property is a shorthand property for setting the individual logical inline-start border property values in a single place in the style sheet.
|
|
15341
|
+
*
|
|
15342
|
+
*
|
|
15343
|
+
*/
|
|
15344
|
+
borderInlineStart?: Property.BorderInlineStart | Conditions<Property.BorderInlineStart>;
|
|
15345
|
+
/**
|
|
15346
|
+
* The **`border-left`** shorthand CSS property sets all the properties of an element's left border.
|
|
15347
|
+
*
|
|
15348
|
+
*
|
|
15349
|
+
*/
|
|
15350
|
+
borderLeft?: Property.BorderLeft | Conditions<Property.BorderLeft>;
|
|
15351
|
+
/**
|
|
15352
|
+
* The **`border-radius`** CSS property rounds the corners of an element's outer border edge. You can set a single radius to make circular corners, or two radii to make elliptical corners.
|
|
15353
|
+
*
|
|
15354
|
+
*
|
|
15355
|
+
*/
|
|
15356
|
+
borderRadius?: Property.BorderRadius | Conditions<Property.BorderRadius>;
|
|
15357
|
+
/**
|
|
15358
|
+
* The **`border-right`** shorthand CSS property sets all the properties of an element's right border.
|
|
15359
|
+
*
|
|
15360
|
+
*
|
|
15361
|
+
*/
|
|
15362
|
+
borderRight?: Property.BorderRight | Conditions<Property.BorderRight>;
|
|
15363
|
+
/**
|
|
15364
|
+
* The **`border-style`** shorthand CSS property sets the line style for all four sides of an element's border.
|
|
15365
|
+
*
|
|
15366
|
+
*
|
|
15367
|
+
*/
|
|
15368
|
+
borderStyle?: Property.BorderStyle | Conditions<Property.BorderStyle>;
|
|
15369
|
+
/**
|
|
15370
|
+
* The **`border-top`** shorthand CSS property sets all the properties of an element's top border.
|
|
15371
|
+
*
|
|
15372
|
+
*
|
|
15373
|
+
*/
|
|
15374
|
+
borderTop?: Property.BorderTop | Conditions<Property.BorderTop>;
|
|
15375
|
+
/**
|
|
15376
|
+
* The **`border-width`** shorthand CSS property sets the width of an element's border.
|
|
15377
|
+
*
|
|
15378
|
+
*
|
|
15379
|
+
*/
|
|
15380
|
+
borderWidth?: Property.BorderWidth | Conditions<Property.BorderWidth>;
|
|
15381
|
+
/**
|
|
15382
|
+
* The **`column-rule`** shorthand CSS property sets the width, style, and color of the line drawn between columns in a multi-column layout.
|
|
15383
|
+
*
|
|
15384
|
+
*
|
|
15385
|
+
*/
|
|
15386
|
+
columnRule?: Property.ColumnRule | Conditions<Property.ColumnRule>;
|
|
15387
|
+
/**
|
|
15388
|
+
* The **`columns`** CSS shorthand property sets the number of columns to use when drawing an element's contents, as well as those columns' widths.
|
|
15389
|
+
*
|
|
15390
|
+
*
|
|
15391
|
+
*/
|
|
15392
|
+
columns?: Property.Columns | Conditions<Property.Columns>;
|
|
15393
|
+
/**
|
|
15394
|
+
* The **`flex`** CSS shorthand property sets how a flex _item_ will grow or shrink to fit the space available in its flex container.
|
|
15395
|
+
*
|
|
15396
|
+
*
|
|
15397
|
+
*/
|
|
15398
|
+
flex?: Property.Flex | Conditions<Property.Flex>;
|
|
15399
|
+
/**
|
|
15400
|
+
* The **`flex-flow`** CSS shorthand property specifies the direction of a flex container, as well as its wrapping behavior.
|
|
15401
|
+
*
|
|
15402
|
+
*
|
|
15403
|
+
*/
|
|
15404
|
+
flexFlow?: Property.FlexFlow | Conditions<Property.FlexFlow>;
|
|
15405
|
+
/**
|
|
15406
|
+
* The **`font`** CSS shorthand property sets all the different properties of an element's font. Alternatively, it sets an element's font to a system font.
|
|
15407
|
+
*
|
|
15408
|
+
*
|
|
15409
|
+
*/
|
|
15410
|
+
font?: Property.Font | Conditions<Property.Font>;
|
|
15411
|
+
/**
|
|
15412
|
+
* The **`gap`** CSS property sets the gaps (gutters) between rows and columns. It is a shorthand for `row-gap` and `column-gap`.
|
|
15413
|
+
*
|
|
15414
|
+
*
|
|
15415
|
+
*/
|
|
15416
|
+
gap?: Property.Gap | Conditions<Property.Gap>;
|
|
15417
|
+
/**
|
|
15418
|
+
* The **`grid`** CSS property is a shorthand property that sets all of the explicit and implicit grid properties in a single declaration.
|
|
15419
|
+
*
|
|
15420
|
+
*
|
|
15421
|
+
*/
|
|
15422
|
+
grid?: Property.Grid | Conditions<Property.Grid>;
|
|
15423
|
+
/**
|
|
15424
|
+
* The **`grid-area`** CSS shorthand property specifies a grid item’s size and location within a grid by contributing a line, a span, or nothing (automatic) to its grid placement, thereby specifying the edges of its grid area.
|
|
15425
|
+
*
|
|
15426
|
+
*
|
|
15427
|
+
*/
|
|
15428
|
+
gridArea?: Property.GridArea | Conditions<Property.GridArea>;
|
|
15429
|
+
/**
|
|
15430
|
+
* The **`grid-column`** CSS shorthand property specifies a grid item's size and location within a grid column by contributing a line, a span, or nothing (automatic) to its grid placement, thereby specifying the inline-start and inline-end edge of its grid area.
|
|
15431
|
+
*
|
|
15432
|
+
*
|
|
15433
|
+
*/
|
|
15434
|
+
gridColumn?: Property.GridColumn | Conditions<Property.GridColumn>;
|
|
15435
|
+
/**
|
|
15436
|
+
* The **`grid-row`** CSS shorthand property specifies a grid item’s size and location within the grid row by contributing a line, a span, or nothing (automatic) to its grid placement, thereby specifying the inline-start and inline-end edge of its grid area.
|
|
15437
|
+
*
|
|
15438
|
+
*
|
|
15439
|
+
*/
|
|
15440
|
+
gridRow?: Property.GridRow | Conditions<Property.GridRow>;
|
|
15441
|
+
/**
|
|
15442
|
+
* The **`grid-template`** CSS property is a shorthand property for defining grid columns, rows, and areas.
|
|
15443
|
+
*
|
|
15444
|
+
*
|
|
15445
|
+
*/
|
|
15446
|
+
gridTemplate?: Property.GridTemplate | Conditions<Property.GridTemplate>;
|
|
15447
|
+
/**
|
|
15448
|
+
*
|
|
15449
|
+
* **Initial value**: `none`
|
|
15450
|
+
*/
|
|
15451
|
+
lineClamp?: Property.LineClamp | Conditions<Property.LineClamp>;
|
|
15452
|
+
/**
|
|
15453
|
+
* The **`list-style`** CSS shorthand property allows you set all the list style properties at once.
|
|
15454
|
+
*
|
|
15455
|
+
*
|
|
15456
|
+
*/
|
|
15457
|
+
listStyle?: Property.ListStyle | Conditions<Property.ListStyle>;
|
|
15458
|
+
/**
|
|
15459
|
+
* The **`margin`** CSS property sets the margin area on all four sides of an element. It is a shorthand for `margin-top`, `margin-right`, `margin-bottom`, and `margin-left`.
|
|
15460
|
+
*
|
|
15461
|
+
*
|
|
15462
|
+
*/
|
|
15463
|
+
margin?: Property.Margin | Conditions<Property.Margin>;
|
|
15464
|
+
/**
|
|
15465
|
+
* The **`mask`** CSS shorthand property hides an element (partially or fully) by masking or clipping the image at specific points.
|
|
15466
|
+
*
|
|
15467
|
+
*
|
|
15468
|
+
*/
|
|
15469
|
+
mask?: Property.Mask | Conditions<Property.Mask>;
|
|
15470
|
+
/**
|
|
15471
|
+
* The **`mask-border`** CSS shorthand property lets you create a mask along the edge of an element's border.
|
|
15472
|
+
*
|
|
15473
|
+
*
|
|
15474
|
+
*/
|
|
15475
|
+
maskBorder?: Property.MaskBorder | Conditions<Property.MaskBorder>;
|
|
15476
|
+
/**
|
|
15477
|
+
* The **`offset`** CSS shorthand property sets all the properties required for animating an element along a defined path.
|
|
15478
|
+
*
|
|
15479
|
+
*
|
|
15480
|
+
*/
|
|
15481
|
+
motion?: Property.Offset | Conditions<Property.Offset>;
|
|
15482
|
+
/**
|
|
15483
|
+
* The **`offset`** CSS shorthand property sets all the properties required for animating an element along a defined path.
|
|
15484
|
+
*
|
|
15485
|
+
*
|
|
15486
|
+
*/
|
|
15487
|
+
offset?: Property.Offset | Conditions<Property.Offset>;
|
|
15488
|
+
/**
|
|
15489
|
+
* The **`outline`** CSS shorthand property set all the outline properties in a single declaration.
|
|
15490
|
+
*
|
|
15491
|
+
*
|
|
15492
|
+
*/
|
|
15493
|
+
outline?: Property.Outline | Conditions<Property.Outline>;
|
|
15494
|
+
/**
|
|
15495
|
+
* The **`overflow`** CSS shorthand property sets the desired behavior for an element's overflow — i.e. when an element's content is too big to fit in its block formatting context — in both directions.
|
|
15496
|
+
*
|
|
15497
|
+
*
|
|
15498
|
+
* **Initial value**: `visible`
|
|
15499
|
+
*
|
|
15500
|
+
*/
|
|
15501
|
+
overflow?: Property.Overflow | Conditions<Property.Overflow>;
|
|
15502
|
+
/**
|
|
15503
|
+
* The **`overscroll-behavior`** CSS property sets what a browser does when reaching the boundary of a scrolling area. It's a shorthand for `overscroll-behavior-x` and `overscroll-behavior-y`.
|
|
15504
|
+
*
|
|
15505
|
+
*
|
|
15506
|
+
* **Initial value**: `auto`
|
|
15507
|
+
*
|
|
15508
|
+
*/
|
|
15509
|
+
overscrollBehavior?: Property.OverscrollBehavior | Conditions<Property.OverscrollBehavior>;
|
|
15510
|
+
/**
|
|
15511
|
+
* The **`padding`** CSS shorthand property sets the padding area on all four sides of an element at once.
|
|
15512
|
+
*
|
|
15513
|
+
*
|
|
15514
|
+
*/
|
|
15515
|
+
padding?: Property.Padding | Conditions<Property.Padding>;
|
|
15516
|
+
/**
|
|
15517
|
+
* The CSS **`place-items`** shorthand property allows you to align items along both the block and inline directions at once (i.e. the `align-items` and `justify-items` properties) in a relevant layout system such as Grid or Flexbox. If the second value is not set, the first value is also used for it.
|
|
15518
|
+
*
|
|
15519
|
+
*
|
|
15520
|
+
*/
|
|
15521
|
+
placeItems?: Property.PlaceItems | Conditions<Property.PlaceItems>;
|
|
15522
|
+
/**
|
|
15523
|
+
* The **`place-self`** CSS shorthand property allows you to align an individual item in both the block and inline directions at once (i.e. the `align-self` and `justify-self` properties) in a relevant layout system such as Grid or Flexbox. If the second value is not present, the first value is also used for it.
|
|
15524
|
+
*
|
|
15525
|
+
*
|
|
15526
|
+
*/
|
|
15527
|
+
placeSelf?: Property.PlaceSelf | Conditions<Property.PlaceSelf>;
|
|
15528
|
+
/**
|
|
15529
|
+
* The **`text-decoration`** shorthand CSS property sets the appearance of decorative lines on text. It is a shorthand for `text-decoration-line`, `text-decoration-color`, `text-decoration-style`, and the newer `text-decoration-thickness` property.
|
|
15530
|
+
*
|
|
15531
|
+
*
|
|
15532
|
+
*/
|
|
15533
|
+
textDecoration?: Property.TextDecoration | Conditions<Property.TextDecoration>;
|
|
15534
|
+
/**
|
|
15535
|
+
* The **`text-emphasis`** CSS property applies emphasis marks to text (except spaces and control characters). It is a shorthand for `text-emphasis-style` and `text-emphasis-color`.
|
|
15536
|
+
*
|
|
15537
|
+
*
|
|
15538
|
+
*/
|
|
15539
|
+
textEmphasis?: Property.TextEmphasis | Conditions<Property.TextEmphasis>;
|
|
15540
|
+
/**
|
|
15541
|
+
* The **`transition`** CSS property is a shorthand property for `transition-property`, `transition-duration`, `transition-timing-function`, and `transition-delay`.
|
|
15542
|
+
*
|
|
15543
|
+
*
|
|
15544
|
+
*/
|
|
15545
|
+
transition?: Property.Transition | Conditions<Property.Transition>;
|
|
15546
|
+
}
|
|
15547
|
+
type OnlyObject = Record<never, never>;
|
|
15548
|
+
type OnlyNumber = number & OnlyObject;
|
|
15549
|
+
type OnlyString = string & OnlyObject;
|
|
15550
|
+
type OnlyStringNumeric = (number | string) & OnlyObject;
|
|
15551
|
+
declare namespace Property {
|
|
15552
|
+
type AlignContent = DataType.ContentDistribution | DataType.ContentPosition | "baseline" | "normal" | OnlyString;
|
|
15553
|
+
type AlignItems = DataType.SelfPosition | "baseline" | "normal" | "stretch" | OnlyString;
|
|
15554
|
+
type AlignSelf = DataType.SelfPosition | "auto" | "baseline" | "normal" | "stretch" | OnlyString;
|
|
15555
|
+
type AlignTracks = DataType.ContentDistribution | DataType.ContentPosition | "baseline" | "normal" | OnlyString;
|
|
15556
|
+
type All = never;
|
|
15557
|
+
type Animation = DataType.SingleAnimation | OnlyString;
|
|
15558
|
+
type AnimationDelay = never | OnlyString;
|
|
15559
|
+
type AnimationDirection = DataType.SingleAnimationDirection | OnlyString;
|
|
15560
|
+
type AnimationDuration = never | OnlyString;
|
|
15561
|
+
type AnimationFillMode = DataType.SingleAnimationFillMode | OnlyString;
|
|
15562
|
+
type AnimationIterationCount = "infinite" | OnlyStringNumeric;
|
|
15563
|
+
type AnimationName = "none" | OnlyString;
|
|
15564
|
+
type AnimationPlayState = "paused" | "running" | OnlyString;
|
|
15565
|
+
type AnimationTimingFunction = DataType.EasingFunction | OnlyString;
|
|
15566
|
+
type Appearance = DataType.CompatAuto | "auto" | "menulist-button" | "none" | "textfield";
|
|
15567
|
+
type AspectRatio = "auto" | OnlyString;
|
|
15568
|
+
type Azimuth = "behind" | "center" | "center-left" | "center-right" | "far-left" | "far-right" | "left" | "left-side" | "leftwards" | "right" | "right-side" | "rightwards" | OnlyString;
|
|
15569
|
+
type BackdropFilter = "none" | OnlyString;
|
|
15570
|
+
type BackfaceVisibility = "hidden" | "visible";
|
|
15571
|
+
type Background = DataType.FinalBgLayer | OnlyString;
|
|
15572
|
+
type BackgroundAttachment = DataType.Attachment | OnlyString;
|
|
15573
|
+
type BackgroundBlendMode = DataType.BlendMode | OnlyString;
|
|
15574
|
+
type BackgroundClip = DataType.Box | OnlyString;
|
|
15575
|
+
type BackgroundColor = DataType.Color;
|
|
15576
|
+
type BackgroundImage = string;
|
|
15577
|
+
type BackgroundOrigin = DataType.Box | OnlyString;
|
|
15578
|
+
type BackgroundPosition = DataType.BgPosition | OnlyString;
|
|
15579
|
+
type BackgroundPositionX = "center" | "left" | "right" | "x-end" | "x-start" | OnlyStringNumeric;
|
|
15580
|
+
type BackgroundPositionY = "bottom" | "center" | "top" | "y-end" | "y-start" | OnlyStringNumeric;
|
|
15581
|
+
type BackgroundRepeat = DataType.RepeatStyle | OnlyString;
|
|
15582
|
+
type BackgroundSize = DataType.BgSize | OnlyString;
|
|
15583
|
+
type BlockOverflow = "clip" | "ellipsis" | OnlyString;
|
|
15584
|
+
type BlockSize = number | "auto" | "stretch" | "fit-content" | "max-content" | "min-content" | OnlyString;
|
|
15585
|
+
type Border = DataType.LineWidth | DataType.LineStyle | DataType.Color | OnlyString;
|
|
15586
|
+
type BorderBlock = DataType.LineWidth | DataType.LineStyle | DataType.Color | OnlyString;
|
|
15587
|
+
type BorderBlockColor = DataType.Color | OnlyString;
|
|
15588
|
+
type BorderBlockEnd = DataType.LineWidth | DataType.LineStyle | DataType.Color | OnlyString;
|
|
15589
|
+
type BorderBlockEndColor = DataType.Color;
|
|
15590
|
+
type BorderBlockEndStyle = DataType.LineStyle;
|
|
15591
|
+
type BorderBlockEndWidth = DataType.LineWidth;
|
|
15592
|
+
type BorderBlockStart = DataType.LineWidth | DataType.LineStyle | DataType.Color | OnlyString;
|
|
15593
|
+
type BorderBlockStartColor = DataType.Color;
|
|
15594
|
+
type BorderBlockStartStyle = DataType.LineStyle;
|
|
15595
|
+
type BorderBlockStartWidth = DataType.LineWidth;
|
|
15596
|
+
type BorderBlockStyle = DataType.LineStyle;
|
|
15597
|
+
type BorderBlockWidth = DataType.LineWidth;
|
|
15598
|
+
type BorderBottom = DataType.LineWidth | DataType.LineStyle | DataType.Color | OnlyString;
|
|
15599
|
+
type BorderBottomColor = DataType.Color;
|
|
15514
15600
|
type BorderBottomLeftRadius = OnlyStringNumeric;
|
|
15515
15601
|
type BorderBottomRightRadius = OnlyStringNumeric;
|
|
15516
15602
|
type BorderBottomStyle = DataType.LineStyle;
|
|
@@ -16049,6 +16135,12 @@ declare namespace DataType {
|
|
|
16049
16135
|
type ViewportLength = "auto" | OnlyStringNumeric;
|
|
16050
16136
|
type VisualBox = "border-box" | "content-box" | "padding-box";
|
|
16051
16137
|
}
|
|
16138
|
+
declare const fontWeightProperties: {
|
|
16139
|
+
regular: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16140
|
+
medium: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16141
|
+
semiBold: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16142
|
+
bold: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16143
|
+
};
|
|
16052
16144
|
declare const zIndexProperties: {
|
|
16053
16145
|
"100": `var(--${string})` | `var(--${string}, ${string})`;
|
|
16054
16146
|
"200": `var(--${string})` | `var(--${string}, ${string})`;
|
|
@@ -16060,11 +16152,662 @@ declare const zIndexProperties: {
|
|
|
16060
16152
|
"800": `var(--${string})` | `var(--${string}, ${string})`;
|
|
16061
16153
|
"900": `var(--${string})` | `var(--${string}, ${string})`;
|
|
16062
16154
|
};
|
|
16063
|
-
|
|
16064
|
-
|
|
16065
|
-
|
|
16066
|
-
|
|
16067
|
-
|
|
16155
|
+
declare const colorProperties: {
|
|
16156
|
+
currentColor: string;
|
|
16157
|
+
brand: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16158
|
+
"brand-alt": `var(--${string})` | `var(--${string}, ${string})`;
|
|
16159
|
+
disabled: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16160
|
+
error: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16161
|
+
info: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16162
|
+
invert: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16163
|
+
"invert-disabled": `var(--${string})` | `var(--${string}, ${string})`;
|
|
16164
|
+
"invert-secondary": `var(--${string})` | `var(--${string}, ${string})`;
|
|
16165
|
+
"on-brand": `var(--${string})` | `var(--${string}, ${string})`;
|
|
16166
|
+
"on-error": `var(--${string})` | `var(--${string}, ${string})`;
|
|
16167
|
+
"on-info": `var(--${string})` | `var(--${string}, ${string})`;
|
|
16168
|
+
"on-success": `var(--${string})` | `var(--${string}, ${string})`;
|
|
16169
|
+
"on-warning": `var(--${string})` | `var(--${string}, ${string})`;
|
|
16170
|
+
primary: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16171
|
+
secondary: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16172
|
+
success: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16173
|
+
warning: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16174
|
+
"warning-alt": `var(--${string})` | `var(--${string}, ${string})`;
|
|
16175
|
+
};
|
|
16176
|
+
declare const borderColorProperties: {
|
|
16177
|
+
transparent: string;
|
|
16178
|
+
brand: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16179
|
+
"brand-alt": `var(--${string})` | `var(--${string}, ${string})`;
|
|
16180
|
+
disabled: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16181
|
+
divider: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16182
|
+
error: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16183
|
+
info: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16184
|
+
invert: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16185
|
+
"invert-disabled": `var(--${string})` | `var(--${string}, ${string})`;
|
|
16186
|
+
primary: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16187
|
+
secondary: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16188
|
+
subdued: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16189
|
+
success: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16190
|
+
warning: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16191
|
+
};
|
|
16192
|
+
|
|
16193
|
+
declare const chipStyles: {
|
|
16194
|
+
chip: RuntimeFn<{
|
|
16195
|
+
/**
|
|
16196
|
+
* Specifies whether the chip will be displayed in the pill shape
|
|
16197
|
+
* @default false
|
|
16198
|
+
*/
|
|
16199
|
+
pill: {
|
|
16200
|
+
true: {
|
|
16201
|
+
borderRadius: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16202
|
+
};
|
|
16203
|
+
};
|
|
16204
|
+
/**
|
|
16205
|
+
* Specifies whether the chip is selected
|
|
16206
|
+
* @default false
|
|
16207
|
+
*/
|
|
16208
|
+
selected: {
|
|
16209
|
+
true: {
|
|
16210
|
+
borderColor: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16211
|
+
backgroundColor: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16212
|
+
color: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16213
|
+
":hover": {
|
|
16214
|
+
backgroundColor: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16215
|
+
};
|
|
16216
|
+
};
|
|
16217
|
+
};
|
|
16218
|
+
/**
|
|
16219
|
+
* Specifies the size of the chip
|
|
16220
|
+
* @default medium
|
|
16221
|
+
*/
|
|
16222
|
+
size: {
|
|
16223
|
+
medium: {
|
|
16224
|
+
lineHeight: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16225
|
+
fontSize: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16226
|
+
height: "2rem";
|
|
16227
|
+
};
|
|
16228
|
+
small: {
|
|
16229
|
+
lineHeight: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16230
|
+
fontSize: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16231
|
+
height: "1.5rem";
|
|
16232
|
+
};
|
|
16233
|
+
};
|
|
16234
|
+
/**
|
|
16235
|
+
* Specifies whether to handle text overflow within the chip.
|
|
16236
|
+
* When true, overflowing text is typically truncated with an ellipsis.
|
|
16237
|
+
* @default false
|
|
16238
|
+
*/
|
|
16239
|
+
textOverflow: {
|
|
16240
|
+
true: {
|
|
16241
|
+
minWidth: "auto";
|
|
16242
|
+
width: "100%";
|
|
16243
|
+
};
|
|
16244
|
+
};
|
|
16245
|
+
}>;
|
|
16246
|
+
content: RuntimeFn<{
|
|
16247
|
+
/**
|
|
16248
|
+
* Specifies whether to handle text overflow within the chip.
|
|
16249
|
+
* When true, overflowing text is typically truncated with an ellipsis.
|
|
16250
|
+
*/
|
|
16251
|
+
textOverflow: {
|
|
16252
|
+
true: {
|
|
16253
|
+
textOverflow: "ellipsis";
|
|
16254
|
+
whiteSpace: "nowrap";
|
|
16255
|
+
width: "100%";
|
|
16256
|
+
display: "block";
|
|
16257
|
+
overflow: "hidden";
|
|
16258
|
+
};
|
|
16259
|
+
};
|
|
16260
|
+
}>;
|
|
16261
|
+
close: string;
|
|
16262
|
+
overlay: string;
|
|
16263
|
+
};
|
|
16264
|
+
declare const paddingProperties: {
|
|
16265
|
+
medium: string;
|
|
16266
|
+
small: string;
|
|
16267
|
+
};
|
|
16268
|
+
|
|
16269
|
+
type ChipVariants = NonNullable<RecipeVariants<typeof chipStyles.chip>>;
|
|
16270
|
+
type ChipDynamicProperties = Pick<StandardLonghandProperties, "textTransform">;
|
|
16271
|
+
interface ChipSprinkle extends ChipDynamicProperties {
|
|
16272
|
+
/**
|
|
16273
|
+
* The padding properties are used to generate space around an chip's content area.
|
|
16274
|
+
*/
|
|
16275
|
+
padding?: AddDollar<keyof typeof paddingProperties> | Conditions<AddDollar<keyof typeof paddingProperties>>;
|
|
16276
|
+
}
|
|
16277
|
+
|
|
16278
|
+
declare const dividerBorderWidthProperties: {
|
|
16279
|
+
"1": string;
|
|
16280
|
+
"2": string;
|
|
16281
|
+
};
|
|
16282
|
+
|
|
16283
|
+
type DividerBorderStyle = "solid" | "dashed";
|
|
16284
|
+
interface DividerSprinkle {
|
|
16285
|
+
/**
|
|
16286
|
+
* The **`size`** CSS property sets an element's area.
|
|
16287
|
+
* @default 100%
|
|
16288
|
+
*/
|
|
16289
|
+
size?: string | Conditions<string>;
|
|
16290
|
+
/**
|
|
16291
|
+
* The **`type`** shorthand CSS property sets the line style for all four sides of an element's.
|
|
16292
|
+
* @default solid
|
|
16293
|
+
*/
|
|
16294
|
+
type?: AddDollar<DividerBorderStyle> | Conditions<AddDollar<DividerBorderStyle>>;
|
|
16295
|
+
/**
|
|
16296
|
+
* The **`thickness`** shorthand CSS property sets the width of an element's.
|
|
16297
|
+
* @default $1
|
|
16298
|
+
*/
|
|
16299
|
+
thickness?: AddDollar<keyof typeof dividerBorderWidthProperties> | Conditions<AddDollar<keyof typeof dividerBorderWidthProperties>>;
|
|
16300
|
+
/**
|
|
16301
|
+
* The **`color`** CSS property sets an element's color.
|
|
16302
|
+
* @default $divider
|
|
16303
|
+
*/
|
|
16304
|
+
color?: AddDollar<keyof typeof borderColorProperties> | Conditions<AddDollar<keyof typeof borderColorProperties>>;
|
|
16305
|
+
}
|
|
16306
|
+
|
|
16307
|
+
type IconDynamicProperties = Pick<StandardLonghandProperties, "cursor">;
|
|
16308
|
+
interface IconSprinkle extends IconDynamicProperties {
|
|
16309
|
+
/**
|
|
16310
|
+
* The color property sets the icon.
|
|
16311
|
+
*/
|
|
16312
|
+
color?: AddDollar<keyof typeof colorProperties> | Conditions<AddDollar<keyof typeof colorProperties>>;
|
|
16313
|
+
}
|
|
16314
|
+
|
|
16315
|
+
declare const textLineHeightProperties: {
|
|
16316
|
+
xxs: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16317
|
+
xs: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16318
|
+
s: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16319
|
+
m: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16320
|
+
l: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16321
|
+
xl: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16322
|
+
};
|
|
16323
|
+
declare const textFontSizeProperties: {
|
|
16324
|
+
xxs: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16325
|
+
xs: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16326
|
+
s: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16327
|
+
m: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16328
|
+
l: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16329
|
+
xl: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16330
|
+
};
|
|
16331
|
+
|
|
16332
|
+
type TextDynamicProperties = Pick<StandardLonghandProperties, "textAlign" | "wordBreak" | "textTransform" | "textOverflow" | "width" | "whiteSpace"> & Pick<StandardShorthandProperties, "textDecoration" | "overflow">;
|
|
16333
|
+
interface TextSprinkle extends TextDynamicProperties {
|
|
16334
|
+
/**
|
|
16335
|
+
* The color property is used to set the color of the title.
|
|
16336
|
+
*/
|
|
16337
|
+
color?: AddDollar<keyof typeof colorProperties> | Conditions<AddDollar<keyof typeof colorProperties>>;
|
|
16338
|
+
/**
|
|
16339
|
+
* The color property is used to set the color of the title.
|
|
16340
|
+
* @default $regular
|
|
16341
|
+
*/
|
|
16342
|
+
fontWeight?: AddDollar<keyof typeof fontWeightProperties> | Conditions<AddDollar<keyof typeof fontWeightProperties>>;
|
|
16343
|
+
/**
|
|
16344
|
+
* The fontSize property sets the size of the text.
|
|
16345
|
+
*/
|
|
16346
|
+
fontSize?: AddDollar<keyof typeof textFontSizeProperties> | Conditions<AddDollar<keyof typeof textFontSizeProperties>>;
|
|
16347
|
+
/**
|
|
16348
|
+
* The lineHeight property specifies the line height of the title.
|
|
16349
|
+
*/
|
|
16350
|
+
lineHeight?: AddDollar<keyof typeof textLineHeightProperties> | Conditions<AddDollar<keyof typeof textLineHeightProperties>>;
|
|
16351
|
+
}
|
|
16352
|
+
|
|
16353
|
+
declare const titleLineHeightProperties: {
|
|
16354
|
+
hero: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16355
|
+
xs: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16356
|
+
s: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16357
|
+
m: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16358
|
+
l: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16359
|
+
xl: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16360
|
+
};
|
|
16361
|
+
declare const titleFontSizeProperties: {
|
|
16362
|
+
hero: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16363
|
+
xs: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16364
|
+
s: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16365
|
+
m: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16366
|
+
l: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16367
|
+
xl: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16368
|
+
};
|
|
16369
|
+
|
|
16370
|
+
type TitleDynamicProperties = Pick<StandardLonghandProperties, "textAlign" | "textTransform"> & Pick<StandardShorthandProperties, "textDecoration">;
|
|
16371
|
+
interface TitleSprinkle extends TitleDynamicProperties {
|
|
16372
|
+
/**
|
|
16373
|
+
* The color property is used to set the color of the title.
|
|
16374
|
+
*/
|
|
16375
|
+
color?: AddDollar<keyof typeof colorProperties> | Conditions<AddDollar<keyof typeof colorProperties>>;
|
|
16376
|
+
/**
|
|
16377
|
+
* The color property is used to set the color of the title.
|
|
16378
|
+
* @default $regular
|
|
16379
|
+
*/
|
|
16380
|
+
fontWeight?: AddDollar<keyof typeof fontWeightProperties> | Conditions<AddDollar<keyof typeof fontWeightProperties>>;
|
|
16381
|
+
/**
|
|
16382
|
+
* The fontSize property sets the size of the title.
|
|
16383
|
+
*/
|
|
16384
|
+
fontSize?: AddDollar<keyof typeof titleFontSizeProperties> | Conditions<AddDollar<keyof typeof titleFontSizeProperties>>;
|
|
16385
|
+
/**
|
|
16386
|
+
* The lineHeight property specifies the line height of the title.
|
|
16387
|
+
*/
|
|
16388
|
+
lineHeight?: AddDollar<keyof typeof titleLineHeightProperties> | Conditions<AddDollar<keyof typeof titleLineHeightProperties>>;
|
|
16389
|
+
}
|
|
16390
|
+
|
|
16391
|
+
declare const avatarStyles: {
|
|
16392
|
+
container: string;
|
|
16393
|
+
avatar: RuntimeFn<{
|
|
16394
|
+
/**
|
|
16395
|
+
* Specifies the size of the Avatar component.
|
|
16396
|
+
* @default medium
|
|
16397
|
+
*/
|
|
16398
|
+
size: {
|
|
16399
|
+
small: {
|
|
16400
|
+
width: "20px";
|
|
16401
|
+
height: "20px";
|
|
16402
|
+
fontSize: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16403
|
+
};
|
|
16404
|
+
medium: {
|
|
16405
|
+
width: "30px";
|
|
16406
|
+
height: "30px";
|
|
16407
|
+
fontSize: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16408
|
+
};
|
|
16409
|
+
large: {
|
|
16410
|
+
width: "40px";
|
|
16411
|
+
height: "40px";
|
|
16412
|
+
fontSize: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16413
|
+
borderWidth: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16414
|
+
};
|
|
16415
|
+
xLarge: {
|
|
16416
|
+
width: "60px";
|
|
16417
|
+
height: "60px";
|
|
16418
|
+
fontSize: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16419
|
+
borderWidth: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16420
|
+
};
|
|
16421
|
+
};
|
|
16422
|
+
}>;
|
|
16423
|
+
badge: RuntimeFn<{
|
|
16424
|
+
size: {
|
|
16425
|
+
small: {
|
|
16426
|
+
left: "18px";
|
|
16427
|
+
};
|
|
16428
|
+
medium: {
|
|
16429
|
+
left: "24px";
|
|
16430
|
+
};
|
|
16431
|
+
large: {
|
|
16432
|
+
top: "-4px";
|
|
16433
|
+
left: "30px";
|
|
16434
|
+
};
|
|
16435
|
+
xLarge: {
|
|
16436
|
+
left: "44px";
|
|
16437
|
+
};
|
|
16438
|
+
};
|
|
16439
|
+
}>;
|
|
16440
|
+
};
|
|
16441
|
+
|
|
16442
|
+
type AvatarVariants = NonNullable<RecipeVariants<typeof avatarStyles.avatar>>;
|
|
16443
|
+
|
|
16444
|
+
declare const badgeStyles: {
|
|
16445
|
+
badge: RuntimeFn<{
|
|
16446
|
+
/**
|
|
16447
|
+
* Determines the visual style of the badge, influencing its color scheme and appearance.
|
|
16448
|
+
* @default brand
|
|
16449
|
+
*/
|
|
16450
|
+
appearance: {
|
|
16451
|
+
brand: {
|
|
16452
|
+
backgroundColor: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16453
|
+
borderColor: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16454
|
+
color: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16455
|
+
};
|
|
16456
|
+
danger: {
|
|
16457
|
+
backgroundColor: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16458
|
+
borderColor: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16459
|
+
color: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16460
|
+
};
|
|
16461
|
+
success: {
|
|
16462
|
+
backgroundColor: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16463
|
+
borderColor: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16464
|
+
color: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16465
|
+
};
|
|
16466
|
+
warning: {
|
|
16467
|
+
backgroundColor: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16468
|
+
borderColor: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16469
|
+
color: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16470
|
+
};
|
|
16471
|
+
info: {
|
|
16472
|
+
backgroundColor: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16473
|
+
borderColor: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16474
|
+
color: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16475
|
+
};
|
|
16476
|
+
neutral: {
|
|
16477
|
+
backgroundColor: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16478
|
+
borderColor: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16479
|
+
color: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16480
|
+
};
|
|
16481
|
+
inverted: {
|
|
16482
|
+
backgroundColor: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16483
|
+
borderColor: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16484
|
+
color: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16485
|
+
};
|
|
16486
|
+
};
|
|
16487
|
+
/**
|
|
16488
|
+
* Specifies the size of the badge, controlling its dimensions.
|
|
16489
|
+
* @default medium
|
|
16490
|
+
*/
|
|
16491
|
+
size: {
|
|
16492
|
+
large: {
|
|
16493
|
+
padding: `0 var(--${string})` | `0 var(--${string}, ${string})`;
|
|
16494
|
+
height: "3rem";
|
|
16495
|
+
fontSize: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16496
|
+
fontWeight: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16497
|
+
};
|
|
16498
|
+
medium: {
|
|
16499
|
+
padding: `0 var(--${string})` | `0 var(--${string}, ${string})`;
|
|
16500
|
+
height: "2em";
|
|
16501
|
+
fontSize: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16502
|
+
fontWeight: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16503
|
+
};
|
|
16504
|
+
small: {
|
|
16505
|
+
padding: `0 var(--${string})` | `0 var(--${string}, ${string})`;
|
|
16506
|
+
height: "1.5rem";
|
|
16507
|
+
fontSize: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16508
|
+
fontWeight: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16509
|
+
};
|
|
16510
|
+
dot: {
|
|
16511
|
+
height: "0.5rem";
|
|
16512
|
+
width: "0.5rem";
|
|
16513
|
+
};
|
|
16514
|
+
};
|
|
16515
|
+
/**
|
|
16516
|
+
* Defines the visual variant of the badge, affecting its background style.
|
|
16517
|
+
* @default solid
|
|
16518
|
+
*/
|
|
16519
|
+
variant: {
|
|
16520
|
+
solid: {};
|
|
16521
|
+
outlined: {
|
|
16522
|
+
borderWidth: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16523
|
+
borderStyle: "solid";
|
|
16524
|
+
borderColor: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16525
|
+
};
|
|
16526
|
+
};
|
|
16527
|
+
}>;
|
|
16528
|
+
};
|
|
16529
|
+
|
|
16530
|
+
type BadgeVariants = NonNullable<RecipeVariants<typeof badgeStyles.badge>>;
|
|
16531
|
+
|
|
16532
|
+
declare const buttonStyles: {
|
|
16533
|
+
button: RuntimeFn<{
|
|
16534
|
+
/**
|
|
16535
|
+
* Specifies whether the button should take up the full width of its container.
|
|
16536
|
+
* This variant is useful when you want to make a button span the entire width of its parent container.
|
|
16537
|
+
*
|
|
16538
|
+
*/
|
|
16539
|
+
full: {
|
|
16540
|
+
true: {
|
|
16541
|
+
width: "100%";
|
|
16542
|
+
};
|
|
16543
|
+
};
|
|
16544
|
+
/**
|
|
16545
|
+
* Defines the appearance variants for the button component.
|
|
16546
|
+
* Each appearance variant corresponds to a specific background color, border color, and text color.
|
|
16547
|
+
* @default brand
|
|
16548
|
+
*/
|
|
16549
|
+
appearance: {
|
|
16550
|
+
brand: {
|
|
16551
|
+
backgroundColor: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16552
|
+
borderColor: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16553
|
+
color: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16554
|
+
};
|
|
16555
|
+
danger: {
|
|
16556
|
+
backgroundColor: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16557
|
+
borderColor: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16558
|
+
color: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16559
|
+
};
|
|
16560
|
+
success: {
|
|
16561
|
+
backgroundColor: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16562
|
+
borderColor: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16563
|
+
color: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16564
|
+
};
|
|
16565
|
+
warning: {
|
|
16566
|
+
backgroundColor: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16567
|
+
borderColor: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16568
|
+
color: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16569
|
+
};
|
|
16570
|
+
neutral: {
|
|
16571
|
+
backgroundColor: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16572
|
+
borderColor: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16573
|
+
color: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16574
|
+
};
|
|
16575
|
+
inverted: {
|
|
16576
|
+
backgroundColor: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16577
|
+
borderColor: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16578
|
+
color: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16579
|
+
};
|
|
16580
|
+
};
|
|
16581
|
+
/**
|
|
16582
|
+
* Defines the size of the button component.
|
|
16583
|
+
* @default large
|
|
16584
|
+
*/
|
|
16585
|
+
size: {
|
|
16586
|
+
large: {
|
|
16587
|
+
gap: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16588
|
+
padding: `0 var(--${string})` | `0 var(--${string}, ${string})`;
|
|
16589
|
+
height: "3rem";
|
|
16590
|
+
fontSize: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16591
|
+
};
|
|
16592
|
+
medium: {
|
|
16593
|
+
gap: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16594
|
+
padding: `0 var(--${string})` | `0 var(--${string}, ${string})`;
|
|
16595
|
+
height: "2.5rem";
|
|
16596
|
+
fontSize: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16597
|
+
};
|
|
16598
|
+
small: {
|
|
16599
|
+
gap: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16600
|
+
padding: `0 var(--${string})` | `0 var(--${string}, ${string})`;
|
|
16601
|
+
height: "2rem";
|
|
16602
|
+
fontSize: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16603
|
+
};
|
|
16604
|
+
};
|
|
16605
|
+
/**
|
|
16606
|
+
* Defines the visual variant of the badge, affecting its background style, border and text.
|
|
16607
|
+
* @default solid
|
|
16608
|
+
*/
|
|
16609
|
+
variant: {
|
|
16610
|
+
solid: {
|
|
16611
|
+
selectors: {
|
|
16612
|
+
"&:hover:after": {
|
|
16613
|
+
backgroundColor: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16614
|
+
};
|
|
16615
|
+
"&:active:after": {
|
|
16616
|
+
borderColor: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16617
|
+
backgroundColor: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16618
|
+
};
|
|
16619
|
+
};
|
|
16620
|
+
};
|
|
16621
|
+
outlined: {
|
|
16622
|
+
backgroundColor: "transparent";
|
|
16623
|
+
};
|
|
16624
|
+
text: {
|
|
16625
|
+
backgroundColor: "transparent";
|
|
16626
|
+
textDecoration: "underline";
|
|
16627
|
+
borderColor: "transparent";
|
|
16628
|
+
};
|
|
16629
|
+
tonal: {
|
|
16630
|
+
borderColor: "transparent";
|
|
16631
|
+
};
|
|
16632
|
+
};
|
|
16633
|
+
}>;
|
|
16634
|
+
};
|
|
16635
|
+
|
|
16636
|
+
type ButtonVariants = NonNullable<RecipeVariants<typeof buttonStyles.button>>;
|
|
16637
|
+
|
|
16638
|
+
declare const overlayBackgroundColor: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16639
|
+
declare const checkboxStyles: {
|
|
16640
|
+
checkbox: RuntimeFn<{
|
|
16641
|
+
/**
|
|
16642
|
+
* Specifies whether the checkbox is in error state
|
|
16643
|
+
*/
|
|
16644
|
+
error: {
|
|
16645
|
+
true: {
|
|
16646
|
+
borderColor: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16647
|
+
":checked": {
|
|
16648
|
+
backgroundColor: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16649
|
+
};
|
|
16650
|
+
};
|
|
16651
|
+
};
|
|
16652
|
+
/**
|
|
16653
|
+
* Specifies the size of the checkbox
|
|
16654
|
+
*/
|
|
16655
|
+
size: {
|
|
16656
|
+
medium: {
|
|
16657
|
+
width: "1.25rem";
|
|
16658
|
+
height: "1.25rem";
|
|
16659
|
+
};
|
|
16660
|
+
large: {
|
|
16661
|
+
width: "1.5rem";
|
|
16662
|
+
height: "1.5rem";
|
|
16663
|
+
};
|
|
16664
|
+
};
|
|
16665
|
+
/**
|
|
16666
|
+
* Specifies whether the checkbox is indeterminate state
|
|
16667
|
+
*/
|
|
16668
|
+
indeterminate: {
|
|
16669
|
+
true: {
|
|
16670
|
+
selectors: {
|
|
16671
|
+
"&:checked:after": {
|
|
16672
|
+
top: number;
|
|
16673
|
+
bottom: number;
|
|
16674
|
+
margin: "auto";
|
|
16675
|
+
height: number;
|
|
16676
|
+
borderLeft: "none";
|
|
16677
|
+
transform: "rotate(0deg)";
|
|
16678
|
+
};
|
|
16679
|
+
};
|
|
16680
|
+
};
|
|
16681
|
+
};
|
|
16682
|
+
}>;
|
|
16683
|
+
label: RuntimeFn<{
|
|
16684
|
+
/**
|
|
16685
|
+
* Specifies whether the label is in error state
|
|
16686
|
+
*/
|
|
16687
|
+
error: {
|
|
16688
|
+
true: {
|
|
16689
|
+
vars: {
|
|
16690
|
+
[overlayBackgroundColor]: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16691
|
+
};
|
|
16692
|
+
};
|
|
16693
|
+
};
|
|
16694
|
+
}>;
|
|
16695
|
+
container: string;
|
|
16696
|
+
overlay: string;
|
|
16697
|
+
};
|
|
16698
|
+
|
|
16699
|
+
type CheckboxVariants = NonNullable<RecipeVariants<typeof checkboxStyles.checkbox>>;
|
|
16700
|
+
|
|
16701
|
+
declare const iconButtonStyles: {
|
|
16702
|
+
iconButton: RuntimeFn<{
|
|
16703
|
+
/**
|
|
16704
|
+
* Determines the visual style of the icon button, influencing its color scheme and appearance.
|
|
16705
|
+
* @default brand
|
|
16706
|
+
*/
|
|
16707
|
+
appearance: {
|
|
16708
|
+
brand: {
|
|
16709
|
+
backgroundColor: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16710
|
+
borderColor: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16711
|
+
color: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16712
|
+
};
|
|
16713
|
+
danger: {
|
|
16714
|
+
backgroundColor: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16715
|
+
borderColor: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16716
|
+
color: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16717
|
+
};
|
|
16718
|
+
success: {
|
|
16719
|
+
backgroundColor: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16720
|
+
borderColor: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16721
|
+
color: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16722
|
+
};
|
|
16723
|
+
warning: {
|
|
16724
|
+
backgroundColor: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16725
|
+
borderColor: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16726
|
+
color: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16727
|
+
};
|
|
16728
|
+
neutral: {
|
|
16729
|
+
backgroundColor: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16730
|
+
borderColor: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16731
|
+
color: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16732
|
+
};
|
|
16733
|
+
inverted: {
|
|
16734
|
+
backgroundColor: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16735
|
+
borderColor: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16736
|
+
color: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16737
|
+
};
|
|
16738
|
+
};
|
|
16739
|
+
/**
|
|
16740
|
+
* Defines the size of the icon button component.
|
|
16741
|
+
* @default medium
|
|
16742
|
+
*/
|
|
16743
|
+
size: {
|
|
16744
|
+
large: {
|
|
16745
|
+
height: "3rem";
|
|
16746
|
+
width: "3rem";
|
|
16747
|
+
fontSize: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16748
|
+
};
|
|
16749
|
+
medium: {
|
|
16750
|
+
height: "2.5rem";
|
|
16751
|
+
width: "2.5rem";
|
|
16752
|
+
fontSize: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16753
|
+
};
|
|
16754
|
+
small: {
|
|
16755
|
+
height: "2rem";
|
|
16756
|
+
width: "2rem";
|
|
16757
|
+
fontSize: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16758
|
+
};
|
|
16759
|
+
};
|
|
16760
|
+
variant: {
|
|
16761
|
+
/**
|
|
16762
|
+
* Defines the visual variant of the icon button, affecting its background style, border and text.
|
|
16763
|
+
* @default solid
|
|
16764
|
+
*/
|
|
16765
|
+
solid: {
|
|
16766
|
+
selectors: {
|
|
16767
|
+
"&:hover:after": {
|
|
16768
|
+
backgroundColor: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16769
|
+
};
|
|
16770
|
+
"&:active:after": {
|
|
16771
|
+
borderColor: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16772
|
+
backgroundColor: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16773
|
+
};
|
|
16774
|
+
};
|
|
16775
|
+
};
|
|
16776
|
+
outlined: {
|
|
16777
|
+
backgroundColor: "transparent";
|
|
16778
|
+
};
|
|
16779
|
+
ghost: {
|
|
16780
|
+
backgroundColor: "transparent";
|
|
16781
|
+
borderColor: "transparent";
|
|
16782
|
+
};
|
|
16783
|
+
tonal: {
|
|
16784
|
+
borderColor: "transparent";
|
|
16785
|
+
};
|
|
16786
|
+
};
|
|
16787
|
+
/**
|
|
16788
|
+
* Defines if the button should have rounded edges.
|
|
16789
|
+
*
|
|
16790
|
+
* - `true`: The button will be rendered with completely rounded edges, useful for circular -shaped icons.
|
|
16791
|
+
* - `false` (default): The button will have standard edges or defined by the component style.
|
|
16792
|
+
* @default false
|
|
16793
|
+
*/
|
|
16794
|
+
rounded: {
|
|
16795
|
+
true: {
|
|
16796
|
+
borderRadius: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16797
|
+
":after": {
|
|
16798
|
+
borderRadius: `var(--${string})` | `var(--${string}, ${string})`;
|
|
16799
|
+
};
|
|
16800
|
+
};
|
|
16801
|
+
};
|
|
16802
|
+
}>;
|
|
16803
|
+
};
|
|
16804
|
+
|
|
16805
|
+
type IconButtonVariants = NonNullable<RecipeVariants<typeof iconButtonStyles.iconButton>>;
|
|
16806
|
+
|
|
16807
|
+
declare const styles$6: {
|
|
16808
|
+
container: RuntimeFn<{
|
|
16809
|
+
/**
|
|
16810
|
+
* Determines the visual style of the input, affecting its border
|
|
16068
16811
|
*/
|
|
16069
16812
|
appearance: {
|
|
16070
16813
|
success: {
|
|
@@ -16336,6 +17079,57 @@ declare const styles$3: {
|
|
|
16336
17079
|
|
|
16337
17080
|
type RadioButtonVariants = NonNullable<RecipeVariants<typeof styles$3.radioButton>>;
|
|
16338
17081
|
|
|
17082
|
+
declare const selectStyles: {
|
|
17083
|
+
select: RuntimeFn<{
|
|
17084
|
+
/**
|
|
17085
|
+
* Determines the visual style of the input, affecting its border
|
|
17086
|
+
*/
|
|
17087
|
+
appearance: {
|
|
17088
|
+
success: {
|
|
17089
|
+
borderColor: `var(--${string})` | `var(--${string}, ${string})`;
|
|
17090
|
+
":hover": {
|
|
17091
|
+
borderColor: `var(--${string})` | `var(--${string}, ${string})`;
|
|
17092
|
+
};
|
|
17093
|
+
":focus": {
|
|
17094
|
+
borderColor: `var(--${string})` | `var(--${string}, ${string})`;
|
|
17095
|
+
};
|
|
17096
|
+
":active": {
|
|
17097
|
+
backgroundColor: `var(--${string})` | `var(--${string}, ${string})`;
|
|
17098
|
+
};
|
|
17099
|
+
};
|
|
17100
|
+
error: {
|
|
17101
|
+
borderColor: `var(--${string})` | `var(--${string}, ${string})`;
|
|
17102
|
+
":hover": {
|
|
17103
|
+
borderColor: `var(--${string})` | `var(--${string}, ${string})`;
|
|
17104
|
+
};
|
|
17105
|
+
":focus": {
|
|
17106
|
+
borderColor: `var(--${string})` | `var(--${string}, ${string})`;
|
|
17107
|
+
};
|
|
17108
|
+
":active": {
|
|
17109
|
+
backgroundColor: `var(--${string})` | `var(--${string}, ${string})`;
|
|
17110
|
+
};
|
|
17111
|
+
};
|
|
17112
|
+
};
|
|
17113
|
+
/**
|
|
17114
|
+
* Specifies the size of the badge, controlling its dimensions.
|
|
17115
|
+
*/
|
|
17116
|
+
size: {
|
|
17117
|
+
large: {
|
|
17118
|
+
height: "3rem";
|
|
17119
|
+
};
|
|
17120
|
+
medium: {
|
|
17121
|
+
height: "2.5rem";
|
|
17122
|
+
};
|
|
17123
|
+
small: {
|
|
17124
|
+
height: "2rem";
|
|
17125
|
+
padding: `0 var(--${string})` | `0 var(--${string}, ${string})`;
|
|
17126
|
+
};
|
|
17127
|
+
};
|
|
17128
|
+
}>;
|
|
17129
|
+
list: string;
|
|
17130
|
+
close: string;
|
|
17131
|
+
};
|
|
17132
|
+
|
|
16339
17133
|
declare const dropdownStyles: {
|
|
16340
17134
|
dropdown: RuntimeFn<{
|
|
16341
17135
|
/**
|
|
@@ -16370,6 +17164,101 @@ declare const dropdownStyles: {
|
|
|
16370
17164
|
};
|
|
16371
17165
|
|
|
16372
17166
|
type DropdownVariants = NonNullable<RecipeVariants<typeof dropdownStyles.dropdown> & RecipeVariants<typeof dropdownStyles.item>>;
|
|
17167
|
+
type DropdownDynamicProperties = Pick<StandardLonghandProperties, "width" | "maxWidth">;
|
|
17168
|
+
interface DropdownSprinkle extends DropdownDynamicProperties {
|
|
17169
|
+
/**
|
|
17170
|
+
* The zIndex property specifies the stack order of the box.
|
|
17171
|
+
*/
|
|
17172
|
+
zIndex?: AddDollar<keyof typeof zIndexProperties> | Conditions<AddDollar<keyof typeof zIndexProperties>>;
|
|
17173
|
+
}
|
|
17174
|
+
|
|
17175
|
+
type SelectVariants = NonNullable<RecipeVariants<typeof selectStyles.select>>;
|
|
17176
|
+
type SelectSprinkle = Pick<StandardLonghandProperties, "maxHeight"> & Pick<DropdownSprinkle, "zIndex">;
|
|
17177
|
+
|
|
17178
|
+
declare const statusStyles: {
|
|
17179
|
+
status: RuntimeFn<{
|
|
17180
|
+
/**
|
|
17181
|
+
* Specifies whether the status should take up the full width of its container.
|
|
17182
|
+
* This variant is useful when you want to make a status span the entire width of its parent container.
|
|
17183
|
+
* @default false
|
|
17184
|
+
*
|
|
17185
|
+
*/
|
|
17186
|
+
full: {
|
|
17187
|
+
true: {
|
|
17188
|
+
width: "100%";
|
|
17189
|
+
};
|
|
17190
|
+
};
|
|
17191
|
+
/**
|
|
17192
|
+
* Determines the visual style of the status, influencing its color scheme.
|
|
17193
|
+
* @default success
|
|
17194
|
+
*/
|
|
17195
|
+
appearance: {
|
|
17196
|
+
success: {
|
|
17197
|
+
backgroundColor: `var(--${string})` | `var(--${string}, ${string})`;
|
|
17198
|
+
color: `var(--${string})` | `var(--${string}, ${string})`;
|
|
17199
|
+
};
|
|
17200
|
+
warning: {
|
|
17201
|
+
backgroundColor: `var(--${string})` | `var(--${string}, ${string})`;
|
|
17202
|
+
color: `var(--${string})` | `var(--${string}, ${string})`;
|
|
17203
|
+
};
|
|
17204
|
+
danger: {
|
|
17205
|
+
backgroundColor: `var(--${string})` | `var(--${string}, ${string})`;
|
|
17206
|
+
color: `var(--${string})` | `var(--${string}, ${string})`;
|
|
17207
|
+
};
|
|
17208
|
+
inverted: {
|
|
17209
|
+
backgroundColor: `var(--${string})` | `var(--${string}, ${string})`;
|
|
17210
|
+
color: `var(--${string})` | `var(--${string}, ${string})`;
|
|
17211
|
+
};
|
|
17212
|
+
neutral: {
|
|
17213
|
+
backgroundColor: `var(--${string})` | `var(--${string}, ${string})`;
|
|
17214
|
+
color: `var(--${string})` | `var(--${string}, ${string})`;
|
|
17215
|
+
};
|
|
17216
|
+
info: {
|
|
17217
|
+
backgroundColor: `var(--${string})` | `var(--${string}, ${string})`;
|
|
17218
|
+
color: `var(--${string})` | `var(--${string}, ${string})`;
|
|
17219
|
+
};
|
|
17220
|
+
};
|
|
17221
|
+
/**
|
|
17222
|
+
* Specifies the size of the badge, controlling its dimensions.
|
|
17223
|
+
* @default normal
|
|
17224
|
+
*/
|
|
17225
|
+
size: {
|
|
17226
|
+
normal: {
|
|
17227
|
+
height: "1.75rem";
|
|
17228
|
+
fontSize: `var(--${string})` | `var(--${string}, ${string})`;
|
|
17229
|
+
};
|
|
17230
|
+
small: {
|
|
17231
|
+
height: "1.5rem";
|
|
17232
|
+
fontSize: `var(--${string})` | `var(--${string}, ${string})`;
|
|
17233
|
+
};
|
|
17234
|
+
};
|
|
17235
|
+
/**
|
|
17236
|
+
* Specifies the variant of the status
|
|
17237
|
+
* @default solid
|
|
17238
|
+
*/
|
|
17239
|
+
variant: {
|
|
17240
|
+
solid: {};
|
|
17241
|
+
text: {
|
|
17242
|
+
backgroundColor: "transparent";
|
|
17243
|
+
};
|
|
17244
|
+
subdued: {};
|
|
17245
|
+
};
|
|
17246
|
+
}>;
|
|
17247
|
+
dot: RuntimeFn<{
|
|
17248
|
+
size: {
|
|
17249
|
+
normal: {
|
|
17250
|
+
height: ".5rem";
|
|
17251
|
+
width: ".5rem";
|
|
17252
|
+
};
|
|
17253
|
+
small: {
|
|
17254
|
+
height: ".25rem";
|
|
17255
|
+
width: ".25rem";
|
|
17256
|
+
};
|
|
17257
|
+
};
|
|
17258
|
+
}>;
|
|
17259
|
+
};
|
|
17260
|
+
|
|
17261
|
+
type StatusVariants = NonNullable<RecipeVariants<typeof statusStyles.status>>;
|
|
16373
17262
|
|
|
16374
17263
|
declare const bannerStyles: {
|
|
16375
17264
|
banner: RuntimeFn<{
|
|
@@ -16564,6 +17453,50 @@ declare const styles$1: {
|
|
|
16564
17453
|
|
|
16565
17454
|
type ToggleVariants = RecipeVariants<typeof styles$1.toggle>;
|
|
16566
17455
|
|
|
17456
|
+
declare const styles: {
|
|
17457
|
+
tooltip: RuntimeFn<{
|
|
17458
|
+
/**
|
|
17459
|
+
* Specifies whether the color scheme should be inverted
|
|
17460
|
+
* @default false
|
|
17461
|
+
*/
|
|
17462
|
+
inverted: {
|
|
17463
|
+
true: {
|
|
17464
|
+
backgroundColor: `var(--${string})` | `var(--${string}, ${string})`;
|
|
17465
|
+
color: `var(--${string})` | `var(--${string}, ${string})`;
|
|
17466
|
+
};
|
|
17467
|
+
false: {
|
|
17468
|
+
backgroundColor: `var(--${string})` | `var(--${string}, ${string})`;
|
|
17469
|
+
color: `var(--${string})` | `var(--${string}, ${string})`;
|
|
17470
|
+
};
|
|
17471
|
+
};
|
|
17472
|
+
/**
|
|
17473
|
+
* Specifies the padding for the tooltip
|
|
17474
|
+
* @default base
|
|
17475
|
+
*/
|
|
17476
|
+
padding: {
|
|
17477
|
+
base: {
|
|
17478
|
+
padding: `var(--${string})` | `var(--${string}, ${string})`;
|
|
17479
|
+
};
|
|
17480
|
+
none: {
|
|
17481
|
+
padding: number;
|
|
17482
|
+
};
|
|
17483
|
+
};
|
|
17484
|
+
}>;
|
|
17485
|
+
header: RuntimeFn<{
|
|
17486
|
+
padding: {
|
|
17487
|
+
base: {
|
|
17488
|
+
padding: `var(--${string})` | `var(--${string}, ${string})`;
|
|
17489
|
+
};
|
|
17490
|
+
none: {
|
|
17491
|
+
padding: number;
|
|
17492
|
+
};
|
|
17493
|
+
};
|
|
17494
|
+
}>;
|
|
17495
|
+
container: string;
|
|
17496
|
+
};
|
|
17497
|
+
|
|
17498
|
+
type TooltipVariants = NonNullable<RecipeVariants<typeof styles.tooltip>>;
|
|
17499
|
+
|
|
16567
17500
|
declare const accordionStyles: {
|
|
16568
17501
|
item: RuntimeFn<{
|
|
16569
17502
|
selected: {
|
|
@@ -16949,6 +17882,97 @@ declare const stepperStyles: {
|
|
|
16949
17882
|
|
|
16950
17883
|
type StepperVariants = NonNullable<RecipeVariants<typeof stepperStyles.stepper> & RecipeVariants<typeof stepperStyles.circle>>;
|
|
16951
17884
|
|
|
17885
|
+
type BadgeProps = BadgeVariants;
|
|
17886
|
+
|
|
17887
|
+
interface AvatarTypings {
|
|
17888
|
+
/**
|
|
17889
|
+
* Renders a Badge component along with the Avatar. The badge prop accepts an object of type Badge, representing the Badge component.
|
|
17890
|
+
* @TJS-type Badge
|
|
17891
|
+
*/
|
|
17892
|
+
badge?: BadgeProps;
|
|
17893
|
+
}
|
|
17894
|
+
type AvatarProps = AvatarTypings & AvatarVariants;
|
|
17895
|
+
|
|
17896
|
+
interface DividerProps extends DividerSprinkle {
|
|
17897
|
+
/**
|
|
17898
|
+
* The direction of the Divider.
|
|
17899
|
+
* @default horizontal
|
|
17900
|
+
*/
|
|
17901
|
+
direction?: "vertical" | "horizontal";
|
|
17902
|
+
}
|
|
17903
|
+
|
|
17904
|
+
type IconProps = IconSprinkle;
|
|
17905
|
+
|
|
17906
|
+
type StepperProps = Pick<StepperVariants, "direction">;
|
|
17907
|
+
|
|
17908
|
+
interface TitleProps extends TitleSprinkle {
|
|
17909
|
+
/**
|
|
17910
|
+
* Type of html tag to create for the title.
|
|
17911
|
+
* @default h1
|
|
17912
|
+
*/
|
|
17913
|
+
as?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
|
|
17914
|
+
}
|
|
17915
|
+
|
|
17916
|
+
interface TextProps extends TextSprinkle {
|
|
17917
|
+
/**
|
|
17918
|
+
* Type of html tag to create for the Text component.
|
|
17919
|
+
* @default p
|
|
17920
|
+
*/
|
|
17921
|
+
as?: "p" | "span";
|
|
17922
|
+
/**
|
|
17923
|
+
* The -webkit-line-clamp CSS property allows limiting of the contents of a block to the specified number of lines.
|
|
17924
|
+
*/
|
|
17925
|
+
lineClamp?: number;
|
|
17926
|
+
}
|
|
17927
|
+
|
|
17928
|
+
interface TooltipTyping {
|
|
17929
|
+
/**
|
|
17930
|
+
* Conditional for displaying the popover arrow.
|
|
17931
|
+
* @default true
|
|
17932
|
+
*/
|
|
17933
|
+
arrow?: boolean;
|
|
17934
|
+
/**
|
|
17935
|
+
* A common feature of select dropdowns is that the dropdown matches the width of the reference regardless of its contents.
|
|
17936
|
+
* @default false
|
|
17937
|
+
*/
|
|
17938
|
+
matchReferenceWidth?: boolean;
|
|
17939
|
+
/**
|
|
17940
|
+
* Adds hover event listeners that change the open state, like CSS :hover.
|
|
17941
|
+
* @default false
|
|
17942
|
+
*/
|
|
17943
|
+
enabledHover?: boolean;
|
|
17944
|
+
/**
|
|
17945
|
+
* Adds click event listeners that change the open state.
|
|
17946
|
+
* @default true
|
|
17947
|
+
*/
|
|
17948
|
+
enabledClick?: boolean;
|
|
17949
|
+
/**
|
|
17950
|
+
* Adds listeners that dismiss (close) the floating element.
|
|
17951
|
+
* @default true
|
|
17952
|
+
*/
|
|
17953
|
+
enabledDismiss?: boolean;
|
|
17954
|
+
/**
|
|
17955
|
+
* Offest displaces the floating element from its core placement along the specified axes.
|
|
17956
|
+
* @default 10
|
|
17957
|
+
*/
|
|
17958
|
+
offset?: number;
|
|
17959
|
+
/**
|
|
17960
|
+
* Specifies the ID of the portal element where the tooltip should be rendered.
|
|
17961
|
+
* This can be useful for rendering the tooltip in a different part of the DOM, such as a modal or overlay.
|
|
17962
|
+
*/
|
|
17963
|
+
portalId?: string;
|
|
17964
|
+
/**
|
|
17965
|
+
* If true, the component is shown.
|
|
17966
|
+
*/
|
|
17967
|
+
visible?: boolean;
|
|
17968
|
+
/**
|
|
17969
|
+
* Function to control popover opening and closing.
|
|
17970
|
+
* @TJS-type (visible: boolean) => void;
|
|
17971
|
+
*/
|
|
17972
|
+
onVisibility?: (visible: boolean) => void;
|
|
17973
|
+
}
|
|
17974
|
+
type TooltipProps = TooltipTyping & TooltipVariants;
|
|
17975
|
+
|
|
16952
17976
|
interface StepperStepTyping {
|
|
16953
17977
|
/**
|
|
16954
17978
|
* The title of the step. This provides a brief summary of the step's purpose.
|
|
@@ -16972,8 +17996,101 @@ type ProgressProps = ProgressTyping & ProgressSprinkle;
|
|
|
16972
17996
|
|
|
16973
17997
|
type ProgressCircleProps = ProgressProps & ProgressVariants;
|
|
16974
17998
|
|
|
17999
|
+
interface StatusTyping {
|
|
18000
|
+
/**
|
|
18001
|
+
* Specifies whether to display a dot indicator alongside the status text. When true, a dot is shown to visually represent the status.
|
|
18002
|
+
* @default true
|
|
18003
|
+
*/
|
|
18004
|
+
dot?: boolean;
|
|
18005
|
+
}
|
|
18006
|
+
type StatusProps = StatusTyping & StatusVariants;
|
|
18007
|
+
|
|
18008
|
+
interface ButtonTyping {
|
|
18009
|
+
/**
|
|
18010
|
+
* Disables the button, disallowing user interaction.
|
|
18011
|
+
* @default false
|
|
18012
|
+
*/
|
|
18013
|
+
disabled?: boolean;
|
|
18014
|
+
}
|
|
18015
|
+
type ButtonProps = ButtonTyping & ButtonVariants;
|
|
18016
|
+
|
|
18017
|
+
interface CheckboxTyping {
|
|
18018
|
+
/**
|
|
18019
|
+
* The label of the checkbox.
|
|
18020
|
+
*/
|
|
18021
|
+
label?: string;
|
|
18022
|
+
/**
|
|
18023
|
+
* The id of the checkbox.
|
|
18024
|
+
*/
|
|
18025
|
+
id: string;
|
|
18026
|
+
/**
|
|
18027
|
+
* Whether the checkbox is checked.
|
|
18028
|
+
* @default false
|
|
18029
|
+
*/
|
|
18030
|
+
checked?: boolean;
|
|
18031
|
+
/**
|
|
18032
|
+
* Whether the checkbox is readonly.
|
|
18033
|
+
* @default false
|
|
18034
|
+
*/
|
|
18035
|
+
readonly?: boolean;
|
|
18036
|
+
}
|
|
18037
|
+
type CheckboxProps = CheckboxTyping & CheckboxVariants;
|
|
18038
|
+
|
|
18039
|
+
interface ChipTyping extends ChipSprinkle {
|
|
18040
|
+
/**
|
|
18041
|
+
* Displays a delete icon and adds user interaction.
|
|
18042
|
+
* @default false
|
|
18043
|
+
*/
|
|
18044
|
+
closeable?: boolean;
|
|
18045
|
+
}
|
|
18046
|
+
type ChipProps = ChipTyping & ChipVariants;
|
|
18047
|
+
|
|
16975
18048
|
type InputProps = InputVariants;
|
|
16976
18049
|
|
|
18050
|
+
interface DropdownTyping {
|
|
18051
|
+
/**
|
|
18052
|
+
* A common feature of select dropdowns is that the dropdown matches the width of the reference regardless of its contents.
|
|
18053
|
+
* @default false
|
|
18054
|
+
*/
|
|
18055
|
+
matchReferenceWidth?: boolean;
|
|
18056
|
+
/**
|
|
18057
|
+
* Adds listeners that dismiss (close) the floating element.
|
|
18058
|
+
* @default true
|
|
18059
|
+
*/
|
|
18060
|
+
enabledDismiss?: boolean;
|
|
18061
|
+
/**
|
|
18062
|
+
* Adds click event listeners that change the open state.
|
|
18063
|
+
* @default true
|
|
18064
|
+
*/
|
|
18065
|
+
enabledClick?: boolean;
|
|
18066
|
+
/**
|
|
18067
|
+
* Determines whether the dropdown should enable flipping the options' dropdown when there is not enough space to display it in its default direction.
|
|
18068
|
+
* This can help ensure the dropdown is always visible on the screen.
|
|
18069
|
+
* @default true
|
|
18070
|
+
*/
|
|
18071
|
+
enabledFlip?: boolean;
|
|
18072
|
+
/**
|
|
18073
|
+
* Offest displaces the floating element from its core placement along the specified axes.
|
|
18074
|
+
* @default 10
|
|
18075
|
+
*/
|
|
18076
|
+
offset?: number;
|
|
18077
|
+
/**
|
|
18078
|
+
* Specifies the ID of the portal element where the dropdown should be rendered.
|
|
18079
|
+
* This can be useful for rendering the dropdown in a different part of the DOM, such as a modal or overlay.
|
|
18080
|
+
*/
|
|
18081
|
+
portalId?: string;
|
|
18082
|
+
/**
|
|
18083
|
+
* If true, the component is shown.
|
|
18084
|
+
*/
|
|
18085
|
+
visible?: boolean;
|
|
18086
|
+
/**
|
|
18087
|
+
* Function to control dropdown opening and closing.
|
|
18088
|
+
* @TJS-type (visible: boolean) => void;
|
|
18089
|
+
*/
|
|
18090
|
+
onVisibility?: (visible: boolean) => void;
|
|
18091
|
+
}
|
|
18092
|
+
type DropdownProps = DropdownTyping & DropdownSprinkle & Pick<DropdownVariants, "padding">;
|
|
18093
|
+
|
|
16977
18094
|
interface DropdownItemTyping {
|
|
16978
18095
|
/**
|
|
16979
18096
|
* The name of the dropdown item. This is typically the text that is displayed for the item.
|
|
@@ -16982,6 +18099,15 @@ interface DropdownItemTyping {
|
|
|
16982
18099
|
}
|
|
16983
18100
|
type DropdownItemProps = DropdownItemTyping & Pick<DropdownVariants, "selected">;
|
|
16984
18101
|
|
|
18102
|
+
interface IconButtonTyping {
|
|
18103
|
+
/**
|
|
18104
|
+
* Disables the button, disallowing user interaction.
|
|
18105
|
+
* @default false
|
|
18106
|
+
*/
|
|
18107
|
+
disabled?: boolean;
|
|
18108
|
+
}
|
|
18109
|
+
type IconButtonProps = IconButtonTyping & IconButtonVariants;
|
|
18110
|
+
|
|
16985
18111
|
interface RadioButtonTyping {
|
|
16986
18112
|
/**
|
|
16987
18113
|
* Sets radio state to activated or deactivated.
|
|
@@ -16994,6 +18120,74 @@ interface RadioButtonTyping {
|
|
|
16994
18120
|
}
|
|
16995
18121
|
type RadioButtonProps = RadioButtonTyping & RadioButtonVariants;
|
|
16996
18122
|
|
|
18123
|
+
interface SelectOptionProps {
|
|
18124
|
+
/**
|
|
18125
|
+
* Label for the option. This is the text that will be displayed for the option.
|
|
18126
|
+
*/
|
|
18127
|
+
label: string;
|
|
18128
|
+
/**
|
|
18129
|
+
* Value of the option. This is the value that will be used internally and returned when the option is selected.
|
|
18130
|
+
*/
|
|
18131
|
+
value: string;
|
|
18132
|
+
}
|
|
18133
|
+
interface SelectTyping {
|
|
18134
|
+
/**
|
|
18135
|
+
* Options for the Select component. This should be an array of SelectOptionProps objects.
|
|
18136
|
+
*/
|
|
18137
|
+
options: SelectOptionProps[];
|
|
18138
|
+
/**
|
|
18139
|
+
* Default selected values for the Select component.
|
|
18140
|
+
* This should be an array of SelectOptionProps objects representing the selected options.
|
|
18141
|
+
*/
|
|
18142
|
+
value?: SelectOptionProps | SelectOptionProps[];
|
|
18143
|
+
/**
|
|
18144
|
+
* Callback function that is called when the selected values change.
|
|
18145
|
+
* This function receives an array of SelectOptionProps objects representing the selected options.
|
|
18146
|
+
*/
|
|
18147
|
+
onChange?: (selectedOptions: SelectOptionProps | SelectOptionProps[]) => void;
|
|
18148
|
+
/**
|
|
18149
|
+
* Enables multiple selection mode.
|
|
18150
|
+
* @default false
|
|
18151
|
+
*/
|
|
18152
|
+
multiple?: boolean;
|
|
18153
|
+
/**
|
|
18154
|
+
* Specifies the default selected value(s) for the select box.
|
|
18155
|
+
* This can be a selectOption for single selection or an array of selectOption for multiple selections.
|
|
18156
|
+
*/
|
|
18157
|
+
defaultValue?: SelectOptionProps | SelectOptionProps[];
|
|
18158
|
+
/**
|
|
18159
|
+
* If true, the Select component is shown.
|
|
18160
|
+
*/
|
|
18161
|
+
open?: boolean;
|
|
18162
|
+
/**
|
|
18163
|
+
* Placeholder text displayed when no option is selected.
|
|
18164
|
+
*/
|
|
18165
|
+
placeholder?: string;
|
|
18166
|
+
/**
|
|
18167
|
+
* Disables the select component, disallowing user interaction.
|
|
18168
|
+
* @default false
|
|
18169
|
+
*/
|
|
18170
|
+
disabled?: boolean;
|
|
18171
|
+
/**
|
|
18172
|
+
* Determines whether the select box should enable flipping the options' dropdown when there is not enough space to display it in its default direction.
|
|
18173
|
+
* This can help ensure the dropdown is always visible on the screen.
|
|
18174
|
+
* @default true
|
|
18175
|
+
*/
|
|
18176
|
+
enabledFlip?: boolean;
|
|
18177
|
+
/**
|
|
18178
|
+
* Specifies the ID of the portal element where the dropdown should be rendered.
|
|
18179
|
+
* This can be useful for rendering the dropdown in a different part of the DOM, such as a modal or overlay.
|
|
18180
|
+
*/
|
|
18181
|
+
portalId?: string;
|
|
18182
|
+
/**
|
|
18183
|
+
* Maximum number of items to display before showing a "+X" chip with the remaining count.
|
|
18184
|
+
* When set, only the specified number of selected items will be shown, followed by a chip indicating how many more items are selected.
|
|
18185
|
+
* @default undefined (shows all selected items)
|
|
18186
|
+
*/
|
|
18187
|
+
itemsAfterTruncate?: number;
|
|
18188
|
+
}
|
|
18189
|
+
type SelectProps = SelectTyping & SelectVariants & SelectSprinkle;
|
|
18190
|
+
|
|
16997
18191
|
interface TextareaProps extends TextareaVariants {
|
|
16998
18192
|
/**
|
|
16999
18193
|
* Number of lines to be rendered for the user to input text
|
|
@@ -17018,6 +18212,18 @@ interface ToggleTyping {
|
|
|
17018
18212
|
}
|
|
17019
18213
|
type ToggleProps = ToggleTyping & ToggleVariants;
|
|
17020
18214
|
|
|
18215
|
+
interface AccordionProps {
|
|
18216
|
+
/**
|
|
18217
|
+
* Informs which accordion item is open by default, this value must be the same as informed in the index of each item
|
|
18218
|
+
*/
|
|
18219
|
+
selectedDefault?: string;
|
|
18220
|
+
/**
|
|
18221
|
+
* Disables the accordion, disallowing user interaction.
|
|
18222
|
+
* @default false
|
|
18223
|
+
*/
|
|
18224
|
+
disabled?: boolean;
|
|
18225
|
+
}
|
|
18226
|
+
|
|
17021
18227
|
type AccordionBodyProps = Pick<AccordionVariants, "padding">;
|
|
17022
18228
|
|
|
17023
18229
|
interface AccordionHeaderTyping {
|
|
@@ -17094,94 +18300,307 @@ interface ModalTyping {
|
|
|
17094
18300
|
*/
|
|
17095
18301
|
onDismiss: (open: boolean) => void;
|
|
17096
18302
|
}
|
|
17097
|
-
type ModalProps = ModalTyping & ModalSprinkle & ModalVariants;
|
|
18303
|
+
type ModalProps = ModalTyping & ModalSprinkle & ModalVariants;
|
|
18304
|
+
|
|
18305
|
+
interface ModalHeaderTypings {
|
|
18306
|
+
/**
|
|
18307
|
+
* The title to display in the Modal header.
|
|
18308
|
+
*/
|
|
18309
|
+
title?: string;
|
|
18310
|
+
/**
|
|
18311
|
+
* The subtitle to display in the Modal header.
|
|
18312
|
+
*/
|
|
18313
|
+
subtitle?: string;
|
|
18314
|
+
}
|
|
18315
|
+
type ModalHeaderProps = ModalHeaderTypings;
|
|
18316
|
+
|
|
18317
|
+
interface SidebarTyping {
|
|
18318
|
+
/**
|
|
18319
|
+
* Whether the sidebar is open or not.
|
|
18320
|
+
*/
|
|
18321
|
+
open?: boolean;
|
|
18322
|
+
/**
|
|
18323
|
+
* Specifies the ID of the portal element where the sidebar should be rendered.
|
|
18324
|
+
* This can be useful for rendering the sidebar in a different part of the DOM, such as a modal or overlay.
|
|
18325
|
+
*/
|
|
18326
|
+
portalId?: string;
|
|
18327
|
+
/**
|
|
18328
|
+
* Callback fired when the component requests to be closed.
|
|
18329
|
+
* @TJS-type () => void;
|
|
18330
|
+
*/
|
|
18331
|
+
onRemove?: () => void;
|
|
18332
|
+
}
|
|
18333
|
+
type SidebarProps = SidebarTyping & SidebarSprinkle & SidebarVariants;
|
|
18334
|
+
|
|
18335
|
+
interface BreadcrumbProps {
|
|
18336
|
+
/**
|
|
18337
|
+
* Specifies the number of breadcrumb items to display after truncation.
|
|
18338
|
+
* This is useful for managing the display of long breadcrumb lists.
|
|
18339
|
+
* @default 10
|
|
18340
|
+
*/
|
|
18341
|
+
itemsAfterTruncate?: number;
|
|
18342
|
+
}
|
|
18343
|
+
|
|
18344
|
+
interface BreadcrumbItemTyping {
|
|
18345
|
+
/**
|
|
18346
|
+
* The name of the breadcrumb item. This is typically the text that is displayed for the item.
|
|
18347
|
+
*/
|
|
18348
|
+
name?: string;
|
|
18349
|
+
}
|
|
18350
|
+
type BreadcrumbItemProps = BreadcrumbItemTyping & BreadcrumbVariants;
|
|
18351
|
+
|
|
18352
|
+
type LinkProps = LinkVariants;
|
|
18353
|
+
|
|
18354
|
+
interface PaginationTyping {
|
|
18355
|
+
/**
|
|
18356
|
+
* The currently selected page.
|
|
18357
|
+
*/
|
|
18358
|
+
activePage: number;
|
|
18359
|
+
/**
|
|
18360
|
+
* The total number of pages.
|
|
18361
|
+
*/
|
|
18362
|
+
pageCount: number;
|
|
18363
|
+
/**
|
|
18364
|
+
* Determines whether page numbers should be shown.
|
|
18365
|
+
* @default true
|
|
18366
|
+
*/
|
|
18367
|
+
showNumbers?: boolean;
|
|
18368
|
+
/**
|
|
18369
|
+
* Determines whether page arrows should be shown.
|
|
18370
|
+
* @default true
|
|
18371
|
+
*/
|
|
18372
|
+
showArrows?: boolean;
|
|
18373
|
+
/**
|
|
18374
|
+
* Called with event and page number when a page is clicked.
|
|
18375
|
+
* @TJS-type (page: number) => void;
|
|
18376
|
+
*/
|
|
18377
|
+
onPageChange: (page: number) => void;
|
|
18378
|
+
}
|
|
18379
|
+
type PaginationProps = PaginationTyping & PaginationVariants;
|
|
18380
|
+
|
|
18381
|
+
interface SideNavigationTyping {
|
|
18382
|
+
/**
|
|
18383
|
+
* Title of the sideNavigation
|
|
18384
|
+
*/
|
|
18385
|
+
name: string;
|
|
18386
|
+
/**
|
|
18387
|
+
* Description of the sideNavigation.
|
|
18388
|
+
*/
|
|
18389
|
+
description?: string;
|
|
18390
|
+
}
|
|
18391
|
+
type SideNavigationProps = SideNavigationTyping & SideNavigationVariants;
|
|
18392
|
+
|
|
18393
|
+
interface SideNavigationItemTypings {
|
|
18394
|
+
/**
|
|
18395
|
+
* Determines if the item is active or not.
|
|
18396
|
+
*/
|
|
18397
|
+
active?: boolean;
|
|
18398
|
+
}
|
|
18399
|
+
type SideNavigationItemProps = SideNavigationItemTypings & Pick<SideNavigationVariants, "level">;
|
|
18400
|
+
|
|
18401
|
+
type AriaInvalid = "false" | "true" | "grammar" | "spelling" | null;
|
|
18402
|
+
|
|
18403
|
+
/**
|
|
18404
|
+
* Utility types for Web Components property handling in Rarui Design System
|
|
18405
|
+
*
|
|
18406
|
+
* These types help convert React-style camelCase properties to web component
|
|
18407
|
+
* kebab-case attributes while maintaining type safety.
|
|
18408
|
+
*/
|
|
18409
|
+
/**
|
|
18410
|
+
* Converts a camelCase string to kebab-case
|
|
18411
|
+
*
|
|
18412
|
+
* @example
|
|
18413
|
+
* CamelToKebab<"maxWidth"> // "max-width"
|
|
18414
|
+
* CamelToKebab<"portalId"> // "portal-id"
|
|
18415
|
+
* CamelToKebab<"position"> // "position"
|
|
18416
|
+
*/
|
|
18417
|
+
type CamelToKebab<T extends string> = T extends `${infer Start}${infer Rest}` ? Rest extends `${infer First}${infer End}` ? First extends Uppercase<First> ? `${Lowercase<Start>}-${CamelToKebab<`${Lowercase<First>}${End}`>}` : `${Lowercase<Start>}${CamelToKebab<Rest>}` : Lowercase<T> : T;
|
|
18418
|
+
type CamelToKebabKeys<T> = {
|
|
18419
|
+
[K in keyof T as CamelToKebab<string & K>]: T[K];
|
|
18420
|
+
};
|
|
18421
|
+
/**
|
|
18422
|
+
* Common React properties that should be excluded from web component types
|
|
18423
|
+
*/
|
|
18424
|
+
type CommonReactExclusions = "children" | "className" | "style" | "ref" | "key";
|
|
18425
|
+
type WebComponentProperties<TReactProps, TExclude extends keyof TReactProps = never> = CamelToKebabKeys<Omit<Partial<TReactProps>, CommonReactExclusions | TExclude>>;
|
|
18426
|
+
|
|
18427
|
+
declare global {
|
|
18428
|
+
interface HTMLElementTagNameMap {
|
|
18429
|
+
"rarui-avatar": RaruiAvatar;
|
|
18430
|
+
}
|
|
18431
|
+
}
|
|
18432
|
+
/**
|
|
18433
|
+
* ## Rarui Avatar
|
|
18434
|
+
* ---
|
|
18435
|
+
* The Avatar component is normally used to display circular photos of the user's profile.
|
|
18436
|
+
*
|
|
18437
|
+
See [a complete document](https://rarui.rarolabs.com.br/docs/components-web-components/exhibition/avatar) for more details.
|
|
18438
|
+
*/
|
|
18439
|
+
type AvatarManifestProperties = Pick<AvatarProps, "size">;
|
|
18440
|
+
type AvatarProperties = WebComponentProperties<AvatarManifestProperties>;
|
|
18441
|
+
|
|
18442
|
+
declare const RaruiAvatar_base: (new (...args: any[]) => {
|
|
18443
|
+
ariaLabel: string | null;
|
|
18444
|
+
ariaLabelledBy: string | null;
|
|
18445
|
+
ariaDescribedBy: string | null;
|
|
18446
|
+
}) & typeof LitElement;
|
|
18447
|
+
declare class RaruiAvatar extends RaruiAvatar_base {
|
|
18448
|
+
size?: AvatarProperties["size"];
|
|
18449
|
+
static styles: CSSResult;
|
|
18450
|
+
render(): TemplateResult<1>;
|
|
18451
|
+
private handleSlotChange;
|
|
18452
|
+
private handleImageError;
|
|
18453
|
+
private handleImageLoad;
|
|
18454
|
+
}
|
|
17098
18455
|
|
|
17099
|
-
|
|
17100
|
-
|
|
17101
|
-
|
|
17102
|
-
|
|
17103
|
-
title?: string;
|
|
17104
|
-
/**
|
|
17105
|
-
* The subtitle to display in the Modal header.
|
|
17106
|
-
*/
|
|
17107
|
-
subtitle?: string;
|
|
18456
|
+
declare global {
|
|
18457
|
+
interface HTMLElementTagNameMap {
|
|
18458
|
+
"rarui-badge": RaruiBagde;
|
|
18459
|
+
}
|
|
17108
18460
|
}
|
|
17109
|
-
|
|
18461
|
+
/**
|
|
18462
|
+
* ## Rarui Badge
|
|
18463
|
+
* ---
|
|
18464
|
+
* The Badge components are only used to transmit dynamic information, such as a connection or status.
|
|
18465
|
+
*
|
|
18466
|
+
See [a complete document](https://rarui.rarolabs.com.br/docs/components-web-components/exhibition/badge) for more details.
|
|
18467
|
+
*/
|
|
18468
|
+
type BadgeManifestProperties = BadgeProps;
|
|
18469
|
+
type BadgeProperties = WebComponentProperties<BadgeManifestProperties>;
|
|
17110
18470
|
|
|
17111
|
-
|
|
17112
|
-
|
|
17113
|
-
|
|
17114
|
-
|
|
17115
|
-
|
|
17116
|
-
|
|
17117
|
-
|
|
17118
|
-
|
|
17119
|
-
|
|
17120
|
-
|
|
17121
|
-
|
|
17122
|
-
* Callback fired when the component requests to be closed.
|
|
17123
|
-
* @TJS-type () => void;
|
|
17124
|
-
*/
|
|
17125
|
-
onRemove?: () => void;
|
|
18471
|
+
declare const RaruiBagde_base: (new (...args: any[]) => {
|
|
18472
|
+
ariaLabel: string | null;
|
|
18473
|
+
ariaLabelledBy: string | null;
|
|
18474
|
+
ariaDescribedBy: string | null;
|
|
18475
|
+
}) & typeof LitElement;
|
|
18476
|
+
declare class RaruiBagde extends RaruiBagde_base {
|
|
18477
|
+
variant?: BadgeProperties["variant"];
|
|
18478
|
+
size?: BadgeProperties["size"];
|
|
18479
|
+
appearance?: BadgeProperties["appearance"];
|
|
18480
|
+
static styles: CSSResult;
|
|
18481
|
+
render(): TemplateResult<1>;
|
|
17126
18482
|
}
|
|
17127
|
-
type SidebarProps = SidebarTyping & SidebarSprinkle & SidebarVariants;
|
|
17128
18483
|
|
|
17129
|
-
|
|
17130
|
-
|
|
17131
|
-
|
|
17132
|
-
|
|
17133
|
-
name?: string;
|
|
18484
|
+
declare global {
|
|
18485
|
+
interface HTMLElementTagNameMap {
|
|
18486
|
+
"rarui-divider": RaruiDivider;
|
|
18487
|
+
}
|
|
17134
18488
|
}
|
|
17135
|
-
|
|
18489
|
+
/**
|
|
18490
|
+
* ## Rarui Divider
|
|
18491
|
+
* ---
|
|
18492
|
+
* A Divider is a thin line used to separate or group content in lists and layouts.
|
|
18493
|
+
*
|
|
18494
|
+
See [a complete document](https://rarui.rarolabs.com.br/docs/components-web-components/exhibition/divider) for more details.
|
|
18495
|
+
*/
|
|
18496
|
+
type DividerManifestProperties = DividerProps;
|
|
18497
|
+
type DividerProperties = WebComponentProperties<DividerManifestProperties>;
|
|
17136
18498
|
|
|
17137
|
-
|
|
18499
|
+
declare const RaruiDivider_base: (new (...args: any[]) => {
|
|
18500
|
+
cssProps: Record<string, any>;
|
|
18501
|
+
sprinkleAttrs: Record<string, any>;
|
|
18502
|
+
}) & (new (...args: any[]) => {
|
|
18503
|
+
ariaLabel: string | null;
|
|
18504
|
+
ariaLabelledBy: string | null;
|
|
18505
|
+
ariaDescribedBy: string | null;
|
|
18506
|
+
}) & typeof LitElement;
|
|
18507
|
+
declare class RaruiDivider extends RaruiDivider_base {
|
|
18508
|
+
sprinkleAttrs: Record<string, string>;
|
|
18509
|
+
direction?: DividerProperties["direction"];
|
|
18510
|
+
type?: DividerProperties["type"];
|
|
18511
|
+
thickness?: DividerProperties["thickness"];
|
|
18512
|
+
color?: DividerProperties["color"];
|
|
18513
|
+
size?: DividerProperties["size"];
|
|
18514
|
+
private get _isPercentageSize();
|
|
18515
|
+
static styles: CSSResult;
|
|
18516
|
+
updated(changedProperties: PropertyValues): void;
|
|
18517
|
+
connectedCallback(): void;
|
|
18518
|
+
private _updateHostWidth;
|
|
18519
|
+
render(): TemplateResult<1>;
|
|
18520
|
+
}
|
|
17138
18521
|
|
|
17139
|
-
|
|
17140
|
-
|
|
17141
|
-
|
|
17142
|
-
|
|
17143
|
-
|
|
17144
|
-
|
|
17145
|
-
|
|
17146
|
-
|
|
17147
|
-
|
|
17148
|
-
|
|
17149
|
-
|
|
17150
|
-
|
|
17151
|
-
|
|
17152
|
-
|
|
18522
|
+
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";
|
|
18523
|
+
|
|
18524
|
+
declare global {
|
|
18525
|
+
interface HTMLElementTagNameMap {
|
|
18526
|
+
"rarui-icon": RaruiIcon;
|
|
18527
|
+
}
|
|
18528
|
+
}
|
|
18529
|
+
/**
|
|
18530
|
+
* ## Rarui Icon
|
|
18531
|
+
* ---
|
|
18532
|
+
* Iconography used in the system based on Google's Material Design.
|
|
18533
|
+
*
|
|
18534
|
+
See [a complete document](https://rarui.rarolabs.com.br/docs/components-web-components/exhibition/icon) for more details.
|
|
18535
|
+
*/
|
|
18536
|
+
type Sizes = "small" | "medium" | "large";
|
|
18537
|
+
type IconManifestProperties = IconProps & {
|
|
17153
18538
|
/**
|
|
17154
|
-
*
|
|
17155
|
-
* @default true
|
|
18539
|
+
* Name of the icon to be rendered (must be in the @rarui/icons package).
|
|
17156
18540
|
*/
|
|
17157
|
-
|
|
18541
|
+
name: IconName;
|
|
17158
18542
|
/**
|
|
17159
|
-
*
|
|
17160
|
-
* @
|
|
18543
|
+
* Icon size, can be 'small' |'medium' |'large' or a number.
|
|
18544
|
+
* @default medium
|
|
17161
18545
|
*/
|
|
17162
|
-
|
|
18546
|
+
size?: Sizes | number;
|
|
18547
|
+
};
|
|
18548
|
+
type IconProperties = WebComponentProperties<IconManifestProperties>;
|
|
18549
|
+
|
|
18550
|
+
declare const RaruiIcon_base: (new (...args: any[]) => {
|
|
18551
|
+
ariaLabel: string | null;
|
|
18552
|
+
ariaLabelledBy: string | null;
|
|
18553
|
+
ariaDescribedBy: string | null;
|
|
18554
|
+
}) & (new (...args: any[]) => {
|
|
18555
|
+
cssProps: Record<string, any>;
|
|
18556
|
+
sprinkleAttrs: Record<string, any>;
|
|
18557
|
+
}) & typeof LitElement;
|
|
18558
|
+
declare class RaruiIcon extends RaruiIcon_base {
|
|
18559
|
+
sprinkleAttrs: Record<string, string>;
|
|
18560
|
+
name: IconProperties["name"];
|
|
18561
|
+
size: Sizes | string;
|
|
18562
|
+
static styles: CSSResult;
|
|
18563
|
+
private getSvgWithSize;
|
|
18564
|
+
render(): TemplateResult<1> | null;
|
|
17163
18565
|
}
|
|
17164
|
-
type PaginationProps = PaginationTyping & PaginationVariants;
|
|
17165
18566
|
|
|
17166
|
-
|
|
18567
|
+
declare global {
|
|
18568
|
+
interface HTMLElementTagNameMap {
|
|
18569
|
+
"rarui-label": RaruiLabel;
|
|
18570
|
+
}
|
|
18571
|
+
}
|
|
18572
|
+
/**
|
|
18573
|
+
* ## Rarui Label
|
|
18574
|
+
* ---
|
|
18575
|
+
* The label component allows us to name elements within a form.
|
|
18576
|
+
*
|
|
18577
|
+
See [a complete document](https://rarui.rarolabs.com.br/docs/components-web-components/exhibition/label) for more details.
|
|
18578
|
+
*/
|
|
18579
|
+
type LabelManifestProperties = {
|
|
17167
18580
|
/**
|
|
17168
|
-
*
|
|
18581
|
+
* The for attribute specifies which form element a label is bound to.
|
|
17169
18582
|
*/
|
|
17170
|
-
|
|
18583
|
+
for?: string;
|
|
17171
18584
|
/**
|
|
17172
|
-
*
|
|
18585
|
+
* Specifies whether the label is hidden or not
|
|
18586
|
+
* @default false
|
|
17173
18587
|
*/
|
|
17174
|
-
|
|
17175
|
-
}
|
|
17176
|
-
type
|
|
18588
|
+
hidden?: boolean;
|
|
18589
|
+
};
|
|
18590
|
+
type LabelProperties = WebComponentProperties<LabelManifestProperties>;
|
|
17177
18591
|
|
|
17178
|
-
|
|
17179
|
-
|
|
17180
|
-
|
|
17181
|
-
|
|
17182
|
-
|
|
18592
|
+
declare const RaruiLabel_base: (new (...args: any[]) => {
|
|
18593
|
+
ariaLabel: string | null;
|
|
18594
|
+
ariaLabelledBy: string | null;
|
|
18595
|
+
ariaDescribedBy: string | null;
|
|
18596
|
+
}) & typeof LitElement;
|
|
18597
|
+
declare class RaruiLabel extends RaruiLabel_base {
|
|
18598
|
+
for: LabelProperties["for"];
|
|
18599
|
+
hidden: boolean;
|
|
18600
|
+
static styles: CSSResult;
|
|
18601
|
+
render(): TemplateResult<1>;
|
|
18602
|
+
private _handleClick;
|
|
17183
18603
|
}
|
|
17184
|
-
type SideNavigationItemProps = SideNavigationItemTypings & Pick<SideNavigationVariants, "level">;
|
|
17185
18604
|
|
|
17186
18605
|
declare global {
|
|
17187
18606
|
interface HTMLElementTagNameMap {
|
|
@@ -17446,7 +18865,7 @@ declare global {
|
|
|
17446
18865
|
*
|
|
17447
18866
|
See [a complete document](https://rarui.rarolabs.com.br/docs/components-web-components/exhibition/badge) for more details.
|
|
17448
18867
|
*/
|
|
17449
|
-
type ProgressManifestProperties = ProgressProps
|
|
18868
|
+
type ProgressManifestProperties = ProgressProps;
|
|
17450
18869
|
type ProgressProperties = WebComponentProperties<ProgressManifestProperties>;
|
|
17451
18870
|
|
|
17452
18871
|
declare const RaruiProgress_base: (new (...args: any[]) => {
|
|
@@ -18169,9 +19588,134 @@ declare class RaruiRadioButton extends RaruiRadioButton_base {
|
|
|
18169
19588
|
|
|
18170
19589
|
declare global {
|
|
18171
19590
|
interface HTMLElementTagNameMap {
|
|
18172
|
-
"rarui-select":
|
|
19591
|
+
"rarui-select": RaruiSelect;
|
|
18173
19592
|
}
|
|
18174
19593
|
}
|
|
19594
|
+
/**
|
|
19595
|
+
* ## Rarui Select
|
|
19596
|
+
* ---
|
|
19597
|
+
* Select component for choosing options from a dropdown menu with support for single and multiple selection.
|
|
19598
|
+
*
|
|
19599
|
+
* Features:
|
|
19600
|
+
* - **Single Selection**: Choose one option from the list using rarui-select-option elements
|
|
19601
|
+
* - **Multiple Selection**: Choose multiple options with checkboxes using rarui-select-option elements
|
|
19602
|
+
* - **Slot-based Content**: Use rarui-select-option elements as children for flexible content
|
|
19603
|
+
* - **Accessibility**: Full keyboard navigation with ESC key support
|
|
19604
|
+
* - **Controlled Behavior**: Uses internal web components (Dropdown, Checkbox, Text, Box, Chip, Icon)
|
|
19605
|
+
*
|
|
19606
|
+
* See [a complete document](https://rarui.rarolabs.com.br/docs/components-web-components/input/select) for more details.
|
|
19607
|
+
*/
|
|
19608
|
+
type SelectManifestProperties = Omit<SelectProps, "onChange" | "portalId" | "options"> & {
|
|
19609
|
+
/**
|
|
19610
|
+
* Position of the dropdown relative to the trigger.
|
|
19611
|
+
* @default "bottom-start"
|
|
19612
|
+
*/
|
|
19613
|
+
position?: Placement;
|
|
19614
|
+
/**
|
|
19615
|
+
* CSS positioning strategy used for the dropdown.
|
|
19616
|
+
*
|
|
19617
|
+
* - `"fixed"` (default) positions the dropdown relative to the viewport,
|
|
19618
|
+
* so it stays in the same place even when the page is scrolled.
|
|
19619
|
+
* - `"absolute"` positions the dropdown relative to the nearest positioned ancestor,
|
|
19620
|
+
* which can be useful when you want the dropdown to move with page content.
|
|
19621
|
+
*
|
|
19622
|
+
* Use `"fixed"` for dropdowns that should remain visible on scroll,
|
|
19623
|
+
* and `"absolute"` when dropdowns need to be positioned within scrollable containers.
|
|
19624
|
+
* @default "fixed"
|
|
19625
|
+
*/
|
|
19626
|
+
strategy?: "fixed" | "absolute";
|
|
19627
|
+
/**
|
|
19628
|
+
* The name of the select for form submission.
|
|
19629
|
+
*/
|
|
19630
|
+
name?: string;
|
|
19631
|
+
/**
|
|
19632
|
+
* Associates the select with a form element by ID.
|
|
19633
|
+
*/
|
|
19634
|
+
form?: string;
|
|
19635
|
+
/**
|
|
19636
|
+
* Whether the select is required for form validation.
|
|
19637
|
+
* @default false
|
|
19638
|
+
*/
|
|
19639
|
+
required?: boolean;
|
|
19640
|
+
};
|
|
19641
|
+
type SelectProperties = WebComponentProperties<SelectManifestProperties>;
|
|
19642
|
+
|
|
19643
|
+
declare const RaruiSelect_base: (new (...args: any[]) => {
|
|
19644
|
+
ariaLabel: string | null;
|
|
19645
|
+
ariaLabelledBy: string | null;
|
|
19646
|
+
ariaDescribedBy: string | null;
|
|
19647
|
+
}) & (new (...args: any[]) => {
|
|
19648
|
+
cssProps: Record<string, any>;
|
|
19649
|
+
sprinkleAttrs: Record<string, any>;
|
|
19650
|
+
}) & typeof LitElement;
|
|
19651
|
+
declare class RaruiSelect extends RaruiSelect_base {
|
|
19652
|
+
static shadowRootOptions: {
|
|
19653
|
+
delegatesFocus: boolean;
|
|
19654
|
+
mode: ShadowRootMode;
|
|
19655
|
+
serializable?: boolean;
|
|
19656
|
+
slotAssignment?: SlotAssignmentMode;
|
|
19657
|
+
};
|
|
19658
|
+
sprinkleAttrs: Record<string, string>;
|
|
19659
|
+
private _internals;
|
|
19660
|
+
static formAssociated: boolean;
|
|
19661
|
+
constructor();
|
|
19662
|
+
size: SelectProperties["size"];
|
|
19663
|
+
appearance: SelectProperties["appearance"];
|
|
19664
|
+
placeholder?: string;
|
|
19665
|
+
disabled: boolean;
|
|
19666
|
+
multiple: SelectProperties["multiple"];
|
|
19667
|
+
open: SelectProperties["open"];
|
|
19668
|
+
enabledFlip: SelectProperties["enabled-flip"];
|
|
19669
|
+
position: SelectProperties["position"];
|
|
19670
|
+
maxHeight: SelectProperties["max-height"];
|
|
19671
|
+
zIndex: SelectProperties["z-index"];
|
|
19672
|
+
strategy: SelectProperties["strategy"];
|
|
19673
|
+
name: SelectProperties["name"];
|
|
19674
|
+
form: SelectProperties["form"];
|
|
19675
|
+
required: SelectProperties["required"];
|
|
19676
|
+
itemsAfterTruncate: SelectProperties["items-after-truncate"];
|
|
19677
|
+
ariaInvalid: AriaInvalid;
|
|
19678
|
+
get value(): SelectOptionProps | SelectOptionProps[] | undefined;
|
|
19679
|
+
set value(value: SelectOptionProps | SelectOptionProps[] | undefined);
|
|
19680
|
+
private _value;
|
|
19681
|
+
get defaultValue(): SelectOptionProps | SelectOptionProps[] | undefined;
|
|
19682
|
+
set defaultValue(value: SelectOptionProps | SelectOptionProps[] | undefined);
|
|
19683
|
+
private _defaultValue;
|
|
19684
|
+
private selectedOptions;
|
|
19685
|
+
private menuOpen;
|
|
19686
|
+
private childOptions;
|
|
19687
|
+
dropdown: Element;
|
|
19688
|
+
private _selectContext;
|
|
19689
|
+
private _observer?;
|
|
19690
|
+
static styles: CSSResult;
|
|
19691
|
+
connectedCallback(): void;
|
|
19692
|
+
private _setupMutationObserver;
|
|
19693
|
+
private _syncSelectedOptionsFromChildren;
|
|
19694
|
+
disconnectedCallback(): void;
|
|
19695
|
+
private _updateSelectedOptions;
|
|
19696
|
+
private handleSelect;
|
|
19697
|
+
private handleRemoveOption;
|
|
19698
|
+
private renderHiddenFormInputs;
|
|
19699
|
+
private handleResetOptions;
|
|
19700
|
+
private handleDropdownOpenChange;
|
|
19701
|
+
private _handleOptionSelect;
|
|
19702
|
+
private _handleContextOptionSelect;
|
|
19703
|
+
private _handleOptionMount;
|
|
19704
|
+
private _handleOptionUnmount;
|
|
19705
|
+
private _updateContext;
|
|
19706
|
+
private handleSelectClick;
|
|
19707
|
+
render(): TemplateResult<1>;
|
|
19708
|
+
private _renderTrigger;
|
|
19709
|
+
private _renderPlaceholder;
|
|
19710
|
+
private _renderSelectedOptions;
|
|
19711
|
+
private _renderControls;
|
|
19712
|
+
private _renderContent;
|
|
19713
|
+
private _updateFormValue;
|
|
19714
|
+
focus(): void;
|
|
19715
|
+
blur(): void;
|
|
19716
|
+
private _handleLabelClick;
|
|
19717
|
+
formResetCallback(): void;
|
|
19718
|
+
}
|
|
18175
19719
|
|
|
18176
19720
|
declare global {
|
|
18177
19721
|
interface HTMLElementTagNameMap {
|