@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.
@@ -1,4 +1,4 @@
1
- import { defineComponent, computed, createElementBlock, openBlock, normalizeStyle, normalizeClass, createElementVNode, unref, createCommentVNode, createVNode, toDisplayString, createBlock, onMounted, onUnmounted, Fragment, renderList, ref, watch, renderSlot, resolveDynamicComponent, withCtx, Transition, withModifiers, withKeys, withDirectives, vModelCheckbox, onBeforeUnmount, createTextVNode, vModelText, vShow } from 'vue';
1
+ import { defineComponent, computed, createElementBlock, openBlock, normalizeStyle, normalizeClass, createElementVNode, unref, createCommentVNode, createVNode, toDisplayString, createBlock, onMounted, onUnmounted, renderSlot, Fragment, renderList, ref, watch, resolveDynamicComponent, withCtx, Transition, withModifiers, withKeys, withDirectives, vModelCheckbox, onBeforeUnmount, createTextVNode, vModelText, vShow } from 'vue';
2
2
 
3
3
  var ButtonColor = /* @__PURE__ */ ((ButtonColor2) => {
4
4
  ButtonColor2["PRIMARY"] = "primary";
@@ -19,8 +19,8 @@ var ButtonSize = /* @__PURE__ */ ((ButtonSize2) => {
19
19
  return ButtonSize2;
20
20
  })(ButtonSize || {});
21
21
 
22
- const _hoisted_1$g = ["xlink:href"];
23
- const _sfc_main$i = /* @__PURE__ */ defineComponent({
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$i = /* @__PURE__ */ defineComponent({
54
54
  }, [
55
55
  createElementVNode("use", {
56
56
  "xlink:href": `#icon-${__props.name}`
57
- }, null, 8, _hoisted_1$g)
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$i, [["__scopeId", "data-v-0b477588"]]);
71
+ const HpIcon = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-0b477588"]]);
72
72
 
73
- const _hoisted_1$f = ["aria-label", "aria-disabled", "disabled"];
74
- const _hoisted_2$e = {
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$c = {
78
+ const _hoisted_3$e = {
79
79
  key: 1,
80
80
  class: "button-primary__icon--right"
81
81
  };
82
- const _sfc_main$h = /* @__PURE__ */ defineComponent({
82
+ const _sfc_main$j = /* @__PURE__ */ defineComponent({
83
83
  __name: "ButtonPrimary",
84
84
  props: {
85
85
  label: {
@@ -152,7 +152,7 @@ const _sfc_main$h = /* @__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$e, [
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$h = /* @__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$c, [
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$f);
173
+ ], 14, _hoisted_1$h);
174
174
  };
175
175
  }
176
176
  });
177
177
 
178
- const HpButtonPrimary = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-5c29dcce"]]);
178
+ const HpButtonPrimary = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-5c29dcce"]]);
179
179
 
180
- const _hoisted_1$e = ["aria-label", "aria-disabled", "disabled"];
181
- const _hoisted_2$d = {
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$b = { class: "button-secondary__label" };
186
- const _hoisted_4$8 = {
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$g = /* @__PURE__ */ defineComponent({
190
+ const _sfc_main$i = /* @__PURE__ */ defineComponent({
191
191
  __name: "ButtonSecondary",
192
192
  props: {
193
193
  label: {
@@ -245,37 +245,37 @@ const _sfc_main$g = /* @__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$d, [
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$b, toDisplayString(__props.label), 1),
255
- __props.icon && __props.iconPosition === unref(IconPosition).RIGHT ? (openBlock(), createElementBlock("span", _hoisted_4$8, [
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$e);
261
+ ], 14, _hoisted_1$g);
262
262
  };
263
263
  }
264
264
  });
265
265
 
266
- const HpButtonSecondary = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-ce9350e4"]]);
266
+ const HpButtonSecondary = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-ce9350e4"]]);
267
267
 
268
- const _hoisted_1$d = ["aria-label", "aria-disabled", "disabled"];
269
- const _hoisted_2$c = {
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$a = { class: "button-tertiary__label" };
274
- const _hoisted_4$7 = {
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$f = /* @__PURE__ */ defineComponent({
278
+ const _sfc_main$h = /* @__PURE__ */ defineComponent({
279
279
  __name: "ButtonTertiary",
280
280
  props: {
281
281
  label: {
@@ -333,25 +333,25 @@ const _sfc_main$f = /* @__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$c, [
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$a, toDisplayString(__props.label), 1),
343
- __props.icon && __props.iconPosition === unref(IconPosition).RIGHT ? (openBlock(), createElementBlock("span", _hoisted_4$7, [
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$d);
349
+ ], 14, _hoisted_1$f);
350
350
  };
351
351
  }
352
352
  });
353
353
 
354
- const ButtonTertiary = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-0401b00e"]]);
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$c = ["aria-label", "tabindex", "aria-disabled", "disabled"];
382
- const _sfc_main$e = /* @__PURE__ */ defineComponent({
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$e = /* @__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$b), {
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$e = /* @__PURE__ */ defineComponent({
469
469
  size: __props.size,
470
470
  speed: 0.8
471
471
  }, null, 8, ["color", "secondaryColor", "size"]))
472
- ], 14, _hoisted_1$c);
472
+ ], 14, _hoisted_1$e);
473
473
  };
474
474
  }
475
475
  });
476
476
 
477
- const HpButtonIcon = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-8cf8a123"]]);
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$b = ["aria-label", "aria-disabled", "disabled", "tabindex"];
487
- const _hoisted_2$b = { key: 0 };
488
- const _sfc_main$d = /* @__PURE__ */ defineComponent({
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$d = /* @__PURE__ */ defineComponent({
568
568
  color: computedLetterColor.value
569
569
  })
570
570
  }, [
571
- !__props.isLoading ? (openBlock(), createElementBlock("span", _hoisted_2$b, toDisplayString(__props.letter), 1)) : (openBlock(), createBlock(unref(_sfc_main$b), {
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$d = /* @__PURE__ */ defineComponent({
576
576
  size: __props.size,
577
577
  speed: 0.8
578
578
  }, null, 8, ["color", "secondaryColor", "size"]))
579
- ], 14, _hoisted_1$b);
579
+ ], 14, _hoisted_1$d);
580
580
  };
581
581
  }
582
582
  });
583
583
 
584
- const ButtonLetter = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-13b75270"]]);
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$a = { class: "alert" };
595
- const _hoisted_2$a = { class: "alert__container__message" };
596
- const _sfc_main$c = /* @__PURE__ */ defineComponent({
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$c = /* @__PURE__ */ defineComponent({
656
656
  return props.type;
657
657
  });
658
658
  return (_ctx, _cache) => {
659
- return openBlock(), createElementBlock("section", _hoisted_1$a, [
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$c = /* @__PURE__ */ defineComponent({
664
664
  "--color": computedColorType.value
665
665
  })
666
666
  }, [
667
- createElementVNode("p", _hoisted_2$a, toDisplayString(__props.message), 1),
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,7 +680,64 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
680
680
  }
681
681
  });
682
682
 
683
- const Alert = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-10dcca72"]]);
683
+ const Alert = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-10dcca72"]]);
684
+
685
+ const _hoisted_1$b = {
686
+ key: 0,
687
+ class: "card__header"
688
+ };
689
+ const _hoisted_2$b = { class: "card__body" };
690
+ const _hoisted_3$b = {
691
+ key: 1,
692
+ class: "card__footer"
693
+ };
694
+ const _sfc_main$d = /* @__PURE__ */ defineComponent({
695
+ __name: "Card",
696
+ props: {
697
+ title: { type: String, default: "" },
698
+ description: { type: String, default: "" },
699
+ variant: { type: String, default: "default" },
700
+ interactive: { type: Boolean, default: false }
701
+ },
702
+ setup(__props) {
703
+ const props = __props;
704
+ const titleId = `card-title-${Math.random().toString(36).slice(2)}`;
705
+ const descriptionId = `card-desc-${Math.random().toString(36).slice(2)}`;
706
+ const cardClasses = computed(() => ({
707
+ [`card--${props.variant}`]: true,
708
+ "card--interactive": props.interactive
709
+ }));
710
+ return (_ctx, _cache) => {
711
+ return openBlock(), createElementBlock("article", {
712
+ class: normalizeClass(["card", cardClasses.value]),
713
+ "aria-labelledby": titleId,
714
+ "aria-describedby": descriptionId
715
+ }, [
716
+ _ctx.$slots.header ? (openBlock(), createElementBlock("header", _hoisted_1$b, [
717
+ renderSlot(_ctx.$slots, "header", {}, void 0, true)
718
+ ])) : createCommentVNode("", true),
719
+ createElementVNode("div", _hoisted_2$b, [
720
+ __props.title ? (openBlock(), createElementBlock("h3", {
721
+ key: 0,
722
+ id: titleId,
723
+ class: "card__title"
724
+ }, toDisplayString(__props.title), 1)) : createCommentVNode("", true),
725
+ __props.description ? (openBlock(), createElementBlock("p", {
726
+ key: 1,
727
+ id: descriptionId,
728
+ class: "card__description"
729
+ }, toDisplayString(__props.description), 1)) : createCommentVNode("", true),
730
+ renderSlot(_ctx.$slots, "default", {}, void 0, true)
731
+ ]),
732
+ _ctx.$slots.footer ? (openBlock(), createElementBlock("footer", _hoisted_3$b, [
733
+ renderSlot(_ctx.$slots, "footer", {}, void 0, true)
734
+ ])) : createCommentVNode("", true)
735
+ ], 2);
736
+ };
737
+ }
738
+ });
739
+
740
+ const Card = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-2b489100"]]);
684
741
 
685
742
  var SpinnerLoaderSize = /* @__PURE__ */ ((SpinnerLoaderSize2) => {
686
743
  SpinnerLoaderSize2["SMALL"] = "sm";
@@ -689,23 +746,23 @@ var SpinnerLoaderSize = /* @__PURE__ */ ((SpinnerLoaderSize2) => {
689
746
  return SpinnerLoaderSize2;
690
747
  })(SpinnerLoaderSize || {});
691
748
 
692
- const _hoisted_1$9 = {
749
+ const _hoisted_1$a = {
693
750
  key: 0,
694
751
  class: "spinner-circle-1"
695
752
  };
696
- const _hoisted_2$9 = {
753
+ const _hoisted_2$a = {
697
754
  key: 1,
698
755
  class: "spinner-circle-2"
699
756
  };
700
- const _hoisted_3$9 = {
757
+ const _hoisted_3$a = {
701
758
  key: 2,
702
759
  class: "spinner-circle-3"
703
760
  };
704
- const _hoisted_4$6 = {
761
+ const _hoisted_4$7 = {
705
762
  key: 3,
706
763
  class: "spinner-circle-4"
707
764
  };
708
- const _hoisted_5$6 = {
765
+ const _hoisted_5$7 = {
709
766
  key: 4,
710
767
  class: "spinner-dot-1"
711
768
  };
@@ -753,7 +810,7 @@ const _hoisted_16$1 = {
753
810
  key: 15,
754
811
  class: "spinner-search"
755
812
  };
756
- const _sfc_main$b = /* @__PURE__ */ defineComponent({
813
+ const _sfc_main$c = /* @__PURE__ */ defineComponent({
757
814
  __name: "SpinnerLoader",
758
815
  props: {
759
816
  type: {
@@ -803,11 +860,11 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
803
860
  class: normalizeClass(["spinner-loader", `spinner-${__props.type}`]),
804
861
  style: normalizeStyle(spinnerStyles.value)
805
862
  }, [
806
- __props.type === "circle1" ? (openBlock(), createElementBlock("div", _hoisted_1$9)) : createCommentVNode("", true),
807
- __props.type === "circle2" ? (openBlock(), createElementBlock("div", _hoisted_2$9)) : createCommentVNode("", true),
808
- __props.type === "circle3" ? (openBlock(), createElementBlock("div", _hoisted_3$9)) : createCommentVNode("", true),
809
- __props.type === "circle4" ? (openBlock(), createElementBlock("div", _hoisted_4$6)) : createCommentVNode("", true),
810
- __props.type === "dot1" ? (openBlock(), createElementBlock("div", _hoisted_5$6, [
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, [
811
868
  (openBlock(), createElementBlock(Fragment, null, renderList(3, (i) => {
812
869
  return createElementVNode("div", {
813
870
  key: `dot1-${i}`,
@@ -833,13 +890,13 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
833
890
  }
834
891
  });
835
892
 
836
- const _hoisted_1$8 = ["for"];
837
- const _hoisted_2$8 = ["id", "checked", "disabled"];
838
- const _hoisted_3$8 = {
893
+ const _hoisted_1$9 = ["for"];
894
+ const _hoisted_2$9 = ["id", "checked", "disabled"];
895
+ const _hoisted_3$9 = {
839
896
  key: 0,
840
897
  class: "checkbox__label"
841
898
  };
842
- const _sfc_main$a = /* @__PURE__ */ defineComponent({
899
+ const _sfc_main$b = /* @__PURE__ */ defineComponent({
843
900
  __name: "Checkbox",
844
901
  props: {
845
902
  modelValue: {
@@ -925,7 +982,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
925
982
  checked: isChecked.value,
926
983
  disabled: __props.disabled,
927
984
  onChange: handleChange
928
- }, null, 40, _hoisted_2$8),
985
+ }, null, 40, _hoisted_2$9),
929
986
  createElementVNode("span", {
930
987
  class: normalizeClass(["checkbox__container", { "checkbox__container--rounded": __props.rounded }]),
931
988
  style: normalizeStyle({ "--background-color": computedBackgroundColor.value })
@@ -943,23 +1000,23 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
943
1000
  createElementVNode("polyline", { points: "1 5 4 8 11 1" }, null, -1)
944
1001
  ]), 6)) : createCommentVNode("", true)
945
1002
  ], 6),
946
- _ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_3$8, [
1003
+ _ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_3$9, [
947
1004
  renderSlot(_ctx.$slots, "default", {}, void 0, true)
948
1005
  ])) : createCommentVNode("", true)
949
- ], 14, _hoisted_1$8);
1006
+ ], 14, _hoisted_1$9);
950
1007
  };
951
1008
  }
952
1009
  });
953
1010
 
954
- const Checkbox = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-29384d40"]]);
1011
+ const Checkbox = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-29384d40"]]);
955
1012
 
956
- const _hoisted_1$7 = ["for"];
957
- const _hoisted_2$7 = ["id", "checked", "disabled", "value"];
958
- const _hoisted_3$7 = {
1013
+ const _hoisted_1$8 = ["for"];
1014
+ const _hoisted_2$8 = ["id", "checked", "disabled", "value"];
1015
+ const _hoisted_3$8 = {
959
1016
  key: 0,
960
1017
  class: "radio__label"
961
1018
  };
962
- const _sfc_main$9 = /* @__PURE__ */ defineComponent({
1019
+ const _sfc_main$a = /* @__PURE__ */ defineComponent({
963
1020
  __name: "RadioButton",
964
1021
  props: {
965
1022
  modelValue: {
@@ -1041,7 +1098,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
1041
1098
  disabled: __props.disabled,
1042
1099
  value: __props.value,
1043
1100
  onChange: handleChange
1044
- }, null, 40, _hoisted_2$7),
1101
+ }, null, 40, _hoisted_2$8),
1045
1102
  createElementVNode("span", {
1046
1103
  class: normalizeClass(["radio__container", { "radio__container--rounded": __props.rounded }])
1047
1104
  }, [
@@ -1050,15 +1107,15 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
1050
1107
  class: normalizeClass(["radio__dot", { "radio__dot--animated": __props.hasAnimation }])
1051
1108
  }, null, 2)) : createCommentVNode("", true)
1052
1109
  ], 2),
1053
- _ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_3$7, [
1110
+ _ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_3$8, [
1054
1111
  renderSlot(_ctx.$slots, "default", {}, void 0, true)
1055
1112
  ])) : createCommentVNode("", true)
1056
- ], 14, _hoisted_1$7);
1113
+ ], 14, _hoisted_1$8);
1057
1114
  };
1058
1115
  }
1059
1116
  });
1060
1117
 
1061
- const RadioButton = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-50110fea"]]);
1118
+ const RadioButton = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-50110fea"]]);
1062
1119
 
1063
1120
  var TextSize = /* @__PURE__ */ ((TextSize2) => {
1064
1121
  TextSize2["EXTRA_SMALL"] = "xs";
@@ -1079,7 +1136,7 @@ var HeadingLevel = /* @__PURE__ */ ((HeadingLevel2) => {
1079
1136
  return HeadingLevel2;
1080
1137
  })(HeadingLevel || {});
1081
1138
 
1082
- const _sfc_main$8 = /* @__PURE__ */ defineComponent({
1139
+ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
1083
1140
  __name: "Text",
1084
1141
  props: {
1085
1142
  size: {
@@ -1110,9 +1167,9 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
1110
1167
  }
1111
1168
  });
1112
1169
 
1113
- const Text = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-e52f8226"]]);
1170
+ const Text = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-e52f8226"]]);
1114
1171
 
1115
- const _sfc_main$7 = /* @__PURE__ */ defineComponent({
1172
+ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
1116
1173
  __name: "Heading",
1117
1174
  props: {
1118
1175
  level: {
@@ -1150,20 +1207,20 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
1150
1207
  }
1151
1208
  });
1152
1209
 
1153
- const Heading = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-35210bc7"]]);
1210
+ const Heading = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-35210bc7"]]);
1154
1211
 
1155
- const _hoisted_1$6 = { class: "modal__header" };
1156
- const _hoisted_2$6 = { class: "modal__title" };
1157
- const _hoisted_3$6 = { class: "modal__content" };
1158
- const _hoisted_4$5 = {
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 = {
1159
1216
  key: 0,
1160
1217
  class: "modal__footer"
1161
1218
  };
1162
- const _hoisted_5$5 = {
1219
+ const _hoisted_5$6 = {
1163
1220
  key: 1,
1164
1221
  class: "modal__footer"
1165
1222
  };
1166
- const _sfc_main$6 = /* @__PURE__ */ defineComponent({
1223
+ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
1167
1224
  __name: "Modal",
1168
1225
  props: {
1169
1226
  title: {
@@ -1242,7 +1299,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
1242
1299
  createElementVNode("div", {
1243
1300
  class: normalizeClass(["modal__container", [`modal__container--${__props.size}`]])
1244
1301
  }, [
1245
- createElementVNode("div", _hoisted_1$6, [
1302
+ createElementVNode("div", _hoisted_1$7, [
1246
1303
  __props.showBackButton ? (openBlock(), createBlock(unref(HpButtonIcon), {
1247
1304
  key: 0,
1248
1305
  class: "modal__back-button",
@@ -1251,7 +1308,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
1251
1308
  label: "Botão de voltar",
1252
1309
  onClick: handleBackClick
1253
1310
  })) : createCommentVNode("", true),
1254
- createElementVNode("h2", _hoisted_2$6, toDisplayString(__props.title), 1),
1311
+ createElementVNode("h2", _hoisted_2$7, toDisplayString(__props.title), 1),
1255
1312
  __props.showCloseButton ? (openBlock(), createBlock(unref(HpButtonIcon), {
1256
1313
  key: 1,
1257
1314
  class: "modal__close-button",
@@ -1261,10 +1318,10 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
1261
1318
  onClick: handleCloseModal
1262
1319
  })) : createCommentVNode("", true)
1263
1320
  ]),
1264
- createElementVNode("div", _hoisted_3$6, [
1321
+ createElementVNode("div", _hoisted_3$7, [
1265
1322
  renderSlot(_ctx.$slots, "default", {}, void 0, true)
1266
1323
  ]),
1267
- __props.hasPrimaryButton || __props.hasSecondaryButton ? (openBlock(), createElementBlock("div", _hoisted_4$5, [
1324
+ __props.hasPrimaryButton || __props.hasSecondaryButton ? (openBlock(), createElementBlock("div", _hoisted_4$6, [
1268
1325
  __props.hasSecondaryButton ? (openBlock(), createBlock(unref(HpButtonSecondary), {
1269
1326
  key: 0,
1270
1327
  label: __props.secondaryButtonLabel,
@@ -1278,7 +1335,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
1278
1335
  onClick: handleSecondaryButtonClick
1279
1336
  }, null, 8, ["label", "backgroundColor"])) : createCommentVNode("", true)
1280
1337
  ])) : createCommentVNode("", true),
1281
- !__props.hasPrimaryButton && !__props.hasSecondaryButton && _ctx.$slots.buttons ? (openBlock(), createElementBlock("div", _hoisted_5$5, [
1338
+ !__props.hasPrimaryButton && !__props.hasSecondaryButton && _ctx.$slots.buttons ? (openBlock(), createElementBlock("div", _hoisted_5$6, [
1282
1339
  renderSlot(_ctx.$slots, "buttons", {}, void 0, true)
1283
1340
  ])) : createCommentVNode("", true)
1284
1341
  ], 2)
@@ -1290,15 +1347,15 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
1290
1347
  }
1291
1348
  });
1292
1349
 
1293
- const Modal = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-cdf63c2b"]]);
1350
+ const Modal = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-cdf63c2b"]]);
1294
1351
 
1295
- const _hoisted_1$5 = ["id", "checked", "disabled", "aria-checked", "aria-labelledby"];
1296
- const _hoisted_2$5 = ["for", "id", "tabindex", "onKeydown"];
1297
- const _hoisted_3$5 = {
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 = {
1298
1355
  key: 0,
1299
1356
  class: "toggle-switch__text"
1300
1357
  };
1301
- const _sfc_main$5 = /* @__PURE__ */ defineComponent({
1358
+ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
1302
1359
  __name: "ToggleSwitch",
1303
1360
  props: {
1304
1361
  modelValue: {
@@ -1363,7 +1420,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
1363
1420
  "aria-checked": __props.modelValue,
1364
1421
  "aria-labelledby": `${__props.id}-label`,
1365
1422
  tabindex: "-1"
1366
- }, null, 40, _hoisted_1$5),
1423
+ }, null, 40, _hoisted_1$6),
1367
1424
  createElementVNode("label", {
1368
1425
  for: __props.id,
1369
1426
  class: "toggle-switch__label",
@@ -1384,28 +1441,28 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
1384
1441
  style: normalizeStyle({ "--thumb-color": computedThumbColor.value })
1385
1442
  }, null, 4)
1386
1443
  ], 4),
1387
- _ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_3$5, [
1444
+ _ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_3$6, [
1388
1445
  renderSlot(_ctx.$slots, "default", {}, void 0, true)
1389
1446
  ])) : createCommentVNode("", true)
1390
- ], 44, _hoisted_2$5)
1447
+ ], 44, _hoisted_2$6)
1391
1448
  ], 2);
1392
1449
  };
1393
1450
  }
1394
1451
  });
1395
1452
 
1396
- const ToggleSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-14c54b46"]]);
1453
+ const ToggleSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-14c54b46"]]);
1397
1454
 
1398
- const _hoisted_1$4 = { key: 0 };
1399
- const _hoisted_2$4 = ["aria-checked", "onKeydown"];
1400
- const _hoisted_3$4 = {
1455
+ const _hoisted_1$5 = { key: 0 };
1456
+ const _hoisted_2$5 = ["aria-checked", "onKeydown"];
1457
+ const _hoisted_3$5 = {
1401
1458
  key: 1,
1402
1459
  class: "theme-switcher-animation"
1403
1460
  };
1404
- const _hoisted_4$4 = ["id", "aria-checked"];
1405
- const _hoisted_5$4 = ["for", "onKeydown"];
1461
+ const _hoisted_4$5 = ["id", "aria-checked"];
1462
+ const _hoisted_5$5 = ["for", "onKeydown"];
1406
1463
 
1407
1464
 
1408
- const _sfc_main$4 = {
1465
+ const _sfc_main$5 = {
1409
1466
  __name: 'ThemeSwitcher',
1410
1467
  props: {
1411
1468
  modelValue: {
@@ -1517,7 +1574,7 @@ const computedDarkBackgroundColor = computed(
1517
1574
 
1518
1575
  return (_ctx, _cache) => {
1519
1576
  return (!__props.hasAnimation)
1520
- ? (openBlock(), createElementBlock("div", _hoisted_1$4, [
1577
+ ? (openBlock(), createElementBlock("div", _hoisted_1$5, [
1521
1578
  createElementVNode("button", {
1522
1579
  class: "theme-switcher",
1523
1580
  type: "button",
@@ -1540,9 +1597,9 @@ return (_ctx, _cache) => {
1540
1597
  size: "sm",
1541
1598
  color: computedButtonIconColor.value
1542
1599
  }, null, 8, ["name", "color"])
1543
- ], 44, _hoisted_2$4)
1600
+ ], 44, _hoisted_2$5)
1544
1601
  ]))
1545
- : (openBlock(), createElementBlock("div", _hoisted_3$4, [
1602
+ : (openBlock(), createElementBlock("div", _hoisted_3$5, [
1546
1603
  withDirectives(createElementVNode("input", {
1547
1604
  type: "checkbox",
1548
1605
  id: __props.id,
@@ -1553,7 +1610,7 @@ return (_ctx, _cache) => {
1553
1610
  "aria-checked": isDarkMode.value,
1554
1611
  "aria-label": "Alternar entre tema claro e escuro",
1555
1612
  tabindex: "-1"
1556
- }, null, 40, _hoisted_4$4), [
1613
+ }, null, 40, _hoisted_4$5), [
1557
1614
  [vModelCheckbox, isDarkMode.value]
1558
1615
  ]),
1559
1616
  createElementVNode("label", {
@@ -1572,22 +1629,22 @@ return (_ctx, _cache) => {
1572
1629
  ]
1573
1630
  }, _cache[1] || (_cache[1] = [
1574
1631
  createElementVNode("span", { class: "toggle--label-background" }, null, -1)
1575
- ]), 44, _hoisted_5$4)
1632
+ ]), 44, _hoisted_5$5)
1576
1633
  ]))
1577
1634
  }
1578
1635
  }
1579
1636
 
1580
1637
  };
1581
- const ThemeSwitcher = /*#__PURE__*/_export_sfc(_sfc_main$4, [['__scopeId',"data-v-7efca676"]]);
1638
+ const ThemeSwitcher = /*#__PURE__*/_export_sfc(_sfc_main$5, [['__scopeId',"data-v-7efca676"]]);
1582
1639
 
1583
- const _hoisted_1$3 = { class: "input__fieldset" };
1584
- const _hoisted_2$3 = {
1640
+ const _hoisted_1$4 = { class: "input__fieldset" };
1641
+ const _hoisted_2$4 = {
1585
1642
  style: {"display":"none"},
1586
1643
  "aria-hidden": true
1587
1644
  };
1588
- const _hoisted_3$3 = ["for"];
1589
- const _hoisted_4$3 = { class: "input__wrapper" };
1590
- const _hoisted_5$3 = ["id", "value", "readonly", "aria-readonly", "disabled", "placeholder", "required", "maxlength", "aria-labelledby", "aria-describedby", "aria-invalid"];
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"];
1591
1648
  const _hoisted_6$3 = { class: "input__footer" };
1592
1649
  const _hoisted_7$3 = ["id"];
1593
1650
  const _hoisted_8$3 = {
@@ -1596,7 +1653,7 @@ const _hoisted_8$3 = {
1596
1653
  };
1597
1654
 
1598
1655
 
1599
- const _sfc_main$3 = {
1656
+ const _sfc_main$4 = {
1600
1657
  __name: 'InputText',
1601
1658
  props: {
1602
1659
  modelValue: {
@@ -1723,16 +1780,16 @@ return (_ctx, _cache) => {
1723
1780
  '--icon-padding-right': __props.trailingIcon ? '32px' : '0px'
1724
1781
  })
1725
1782
  }, [
1726
- createElementVNode("fieldset", _hoisted_1$3, [
1727
- createElementVNode("legend", _hoisted_2$3, toDisplayString(__props.label), 1),
1783
+ createElementVNode("fieldset", _hoisted_1$4, [
1784
+ createElementVNode("legend", _hoisted_2$4, toDisplayString(__props.label), 1),
1728
1785
  (isFocused.value || __props.modelValue !== '' || __props.placeholder !== '')
1729
1786
  ? (openBlock(), createElementBlock("label", {
1730
1787
  key: 0,
1731
1788
  for: __props.id,
1732
1789
  class: normalizeClass(["input__label", { 'input__label--required': __props.required }])
1733
- }, toDisplayString(__props.label), 11, _hoisted_3$3))
1790
+ }, toDisplayString(__props.label), 11, _hoisted_3$4))
1734
1791
  : createCommentVNode("", true),
1735
- createElementVNode("div", _hoisted_4$3, [
1792
+ createElementVNode("div", _hoisted_4$4, [
1736
1793
  (__props.leadingIcon)
1737
1794
  ? (openBlock(), createBlock(unref(HpIcon), {
1738
1795
  key: 0,
@@ -1761,7 +1818,7 @@ return (_ctx, _cache) => {
1761
1818
  "aria-labelledby": `${__props.id}-label`,
1762
1819
  "aria-describedby": __props.helperText ? `${__props.id}-helper-text` : undefined,
1763
1820
  "aria-invalid": __props.status === 'error'
1764
- }, null, 40, _hoisted_5$3),
1821
+ }, null, 40, _hoisted_5$4),
1765
1822
  (__props.iconHasAction && __props.trailingIcon)
1766
1823
  ? (openBlock(), createBlock(unref(HpButtonIcon), {
1767
1824
  key: 1,
@@ -1802,16 +1859,16 @@ return (_ctx, _cache) => {
1802
1859
  }
1803
1860
 
1804
1861
  };
1805
- const InputText = /*#__PURE__*/_export_sfc(_sfc_main$3, [['__scopeId',"data-v-6450d99a"]]);
1862
+ const InputText = /*#__PURE__*/_export_sfc(_sfc_main$4, [['__scopeId',"data-v-6450d99a"]]);
1806
1863
 
1807
- const _hoisted_1$2 = { class: "input__fieldset" };
1808
- const _hoisted_2$2 = {
1864
+ const _hoisted_1$3 = { class: "input__fieldset" };
1865
+ const _hoisted_2$3 = {
1809
1866
  style: {"display":"none"},
1810
1867
  "aria-hidden": true
1811
1868
  };
1812
- const _hoisted_3$2 = ["for"];
1813
- const _hoisted_4$2 = { class: "input__wrapper" };
1814
- const _hoisted_5$2 = ["id", "value", "readonly", "aria-readonly", "disabled", "placeholder", "required", "min", "max", "aria-labelledby", "aria-describedby", "aria-invalid"];
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"];
1815
1872
  const _hoisted_6$2 = { class: "input__buttons-container" };
1816
1873
  const _hoisted_7$2 = ["disabled", "aria-label"];
1817
1874
  const _hoisted_8$2 = ["disabled", "aria-label"];
@@ -1819,7 +1876,7 @@ const _hoisted_9$2 = { class: "input__footer" };
1819
1876
  const _hoisted_10$2 = ["id"];
1820
1877
 
1821
1878
 
1822
- const _sfc_main$2 = {
1879
+ const _sfc_main$3 = {
1823
1880
  __name: 'InputNumber',
1824
1881
  props: {
1825
1882
  modelValue: {
@@ -1985,16 +2042,16 @@ return (_ctx, _cache) => {
1985
2042
  '--icon-padding-left': __props.leadingIcon ? '24px' : '0px'
1986
2043
  })
1987
2044
  }, [
1988
- createElementVNode("fieldset", _hoisted_1$2, [
1989
- createElementVNode("legend", _hoisted_2$2, toDisplayString(__props.label), 1),
2045
+ createElementVNode("fieldset", _hoisted_1$3, [
2046
+ createElementVNode("legend", _hoisted_2$3, toDisplayString(__props.label), 1),
1990
2047
  (isFocused.value || modelValueFormatted.value !== null || __props.placeholder !== '')
1991
2048
  ? (openBlock(), createElementBlock("label", {
1992
2049
  key: 0,
1993
2050
  for: __props.id,
1994
2051
  class: normalizeClass(["input__label", { 'input__label--required': __props.required }])
1995
- }, toDisplayString(__props.label), 11, _hoisted_3$2))
2052
+ }, toDisplayString(__props.label), 11, _hoisted_3$3))
1996
2053
  : createCommentVNode("", true),
1997
- createElementVNode("div", _hoisted_4$2, [
2054
+ createElementVNode("div", _hoisted_4$3, [
1998
2055
  (__props.leadingIcon)
1999
2056
  ? (openBlock(), createBlock(unref(HpIcon), {
2000
2057
  key: 0,
@@ -2025,7 +2082,7 @@ return (_ctx, _cache) => {
2025
2082
  "aria-labelledby": `${__props.id}-label`,
2026
2083
  "aria-describedby": __props.helperText ? `${__props.id}-helper-text` : undefined,
2027
2084
  "aria-invalid": __props.status === 'error'
2028
- }, null, 40, _hoisted_5$2),
2085
+ }, null, 40, _hoisted_5$3),
2029
2086
  createElementVNode("div", _hoisted_6$2, [
2030
2087
  createElementVNode("button", {
2031
2088
  type: "button",
@@ -2071,19 +2128,19 @@ return (_ctx, _cache) => {
2071
2128
  }
2072
2129
 
2073
2130
  };
2074
- const InputNumber = /*#__PURE__*/_export_sfc(_sfc_main$2, [['__scopeId',"data-v-7f20743b"]]);
2131
+ const InputNumber = /*#__PURE__*/_export_sfc(_sfc_main$3, [['__scopeId',"data-v-7f20743b"]]);
2075
2132
 
2076
- const _hoisted_1$1 = { class: "input__fieldset" };
2077
- const _hoisted_2$1 = {
2133
+ const _hoisted_1$2 = { class: "input__fieldset" };
2134
+ const _hoisted_2$2 = {
2078
2135
  style: {"display":"none"},
2079
2136
  "aria-hidden": true
2080
2137
  };
2081
- const _hoisted_3$1 = ["for", "id"];
2082
- const _hoisted_4$1 = {
2138
+ const _hoisted_3$2 = ["for", "id"];
2139
+ const _hoisted_4$2 = {
2083
2140
  key: 0,
2084
2141
  class: "required-asterisk"
2085
2142
  };
2086
- const _hoisted_5$1 = { class: "input__wrapper" };
2143
+ const _hoisted_5$2 = { class: "input__wrapper" };
2087
2144
  const _hoisted_6$1 = {
2088
2145
  key: 0,
2089
2146
  class: "autocomplete-wrapper"
@@ -2111,7 +2168,7 @@ const _hoisted_20 = {
2111
2168
  };
2112
2169
 
2113
2170
 
2114
- const _sfc_main$1 = {
2171
+ const _sfc_main$2 = {
2115
2172
  __name: 'InputSelect',
2116
2173
  props: {
2117
2174
  modelValue: {
@@ -2395,8 +2452,8 @@ return (_ctx, _cache) => {
2395
2452
  ref_key: "select",
2396
2453
  ref: select
2397
2454
  }, [
2398
- createElementVNode("fieldset", _hoisted_1$1, [
2399
- createElementVNode("legend", _hoisted_2$1, toDisplayString(__props.label), 1),
2455
+ createElementVNode("fieldset", _hoisted_1$2, [
2456
+ createElementVNode("legend", _hoisted_2$2, toDisplayString(__props.label), 1),
2400
2457
  (__props.modelValue !== null || __props.placeholder !== '')
2401
2458
  ? (openBlock(), createElementBlock("label", {
2402
2459
  key: 0,
@@ -2406,11 +2463,11 @@ return (_ctx, _cache) => {
2406
2463
  }, [
2407
2464
  createTextVNode(toDisplayString(__props.label) + " ", 1),
2408
2465
  (__props.required)
2409
- ? (openBlock(), createElementBlock("span", _hoisted_4$1, "*"))
2466
+ ? (openBlock(), createElementBlock("span", _hoisted_4$2, "*"))
2410
2467
  : createCommentVNode("", true)
2411
- ], 10, _hoisted_3$1))
2468
+ ], 10, _hoisted_3$2))
2412
2469
  : createCommentVNode("", true),
2413
- createElementVNode("div", _hoisted_5$1, [
2470
+ createElementVNode("div", _hoisted_5$2, [
2414
2471
  (__props.autocomplete)
2415
2472
  ? (openBlock(), createElementBlock("div", _hoisted_6$1, [
2416
2473
  withDirectives(createElementVNode("input", {
@@ -2598,19 +2655,19 @@ return (_ctx, _cache) => {
2598
2655
  }
2599
2656
 
2600
2657
  };
2601
- const InputSelect = /*#__PURE__*/_export_sfc(_sfc_main$1, [['__scopeId',"data-v-00cdf827"]]);
2658
+ const InputSelect = /*#__PURE__*/_export_sfc(_sfc_main$2, [['__scopeId',"data-v-00cdf827"]]);
2602
2659
 
2603
- const _hoisted_1 = { class: "input-range__fieldset" };
2604
- const _hoisted_2 = {
2660
+ const _hoisted_1$1 = { class: "input-range__fieldset" };
2661
+ const _hoisted_2$1 = {
2605
2662
  key: 0,
2606
2663
  class: "input-range__legend"
2607
2664
  };
2608
- const _hoisted_3 = {
2665
+ const _hoisted_3$1 = {
2609
2666
  key: 0,
2610
2667
  class: "input-range__required"
2611
2668
  };
2612
- const _hoisted_4 = { class: "input-range__wrapper" };
2613
- 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"];
2614
2671
  const _hoisted_6 = { class: "input-range__value-display" };
2615
2672
  const _hoisted_7 = { class: "input-range__value" };
2616
2673
  const _hoisted_8 = {
@@ -2624,7 +2681,7 @@ const _hoisted_9 = {
2624
2681
  const _hoisted_10 = ["id"];
2625
2682
 
2626
2683
 
2627
- const _sfc_main = {
2684
+ const _sfc_main$1 = {
2628
2685
  __name: 'InputRange',
2629
2686
  props: {
2630
2687
  modelValue: {
@@ -2707,16 +2764,16 @@ return (_ctx, _cache) => {
2707
2764
  [`input-range--${__props.status}`]: __props.status !== 'default'
2708
2765
  }])
2709
2766
  }, [
2710
- createElementVNode("fieldset", _hoisted_1, [
2767
+ createElementVNode("fieldset", _hoisted_1$1, [
2711
2768
  (__props.label)
2712
- ? (openBlock(), createElementBlock("legend", _hoisted_2, [
2769
+ ? (openBlock(), createElementBlock("legend", _hoisted_2$1, [
2713
2770
  createTextVNode(toDisplayString(__props.label) + " ", 1),
2714
2771
  (__props.required)
2715
- ? (openBlock(), createElementBlock("span", _hoisted_3, "*"))
2772
+ ? (openBlock(), createElementBlock("span", _hoisted_3$1, "*"))
2716
2773
  : createCommentVNode("", true)
2717
2774
  ]))
2718
2775
  : createCommentVNode("", true),
2719
- createElementVNode("div", _hoisted_4, [
2776
+ createElementVNode("div", _hoisted_4$1, [
2720
2777
  createElementVNode("input", {
2721
2778
  id: __props.id,
2722
2779
  ref_key: "input",
@@ -2735,7 +2792,7 @@ return (_ctx, _cache) => {
2735
2792
  "aria-valuenow": __props.modelValue,
2736
2793
  "aria-labelledby": `${__props.id}-label`,
2737
2794
  "aria-describedby": __props.helperText ? `${__props.id}-helper` : undefined
2738
- }, null, 40, _hoisted_5),
2795
+ }, null, 40, _hoisted_5$1),
2739
2796
  createElementVNode("div", _hoisted_6, [
2740
2797
  createElementVNode("span", _hoisted_7, toDisplayString(__props.modelValue), 1),
2741
2798
  (__props.unit)
@@ -2757,7 +2814,82 @@ return (_ctx, _cache) => {
2757
2814
  }
2758
2815
 
2759
2816
  };
2760
- 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"]]);
2761
2893
 
2762
2894
  const components = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
2763
2895
  __proto__: null,
@@ -2767,6 +2899,7 @@ const components = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty
2767
2899
  HpButtonPrimary,
2768
2900
  HpButtonSecondary,
2769
2901
  HpButtonTertiary: ButtonTertiary,
2902
+ HpCard: Card,
2770
2903
  HpCheckbox: Checkbox,
2771
2904
  HpHeading: Heading,
2772
2905
  HpIcon,
@@ -2775,8 +2908,9 @@ const components = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty
2775
2908
  HpInputSelect: InputSelect,
2776
2909
  HpInputText: InputText,
2777
2910
  HpModal: Modal,
2911
+ HpProgressBar: ProgressBar,
2778
2912
  HpRadioButton: RadioButton,
2779
- HpSpinnerLoader: _sfc_main$b,
2913
+ HpSpinnerLoader: _sfc_main$c,
2780
2914
  HpText: Text,
2781
2915
  HpThemeSwitcher: ThemeSwitcher,
2782
2916
  HpToggleSwitch: ToggleSwitch
@@ -2817,5 +2951,5 @@ const index = {
2817
2951
  ...components
2818
2952
  };
2819
2953
 
2820
- export { Alert as HpAlert, HpButtonIcon, ButtonLetter as HpButtonLetter, HpButtonPrimary, HpButtonSecondary, ButtonTertiary as HpButtonTertiary, 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$b as HpSpinnerLoader, Text as HpText, ThemeSwitcher as HpThemeSwitcher, ToggleSwitch as HpToggleSwitch, index as default };
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 };
2821
2955
  //# sourceMappingURL=hp-design-system.es.js.map