@henriquepetrelli/hp-design-system 1.1.29 → 1.1.31

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.
@@ -1668,6 +1668,10 @@
1668
1668
  type: String,
1669
1669
  required: true
1670
1670
  },
1671
+ hideLabel: {
1672
+ type: Boolean,
1673
+ default: false
1674
+ },
1671
1675
  id: {
1672
1676
  type: String,
1673
1677
  default: () => `input-text-${Math.random().toString(36).substring(2, 9)}`
@@ -1731,6 +1735,11 @@
1731
1735
 
1732
1736
  const input = vue.ref(null);
1733
1737
  const isFocused = vue.ref(false);
1738
+ const showInputLabel = vue.computed(
1739
+ () =>
1740
+ !props.hideLabel &&
1741
+ (isFocused || props.modelValue !== '' || props.placeholder !== '')
1742
+ );
1734
1743
  const hasValue = vue.computed(() => String(props.modelValue).length > 0);
1735
1744
  const hasPlaceholder = vue.computed(() => String(props.placeholder).length > 0);
1736
1745
  const placeholderFormatted = vue.computed(() => {
@@ -1786,7 +1795,7 @@
1786
1795
  }, [
1787
1796
  vue.createElementVNode("fieldset", _hoisted_1$5, [
1788
1797
  vue.createElementVNode("legend", _hoisted_2$5, vue.toDisplayString(__props.label), 1),
1789
- (isFocused.value || __props.modelValue !== '' || __props.placeholder !== '')
1798
+ (showInputLabel.value)
1790
1799
  ? (vue.openBlock(), vue.createElementBlock("label", {
1791
1800
  key: 0,
1792
1801
  for: __props.id,
@@ -1863,7 +1872,7 @@
1863
1872
  }
1864
1873
 
1865
1874
  };
1866
- const HpInputText = /*#__PURE__*/_export_sfc(_sfc_main$5, [['__scopeId',"data-v-6450d99a"]]);
1875
+ const HpInputText = /*#__PURE__*/_export_sfc(_sfc_main$5, [['__scopeId',"data-v-e05af4c2"]]);
1867
1876
 
1868
1877
  const _hoisted_1$4 = { class: "input__fieldset" };
1869
1878
  const _hoisted_2$4 = {
@@ -2818,7 +2827,7 @@
2818
2827
  }
2819
2828
 
2820
2829
  };
2821
- const InputRange = /*#__PURE__*/_export_sfc(_sfc_main$2, [['__scopeId',"data-v-32e54a28"]]);
2830
+ const InputRange = /*#__PURE__*/_export_sfc(_sfc_main$2, [['__scopeId',"data-v-c054943e"]]);
2822
2831
 
2823
2832
  const _hoisted_1$1 = { class: "progress-bar" };
2824
2833
  const _hoisted_2$1 = {
@@ -2951,11 +2960,12 @@
2951
2960
  key: 0,
2952
2961
  class: "data-table__search",
2953
2962
  leadingIcon: "BE0090",
2954
- placeholder: __props.placeholderSearch,
2955
2963
  "model-value": search.value,
2956
2964
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => search.value = $event),
2957
- "aria-label": __props.placeholderSearch
2958
- }, null, 8, ["placeholder", "model-value", "aria-label"])) : vue.createCommentVNode("", true),
2965
+ "aria-label": __props.placeholderSearch,
2966
+ label: __props.placeholderSearch,
2967
+ hideLabel: true
2968
+ }, null, 8, ["model-value", "aria-label", "label"])) : vue.createCommentVNode("", true),
2959
2969
  vue.createElementVNode("table", _hoisted_1, [
2960
2970
  vue.createElementVNode("thead", null, [
2961
2971
  vue.createElementVNode("tr", _hoisted_2, [
@@ -3033,7 +3043,7 @@
3033
3043
  }
3034
3044
  });
3035
3045
 
3036
- const DataTable = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-5012aa82"]]);
3046
+ const DataTable = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-a06a935f"]]);
3037
3047
 
3038
3048
  const components = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
3039
3049
  __proto__: null,
@@ -3091,10 +3101,7 @@
3091
3101
  }
3092
3102
  });
3093
3103
  };
3094
- const index = {
3095
- install,
3096
- ...components
3097
- };
3104
+ const index = { install };
3098
3105
 
3099
3106
  exports.HpAlert = Alert;
3100
3107
  exports.HpButtonIcon = HpButtonIcon;
@@ -3119,6 +3126,7 @@
3119
3126
  exports.HpThemeSwitcher = ThemeSwitcher;
3120
3127
  exports.HpToggleSwitch = ToggleSwitch;
3121
3128
  exports.default = index;
3129
+ exports.install = install;
3122
3130
 
3123
3131
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
3124
3132