@rarui/components 1.6.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 +8 -1
- package/custom-elements.json +253 -1
- package/dist/index.d.ts +95 -0
- package/dist/index.js +102 -57
- package/package.json +3 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,12 +2,19 @@
|
|
|
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
|
+
|
|
5
12
|
## 2025-05-29 `1.6.0`
|
|
6
13
|
|
|
7
14
|
#### 🎉 New features
|
|
8
15
|
|
|
9
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))
|
|
10
|
-
- Added new input `Textarea` component. ([#113](https://git.rarolabs.com.br/frontend/rarui/-/merge_requests/
|
|
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))
|
|
11
18
|
|
|
12
19
|
## 2025-05-28 `1.5.0`
|
|
13
20
|
|
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.",
|
package/dist/index.d.ts
CHANGED
|
@@ -16588,6 +16588,47 @@ 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
|
+
|
|
16591
16632
|
declare const styles$3: {
|
|
16592
16633
|
radioButton: RuntimeFn<{
|
|
16593
16634
|
/**
|
|
@@ -16764,6 +16805,17 @@ interface TextProps extends TextSprinkle {
|
|
|
16764
16805
|
lineClamp?: number;
|
|
16765
16806
|
}
|
|
16766
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
|
+
|
|
16767
16819
|
interface ButtonTyping {
|
|
16768
16820
|
/**
|
|
16769
16821
|
* Disables the button, disallowing user interaction.
|
|
@@ -16932,6 +16984,49 @@ declare class RaruiTitle extends LitElement {
|
|
|
16932
16984
|
render(): TemplateResult<1>;
|
|
16933
16985
|
}
|
|
16934
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
|
+
|
|
16935
17030
|
declare global {
|
|
16936
17031
|
interface HTMLElementTagNameMap {
|
|
16937
17032
|
"rarui-button": RaruiButton;
|