@henriquepetrelli/hp-design-system 1.1.24 → 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 +297 -163
- package/dist/hp-design-system.es.js.map +1 -1
- package/dist/hp-design-system.umd.js +298 -162
- package/dist/hp-design-system.umd.js.map +1 -1
- package/dist/style.css +93 -0
- package/package.json +1 -1
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
return ButtonSize2;
|
|
24
24
|
})(ButtonSize || {});
|
|
25
25
|
|
|
26
|
-
const _hoisted_1$
|
|
27
|
-
const _sfc_main$
|
|
26
|
+
const _hoisted_1$i = ["xlink:href"];
|
|
27
|
+
const _sfc_main$k = /* @__PURE__ */ vue.defineComponent({
|
|
28
28
|
__name: "Icon",
|
|
29
29
|
props: {
|
|
30
30
|
name: {
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
}, [
|
|
59
59
|
vue.createElementVNode("use", {
|
|
60
60
|
"xlink:href": `#icon-${__props.name}`
|
|
61
|
-
}, null, 8, _hoisted_1$
|
|
61
|
+
}, null, 8, _hoisted_1$i)
|
|
62
62
|
], 6);
|
|
63
63
|
};
|
|
64
64
|
}
|
|
@@ -72,18 +72,18 @@
|
|
|
72
72
|
return target;
|
|
73
73
|
};
|
|
74
74
|
|
|
75
|
-
const HpIcon = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
75
|
+
const HpIcon = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-0b477588"]]);
|
|
76
76
|
|
|
77
|
-
const _hoisted_1$
|
|
78
|
-
const _hoisted_2$
|
|
77
|
+
const _hoisted_1$h = ["aria-label", "aria-disabled", "disabled"];
|
|
78
|
+
const _hoisted_2$g = {
|
|
79
79
|
key: 0,
|
|
80
80
|
class: "button-primary__icon--left"
|
|
81
81
|
};
|
|
82
|
-
const _hoisted_3$
|
|
82
|
+
const _hoisted_3$e = {
|
|
83
83
|
key: 1,
|
|
84
84
|
class: "button-primary__icon--right"
|
|
85
85
|
};
|
|
86
|
-
const _sfc_main$
|
|
86
|
+
const _sfc_main$j = /* @__PURE__ */ vue.defineComponent({
|
|
87
87
|
__name: "ButtonPrimary",
|
|
88
88
|
props: {
|
|
89
89
|
label: {
|
|
@@ -156,7 +156,7 @@
|
|
|
156
156
|
disabled: __props.disabled,
|
|
157
157
|
onClick: handleClick
|
|
158
158
|
}, [
|
|
159
|
-
__props.icon && __props.iconPosition === vue.unref(IconPosition).LEFT ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_2$
|
|
159
|
+
__props.icon && __props.iconPosition === vue.unref(IconPosition).LEFT ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_2$g, [
|
|
160
160
|
vue.createVNode(HpIcon, {
|
|
161
161
|
name: __props.icon,
|
|
162
162
|
size: "sm",
|
|
@@ -167,31 +167,31 @@
|
|
|
167
167
|
class: "button-primary__label",
|
|
168
168
|
style: vue.normalizeStyle({ color: computedColor.value })
|
|
169
169
|
}, vue.toDisplayString(__props.label), 5),
|
|
170
|
-
__props.icon && __props.iconPosition === vue.unref(IconPosition).RIGHT ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$
|
|
170
|
+
__props.icon && __props.iconPosition === vue.unref(IconPosition).RIGHT ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$e, [
|
|
171
171
|
vue.createVNode(HpIcon, {
|
|
172
172
|
name: __props.icon,
|
|
173
173
|
size: "sm",
|
|
174
174
|
color: computedColor.value
|
|
175
175
|
}, null, 8, ["name", "color"])
|
|
176
176
|
])) : vue.createCommentVNode("", true)
|
|
177
|
-
], 14, _hoisted_1$
|
|
177
|
+
], 14, _hoisted_1$h);
|
|
178
178
|
};
|
|
179
179
|
}
|
|
180
180
|
});
|
|
181
181
|
|
|
182
|
-
const HpButtonPrimary = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
182
|
+
const HpButtonPrimary = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-5c29dcce"]]);
|
|
183
183
|
|
|
184
|
-
const _hoisted_1$
|
|
185
|
-
const _hoisted_2$
|
|
184
|
+
const _hoisted_1$g = ["aria-label", "aria-disabled", "disabled"];
|
|
185
|
+
const _hoisted_2$f = {
|
|
186
186
|
key: 0,
|
|
187
187
|
class: "button-secondary__icon--left"
|
|
188
188
|
};
|
|
189
|
-
const _hoisted_3$
|
|
190
|
-
const _hoisted_4$
|
|
189
|
+
const _hoisted_3$d = { class: "button-secondary__label" };
|
|
190
|
+
const _hoisted_4$9 = {
|
|
191
191
|
key: 1,
|
|
192
192
|
class: "button-secondary__icon--right"
|
|
193
193
|
};
|
|
194
|
-
const _sfc_main$
|
|
194
|
+
const _sfc_main$i = /* @__PURE__ */ vue.defineComponent({
|
|
195
195
|
__name: "ButtonSecondary",
|
|
196
196
|
props: {
|
|
197
197
|
label: {
|
|
@@ -249,37 +249,37 @@
|
|
|
249
249
|
disabled: __props.disabled,
|
|
250
250
|
onClick: handleClick
|
|
251
251
|
}, [
|
|
252
|
-
__props.icon && __props.iconPosition === vue.unref(IconPosition).LEFT ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_2$
|
|
252
|
+
__props.icon && __props.iconPosition === vue.unref(IconPosition).LEFT ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_2$f, [
|
|
253
253
|
vue.createVNode(HpIcon, {
|
|
254
254
|
name: __props.icon,
|
|
255
255
|
size: "sm"
|
|
256
256
|
}, null, 8, ["name"])
|
|
257
257
|
])) : vue.createCommentVNode("", true),
|
|
258
|
-
vue.createElementVNode("span", _hoisted_3$
|
|
259
|
-
__props.icon && __props.iconPosition === vue.unref(IconPosition).RIGHT ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$
|
|
258
|
+
vue.createElementVNode("span", _hoisted_3$d, vue.toDisplayString(__props.label), 1),
|
|
259
|
+
__props.icon && __props.iconPosition === vue.unref(IconPosition).RIGHT ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$9, [
|
|
260
260
|
vue.createVNode(HpIcon, {
|
|
261
261
|
name: __props.icon,
|
|
262
262
|
size: "sm"
|
|
263
263
|
}, null, 8, ["name"])
|
|
264
264
|
])) : vue.createCommentVNode("", true)
|
|
265
|
-
], 14, _hoisted_1$
|
|
265
|
+
], 14, _hoisted_1$g);
|
|
266
266
|
};
|
|
267
267
|
}
|
|
268
268
|
});
|
|
269
269
|
|
|
270
|
-
const HpButtonSecondary = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
270
|
+
const HpButtonSecondary = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-ce9350e4"]]);
|
|
271
271
|
|
|
272
|
-
const _hoisted_1$
|
|
273
|
-
const _hoisted_2$
|
|
272
|
+
const _hoisted_1$f = ["aria-label", "aria-disabled", "disabled"];
|
|
273
|
+
const _hoisted_2$e = {
|
|
274
274
|
key: 0,
|
|
275
275
|
class: "button-tertiary__icon--left"
|
|
276
276
|
};
|
|
277
|
-
const _hoisted_3$
|
|
278
|
-
const _hoisted_4$
|
|
277
|
+
const _hoisted_3$c = { class: "button-tertiary__label" };
|
|
278
|
+
const _hoisted_4$8 = {
|
|
279
279
|
key: 1,
|
|
280
280
|
class: "button-tertiary__icon--right"
|
|
281
281
|
};
|
|
282
|
-
const _sfc_main$
|
|
282
|
+
const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
|
|
283
283
|
__name: "ButtonTertiary",
|
|
284
284
|
props: {
|
|
285
285
|
label: {
|
|
@@ -337,25 +337,25 @@
|
|
|
337
337
|
disabled: __props.disabled,
|
|
338
338
|
onClick: handleClick
|
|
339
339
|
}, [
|
|
340
|
-
__props.icon && __props.iconPosition === vue.unref(IconPosition).LEFT ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_2$
|
|
340
|
+
__props.icon && __props.iconPosition === vue.unref(IconPosition).LEFT ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_2$e, [
|
|
341
341
|
vue.createVNode(HpIcon, {
|
|
342
342
|
name: __props.icon,
|
|
343
343
|
size: "sm"
|
|
344
344
|
}, null, 8, ["name"])
|
|
345
345
|
])) : vue.createCommentVNode("", true),
|
|
346
|
-
vue.createElementVNode("span", _hoisted_3$
|
|
347
|
-
__props.icon && __props.iconPosition === vue.unref(IconPosition).RIGHT ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$
|
|
346
|
+
vue.createElementVNode("span", _hoisted_3$c, vue.toDisplayString(__props.label), 1),
|
|
347
|
+
__props.icon && __props.iconPosition === vue.unref(IconPosition).RIGHT ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$8, [
|
|
348
348
|
vue.createVNode(HpIcon, {
|
|
349
349
|
name: __props.icon,
|
|
350
350
|
size: "sm"
|
|
351
351
|
}, null, 8, ["name"])
|
|
352
352
|
])) : vue.createCommentVNode("", true)
|
|
353
|
-
], 14, _hoisted_1$
|
|
353
|
+
], 14, _hoisted_1$f);
|
|
354
354
|
};
|
|
355
355
|
}
|
|
356
356
|
});
|
|
357
357
|
|
|
358
|
-
const ButtonTertiary = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
358
|
+
const ButtonTertiary = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-0401b00e"]]);
|
|
359
359
|
|
|
360
360
|
var ButtonIconSize = /* @__PURE__ */ ((ButtonIconSize2) => {
|
|
361
361
|
ButtonIconSize2["SMALL"] = "sm";
|
|
@@ -382,8 +382,8 @@
|
|
|
382
382
|
return "";
|
|
383
383
|
};
|
|
384
384
|
|
|
385
|
-
const _hoisted_1$
|
|
386
|
-
const _sfc_main$
|
|
385
|
+
const _hoisted_1$e = ["aria-label", "tabindex", "aria-disabled", "disabled"];
|
|
386
|
+
const _sfc_main$g = /* @__PURE__ */ vue.defineComponent({
|
|
387
387
|
__name: "ButtonIcon",
|
|
388
388
|
props: {
|
|
389
389
|
label: {
|
|
@@ -465,7 +465,7 @@
|
|
|
465
465
|
name: __props.icon,
|
|
466
466
|
size: __props.size,
|
|
467
467
|
color: computedIconColor.value
|
|
468
|
-
}, null, 8, ["name", "size", "color"])) : (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$
|
|
468
|
+
}, null, 8, ["name", "size", "color"])) : (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$c), {
|
|
469
469
|
key: 1,
|
|
470
470
|
type: "circle1",
|
|
471
471
|
color: computedIconColor.value || "#000",
|
|
@@ -473,12 +473,12 @@
|
|
|
473
473
|
size: __props.size,
|
|
474
474
|
speed: 0.8
|
|
475
475
|
}, null, 8, ["color", "secondaryColor", "size"]))
|
|
476
|
-
], 14, _hoisted_1$
|
|
476
|
+
], 14, _hoisted_1$e);
|
|
477
477
|
};
|
|
478
478
|
}
|
|
479
479
|
});
|
|
480
480
|
|
|
481
|
-
const HpButtonIcon = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
481
|
+
const HpButtonIcon = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-8cf8a123"]]);
|
|
482
482
|
|
|
483
483
|
var ButtonLetterSize = /* @__PURE__ */ ((ButtonLetterSize2) => {
|
|
484
484
|
ButtonLetterSize2["SMALL"] = "sm";
|
|
@@ -487,9 +487,9 @@
|
|
|
487
487
|
return ButtonLetterSize2;
|
|
488
488
|
})(ButtonLetterSize || {});
|
|
489
489
|
|
|
490
|
-
const _hoisted_1$
|
|
491
|
-
const _hoisted_2$
|
|
492
|
-
const _sfc_main$
|
|
490
|
+
const _hoisted_1$d = ["aria-label", "aria-disabled", "disabled", "tabindex"];
|
|
491
|
+
const _hoisted_2$d = { key: 0 };
|
|
492
|
+
const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
|
|
493
493
|
__name: "ButtonLetter",
|
|
494
494
|
props: {
|
|
495
495
|
label: {
|
|
@@ -572,7 +572,7 @@
|
|
|
572
572
|
color: computedLetterColor.value
|
|
573
573
|
})
|
|
574
574
|
}, [
|
|
575
|
-
!__props.isLoading ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_2$
|
|
575
|
+
!__props.isLoading ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_2$d, vue.toDisplayString(__props.letter), 1)) : (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$c), {
|
|
576
576
|
key: 1,
|
|
577
577
|
type: "circle1",
|
|
578
578
|
color: computedLetterColor.value || "var(--color-primary)",
|
|
@@ -580,12 +580,12 @@
|
|
|
580
580
|
size: __props.size,
|
|
581
581
|
speed: 0.8
|
|
582
582
|
}, null, 8, ["color", "secondaryColor", "size"]))
|
|
583
|
-
], 14, _hoisted_1$
|
|
583
|
+
], 14, _hoisted_1$d);
|
|
584
584
|
};
|
|
585
585
|
}
|
|
586
586
|
});
|
|
587
587
|
|
|
588
|
-
const ButtonLetter = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
588
|
+
const ButtonLetter = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-13b75270"]]);
|
|
589
589
|
|
|
590
590
|
var AlertType = /* @__PURE__ */ ((AlertType2) => {
|
|
591
591
|
AlertType2["WARNING"] = "warning";
|
|
@@ -595,9 +595,9 @@
|
|
|
595
595
|
return AlertType2;
|
|
596
596
|
})(AlertType || {});
|
|
597
597
|
|
|
598
|
-
const _hoisted_1$
|
|
599
|
-
const _hoisted_2$
|
|
600
|
-
const _sfc_main$
|
|
598
|
+
const _hoisted_1$c = { class: "alert" };
|
|
599
|
+
const _hoisted_2$c = { class: "alert__container__message" };
|
|
600
|
+
const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
|
|
601
601
|
__name: "Alert",
|
|
602
602
|
props: {
|
|
603
603
|
message: {
|
|
@@ -660,7 +660,7 @@
|
|
|
660
660
|
return props.type;
|
|
661
661
|
});
|
|
662
662
|
return (_ctx, _cache) => {
|
|
663
|
-
return vue.openBlock(), vue.createElementBlock("section", _hoisted_1$
|
|
663
|
+
return vue.openBlock(), vue.createElementBlock("section", _hoisted_1$c, [
|
|
664
664
|
vue.createElementVNode("div", {
|
|
665
665
|
class: "alert__container",
|
|
666
666
|
style: vue.normalizeStyle({
|
|
@@ -668,7 +668,7 @@
|
|
|
668
668
|
"--color": computedColorType.value
|
|
669
669
|
})
|
|
670
670
|
}, [
|
|
671
|
-
vue.createElementVNode("p", _hoisted_2$
|
|
671
|
+
vue.createElementVNode("p", _hoisted_2$c, vue.toDisplayString(__props.message), 1),
|
|
672
672
|
vue.createVNode(vue.unref(HpButtonIcon), {
|
|
673
673
|
class: "alert__container__icon",
|
|
674
674
|
label: "Fechar modal",
|
|
@@ -684,7 +684,64 @@
|
|
|
684
684
|
}
|
|
685
685
|
});
|
|
686
686
|
|
|
687
|
-
const Alert = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
687
|
+
const Alert = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-10dcca72"]]);
|
|
688
|
+
|
|
689
|
+
const _hoisted_1$b = {
|
|
690
|
+
key: 0,
|
|
691
|
+
class: "card__header"
|
|
692
|
+
};
|
|
693
|
+
const _hoisted_2$b = { class: "card__body" };
|
|
694
|
+
const _hoisted_3$b = {
|
|
695
|
+
key: 1,
|
|
696
|
+
class: "card__footer"
|
|
697
|
+
};
|
|
698
|
+
const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
|
|
699
|
+
__name: "Card",
|
|
700
|
+
props: {
|
|
701
|
+
title: { type: String, default: "" },
|
|
702
|
+
description: { type: String, default: "" },
|
|
703
|
+
variant: { type: String, default: "default" },
|
|
704
|
+
interactive: { type: Boolean, default: false }
|
|
705
|
+
},
|
|
706
|
+
setup(__props) {
|
|
707
|
+
const props = __props;
|
|
708
|
+
const titleId = `card-title-${Math.random().toString(36).slice(2)}`;
|
|
709
|
+
const descriptionId = `card-desc-${Math.random().toString(36).slice(2)}`;
|
|
710
|
+
const cardClasses = vue.computed(() => ({
|
|
711
|
+
[`card--${props.variant}`]: true,
|
|
712
|
+
"card--interactive": props.interactive
|
|
713
|
+
}));
|
|
714
|
+
return (_ctx, _cache) => {
|
|
715
|
+
return vue.openBlock(), vue.createElementBlock("article", {
|
|
716
|
+
class: vue.normalizeClass(["card", cardClasses.value]),
|
|
717
|
+
"aria-labelledby": titleId,
|
|
718
|
+
"aria-describedby": descriptionId
|
|
719
|
+
}, [
|
|
720
|
+
_ctx.$slots.header ? (vue.openBlock(), vue.createElementBlock("header", _hoisted_1$b, [
|
|
721
|
+
vue.renderSlot(_ctx.$slots, "header", {}, void 0, true)
|
|
722
|
+
])) : vue.createCommentVNode("", true),
|
|
723
|
+
vue.createElementVNode("div", _hoisted_2$b, [
|
|
724
|
+
__props.title ? (vue.openBlock(), vue.createElementBlock("h3", {
|
|
725
|
+
key: 0,
|
|
726
|
+
id: titleId,
|
|
727
|
+
class: "card__title"
|
|
728
|
+
}, vue.toDisplayString(__props.title), 1)) : vue.createCommentVNode("", true),
|
|
729
|
+
__props.description ? (vue.openBlock(), vue.createElementBlock("p", {
|
|
730
|
+
key: 1,
|
|
731
|
+
id: descriptionId,
|
|
732
|
+
class: "card__description"
|
|
733
|
+
}, vue.toDisplayString(__props.description), 1)) : vue.createCommentVNode("", true),
|
|
734
|
+
vue.renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
735
|
+
]),
|
|
736
|
+
_ctx.$slots.footer ? (vue.openBlock(), vue.createElementBlock("footer", _hoisted_3$b, [
|
|
737
|
+
vue.renderSlot(_ctx.$slots, "footer", {}, void 0, true)
|
|
738
|
+
])) : vue.createCommentVNode("", true)
|
|
739
|
+
], 2);
|
|
740
|
+
};
|
|
741
|
+
}
|
|
742
|
+
});
|
|
743
|
+
|
|
744
|
+
const Card = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-2b489100"]]);
|
|
688
745
|
|
|
689
746
|
var SpinnerLoaderSize = /* @__PURE__ */ ((SpinnerLoaderSize2) => {
|
|
690
747
|
SpinnerLoaderSize2["SMALL"] = "sm";
|
|
@@ -693,23 +750,23 @@
|
|
|
693
750
|
return SpinnerLoaderSize2;
|
|
694
751
|
})(SpinnerLoaderSize || {});
|
|
695
752
|
|
|
696
|
-
const _hoisted_1$
|
|
753
|
+
const _hoisted_1$a = {
|
|
697
754
|
key: 0,
|
|
698
755
|
class: "spinner-circle-1"
|
|
699
756
|
};
|
|
700
|
-
const _hoisted_2$
|
|
757
|
+
const _hoisted_2$a = {
|
|
701
758
|
key: 1,
|
|
702
759
|
class: "spinner-circle-2"
|
|
703
760
|
};
|
|
704
|
-
const _hoisted_3$
|
|
761
|
+
const _hoisted_3$a = {
|
|
705
762
|
key: 2,
|
|
706
763
|
class: "spinner-circle-3"
|
|
707
764
|
};
|
|
708
|
-
const _hoisted_4$
|
|
765
|
+
const _hoisted_4$7 = {
|
|
709
766
|
key: 3,
|
|
710
767
|
class: "spinner-circle-4"
|
|
711
768
|
};
|
|
712
|
-
const _hoisted_5$
|
|
769
|
+
const _hoisted_5$7 = {
|
|
713
770
|
key: 4,
|
|
714
771
|
class: "spinner-dot-1"
|
|
715
772
|
};
|
|
@@ -757,7 +814,7 @@
|
|
|
757
814
|
key: 15,
|
|
758
815
|
class: "spinner-search"
|
|
759
816
|
};
|
|
760
|
-
const _sfc_main$
|
|
817
|
+
const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
|
|
761
818
|
__name: "SpinnerLoader",
|
|
762
819
|
props: {
|
|
763
820
|
type: {
|
|
@@ -807,11 +864,11 @@
|
|
|
807
864
|
class: vue.normalizeClass(["spinner-loader", `spinner-${__props.type}`]),
|
|
808
865
|
style: vue.normalizeStyle(spinnerStyles.value)
|
|
809
866
|
}, [
|
|
810
|
-
__props.type === "circle1" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
811
|
-
__props.type === "circle2" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$
|
|
812
|
-
__props.type === "circle3" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$
|
|
813
|
-
__props.type === "circle4" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$
|
|
814
|
-
__props.type === "dot1" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5$
|
|
867
|
+
__props.type === "circle1" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$a)) : vue.createCommentVNode("", true),
|
|
868
|
+
__props.type === "circle2" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$a)) : vue.createCommentVNode("", true),
|
|
869
|
+
__props.type === "circle3" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$a)) : vue.createCommentVNode("", true),
|
|
870
|
+
__props.type === "circle4" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$7)) : vue.createCommentVNode("", true),
|
|
871
|
+
__props.type === "dot1" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5$7, [
|
|
815
872
|
(vue.openBlock(), vue.createElementBlock(vue.Fragment, null, vue.renderList(3, (i) => {
|
|
816
873
|
return vue.createElementVNode("div", {
|
|
817
874
|
key: `dot1-${i}`,
|
|
@@ -837,13 +894,13 @@
|
|
|
837
894
|
}
|
|
838
895
|
});
|
|
839
896
|
|
|
840
|
-
const _hoisted_1$
|
|
841
|
-
const _hoisted_2$
|
|
842
|
-
const _hoisted_3$
|
|
897
|
+
const _hoisted_1$9 = ["for"];
|
|
898
|
+
const _hoisted_2$9 = ["id", "checked", "disabled"];
|
|
899
|
+
const _hoisted_3$9 = {
|
|
843
900
|
key: 0,
|
|
844
901
|
class: "checkbox__label"
|
|
845
902
|
};
|
|
846
|
-
const _sfc_main$
|
|
903
|
+
const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
|
|
847
904
|
__name: "Checkbox",
|
|
848
905
|
props: {
|
|
849
906
|
modelValue: {
|
|
@@ -929,7 +986,7 @@
|
|
|
929
986
|
checked: isChecked.value,
|
|
930
987
|
disabled: __props.disabled,
|
|
931
988
|
onChange: handleChange
|
|
932
|
-
}, null, 40, _hoisted_2$
|
|
989
|
+
}, null, 40, _hoisted_2$9),
|
|
933
990
|
vue.createElementVNode("span", {
|
|
934
991
|
class: vue.normalizeClass(["checkbox__container", { "checkbox__container--rounded": __props.rounded }]),
|
|
935
992
|
style: vue.normalizeStyle({ "--background-color": computedBackgroundColor.value })
|
|
@@ -947,23 +1004,23 @@
|
|
|
947
1004
|
vue.createElementVNode("polyline", { points: "1 5 4 8 11 1" }, null, -1)
|
|
948
1005
|
]), 6)) : vue.createCommentVNode("", true)
|
|
949
1006
|
], 6),
|
|
950
|
-
_ctx.$slots.default ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$
|
|
1007
|
+
_ctx.$slots.default ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$9, [
|
|
951
1008
|
vue.renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
952
1009
|
])) : vue.createCommentVNode("", true)
|
|
953
|
-
], 14, _hoisted_1$
|
|
1010
|
+
], 14, _hoisted_1$9);
|
|
954
1011
|
};
|
|
955
1012
|
}
|
|
956
1013
|
});
|
|
957
1014
|
|
|
958
|
-
const Checkbox = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1015
|
+
const Checkbox = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-29384d40"]]);
|
|
959
1016
|
|
|
960
|
-
const _hoisted_1$
|
|
961
|
-
const _hoisted_2$
|
|
962
|
-
const _hoisted_3$
|
|
1017
|
+
const _hoisted_1$8 = ["for"];
|
|
1018
|
+
const _hoisted_2$8 = ["id", "checked", "disabled", "value"];
|
|
1019
|
+
const _hoisted_3$8 = {
|
|
963
1020
|
key: 0,
|
|
964
1021
|
class: "radio__label"
|
|
965
1022
|
};
|
|
966
|
-
const _sfc_main$
|
|
1023
|
+
const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
|
|
967
1024
|
__name: "RadioButton",
|
|
968
1025
|
props: {
|
|
969
1026
|
modelValue: {
|
|
@@ -1045,7 +1102,7 @@
|
|
|
1045
1102
|
disabled: __props.disabled,
|
|
1046
1103
|
value: __props.value,
|
|
1047
1104
|
onChange: handleChange
|
|
1048
|
-
}, null, 40, _hoisted_2$
|
|
1105
|
+
}, null, 40, _hoisted_2$8),
|
|
1049
1106
|
vue.createElementVNode("span", {
|
|
1050
1107
|
class: vue.normalizeClass(["radio__container", { "radio__container--rounded": __props.rounded }])
|
|
1051
1108
|
}, [
|
|
@@ -1054,15 +1111,15 @@
|
|
|
1054
1111
|
class: vue.normalizeClass(["radio__dot", { "radio__dot--animated": __props.hasAnimation }])
|
|
1055
1112
|
}, null, 2)) : vue.createCommentVNode("", true)
|
|
1056
1113
|
], 2),
|
|
1057
|
-
_ctx.$slots.default ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$
|
|
1114
|
+
_ctx.$slots.default ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$8, [
|
|
1058
1115
|
vue.renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
1059
1116
|
])) : vue.createCommentVNode("", true)
|
|
1060
|
-
], 14, _hoisted_1$
|
|
1117
|
+
], 14, _hoisted_1$8);
|
|
1061
1118
|
};
|
|
1062
1119
|
}
|
|
1063
1120
|
});
|
|
1064
1121
|
|
|
1065
|
-
const RadioButton = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1122
|
+
const RadioButton = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-50110fea"]]);
|
|
1066
1123
|
|
|
1067
1124
|
var TextSize = /* @__PURE__ */ ((TextSize2) => {
|
|
1068
1125
|
TextSize2["EXTRA_SMALL"] = "xs";
|
|
@@ -1083,7 +1140,7 @@
|
|
|
1083
1140
|
return HeadingLevel2;
|
|
1084
1141
|
})(HeadingLevel || {});
|
|
1085
1142
|
|
|
1086
|
-
const _sfc_main$
|
|
1143
|
+
const _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
|
|
1087
1144
|
__name: "Text",
|
|
1088
1145
|
props: {
|
|
1089
1146
|
size: {
|
|
@@ -1114,9 +1171,9 @@
|
|
|
1114
1171
|
}
|
|
1115
1172
|
});
|
|
1116
1173
|
|
|
1117
|
-
const Text = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1174
|
+
const Text = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-e52f8226"]]);
|
|
1118
1175
|
|
|
1119
|
-
const _sfc_main$
|
|
1176
|
+
const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
|
|
1120
1177
|
__name: "Heading",
|
|
1121
1178
|
props: {
|
|
1122
1179
|
level: {
|
|
@@ -1154,20 +1211,20 @@
|
|
|
1154
1211
|
}
|
|
1155
1212
|
});
|
|
1156
1213
|
|
|
1157
|
-
const Heading = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1214
|
+
const Heading = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-35210bc7"]]);
|
|
1158
1215
|
|
|
1159
|
-
const _hoisted_1$
|
|
1160
|
-
const _hoisted_2$
|
|
1161
|
-
const _hoisted_3$
|
|
1162
|
-
const _hoisted_4$
|
|
1216
|
+
const _hoisted_1$7 = { class: "modal__header" };
|
|
1217
|
+
const _hoisted_2$7 = { class: "modal__title" };
|
|
1218
|
+
const _hoisted_3$7 = { class: "modal__content" };
|
|
1219
|
+
const _hoisted_4$6 = {
|
|
1163
1220
|
key: 0,
|
|
1164
1221
|
class: "modal__footer"
|
|
1165
1222
|
};
|
|
1166
|
-
const _hoisted_5$
|
|
1223
|
+
const _hoisted_5$6 = {
|
|
1167
1224
|
key: 1,
|
|
1168
1225
|
class: "modal__footer"
|
|
1169
1226
|
};
|
|
1170
|
-
const _sfc_main$
|
|
1227
|
+
const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
|
|
1171
1228
|
__name: "Modal",
|
|
1172
1229
|
props: {
|
|
1173
1230
|
title: {
|
|
@@ -1246,7 +1303,7 @@
|
|
|
1246
1303
|
vue.createElementVNode("div", {
|
|
1247
1304
|
class: vue.normalizeClass(["modal__container", [`modal__container--${__props.size}`]])
|
|
1248
1305
|
}, [
|
|
1249
|
-
vue.createElementVNode("div", _hoisted_1$
|
|
1306
|
+
vue.createElementVNode("div", _hoisted_1$7, [
|
|
1250
1307
|
__props.showBackButton ? (vue.openBlock(), vue.createBlock(vue.unref(HpButtonIcon), {
|
|
1251
1308
|
key: 0,
|
|
1252
1309
|
class: "modal__back-button",
|
|
@@ -1255,7 +1312,7 @@
|
|
|
1255
1312
|
label: "Botão de voltar",
|
|
1256
1313
|
onClick: handleBackClick
|
|
1257
1314
|
})) : vue.createCommentVNode("", true),
|
|
1258
|
-
vue.createElementVNode("h2", _hoisted_2$
|
|
1315
|
+
vue.createElementVNode("h2", _hoisted_2$7, vue.toDisplayString(__props.title), 1),
|
|
1259
1316
|
__props.showCloseButton ? (vue.openBlock(), vue.createBlock(vue.unref(HpButtonIcon), {
|
|
1260
1317
|
key: 1,
|
|
1261
1318
|
class: "modal__close-button",
|
|
@@ -1265,10 +1322,10 @@
|
|
|
1265
1322
|
onClick: handleCloseModal
|
|
1266
1323
|
})) : vue.createCommentVNode("", true)
|
|
1267
1324
|
]),
|
|
1268
|
-
vue.createElementVNode("div", _hoisted_3$
|
|
1325
|
+
vue.createElementVNode("div", _hoisted_3$7, [
|
|
1269
1326
|
vue.renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
1270
1327
|
]),
|
|
1271
|
-
__props.hasPrimaryButton || __props.hasSecondaryButton ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$
|
|
1328
|
+
__props.hasPrimaryButton || __props.hasSecondaryButton ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$6, [
|
|
1272
1329
|
__props.hasSecondaryButton ? (vue.openBlock(), vue.createBlock(vue.unref(HpButtonSecondary), {
|
|
1273
1330
|
key: 0,
|
|
1274
1331
|
label: __props.secondaryButtonLabel,
|
|
@@ -1282,7 +1339,7 @@
|
|
|
1282
1339
|
onClick: handleSecondaryButtonClick
|
|
1283
1340
|
}, null, 8, ["label", "backgroundColor"])) : vue.createCommentVNode("", true)
|
|
1284
1341
|
])) : vue.createCommentVNode("", true),
|
|
1285
|
-
!__props.hasPrimaryButton && !__props.hasSecondaryButton && _ctx.$slots.buttons ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5$
|
|
1342
|
+
!__props.hasPrimaryButton && !__props.hasSecondaryButton && _ctx.$slots.buttons ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5$6, [
|
|
1286
1343
|
vue.renderSlot(_ctx.$slots, "buttons", {}, void 0, true)
|
|
1287
1344
|
])) : vue.createCommentVNode("", true)
|
|
1288
1345
|
], 2)
|
|
@@ -1294,15 +1351,15 @@
|
|
|
1294
1351
|
}
|
|
1295
1352
|
});
|
|
1296
1353
|
|
|
1297
|
-
const Modal = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1354
|
+
const Modal = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-cdf63c2b"]]);
|
|
1298
1355
|
|
|
1299
|
-
const _hoisted_1$
|
|
1300
|
-
const _hoisted_2$
|
|
1301
|
-
const _hoisted_3$
|
|
1356
|
+
const _hoisted_1$6 = ["id", "checked", "disabled", "aria-checked", "aria-labelledby"];
|
|
1357
|
+
const _hoisted_2$6 = ["for", "id", "tabindex", "onKeydown"];
|
|
1358
|
+
const _hoisted_3$6 = {
|
|
1302
1359
|
key: 0,
|
|
1303
1360
|
class: "toggle-switch__text"
|
|
1304
1361
|
};
|
|
1305
|
-
const _sfc_main$
|
|
1362
|
+
const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
|
|
1306
1363
|
__name: "ToggleSwitch",
|
|
1307
1364
|
props: {
|
|
1308
1365
|
modelValue: {
|
|
@@ -1367,7 +1424,7 @@
|
|
|
1367
1424
|
"aria-checked": __props.modelValue,
|
|
1368
1425
|
"aria-labelledby": `${__props.id}-label`,
|
|
1369
1426
|
tabindex: "-1"
|
|
1370
|
-
}, null, 40, _hoisted_1$
|
|
1427
|
+
}, null, 40, _hoisted_1$6),
|
|
1371
1428
|
vue.createElementVNode("label", {
|
|
1372
1429
|
for: __props.id,
|
|
1373
1430
|
class: "toggle-switch__label",
|
|
@@ -1388,28 +1445,28 @@
|
|
|
1388
1445
|
style: vue.normalizeStyle({ "--thumb-color": computedThumbColor.value })
|
|
1389
1446
|
}, null, 4)
|
|
1390
1447
|
], 4),
|
|
1391
|
-
_ctx.$slots.default ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$
|
|
1448
|
+
_ctx.$slots.default ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$6, [
|
|
1392
1449
|
vue.renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
1393
1450
|
])) : vue.createCommentVNode("", true)
|
|
1394
|
-
], 44, _hoisted_2$
|
|
1451
|
+
], 44, _hoisted_2$6)
|
|
1395
1452
|
], 2);
|
|
1396
1453
|
};
|
|
1397
1454
|
}
|
|
1398
1455
|
});
|
|
1399
1456
|
|
|
1400
|
-
const ToggleSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1457
|
+
const ToggleSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-14c54b46"]]);
|
|
1401
1458
|
|
|
1402
|
-
const _hoisted_1$
|
|
1403
|
-
const _hoisted_2$
|
|
1404
|
-
const _hoisted_3$
|
|
1459
|
+
const _hoisted_1$5 = { key: 0 };
|
|
1460
|
+
const _hoisted_2$5 = ["aria-checked", "onKeydown"];
|
|
1461
|
+
const _hoisted_3$5 = {
|
|
1405
1462
|
key: 1,
|
|
1406
1463
|
class: "theme-switcher-animation"
|
|
1407
1464
|
};
|
|
1408
|
-
const _hoisted_4$
|
|
1409
|
-
const _hoisted_5$
|
|
1465
|
+
const _hoisted_4$5 = ["id", "aria-checked"];
|
|
1466
|
+
const _hoisted_5$5 = ["for", "onKeydown"];
|
|
1410
1467
|
|
|
1411
1468
|
|
|
1412
|
-
const _sfc_main$
|
|
1469
|
+
const _sfc_main$5 = {
|
|
1413
1470
|
__name: 'ThemeSwitcher',
|
|
1414
1471
|
props: {
|
|
1415
1472
|
modelValue: {
|
|
@@ -1521,7 +1578,7 @@
|
|
|
1521
1578
|
|
|
1522
1579
|
return (_ctx, _cache) => {
|
|
1523
1580
|
return (!__props.hasAnimation)
|
|
1524
|
-
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
1581
|
+
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$5, [
|
|
1525
1582
|
vue.createElementVNode("button", {
|
|
1526
1583
|
class: "theme-switcher",
|
|
1527
1584
|
type: "button",
|
|
@@ -1544,9 +1601,9 @@
|
|
|
1544
1601
|
size: "sm",
|
|
1545
1602
|
color: computedButtonIconColor.value
|
|
1546
1603
|
}, null, 8, ["name", "color"])
|
|
1547
|
-
], 44, _hoisted_2$
|
|
1604
|
+
], 44, _hoisted_2$5)
|
|
1548
1605
|
]))
|
|
1549
|
-
: (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$
|
|
1606
|
+
: (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$5, [
|
|
1550
1607
|
vue.withDirectives(vue.createElementVNode("input", {
|
|
1551
1608
|
type: "checkbox",
|
|
1552
1609
|
id: __props.id,
|
|
@@ -1557,7 +1614,7 @@
|
|
|
1557
1614
|
"aria-checked": isDarkMode.value,
|
|
1558
1615
|
"aria-label": "Alternar entre tema claro e escuro",
|
|
1559
1616
|
tabindex: "-1"
|
|
1560
|
-
}, null, 40, _hoisted_4$
|
|
1617
|
+
}, null, 40, _hoisted_4$5), [
|
|
1561
1618
|
[vue.vModelCheckbox, isDarkMode.value]
|
|
1562
1619
|
]),
|
|
1563
1620
|
vue.createElementVNode("label", {
|
|
@@ -1576,22 +1633,22 @@
|
|
|
1576
1633
|
]
|
|
1577
1634
|
}, _cache[1] || (_cache[1] = [
|
|
1578
1635
|
vue.createElementVNode("span", { class: "toggle--label-background" }, null, -1)
|
|
1579
|
-
]), 44, _hoisted_5$
|
|
1636
|
+
]), 44, _hoisted_5$5)
|
|
1580
1637
|
]))
|
|
1581
1638
|
}
|
|
1582
1639
|
}
|
|
1583
1640
|
|
|
1584
1641
|
};
|
|
1585
|
-
const ThemeSwitcher = /*#__PURE__*/_export_sfc(_sfc_main$
|
|
1642
|
+
const ThemeSwitcher = /*#__PURE__*/_export_sfc(_sfc_main$5, [['__scopeId',"data-v-7efca676"]]);
|
|
1586
1643
|
|
|
1587
|
-
const _hoisted_1$
|
|
1588
|
-
const _hoisted_2$
|
|
1644
|
+
const _hoisted_1$4 = { class: "input__fieldset" };
|
|
1645
|
+
const _hoisted_2$4 = {
|
|
1589
1646
|
style: {"display":"none"},
|
|
1590
1647
|
"aria-hidden": true
|
|
1591
1648
|
};
|
|
1592
|
-
const _hoisted_3$
|
|
1593
|
-
const _hoisted_4$
|
|
1594
|
-
const _hoisted_5$
|
|
1649
|
+
const _hoisted_3$4 = ["for"];
|
|
1650
|
+
const _hoisted_4$4 = { class: "input__wrapper" };
|
|
1651
|
+
const _hoisted_5$4 = ["id", "value", "readonly", "aria-readonly", "disabled", "placeholder", "required", "maxlength", "aria-labelledby", "aria-describedby", "aria-invalid"];
|
|
1595
1652
|
const _hoisted_6$3 = { class: "input__footer" };
|
|
1596
1653
|
const _hoisted_7$3 = ["id"];
|
|
1597
1654
|
const _hoisted_8$3 = {
|
|
@@ -1600,7 +1657,7 @@
|
|
|
1600
1657
|
};
|
|
1601
1658
|
|
|
1602
1659
|
|
|
1603
|
-
const _sfc_main$
|
|
1660
|
+
const _sfc_main$4 = {
|
|
1604
1661
|
__name: 'InputText',
|
|
1605
1662
|
props: {
|
|
1606
1663
|
modelValue: {
|
|
@@ -1727,16 +1784,16 @@
|
|
|
1727
1784
|
'--icon-padding-right': __props.trailingIcon ? '32px' : '0px'
|
|
1728
1785
|
})
|
|
1729
1786
|
}, [
|
|
1730
|
-
vue.createElementVNode("fieldset", _hoisted_1$
|
|
1731
|
-
vue.createElementVNode("legend", _hoisted_2$
|
|
1787
|
+
vue.createElementVNode("fieldset", _hoisted_1$4, [
|
|
1788
|
+
vue.createElementVNode("legend", _hoisted_2$4, vue.toDisplayString(__props.label), 1),
|
|
1732
1789
|
(isFocused.value || __props.modelValue !== '' || __props.placeholder !== '')
|
|
1733
1790
|
? (vue.openBlock(), vue.createElementBlock("label", {
|
|
1734
1791
|
key: 0,
|
|
1735
1792
|
for: __props.id,
|
|
1736
1793
|
class: vue.normalizeClass(["input__label", { 'input__label--required': __props.required }])
|
|
1737
|
-
}, vue.toDisplayString(__props.label), 11, _hoisted_3$
|
|
1794
|
+
}, vue.toDisplayString(__props.label), 11, _hoisted_3$4))
|
|
1738
1795
|
: vue.createCommentVNode("", true),
|
|
1739
|
-
vue.createElementVNode("div", _hoisted_4$
|
|
1796
|
+
vue.createElementVNode("div", _hoisted_4$4, [
|
|
1740
1797
|
(__props.leadingIcon)
|
|
1741
1798
|
? (vue.openBlock(), vue.createBlock(vue.unref(HpIcon), {
|
|
1742
1799
|
key: 0,
|
|
@@ -1765,7 +1822,7 @@
|
|
|
1765
1822
|
"aria-labelledby": `${__props.id}-label`,
|
|
1766
1823
|
"aria-describedby": __props.helperText ? `${__props.id}-helper-text` : undefined,
|
|
1767
1824
|
"aria-invalid": __props.status === 'error'
|
|
1768
|
-
}, null, 40, _hoisted_5$
|
|
1825
|
+
}, null, 40, _hoisted_5$4),
|
|
1769
1826
|
(__props.iconHasAction && __props.trailingIcon)
|
|
1770
1827
|
? (vue.openBlock(), vue.createBlock(vue.unref(HpButtonIcon), {
|
|
1771
1828
|
key: 1,
|
|
@@ -1806,16 +1863,16 @@
|
|
|
1806
1863
|
}
|
|
1807
1864
|
|
|
1808
1865
|
};
|
|
1809
|
-
const InputText = /*#__PURE__*/_export_sfc(_sfc_main$
|
|
1866
|
+
const InputText = /*#__PURE__*/_export_sfc(_sfc_main$4, [['__scopeId',"data-v-6450d99a"]]);
|
|
1810
1867
|
|
|
1811
|
-
const _hoisted_1$
|
|
1812
|
-
const _hoisted_2$
|
|
1868
|
+
const _hoisted_1$3 = { class: "input__fieldset" };
|
|
1869
|
+
const _hoisted_2$3 = {
|
|
1813
1870
|
style: {"display":"none"},
|
|
1814
1871
|
"aria-hidden": true
|
|
1815
1872
|
};
|
|
1816
|
-
const _hoisted_3$
|
|
1817
|
-
const _hoisted_4$
|
|
1818
|
-
const _hoisted_5$
|
|
1873
|
+
const _hoisted_3$3 = ["for"];
|
|
1874
|
+
const _hoisted_4$3 = { class: "input__wrapper" };
|
|
1875
|
+
const _hoisted_5$3 = ["id", "value", "readonly", "aria-readonly", "disabled", "placeholder", "required", "min", "max", "aria-labelledby", "aria-describedby", "aria-invalid"];
|
|
1819
1876
|
const _hoisted_6$2 = { class: "input__buttons-container" };
|
|
1820
1877
|
const _hoisted_7$2 = ["disabled", "aria-label"];
|
|
1821
1878
|
const _hoisted_8$2 = ["disabled", "aria-label"];
|
|
@@ -1823,7 +1880,7 @@
|
|
|
1823
1880
|
const _hoisted_10$2 = ["id"];
|
|
1824
1881
|
|
|
1825
1882
|
|
|
1826
|
-
const _sfc_main$
|
|
1883
|
+
const _sfc_main$3 = {
|
|
1827
1884
|
__name: 'InputNumber',
|
|
1828
1885
|
props: {
|
|
1829
1886
|
modelValue: {
|
|
@@ -1989,16 +2046,16 @@
|
|
|
1989
2046
|
'--icon-padding-left': __props.leadingIcon ? '24px' : '0px'
|
|
1990
2047
|
})
|
|
1991
2048
|
}, [
|
|
1992
|
-
vue.createElementVNode("fieldset", _hoisted_1$
|
|
1993
|
-
vue.createElementVNode("legend", _hoisted_2$
|
|
2049
|
+
vue.createElementVNode("fieldset", _hoisted_1$3, [
|
|
2050
|
+
vue.createElementVNode("legend", _hoisted_2$3, vue.toDisplayString(__props.label), 1),
|
|
1994
2051
|
(isFocused.value || modelValueFormatted.value !== null || __props.placeholder !== '')
|
|
1995
2052
|
? (vue.openBlock(), vue.createElementBlock("label", {
|
|
1996
2053
|
key: 0,
|
|
1997
2054
|
for: __props.id,
|
|
1998
2055
|
class: vue.normalizeClass(["input__label", { 'input__label--required': __props.required }])
|
|
1999
|
-
}, vue.toDisplayString(__props.label), 11, _hoisted_3$
|
|
2056
|
+
}, vue.toDisplayString(__props.label), 11, _hoisted_3$3))
|
|
2000
2057
|
: vue.createCommentVNode("", true),
|
|
2001
|
-
vue.createElementVNode("div", _hoisted_4$
|
|
2058
|
+
vue.createElementVNode("div", _hoisted_4$3, [
|
|
2002
2059
|
(__props.leadingIcon)
|
|
2003
2060
|
? (vue.openBlock(), vue.createBlock(vue.unref(HpIcon), {
|
|
2004
2061
|
key: 0,
|
|
@@ -2029,7 +2086,7 @@
|
|
|
2029
2086
|
"aria-labelledby": `${__props.id}-label`,
|
|
2030
2087
|
"aria-describedby": __props.helperText ? `${__props.id}-helper-text` : undefined,
|
|
2031
2088
|
"aria-invalid": __props.status === 'error'
|
|
2032
|
-
}, null, 40, _hoisted_5$
|
|
2089
|
+
}, null, 40, _hoisted_5$3),
|
|
2033
2090
|
vue.createElementVNode("div", _hoisted_6$2, [
|
|
2034
2091
|
vue.createElementVNode("button", {
|
|
2035
2092
|
type: "button",
|
|
@@ -2075,19 +2132,19 @@
|
|
|
2075
2132
|
}
|
|
2076
2133
|
|
|
2077
2134
|
};
|
|
2078
|
-
const InputNumber = /*#__PURE__*/_export_sfc(_sfc_main$
|
|
2135
|
+
const InputNumber = /*#__PURE__*/_export_sfc(_sfc_main$3, [['__scopeId',"data-v-7f20743b"]]);
|
|
2079
2136
|
|
|
2080
|
-
const _hoisted_1$
|
|
2081
|
-
const _hoisted_2$
|
|
2137
|
+
const _hoisted_1$2 = { class: "input__fieldset" };
|
|
2138
|
+
const _hoisted_2$2 = {
|
|
2082
2139
|
style: {"display":"none"},
|
|
2083
2140
|
"aria-hidden": true
|
|
2084
2141
|
};
|
|
2085
|
-
const _hoisted_3$
|
|
2086
|
-
const _hoisted_4$
|
|
2142
|
+
const _hoisted_3$2 = ["for", "id"];
|
|
2143
|
+
const _hoisted_4$2 = {
|
|
2087
2144
|
key: 0,
|
|
2088
2145
|
class: "required-asterisk"
|
|
2089
2146
|
};
|
|
2090
|
-
const _hoisted_5$
|
|
2147
|
+
const _hoisted_5$2 = { class: "input__wrapper" };
|
|
2091
2148
|
const _hoisted_6$1 = {
|
|
2092
2149
|
key: 0,
|
|
2093
2150
|
class: "autocomplete-wrapper"
|
|
@@ -2115,7 +2172,7 @@
|
|
|
2115
2172
|
};
|
|
2116
2173
|
|
|
2117
2174
|
|
|
2118
|
-
const _sfc_main$
|
|
2175
|
+
const _sfc_main$2 = {
|
|
2119
2176
|
__name: 'InputSelect',
|
|
2120
2177
|
props: {
|
|
2121
2178
|
modelValue: {
|
|
@@ -2399,8 +2456,8 @@
|
|
|
2399
2456
|
ref_key: "select",
|
|
2400
2457
|
ref: select
|
|
2401
2458
|
}, [
|
|
2402
|
-
vue.createElementVNode("fieldset", _hoisted_1$
|
|
2403
|
-
vue.createElementVNode("legend", _hoisted_2$
|
|
2459
|
+
vue.createElementVNode("fieldset", _hoisted_1$2, [
|
|
2460
|
+
vue.createElementVNode("legend", _hoisted_2$2, vue.toDisplayString(__props.label), 1),
|
|
2404
2461
|
(__props.modelValue !== null || __props.placeholder !== '')
|
|
2405
2462
|
? (vue.openBlock(), vue.createElementBlock("label", {
|
|
2406
2463
|
key: 0,
|
|
@@ -2410,11 +2467,11 @@
|
|
|
2410
2467
|
}, [
|
|
2411
2468
|
vue.createTextVNode(vue.toDisplayString(__props.label) + " ", 1),
|
|
2412
2469
|
(__props.required)
|
|
2413
|
-
? (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$
|
|
2470
|
+
? (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$2, "*"))
|
|
2414
2471
|
: vue.createCommentVNode("", true)
|
|
2415
|
-
], 10, _hoisted_3$
|
|
2472
|
+
], 10, _hoisted_3$2))
|
|
2416
2473
|
: vue.createCommentVNode("", true),
|
|
2417
|
-
vue.createElementVNode("div", _hoisted_5$
|
|
2474
|
+
vue.createElementVNode("div", _hoisted_5$2, [
|
|
2418
2475
|
(__props.autocomplete)
|
|
2419
2476
|
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_6$1, [
|
|
2420
2477
|
vue.withDirectives(vue.createElementVNode("input", {
|
|
@@ -2602,19 +2659,19 @@
|
|
|
2602
2659
|
}
|
|
2603
2660
|
|
|
2604
2661
|
};
|
|
2605
|
-
const InputSelect = /*#__PURE__*/_export_sfc(_sfc_main$
|
|
2662
|
+
const InputSelect = /*#__PURE__*/_export_sfc(_sfc_main$2, [['__scopeId',"data-v-00cdf827"]]);
|
|
2606
2663
|
|
|
2607
|
-
const _hoisted_1 = { class: "input-range__fieldset" };
|
|
2608
|
-
const _hoisted_2 = {
|
|
2664
|
+
const _hoisted_1$1 = { class: "input-range__fieldset" };
|
|
2665
|
+
const _hoisted_2$1 = {
|
|
2609
2666
|
key: 0,
|
|
2610
2667
|
class: "input-range__legend"
|
|
2611
2668
|
};
|
|
2612
|
-
const _hoisted_3 = {
|
|
2669
|
+
const _hoisted_3$1 = {
|
|
2613
2670
|
key: 0,
|
|
2614
2671
|
class: "input-range__required"
|
|
2615
2672
|
};
|
|
2616
|
-
const _hoisted_4 = { class: "input-range__wrapper" };
|
|
2617
|
-
const _hoisted_5 = ["id", "min", "max", "step", "value", "disabled", "aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-labelledby", "aria-describedby"];
|
|
2673
|
+
const _hoisted_4$1 = { class: "input-range__wrapper" };
|
|
2674
|
+
const _hoisted_5$1 = ["id", "min", "max", "step", "value", "disabled", "aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-labelledby", "aria-describedby"];
|
|
2618
2675
|
const _hoisted_6 = { class: "input-range__value-display" };
|
|
2619
2676
|
const _hoisted_7 = { class: "input-range__value" };
|
|
2620
2677
|
const _hoisted_8 = {
|
|
@@ -2628,7 +2685,7 @@
|
|
|
2628
2685
|
const _hoisted_10 = ["id"];
|
|
2629
2686
|
|
|
2630
2687
|
|
|
2631
|
-
const _sfc_main = {
|
|
2688
|
+
const _sfc_main$1 = {
|
|
2632
2689
|
__name: 'InputRange',
|
|
2633
2690
|
props: {
|
|
2634
2691
|
modelValue: {
|
|
@@ -2711,16 +2768,16 @@
|
|
|
2711
2768
|
[`input-range--${__props.status}`]: __props.status !== 'default'
|
|
2712
2769
|
}])
|
|
2713
2770
|
}, [
|
|
2714
|
-
vue.createElementVNode("fieldset", _hoisted_1, [
|
|
2771
|
+
vue.createElementVNode("fieldset", _hoisted_1$1, [
|
|
2715
2772
|
(__props.label)
|
|
2716
|
-
? (vue.openBlock(), vue.createElementBlock("legend", _hoisted_2, [
|
|
2773
|
+
? (vue.openBlock(), vue.createElementBlock("legend", _hoisted_2$1, [
|
|
2717
2774
|
vue.createTextVNode(vue.toDisplayString(__props.label) + " ", 1),
|
|
2718
2775
|
(__props.required)
|
|
2719
|
-
? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3, "*"))
|
|
2776
|
+
? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$1, "*"))
|
|
2720
2777
|
: vue.createCommentVNode("", true)
|
|
2721
2778
|
]))
|
|
2722
2779
|
: vue.createCommentVNode("", true),
|
|
2723
|
-
vue.createElementVNode("div", _hoisted_4, [
|
|
2780
|
+
vue.createElementVNode("div", _hoisted_4$1, [
|
|
2724
2781
|
vue.createElementVNode("input", {
|
|
2725
2782
|
id: __props.id,
|
|
2726
2783
|
ref_key: "input",
|
|
@@ -2739,7 +2796,7 @@
|
|
|
2739
2796
|
"aria-valuenow": __props.modelValue,
|
|
2740
2797
|
"aria-labelledby": `${__props.id}-label`,
|
|
2741
2798
|
"aria-describedby": __props.helperText ? `${__props.id}-helper` : undefined
|
|
2742
|
-
}, null, 40, _hoisted_5),
|
|
2799
|
+
}, null, 40, _hoisted_5$1),
|
|
2743
2800
|
vue.createElementVNode("div", _hoisted_6, [
|
|
2744
2801
|
vue.createElementVNode("span", _hoisted_7, vue.toDisplayString(__props.modelValue), 1),
|
|
2745
2802
|
(__props.unit)
|
|
@@ -2761,7 +2818,82 @@
|
|
|
2761
2818
|
}
|
|
2762
2819
|
|
|
2763
2820
|
};
|
|
2764
|
-
const InputRange = /*#__PURE__*/_export_sfc(_sfc_main, [['__scopeId',"data-v-32e54a28"]]);
|
|
2821
|
+
const InputRange = /*#__PURE__*/_export_sfc(_sfc_main$1, [['__scopeId',"data-v-32e54a28"]]);
|
|
2822
|
+
|
|
2823
|
+
const _hoisted_1 = { class: "progress-bar" };
|
|
2824
|
+
const _hoisted_2 = {
|
|
2825
|
+
key: 0,
|
|
2826
|
+
class: "progress-bar__header"
|
|
2827
|
+
};
|
|
2828
|
+
const _hoisted_3 = { class: "progress-bar__value" };
|
|
2829
|
+
const _hoisted_4 = { class: "progress-bar__wrapper" };
|
|
2830
|
+
const _hoisted_5 = ["value", "max", "aria-labelledby"];
|
|
2831
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
2832
|
+
...{
|
|
2833
|
+
name: "ProgressBar"
|
|
2834
|
+
},
|
|
2835
|
+
__name: "ProgressBar",
|
|
2836
|
+
props: {
|
|
2837
|
+
label: {
|
|
2838
|
+
type: String,
|
|
2839
|
+
default: ""
|
|
2840
|
+
},
|
|
2841
|
+
value: {
|
|
2842
|
+
type: Number,
|
|
2843
|
+
required: true
|
|
2844
|
+
},
|
|
2845
|
+
max: {
|
|
2846
|
+
type: Number,
|
|
2847
|
+
default: 100
|
|
2848
|
+
},
|
|
2849
|
+
hasLabel: {
|
|
2850
|
+
type: Boolean,
|
|
2851
|
+
default: false
|
|
2852
|
+
},
|
|
2853
|
+
backgroundColor: {
|
|
2854
|
+
type: String,
|
|
2855
|
+
default: ""
|
|
2856
|
+
},
|
|
2857
|
+
barColor: {
|
|
2858
|
+
type: String,
|
|
2859
|
+
default: ""
|
|
2860
|
+
}
|
|
2861
|
+
},
|
|
2862
|
+
setup(__props) {
|
|
2863
|
+
const props = __props;
|
|
2864
|
+
const labelId = `progress-bar-label-${Math.random().toString(36).slice(2)}`;
|
|
2865
|
+
const normalizedValue = vue.computed(() => {
|
|
2866
|
+
const percent = props.value / props.max * 100;
|
|
2867
|
+
return Math.min(100, Math.max(0, Math.round(percent)));
|
|
2868
|
+
});
|
|
2869
|
+
const trackStyle = vue.computed(() => ({
|
|
2870
|
+
"--track-color": props.backgroundColor || "var(--color-border, #e5e7eb)",
|
|
2871
|
+
"--bar-color": props.barColor || "var(--color-danger, #b91c1c)"
|
|
2872
|
+
}));
|
|
2873
|
+
return (_ctx, _cache) => {
|
|
2874
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
|
|
2875
|
+
__props.hasLabel ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2, [
|
|
2876
|
+
vue.createElementVNode("span", {
|
|
2877
|
+
class: "progress-bar__label",
|
|
2878
|
+
id: labelId
|
|
2879
|
+
}, vue.toDisplayString(__props.label), 1),
|
|
2880
|
+
vue.createElementVNode("span", _hoisted_3, vue.toDisplayString(normalizedValue.value) + "% ", 1)
|
|
2881
|
+
])) : vue.createCommentVNode("", true),
|
|
2882
|
+
vue.createElementVNode("div", _hoisted_4, [
|
|
2883
|
+
vue.createElementVNode("progress", {
|
|
2884
|
+
class: "progress-bar__track",
|
|
2885
|
+
value: __props.value,
|
|
2886
|
+
max: __props.max,
|
|
2887
|
+
"aria-labelledby": __props.label ? labelId : void 0,
|
|
2888
|
+
style: vue.normalizeStyle(trackStyle.value)
|
|
2889
|
+
}, null, 12, _hoisted_5)
|
|
2890
|
+
])
|
|
2891
|
+
]);
|
|
2892
|
+
};
|
|
2893
|
+
}
|
|
2894
|
+
});
|
|
2895
|
+
|
|
2896
|
+
const ProgressBar = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-a3ba3e49"]]);
|
|
2765
2897
|
|
|
2766
2898
|
const components = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
2767
2899
|
__proto__: null,
|
|
@@ -2771,6 +2903,7 @@
|
|
|
2771
2903
|
HpButtonPrimary,
|
|
2772
2904
|
HpButtonSecondary,
|
|
2773
2905
|
HpButtonTertiary: ButtonTertiary,
|
|
2906
|
+
HpCard: Card,
|
|
2774
2907
|
HpCheckbox: Checkbox,
|
|
2775
2908
|
HpHeading: Heading,
|
|
2776
2909
|
HpIcon,
|
|
@@ -2779,8 +2912,9 @@
|
|
|
2779
2912
|
HpInputSelect: InputSelect,
|
|
2780
2913
|
HpInputText: InputText,
|
|
2781
2914
|
HpModal: Modal,
|
|
2915
|
+
HpProgressBar: ProgressBar,
|
|
2782
2916
|
HpRadioButton: RadioButton,
|
|
2783
|
-
HpSpinnerLoader: _sfc_main$
|
|
2917
|
+
HpSpinnerLoader: _sfc_main$c,
|
|
2784
2918
|
HpText: Text,
|
|
2785
2919
|
HpThemeSwitcher: ThemeSwitcher,
|
|
2786
2920
|
HpToggleSwitch: ToggleSwitch
|
|
@@ -2827,6 +2961,7 @@
|
|
|
2827
2961
|
exports.HpButtonPrimary = HpButtonPrimary;
|
|
2828
2962
|
exports.HpButtonSecondary = HpButtonSecondary;
|
|
2829
2963
|
exports.HpButtonTertiary = ButtonTertiary;
|
|
2964
|
+
exports.HpCard = Card;
|
|
2830
2965
|
exports.HpCheckbox = Checkbox;
|
|
2831
2966
|
exports.HpHeading = Heading;
|
|
2832
2967
|
exports.HpIcon = HpIcon;
|
|
@@ -2835,8 +2970,9 @@
|
|
|
2835
2970
|
exports.HpInputSelect = InputSelect;
|
|
2836
2971
|
exports.HpInputText = InputText;
|
|
2837
2972
|
exports.HpModal = Modal;
|
|
2973
|
+
exports.HpProgressBar = ProgressBar;
|
|
2838
2974
|
exports.HpRadioButton = RadioButton;
|
|
2839
|
-
exports.HpSpinnerLoader = _sfc_main$
|
|
2975
|
+
exports.HpSpinnerLoader = _sfc_main$c;
|
|
2840
2976
|
exports.HpText = Text;
|
|
2841
2977
|
exports.HpThemeSwitcher = ThemeSwitcher;
|
|
2842
2978
|
exports.HpToggleSwitch = ToggleSwitch;
|