@leaflink/stash 46.0.0 → 46.1.0

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.
@@ -0,0 +1,29 @@
1
+ import { defineComponent as s, useSlots as n, openBlock as a, createElementBlock as r, renderSlot as o, createVNode as m } from "vue";
2
+ import p from "./Icon.js";
3
+ import "lodash-es/uniqueId";
4
+ import "./index-79ce320f.js";
5
+ import "./Icon.vue_used_vue_type_style_index_0_lang.module-eb359559.js";
6
+ import "./_plugin-vue_export-helper-dad06003.js";
7
+ const i = {
8
+ "data-test": "stash-range-input",
9
+ class: "stash-range-input tw-flex tw-gap-3"
10
+ }, x = /* @__PURE__ */ s({
11
+ __name: "RangeInput",
12
+ setup(l) {
13
+ const t = n();
14
+ if (!(!!t.min && !!t.max))
15
+ throw new Error("RangeInput: please provide slots for min and max values.");
16
+ return (e, u) => (a(), r("div", i, [
17
+ o(e.$slots, "min"),
18
+ m(p, {
19
+ name: "transfer",
20
+ class: "tw-mb-2 tw-mt-auto"
21
+ }),
22
+ o(e.$slots, "max")
23
+ ]));
24
+ }
25
+ });
26
+ export {
27
+ x as default
28
+ };
29
+ //# sourceMappingURL=RangeInput.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RangeInput.js","sources":["../src/components/RangeInput/RangeInput.vue"],"sourcesContent":["<script setup lang=\"ts\">\n import { useSlots } from 'vue';\n\n import Icon from '../Icon/Icon.vue';\n\n const slots = useSlots();\n\n const hasSlots = !!slots.min && !!slots.max;\n\n if (!hasSlots) {\n throw new Error('RangeInput: please provide slots for min and max values.');\n }\n</script>\n\n<template>\n <div data-test=\"stash-range-input\" class=\"stash-range-input tw-flex tw-gap-3\">\n <!-- @slot field for minimal value input -->\n <slot name=\"min\"></slot>\n\n <Icon name=\"transfer\" class=\"tw-mb-2 tw-mt-auto\" />\n <!-- @slot Field for maximal value input -->\n <slot name=\"max\"></slot>\n </div>\n</template>\n"],"names":["slots","useSlots"],"mappings":";;;;;;;;;;;;AAKE,UAAMA,IAAQC;AAId,QAAI,EAFa,CAAC,CAACD,EAAM,OAAO,CAAC,CAACA,EAAM;AAGhC,YAAA,IAAI,MAAM,0DAA0D;;;;;;;;;;;"}
@@ -0,0 +1,20 @@
1
+ import { AllowedComponentProps } from 'vue';
2
+ import { ComponentCustomProps } from 'vue';
3
+ import { ComponentOptionsMixin } from 'vue';
4
+ import { DefineComponent } from 'vue';
5
+ import { ExtractPropTypes } from 'vue';
6
+ import { VNodeProps } from 'vue';
7
+
8
+ declare type __VLS_WithTemplateSlots<T, S> = T & {
9
+ new (): {
10
+ $slots: S;
11
+ };
12
+ };
13
+
14
+ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{}>>, {}, {}>, {
15
+ min?(_: {}): any;
16
+ max?(_: {}): any;
17
+ }>;
18
+ export default _default;
19
+
20
+ export { }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leaflink/stash",
3
- "version": "46.0.0",
3
+ "version": "46.1.0",
4
4
  "description": "LeafLink's design system.",
5
5
  "homepage": "https://stash.leaflink.com",
6
6
  "main": "./dist/index.ts",