@rarui/components 1.5.0 → 1.7.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 +14 -0
- package/custom-elements.json +326 -1
- package/dist/index.d.ts +286 -0
- package/dist/index.js +128 -46
- package/package.json +5 -3
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
`@rarui/components` components is a component library built with [Stencil](https://stenciljs.com/docs/introduction).
|
|
4
4
|
|
|
5
|
+
## 2025-06-02 `1.7.0`
|
|
6
|
+
|
|
7
|
+
#### 🎉 New features
|
|
8
|
+
|
|
9
|
+
- Added new exhibition `Icon` component. ([#114](https://git.rarolabs.com.br/frontend/rarui/-/merge_requests/114) by [@junior](https://git.rarolabs.com.br/junior))
|
|
10
|
+
- Added new feedback `Progress` component. ([#114](https://git.rarolabs.com.br/frontend/rarui/-/merge_requests/114) by [@junior](https://git.rarolabs.com.br/junior))
|
|
11
|
+
|
|
12
|
+
## 2025-05-29 `1.6.0`
|
|
13
|
+
|
|
14
|
+
#### 🎉 New features
|
|
15
|
+
|
|
16
|
+
- Added new input `RadioButton` component. ([#113](https://git.rarolabs.com.br/frontend/rarui/-/merge_requests/113) by [@junior](https://git.rarolabs.com.br/junior))
|
|
17
|
+
- Added new input `Textarea` component. ([#113](https://git.rarolabs.com.br/frontend/rarui/-/merge_requests/113) by [@junior](https://git.rarolabs.com.br/junior))
|
|
18
|
+
|
|
5
19
|
## 2025-05-28 `1.5.0`
|
|
6
20
|
|
|
7
21
|
#### 🎉 New features
|
package/custom-elements.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.
|
|
2
|
+
"version": "1.6.0",
|
|
3
3
|
"tags": [
|
|
4
4
|
{
|
|
5
5
|
"name": "rarui-avatar",
|
|
@@ -190,6 +190,188 @@
|
|
|
190
190
|
}
|
|
191
191
|
]
|
|
192
192
|
},
|
|
193
|
+
{
|
|
194
|
+
"name": "rarui-icon",
|
|
195
|
+
"attributes": [
|
|
196
|
+
{
|
|
197
|
+
"name": "color",
|
|
198
|
+
"description": "The color property sets the icon.\n\nThis property supports responsive values. You can pass a single value like `\"$brand\"`.\n\nOr an object like:\n```\n{\n\"xs\": \"$brand\",\n\"md\": \"$brand-alt\",\n\"lg\": \"$currentColor\",\n\"xl\": \"$disabled\"\n}\n```\n\n- $brand\n- $brand-alt\n- $currentColor\n- $disabled\n- $error\n- $info\n- $invert\n- $invert-disabled\n- $invert-secondary\n- $on-brand\n- $on-error\n- $on-info\n- $on-success\n- $on-warning\n- $primary\n- $secondary\n- $success\n- $warning\n- $warning-alt",
|
|
199
|
+
"values": [
|
|
200
|
+
{
|
|
201
|
+
"name": "$brand"
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
"name": "$brand-alt"
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
"name": "$currentColor"
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
"name": "$disabled"
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
"name": "$error"
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
"name": "$info"
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
"name": "$invert"
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
"name": "$invert-disabled"
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
"name": "$invert-secondary"
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
"name": "$on-brand"
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
"name": "$on-error"
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
"name": "$on-info"
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
"name": "$on-success"
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
"name": "$on-warning"
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
"name": "$primary"
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
"name": "$secondary"
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
"name": "$success"
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
"name": "$warning"
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
"name": "$warning-alt"
|
|
256
|
+
}
|
|
257
|
+
]
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
"name": "cursor",
|
|
261
|
+
"description": "The **`cursor`** CSS property sets the type of mouse cursor, if any, to show when the mouse pointer is over an element.\n\n\n**Initial value**: `auto`\n\nThis property supports responsive values. You can pass a single value like `\"alias\"`.\n\nOr an object like:\n```\n{\n\"xs\": \"alias\",\n\"md\": \"all-scroll\",\n\"lg\": \"auto\",\n\"xl\": \"cell\"\n}\n```\n\n- alias\n- all-scroll\n- auto\n- cell\n- col-resize\n- context-menu\n- copy\n- crosshair\n- default\n- e-resize\n- ew-resize\n- grab\n- grabbing\n- help\n- move\n- n-resize\n- ne-resize\n- nesw-resize\n- no-drop\n- none\n- not-allowed\n- ns-resize\n- nw-resize\n- nwse-resize\n- pointer\n- progress\n- row-resize\n- s-resize\n- se-resize\n- sw-resize\n- text\n- vertical-text\n- w-resize\n- wait\n- zoom-in\n- zoom-out",
|
|
262
|
+
"values": [
|
|
263
|
+
{
|
|
264
|
+
"name": "alias"
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
"name": "all-scroll"
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
"name": "auto"
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
"name": "cell"
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
"name": "col-resize"
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
"name": "context-menu"
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
"name": "copy"
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
"name": "crosshair"
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
"name": "default"
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
"name": "e-resize"
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
"name": "ew-resize"
|
|
295
|
+
},
|
|
296
|
+
{
|
|
297
|
+
"name": "grab"
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
"name": "grabbing"
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
"name": "help"
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
"name": "move"
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
"name": "n-resize"
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
"name": "ne-resize"
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
"name": "nesw-resize"
|
|
316
|
+
},
|
|
317
|
+
{
|
|
318
|
+
"name": "no-drop"
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
"name": "none"
|
|
322
|
+
},
|
|
323
|
+
{
|
|
324
|
+
"name": "not-allowed"
|
|
325
|
+
},
|
|
326
|
+
{
|
|
327
|
+
"name": "ns-resize"
|
|
328
|
+
},
|
|
329
|
+
{
|
|
330
|
+
"name": "nw-resize"
|
|
331
|
+
},
|
|
332
|
+
{
|
|
333
|
+
"name": "nwse-resize"
|
|
334
|
+
},
|
|
335
|
+
{
|
|
336
|
+
"name": "pointer"
|
|
337
|
+
},
|
|
338
|
+
{
|
|
339
|
+
"name": "progress"
|
|
340
|
+
},
|
|
341
|
+
{
|
|
342
|
+
"name": "row-resize"
|
|
343
|
+
},
|
|
344
|
+
{
|
|
345
|
+
"name": "s-resize"
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
"name": "se-resize"
|
|
349
|
+
},
|
|
350
|
+
{
|
|
351
|
+
"name": "sw-resize"
|
|
352
|
+
},
|
|
353
|
+
{
|
|
354
|
+
"name": "text"
|
|
355
|
+
},
|
|
356
|
+
{
|
|
357
|
+
"name": "vertical-text"
|
|
358
|
+
},
|
|
359
|
+
{
|
|
360
|
+
"name": "w-resize"
|
|
361
|
+
},
|
|
362
|
+
{
|
|
363
|
+
"name": "wait"
|
|
364
|
+
},
|
|
365
|
+
{
|
|
366
|
+
"name": "zoom-in"
|
|
367
|
+
},
|
|
368
|
+
{
|
|
369
|
+
"name": "zoom-out"
|
|
370
|
+
}
|
|
371
|
+
]
|
|
372
|
+
}
|
|
373
|
+
]
|
|
374
|
+
},
|
|
193
375
|
{
|
|
194
376
|
"name": "rarui-text",
|
|
195
377
|
"description": "## Rarui Text\n---\nText is a basic component that allows us to write blocks of text and give it formatting to use within other components, sections and pages of our application or website.\n\nSee [a complete document](https://rarui.rarolabs.com.br/docs/components/exhibition/typography) for more details.",
|
|
@@ -793,6 +975,76 @@
|
|
|
793
975
|
}
|
|
794
976
|
]
|
|
795
977
|
},
|
|
978
|
+
{
|
|
979
|
+
"name": "rarui-progress",
|
|
980
|
+
"description": "## Rarui Progress\n---\nThe Badge components are only used to transmit dynamic information, such as a connection or status.\n\nSee [a complete document](https://rarui.rarolabs.com.br/docs/components/exhibition/badge) for more details.",
|
|
981
|
+
"attributes": [
|
|
982
|
+
{
|
|
983
|
+
"name": "percentage",
|
|
984
|
+
"description": "The progress percentage, represented as a number between 0 and 100.\nThis indicates the completion level of the process.",
|
|
985
|
+
"type": "number"
|
|
986
|
+
},
|
|
987
|
+
{
|
|
988
|
+
"name": "color",
|
|
989
|
+
"description": "Specifies the color of the progress.\nThis prop accepts one of the following values: \"$info\", \"$success\" or \"$brand\"\n\n- $brand\n- $info\n- $success",
|
|
990
|
+
"type": "string",
|
|
991
|
+
"values": [
|
|
992
|
+
{
|
|
993
|
+
"name": "$brand"
|
|
994
|
+
},
|
|
995
|
+
{
|
|
996
|
+
"name": "$info",
|
|
997
|
+
"description": "(default)"
|
|
998
|
+
},
|
|
999
|
+
{
|
|
1000
|
+
"name": "$success"
|
|
1001
|
+
}
|
|
1002
|
+
]
|
|
1003
|
+
}
|
|
1004
|
+
]
|
|
1005
|
+
},
|
|
1006
|
+
{
|
|
1007
|
+
"name": "rarui-progress-circle",
|
|
1008
|
+
"description": "## Rarui Card Body\n---\nThe Card component contains textual content, images, and actions about a topic.\n\nSee [a complete document](https://rarui.rarolabs.com.br/docs/components/surface/card) for more details.",
|
|
1009
|
+
"attributes": [
|
|
1010
|
+
{
|
|
1011
|
+
"name": "percentage",
|
|
1012
|
+
"description": "The progress percentage, represented as a number between 0 and 100.\nThis indicates the completion level of the process.",
|
|
1013
|
+
"type": "number"
|
|
1014
|
+
},
|
|
1015
|
+
{
|
|
1016
|
+
"name": "color",
|
|
1017
|
+
"description": "Specifies the color of the progress.\nThis prop accepts one of the following values: \"$info\", \"$success\" or \"$brand\"\n\n- $brand\n- $info\n- $success",
|
|
1018
|
+
"type": "string",
|
|
1019
|
+
"values": [
|
|
1020
|
+
{
|
|
1021
|
+
"name": "$brand"
|
|
1022
|
+
},
|
|
1023
|
+
{
|
|
1024
|
+
"name": "$info",
|
|
1025
|
+
"description": "(default)"
|
|
1026
|
+
},
|
|
1027
|
+
{
|
|
1028
|
+
"name": "$success"
|
|
1029
|
+
}
|
|
1030
|
+
]
|
|
1031
|
+
},
|
|
1032
|
+
{
|
|
1033
|
+
"name": "size",
|
|
1034
|
+
"description": "Specifies the size of the progress indicator.\nThis prop accepts one of the following values: \"large\" or \"small\".\n\n- large\n- small",
|
|
1035
|
+
"type": "string",
|
|
1036
|
+
"values": [
|
|
1037
|
+
{
|
|
1038
|
+
"name": "large",
|
|
1039
|
+
"description": "(default)"
|
|
1040
|
+
},
|
|
1041
|
+
{
|
|
1042
|
+
"name": "small"
|
|
1043
|
+
}
|
|
1044
|
+
]
|
|
1045
|
+
}
|
|
1046
|
+
]
|
|
1047
|
+
},
|
|
796
1048
|
{
|
|
797
1049
|
"name": "rarui-skeleton",
|
|
798
1050
|
"description": "## Rarui Divider\n---\nA Divider is a thin line used to separate or group content in lists and layouts.\n\nSee [a complete document](https://rarui.rarolabs.com.br/docs/components/exhibition/divider) for more details.",
|
|
@@ -1072,6 +1324,79 @@
|
|
|
1072
1324
|
}
|
|
1073
1325
|
]
|
|
1074
1326
|
},
|
|
1327
|
+
{
|
|
1328
|
+
"name": "rarui-radio-button",
|
|
1329
|
+
"description": "## Rarui Radio Button\n---\nRadio Button allows users to select one option from a set. They are a selection control that usually appears when users are asked to make decisions or select an option from a set of choices.\n\nSee [a complete document](https://rarui.rarolabs.com.br/docs/components/input/radiobutton) for more details.",
|
|
1330
|
+
"attributes": [
|
|
1331
|
+
{
|
|
1332
|
+
"name": "selected",
|
|
1333
|
+
"description": "Sets radio state to activated or deactivated.",
|
|
1334
|
+
"type": "boolean"
|
|
1335
|
+
},
|
|
1336
|
+
{
|
|
1337
|
+
"name": "label",
|
|
1338
|
+
"description": "Text to be rendered inside the component.",
|
|
1339
|
+
"type": "string"
|
|
1340
|
+
},
|
|
1341
|
+
{
|
|
1342
|
+
"name": "size",
|
|
1343
|
+
"description": "Specifies the size of the radiobutton\n\n- large\n- small",
|
|
1344
|
+
"type": "string",
|
|
1345
|
+
"values": [
|
|
1346
|
+
{
|
|
1347
|
+
"name": "large"
|
|
1348
|
+
},
|
|
1349
|
+
{
|
|
1350
|
+
"name": "small"
|
|
1351
|
+
}
|
|
1352
|
+
]
|
|
1353
|
+
},
|
|
1354
|
+
{
|
|
1355
|
+
"name": "error",
|
|
1356
|
+
"description": "Specifies whether the radiobutton is in error state",
|
|
1357
|
+
"type": "boolean"
|
|
1358
|
+
},
|
|
1359
|
+
{
|
|
1360
|
+
"name": "id",
|
|
1361
|
+
"description": "Defines a unique identifier (ID) which must be unique in the whole document.\nIts purpose is to identify the element when linking (using a fragment identifier), scripting, or styling (with CSS).",
|
|
1362
|
+
"type": "string"
|
|
1363
|
+
},
|
|
1364
|
+
{
|
|
1365
|
+
"name": "disabled",
|
|
1366
|
+
"description": "Disables the radio button, disallowing user interaction.",
|
|
1367
|
+
"type": "boolean"
|
|
1368
|
+
}
|
|
1369
|
+
]
|
|
1370
|
+
},
|
|
1371
|
+
{
|
|
1372
|
+
"name": "rarui-textarea",
|
|
1373
|
+
"description": "## Rarui Radio Button\n---\nExpanded text area for long text entries. Allows you to enter large blocks of text, such as comments or detailed descriptions.\n\nSee [a complete document](https://rarui.rarolabs.com.br/docs/components/input/textarea) for more details.",
|
|
1374
|
+
"attributes": [
|
|
1375
|
+
{
|
|
1376
|
+
"name": "lines",
|
|
1377
|
+
"description": "Number of lines to be rendered for the user to input text",
|
|
1378
|
+
"type": "number"
|
|
1379
|
+
},
|
|
1380
|
+
{
|
|
1381
|
+
"name": "appearance",
|
|
1382
|
+
"description": "Determines the visual style of the textarea, affecting its border\n\n- error\n- success",
|
|
1383
|
+
"type": "string",
|
|
1384
|
+
"values": [
|
|
1385
|
+
{
|
|
1386
|
+
"name": "error"
|
|
1387
|
+
},
|
|
1388
|
+
{
|
|
1389
|
+
"name": "success"
|
|
1390
|
+
}
|
|
1391
|
+
]
|
|
1392
|
+
},
|
|
1393
|
+
{
|
|
1394
|
+
"name": "disabled",
|
|
1395
|
+
"description": "Disables the Textarea, disallowing user interaction.",
|
|
1396
|
+
"type": "boolean"
|
|
1397
|
+
}
|
|
1398
|
+
]
|
|
1399
|
+
},
|
|
1075
1400
|
{
|
|
1076
1401
|
"name": "rarui-box",
|
|
1077
1402
|
"description": "## Rarui Box\n---\nA low-level `utility` component that provides stylized system accessories to allow for custom styling with theme reconfection.\n\nSee [a complete document](https://rarui.rarolabs.com.br/docs/components/layout/box) for more details.",
|
package/dist/index.d.ts
CHANGED
|
@@ -16588,6 +16588,150 @@ declare const checkboxStyles: {
|
|
|
16588
16588
|
|
|
16589
16589
|
type CheckboxVariants = NonNullable<RecipeVariants<typeof checkboxStyles.checkbox>>;
|
|
16590
16590
|
|
|
16591
|
+
declare const progressStyles: {
|
|
16592
|
+
progress: string;
|
|
16593
|
+
bar: string;
|
|
16594
|
+
circle: RuntimeFn<{
|
|
16595
|
+
/**
|
|
16596
|
+
* Specifies the size of the progress indicator.
|
|
16597
|
+
* This prop accepts one of the following values: "large" or "small".
|
|
16598
|
+
* @default large
|
|
16599
|
+
*/
|
|
16600
|
+
size: {
|
|
16601
|
+
large: {
|
|
16602
|
+
width: "8.75rem";
|
|
16603
|
+
height: "8.75rem";
|
|
16604
|
+
};
|
|
16605
|
+
small: {
|
|
16606
|
+
width: "5rem";
|
|
16607
|
+
height: "5rem";
|
|
16608
|
+
};
|
|
16609
|
+
};
|
|
16610
|
+
}>;
|
|
16611
|
+
circleBase: string;
|
|
16612
|
+
circleProgress: string;
|
|
16613
|
+
circleText: string;
|
|
16614
|
+
};
|
|
16615
|
+
declare const progressColorProperties: {
|
|
16616
|
+
info: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
16617
|
+
success: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
16618
|
+
brand: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
16619
|
+
};
|
|
16620
|
+
|
|
16621
|
+
type ProgressVariants = NonNullable<RecipeVariants<typeof progressStyles.circle>>;
|
|
16622
|
+
interface ProgressSprinkle {
|
|
16623
|
+
/**
|
|
16624
|
+
* Specifies the color of the progress.
|
|
16625
|
+
* This prop accepts one of the following values: "$info", "$success" or "$brand"
|
|
16626
|
+
* @default $info
|
|
16627
|
+
* @examples ["$brand", { xs: "$brand", md: "$info" }]
|
|
16628
|
+
*/
|
|
16629
|
+
color?: AddDollar<keyof typeof progressColorProperties>;
|
|
16630
|
+
}
|
|
16631
|
+
|
|
16632
|
+
declare const styles$3: {
|
|
16633
|
+
radioButton: RuntimeFn<{
|
|
16634
|
+
/**
|
|
16635
|
+
* Specifies the size of the radiobutton
|
|
16636
|
+
*/
|
|
16637
|
+
size: {
|
|
16638
|
+
small: {
|
|
16639
|
+
width: "1.25rem";
|
|
16640
|
+
height: "1.25rem";
|
|
16641
|
+
":before": {
|
|
16642
|
+
width: "2rem";
|
|
16643
|
+
height: "2rem";
|
|
16644
|
+
};
|
|
16645
|
+
":after": {
|
|
16646
|
+
width: ".5rem";
|
|
16647
|
+
height: ".5rem";
|
|
16648
|
+
};
|
|
16649
|
+
};
|
|
16650
|
+
large: {
|
|
16651
|
+
width: "1.5rem";
|
|
16652
|
+
height: "1.5rem";
|
|
16653
|
+
":before": {
|
|
16654
|
+
width: "2.75rem";
|
|
16655
|
+
height: "2.75rem";
|
|
16656
|
+
};
|
|
16657
|
+
":after": {
|
|
16658
|
+
width: ".75rem";
|
|
16659
|
+
height: ".75rem";
|
|
16660
|
+
};
|
|
16661
|
+
};
|
|
16662
|
+
};
|
|
16663
|
+
/**
|
|
16664
|
+
* Specifies whether the radiobutton is in error state
|
|
16665
|
+
*/
|
|
16666
|
+
error: {
|
|
16667
|
+
true: {
|
|
16668
|
+
borderColor: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
16669
|
+
backgroundColor: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
16670
|
+
selectors: {
|
|
16671
|
+
"&:has(input:disabled)": {
|
|
16672
|
+
opacity: "50%";
|
|
16673
|
+
backgroundColor: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
16674
|
+
};
|
|
16675
|
+
"&:has(input:checked)": {
|
|
16676
|
+
backgroundColor: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
16677
|
+
borderColor: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
16678
|
+
};
|
|
16679
|
+
"&:has(input:checked):after": {
|
|
16680
|
+
backgroundColor: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
16681
|
+
};
|
|
16682
|
+
"&:hover:before": {
|
|
16683
|
+
opacity: number;
|
|
16684
|
+
backgroundColor: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
16685
|
+
};
|
|
16686
|
+
"&:active:before": {
|
|
16687
|
+
backgroundColor: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
16688
|
+
};
|
|
16689
|
+
};
|
|
16690
|
+
};
|
|
16691
|
+
};
|
|
16692
|
+
}>;
|
|
16693
|
+
input: string;
|
|
16694
|
+
container: string;
|
|
16695
|
+
};
|
|
16696
|
+
|
|
16697
|
+
type RadioButtonVariants = NonNullable<RecipeVariants<typeof styles$3.radioButton>>;
|
|
16698
|
+
|
|
16699
|
+
declare const textareaStyles: {
|
|
16700
|
+
textarea: RuntimeFn<{
|
|
16701
|
+
/**
|
|
16702
|
+
* Determines the visual style of the textarea, affecting its border
|
|
16703
|
+
*/
|
|
16704
|
+
appearance: {
|
|
16705
|
+
success: {
|
|
16706
|
+
borderColor: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
16707
|
+
":hover": {
|
|
16708
|
+
borderColor: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
16709
|
+
};
|
|
16710
|
+
":focus": {
|
|
16711
|
+
borderColor: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
16712
|
+
};
|
|
16713
|
+
":disabled": {
|
|
16714
|
+
borderColor: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
16715
|
+
};
|
|
16716
|
+
};
|
|
16717
|
+
error: {
|
|
16718
|
+
borderColor: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
16719
|
+
":hover": {
|
|
16720
|
+
borderColor: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
16721
|
+
};
|
|
16722
|
+
":focus": {
|
|
16723
|
+
borderColor: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
16724
|
+
};
|
|
16725
|
+
":disabled": {
|
|
16726
|
+
borderColor: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
16727
|
+
};
|
|
16728
|
+
};
|
|
16729
|
+
};
|
|
16730
|
+
}>;
|
|
16731
|
+
};
|
|
16732
|
+
|
|
16733
|
+
type TextareaVariants = NonNullable<RecipeVariants<typeof textareaStyles.textarea>>;
|
|
16734
|
+
|
|
16591
16735
|
declare const cardStyles: {
|
|
16592
16736
|
card: RuntimeFn<{
|
|
16593
16737
|
/**
|
|
@@ -16661,6 +16805,17 @@ interface TextProps extends TextSprinkle {
|
|
|
16661
16805
|
lineClamp?: number;
|
|
16662
16806
|
}
|
|
16663
16807
|
|
|
16808
|
+
interface ProgressTyping {
|
|
16809
|
+
/**
|
|
16810
|
+
* The progress percentage, represented as a number between 0 and 100.
|
|
16811
|
+
* This indicates the completion level of the process.
|
|
16812
|
+
*/
|
|
16813
|
+
percentage: number;
|
|
16814
|
+
}
|
|
16815
|
+
type ProgressProps = ProgressTyping & ProgressSprinkle;
|
|
16816
|
+
|
|
16817
|
+
type ProgressCircleProps = ProgressProps & ProgressVariants;
|
|
16818
|
+
|
|
16664
16819
|
interface ButtonTyping {
|
|
16665
16820
|
/**
|
|
16666
16821
|
* Disables the button, disallowing user interaction.
|
|
@@ -16682,6 +16837,26 @@ interface CheckboxTyping {
|
|
|
16682
16837
|
}
|
|
16683
16838
|
type CheckboxProps = CheckboxTyping & CheckboxVariants;
|
|
16684
16839
|
|
|
16840
|
+
interface RadioButtonTyping {
|
|
16841
|
+
/**
|
|
16842
|
+
* Sets radio state to activated or deactivated.
|
|
16843
|
+
*/
|
|
16844
|
+
selected?: boolean;
|
|
16845
|
+
/**
|
|
16846
|
+
* Text to be rendered inside the component.
|
|
16847
|
+
*/
|
|
16848
|
+
label?: string;
|
|
16849
|
+
}
|
|
16850
|
+
type RadioButtonProps = RadioButtonTyping & RadioButtonVariants;
|
|
16851
|
+
|
|
16852
|
+
interface TextareaProps extends TextareaVariants {
|
|
16853
|
+
/**
|
|
16854
|
+
* Number of lines to be rendered for the user to input text
|
|
16855
|
+
* @default 2
|
|
16856
|
+
*/
|
|
16857
|
+
lines?: number;
|
|
16858
|
+
}
|
|
16859
|
+
|
|
16685
16860
|
type CardProps = CardVariants & CardSprinkle;
|
|
16686
16861
|
|
|
16687
16862
|
interface CardHeaderProps {
|
|
@@ -16809,6 +16984,49 @@ declare class RaruiTitle extends LitElement {
|
|
|
16809
16984
|
render(): TemplateResult<1>;
|
|
16810
16985
|
}
|
|
16811
16986
|
|
|
16987
|
+
declare global {
|
|
16988
|
+
interface HTMLElementTagNameMap {
|
|
16989
|
+
"rarui-progress-circle": RaruiProgressCircle;
|
|
16990
|
+
}
|
|
16991
|
+
}
|
|
16992
|
+
/**
|
|
16993
|
+
* ## Rarui Card Body
|
|
16994
|
+
* ---
|
|
16995
|
+
* The Card component contains textual content, images, and actions about a topic.
|
|
16996
|
+
*
|
|
16997
|
+
* See [a complete document](https://rarui.rarolabs.com.br/docs/components/surface/card) for more details.
|
|
16998
|
+
*/
|
|
16999
|
+
type ProgressCircleProperties = Partial<ProgressCircleProps>;
|
|
17000
|
+
|
|
17001
|
+
declare class RaruiProgressCircle extends LitElement {
|
|
17002
|
+
size?: ProgressCircleProperties["size"];
|
|
17003
|
+
percentage?: ProgressCircleProperties["percentage"];
|
|
17004
|
+
color?: ProgressCircleProperties["color"];
|
|
17005
|
+
static styles: CSSResult;
|
|
17006
|
+
render(): TemplateResult<1>;
|
|
17007
|
+
}
|
|
17008
|
+
|
|
17009
|
+
declare global {
|
|
17010
|
+
interface HTMLElementTagNameMap {
|
|
17011
|
+
"rarui-progress": RaruiProgress;
|
|
17012
|
+
}
|
|
17013
|
+
}
|
|
17014
|
+
/**
|
|
17015
|
+
* ## Rarui Progress
|
|
17016
|
+
* ---
|
|
17017
|
+
* The Badge components are only used to transmit dynamic information, such as a connection or status.
|
|
17018
|
+
*
|
|
17019
|
+
* See [a complete document](https://rarui.rarolabs.com.br/docs/components/exhibition/badge) for more details.
|
|
17020
|
+
*/
|
|
17021
|
+
type ProgressProperties = Partial<ProgressProps>;
|
|
17022
|
+
|
|
17023
|
+
declare class RaruiProgress extends LitElement {
|
|
17024
|
+
percentage?: ProgressProperties["percentage"];
|
|
17025
|
+
color?: ProgressProperties["color"];
|
|
17026
|
+
static styles: CSSResult;
|
|
17027
|
+
render(): TemplateResult<1>;
|
|
17028
|
+
}
|
|
17029
|
+
|
|
16812
17030
|
declare global {
|
|
16813
17031
|
interface HTMLElementTagNameMap {
|
|
16814
17032
|
"rarui-button": RaruiButton;
|
|
@@ -16858,6 +17076,74 @@ declare class RaruiCheckbox extends LitElement {
|
|
|
16858
17076
|
private _onChange;
|
|
16859
17077
|
}
|
|
16860
17078
|
|
|
17079
|
+
declare global {
|
|
17080
|
+
interface HTMLElementTagNameMap {
|
|
17081
|
+
"rarui-radio-button": RaruiRadioButton;
|
|
17082
|
+
}
|
|
17083
|
+
}
|
|
17084
|
+
/**
|
|
17085
|
+
* ## Rarui Radio Button
|
|
17086
|
+
* ---
|
|
17087
|
+
* Radio Button allows users to select one option from a set. They are a selection control that usually appears when users are asked to make decisions or select an option from a set of choices.
|
|
17088
|
+
*
|
|
17089
|
+
* See [a complete document](https://rarui.rarolabs.com.br/docs/components/input/radiobutton) for more details.
|
|
17090
|
+
*/
|
|
17091
|
+
type RadioButtonProperties = Partial<RadioButtonProps> & {
|
|
17092
|
+
/**
|
|
17093
|
+
* Defines a unique identifier (ID) which must be unique in the whole document.
|
|
17094
|
+
* Its purpose is to identify the element when linking (using a fragment identifier), scripting, or styling (with CSS).
|
|
17095
|
+
*/
|
|
17096
|
+
id?: string;
|
|
17097
|
+
/**
|
|
17098
|
+
* Disables the radio button, disallowing user interaction.
|
|
17099
|
+
* @default false
|
|
17100
|
+
*/
|
|
17101
|
+
disabled?: boolean;
|
|
17102
|
+
};
|
|
17103
|
+
|
|
17104
|
+
declare class RaruiRadioButton extends LitElement {
|
|
17105
|
+
id: string;
|
|
17106
|
+
disabled: boolean;
|
|
17107
|
+
name?: string;
|
|
17108
|
+
label?: RadioButtonProperties["label"];
|
|
17109
|
+
size?: RadioButtonProperties["size"];
|
|
17110
|
+
error?: RadioButtonProperties["error"];
|
|
17111
|
+
selected?: RadioButtonProperties["selected"];
|
|
17112
|
+
static styles: CSSResult;
|
|
17113
|
+
render(): TemplateResult<1>;
|
|
17114
|
+
private _onChange;
|
|
17115
|
+
}
|
|
17116
|
+
|
|
17117
|
+
declare global {
|
|
17118
|
+
interface HTMLElementTagNameMap {
|
|
17119
|
+
"rarui-textarea": RaruiTextarea;
|
|
17120
|
+
}
|
|
17121
|
+
}
|
|
17122
|
+
/**
|
|
17123
|
+
* ## Rarui Radio Button
|
|
17124
|
+
* ---
|
|
17125
|
+
* Expanded text area for long text entries. Allows you to enter large blocks of text, such as comments or detailed descriptions.
|
|
17126
|
+
*
|
|
17127
|
+
* See [a complete document](https://rarui.rarolabs.com.br/docs/components/input/textarea) for more details.
|
|
17128
|
+
*/
|
|
17129
|
+
type TextareaProperties = Partial<TextareaProps> & {
|
|
17130
|
+
/**
|
|
17131
|
+
* Disables the Textarea, disallowing user interaction.
|
|
17132
|
+
* @default false
|
|
17133
|
+
*/
|
|
17134
|
+
disabled?: boolean;
|
|
17135
|
+
};
|
|
17136
|
+
|
|
17137
|
+
declare class RaruiTextarea extends LitElement {
|
|
17138
|
+
disabled: boolean;
|
|
17139
|
+
value?: string;
|
|
17140
|
+
appearance?: TextareaProperties["appearance"];
|
|
17141
|
+
lines?: TextareaProperties["lines"];
|
|
17142
|
+
static styles: CSSResult;
|
|
17143
|
+
render(): TemplateResult<1>;
|
|
17144
|
+
private _onChange;
|
|
17145
|
+
}
|
|
17146
|
+
|
|
16861
17147
|
declare global {
|
|
16862
17148
|
interface HTMLElementTagNameMap {
|
|
16863
17149
|
"rarui-card-header": RaruiCardHeader;
|