@rarui/components 1.8.0-rc.1 → 1.8.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 +6 -0
- package/custom-elements.json +73 -42
- package/dist/index.d.ts +105 -55
- package/dist/index.js +25 -17
- package/package.json +2 -3
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
`@rarui/components` components is a component library built with [Stencil](https://stenciljs.com/docs/introduction).
|
|
4
4
|
|
|
5
|
+
## 2025-06-10 `1.8.0`
|
|
6
|
+
|
|
7
|
+
#### 🎉 New features
|
|
8
|
+
|
|
9
|
+
- Added new exhibition `Tooltip` component. ([#115](https://git.rarolabs.com.br/frontend/rarui/-/merge_requests/115) by [@junior](https://git.rarolabs.com.br/junior))
|
|
10
|
+
|
|
5
11
|
## 2025-06-02 `1.7.0`
|
|
6
12
|
|
|
7
13
|
#### 🎉 New features
|
package/custom-elements.json
CHANGED
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
"attributes": [
|
|
8
8
|
{
|
|
9
9
|
"name": "size",
|
|
10
|
+
"default": "medium",
|
|
10
11
|
"description": "Specifies the size of the Avatar component.\n\n- large\n- medium\n- small\n- xLarge",
|
|
11
12
|
"type": "string",
|
|
12
13
|
"values": [
|
|
@@ -33,6 +34,7 @@
|
|
|
33
34
|
"attributes": [
|
|
34
35
|
{
|
|
35
36
|
"name": "appearance",
|
|
37
|
+
"default": "brand",
|
|
36
38
|
"description": "Determines the visual style of the badge, influencing its color scheme and appearance.\n\n- brand\n- danger\n- info\n- inverted\n- neutral\n- success\n- warning",
|
|
37
39
|
"type": "string",
|
|
38
40
|
"values": [
|
|
@@ -62,6 +64,7 @@
|
|
|
62
64
|
},
|
|
63
65
|
{
|
|
64
66
|
"name": "size",
|
|
67
|
+
"default": "medium",
|
|
65
68
|
"description": "Specifies the size of the badge, controlling its dimensions.\n\n- dot\n- large\n- medium\n- small",
|
|
66
69
|
"type": "string",
|
|
67
70
|
"values": [
|
|
@@ -72,7 +75,8 @@
|
|
|
72
75
|
"name": "large"
|
|
73
76
|
},
|
|
74
77
|
{
|
|
75
|
-
"name": "medium"
|
|
78
|
+
"name": "medium",
|
|
79
|
+
"description": "(default)"
|
|
76
80
|
},
|
|
77
81
|
{
|
|
78
82
|
"name": "small"
|
|
@@ -81,6 +85,7 @@
|
|
|
81
85
|
},
|
|
82
86
|
{
|
|
83
87
|
"name": "variant",
|
|
88
|
+
"default": "solid",
|
|
84
89
|
"description": "Defines the visual variant of the badge, affecting its background style.\n\n- outlined\n- solid",
|
|
85
90
|
"type": "string",
|
|
86
91
|
"values": [
|
|
@@ -88,7 +93,8 @@
|
|
|
88
93
|
"name": "outlined"
|
|
89
94
|
},
|
|
90
95
|
{
|
|
91
|
-
"name": "solid"
|
|
96
|
+
"name": "solid",
|
|
97
|
+
"description": "(default)"
|
|
92
98
|
}
|
|
93
99
|
]
|
|
94
100
|
}
|
|
@@ -100,11 +106,13 @@
|
|
|
100
106
|
"attributes": [
|
|
101
107
|
{
|
|
102
108
|
"name": "direction",
|
|
109
|
+
"default": "horizontal",
|
|
103
110
|
"description": "The direction of the Divider.\n\n- horizontal\n- vertical",
|
|
104
111
|
"type": "string",
|
|
105
112
|
"values": [
|
|
106
113
|
{
|
|
107
|
-
"name": "horizontal"
|
|
114
|
+
"name": "horizontal",
|
|
115
|
+
"description": "(default)"
|
|
108
116
|
},
|
|
109
117
|
{
|
|
110
118
|
"name": "vertical"
|
|
@@ -113,11 +121,13 @@
|
|
|
113
121
|
},
|
|
114
122
|
{
|
|
115
123
|
"name": "size",
|
|
124
|
+
"default": "100%",
|
|
116
125
|
"description": "The **`size`** CSS property sets an element's area.",
|
|
117
126
|
"values": []
|
|
118
127
|
},
|
|
119
128
|
{
|
|
120
129
|
"name": "type",
|
|
130
|
+
"default": "solid",
|
|
121
131
|
"description": "The **`type`** shorthand CSS property sets the line style for all four sides of an element's.\n\nThis property supports responsive values. You can pass a single value like `\"$dashed\"`.\n\nOr an object like:\n```\n{\n\"xs\": \"$dashed\",\n\"md\": \"$solid\",\n\"lg\": \"$dashed\",\n\"xl\": \"$solid\"\n}\n```\n\n- $dashed\n- $solid",
|
|
122
132
|
"values": [
|
|
123
133
|
{
|
|
@@ -130,10 +140,12 @@
|
|
|
130
140
|
},
|
|
131
141
|
{
|
|
132
142
|
"name": "thickness",
|
|
143
|
+
"default": "$1",
|
|
133
144
|
"description": "The **`thickness`** shorthand CSS property sets the width of an element's.\n\nThis property supports responsive values. You can pass a single value like `\"$1\"`.\n\nOr an object like:\n```\n{\n\"xs\": \"$1\",\n\"md\": \"$2\",\n\"lg\": \"$1\",\n\"xl\": \"$2\"\n}\n```\n\n- $1\n- $2",
|
|
134
145
|
"values": [
|
|
135
146
|
{
|
|
136
|
-
"name": "$1"
|
|
147
|
+
"name": "$1",
|
|
148
|
+
"description": "(default)"
|
|
137
149
|
},
|
|
138
150
|
{
|
|
139
151
|
"name": "$2"
|
|
@@ -142,6 +154,7 @@
|
|
|
142
154
|
},
|
|
143
155
|
{
|
|
144
156
|
"name": "color",
|
|
157
|
+
"default": "$divider",
|
|
145
158
|
"description": "The **`color`** CSS property sets an element's color.\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\": \"$disabled\",\n\"xl\": \"$divider\"\n}\n```\n\n- $brand\n- $brand-alt\n- $disabled\n- $divider\n- $error\n- $info\n- $invert\n- $invert-disabled\n- $primary\n- $secondary\n- $subdued\n- $success\n- $transparent\n- $warning",
|
|
146
159
|
"values": [
|
|
147
160
|
{
|
|
@@ -154,7 +167,8 @@
|
|
|
154
167
|
"name": "$disabled"
|
|
155
168
|
},
|
|
156
169
|
{
|
|
157
|
-
"name": "$divider"
|
|
170
|
+
"name": "$divider",
|
|
171
|
+
"description": "(default)"
|
|
158
172
|
},
|
|
159
173
|
{
|
|
160
174
|
"name": "$error"
|
|
@@ -441,6 +455,7 @@
|
|
|
441
455
|
},
|
|
442
456
|
{
|
|
443
457
|
"name": "font-weight",
|
|
458
|
+
"default": "$regular",
|
|
444
459
|
"description": "The color property is used to set the color of the title.\n\nThis property supports responsive values. You can pass a single value like `\"$bold\"`.\n\nOr an object like:\n```\n{\n\"xs\": \"$bold\",\n\"md\": \"$medium\",\n\"lg\": \"$regular\",\n\"xl\": \"$semiBold\"\n}\n```\n\n- $bold\n- $medium\n- $regular\n- $semiBold",
|
|
445
460
|
"values": [
|
|
446
461
|
{
|
|
@@ -720,6 +735,7 @@
|
|
|
720
735
|
"attributes": [
|
|
721
736
|
{
|
|
722
737
|
"name": "as",
|
|
738
|
+
"default": "h1",
|
|
723
739
|
"description": "Type of html tag to create for the title.\n\n- h1\n- h2\n- h3\n- h4\n- h5\n- h6",
|
|
724
740
|
"type": "string",
|
|
725
741
|
"values": [
|
|
@@ -809,6 +825,7 @@
|
|
|
809
825
|
},
|
|
810
826
|
{
|
|
811
827
|
"name": "font-weight",
|
|
828
|
+
"default": "$regular",
|
|
812
829
|
"description": "The color property is used to set the color of the title.\n\nThis property supports responsive values. You can pass a single value like `\"$bold\"`.\n\nOr an object like:\n```\n{\n\"xs\": \"$bold\",\n\"md\": \"$medium\",\n\"lg\": \"$regular\",\n\"xl\": \"$semiBold\"\n}\n```\n\n- $bold\n- $medium\n- $regular\n- $semiBold",
|
|
813
830
|
"values": [
|
|
814
831
|
{
|
|
@@ -977,73 +994,68 @@
|
|
|
977
994
|
},
|
|
978
995
|
{
|
|
979
996
|
"name": "rarui-tooltip",
|
|
980
|
-
"description": "## Rarui
|
|
997
|
+
"description": "## Rarui Tootip\n---\nTooltips are informative, specific, and action-oriented text labels that provide contextual support\n\nSee [a complete document](https://rarui.rarolabs.com.br/docs/components/exhibition/tooltip) for more details.",
|
|
981
998
|
"attributes": [
|
|
999
|
+
{
|
|
1000
|
+
"name": "inverted",
|
|
1001
|
+
"default": false,
|
|
1002
|
+
"description": "Specifies whether the color scheme should be inverted",
|
|
1003
|
+
"type": "boolean"
|
|
1004
|
+
},
|
|
1005
|
+
{
|
|
1006
|
+
"name": "padding",
|
|
1007
|
+
"default": "base",
|
|
1008
|
+
"description": "Specifies the padding for the tooltip\n\n- base\n- none",
|
|
1009
|
+
"type": "string",
|
|
1010
|
+
"values": [
|
|
1011
|
+
{
|
|
1012
|
+
"name": "base",
|
|
1013
|
+
"description": "(default)"
|
|
1014
|
+
},
|
|
1015
|
+
{
|
|
1016
|
+
"name": "none"
|
|
1017
|
+
}
|
|
1018
|
+
]
|
|
1019
|
+
},
|
|
982
1020
|
{
|
|
983
1021
|
"name": "arrow",
|
|
1022
|
+
"default": true,
|
|
984
1023
|
"description": "Conditional for displaying the popover arrow.",
|
|
985
1024
|
"type": "boolean"
|
|
986
1025
|
},
|
|
987
1026
|
{
|
|
988
1027
|
"name": "match-reference-width",
|
|
1028
|
+
"default": false,
|
|
989
1029
|
"description": "A common feature of select dropdowns is that the dropdown matches the width of the reference regardless of its contents.",
|
|
990
1030
|
"type": "boolean"
|
|
991
1031
|
},
|
|
992
1032
|
{
|
|
993
1033
|
"name": "enabled-hover",
|
|
1034
|
+
"default": false,
|
|
994
1035
|
"description": "Adds hover event listeners that change the open state, like CSS :hover.",
|
|
995
1036
|
"type": "boolean"
|
|
996
1037
|
},
|
|
997
1038
|
{
|
|
998
1039
|
"name": "enabled-click",
|
|
1040
|
+
"default": true,
|
|
999
1041
|
"description": "Adds click event listeners that change the open state.",
|
|
1000
1042
|
"type": "boolean"
|
|
1001
1043
|
},
|
|
1002
1044
|
{
|
|
1003
1045
|
"name": "enabled-dismiss",
|
|
1046
|
+
"default": true,
|
|
1004
1047
|
"description": "Adds listeners that dismiss (close) the floating element.",
|
|
1005
1048
|
"type": "boolean"
|
|
1006
1049
|
},
|
|
1007
1050
|
{
|
|
1008
1051
|
"name": "offset",
|
|
1052
|
+
"default": 10,
|
|
1009
1053
|
"description": "Offest displaces the floating element from its core placement along the specified axes.",
|
|
1010
1054
|
"type": "number"
|
|
1011
1055
|
},
|
|
1012
|
-
{
|
|
1013
|
-
"name": "portal-id",
|
|
1014
|
-
"description": "Specifies the ID of the portal element where the tooltip should be rendered.\nThis can be useful for rendering the tooltip in a different part of the DOM, such as a modal or overlay.",
|
|
1015
|
-
"type": "string"
|
|
1016
|
-
},
|
|
1017
|
-
{
|
|
1018
|
-
"name": "visible",
|
|
1019
|
-
"description": "If true, the component is shown.",
|
|
1020
|
-
"type": "boolean"
|
|
1021
|
-
},
|
|
1022
|
-
{
|
|
1023
|
-
"name": "on-visibility",
|
|
1024
|
-
"description": "Function to control popover opening and closing.",
|
|
1025
|
-
"type": "(visible: boolean) => void;"
|
|
1026
|
-
},
|
|
1027
|
-
{
|
|
1028
|
-
"name": "inverted",
|
|
1029
|
-
"description": "Specifies whether the color scheme should be inverted",
|
|
1030
|
-
"type": "boolean"
|
|
1031
|
-
},
|
|
1032
|
-
{
|
|
1033
|
-
"name": "padding",
|
|
1034
|
-
"description": "Specifies the padding for the tooltip\n\n- base\n- none",
|
|
1035
|
-
"type": "string",
|
|
1036
|
-
"values": [
|
|
1037
|
-
{
|
|
1038
|
-
"name": "base"
|
|
1039
|
-
},
|
|
1040
|
-
{
|
|
1041
|
-
"name": "none"
|
|
1042
|
-
}
|
|
1043
|
-
]
|
|
1044
|
-
},
|
|
1045
1056
|
{
|
|
1046
1057
|
"name": "position",
|
|
1058
|
+
"default": "bottom",
|
|
1047
1059
|
"description": "Position of the popover.\n\n- bottom\n- bottom-end\n- bottom-start\n- left\n- left-end\n- left-start\n- right\n- right-end\n- right-start\n- top\n- top-end\n- top-start",
|
|
1048
1060
|
"type": "string",
|
|
1049
1061
|
"values": [
|
|
@@ -1088,6 +1100,7 @@
|
|
|
1088
1100
|
},
|
|
1089
1101
|
{
|
|
1090
1102
|
"name": "strategy",
|
|
1103
|
+
"default": "fixed",
|
|
1091
1104
|
"description": "CSS positioning strategy used for the tooltip.\n\n- `\"fixed\"` (default) positions the tooltip relative to the viewport,\n so it stays in the same place even when the page is scrolled.\n- `\"absolute\"` positions the tooltip relative to the nearest positioned ancestor,\n which can be useful when you want the tooltip to move with page content.\n\nUse `\"fixed\"` for tooltips that should remain visible on scroll,\nand `\"absolute\"` when tooltips need to be positioned within scrollable containers.\n\n- absolute\n- fixed",
|
|
1092
1105
|
"type": "string",
|
|
1093
1106
|
"values": [
|
|
@@ -1113,6 +1126,7 @@
|
|
|
1113
1126
|
},
|
|
1114
1127
|
{
|
|
1115
1128
|
"name": "color",
|
|
1129
|
+
"default": "$info",
|
|
1116
1130
|
"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",
|
|
1117
1131
|
"type": "string",
|
|
1118
1132
|
"values": [
|
|
@@ -1141,6 +1155,7 @@
|
|
|
1141
1155
|
},
|
|
1142
1156
|
{
|
|
1143
1157
|
"name": "color",
|
|
1158
|
+
"default": "$info",
|
|
1144
1159
|
"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",
|
|
1145
1160
|
"type": "string",
|
|
1146
1161
|
"values": [
|
|
@@ -1158,6 +1173,7 @@
|
|
|
1158
1173
|
},
|
|
1159
1174
|
{
|
|
1160
1175
|
"name": "size",
|
|
1176
|
+
"default": "large",
|
|
1161
1177
|
"description": "Specifies the size of the progress indicator.\nThis prop accepts one of the following values: \"large\" or \"small\".\n\n- large\n- small",
|
|
1162
1178
|
"type": "string",
|
|
1163
1179
|
"values": [
|
|
@@ -1341,6 +1357,7 @@
|
|
|
1341
1357
|
"attributes": [
|
|
1342
1358
|
{
|
|
1343
1359
|
"name": "disabled",
|
|
1360
|
+
"default": false,
|
|
1344
1361
|
"description": "Disables the button, disallowing user interaction.",
|
|
1345
1362
|
"type": "boolean"
|
|
1346
1363
|
},
|
|
@@ -1351,11 +1368,13 @@
|
|
|
1351
1368
|
},
|
|
1352
1369
|
{
|
|
1353
1370
|
"name": "appearance",
|
|
1371
|
+
"default": "brand",
|
|
1354
1372
|
"description": "Defines the appearance variants for the button component.\nEach appearance variant corresponds to a specific background color, border color, and text color.\n\n- brand\n- danger\n- inverted\n- neutral\n- success\n- warning",
|
|
1355
1373
|
"type": "string",
|
|
1356
1374
|
"values": [
|
|
1357
1375
|
{
|
|
1358
|
-
"name": "brand"
|
|
1376
|
+
"name": "brand",
|
|
1377
|
+
"description": "(default)"
|
|
1359
1378
|
},
|
|
1360
1379
|
{
|
|
1361
1380
|
"name": "danger"
|
|
@@ -1376,6 +1395,7 @@
|
|
|
1376
1395
|
},
|
|
1377
1396
|
{
|
|
1378
1397
|
"name": "size",
|
|
1398
|
+
"default": "large",
|
|
1379
1399
|
"description": "Defines the size of the button component.\n\n- large\n- medium\n- small",
|
|
1380
1400
|
"type": "string",
|
|
1381
1401
|
"values": [
|
|
@@ -1393,6 +1413,7 @@
|
|
|
1393
1413
|
},
|
|
1394
1414
|
{
|
|
1395
1415
|
"name": "variant",
|
|
1416
|
+
"default": "solid",
|
|
1396
1417
|
"description": "Defines the visual variant of the badge, affecting its background style, border and text.\n\n- outlined\n- solid\n- text\n- tonal",
|
|
1397
1418
|
"type": "string",
|
|
1398
1419
|
"values": [
|
|
@@ -1400,7 +1421,8 @@
|
|
|
1400
1421
|
"name": "outlined"
|
|
1401
1422
|
},
|
|
1402
1423
|
{
|
|
1403
|
-
"name": "solid"
|
|
1424
|
+
"name": "solid",
|
|
1425
|
+
"description": "(default)"
|
|
1404
1426
|
},
|
|
1405
1427
|
{
|
|
1406
1428
|
"name": "text"
|
|
@@ -1412,11 +1434,13 @@
|
|
|
1412
1434
|
},
|
|
1413
1435
|
{
|
|
1414
1436
|
"name": "type",
|
|
1437
|
+
"default": "button",
|
|
1415
1438
|
"description": "Defines the native button type.\nCan be 'button', 'submit', or 'reset'.\n\n- button\n- reset\n- submit",
|
|
1416
1439
|
"type": "string",
|
|
1417
1440
|
"values": [
|
|
1418
1441
|
{
|
|
1419
|
-
"name": "button"
|
|
1442
|
+
"name": "button",
|
|
1443
|
+
"description": "(default)"
|
|
1420
1444
|
},
|
|
1421
1445
|
{
|
|
1422
1446
|
"name": "reset"
|
|
@@ -1506,6 +1530,7 @@
|
|
|
1506
1530
|
},
|
|
1507
1531
|
{
|
|
1508
1532
|
"name": "disabled",
|
|
1533
|
+
"default": false,
|
|
1509
1534
|
"description": "Disables the radio button, disallowing user interaction.",
|
|
1510
1535
|
"type": "boolean"
|
|
1511
1536
|
}
|
|
@@ -1517,6 +1542,7 @@
|
|
|
1517
1542
|
"attributes": [
|
|
1518
1543
|
{
|
|
1519
1544
|
"name": "lines",
|
|
1545
|
+
"default": 2,
|
|
1520
1546
|
"description": "Number of lines to be rendered for the user to input text",
|
|
1521
1547
|
"type": "number"
|
|
1522
1548
|
},
|
|
@@ -1535,6 +1561,7 @@
|
|
|
1535
1561
|
},
|
|
1536
1562
|
{
|
|
1537
1563
|
"name": "disabled",
|
|
1564
|
+
"default": false,
|
|
1538
1565
|
"description": "Disables the Textarea, disallowing user interaction.",
|
|
1539
1566
|
"type": "boolean"
|
|
1540
1567
|
}
|
|
@@ -2920,6 +2947,7 @@
|
|
|
2920
2947
|
},
|
|
2921
2948
|
{
|
|
2922
2949
|
"name": "line-height",
|
|
2950
|
+
"default": "base",
|
|
2923
2951
|
"description": "The lineHeight property specifies the line height of the box.\n\nThis property supports responsive values. You can pass a single value like `\"$body-l\"`.\n\nOr an object like:\n```\n{\n\"xs\": \"$body-l\",\n\"md\": \"$body-m\",\n\"lg\": \"$body-s\",\n\"xl\": \"$body-xl\"\n}\n```\n\n- $body-l\n- $body-m\n- $body-s\n- $body-xl\n- $body-xs\n- $body-xxs\n- $button-l\n- $button-m\n- $button-s\n- $heading-hero\n- $heading-l\n- $heading-m\n- $heading-s\n- $heading-xl\n- $heading-xs\n- $label-l\n- $label-m\n- $label-s",
|
|
2924
2952
|
"values": [
|
|
2925
2953
|
{
|
|
@@ -5350,6 +5378,7 @@
|
|
|
5350
5378
|
},
|
|
5351
5379
|
{
|
|
5352
5380
|
"name": "position",
|
|
5381
|
+
"default": "left",
|
|
5353
5382
|
"description": "Controls where the tab buttons are displayed. This prop accepts one of the following values: \"left\", \"center\", or \"right\".\n\n- center\n- left\n- right",
|
|
5354
5383
|
"type": "string",
|
|
5355
5384
|
"values": [
|
|
@@ -5378,6 +5407,7 @@
|
|
|
5378
5407
|
"attributes": [
|
|
5379
5408
|
{
|
|
5380
5409
|
"name": "padding",
|
|
5410
|
+
"default": "base",
|
|
5381
5411
|
"description": "Specifies the padding inside the card.\nThis prop accepts one of the following values: \"none\" or \"base\".\n\n- base\n- none",
|
|
5382
5412
|
"type": "string",
|
|
5383
5413
|
"values": [
|
|
@@ -5392,6 +5422,7 @@
|
|
|
5392
5422
|
},
|
|
5393
5423
|
{
|
|
5394
5424
|
"name": "background-color",
|
|
5425
|
+
"default": "$primary",
|
|
5395
5426
|
"description": "Specifies the background color of the card.\nThis prop accepts one of the following values: \"$transparent\", \"$background\", \"$primary\", or \"$secondary\"\n\nThis property supports responsive values. You can pass a single value like `\"$background\"`.\n\nOr an object like:\n```\n{\n\"xs\": \"$background\",\n\"md\": \"$primary\",\n\"lg\": \"$secondary\",\n\"xl\": \"$transparent\"\n}\n```\n\n- $background\n- $primary\n- $secondary\n- $transparent",
|
|
5396
5427
|
"values": [
|
|
5397
5428
|
{
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,88 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2017 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/** TemplateResult types */
|
|
8
|
+
declare const HTML_RESULT = 1;
|
|
9
|
+
declare const SVG_RESULT = 2;
|
|
10
|
+
declare const MATHML_RESULT = 3;
|
|
11
|
+
type ResultType = typeof HTML_RESULT | typeof SVG_RESULT | typeof MATHML_RESULT;
|
|
12
|
+
/**
|
|
13
|
+
* The return type of the template tag functions, {@linkcode html} and
|
|
14
|
+
* {@linkcode svg} when it hasn't been compiled by @lit-labs/compiler.
|
|
15
|
+
*
|
|
16
|
+
* A `TemplateResult` object holds all the information about a template
|
|
17
|
+
* expression required to render it: the template strings, expression values,
|
|
18
|
+
* and type of template (html or svg).
|
|
19
|
+
*
|
|
20
|
+
* `TemplateResult` objects do not create any DOM on their own. To create or
|
|
21
|
+
* update DOM you need to render the `TemplateResult`. See
|
|
22
|
+
* [Rendering](https://lit.dev/docs/components/rendering) for more information.
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
type UncompiledTemplateResult<T extends ResultType = ResultType> = {
|
|
26
|
+
['_$litType$']: T;
|
|
27
|
+
strings: TemplateStringsArray;
|
|
28
|
+
values: unknown[];
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* The return type of the template tag functions, {@linkcode html} and
|
|
32
|
+
* {@linkcode svg}.
|
|
33
|
+
*
|
|
34
|
+
* A `TemplateResult` object holds all the information about a template
|
|
35
|
+
* expression required to render it: the template strings, expression values,
|
|
36
|
+
* and type of template (html or svg).
|
|
37
|
+
*
|
|
38
|
+
* `TemplateResult` objects do not create any DOM on their own. To create or
|
|
39
|
+
* update DOM you need to render the `TemplateResult`. See
|
|
40
|
+
* [Rendering](https://lit.dev/docs/components/rendering) for more information.
|
|
41
|
+
*
|
|
42
|
+
* In Lit 4, this type will be an alias of
|
|
43
|
+
* MaybeCompiledTemplateResult, so that code will get type errors if it assumes
|
|
44
|
+
* that Lit templates are not compiled. When deliberately working with only
|
|
45
|
+
* one, use either {@linkcode CompiledTemplateResult} or
|
|
46
|
+
* {@linkcode UncompiledTemplateResult} explicitly.
|
|
47
|
+
*/
|
|
48
|
+
type TemplateResult<T extends ResultType = ResultType> = UncompiledTemplateResult<T>;
|
|
49
|
+
/**
|
|
50
|
+
* Object specifying options for controlling lit-html rendering. Note that
|
|
51
|
+
* while `render` may be called multiple times on the same `container` (and
|
|
52
|
+
* `renderBefore` reference node) to efficiently update the rendered content,
|
|
53
|
+
* only the options passed in during the first render are respected during
|
|
54
|
+
* the lifetime of renders to that unique `container` + `renderBefore`
|
|
55
|
+
* combination.
|
|
56
|
+
*/
|
|
57
|
+
interface RenderOptions {
|
|
58
|
+
/**
|
|
59
|
+
* An object to use as the `this` value for event listeners. It's often
|
|
60
|
+
* useful to set this to the host component rendering a template.
|
|
61
|
+
*/
|
|
62
|
+
host?: object;
|
|
63
|
+
/**
|
|
64
|
+
* A DOM node before which to render content in the container.
|
|
65
|
+
*/
|
|
66
|
+
renderBefore?: ChildNode | null;
|
|
67
|
+
/**
|
|
68
|
+
* Node used for cloning the template (`importNode` will be called on this
|
|
69
|
+
* node). This controls the `ownerDocument` of the rendered DOM, along with
|
|
70
|
+
* any inherited context. Defaults to the global `document`.
|
|
71
|
+
*/
|
|
72
|
+
creationScope?: {
|
|
73
|
+
importNode(node: Node, deep?: boolean): Node;
|
|
74
|
+
};
|
|
75
|
+
/**
|
|
76
|
+
* The initial connected state for the top-level part being rendered. If no
|
|
77
|
+
* `isConnected` option is set, `AsyncDirective`s will be connected by
|
|
78
|
+
* default. Set to `false` if the initial render occurs in a disconnected tree
|
|
79
|
+
* and `AsyncDirective`s should see `isConnected === false` for their initial
|
|
80
|
+
* render. The `part.setConnected()` method must be used subsequent to initial
|
|
81
|
+
* render to change the connected state of the part.
|
|
82
|
+
*/
|
|
83
|
+
isConnected?: boolean;
|
|
84
|
+
}
|
|
85
|
+
|
|
1
86
|
/**
|
|
2
87
|
* A CSSResult or native CSSStyleSheet.
|
|
3
88
|
*
|
|
@@ -829,49 +914,6 @@ declare abstract class ReactiveElement extends HTMLElement implements ReactiveCo
|
|
|
829
914
|
protected firstUpdated(_changedProperties: PropertyValues): void;
|
|
830
915
|
}
|
|
831
916
|
|
|
832
|
-
/**
|
|
833
|
-
* @license
|
|
834
|
-
* Copyright 2017 Google LLC
|
|
835
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
836
|
-
*/
|
|
837
|
-
|
|
838
|
-
/**
|
|
839
|
-
* Object specifying options for controlling lit-html rendering. Note that
|
|
840
|
-
* while `render` may be called multiple times on the same `container` (and
|
|
841
|
-
* `renderBefore` reference node) to efficiently update the rendered content,
|
|
842
|
-
* only the options passed in during the first render are respected during
|
|
843
|
-
* the lifetime of renders to that unique `container` + `renderBefore`
|
|
844
|
-
* combination.
|
|
845
|
-
*/
|
|
846
|
-
interface RenderOptions {
|
|
847
|
-
/**
|
|
848
|
-
* An object to use as the `this` value for event listeners. It's often
|
|
849
|
-
* useful to set this to the host component rendering a template.
|
|
850
|
-
*/
|
|
851
|
-
host?: object;
|
|
852
|
-
/**
|
|
853
|
-
* A DOM node before which to render content in the container.
|
|
854
|
-
*/
|
|
855
|
-
renderBefore?: ChildNode | null;
|
|
856
|
-
/**
|
|
857
|
-
* Node used for cloning the template (`importNode` will be called on this
|
|
858
|
-
* node). This controls the `ownerDocument` of the rendered DOM, along with
|
|
859
|
-
* any inherited context. Defaults to the global `document`.
|
|
860
|
-
*/
|
|
861
|
-
creationScope?: {
|
|
862
|
-
importNode(node: Node, deep?: boolean): Node;
|
|
863
|
-
};
|
|
864
|
-
/**
|
|
865
|
-
* The initial connected state for the top-level part being rendered. If no
|
|
866
|
-
* `isConnected` option is set, `AsyncDirective`s will be connected by
|
|
867
|
-
* default. Set to `false` if the initial render occurs in a disconnected tree
|
|
868
|
-
* and `AsyncDirective`s should see `isConnected === false` for their initial
|
|
869
|
-
* render. The `part.setConnected()` method must be used subsequent to initial
|
|
870
|
-
* render to change the connected state of the part.
|
|
871
|
-
*/
|
|
872
|
-
isConnected?: boolean;
|
|
873
|
-
}
|
|
874
|
-
|
|
875
917
|
/**
|
|
876
918
|
* @license
|
|
877
919
|
* Copyright 2017 Google LLC
|
|
@@ -16151,14 +16193,17 @@ interface DividerSprinkle {
|
|
|
16151
16193
|
size?: string | Conditions<string>;
|
|
16152
16194
|
/**
|
|
16153
16195
|
* The **`type`** shorthand CSS property sets the line style for all four sides of an element's.
|
|
16196
|
+
* @default solid
|
|
16154
16197
|
*/
|
|
16155
16198
|
type?: AddDollar<DividerBorderStyle> | Conditions<AddDollar<DividerBorderStyle>>;
|
|
16156
16199
|
/**
|
|
16157
16200
|
* The **`thickness`** shorthand CSS property sets the width of an element's.
|
|
16201
|
+
* @default $1
|
|
16158
16202
|
*/
|
|
16159
16203
|
thickness?: AddDollar<keyof typeof dividerBorderWidthProperties> | Conditions<AddDollar<keyof typeof dividerBorderWidthProperties>>;
|
|
16160
16204
|
/**
|
|
16161
16205
|
* The **`color`** CSS property sets an element's color.
|
|
16206
|
+
* @default $divider
|
|
16162
16207
|
*/
|
|
16163
16208
|
color?: AddDollar<keyof typeof borderColorProperties> | Conditions<AddDollar<keyof typeof borderColorProperties>>;
|
|
16164
16209
|
}
|
|
@@ -16337,7 +16382,7 @@ declare const badgeStyles: {
|
|
|
16337
16382
|
};
|
|
16338
16383
|
/**
|
|
16339
16384
|
* Specifies the size of the badge, controlling its dimensions.
|
|
16340
|
-
* @
|
|
16385
|
+
* @default medium
|
|
16341
16386
|
*/
|
|
16342
16387
|
size: {
|
|
16343
16388
|
large: {
|
|
@@ -16365,7 +16410,7 @@ declare const badgeStyles: {
|
|
|
16365
16410
|
};
|
|
16366
16411
|
/**
|
|
16367
16412
|
* Defines the visual variant of the badge, affecting its background style.
|
|
16368
|
-
* @
|
|
16413
|
+
* @default solid
|
|
16369
16414
|
*/
|
|
16370
16415
|
variant: {
|
|
16371
16416
|
solid: {};
|
|
@@ -16395,6 +16440,7 @@ declare const buttonStyles: {
|
|
|
16395
16440
|
/**
|
|
16396
16441
|
* Defines the appearance variants for the button component.
|
|
16397
16442
|
* Each appearance variant corresponds to a specific background color, border color, and text color.
|
|
16443
|
+
* @default brand
|
|
16398
16444
|
*/
|
|
16399
16445
|
appearance: {
|
|
16400
16446
|
brand: {
|
|
@@ -16430,7 +16476,7 @@ declare const buttonStyles: {
|
|
|
16430
16476
|
};
|
|
16431
16477
|
/**
|
|
16432
16478
|
* Defines the size of the button component.
|
|
16433
|
-
* @default
|
|
16479
|
+
* @default large
|
|
16434
16480
|
*/
|
|
16435
16481
|
size: {
|
|
16436
16482
|
large: {
|
|
@@ -16454,6 +16500,7 @@ declare const buttonStyles: {
|
|
|
16454
16500
|
};
|
|
16455
16501
|
/**
|
|
16456
16502
|
* Defines the visual variant of the badge, affecting its background style, border and text.
|
|
16503
|
+
* @default solid
|
|
16457
16504
|
*/
|
|
16458
16505
|
variant: {
|
|
16459
16506
|
solid: {
|
|
@@ -16694,6 +16741,7 @@ declare const styles: {
|
|
|
16694
16741
|
tooltip: RuntimeFn<{
|
|
16695
16742
|
/**
|
|
16696
16743
|
* Specifies whether the color scheme should be inverted
|
|
16744
|
+
* @default false
|
|
16697
16745
|
*/
|
|
16698
16746
|
inverted: {
|
|
16699
16747
|
true: {
|
|
@@ -16707,6 +16755,7 @@ declare const styles: {
|
|
|
16707
16755
|
};
|
|
16708
16756
|
/**
|
|
16709
16757
|
* Specifies the padding for the tooltip
|
|
16758
|
+
* @default base
|
|
16710
16759
|
*/
|
|
16711
16760
|
padding: {
|
|
16712
16761
|
base: {
|
|
@@ -16781,6 +16830,7 @@ type AvatarProps = AvatarTypings & AvatarVariants;
|
|
|
16781
16830
|
interface DividerProps extends DividerSprinkle {
|
|
16782
16831
|
/**
|
|
16783
16832
|
* The direction of the Divider.
|
|
16833
|
+
* @default horizontal
|
|
16784
16834
|
*/
|
|
16785
16835
|
direction?: "vertical" | "horizontal";
|
|
16786
16836
|
}
|
|
@@ -17050,13 +17100,13 @@ declare global {
|
|
|
17050
17100
|
}
|
|
17051
17101
|
}
|
|
17052
17102
|
/**
|
|
17053
|
-
* ## Rarui
|
|
17103
|
+
* ## Rarui Tootip
|
|
17054
17104
|
* ---
|
|
17055
|
-
*
|
|
17105
|
+
* Tooltips are informative, specific, and action-oriented text labels that provide contextual support
|
|
17056
17106
|
*
|
|
17057
|
-
* See [a complete document](https://rarui.rarolabs.com.br/docs/components/exhibition/
|
|
17107
|
+
* See [a complete document](https://rarui.rarolabs.com.br/docs/components/exhibition/tooltip) for more details.
|
|
17058
17108
|
*/
|
|
17059
|
-
type TooltipProperties = Partial<TooltipProps
|
|
17109
|
+
type TooltipProperties = Partial<Omit<TooltipProps, "visible" | "onVisibility" | "portalId">> & {
|
|
17060
17110
|
/**
|
|
17061
17111
|
* Position of the popover.
|
|
17062
17112
|
* @default bottom
|
|
@@ -17078,10 +17128,10 @@ type TooltipProperties = Partial<TooltipProps> & {
|
|
|
17078
17128
|
};
|
|
17079
17129
|
|
|
17080
17130
|
declare class RaruiTooltip extends LitElement {
|
|
17131
|
+
arrow: TooltipProperties["arrow"];
|
|
17081
17132
|
padding: TooltipProperties["padding"];
|
|
17082
17133
|
offset: TooltipProperties["offset"];
|
|
17083
17134
|
inverted: TooltipProperties["inverted"];
|
|
17084
|
-
arrow: TooltipProperties["arrow"];
|
|
17085
17135
|
enabledDismiss: TooltipProperties["enabledDismiss"];
|
|
17086
17136
|
enabledClick: TooltipProperties["enabledClick"];
|
|
17087
17137
|
enabledHover: TooltipProperties["enabledHover"];
|
|
@@ -17168,18 +17218,18 @@ type ButtonProperties = Partial<ButtonProps> & {
|
|
|
17168
17218
|
/**
|
|
17169
17219
|
* Defines the native button type.
|
|
17170
17220
|
* Can be 'button', 'submit', or 'reset'.
|
|
17171
|
-
* @default
|
|
17221
|
+
* @default button
|
|
17172
17222
|
*/
|
|
17173
17223
|
type?: "button" | "submit" | "reset";
|
|
17174
17224
|
};
|
|
17175
17225
|
|
|
17176
17226
|
declare class RaruiButton extends LitElement {
|
|
17177
|
-
full: ButtonProperties["full"];
|
|
17178
|
-
size: ButtonProperties["size"];
|
|
17179
17227
|
type: ButtonProperties["type"];
|
|
17228
|
+
size: ButtonProperties["size"];
|
|
17180
17229
|
variant: ButtonProperties["variant"];
|
|
17181
|
-
disabled: ButtonProperties["disabled"];
|
|
17182
17230
|
appearance: ButtonProperties["appearance"];
|
|
17231
|
+
disabled: ButtonProperties["disabled"];
|
|
17232
|
+
full: ButtonProperties["full"];
|
|
17183
17233
|
static styles: CSSResult;
|
|
17184
17234
|
render(): TemplateResult<1>;
|
|
17185
17235
|
}
|