@henriquepetrelli/hp-design-system 1.1.29 → 1.1.30

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.
@@ -1664,6 +1664,10 @@ const _sfc_main$5 = {
1664
1664
  type: String,
1665
1665
  required: true
1666
1666
  },
1667
+ hideLabel: {
1668
+ type: Boolean,
1669
+ default: false
1670
+ },
1667
1671
  id: {
1668
1672
  type: String,
1669
1673
  default: () => `input-text-${Math.random().toString(36).substring(2, 9)}`
@@ -1727,6 +1731,11 @@ const emit = __emit;
1727
1731
 
1728
1732
  const input = ref(null);
1729
1733
  const isFocused = ref(false);
1734
+ const showInputLabel = computed(
1735
+ () =>
1736
+ !props.hideLabel &&
1737
+ (isFocused || props.modelValue !== '' || props.placeholder !== '')
1738
+ );
1730
1739
  const hasValue = computed(() => String(props.modelValue).length > 0);
1731
1740
  const hasPlaceholder = computed(() => String(props.placeholder).length > 0);
1732
1741
  const placeholderFormatted = computed(() => {
@@ -1782,7 +1791,7 @@ return (_ctx, _cache) => {
1782
1791
  }, [
1783
1792
  createElementVNode("fieldset", _hoisted_1$5, [
1784
1793
  createElementVNode("legend", _hoisted_2$5, toDisplayString(__props.label), 1),
1785
- (isFocused.value || __props.modelValue !== '' || __props.placeholder !== '')
1794
+ (showInputLabel.value)
1786
1795
  ? (openBlock(), createElementBlock("label", {
1787
1796
  key: 0,
1788
1797
  for: __props.id,
@@ -1859,7 +1868,7 @@ return (_ctx, _cache) => {
1859
1868
  }
1860
1869
 
1861
1870
  };
1862
- const HpInputText = /*#__PURE__*/_export_sfc(_sfc_main$5, [['__scopeId',"data-v-6450d99a"]]);
1871
+ const HpInputText = /*#__PURE__*/_export_sfc(_sfc_main$5, [['__scopeId',"data-v-e05af4c2"]]);
1863
1872
 
1864
1873
  const _hoisted_1$4 = { class: "input__fieldset" };
1865
1874
  const _hoisted_2$4 = {
@@ -2947,11 +2956,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
2947
2956
  key: 0,
2948
2957
  class: "data-table__search",
2949
2958
  leadingIcon: "BE0090",
2950
- placeholder: __props.placeholderSearch,
2951
2959
  "model-value": search.value,
2952
2960
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => search.value = $event),
2953
- "aria-label": __props.placeholderSearch
2954
- }, null, 8, ["placeholder", "model-value", "aria-label"])) : createCommentVNode("", true),
2961
+ "aria-label": __props.placeholderSearch,
2962
+ label: __props.placeholderSearch,
2963
+ hideLabel: true
2964
+ }, null, 8, ["model-value", "aria-label", "label"])) : createCommentVNode("", true),
2955
2965
  createElementVNode("table", _hoisted_1, [
2956
2966
  createElementVNode("thead", null, [
2957
2967
  createElementVNode("tr", _hoisted_2, [
@@ -3029,7 +3039,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
3029
3039
  }
3030
3040
  });
3031
3041
 
3032
- const DataTable = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-5012aa82"]]);
3042
+ const DataTable = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-a06a935f"]]);
3033
3043
 
3034
3044
  const components = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
3035
3045
  __proto__: null,