Skip to content

Commit 4f0290b

Browse files
authored
Merge branch 'main' into hotfix/month-and-year-picker-limits
2 parents 6b72c6c + 530da2b commit 4f0290b

28 files changed

+636
-547
lines changed

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@
66

77
<div align="center">
88
<p align="center">A design system built by Sysvale, using Vue components</p>
9-
<p align="center">https://cuida.framer.wiki/</p>
10-
<p align="center">https://main--6168a1779cac8c003ab99c2d.chromatic.com</p>
11-
<p align="center">Preview da migração da documentação em VitePress: https://cuida.sysvale.com/</p
9+
<p align="center">https://cuida.sysvale.com/</p>
1210
</div>
1311

1412
## Instalando

docs/.docgen/components-metadata.json

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9122,23 +9122,27 @@
91229122
]
91239123
},
91249124
"CdsPinInput": {
9125-
"displayName": "CdsPinInput",
9125+
"name": "CdsPinInput",
91269126
"exportName": "default",
9127+
"displayName": "PinInput",
91279128
"description": "",
91289129
"tags": {},
91299130
"props": [
91309131
{
91319132
"name": "modelValue",
9133+
"description": "O conteúdo do PIN.",
91329134
"type": {
91339135
"name": "string"
91349136
},
9137+
"required": true,
91359138
"defaultValue": {
91369139
"func": false,
91379140
"value": "''"
91389141
}
91399142
},
91409143
{
91419144
"name": "length",
9145+
"description": "Especifica a quantidade de caracteres no PIN.",
91429146
"type": {
91439147
"name": "number"
91449148
},
@@ -9149,7 +9153,7 @@
91499153
},
91509154
{
91519155
"name": "state",
9152-
"description": "Especifica o estado do TextInput. As opções são 'default', 'valid' e 'invalid'.",
9156+
"description": "Especifica o estado do componente.",
91539157
"tags": {},
91549158
"values": [
91559159
"default",
@@ -9166,6 +9170,7 @@
91669170
},
91679171
{
91689172
"name": "visible",
9173+
"description": "Especifica se os caracteres do PIN são visíveis.",
91699174
"type": {
91709175
"name": "boolean"
91719176
},
@@ -9176,7 +9181,7 @@
91769181
},
91779182
{
91789183
"name": "mobile",
9179-
"description": "Especifica se o PinInput deve ser versão mobile.",
9184+
"description": "Especifica se o PinInput deve estar na versão mobile.",
91809185
"type": {
91819186
"name": "boolean"
91829187
},
@@ -9189,9 +9194,10 @@
91899194
"events": [
91909195
{
91919196
"name": "update:modelValue",
9197+
"description": "Evento disparado com a modificação do v-model.",
91929198
"type": {
91939199
"names": [
9194-
"undefined"
9200+
"Event"
91959201
]
91969202
}
91979203
}

docs/components/display/dropdown-button.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,5 +87,6 @@ const args = ref({
8787
size: 'md',
8888
variant: 'green',
8989
secondary: true,
90+
tooltipText: 'Botão desabilitado'
9091
});
9192
</script>

docs/components/forms/pin-input.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ PinInputs são componentes utilizados para adição de one-time passwords e cód
66

77
<br>
88

9-
109
## Uso
1110

1211
```js
@@ -35,6 +34,13 @@ PinInputs são componentes utilizados para adição de one-time passwords e cód
3534
/>
3635
<br>
3736

37+
## Eventos
38+
39+
<APITable
40+
name="CdsPinInput"
41+
section="events"
42+
/>
43+
3844
<script setup>
3945
import { ref } from 'vue';
4046
import CdsPinInput from '@/components/PinInput.vue';

docs/components/forms/text-input.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,14 @@ TextInputs permitem que os usuários insiram texto em uma interface
5353
/>
5454
<br>
5555

56+
## Slots
57+
58+
<APITable
59+
name="CdsTextInput"
60+
section="slots"
61+
/>
62+
<br>
63+
5664
---
5765

5866
<script setup>

package-lock.json

Lines changed: 10 additions & 38 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sysvale/cuida",
3-
"version": "3.148.2",
3+
"version": "3.152.1",
44
"description": "A design system built by Sysvale, using storybook and Vue components",
55
"repository": {
66
"type": "git",
@@ -57,7 +57,7 @@
5757
"@typescript-eslint/eslint-plugin": "^8.38.0",
5858
"@typescript-eslint/parser": "^8.38.0",
5959
"@vitejs/plugin-vue": "^5.1.4",
60-
"@vitest/coverage-v8": "^3.1.1",
60+
"@vitest/coverage-v8": "^3.0.2",
6161
"@vitest/ui": "^3.2.1",
6262
"@vue/eslint-config-typescript": "^14.6.0",
6363
"@vue/test-utils": "^2.0.2",

src/components/BarChart.vue

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
<!-- eslint-disable vue/multi-word-component-names -->
21
<template>
32
<span>
43
<div
54
class="responsive-container"
65
>
76
<Bar
8-
:is="'bar'"
7+
is="bar"
98
:data="localChartData"
109
:options="chartOptions"
1110
/>
@@ -64,15 +63,15 @@ export default {
6463
*/
6564
barWidth: {
6665
type: Number,
67-
default: 1,
66+
default: 5,
6867
},
6968
7069
/**
7170
* Prop para exibir as barras na direção do eixo x
7271
*/
7372
horizontalBar: {
7473
type: Boolean,
75-
default: false,
74+
default: true,
7675
},
7776
},
7877
@@ -87,6 +86,22 @@ export default {
8786
responsive: true,
8887
maintainAspectRatio: false, // NOTE: Caso true manterá aspecto de proporção original, caso false, será dimensionado para preencher completamente o contêiner (Isso pode fazer com que o gráfico pareça distorcido se o container tiver proporção de aspecto diferente do gráfico original)
8988
categoryPercentage: null, //NOTE: Configura a porcentagem ocupada pela barra do gráfico. (0-1)
89+
indexAxis: this.horizontalBar ? 'y' : 'x',
90+
scales: this.horizontalBar
91+
? {
92+
x: { beginAtZero: true },
93+
}
94+
: {
95+
y: {
96+
beginAtZero: true,
97+
grace: '5%',
98+
ticks: {
99+
precision: 0
100+
},
101+
categoryPercentage: 0.6,
102+
barPercentage: 0.8
103+
},
104+
},
90105
plugins: {
91106
tooltip: {
92107
callbacks: {
@@ -116,7 +131,7 @@ export default {
116131
},
117132
118133
variant: {
119-
handler(newValue) {
134+
handler(newValue, oldValue) {
120135
if (newValue === 'gray' || newValue === 'dark') {
121136
this.deleteFirstTwoColors = true;
122137
} else {
@@ -144,20 +159,6 @@ export default {
144159
immediate: true,
145160
},
146161
},
147-
148-
mounted() {
149-
if(this.horizontalBar) {
150-
this.chartOptions = {
151-
...this.chartOptions,
152-
indexAxis: 'y',
153-
scales: {
154-
y: {
155-
beginAtZero: true
156-
}
157-
},
158-
};
159-
}
160-
},
161162
162163
methods: {
163164
paleteBuilder,

src/components/BaseInput.vue

Lines changed: 14 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -22,25 +22,20 @@
2222
</CdsBaseMobileInput>
2323

2424
<template v-else>
25-
<template
26-
v-if="useHasSlot('label')"
27-
>
28-
<slot name="label" />
29-
</template>
30-
31-
<CdsLabel
32-
v-if="!hideLabelInput"
33-
:text="label"
34-
:fluid="fluid"
35-
:for="componentId"
36-
:required="required"
37-
:tooltip="tooltip"
38-
:tooltip-icon="tooltipIcon"
39-
:support-link="supportLink"
40-
:support-link-url="supportLinkUrl"
41-
@support-link-click="emits('supportLinkClick')"
42-
/>
43-
25+
<slot name="label">
26+
<CdsLabel
27+
v-if="!hideLabelInput"
28+
:text="label"
29+
:fluid="fluid"
30+
:for="componentId"
31+
:required="required"
32+
:tooltip="tooltip"
33+
:tooltip-icon="tooltipIcon"
34+
:support-link="supportLink"
35+
:support-link-url="supportLinkUrl"
36+
@support-link-click="emits('supportLinkClick')"
37+
/>
38+
</slot>
4439
<div
4540
:class="baseInputClass"
4641
@click="handleClick"

0 commit comments

Comments
 (0)