@hunter-industries/hunter-components 0.0.100 → 0.0.101
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.
|
@@ -1255,11 +1255,11 @@ const _hoisted_1$S = {
|
|
|
1255
1255
|
fill: "none"
|
|
1256
1256
|
};
|
|
1257
1257
|
const _hoisted_2$O = /* @__PURE__ */ createStaticVNode('<circle cx="16" cy="16" r="15.625" fill="#fff" opacity=".8"></circle><path fill="#68aee0" d="M18.859 27.5v-23h6.64v23z"></path><path fill="#3A2F26" d="M20.756 27.501v-23h2.846v23z"></path><path fill="#68aee0" d="M20.76 19.91H2.5v-6.64h18.26z"></path><path fill="#3A2F26" d="M20.761 18.012H2.501v-2.846h18.26z"></path>', 5);
|
|
1258
|
-
const _hoisted_7$
|
|
1258
|
+
const _hoisted_7$2 = [
|
|
1259
1259
|
_hoisted_2$O
|
|
1260
1260
|
];
|
|
1261
1261
|
function render$C(_ctx, _cache) {
|
|
1262
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$S, [..._hoisted_7$
|
|
1262
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$S, [..._hoisted_7$2]);
|
|
1263
1263
|
}
|
|
1264
1264
|
const __vite_glob_0_75 = { render: render$C };
|
|
1265
1265
|
const _hoisted_1$R = {
|
|
@@ -1558,14 +1558,14 @@ const _hoisted_5$6 = /* @__PURE__ */ createElementVNode("path", {
|
|
|
1558
1558
|
fill: "currentColor",
|
|
1559
1559
|
d: "M31.108 20.67H41.4a3.16 3.16 0 0 0-1.54.643c-.47.367-.6.74-.792 1.297l-.011.031h-5.227c-.2-.573-.58-.952-1.06-1.324a3.14 3.14 0 0 0-1.66-.647"
|
|
1560
1560
|
}, null, -1);
|
|
1561
|
-
const _hoisted_6$
|
|
1561
|
+
const _hoisted_6$3 = [
|
|
1562
1562
|
_hoisted_2$z,
|
|
1563
1563
|
_hoisted_3$w,
|
|
1564
1564
|
_hoisted_4$a,
|
|
1565
1565
|
_hoisted_5$6
|
|
1566
1566
|
];
|
|
1567
1567
|
function render$n(_ctx, _cache) {
|
|
1568
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$D, [..._hoisted_6$
|
|
1568
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$D, [..._hoisted_6$3]);
|
|
1569
1569
|
}
|
|
1570
1570
|
const __vite_glob_0_90 = { render: render$n };
|
|
1571
1571
|
const _hoisted_1$C = {
|
|
@@ -2625,9 +2625,9 @@ const _hoisted_3$8 = {
|
|
|
2625
2625
|
};
|
|
2626
2626
|
const _hoisted_4$7 = ["src", "alt"];
|
|
2627
2627
|
const _hoisted_5$4 = { class: "hc__card__text" };
|
|
2628
|
-
const _hoisted_6$
|
|
2629
|
-
const _hoisted_7 = { class: "card-description-body-wrapper" };
|
|
2630
|
-
const _hoisted_8 = { class: "description" };
|
|
2628
|
+
const _hoisted_6$2 = { class: "hc__card__text__description" };
|
|
2629
|
+
const _hoisted_7$1 = { class: "card-description-body-wrapper" };
|
|
2630
|
+
const _hoisted_8$1 = { class: "description" };
|
|
2631
2631
|
const _hoisted_9 = {
|
|
2632
2632
|
key: 0,
|
|
2633
2633
|
class: "hc__card__buttons float2"
|
|
@@ -2692,12 +2692,12 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
2692
2692
|
}, null, 8, _hoisted_4$7))
|
|
2693
2693
|
]),
|
|
2694
2694
|
createElementVNode("div", _hoisted_5$4, [
|
|
2695
|
-
createElementVNode("div", _hoisted_6$
|
|
2695
|
+
createElementVNode("div", _hoisted_6$2, [
|
|
2696
2696
|
createElementVNode("div", {
|
|
2697
2697
|
class: normalizeClass(["hc__card__text__title", "uppercase"])
|
|
2698
2698
|
}, toDisplayString(_ctx.title), 1),
|
|
2699
|
-
createElementVNode("div", _hoisted_7, [
|
|
2700
|
-
createElementVNode("div", _hoisted_8, [
|
|
2699
|
+
createElementVNode("div", _hoisted_7$1, [
|
|
2700
|
+
createElementVNode("div", _hoisted_8$1, [
|
|
2701
2701
|
!_ctx.hideToggleButton ? (openBlock(), createElementBlock("div", _hoisted_9, [
|
|
2702
2702
|
withDirectives(createVNode(unref(_sfc_main$l), {
|
|
2703
2703
|
variant: "icon-primary",
|
|
@@ -3483,7 +3483,7 @@ const _hoisted_5$2 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createEl
|
|
|
3483
3483
|
for: "metric",
|
|
3484
3484
|
class: "unit-label"
|
|
3485
3485
|
}, "Metric", -1));
|
|
3486
|
-
const _hoisted_6 = { class: "hunter-form-buttons" };
|
|
3486
|
+
const _hoisted_6$1 = { class: "hunter-form-buttons" };
|
|
3487
3487
|
const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
3488
3488
|
__name: "index",
|
|
3489
3489
|
props: {
|
|
@@ -3682,7 +3682,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
3682
3682
|
_hoisted_5$2
|
|
3683
3683
|
])
|
|
3684
3684
|
]),
|
|
3685
|
-
createElementVNode("div", _hoisted_6, [
|
|
3685
|
+
createElementVNode("div", _hoisted_6$1, [
|
|
3686
3686
|
createVNode(_sfc_main$l, mergeProps(unref(cancelButtonProps), {
|
|
3687
3687
|
variant: "tertiary",
|
|
3688
3688
|
className: "form-button",
|
|
@@ -4033,14 +4033,20 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
4033
4033
|
}
|
|
4034
4034
|
});
|
|
4035
4035
|
const SearchInput = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-603385ac"]]);
|
|
4036
|
-
const _hoisted_1 = { class: "slider-container" };
|
|
4037
|
-
const _hoisted_2 = {
|
|
4036
|
+
const _hoisted_1 = { class: "slider-and-single-unit-container" };
|
|
4037
|
+
const _hoisted_2 = { class: "slider-with-descriptions" };
|
|
4038
|
+
const _hoisted_3 = { class: "slider-container" };
|
|
4039
|
+
const _hoisted_4 = {
|
|
4038
4040
|
class: "ticks",
|
|
4039
4041
|
"aria-hidden": "true"
|
|
4040
4042
|
};
|
|
4041
|
-
const
|
|
4042
|
-
const
|
|
4043
|
-
const
|
|
4043
|
+
const _hoisted_5 = { class: "text-under-slider" };
|
|
4044
|
+
const _hoisted_6 = { class: "text" };
|
|
4045
|
+
const _hoisted_7 = { class: "title" };
|
|
4046
|
+
const _hoisted_8 = {
|
|
4047
|
+
key: 0,
|
|
4048
|
+
class: "unit-text"
|
|
4049
|
+
};
|
|
4044
4050
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4045
4051
|
__name: "Slider",
|
|
4046
4052
|
props: {
|
|
@@ -4052,15 +4058,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
4052
4058
|
thumbColor: { default: "#00658a" },
|
|
4053
4059
|
thumbSize: { default: "25px" },
|
|
4054
4060
|
text: {},
|
|
4055
|
-
tickEvery: { default: 2 }
|
|
4061
|
+
tickEvery: { default: 2 },
|
|
4062
|
+
showSelection: { type: Boolean, default: true },
|
|
4063
|
+
unit: { default: '"' }
|
|
4056
4064
|
},
|
|
4057
4065
|
emits: ["change", "input"],
|
|
4058
4066
|
setup(__props, { emit: __emit }) {
|
|
4059
4067
|
useCssVars((_ctx) => ({
|
|
4060
|
-
"
|
|
4061
|
-
"
|
|
4062
|
-
"
|
|
4063
|
-
"
|
|
4068
|
+
"32a6fe14": primaryColor,
|
|
4069
|
+
"05354dbc": secondaryColor,
|
|
4070
|
+
"e10d3100": thumbColor,
|
|
4071
|
+
"49449f78": thumbSize
|
|
4064
4072
|
}));
|
|
4065
4073
|
const {
|
|
4066
4074
|
min,
|
|
@@ -4070,7 +4078,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
4070
4078
|
secondaryColor,
|
|
4071
4079
|
thumbColor,
|
|
4072
4080
|
thumbSize,
|
|
4073
|
-
tickEvery
|
|
4081
|
+
tickEvery,
|
|
4082
|
+
showSelection,
|
|
4083
|
+
unit
|
|
4074
4084
|
} = __props;
|
|
4075
4085
|
const emit = __emit;
|
|
4076
4086
|
const minN = computed(() => Number(min));
|
|
@@ -4094,53 +4104,56 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
4094
4104
|
calcValue(sliderValue.value);
|
|
4095
4105
|
});
|
|
4096
4106
|
return (_ctx, _cache) => {
|
|
4097
|
-
return openBlock(), createElementBlock(
|
|
4098
|
-
createElementVNode("div",
|
|
4099
|
-
|
|
4100
|
-
|
|
4101
|
-
|
|
4102
|
-
|
|
4103
|
-
|
|
4104
|
-
|
|
4105
|
-
|
|
4106
|
-
|
|
4107
|
-
|
|
4108
|
-
|
|
4109
|
-
|
|
4110
|
-
|
|
4111
|
-
[
|
|
4112
|
-
|
|
4113
|
-
|
|
4114
|
-
|
|
4115
|
-
|
|
4116
|
-
|
|
4107
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
4108
|
+
createElementVNode("div", _hoisted_2, [
|
|
4109
|
+
createElementVNode("div", _hoisted_3, [
|
|
4110
|
+
withDirectives(createElementVNode("input", {
|
|
4111
|
+
type: "range",
|
|
4112
|
+
min,
|
|
4113
|
+
max,
|
|
4114
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => sliderValue.value = $event),
|
|
4115
|
+
class: "slider block w-full",
|
|
4116
|
+
id: "range",
|
|
4117
|
+
ref_key: "slider",
|
|
4118
|
+
ref: slider,
|
|
4119
|
+
onInput: _cache[1] || (_cache[1] = ($event) => calcValue(sliderValue.value)),
|
|
4120
|
+
onChange: _cache[2] || (_cache[2] = ($event) => _ctx.$emit("change", sliderValue.value))
|
|
4121
|
+
}, null, 544), [
|
|
4122
|
+
[
|
|
4123
|
+
vModelText,
|
|
4124
|
+
sliderValue.value,
|
|
4125
|
+
void 0,
|
|
4126
|
+
{ number: true }
|
|
4127
|
+
]
|
|
4128
|
+
]),
|
|
4129
|
+
createElementVNode("div", _hoisted_4, [
|
|
4130
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(tickCount.value, (i) => {
|
|
4131
|
+
return openBlock(), createElementBlock("span", {
|
|
4132
|
+
key: i,
|
|
4133
|
+
class: normalizeClass(["tick", {
|
|
4134
|
+
hide: (i - 1) % tickEvery !== 0,
|
|
4135
|
+
passed: +min + (i - 1) < +sliderValue.value,
|
|
4136
|
+
active: +min + (i - 1) === +sliderValue.value
|
|
4137
|
+
}])
|
|
4138
|
+
}, null, 2);
|
|
4139
|
+
}), 128))
|
|
4140
|
+
])
|
|
4117
4141
|
]),
|
|
4118
|
-
createElementVNode("div",
|
|
4119
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(
|
|
4120
|
-
return openBlock(), createElementBlock("
|
|
4121
|
-
|
|
4122
|
-
|
|
4123
|
-
|
|
4124
|
-
|
|
4125
|
-
active: +min + (i - 1) === +sliderValue.value
|
|
4126
|
-
}])
|
|
4127
|
-
}, null, 2);
|
|
4128
|
-
}), 128))
|
|
4142
|
+
createElementVNode("div", _hoisted_5, [
|
|
4143
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.text, (item, _) => {
|
|
4144
|
+
return openBlock(), createElementBlock("div", _hoisted_6, [
|
|
4145
|
+
createElementVNode("div", _hoisted_7, toDisplayString(item.title), 1),
|
|
4146
|
+
createElementVNode("div", null, toDisplayString(item == null ? void 0 : item.description), 1)
|
|
4147
|
+
]);
|
|
4148
|
+
}), 256))
|
|
4129
4149
|
])
|
|
4130
4150
|
]),
|
|
4131
|
-
|
|
4132
|
-
|
|
4133
|
-
return openBlock(), createElementBlock("div", _hoisted_4, [
|
|
4134
|
-
createElementVNode("div", _hoisted_5, toDisplayString(item.title), 1),
|
|
4135
|
-
createElementVNode("div", null, toDisplayString(item == null ? void 0 : item.description), 1)
|
|
4136
|
-
]);
|
|
4137
|
-
}), 256))
|
|
4138
|
-
])
|
|
4139
|
-
], 64);
|
|
4151
|
+
showSelection ? (openBlock(), createElementBlock("div", _hoisted_8, toDisplayString(`${sliderValue.value}${unit}`), 1)) : createCommentVNode("", true)
|
|
4152
|
+
]);
|
|
4140
4153
|
};
|
|
4141
4154
|
}
|
|
4142
4155
|
});
|
|
4143
|
-
const Slider = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
4156
|
+
const Slider = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-b87d7551"]]);
|
|
4144
4157
|
export {
|
|
4145
4158
|
_sfc_main$l as HunterButton,
|
|
4146
4159
|
ButtonIcon as HunterButtonIcon,
|