@hunter-industries/hunter-components 0.0.84 → 0.0.86
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/hunter-components.js +6 -11
- package/dist/hunter-components.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/dist/types/components/Button/Button.vue.d.ts.map +1 -1
- package/dist/types/components/Form/index.vue.d.ts.map +1 -1
- package/dist/types/components/Icon/Icon.vue.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -2216,7 +2216,6 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
2216
2216
|
if (flipIcon.value) {
|
|
2217
2217
|
classes.push(`hcl-flip-icon ${flipIcon.value}`);
|
|
2218
2218
|
}
|
|
2219
|
-
console.log("SQ", props.aspectSquare);
|
|
2220
2219
|
return classes;
|
|
2221
2220
|
});
|
|
2222
2221
|
__expose({
|
|
@@ -2243,7 +2242,7 @@ const _export_sfc = (sfc, props) => {
|
|
|
2243
2242
|
}
|
|
2244
2243
|
return target;
|
|
2245
2244
|
};
|
|
2246
|
-
const Icon = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-
|
|
2245
|
+
const Icon = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-0196d45f"]]);
|
|
2247
2246
|
const unitRegex = /(ch|em|rem|ex|px|cm|mm|in|pt|pc|vh|vw|vmin|vmax|svh|lvh|dvh|svw|lvw|dvw|%)$/i;
|
|
2248
2247
|
const keywordOrFuncRegex = /^(auto|min-content|max-content|fit-content\(.+\)|calc\(.+\)|clamp\(.+\)|min\(.+\)|max\(.+\)|var\(--[^)]+\))$/i;
|
|
2249
2248
|
const convertValueToCssSizeProperty = (value) => {
|
|
@@ -2354,7 +2353,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
2354
2353
|
},
|
|
2355
2354
|
setup(__props, { expose: __expose }) {
|
|
2356
2355
|
const props = __props;
|
|
2357
|
-
const { iconClass, status, iconPosition } = toRefs(props);
|
|
2356
|
+
const { iconClass, status, iconPosition, iconSize } = toRefs(props);
|
|
2358
2357
|
const buttonIcon = ref();
|
|
2359
2358
|
const isHovered = ref(false);
|
|
2360
2359
|
const baseLabel = computed(() => {
|
|
@@ -2400,13 +2399,11 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
2400
2399
|
return v || "primary";
|
|
2401
2400
|
});
|
|
2402
2401
|
const buttonClasses = computed(() => {
|
|
2403
|
-
console.log("TEST", isIconButton.value, buttonVariant.value);
|
|
2404
2402
|
const defaultClass = buttonVariant.value && `hunter-button_${buttonVariant.value}`;
|
|
2405
|
-
console.log("DEF", defaultClass);
|
|
2406
2403
|
const statusClass = props.useStatusStyles === true && status.value !== "idle" && !props.disabled ? `hunter-button_${status.value}` : void 0;
|
|
2407
2404
|
const flipClass = props.icon && iconPosition.value === "left" ? "hunter-button_flip-icon-position" : void 0;
|
|
2408
2405
|
const ellipsisClass = props.animatePendingEllipsis === true && status.value === "pending" ? "hunter-button_animate-ellipsis" : void 0;
|
|
2409
|
-
const iconSizeClass = isIconButton.value === true ? `hcl-icon-size_${
|
|
2406
|
+
const iconSizeClass = isIconButton.value === true ? `hcl-icon-size_${(iconSize == null ? void 0 : iconSize.value) || "default"}` : void 0;
|
|
2410
2407
|
const classes = [
|
|
2411
2408
|
defaultClass,
|
|
2412
2409
|
statusClass,
|
|
@@ -2414,7 +2411,6 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
2414
2411
|
ellipsisClass,
|
|
2415
2412
|
iconSizeClass
|
|
2416
2413
|
].filter(Boolean);
|
|
2417
|
-
console.log("CL", classes);
|
|
2418
2414
|
return classes;
|
|
2419
2415
|
});
|
|
2420
2416
|
const buttonEl = ref(null);
|
|
@@ -2462,7 +2458,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
2462
2458
|
ref_key: "buttonIcon",
|
|
2463
2459
|
ref: buttonIcon,
|
|
2464
2460
|
name: _ctx.icon,
|
|
2465
|
-
size:
|
|
2461
|
+
size: unref(iconSize) || "default",
|
|
2466
2462
|
class: normalizeClass(["hunter-button__icon", [
|
|
2467
2463
|
isHovered.value === true && _ctx.iconHoverClass ? [_ctx.iconHoverClass].flat().join(" ") : ""
|
|
2468
2464
|
]]),
|
|
@@ -3421,7 +3417,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
3421
3417
|
}
|
|
3422
3418
|
});
|
|
3423
3419
|
const FormInput = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-7719e3d0"]]);
|
|
3424
|
-
const _withScopeId = (n) => (pushScopeId("data-v-
|
|
3420
|
+
const _withScopeId = (n) => (pushScopeId("data-v-d49ef131"), n = n(), popScopeId(), n);
|
|
3425
3421
|
const _hoisted_1$3 = { class: "unit-selection-container" };
|
|
3426
3422
|
const _hoisted_2$2 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("span", { class: "font-medium" }, "Units", -1));
|
|
3427
3423
|
const _hoisted_3$1 = { class: "unit-selection" };
|
|
@@ -3498,7 +3494,6 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
3498
3494
|
},
|
|
3499
3495
|
...formInputs.value
|
|
3500
3496
|
];
|
|
3501
|
-
console.log("STAT", status.value, isValid);
|
|
3502
3497
|
emit("submitForm", { inputs: data, status: status.value, isValid });
|
|
3503
3498
|
if (!isValid) {
|
|
3504
3499
|
formInputs.value.forEach((input) => {
|
|
@@ -3646,7 +3641,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
3646
3641
|
};
|
|
3647
3642
|
}
|
|
3648
3643
|
});
|
|
3649
|
-
const index = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-
|
|
3644
|
+
const index = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-d49ef131"]]);
|
|
3650
3645
|
const _hoisted_1$2 = ["href"];
|
|
3651
3646
|
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
3652
3647
|
__name: "Link",
|