@hunter-industries/hunter-components 0.0.80 → 0.0.81
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 +259 -159
- package/dist/hunter-components.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/dist/types/components/Button/Button.vue.d.ts +33 -16
- package/dist/types/components/Button/Button.vue.d.ts.map +1 -1
- package/dist/types/components/Button/ButtonDropdown.vue.d.ts +20 -0
- package/dist/types/components/Button/ButtonDropdown.vue.d.ts.map +1 -0
- package/dist/types/components/Button/ButtonDropdownColors.vue.d.ts +13 -0
- package/dist/types/components/Button/ButtonDropdownColors.vue.d.ts.map +1 -0
- package/dist/types/components/Dropdown/Dropdown.vue.d.ts +2 -0
- package/dist/types/components/Dropdown/Dropdown.vue.d.ts.map +1 -1
- package/dist/types/components/Dropdown/DropdownColors.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/dist/types/components/SearchInput/SearchInput.vue.d.ts +1 -0
- package/dist/types/components/SearchInput/SearchInput.vue.d.ts.map +1 -1
- package/dist/types/components/Toast/Toast.vue.d.ts.map +1 -1
- package/dist/types/types/ui.d.ts +34 -13
- package/dist/types/types/ui.d.ts.map +1 -1
- package/dist/types/utils/extractSlotText.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { openBlock, createElementBlock, createElementVNode, createStaticVNode, defineComponent, computed, ref, createBlock, resolveDynamicComponent, normalizeClass, normalizeStyle,
|
|
1
|
+
import { openBlock, createElementBlock, createElementVNode, createStaticVNode, defineComponent, toRefs, computed, ref, createBlock, resolveDynamicComponent, mergeProps, createCommentVNode, normalizeClass, normalizeStyle, toDisplayString, renderSlot, unref, createVNode, createTextVNode, watchEffect, withDirectives, vShow, withCtx, vModelCheckbox, Fragment, renderList, watch, onBeforeUnmount, withModifiers, onMounted, vModelRadio, pushScopeId, popScopeId, vModelText } from "vue";
|
|
2
2
|
const _hoisted_1$1X = {
|
|
3
3
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4
4
|
fill: "currentColor",
|
|
@@ -1519,7 +1519,7 @@ const _hoisted_3$u = [
|
|
|
1519
1519
|
function render$m(_ctx, _cache) {
|
|
1520
1520
|
return openBlock(), createElementBlock("svg", _hoisted_1$z, [..._hoisted_3$u]);
|
|
1521
1521
|
}
|
|
1522
|
-
const
|
|
1522
|
+
const __vite_glob_0_88 = { render: render$m };
|
|
1523
1523
|
const _hoisted_1$y = {
|
|
1524
1524
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1525
1525
|
fill: "currentColor",
|
|
@@ -2032,7 +2032,7 @@ const componentFiles = /* @__PURE__ */ Object.assign({
|
|
|
2032
2032
|
"./rotate-double-arrow.svg": __vite_glob_0_85,
|
|
2033
2033
|
"./ruler.svg": __vite_glob_0_86,
|
|
2034
2034
|
"./scale.svg": __vite_glob_0_87,
|
|
2035
|
-
"./search.svg":
|
|
2035
|
+
"./search.svg": __vite_glob_0_88,
|
|
2036
2036
|
"./share.svg": __vite_glob_0_89,
|
|
2037
2037
|
"./square-outline.svg": __vite_glob_0_90,
|
|
2038
2038
|
"./square.svg": __vite_glob_0_91,
|
|
@@ -2177,39 +2177,57 @@ const hunterIconSvgs = Object.fromEntries(
|
|
|
2177
2177
|
Object.entries(rawFiles).map(([p, svg]) => [toName(p), svg])
|
|
2178
2178
|
);
|
|
2179
2179
|
const icons = hunterIconComponents;
|
|
2180
|
-
const _sfc_main$
|
|
2180
|
+
const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
2181
2181
|
__name: "Icon",
|
|
2182
2182
|
props: {
|
|
2183
2183
|
name: {},
|
|
2184
2184
|
className: {},
|
|
2185
2185
|
width: {},
|
|
2186
2186
|
height: {},
|
|
2187
|
-
size: {}
|
|
2187
|
+
size: {},
|
|
2188
|
+
fill: {},
|
|
2189
|
+
stroke: {},
|
|
2190
|
+
strokeWidth: {},
|
|
2191
|
+
flipIcon: {}
|
|
2188
2192
|
},
|
|
2189
2193
|
setup(__props, { expose: __expose }) {
|
|
2190
2194
|
const props = __props;
|
|
2195
|
+
const { flipIcon } = toRefs(props);
|
|
2191
2196
|
const iconSizeClass = computed(() => {
|
|
2192
2197
|
if (props.size) {
|
|
2193
2198
|
return `hcl-icon_size-${props.size}`;
|
|
2194
2199
|
}
|
|
2195
2200
|
});
|
|
2201
|
+
const iconProps = computed(() => {
|
|
2202
|
+
let obj = {};
|
|
2203
|
+
if (props.fill)
|
|
2204
|
+
obj.fill = props.fill || "currentColor";
|
|
2205
|
+
if (props.stroke)
|
|
2206
|
+
obj.stroke = props.stroke;
|
|
2207
|
+
if (props.strokeWidth)
|
|
2208
|
+
obj.strokeWidth = props.strokeWidth;
|
|
2209
|
+
console.log("OBJ", obj);
|
|
2210
|
+
return obj;
|
|
2211
|
+
});
|
|
2196
2212
|
const hunterIcon = ref();
|
|
2197
2213
|
const icon = computed(() => icons[props.name]);
|
|
2198
|
-
const iconClasses = computed(
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2214
|
+
const iconClasses = computed(() => {
|
|
2215
|
+
let classes = [props.className].flat();
|
|
2216
|
+
if (flipIcon.value) {
|
|
2217
|
+
classes.push(`hcl-flip-icon ${flipIcon.value}`);
|
|
2218
|
+
}
|
|
2219
|
+
return classes;
|
|
2220
|
+
});
|
|
2202
2221
|
__expose({
|
|
2203
2222
|
hunterIcon
|
|
2204
2223
|
});
|
|
2205
2224
|
return (_ctx, _cache) => {
|
|
2206
|
-
return icon.value ? (openBlock(), createBlock(resolveDynamicComponent(icon.value), {
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
style: normalizeStyle({ width: _ctx.width, height: _ctx.height }),
|
|
2225
|
+
return icon.value ? (openBlock(), createBlock(resolveDynamicComponent(icon.value), mergeProps({ key: 0 }, iconProps.value, {
|
|
2226
|
+
class: ["hcl-icon", [iconClasses.value, iconSizeClass.value, {}]],
|
|
2227
|
+
style: { width: _ctx.width, height: _ctx.height },
|
|
2210
2228
|
ref_key: "hunterIcon",
|
|
2211
2229
|
ref: hunterIcon
|
|
2212
|
-
}, null,
|
|
2230
|
+
}), null, 16, ["class", "style"])) : createCommentVNode("", true);
|
|
2213
2231
|
};
|
|
2214
2232
|
}
|
|
2215
2233
|
});
|
|
@@ -2220,7 +2238,7 @@ const _export_sfc = (sfc, props) => {
|
|
|
2220
2238
|
}
|
|
2221
2239
|
return target;
|
|
2222
2240
|
};
|
|
2223
|
-
const Icon = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2241
|
+
const Icon = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-1f4dafc5"]]);
|
|
2224
2242
|
const unitRegex = /(ch|em|rem|ex|px|cm|mm|in|pt|pc|vh|vw|vmin|vmax|svh|lvh|dvh|svw|lvw|dvw|%)$/i;
|
|
2225
2243
|
const keywordOrFuncRegex = /^(auto|min-content|max-content|fit-content\(.+\)|calc\(.+\)|clamp\(.+\)|min\(.+\)|max\(.+\)|var\(--[^)]+\))$/i;
|
|
2226
2244
|
const convertValueToCssSizeProperty = (value) => {
|
|
@@ -2289,7 +2307,7 @@ const validateForm = (inputs) => {
|
|
|
2289
2307
|
return { inputs, isValid };
|
|
2290
2308
|
};
|
|
2291
2309
|
const _hoisted_1$c = ["id", "aria-disabled", "type"];
|
|
2292
|
-
const _sfc_main$
|
|
2310
|
+
const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
2293
2311
|
__name: "Button",
|
|
2294
2312
|
props: {
|
|
2295
2313
|
variant: {},
|
|
@@ -2313,6 +2331,9 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
2313
2331
|
iconWidth: {},
|
|
2314
2332
|
iconHeight: {},
|
|
2315
2333
|
iconSize: {},
|
|
2334
|
+
iconFill: {},
|
|
2335
|
+
iconStroke: {},
|
|
2336
|
+
iconStrokeWidth: {},
|
|
2316
2337
|
style: {},
|
|
2317
2338
|
status: {},
|
|
2318
2339
|
useStatusStyles: { type: Boolean },
|
|
@@ -2320,7 +2341,9 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
2320
2341
|
animatePendingEllipsis: { type: Boolean },
|
|
2321
2342
|
width: {},
|
|
2322
2343
|
height: {},
|
|
2323
|
-
type: {}
|
|
2344
|
+
type: {},
|
|
2345
|
+
useSlot: { type: Boolean },
|
|
2346
|
+
flipIcon: {}
|
|
2324
2347
|
},
|
|
2325
2348
|
setup(__props, { expose: __expose }) {
|
|
2326
2349
|
const props = __props;
|
|
@@ -2359,15 +2382,12 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
2359
2382
|
() => convertValueToCssSizeProperty(props.height)
|
|
2360
2383
|
);
|
|
2361
2384
|
const buttonClasses = computed(() => {
|
|
2362
|
-
const defaultClass = `hunter-
|
|
2385
|
+
const defaultClass = `hunter-button_${props.variant ? props.variant : "primary"}`;
|
|
2363
2386
|
const statusClass = props.useStatusStyles === true && status.value !== "idle" && !props.disabled ? `hunter-button_${status.value}` : void 0;
|
|
2364
2387
|
const flipClass = props.icon && iconPosition.value === "left" ? "hunter-button_flip-icon-position" : void 0;
|
|
2365
2388
|
const ellipsisClass = props.animatePendingEllipsis === true && status.value === "pending" ? "hunter-button_animate-ellipsis" : void 0;
|
|
2366
2389
|
return [defaultClass, statusClass, flipClass, ellipsisClass].filter(Boolean);
|
|
2367
2390
|
});
|
|
2368
|
-
const customIconClasses = computed(
|
|
2369
|
-
() => [iconClass.value].flat().filter(Boolean).join(" ")
|
|
2370
|
-
);
|
|
2371
2391
|
const buttonEl = ref(null);
|
|
2372
2392
|
const buttonSpan = ref(null);
|
|
2373
2393
|
__expose({
|
|
@@ -2392,34 +2412,41 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
2392
2412
|
onMouseover: _cache[0] || (_cache[0] = ($event) => isHovered.value = true),
|
|
2393
2413
|
onMouseleave: _cache[1] || (_cache[1] = ($event) => isHovered.value = false)
|
|
2394
2414
|
}, [
|
|
2395
|
-
_ctx.variant !== "icon" ? (openBlock(), createElementBlock("span", {
|
|
2415
|
+
_ctx.variant !== "icon" && !_ctx.useSlot ? (openBlock(), createElementBlock("span", {
|
|
2396
2416
|
key: 0,
|
|
2397
2417
|
class: "hunter-button__label",
|
|
2398
2418
|
ref_key: "buttonSpan",
|
|
2399
2419
|
ref: buttonSpan
|
|
2400
2420
|
}, toDisplayString(displayText.value), 513)) : createCommentVNode("", true),
|
|
2421
|
+
_ctx.variant !== "icon" && _ctx.useSlot === true ? renderSlot(_ctx.$slots, "default", { key: 1 }, void 0, true) : createCommentVNode("", true),
|
|
2401
2422
|
_ctx.icon ? (openBlock(), createBlock(Icon, {
|
|
2402
|
-
key:
|
|
2423
|
+
key: 2,
|
|
2403
2424
|
ref_key: "buttonIcon",
|
|
2404
2425
|
ref: buttonIcon,
|
|
2405
2426
|
name: _ctx.icon,
|
|
2406
2427
|
size: _ctx.iconSize || "default",
|
|
2407
|
-
class: normalizeClass([
|
|
2408
|
-
|
|
2409
|
-
|
|
2428
|
+
class: normalizeClass([
|
|
2429
|
+
{
|
|
2430
|
+
"hunter-button_icon": _ctx.variant === "icon"
|
|
2431
|
+
},
|
|
2410
2432
|
isHovered.value === true && _ctx.iconHoverClass ? [_ctx.iconHoverClass].flat().join(" ") : ""
|
|
2411
|
-
],
|
|
2433
|
+
]),
|
|
2434
|
+
flipIcon: _ctx.flipIcon,
|
|
2435
|
+
className: unref(iconClass),
|
|
2412
2436
|
width: _ctx.iconWidth,
|
|
2413
|
-
height: _ctx.iconHeight
|
|
2414
|
-
|
|
2437
|
+
height: _ctx.iconHeight,
|
|
2438
|
+
fill: _ctx.iconFill,
|
|
2439
|
+
stroke: _ctx.iconStroke,
|
|
2440
|
+
strokeWidth: _ctx.iconStrokeWidth
|
|
2441
|
+
}, null, 8, ["name", "size", "class", "flipIcon", "className", "width", "height", "fill", "stroke", "strokeWidth"])) : createCommentVNode("", true)
|
|
2415
2442
|
], 46, _hoisted_1$c);
|
|
2416
2443
|
};
|
|
2417
2444
|
}
|
|
2418
2445
|
});
|
|
2419
|
-
const Button = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2446
|
+
const Button = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-d65b8412"]]);
|
|
2420
2447
|
const _hoisted_1$b = ["id"];
|
|
2421
2448
|
const _hoisted_2$9 = { key: 0 };
|
|
2422
|
-
const _sfc_main$
|
|
2449
|
+
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
2423
2450
|
__name: "ButtonIcon",
|
|
2424
2451
|
props: {
|
|
2425
2452
|
variant: {},
|
|
@@ -2459,8 +2486,8 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
2459
2486
|
};
|
|
2460
2487
|
}
|
|
2461
2488
|
});
|
|
2462
|
-
const ButtonIcon = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2463
|
-
const _sfc_main$
|
|
2489
|
+
const ButtonIcon = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-cfb871ee"]]);
|
|
2490
|
+
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
2464
2491
|
__name: "ButtonToast",
|
|
2465
2492
|
props: {
|
|
2466
2493
|
text: {},
|
|
@@ -2496,7 +2523,7 @@ const _hoisted_8 = {
|
|
|
2496
2523
|
key: 0,
|
|
2497
2524
|
class: "hc__card__buttons"
|
|
2498
2525
|
};
|
|
2499
|
-
const _sfc_main$
|
|
2526
|
+
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
2500
2527
|
__name: "Card",
|
|
2501
2528
|
props: {
|
|
2502
2529
|
title: {},
|
|
@@ -2593,7 +2620,7 @@ const _hoisted_2$7 = {
|
|
|
2593
2620
|
};
|
|
2594
2621
|
const _hoisted_3$6 = ["src", "alt"];
|
|
2595
2622
|
const _hoisted_4$5 = { class: "hc__category-card__title" };
|
|
2596
|
-
const _sfc_main$
|
|
2623
|
+
const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
2597
2624
|
__name: "CategoryCard",
|
|
2598
2625
|
props: {
|
|
2599
2626
|
title: {},
|
|
@@ -2668,7 +2695,7 @@ const _hoisted_5$2 = {
|
|
|
2668
2695
|
key: 0,
|
|
2669
2696
|
class: "hunter-checkbox-note-span"
|
|
2670
2697
|
};
|
|
2671
|
-
const _sfc_main$
|
|
2698
|
+
const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
2672
2699
|
__name: "Checkbox",
|
|
2673
2700
|
props: {
|
|
2674
2701
|
label: {},
|
|
@@ -2700,9 +2727,9 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
2700
2727
|
};
|
|
2701
2728
|
}
|
|
2702
2729
|
});
|
|
2703
|
-
const Checkbox = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2730
|
+
const Checkbox = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-75265500"]]);
|
|
2704
2731
|
const _hoisted_1$7 = { class: "text" };
|
|
2705
|
-
const _sfc_main$
|
|
2732
|
+
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
2706
2733
|
__name: "Chip",
|
|
2707
2734
|
props: {
|
|
2708
2735
|
text: {},
|
|
@@ -2731,12 +2758,12 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
2731
2758
|
};
|
|
2732
2759
|
}
|
|
2733
2760
|
});
|
|
2734
|
-
const Chip = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2761
|
+
const Chip = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-3d21af5d"]]);
|
|
2735
2762
|
const _hoisted_1$6 = ["id", "aria-hidden"];
|
|
2736
2763
|
const _hoisted_2$5 = { class: "dropdown-wrapper" };
|
|
2737
2764
|
const _hoisted_3$4 = ["value", "onClick"];
|
|
2738
2765
|
const _hoisted_4$3 = { class: "hunter-search-input-option-li" };
|
|
2739
|
-
const _sfc_main$
|
|
2766
|
+
const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
2740
2767
|
__name: "DropdownList",
|
|
2741
2768
|
props: {
|
|
2742
2769
|
options: {},
|
|
@@ -2801,8 +2828,8 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
2801
2828
|
};
|
|
2802
2829
|
}
|
|
2803
2830
|
});
|
|
2804
|
-
const DropdownList = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2805
|
-
const _sfc_main$
|
|
2831
|
+
const DropdownList = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-f18bb4ff"]]);
|
|
2832
|
+
const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
2806
2833
|
__name: "DropdownListWithFilter",
|
|
2807
2834
|
props: {
|
|
2808
2835
|
filterValue: {},
|
|
@@ -2860,7 +2887,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
2860
2887
|
};
|
|
2861
2888
|
}
|
|
2862
2889
|
});
|
|
2863
|
-
const _sfc_main$
|
|
2890
|
+
const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
2864
2891
|
__name: "ColorIcon",
|
|
2865
2892
|
props: {
|
|
2866
2893
|
color: {},
|
|
@@ -2891,11 +2918,11 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
2891
2918
|
};
|
|
2892
2919
|
}
|
|
2893
2920
|
});
|
|
2894
|
-
const ColorIcon = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2921
|
+
const ColorIcon = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-3e170770"]]);
|
|
2895
2922
|
const _hoisted_1$5 = ["id", "aria-hidden"];
|
|
2896
2923
|
const _hoisted_2$4 = { class: "dropdown-wrapper" };
|
|
2897
2924
|
const _hoisted_3$3 = ["value", "onClick"];
|
|
2898
|
-
const _sfc_main$
|
|
2925
|
+
const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
2899
2926
|
__name: "DropdownListWithColorIcons",
|
|
2900
2927
|
props: {
|
|
2901
2928
|
colors: {},
|
|
@@ -2950,8 +2977,72 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
2950
2977
|
};
|
|
2951
2978
|
}
|
|
2952
2979
|
});
|
|
2953
|
-
const DropdownListWithColorIcons = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2954
|
-
const _sfc_main$
|
|
2980
|
+
const DropdownListWithColorIcons = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-908a37e0"]]);
|
|
2981
|
+
const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
2982
|
+
__name: "ButtonDropdown",
|
|
2983
|
+
props: {
|
|
2984
|
+
collapsed: { type: Boolean },
|
|
2985
|
+
variant: {},
|
|
2986
|
+
disabled: { type: Boolean },
|
|
2987
|
+
className: {},
|
|
2988
|
+
iconClass: {},
|
|
2989
|
+
iconHoverClass: {},
|
|
2990
|
+
iconPendingClass: {},
|
|
2991
|
+
iconSuccessClass: {},
|
|
2992
|
+
iconErrorClass: {},
|
|
2993
|
+
id: {},
|
|
2994
|
+
text: {},
|
|
2995
|
+
pendingText: {},
|
|
2996
|
+
successText: {},
|
|
2997
|
+
errorText: {},
|
|
2998
|
+
icon: {},
|
|
2999
|
+
pendingIcon: {},
|
|
3000
|
+
successIcon: {},
|
|
3001
|
+
errorIcon: {},
|
|
3002
|
+
iconPosition: {},
|
|
3003
|
+
iconWidth: {},
|
|
3004
|
+
iconHeight: {},
|
|
3005
|
+
iconSize: {},
|
|
3006
|
+
iconFill: {},
|
|
3007
|
+
iconStroke: {},
|
|
3008
|
+
iconStrokeWidth: {},
|
|
3009
|
+
style: {},
|
|
3010
|
+
status: {},
|
|
3011
|
+
useStatusStyles: { type: Boolean },
|
|
3012
|
+
maintainButtonSize: { type: Boolean },
|
|
3013
|
+
animatePendingEllipsis: { type: Boolean },
|
|
3014
|
+
width: {},
|
|
3015
|
+
height: {},
|
|
3016
|
+
type: {},
|
|
3017
|
+
useSlot: { type: Boolean },
|
|
3018
|
+
flipIcon: {}
|
|
3019
|
+
},
|
|
3020
|
+
setup(__props) {
|
|
3021
|
+
const props = __props;
|
|
3022
|
+
const { collapsed } = toRefs(props);
|
|
3023
|
+
return (_ctx, _cache) => {
|
|
3024
|
+
return openBlock(), createBlock(Button, mergeProps(props, {
|
|
3025
|
+
class: ["hunter-button_dropdown", {
|
|
3026
|
+
disabled: _ctx.disabled
|
|
3027
|
+
}],
|
|
3028
|
+
icon: "caret-down",
|
|
3029
|
+
"icon-class": _ctx.iconClass,
|
|
3030
|
+
"flip-icon": unref(collapsed) === true ? "down" : "up",
|
|
3031
|
+
"icon-fill": _ctx.iconFill || "currentColor",
|
|
3032
|
+
variant: _ctx.variant || "dropdown",
|
|
3033
|
+
"icon-position": "left",
|
|
3034
|
+
text: _ctx.text,
|
|
3035
|
+
useSlot: _ctx.useSlot
|
|
3036
|
+
}), {
|
|
3037
|
+
default: withCtx(() => [
|
|
3038
|
+
_ctx.useSlot ? renderSlot(_ctx.$slots, "default", { key: 0 }) : createCommentVNode("", true)
|
|
3039
|
+
]),
|
|
3040
|
+
_: 3
|
|
3041
|
+
}, 16, ["class", "icon-class", "flip-icon", "icon-fill", "variant", "text", "useSlot"]);
|
|
3042
|
+
};
|
|
3043
|
+
}
|
|
3044
|
+
});
|
|
3045
|
+
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
2955
3046
|
__name: "Dropdown",
|
|
2956
3047
|
props: {
|
|
2957
3048
|
placeholderText: {},
|
|
@@ -2961,6 +3052,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
2961
3052
|
className: {},
|
|
2962
3053
|
disabled: { type: Boolean },
|
|
2963
3054
|
scrollable: { type: Boolean },
|
|
3055
|
+
buttonVariant: {},
|
|
2964
3056
|
options: {},
|
|
2965
3057
|
optionKey: {},
|
|
2966
3058
|
collapsed: { type: Boolean },
|
|
@@ -2984,20 +3076,6 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
2984
3076
|
const dropdownButtonText = ref(
|
|
2985
3077
|
props.defaultText || props.placeholderText || props.options[0].name
|
|
2986
3078
|
);
|
|
2987
|
-
const isPlaceholderText = computed(() => {
|
|
2988
|
-
return dropdownButtonText.value === props.placeholderText;
|
|
2989
|
-
});
|
|
2990
|
-
const buttonVariant = computed(() => {
|
|
2991
|
-
if ((props == null ? void 0 : props.variant) === "small" && (props == null ? void 0 : props.hasBorder) === true) {
|
|
2992
|
-
return "dropdown-small with-border";
|
|
2993
|
-
} else if (props.variant === "small") {
|
|
2994
|
-
return "dropdown-small";
|
|
2995
|
-
} else if (props.hasBorder === true) {
|
|
2996
|
-
return "dropdown with-border";
|
|
2997
|
-
} else {
|
|
2998
|
-
return "dropdown";
|
|
2999
|
-
}
|
|
3000
|
-
});
|
|
3001
3079
|
watch(collapsed, (value) => {
|
|
3002
3080
|
if (value === false) {
|
|
3003
3081
|
return document.addEventListener("click", handleOutsideClick);
|
|
@@ -3048,26 +3126,17 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
3048
3126
|
ref_key: "dropdownWithButton",
|
|
3049
3127
|
ref: dropdownWithButton
|
|
3050
3128
|
}, [
|
|
3051
|
-
createVNode(
|
|
3129
|
+
createVNode(_sfc_main$9, {
|
|
3052
3130
|
ref_key: "dropdownButton",
|
|
3053
3131
|
ref: dropdownButton,
|
|
3054
|
-
className: [
|
|
3055
|
-
isPlaceholderText.value ? "placeholder" : "",
|
|
3056
|
-
_ctx.hasBorder ? "has-border" : ""
|
|
3057
|
-
],
|
|
3058
3132
|
id: buttonId.value,
|
|
3059
|
-
|
|
3060
|
-
|
|
3133
|
+
variant: _ctx.buttonVariant || "dropdown",
|
|
3134
|
+
collapsed: collapsed.value,
|
|
3061
3135
|
disabled: _ctx.disabled,
|
|
3062
|
-
|
|
3063
|
-
|
|
3064
|
-
|
|
3065
|
-
},
|
|
3066
|
-
default: withCtx(() => [
|
|
3067
|
-
createElementVNode("span", null, toDisplayString(dropdownButtonText.value), 1)
|
|
3068
|
-
]),
|
|
3069
|
-
_: 1
|
|
3070
|
-
}, 8, ["className", "id", "variant", "disabled", "iconClass"]),
|
|
3136
|
+
placeholder: _ctx.placeholderText,
|
|
3137
|
+
text: dropdownButtonText.value.toString(),
|
|
3138
|
+
onClick: withModifiers(toggleDropdown, ["stop"])
|
|
3139
|
+
}, null, 8, ["id", "variant", "collapsed", "disabled", "placeholder", "text"]),
|
|
3071
3140
|
createElementVNode("div", {
|
|
3072
3141
|
ref_key: "dropdownListEl",
|
|
3073
3142
|
ref: dropdownListEl,
|
|
@@ -3088,7 +3157,76 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
3088
3157
|
};
|
|
3089
3158
|
}
|
|
3090
3159
|
});
|
|
3091
|
-
const Dropdown = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3160
|
+
const Dropdown = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-95b0a2d2"]]);
|
|
3161
|
+
const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
3162
|
+
__name: "ButtonDropdownColors",
|
|
3163
|
+
props: {
|
|
3164
|
+
currentColor: {},
|
|
3165
|
+
collapsed: { type: Boolean },
|
|
3166
|
+
variant: {},
|
|
3167
|
+
disabled: { type: Boolean },
|
|
3168
|
+
className: {},
|
|
3169
|
+
iconClass: {},
|
|
3170
|
+
iconHoverClass: {},
|
|
3171
|
+
iconPendingClass: {},
|
|
3172
|
+
iconSuccessClass: {},
|
|
3173
|
+
iconErrorClass: {},
|
|
3174
|
+
id: {},
|
|
3175
|
+
text: {},
|
|
3176
|
+
pendingText: {},
|
|
3177
|
+
successText: {},
|
|
3178
|
+
errorText: {},
|
|
3179
|
+
icon: {},
|
|
3180
|
+
pendingIcon: {},
|
|
3181
|
+
successIcon: {},
|
|
3182
|
+
errorIcon: {},
|
|
3183
|
+
iconPosition: {},
|
|
3184
|
+
iconWidth: {},
|
|
3185
|
+
iconHeight: {},
|
|
3186
|
+
iconSize: {},
|
|
3187
|
+
iconFill: {},
|
|
3188
|
+
iconStroke: {},
|
|
3189
|
+
iconStrokeWidth: {},
|
|
3190
|
+
style: {},
|
|
3191
|
+
status: {},
|
|
3192
|
+
useStatusStyles: { type: Boolean },
|
|
3193
|
+
maintainButtonSize: { type: Boolean },
|
|
3194
|
+
animatePendingEllipsis: { type: Boolean },
|
|
3195
|
+
width: {},
|
|
3196
|
+
height: {},
|
|
3197
|
+
type: {},
|
|
3198
|
+
useSlot: { type: Boolean },
|
|
3199
|
+
flipIcon: {}
|
|
3200
|
+
},
|
|
3201
|
+
setup(__props) {
|
|
3202
|
+
const props = __props;
|
|
3203
|
+
const { collapsed } = toRefs(props);
|
|
3204
|
+
return (_ctx, _cache) => {
|
|
3205
|
+
return openBlock(), createBlock(_sfc_main$9, mergeProps(props, {
|
|
3206
|
+
class: ["hunter-button_dropdown_colors", {
|
|
3207
|
+
disabled: _ctx.disabled
|
|
3208
|
+
}],
|
|
3209
|
+
icon: "caret-down",
|
|
3210
|
+
"icon-class": _ctx.iconClass,
|
|
3211
|
+
"flip-icon": unref(collapsed) === true ? "down" : "up",
|
|
3212
|
+
"icon-fill": _ctx.iconFill || "currentColor",
|
|
3213
|
+
variant: _ctx.variant || "dropdown-with-icon",
|
|
3214
|
+
"icon-position": "left",
|
|
3215
|
+
useSlot: true
|
|
3216
|
+
}), {
|
|
3217
|
+
default: withCtx(() => [
|
|
3218
|
+
createVNode(ColorIcon, {
|
|
3219
|
+
color: _ctx.currentColor,
|
|
3220
|
+
"has-border": true,
|
|
3221
|
+
disabled: _ctx.disabled
|
|
3222
|
+
}, null, 8, ["color", "disabled"])
|
|
3223
|
+
]),
|
|
3224
|
+
_: 1
|
|
3225
|
+
}, 16, ["class", "icon-class", "flip-icon", "icon-fill", "variant"]);
|
|
3226
|
+
};
|
|
3227
|
+
}
|
|
3228
|
+
});
|
|
3229
|
+
const ButtonDropdownColors = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-0031919c"]]);
|
|
3092
3230
|
const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
3093
3231
|
__name: "DropdownColors",
|
|
3094
3232
|
props: {
|
|
@@ -3117,31 +3255,18 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
3117
3255
|
const collapsed = ref(true);
|
|
3118
3256
|
const selectedItem = ref();
|
|
3119
3257
|
const currentColor = ref(props.placeholderColor || "#ffffff");
|
|
3120
|
-
const isPlaceholderColor = computed(() => {
|
|
3121
|
-
return currentColor.value === props.placeholderColor;
|
|
3122
|
-
});
|
|
3123
3258
|
const buttonVariant = computed(() => {
|
|
3124
|
-
if (props.variant === "small"
|
|
3125
|
-
return "dropdown-
|
|
3126
|
-
} else if (props.variant === "small") {
|
|
3127
|
-
return "dropdown-small";
|
|
3128
|
-
} else if (props.hasBorder === true) {
|
|
3129
|
-
return "dropdown with-border";
|
|
3259
|
+
if (props.variant === "small") {
|
|
3260
|
+
return "dropdown-with-icon-small";
|
|
3130
3261
|
} else {
|
|
3131
|
-
return "dropdown";
|
|
3262
|
+
return "dropdown-with-icon";
|
|
3132
3263
|
}
|
|
3133
3264
|
});
|
|
3134
3265
|
watch(collapsed, (value) => {
|
|
3135
3266
|
if (value === false) {
|
|
3136
|
-
return document.addEventListener(
|
|
3137
|
-
"click",
|
|
3138
|
-
(e) => handleOutsideClick(e)
|
|
3139
|
-
);
|
|
3267
|
+
return document.addEventListener("click", handleOutsideClick);
|
|
3140
3268
|
} else {
|
|
3141
|
-
document.removeEventListener(
|
|
3142
|
-
"click",
|
|
3143
|
-
(e) => handleOutsideClick(e)
|
|
3144
|
-
);
|
|
3269
|
+
return document.removeEventListener("click", handleOutsideClick);
|
|
3145
3270
|
}
|
|
3146
3271
|
});
|
|
3147
3272
|
const toggleDropdown = () => {
|
|
@@ -3172,38 +3297,24 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
3172
3297
|
return collapsed.value;
|
|
3173
3298
|
};
|
|
3174
3299
|
onBeforeUnmount(() => {
|
|
3175
|
-
return document.removeEventListener(
|
|
3176
|
-
"click",
|
|
3177
|
-
(e) => handleOutsideClick(e)
|
|
3178
|
-
);
|
|
3300
|
+
return document.removeEventListener("click", handleOutsideClick);
|
|
3179
3301
|
});
|
|
3180
3302
|
return (_ctx, _cache) => {
|
|
3181
3303
|
return openBlock(), createElementBlock("div", {
|
|
3182
|
-
class: normalizeClass(["hunter-component
|
|
3304
|
+
class: normalizeClass(["hunter-component hcl-dropdown-with-button_colors", [_ctx.className, { variant: _ctx.variant, disabled: _ctx.disabled, "has-border": _ctx.hasBorder }]]),
|
|
3183
3305
|
ref_key: "dropdown",
|
|
3184
3306
|
ref: dropdown
|
|
3185
3307
|
}, [
|
|
3186
|
-
createVNode(
|
|
3308
|
+
createVNode(ButtonDropdownColors, {
|
|
3187
3309
|
ref_key: "dropdownButton",
|
|
3188
3310
|
ref: dropdownButton,
|
|
3189
|
-
|
|
3190
|
-
className: isPlaceholderColor.value ? "placeholder" : "",
|
|
3311
|
+
"current-color": currentColor.value,
|
|
3191
3312
|
id: buttonId.value,
|
|
3192
3313
|
variant: buttonVariant.value,
|
|
3193
|
-
|
|
3194
|
-
|
|
3195
|
-
|
|
3196
|
-
|
|
3197
|
-
}, {
|
|
3198
|
-
default: withCtx(() => [
|
|
3199
|
-
createVNode(ColorIcon, {
|
|
3200
|
-
color: currentColor.value,
|
|
3201
|
-
"has-border": true,
|
|
3202
|
-
disabled: _ctx.disabled
|
|
3203
|
-
}, null, 8, ["color", "disabled"])
|
|
3204
|
-
]),
|
|
3205
|
-
_: 1
|
|
3206
|
-
}, 8, ["className", "id", "variant", "iconClass"]),
|
|
3314
|
+
collapsed: collapsed.value,
|
|
3315
|
+
disabled: _ctx.disabled,
|
|
3316
|
+
onClick: withModifiers(toggleDropdown, ["stop"])
|
|
3317
|
+
}, null, 8, ["current-color", "id", "variant", "collapsed", "disabled"]),
|
|
3207
3318
|
createElementVNode("div", {
|
|
3208
3319
|
ref_key: "dropdownListEl",
|
|
3209
3320
|
ref: dropdownListEl,
|
|
@@ -3273,7 +3384,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
3273
3384
|
}
|
|
3274
3385
|
});
|
|
3275
3386
|
const FormInput = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-7e700c34"]]);
|
|
3276
|
-
const _withScopeId = (n) => (pushScopeId("data-v-
|
|
3387
|
+
const _withScopeId = (n) => (pushScopeId("data-v-b640ca47"), n = n(), popScopeId(), n);
|
|
3277
3388
|
const _hoisted_1$3 = { class: "unit-selection-container" };
|
|
3278
3389
|
const _hoisted_2$2 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("span", { class: "font-medium" }, "Units", -1));
|
|
3279
3390
|
const _hoisted_3$1 = { class: "unit-selection" };
|
|
@@ -3297,12 +3408,18 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
3297
3408
|
bypassPendingState: { type: Boolean },
|
|
3298
3409
|
submitButtonText: {},
|
|
3299
3410
|
cancelButtonText: {},
|
|
3411
|
+
showCancelButton: { type: Boolean },
|
|
3300
3412
|
successSubmitButtonDisabled: { type: Boolean }
|
|
3301
3413
|
},
|
|
3302
3414
|
emits: ["cancelSubmit", "submitForm"],
|
|
3303
3415
|
setup(__props, { emit: __emit }) {
|
|
3304
3416
|
const props = __props;
|
|
3305
|
-
const {
|
|
3417
|
+
const {
|
|
3418
|
+
bypassPendingState,
|
|
3419
|
+
successSubmitButtonDisabled,
|
|
3420
|
+
submitButtonProps,
|
|
3421
|
+
cancelButtonProps
|
|
3422
|
+
} = toRefs(props);
|
|
3306
3423
|
const status = ref(props.submitStatus);
|
|
3307
3424
|
const formInputs = ref(props.inputs);
|
|
3308
3425
|
const unit = ref("en");
|
|
@@ -3317,7 +3434,6 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
3317
3434
|
});
|
|
3318
3435
|
});
|
|
3319
3436
|
const handleFormSubmit = (e) => {
|
|
3320
|
-
console.log("GOT TO SUBMIT");
|
|
3321
3437
|
e.preventDefault();
|
|
3322
3438
|
status.value = "pending";
|
|
3323
3439
|
const { isValid, inputs } = validateForm(formInputs.value);
|
|
@@ -3465,18 +3581,13 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
3465
3581
|
])
|
|
3466
3582
|
]),
|
|
3467
3583
|
createElementVNode("div", _hoisted_6, [
|
|
3468
|
-
|
|
3469
|
-
key: 0,
|
|
3584
|
+
createVNode(Button, mergeProps(unref(cancelButtonProps), {
|
|
3470
3585
|
variant: "tertiary",
|
|
3471
3586
|
className: "form-button",
|
|
3587
|
+
text: _ctx.cancelButtonText,
|
|
3472
3588
|
disabled: status.value === "pending" || status.value === "success",
|
|
3473
3589
|
onClick: handleCancelFormClick
|
|
3474
|
-
},
|
|
3475
|
-
default: withCtx(() => [
|
|
3476
|
-
createTextVNode(toDisplayString(_ctx.cancelButtonText), 1)
|
|
3477
|
-
]),
|
|
3478
|
-
_: 1
|
|
3479
|
-
}, 8, ["disabled"])) : createCommentVNode("", true),
|
|
3590
|
+
}), null, 16, ["text", "disabled"]),
|
|
3480
3591
|
createVNode(Button, mergeProps({
|
|
3481
3592
|
class: ["form-button form-button_submit", {
|
|
3482
3593
|
"form-button_pointer-events-none": status.value === "success" && unref(successSubmitButtonDisabled) === true
|
|
@@ -3491,7 +3602,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
3491
3602
|
};
|
|
3492
3603
|
}
|
|
3493
3604
|
});
|
|
3494
|
-
const index = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-
|
|
3605
|
+
const index = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-b640ca47"]]);
|
|
3495
3606
|
const _hoisted_1$2 = ["href"];
|
|
3496
3607
|
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
3497
3608
|
__name: "Link",
|
|
@@ -3621,7 +3732,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
3621
3732
|
}, null, 8, ["name"])) : createCommentVNode("", true),
|
|
3622
3733
|
createElementVNode("h2", null, toDisplayString(_ctx.title), 1)
|
|
3623
3734
|
]),
|
|
3624
|
-
_ctx.buttonType === "default" && _ctx.buttonText ? (openBlock(), createBlock(_sfc_main$
|
|
3735
|
+
_ctx.buttonType === "default" && _ctx.buttonText ? (openBlock(), createBlock(_sfc_main$i, {
|
|
3625
3736
|
key: 0,
|
|
3626
3737
|
text: _ctx.buttonText,
|
|
3627
3738
|
type: _ctx.type,
|
|
@@ -3632,15 +3743,9 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
3632
3743
|
key: 1,
|
|
3633
3744
|
variant: "icon",
|
|
3634
3745
|
onClick: _cache[1] || (_cache[1] = ($event) => emit("close", informationEl.value)),
|
|
3635
|
-
class: "hunter-toast-close-button"
|
|
3636
|
-
|
|
3637
|
-
|
|
3638
|
-
createVNode(Icon, {
|
|
3639
|
-
name: "close",
|
|
3640
|
-
class: "hunter-close-icon"
|
|
3641
|
-
})
|
|
3642
|
-
]),
|
|
3643
|
-
_: 1
|
|
3746
|
+
class: "hunter-toast-close-button",
|
|
3747
|
+
icon: "close",
|
|
3748
|
+
"icon-class": "hunter-close-icon"
|
|
3644
3749
|
})) : createCommentVNode("", true)
|
|
3645
3750
|
]),
|
|
3646
3751
|
createElementVNode("p", {
|
|
@@ -3650,7 +3755,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
3650
3755
|
};
|
|
3651
3756
|
}
|
|
3652
3757
|
});
|
|
3653
|
-
const Toast = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-
|
|
3758
|
+
const Toast = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-12bb1fc1"]]);
|
|
3654
3759
|
const _hoisted_1 = { class: "hunter-search-input-label" };
|
|
3655
3760
|
const _hoisted_2 = { class: "hunter-search-input-label-span" };
|
|
3656
3761
|
const _hoisted_3 = ["placeholder"];
|
|
@@ -3669,7 +3774,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
3669
3774
|
optionKey: {},
|
|
3670
3775
|
variant: {},
|
|
3671
3776
|
hideSearchButton: { type: Boolean },
|
|
3672
|
-
hideClearButton: { type: Boolean }
|
|
3777
|
+
hideClearButton: { type: Boolean },
|
|
3778
|
+
searchIconFill: {}
|
|
3673
3779
|
},
|
|
3674
3780
|
emits: ["search", "clearSearch", "focus"],
|
|
3675
3781
|
setup(__props, { emit: __emit }) {
|
|
@@ -3789,7 +3895,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
3789
3895
|
class: "hunter-search-input-error transition duration-300 ease-in-out",
|
|
3790
3896
|
ariaHidden: error.value ? false : true
|
|
3791
3897
|
}, toDisplayString(error.value), 9, _hoisted_4),
|
|
3792
|
-
createVNode(_sfc_main$
|
|
3898
|
+
createVNode(_sfc_main$c, {
|
|
3793
3899
|
options: _ctx.options,
|
|
3794
3900
|
"option-key": _ctx.optionKey || "name",
|
|
3795
3901
|
collapsed: hideDropdown.value,
|
|
@@ -3806,44 +3912,38 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
3806
3912
|
ref: searchButtonEl,
|
|
3807
3913
|
class: "hunter-search-input-button",
|
|
3808
3914
|
variant: "icon",
|
|
3915
|
+
"icon-class": "hunter-search-input-icon",
|
|
3916
|
+
icon: "search",
|
|
3917
|
+
"icon-fill": _ctx.searchIconFill || "currentColor",
|
|
3809
3918
|
onClick: handleSearchClick
|
|
3810
|
-
},
|
|
3811
|
-
default: withCtx(() => [
|
|
3812
|
-
createVNode(unref(SearchIcon), { class: "hunter-search-input-icon" })
|
|
3813
|
-
]),
|
|
3814
|
-
_: 1
|
|
3815
|
-
}, 512)) : createCommentVNode("", true)
|
|
3919
|
+
}, null, 8, ["icon-fill"])) : createCommentVNode("", true)
|
|
3816
3920
|
], 4),
|
|
3817
3921
|
!_ctx.hideClearButton ? (openBlock(), createElementBlock("div", _hoisted_5, [
|
|
3818
3922
|
createVNode(Button, {
|
|
3819
3923
|
class: "underline clear-button",
|
|
3820
3924
|
variant: "link",
|
|
3925
|
+
text: "Clear",
|
|
3821
3926
|
onClick: handleClearInput
|
|
3822
|
-
}, {
|
|
3823
|
-
default: withCtx(() => [
|
|
3824
|
-
createTextVNode(" Clear ")
|
|
3825
|
-
]),
|
|
3826
|
-
_: 1
|
|
3827
3927
|
})
|
|
3828
3928
|
])) : createCommentVNode("", true)
|
|
3829
3929
|
], 2);
|
|
3830
3930
|
};
|
|
3831
3931
|
}
|
|
3832
3932
|
});
|
|
3833
|
-
const SearchInput = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
3933
|
+
const SearchInput = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-603385ac"]]);
|
|
3834
3934
|
export {
|
|
3835
3935
|
Button as HunterButton,
|
|
3836
3936
|
ButtonIcon as HunterButtonIcon,
|
|
3837
|
-
_sfc_main$
|
|
3838
|
-
_sfc_main$
|
|
3839
|
-
_sfc_main$
|
|
3937
|
+
_sfc_main$i as HunterButtonToast,
|
|
3938
|
+
_sfc_main$h as HunterCard,
|
|
3939
|
+
_sfc_main$g as HunterCategoryCard,
|
|
3840
3940
|
Checkbox as HunterCheckbox,
|
|
3841
3941
|
Chip as HunterChip,
|
|
3842
3942
|
Dropdown as HunterDropdown,
|
|
3843
3943
|
_sfc_main$6 as HunterDropdownColors,
|
|
3844
3944
|
DropdownList as HunterDropdownList,
|
|
3845
3945
|
DropdownListWithColorIcons as HunterDropdownListWithColorIcons,
|
|
3846
|
-
_sfc_main$
|
|
3946
|
+
_sfc_main$c as HunterDropdownListWithFilter,
|
|
3847
3947
|
index as HunterForm,
|
|
3848
3948
|
FormInput as HunterFormInput,
|
|
3849
3949
|
Icon as HunterIcon,
|