@henriquepetrelli/hp-design-system 1.1.25 → 1.1.26
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/dist/hp-design-system.es.js +246 -170
- package/dist/hp-design-system.es.js.map +1 -1
- package/dist/hp-design-system.umd.js +247 -170
- package/dist/hp-design-system.umd.js.map +1 -1
- package/dist/style.css +42 -0
- package/package.json +1 -1
|
@@ -19,8 +19,8 @@ var ButtonSize = /* @__PURE__ */ ((ButtonSize2) => {
|
|
|
19
19
|
return ButtonSize2;
|
|
20
20
|
})(ButtonSize || {});
|
|
21
21
|
|
|
22
|
-
const _hoisted_1$
|
|
23
|
-
const _sfc_main$
|
|
22
|
+
const _hoisted_1$i = ["xlink:href"];
|
|
23
|
+
const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
24
24
|
__name: "Icon",
|
|
25
25
|
props: {
|
|
26
26
|
name: {
|
|
@@ -54,7 +54,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
54
54
|
}, [
|
|
55
55
|
createElementVNode("use", {
|
|
56
56
|
"xlink:href": `#icon-${__props.name}`
|
|
57
|
-
}, null, 8, _hoisted_1$
|
|
57
|
+
}, null, 8, _hoisted_1$i)
|
|
58
58
|
], 6);
|
|
59
59
|
};
|
|
60
60
|
}
|
|
@@ -68,18 +68,18 @@ const _export_sfc = (sfc, props) => {
|
|
|
68
68
|
return target;
|
|
69
69
|
};
|
|
70
70
|
|
|
71
|
-
const HpIcon = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
71
|
+
const HpIcon = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-0b477588"]]);
|
|
72
72
|
|
|
73
|
-
const _hoisted_1$
|
|
74
|
-
const _hoisted_2$
|
|
73
|
+
const _hoisted_1$h = ["aria-label", "aria-disabled", "disabled"];
|
|
74
|
+
const _hoisted_2$g = {
|
|
75
75
|
key: 0,
|
|
76
76
|
class: "button-primary__icon--left"
|
|
77
77
|
};
|
|
78
|
-
const _hoisted_3$
|
|
78
|
+
const _hoisted_3$e = {
|
|
79
79
|
key: 1,
|
|
80
80
|
class: "button-primary__icon--right"
|
|
81
81
|
};
|
|
82
|
-
const _sfc_main$
|
|
82
|
+
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
83
83
|
__name: "ButtonPrimary",
|
|
84
84
|
props: {
|
|
85
85
|
label: {
|
|
@@ -152,7 +152,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
152
152
|
disabled: __props.disabled,
|
|
153
153
|
onClick: handleClick
|
|
154
154
|
}, [
|
|
155
|
-
__props.icon && __props.iconPosition === unref(IconPosition).LEFT ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
155
|
+
__props.icon && __props.iconPosition === unref(IconPosition).LEFT ? (openBlock(), createElementBlock("span", _hoisted_2$g, [
|
|
156
156
|
createVNode(HpIcon, {
|
|
157
157
|
name: __props.icon,
|
|
158
158
|
size: "sm",
|
|
@@ -163,31 +163,31 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
163
163
|
class: "button-primary__label",
|
|
164
164
|
style: normalizeStyle({ color: computedColor.value })
|
|
165
165
|
}, toDisplayString(__props.label), 5),
|
|
166
|
-
__props.icon && __props.iconPosition === unref(IconPosition).RIGHT ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
166
|
+
__props.icon && __props.iconPosition === unref(IconPosition).RIGHT ? (openBlock(), createElementBlock("span", _hoisted_3$e, [
|
|
167
167
|
createVNode(HpIcon, {
|
|
168
168
|
name: __props.icon,
|
|
169
169
|
size: "sm",
|
|
170
170
|
color: computedColor.value
|
|
171
171
|
}, null, 8, ["name", "color"])
|
|
172
172
|
])) : createCommentVNode("", true)
|
|
173
|
-
], 14, _hoisted_1$
|
|
173
|
+
], 14, _hoisted_1$h);
|
|
174
174
|
};
|
|
175
175
|
}
|
|
176
176
|
});
|
|
177
177
|
|
|
178
|
-
const HpButtonPrimary = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
178
|
+
const HpButtonPrimary = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-5c29dcce"]]);
|
|
179
179
|
|
|
180
|
-
const _hoisted_1$
|
|
181
|
-
const _hoisted_2$
|
|
180
|
+
const _hoisted_1$g = ["aria-label", "aria-disabled", "disabled"];
|
|
181
|
+
const _hoisted_2$f = {
|
|
182
182
|
key: 0,
|
|
183
183
|
class: "button-secondary__icon--left"
|
|
184
184
|
};
|
|
185
|
-
const _hoisted_3$
|
|
186
|
-
const _hoisted_4$
|
|
185
|
+
const _hoisted_3$d = { class: "button-secondary__label" };
|
|
186
|
+
const _hoisted_4$9 = {
|
|
187
187
|
key: 1,
|
|
188
188
|
class: "button-secondary__icon--right"
|
|
189
189
|
};
|
|
190
|
-
const _sfc_main$
|
|
190
|
+
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
191
191
|
__name: "ButtonSecondary",
|
|
192
192
|
props: {
|
|
193
193
|
label: {
|
|
@@ -245,37 +245,37 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
245
245
|
disabled: __props.disabled,
|
|
246
246
|
onClick: handleClick
|
|
247
247
|
}, [
|
|
248
|
-
__props.icon && __props.iconPosition === unref(IconPosition).LEFT ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
248
|
+
__props.icon && __props.iconPosition === unref(IconPosition).LEFT ? (openBlock(), createElementBlock("span", _hoisted_2$f, [
|
|
249
249
|
createVNode(HpIcon, {
|
|
250
250
|
name: __props.icon,
|
|
251
251
|
size: "sm"
|
|
252
252
|
}, null, 8, ["name"])
|
|
253
253
|
])) : createCommentVNode("", true),
|
|
254
|
-
createElementVNode("span", _hoisted_3$
|
|
255
|
-
__props.icon && __props.iconPosition === unref(IconPosition).RIGHT ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
254
|
+
createElementVNode("span", _hoisted_3$d, toDisplayString(__props.label), 1),
|
|
255
|
+
__props.icon && __props.iconPosition === unref(IconPosition).RIGHT ? (openBlock(), createElementBlock("span", _hoisted_4$9, [
|
|
256
256
|
createVNode(HpIcon, {
|
|
257
257
|
name: __props.icon,
|
|
258
258
|
size: "sm"
|
|
259
259
|
}, null, 8, ["name"])
|
|
260
260
|
])) : createCommentVNode("", true)
|
|
261
|
-
], 14, _hoisted_1$
|
|
261
|
+
], 14, _hoisted_1$g);
|
|
262
262
|
};
|
|
263
263
|
}
|
|
264
264
|
});
|
|
265
265
|
|
|
266
|
-
const HpButtonSecondary = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
266
|
+
const HpButtonSecondary = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-ce9350e4"]]);
|
|
267
267
|
|
|
268
|
-
const _hoisted_1$
|
|
269
|
-
const _hoisted_2$
|
|
268
|
+
const _hoisted_1$f = ["aria-label", "aria-disabled", "disabled"];
|
|
269
|
+
const _hoisted_2$e = {
|
|
270
270
|
key: 0,
|
|
271
271
|
class: "button-tertiary__icon--left"
|
|
272
272
|
};
|
|
273
|
-
const _hoisted_3$
|
|
274
|
-
const _hoisted_4$
|
|
273
|
+
const _hoisted_3$c = { class: "button-tertiary__label" };
|
|
274
|
+
const _hoisted_4$8 = {
|
|
275
275
|
key: 1,
|
|
276
276
|
class: "button-tertiary__icon--right"
|
|
277
277
|
};
|
|
278
|
-
const _sfc_main$
|
|
278
|
+
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
279
279
|
__name: "ButtonTertiary",
|
|
280
280
|
props: {
|
|
281
281
|
label: {
|
|
@@ -333,25 +333,25 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
333
333
|
disabled: __props.disabled,
|
|
334
334
|
onClick: handleClick
|
|
335
335
|
}, [
|
|
336
|
-
__props.icon && __props.iconPosition === unref(IconPosition).LEFT ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
336
|
+
__props.icon && __props.iconPosition === unref(IconPosition).LEFT ? (openBlock(), createElementBlock("span", _hoisted_2$e, [
|
|
337
337
|
createVNode(HpIcon, {
|
|
338
338
|
name: __props.icon,
|
|
339
339
|
size: "sm"
|
|
340
340
|
}, null, 8, ["name"])
|
|
341
341
|
])) : createCommentVNode("", true),
|
|
342
|
-
createElementVNode("span", _hoisted_3$
|
|
343
|
-
__props.icon && __props.iconPosition === unref(IconPosition).RIGHT ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
342
|
+
createElementVNode("span", _hoisted_3$c, toDisplayString(__props.label), 1),
|
|
343
|
+
__props.icon && __props.iconPosition === unref(IconPosition).RIGHT ? (openBlock(), createElementBlock("span", _hoisted_4$8, [
|
|
344
344
|
createVNode(HpIcon, {
|
|
345
345
|
name: __props.icon,
|
|
346
346
|
size: "sm"
|
|
347
347
|
}, null, 8, ["name"])
|
|
348
348
|
])) : createCommentVNode("", true)
|
|
349
|
-
], 14, _hoisted_1$
|
|
349
|
+
], 14, _hoisted_1$f);
|
|
350
350
|
};
|
|
351
351
|
}
|
|
352
352
|
});
|
|
353
353
|
|
|
354
|
-
const ButtonTertiary = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
354
|
+
const ButtonTertiary = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-0401b00e"]]);
|
|
355
355
|
|
|
356
356
|
var ButtonIconSize = /* @__PURE__ */ ((ButtonIconSize2) => {
|
|
357
357
|
ButtonIconSize2["SMALL"] = "sm";
|
|
@@ -378,8 +378,8 @@ const convertHexToRgb = (color) => {
|
|
|
378
378
|
return "";
|
|
379
379
|
};
|
|
380
380
|
|
|
381
|
-
const _hoisted_1$
|
|
382
|
-
const _sfc_main$
|
|
381
|
+
const _hoisted_1$e = ["aria-label", "tabindex", "aria-disabled", "disabled"];
|
|
382
|
+
const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
383
383
|
__name: "ButtonIcon",
|
|
384
384
|
props: {
|
|
385
385
|
label: {
|
|
@@ -461,7 +461,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
461
461
|
name: __props.icon,
|
|
462
462
|
size: __props.size,
|
|
463
463
|
color: computedIconColor.value
|
|
464
|
-
}, null, 8, ["name", "size", "color"])) : (openBlock(), createBlock(unref(_sfc_main$
|
|
464
|
+
}, null, 8, ["name", "size", "color"])) : (openBlock(), createBlock(unref(_sfc_main$c), {
|
|
465
465
|
key: 1,
|
|
466
466
|
type: "circle1",
|
|
467
467
|
color: computedIconColor.value || "#000",
|
|
@@ -469,12 +469,12 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
469
469
|
size: __props.size,
|
|
470
470
|
speed: 0.8
|
|
471
471
|
}, null, 8, ["color", "secondaryColor", "size"]))
|
|
472
|
-
], 14, _hoisted_1$
|
|
472
|
+
], 14, _hoisted_1$e);
|
|
473
473
|
};
|
|
474
474
|
}
|
|
475
475
|
});
|
|
476
476
|
|
|
477
|
-
const HpButtonIcon = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
477
|
+
const HpButtonIcon = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-8cf8a123"]]);
|
|
478
478
|
|
|
479
479
|
var ButtonLetterSize = /* @__PURE__ */ ((ButtonLetterSize2) => {
|
|
480
480
|
ButtonLetterSize2["SMALL"] = "sm";
|
|
@@ -483,9 +483,9 @@ var ButtonLetterSize = /* @__PURE__ */ ((ButtonLetterSize2) => {
|
|
|
483
483
|
return ButtonLetterSize2;
|
|
484
484
|
})(ButtonLetterSize || {});
|
|
485
485
|
|
|
486
|
-
const _hoisted_1$
|
|
487
|
-
const _hoisted_2$
|
|
488
|
-
const _sfc_main$
|
|
486
|
+
const _hoisted_1$d = ["aria-label", "aria-disabled", "disabled", "tabindex"];
|
|
487
|
+
const _hoisted_2$d = { key: 0 };
|
|
488
|
+
const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
489
489
|
__name: "ButtonLetter",
|
|
490
490
|
props: {
|
|
491
491
|
label: {
|
|
@@ -568,7 +568,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
568
568
|
color: computedLetterColor.value
|
|
569
569
|
})
|
|
570
570
|
}, [
|
|
571
|
-
!__props.isLoading ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
571
|
+
!__props.isLoading ? (openBlock(), createElementBlock("span", _hoisted_2$d, toDisplayString(__props.letter), 1)) : (openBlock(), createBlock(unref(_sfc_main$c), {
|
|
572
572
|
key: 1,
|
|
573
573
|
type: "circle1",
|
|
574
574
|
color: computedLetterColor.value || "var(--color-primary)",
|
|
@@ -576,12 +576,12 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
576
576
|
size: __props.size,
|
|
577
577
|
speed: 0.8
|
|
578
578
|
}, null, 8, ["color", "secondaryColor", "size"]))
|
|
579
|
-
], 14, _hoisted_1$
|
|
579
|
+
], 14, _hoisted_1$d);
|
|
580
580
|
};
|
|
581
581
|
}
|
|
582
582
|
});
|
|
583
583
|
|
|
584
|
-
const ButtonLetter = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
584
|
+
const ButtonLetter = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-13b75270"]]);
|
|
585
585
|
|
|
586
586
|
var AlertType = /* @__PURE__ */ ((AlertType2) => {
|
|
587
587
|
AlertType2["WARNING"] = "warning";
|
|
@@ -591,9 +591,9 @@ var AlertType = /* @__PURE__ */ ((AlertType2) => {
|
|
|
591
591
|
return AlertType2;
|
|
592
592
|
})(AlertType || {});
|
|
593
593
|
|
|
594
|
-
const _hoisted_1$
|
|
595
|
-
const _hoisted_2$
|
|
596
|
-
const _sfc_main$
|
|
594
|
+
const _hoisted_1$c = { class: "alert" };
|
|
595
|
+
const _hoisted_2$c = { class: "alert__container__message" };
|
|
596
|
+
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
597
597
|
__name: "Alert",
|
|
598
598
|
props: {
|
|
599
599
|
message: {
|
|
@@ -656,7 +656,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
656
656
|
return props.type;
|
|
657
657
|
});
|
|
658
658
|
return (_ctx, _cache) => {
|
|
659
|
-
return openBlock(), createElementBlock("section", _hoisted_1$
|
|
659
|
+
return openBlock(), createElementBlock("section", _hoisted_1$c, [
|
|
660
660
|
createElementVNode("div", {
|
|
661
661
|
class: "alert__container",
|
|
662
662
|
style: normalizeStyle({
|
|
@@ -664,7 +664,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
664
664
|
"--color": computedColorType.value
|
|
665
665
|
})
|
|
666
666
|
}, [
|
|
667
|
-
createElementVNode("p", _hoisted_2$
|
|
667
|
+
createElementVNode("p", _hoisted_2$c, toDisplayString(__props.message), 1),
|
|
668
668
|
createVNode(unref(HpButtonIcon), {
|
|
669
669
|
class: "alert__container__icon",
|
|
670
670
|
label: "Fechar modal",
|
|
@@ -680,18 +680,18 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
680
680
|
}
|
|
681
681
|
});
|
|
682
682
|
|
|
683
|
-
const Alert = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
683
|
+
const Alert = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-10dcca72"]]);
|
|
684
684
|
|
|
685
|
-
const _hoisted_1$
|
|
685
|
+
const _hoisted_1$b = {
|
|
686
686
|
key: 0,
|
|
687
687
|
class: "card__header"
|
|
688
688
|
};
|
|
689
|
-
const _hoisted_2$
|
|
690
|
-
const _hoisted_3$
|
|
689
|
+
const _hoisted_2$b = { class: "card__body" };
|
|
690
|
+
const _hoisted_3$b = {
|
|
691
691
|
key: 1,
|
|
692
692
|
class: "card__footer"
|
|
693
693
|
};
|
|
694
|
-
const _sfc_main$
|
|
694
|
+
const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
695
695
|
__name: "Card",
|
|
696
696
|
props: {
|
|
697
697
|
title: { type: String, default: "" },
|
|
@@ -713,10 +713,10 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
713
713
|
"aria-labelledby": titleId,
|
|
714
714
|
"aria-describedby": descriptionId
|
|
715
715
|
}, [
|
|
716
|
-
_ctx.$slots.header ? (openBlock(), createElementBlock("header", _hoisted_1$
|
|
716
|
+
_ctx.$slots.header ? (openBlock(), createElementBlock("header", _hoisted_1$b, [
|
|
717
717
|
renderSlot(_ctx.$slots, "header", {}, void 0, true)
|
|
718
718
|
])) : createCommentVNode("", true),
|
|
719
|
-
createElementVNode("div", _hoisted_2$
|
|
719
|
+
createElementVNode("div", _hoisted_2$b, [
|
|
720
720
|
__props.title ? (openBlock(), createElementBlock("h3", {
|
|
721
721
|
key: 0,
|
|
722
722
|
id: titleId,
|
|
@@ -729,7 +729,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
729
729
|
}, toDisplayString(__props.description), 1)) : createCommentVNode("", true),
|
|
730
730
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
731
731
|
]),
|
|
732
|
-
_ctx.$slots.footer ? (openBlock(), createElementBlock("footer", _hoisted_3$
|
|
732
|
+
_ctx.$slots.footer ? (openBlock(), createElementBlock("footer", _hoisted_3$b, [
|
|
733
733
|
renderSlot(_ctx.$slots, "footer", {}, void 0, true)
|
|
734
734
|
])) : createCommentVNode("", true)
|
|
735
735
|
], 2);
|
|
@@ -737,7 +737,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
737
737
|
}
|
|
738
738
|
});
|
|
739
739
|
|
|
740
|
-
const Card = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
740
|
+
const Card = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-2b489100"]]);
|
|
741
741
|
|
|
742
742
|
var SpinnerLoaderSize = /* @__PURE__ */ ((SpinnerLoaderSize2) => {
|
|
743
743
|
SpinnerLoaderSize2["SMALL"] = "sm";
|
|
@@ -746,23 +746,23 @@ var SpinnerLoaderSize = /* @__PURE__ */ ((SpinnerLoaderSize2) => {
|
|
|
746
746
|
return SpinnerLoaderSize2;
|
|
747
747
|
})(SpinnerLoaderSize || {});
|
|
748
748
|
|
|
749
|
-
const _hoisted_1$
|
|
749
|
+
const _hoisted_1$a = {
|
|
750
750
|
key: 0,
|
|
751
751
|
class: "spinner-circle-1"
|
|
752
752
|
};
|
|
753
|
-
const _hoisted_2$
|
|
753
|
+
const _hoisted_2$a = {
|
|
754
754
|
key: 1,
|
|
755
755
|
class: "spinner-circle-2"
|
|
756
756
|
};
|
|
757
|
-
const _hoisted_3$
|
|
757
|
+
const _hoisted_3$a = {
|
|
758
758
|
key: 2,
|
|
759
759
|
class: "spinner-circle-3"
|
|
760
760
|
};
|
|
761
|
-
const _hoisted_4$
|
|
761
|
+
const _hoisted_4$7 = {
|
|
762
762
|
key: 3,
|
|
763
763
|
class: "spinner-circle-4"
|
|
764
764
|
};
|
|
765
|
-
const _hoisted_5$
|
|
765
|
+
const _hoisted_5$7 = {
|
|
766
766
|
key: 4,
|
|
767
767
|
class: "spinner-dot-1"
|
|
768
768
|
};
|
|
@@ -810,7 +810,7 @@ const _hoisted_16$1 = {
|
|
|
810
810
|
key: 15,
|
|
811
811
|
class: "spinner-search"
|
|
812
812
|
};
|
|
813
|
-
const _sfc_main$
|
|
813
|
+
const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
814
814
|
__name: "SpinnerLoader",
|
|
815
815
|
props: {
|
|
816
816
|
type: {
|
|
@@ -860,11 +860,11 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
860
860
|
class: normalizeClass(["spinner-loader", `spinner-${__props.type}`]),
|
|
861
861
|
style: normalizeStyle(spinnerStyles.value)
|
|
862
862
|
}, [
|
|
863
|
-
__props.type === "circle1" ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
864
|
-
__props.type === "circle2" ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
865
|
-
__props.type === "circle3" ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
866
|
-
__props.type === "circle4" ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
867
|
-
__props.type === "dot1" ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
863
|
+
__props.type === "circle1" ? (openBlock(), createElementBlock("div", _hoisted_1$a)) : createCommentVNode("", true),
|
|
864
|
+
__props.type === "circle2" ? (openBlock(), createElementBlock("div", _hoisted_2$a)) : createCommentVNode("", true),
|
|
865
|
+
__props.type === "circle3" ? (openBlock(), createElementBlock("div", _hoisted_3$a)) : createCommentVNode("", true),
|
|
866
|
+
__props.type === "circle4" ? (openBlock(), createElementBlock("div", _hoisted_4$7)) : createCommentVNode("", true),
|
|
867
|
+
__props.type === "dot1" ? (openBlock(), createElementBlock("div", _hoisted_5$7, [
|
|
868
868
|
(openBlock(), createElementBlock(Fragment, null, renderList(3, (i) => {
|
|
869
869
|
return createElementVNode("div", {
|
|
870
870
|
key: `dot1-${i}`,
|
|
@@ -890,13 +890,13 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
890
890
|
}
|
|
891
891
|
});
|
|
892
892
|
|
|
893
|
-
const _hoisted_1$
|
|
894
|
-
const _hoisted_2$
|
|
895
|
-
const _hoisted_3$
|
|
893
|
+
const _hoisted_1$9 = ["for"];
|
|
894
|
+
const _hoisted_2$9 = ["id", "checked", "disabled"];
|
|
895
|
+
const _hoisted_3$9 = {
|
|
896
896
|
key: 0,
|
|
897
897
|
class: "checkbox__label"
|
|
898
898
|
};
|
|
899
|
-
const _sfc_main$
|
|
899
|
+
const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
900
900
|
__name: "Checkbox",
|
|
901
901
|
props: {
|
|
902
902
|
modelValue: {
|
|
@@ -982,7 +982,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
982
982
|
checked: isChecked.value,
|
|
983
983
|
disabled: __props.disabled,
|
|
984
984
|
onChange: handleChange
|
|
985
|
-
}, null, 40, _hoisted_2$
|
|
985
|
+
}, null, 40, _hoisted_2$9),
|
|
986
986
|
createElementVNode("span", {
|
|
987
987
|
class: normalizeClass(["checkbox__container", { "checkbox__container--rounded": __props.rounded }]),
|
|
988
988
|
style: normalizeStyle({ "--background-color": computedBackgroundColor.value })
|
|
@@ -1000,23 +1000,23 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
1000
1000
|
createElementVNode("polyline", { points: "1 5 4 8 11 1" }, null, -1)
|
|
1001
1001
|
]), 6)) : createCommentVNode("", true)
|
|
1002
1002
|
], 6),
|
|
1003
|
-
_ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
1003
|
+
_ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_3$9, [
|
|
1004
1004
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
1005
1005
|
])) : createCommentVNode("", true)
|
|
1006
|
-
], 14, _hoisted_1$
|
|
1006
|
+
], 14, _hoisted_1$9);
|
|
1007
1007
|
};
|
|
1008
1008
|
}
|
|
1009
1009
|
});
|
|
1010
1010
|
|
|
1011
|
-
const Checkbox = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1011
|
+
const Checkbox = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-29384d40"]]);
|
|
1012
1012
|
|
|
1013
|
-
const _hoisted_1$
|
|
1014
|
-
const _hoisted_2$
|
|
1015
|
-
const _hoisted_3$
|
|
1013
|
+
const _hoisted_1$8 = ["for"];
|
|
1014
|
+
const _hoisted_2$8 = ["id", "checked", "disabled", "value"];
|
|
1015
|
+
const _hoisted_3$8 = {
|
|
1016
1016
|
key: 0,
|
|
1017
1017
|
class: "radio__label"
|
|
1018
1018
|
};
|
|
1019
|
-
const _sfc_main$
|
|
1019
|
+
const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
1020
1020
|
__name: "RadioButton",
|
|
1021
1021
|
props: {
|
|
1022
1022
|
modelValue: {
|
|
@@ -1098,7 +1098,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
1098
1098
|
disabled: __props.disabled,
|
|
1099
1099
|
value: __props.value,
|
|
1100
1100
|
onChange: handleChange
|
|
1101
|
-
}, null, 40, _hoisted_2$
|
|
1101
|
+
}, null, 40, _hoisted_2$8),
|
|
1102
1102
|
createElementVNode("span", {
|
|
1103
1103
|
class: normalizeClass(["radio__container", { "radio__container--rounded": __props.rounded }])
|
|
1104
1104
|
}, [
|
|
@@ -1107,15 +1107,15 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
1107
1107
|
class: normalizeClass(["radio__dot", { "radio__dot--animated": __props.hasAnimation }])
|
|
1108
1108
|
}, null, 2)) : createCommentVNode("", true)
|
|
1109
1109
|
], 2),
|
|
1110
|
-
_ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
1110
|
+
_ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_3$8, [
|
|
1111
1111
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
1112
1112
|
])) : createCommentVNode("", true)
|
|
1113
|
-
], 14, _hoisted_1$
|
|
1113
|
+
], 14, _hoisted_1$8);
|
|
1114
1114
|
};
|
|
1115
1115
|
}
|
|
1116
1116
|
});
|
|
1117
1117
|
|
|
1118
|
-
const RadioButton = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1118
|
+
const RadioButton = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-50110fea"]]);
|
|
1119
1119
|
|
|
1120
1120
|
var TextSize = /* @__PURE__ */ ((TextSize2) => {
|
|
1121
1121
|
TextSize2["EXTRA_SMALL"] = "xs";
|
|
@@ -1136,7 +1136,7 @@ var HeadingLevel = /* @__PURE__ */ ((HeadingLevel2) => {
|
|
|
1136
1136
|
return HeadingLevel2;
|
|
1137
1137
|
})(HeadingLevel || {});
|
|
1138
1138
|
|
|
1139
|
-
const _sfc_main$
|
|
1139
|
+
const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
1140
1140
|
__name: "Text",
|
|
1141
1141
|
props: {
|
|
1142
1142
|
size: {
|
|
@@ -1167,9 +1167,9 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
1167
1167
|
}
|
|
1168
1168
|
});
|
|
1169
1169
|
|
|
1170
|
-
const Text = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1170
|
+
const Text = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-e52f8226"]]);
|
|
1171
1171
|
|
|
1172
|
-
const _sfc_main$
|
|
1172
|
+
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
1173
1173
|
__name: "Heading",
|
|
1174
1174
|
props: {
|
|
1175
1175
|
level: {
|
|
@@ -1207,20 +1207,20 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
1207
1207
|
}
|
|
1208
1208
|
});
|
|
1209
1209
|
|
|
1210
|
-
const Heading = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1210
|
+
const Heading = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-35210bc7"]]);
|
|
1211
1211
|
|
|
1212
|
-
const _hoisted_1$
|
|
1213
|
-
const _hoisted_2$
|
|
1214
|
-
const _hoisted_3$
|
|
1215
|
-
const _hoisted_4$
|
|
1212
|
+
const _hoisted_1$7 = { class: "modal__header" };
|
|
1213
|
+
const _hoisted_2$7 = { class: "modal__title" };
|
|
1214
|
+
const _hoisted_3$7 = { class: "modal__content" };
|
|
1215
|
+
const _hoisted_4$6 = {
|
|
1216
1216
|
key: 0,
|
|
1217
1217
|
class: "modal__footer"
|
|
1218
1218
|
};
|
|
1219
|
-
const _hoisted_5$
|
|
1219
|
+
const _hoisted_5$6 = {
|
|
1220
1220
|
key: 1,
|
|
1221
1221
|
class: "modal__footer"
|
|
1222
1222
|
};
|
|
1223
|
-
const _sfc_main$
|
|
1223
|
+
const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
1224
1224
|
__name: "Modal",
|
|
1225
1225
|
props: {
|
|
1226
1226
|
title: {
|
|
@@ -1299,7 +1299,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
1299
1299
|
createElementVNode("div", {
|
|
1300
1300
|
class: normalizeClass(["modal__container", [`modal__container--${__props.size}`]])
|
|
1301
1301
|
}, [
|
|
1302
|
-
createElementVNode("div", _hoisted_1$
|
|
1302
|
+
createElementVNode("div", _hoisted_1$7, [
|
|
1303
1303
|
__props.showBackButton ? (openBlock(), createBlock(unref(HpButtonIcon), {
|
|
1304
1304
|
key: 0,
|
|
1305
1305
|
class: "modal__back-button",
|
|
@@ -1308,7 +1308,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
1308
1308
|
label: "Botão de voltar",
|
|
1309
1309
|
onClick: handleBackClick
|
|
1310
1310
|
})) : createCommentVNode("", true),
|
|
1311
|
-
createElementVNode("h2", _hoisted_2$
|
|
1311
|
+
createElementVNode("h2", _hoisted_2$7, toDisplayString(__props.title), 1),
|
|
1312
1312
|
__props.showCloseButton ? (openBlock(), createBlock(unref(HpButtonIcon), {
|
|
1313
1313
|
key: 1,
|
|
1314
1314
|
class: "modal__close-button",
|
|
@@ -1318,10 +1318,10 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
1318
1318
|
onClick: handleCloseModal
|
|
1319
1319
|
})) : createCommentVNode("", true)
|
|
1320
1320
|
]),
|
|
1321
|
-
createElementVNode("div", _hoisted_3$
|
|
1321
|
+
createElementVNode("div", _hoisted_3$7, [
|
|
1322
1322
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
1323
1323
|
]),
|
|
1324
|
-
__props.hasPrimaryButton || __props.hasSecondaryButton ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
1324
|
+
__props.hasPrimaryButton || __props.hasSecondaryButton ? (openBlock(), createElementBlock("div", _hoisted_4$6, [
|
|
1325
1325
|
__props.hasSecondaryButton ? (openBlock(), createBlock(unref(HpButtonSecondary), {
|
|
1326
1326
|
key: 0,
|
|
1327
1327
|
label: __props.secondaryButtonLabel,
|
|
@@ -1335,7 +1335,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
1335
1335
|
onClick: handleSecondaryButtonClick
|
|
1336
1336
|
}, null, 8, ["label", "backgroundColor"])) : createCommentVNode("", true)
|
|
1337
1337
|
])) : createCommentVNode("", true),
|
|
1338
|
-
!__props.hasPrimaryButton && !__props.hasSecondaryButton && _ctx.$slots.buttons ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
1338
|
+
!__props.hasPrimaryButton && !__props.hasSecondaryButton && _ctx.$slots.buttons ? (openBlock(), createElementBlock("div", _hoisted_5$6, [
|
|
1339
1339
|
renderSlot(_ctx.$slots, "buttons", {}, void 0, true)
|
|
1340
1340
|
])) : createCommentVNode("", true)
|
|
1341
1341
|
], 2)
|
|
@@ -1347,15 +1347,15 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
1347
1347
|
}
|
|
1348
1348
|
});
|
|
1349
1349
|
|
|
1350
|
-
const Modal = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1350
|
+
const Modal = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-cdf63c2b"]]);
|
|
1351
1351
|
|
|
1352
|
-
const _hoisted_1$
|
|
1353
|
-
const _hoisted_2$
|
|
1354
|
-
const _hoisted_3$
|
|
1352
|
+
const _hoisted_1$6 = ["id", "checked", "disabled", "aria-checked", "aria-labelledby"];
|
|
1353
|
+
const _hoisted_2$6 = ["for", "id", "tabindex", "onKeydown"];
|
|
1354
|
+
const _hoisted_3$6 = {
|
|
1355
1355
|
key: 0,
|
|
1356
1356
|
class: "toggle-switch__text"
|
|
1357
1357
|
};
|
|
1358
|
-
const _sfc_main$
|
|
1358
|
+
const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
1359
1359
|
__name: "ToggleSwitch",
|
|
1360
1360
|
props: {
|
|
1361
1361
|
modelValue: {
|
|
@@ -1420,7 +1420,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
1420
1420
|
"aria-checked": __props.modelValue,
|
|
1421
1421
|
"aria-labelledby": `${__props.id}-label`,
|
|
1422
1422
|
tabindex: "-1"
|
|
1423
|
-
}, null, 40, _hoisted_1$
|
|
1423
|
+
}, null, 40, _hoisted_1$6),
|
|
1424
1424
|
createElementVNode("label", {
|
|
1425
1425
|
for: __props.id,
|
|
1426
1426
|
class: "toggle-switch__label",
|
|
@@ -1441,28 +1441,28 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
1441
1441
|
style: normalizeStyle({ "--thumb-color": computedThumbColor.value })
|
|
1442
1442
|
}, null, 4)
|
|
1443
1443
|
], 4),
|
|
1444
|
-
_ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
1444
|
+
_ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_3$6, [
|
|
1445
1445
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
1446
1446
|
])) : createCommentVNode("", true)
|
|
1447
|
-
], 44, _hoisted_2$
|
|
1447
|
+
], 44, _hoisted_2$6)
|
|
1448
1448
|
], 2);
|
|
1449
1449
|
};
|
|
1450
1450
|
}
|
|
1451
1451
|
});
|
|
1452
1452
|
|
|
1453
|
-
const ToggleSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1453
|
+
const ToggleSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-14c54b46"]]);
|
|
1454
1454
|
|
|
1455
|
-
const _hoisted_1$
|
|
1456
|
-
const _hoisted_2$
|
|
1457
|
-
const _hoisted_3$
|
|
1455
|
+
const _hoisted_1$5 = { key: 0 };
|
|
1456
|
+
const _hoisted_2$5 = ["aria-checked", "onKeydown"];
|
|
1457
|
+
const _hoisted_3$5 = {
|
|
1458
1458
|
key: 1,
|
|
1459
1459
|
class: "theme-switcher-animation"
|
|
1460
1460
|
};
|
|
1461
|
-
const _hoisted_4$
|
|
1462
|
-
const _hoisted_5$
|
|
1461
|
+
const _hoisted_4$5 = ["id", "aria-checked"];
|
|
1462
|
+
const _hoisted_5$5 = ["for", "onKeydown"];
|
|
1463
1463
|
|
|
1464
1464
|
|
|
1465
|
-
const _sfc_main$
|
|
1465
|
+
const _sfc_main$5 = {
|
|
1466
1466
|
__name: 'ThemeSwitcher',
|
|
1467
1467
|
props: {
|
|
1468
1468
|
modelValue: {
|
|
@@ -1574,7 +1574,7 @@ const computedDarkBackgroundColor = computed(
|
|
|
1574
1574
|
|
|
1575
1575
|
return (_ctx, _cache) => {
|
|
1576
1576
|
return (!__props.hasAnimation)
|
|
1577
|
-
? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
1577
|
+
? (openBlock(), createElementBlock("div", _hoisted_1$5, [
|
|
1578
1578
|
createElementVNode("button", {
|
|
1579
1579
|
class: "theme-switcher",
|
|
1580
1580
|
type: "button",
|
|
@@ -1597,9 +1597,9 @@ return (_ctx, _cache) => {
|
|
|
1597
1597
|
size: "sm",
|
|
1598
1598
|
color: computedButtonIconColor.value
|
|
1599
1599
|
}, null, 8, ["name", "color"])
|
|
1600
|
-
], 44, _hoisted_2$
|
|
1600
|
+
], 44, _hoisted_2$5)
|
|
1601
1601
|
]))
|
|
1602
|
-
: (openBlock(), createElementBlock("div", _hoisted_3$
|
|
1602
|
+
: (openBlock(), createElementBlock("div", _hoisted_3$5, [
|
|
1603
1603
|
withDirectives(createElementVNode("input", {
|
|
1604
1604
|
type: "checkbox",
|
|
1605
1605
|
id: __props.id,
|
|
@@ -1610,7 +1610,7 @@ return (_ctx, _cache) => {
|
|
|
1610
1610
|
"aria-checked": isDarkMode.value,
|
|
1611
1611
|
"aria-label": "Alternar entre tema claro e escuro",
|
|
1612
1612
|
tabindex: "-1"
|
|
1613
|
-
}, null, 40, _hoisted_4$
|
|
1613
|
+
}, null, 40, _hoisted_4$5), [
|
|
1614
1614
|
[vModelCheckbox, isDarkMode.value]
|
|
1615
1615
|
]),
|
|
1616
1616
|
createElementVNode("label", {
|
|
@@ -1629,22 +1629,22 @@ return (_ctx, _cache) => {
|
|
|
1629
1629
|
]
|
|
1630
1630
|
}, _cache[1] || (_cache[1] = [
|
|
1631
1631
|
createElementVNode("span", { class: "toggle--label-background" }, null, -1)
|
|
1632
|
-
]), 44, _hoisted_5$
|
|
1632
|
+
]), 44, _hoisted_5$5)
|
|
1633
1633
|
]))
|
|
1634
1634
|
}
|
|
1635
1635
|
}
|
|
1636
1636
|
|
|
1637
1637
|
};
|
|
1638
|
-
const ThemeSwitcher = /*#__PURE__*/_export_sfc(_sfc_main$
|
|
1638
|
+
const ThemeSwitcher = /*#__PURE__*/_export_sfc(_sfc_main$5, [['__scopeId',"data-v-7efca676"]]);
|
|
1639
1639
|
|
|
1640
|
-
const _hoisted_1$
|
|
1641
|
-
const _hoisted_2$
|
|
1640
|
+
const _hoisted_1$4 = { class: "input__fieldset" };
|
|
1641
|
+
const _hoisted_2$4 = {
|
|
1642
1642
|
style: {"display":"none"},
|
|
1643
1643
|
"aria-hidden": true
|
|
1644
1644
|
};
|
|
1645
|
-
const _hoisted_3$
|
|
1646
|
-
const _hoisted_4$
|
|
1647
|
-
const _hoisted_5$
|
|
1645
|
+
const _hoisted_3$4 = ["for"];
|
|
1646
|
+
const _hoisted_4$4 = { class: "input__wrapper" };
|
|
1647
|
+
const _hoisted_5$4 = ["id", "value", "readonly", "aria-readonly", "disabled", "placeholder", "required", "maxlength", "aria-labelledby", "aria-describedby", "aria-invalid"];
|
|
1648
1648
|
const _hoisted_6$3 = { class: "input__footer" };
|
|
1649
1649
|
const _hoisted_7$3 = ["id"];
|
|
1650
1650
|
const _hoisted_8$3 = {
|
|
@@ -1653,7 +1653,7 @@ const _hoisted_8$3 = {
|
|
|
1653
1653
|
};
|
|
1654
1654
|
|
|
1655
1655
|
|
|
1656
|
-
const _sfc_main$
|
|
1656
|
+
const _sfc_main$4 = {
|
|
1657
1657
|
__name: 'InputText',
|
|
1658
1658
|
props: {
|
|
1659
1659
|
modelValue: {
|
|
@@ -1780,16 +1780,16 @@ return (_ctx, _cache) => {
|
|
|
1780
1780
|
'--icon-padding-right': __props.trailingIcon ? '32px' : '0px'
|
|
1781
1781
|
})
|
|
1782
1782
|
}, [
|
|
1783
|
-
createElementVNode("fieldset", _hoisted_1$
|
|
1784
|
-
createElementVNode("legend", _hoisted_2$
|
|
1783
|
+
createElementVNode("fieldset", _hoisted_1$4, [
|
|
1784
|
+
createElementVNode("legend", _hoisted_2$4, toDisplayString(__props.label), 1),
|
|
1785
1785
|
(isFocused.value || __props.modelValue !== '' || __props.placeholder !== '')
|
|
1786
1786
|
? (openBlock(), createElementBlock("label", {
|
|
1787
1787
|
key: 0,
|
|
1788
1788
|
for: __props.id,
|
|
1789
1789
|
class: normalizeClass(["input__label", { 'input__label--required': __props.required }])
|
|
1790
|
-
}, toDisplayString(__props.label), 11, _hoisted_3$
|
|
1790
|
+
}, toDisplayString(__props.label), 11, _hoisted_3$4))
|
|
1791
1791
|
: createCommentVNode("", true),
|
|
1792
|
-
createElementVNode("div", _hoisted_4$
|
|
1792
|
+
createElementVNode("div", _hoisted_4$4, [
|
|
1793
1793
|
(__props.leadingIcon)
|
|
1794
1794
|
? (openBlock(), createBlock(unref(HpIcon), {
|
|
1795
1795
|
key: 0,
|
|
@@ -1818,7 +1818,7 @@ return (_ctx, _cache) => {
|
|
|
1818
1818
|
"aria-labelledby": `${__props.id}-label`,
|
|
1819
1819
|
"aria-describedby": __props.helperText ? `${__props.id}-helper-text` : undefined,
|
|
1820
1820
|
"aria-invalid": __props.status === 'error'
|
|
1821
|
-
}, null, 40, _hoisted_5$
|
|
1821
|
+
}, null, 40, _hoisted_5$4),
|
|
1822
1822
|
(__props.iconHasAction && __props.trailingIcon)
|
|
1823
1823
|
? (openBlock(), createBlock(unref(HpButtonIcon), {
|
|
1824
1824
|
key: 1,
|
|
@@ -1859,16 +1859,16 @@ return (_ctx, _cache) => {
|
|
|
1859
1859
|
}
|
|
1860
1860
|
|
|
1861
1861
|
};
|
|
1862
|
-
const InputText = /*#__PURE__*/_export_sfc(_sfc_main$
|
|
1862
|
+
const InputText = /*#__PURE__*/_export_sfc(_sfc_main$4, [['__scopeId',"data-v-6450d99a"]]);
|
|
1863
1863
|
|
|
1864
|
-
const _hoisted_1$
|
|
1865
|
-
const _hoisted_2$
|
|
1864
|
+
const _hoisted_1$3 = { class: "input__fieldset" };
|
|
1865
|
+
const _hoisted_2$3 = {
|
|
1866
1866
|
style: {"display":"none"},
|
|
1867
1867
|
"aria-hidden": true
|
|
1868
1868
|
};
|
|
1869
|
-
const _hoisted_3$
|
|
1870
|
-
const _hoisted_4$
|
|
1871
|
-
const _hoisted_5$
|
|
1869
|
+
const _hoisted_3$3 = ["for"];
|
|
1870
|
+
const _hoisted_4$3 = { class: "input__wrapper" };
|
|
1871
|
+
const _hoisted_5$3 = ["id", "value", "readonly", "aria-readonly", "disabled", "placeholder", "required", "min", "max", "aria-labelledby", "aria-describedby", "aria-invalid"];
|
|
1872
1872
|
const _hoisted_6$2 = { class: "input__buttons-container" };
|
|
1873
1873
|
const _hoisted_7$2 = ["disabled", "aria-label"];
|
|
1874
1874
|
const _hoisted_8$2 = ["disabled", "aria-label"];
|
|
@@ -1876,7 +1876,7 @@ const _hoisted_9$2 = { class: "input__footer" };
|
|
|
1876
1876
|
const _hoisted_10$2 = ["id"];
|
|
1877
1877
|
|
|
1878
1878
|
|
|
1879
|
-
const _sfc_main$
|
|
1879
|
+
const _sfc_main$3 = {
|
|
1880
1880
|
__name: 'InputNumber',
|
|
1881
1881
|
props: {
|
|
1882
1882
|
modelValue: {
|
|
@@ -2042,16 +2042,16 @@ return (_ctx, _cache) => {
|
|
|
2042
2042
|
'--icon-padding-left': __props.leadingIcon ? '24px' : '0px'
|
|
2043
2043
|
})
|
|
2044
2044
|
}, [
|
|
2045
|
-
createElementVNode("fieldset", _hoisted_1$
|
|
2046
|
-
createElementVNode("legend", _hoisted_2$
|
|
2045
|
+
createElementVNode("fieldset", _hoisted_1$3, [
|
|
2046
|
+
createElementVNode("legend", _hoisted_2$3, toDisplayString(__props.label), 1),
|
|
2047
2047
|
(isFocused.value || modelValueFormatted.value !== null || __props.placeholder !== '')
|
|
2048
2048
|
? (openBlock(), createElementBlock("label", {
|
|
2049
2049
|
key: 0,
|
|
2050
2050
|
for: __props.id,
|
|
2051
2051
|
class: normalizeClass(["input__label", { 'input__label--required': __props.required }])
|
|
2052
|
-
}, toDisplayString(__props.label), 11, _hoisted_3$
|
|
2052
|
+
}, toDisplayString(__props.label), 11, _hoisted_3$3))
|
|
2053
2053
|
: createCommentVNode("", true),
|
|
2054
|
-
createElementVNode("div", _hoisted_4$
|
|
2054
|
+
createElementVNode("div", _hoisted_4$3, [
|
|
2055
2055
|
(__props.leadingIcon)
|
|
2056
2056
|
? (openBlock(), createBlock(unref(HpIcon), {
|
|
2057
2057
|
key: 0,
|
|
@@ -2082,7 +2082,7 @@ return (_ctx, _cache) => {
|
|
|
2082
2082
|
"aria-labelledby": `${__props.id}-label`,
|
|
2083
2083
|
"aria-describedby": __props.helperText ? `${__props.id}-helper-text` : undefined,
|
|
2084
2084
|
"aria-invalid": __props.status === 'error'
|
|
2085
|
-
}, null, 40, _hoisted_5$
|
|
2085
|
+
}, null, 40, _hoisted_5$3),
|
|
2086
2086
|
createElementVNode("div", _hoisted_6$2, [
|
|
2087
2087
|
createElementVNode("button", {
|
|
2088
2088
|
type: "button",
|
|
@@ -2128,19 +2128,19 @@ return (_ctx, _cache) => {
|
|
|
2128
2128
|
}
|
|
2129
2129
|
|
|
2130
2130
|
};
|
|
2131
|
-
const InputNumber = /*#__PURE__*/_export_sfc(_sfc_main$
|
|
2131
|
+
const InputNumber = /*#__PURE__*/_export_sfc(_sfc_main$3, [['__scopeId',"data-v-7f20743b"]]);
|
|
2132
2132
|
|
|
2133
|
-
const _hoisted_1$
|
|
2134
|
-
const _hoisted_2$
|
|
2133
|
+
const _hoisted_1$2 = { class: "input__fieldset" };
|
|
2134
|
+
const _hoisted_2$2 = {
|
|
2135
2135
|
style: {"display":"none"},
|
|
2136
2136
|
"aria-hidden": true
|
|
2137
2137
|
};
|
|
2138
|
-
const _hoisted_3$
|
|
2139
|
-
const _hoisted_4$
|
|
2138
|
+
const _hoisted_3$2 = ["for", "id"];
|
|
2139
|
+
const _hoisted_4$2 = {
|
|
2140
2140
|
key: 0,
|
|
2141
2141
|
class: "required-asterisk"
|
|
2142
2142
|
};
|
|
2143
|
-
const _hoisted_5$
|
|
2143
|
+
const _hoisted_5$2 = { class: "input__wrapper" };
|
|
2144
2144
|
const _hoisted_6$1 = {
|
|
2145
2145
|
key: 0,
|
|
2146
2146
|
class: "autocomplete-wrapper"
|
|
@@ -2168,7 +2168,7 @@ const _hoisted_20 = {
|
|
|
2168
2168
|
};
|
|
2169
2169
|
|
|
2170
2170
|
|
|
2171
|
-
const _sfc_main$
|
|
2171
|
+
const _sfc_main$2 = {
|
|
2172
2172
|
__name: 'InputSelect',
|
|
2173
2173
|
props: {
|
|
2174
2174
|
modelValue: {
|
|
@@ -2452,8 +2452,8 @@ return (_ctx, _cache) => {
|
|
|
2452
2452
|
ref_key: "select",
|
|
2453
2453
|
ref: select
|
|
2454
2454
|
}, [
|
|
2455
|
-
createElementVNode("fieldset", _hoisted_1$
|
|
2456
|
-
createElementVNode("legend", _hoisted_2$
|
|
2455
|
+
createElementVNode("fieldset", _hoisted_1$2, [
|
|
2456
|
+
createElementVNode("legend", _hoisted_2$2, toDisplayString(__props.label), 1),
|
|
2457
2457
|
(__props.modelValue !== null || __props.placeholder !== '')
|
|
2458
2458
|
? (openBlock(), createElementBlock("label", {
|
|
2459
2459
|
key: 0,
|
|
@@ -2463,11 +2463,11 @@ return (_ctx, _cache) => {
|
|
|
2463
2463
|
}, [
|
|
2464
2464
|
createTextVNode(toDisplayString(__props.label) + " ", 1),
|
|
2465
2465
|
(__props.required)
|
|
2466
|
-
? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
2466
|
+
? (openBlock(), createElementBlock("span", _hoisted_4$2, "*"))
|
|
2467
2467
|
: createCommentVNode("", true)
|
|
2468
|
-
], 10, _hoisted_3$
|
|
2468
|
+
], 10, _hoisted_3$2))
|
|
2469
2469
|
: createCommentVNode("", true),
|
|
2470
|
-
createElementVNode("div", _hoisted_5$
|
|
2470
|
+
createElementVNode("div", _hoisted_5$2, [
|
|
2471
2471
|
(__props.autocomplete)
|
|
2472
2472
|
? (openBlock(), createElementBlock("div", _hoisted_6$1, [
|
|
2473
2473
|
withDirectives(createElementVNode("input", {
|
|
@@ -2655,19 +2655,19 @@ return (_ctx, _cache) => {
|
|
|
2655
2655
|
}
|
|
2656
2656
|
|
|
2657
2657
|
};
|
|
2658
|
-
const InputSelect = /*#__PURE__*/_export_sfc(_sfc_main$
|
|
2658
|
+
const InputSelect = /*#__PURE__*/_export_sfc(_sfc_main$2, [['__scopeId',"data-v-00cdf827"]]);
|
|
2659
2659
|
|
|
2660
|
-
const _hoisted_1 = { class: "input-range__fieldset" };
|
|
2661
|
-
const _hoisted_2 = {
|
|
2660
|
+
const _hoisted_1$1 = { class: "input-range__fieldset" };
|
|
2661
|
+
const _hoisted_2$1 = {
|
|
2662
2662
|
key: 0,
|
|
2663
2663
|
class: "input-range__legend"
|
|
2664
2664
|
};
|
|
2665
|
-
const _hoisted_3 = {
|
|
2665
|
+
const _hoisted_3$1 = {
|
|
2666
2666
|
key: 0,
|
|
2667
2667
|
class: "input-range__required"
|
|
2668
2668
|
};
|
|
2669
|
-
const _hoisted_4 = { class: "input-range__wrapper" };
|
|
2670
|
-
const _hoisted_5 = ["id", "min", "max", "step", "value", "disabled", "aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-labelledby", "aria-describedby"];
|
|
2669
|
+
const _hoisted_4$1 = { class: "input-range__wrapper" };
|
|
2670
|
+
const _hoisted_5$1 = ["id", "min", "max", "step", "value", "disabled", "aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-labelledby", "aria-describedby"];
|
|
2671
2671
|
const _hoisted_6 = { class: "input-range__value-display" };
|
|
2672
2672
|
const _hoisted_7 = { class: "input-range__value" };
|
|
2673
2673
|
const _hoisted_8 = {
|
|
@@ -2681,7 +2681,7 @@ const _hoisted_9 = {
|
|
|
2681
2681
|
const _hoisted_10 = ["id"];
|
|
2682
2682
|
|
|
2683
2683
|
|
|
2684
|
-
const _sfc_main = {
|
|
2684
|
+
const _sfc_main$1 = {
|
|
2685
2685
|
__name: 'InputRange',
|
|
2686
2686
|
props: {
|
|
2687
2687
|
modelValue: {
|
|
@@ -2764,16 +2764,16 @@ return (_ctx, _cache) => {
|
|
|
2764
2764
|
[`input-range--${__props.status}`]: __props.status !== 'default'
|
|
2765
2765
|
}])
|
|
2766
2766
|
}, [
|
|
2767
|
-
createElementVNode("fieldset", _hoisted_1, [
|
|
2767
|
+
createElementVNode("fieldset", _hoisted_1$1, [
|
|
2768
2768
|
(__props.label)
|
|
2769
|
-
? (openBlock(), createElementBlock("legend", _hoisted_2, [
|
|
2769
|
+
? (openBlock(), createElementBlock("legend", _hoisted_2$1, [
|
|
2770
2770
|
createTextVNode(toDisplayString(__props.label) + " ", 1),
|
|
2771
2771
|
(__props.required)
|
|
2772
|
-
? (openBlock(), createElementBlock("span", _hoisted_3, "*"))
|
|
2772
|
+
? (openBlock(), createElementBlock("span", _hoisted_3$1, "*"))
|
|
2773
2773
|
: createCommentVNode("", true)
|
|
2774
2774
|
]))
|
|
2775
2775
|
: createCommentVNode("", true),
|
|
2776
|
-
createElementVNode("div", _hoisted_4, [
|
|
2776
|
+
createElementVNode("div", _hoisted_4$1, [
|
|
2777
2777
|
createElementVNode("input", {
|
|
2778
2778
|
id: __props.id,
|
|
2779
2779
|
ref_key: "input",
|
|
@@ -2792,7 +2792,7 @@ return (_ctx, _cache) => {
|
|
|
2792
2792
|
"aria-valuenow": __props.modelValue,
|
|
2793
2793
|
"aria-labelledby": `${__props.id}-label`,
|
|
2794
2794
|
"aria-describedby": __props.helperText ? `${__props.id}-helper` : undefined
|
|
2795
|
-
}, null, 40, _hoisted_5),
|
|
2795
|
+
}, null, 40, _hoisted_5$1),
|
|
2796
2796
|
createElementVNode("div", _hoisted_6, [
|
|
2797
2797
|
createElementVNode("span", _hoisted_7, toDisplayString(__props.modelValue), 1),
|
|
2798
2798
|
(__props.unit)
|
|
@@ -2814,7 +2814,82 @@ return (_ctx, _cache) => {
|
|
|
2814
2814
|
}
|
|
2815
2815
|
|
|
2816
2816
|
};
|
|
2817
|
-
const InputRange = /*#__PURE__*/_export_sfc(_sfc_main, [['__scopeId',"data-v-32e54a28"]]);
|
|
2817
|
+
const InputRange = /*#__PURE__*/_export_sfc(_sfc_main$1, [['__scopeId',"data-v-32e54a28"]]);
|
|
2818
|
+
|
|
2819
|
+
const _hoisted_1 = { class: "progress-bar" };
|
|
2820
|
+
const _hoisted_2 = {
|
|
2821
|
+
key: 0,
|
|
2822
|
+
class: "progress-bar__header"
|
|
2823
|
+
};
|
|
2824
|
+
const _hoisted_3 = { class: "progress-bar__value" };
|
|
2825
|
+
const _hoisted_4 = { class: "progress-bar__wrapper" };
|
|
2826
|
+
const _hoisted_5 = ["value", "max", "aria-labelledby"];
|
|
2827
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
2828
|
+
...{
|
|
2829
|
+
name: "ProgressBar"
|
|
2830
|
+
},
|
|
2831
|
+
__name: "ProgressBar",
|
|
2832
|
+
props: {
|
|
2833
|
+
label: {
|
|
2834
|
+
type: String,
|
|
2835
|
+
default: ""
|
|
2836
|
+
},
|
|
2837
|
+
value: {
|
|
2838
|
+
type: Number,
|
|
2839
|
+
required: true
|
|
2840
|
+
},
|
|
2841
|
+
max: {
|
|
2842
|
+
type: Number,
|
|
2843
|
+
default: 100
|
|
2844
|
+
},
|
|
2845
|
+
hasLabel: {
|
|
2846
|
+
type: Boolean,
|
|
2847
|
+
default: false
|
|
2848
|
+
},
|
|
2849
|
+
backgroundColor: {
|
|
2850
|
+
type: String,
|
|
2851
|
+
default: ""
|
|
2852
|
+
},
|
|
2853
|
+
barColor: {
|
|
2854
|
+
type: String,
|
|
2855
|
+
default: ""
|
|
2856
|
+
}
|
|
2857
|
+
},
|
|
2858
|
+
setup(__props) {
|
|
2859
|
+
const props = __props;
|
|
2860
|
+
const labelId = `progress-bar-label-${Math.random().toString(36).slice(2)}`;
|
|
2861
|
+
const normalizedValue = computed(() => {
|
|
2862
|
+
const percent = props.value / props.max * 100;
|
|
2863
|
+
return Math.min(100, Math.max(0, Math.round(percent)));
|
|
2864
|
+
});
|
|
2865
|
+
const trackStyle = computed(() => ({
|
|
2866
|
+
"--track-color": props.backgroundColor || "var(--color-border, #e5e7eb)",
|
|
2867
|
+
"--bar-color": props.barColor || "var(--color-danger, #b91c1c)"
|
|
2868
|
+
}));
|
|
2869
|
+
return (_ctx, _cache) => {
|
|
2870
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
2871
|
+
__props.hasLabel ? (openBlock(), createElementBlock("div", _hoisted_2, [
|
|
2872
|
+
createElementVNode("span", {
|
|
2873
|
+
class: "progress-bar__label",
|
|
2874
|
+
id: labelId
|
|
2875
|
+
}, toDisplayString(__props.label), 1),
|
|
2876
|
+
createElementVNode("span", _hoisted_3, toDisplayString(normalizedValue.value) + "% ", 1)
|
|
2877
|
+
])) : createCommentVNode("", true),
|
|
2878
|
+
createElementVNode("div", _hoisted_4, [
|
|
2879
|
+
createElementVNode("progress", {
|
|
2880
|
+
class: "progress-bar__track",
|
|
2881
|
+
value: __props.value,
|
|
2882
|
+
max: __props.max,
|
|
2883
|
+
"aria-labelledby": __props.label ? labelId : void 0,
|
|
2884
|
+
style: normalizeStyle(trackStyle.value)
|
|
2885
|
+
}, null, 12, _hoisted_5)
|
|
2886
|
+
])
|
|
2887
|
+
]);
|
|
2888
|
+
};
|
|
2889
|
+
}
|
|
2890
|
+
});
|
|
2891
|
+
|
|
2892
|
+
const ProgressBar = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-a3ba3e49"]]);
|
|
2818
2893
|
|
|
2819
2894
|
const components = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
2820
2895
|
__proto__: null,
|
|
@@ -2833,8 +2908,9 @@ const components = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty
|
|
|
2833
2908
|
HpInputSelect: InputSelect,
|
|
2834
2909
|
HpInputText: InputText,
|
|
2835
2910
|
HpModal: Modal,
|
|
2911
|
+
HpProgressBar: ProgressBar,
|
|
2836
2912
|
HpRadioButton: RadioButton,
|
|
2837
|
-
HpSpinnerLoader: _sfc_main$
|
|
2913
|
+
HpSpinnerLoader: _sfc_main$c,
|
|
2838
2914
|
HpText: Text,
|
|
2839
2915
|
HpThemeSwitcher: ThemeSwitcher,
|
|
2840
2916
|
HpToggleSwitch: ToggleSwitch
|
|
@@ -2875,5 +2951,5 @@ const index = {
|
|
|
2875
2951
|
...components
|
|
2876
2952
|
};
|
|
2877
2953
|
|
|
2878
|
-
export { Alert as HpAlert, HpButtonIcon, ButtonLetter as HpButtonLetter, HpButtonPrimary, HpButtonSecondary, ButtonTertiary as HpButtonTertiary, Card as HpCard, Checkbox as HpCheckbox, Heading as HpHeading, HpIcon, InputNumber as HpInputNumber, InputRange as HpInputRange, InputSelect as HpInputSelect, InputText as HpInputText, Modal as HpModal, RadioButton as HpRadioButton, _sfc_main$
|
|
2954
|
+
export { Alert as HpAlert, HpButtonIcon, ButtonLetter as HpButtonLetter, HpButtonPrimary, HpButtonSecondary, ButtonTertiary as HpButtonTertiary, Card as HpCard, Checkbox as HpCheckbox, Heading as HpHeading, HpIcon, InputNumber as HpInputNumber, InputRange as HpInputRange, InputSelect as HpInputSelect, InputText as HpInputText, Modal as HpModal, ProgressBar as HpProgressBar, RadioButton as HpRadioButton, _sfc_main$c as HpSpinnerLoader, Text as HpText, ThemeSwitcher as HpThemeSwitcher, ToggleSwitch as HpToggleSwitch, index as default };
|
|
2879
2955
|
//# sourceMappingURL=hp-design-system.es.js.map
|