@histoire/controls 0.8.4 → 0.9.2
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/index.d.ts +166 -166
- package/dist/index.es.js +48 -54
- package/dist/style-standalone.css +101 -1
- package/package.json +6 -10
- package/tailwind.config.cjs +2 -1
- package/tsconfig.json +8 -7
- package/vite.config.ts +7 -27
- package/dist/histoire-setup.d.ts +0 -3
- package/dist/histoire.svg +0 -51
- package/public/histoire.svg +0 -51
- package/src/histoire-setup.ts +0 -5
package/dist/index.es.js
CHANGED
|
@@ -1,26 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
-
var __spreadValues = (a, b) => {
|
|
9
|
-
for (var prop in b || (b = {}))
|
|
10
|
-
if (__hasOwnProp.call(b, prop))
|
|
11
|
-
__defNormalProp(a, prop, b[prop]);
|
|
12
|
-
if (__getOwnPropSymbols)
|
|
13
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
-
if (__propIsEnum.call(b, prop))
|
|
15
|
-
__defNormalProp(a, prop, b[prop]);
|
|
16
|
-
}
|
|
17
|
-
return a;
|
|
18
|
-
};
|
|
19
|
-
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
import { defineComponent, openBlock, createElementBlock, withDirectives, createTextVNode, toDisplayString, unref, createElementVNode, renderSlot, ref, computed, watch, createBlock, withKeys, withModifiers, withCtx, normalizeClass, normalizeStyle, mergeProps, onUnmounted, isRef, vModelText, createCommentVNode, Fragment, renderList, createVNode } from "@histoire/vendors/dist/client/vue.js";
|
|
21
|
-
import { VTooltip, Dropdown } from "@histoire/vendors/dist/client/floating-vue.js";
|
|
22
|
-
import { Icon } from "@histoire/vendors/dist/client/iconify.js";
|
|
23
|
-
import { useClipboard } from "@histoire/vendors/dist/client/vue-use.js";
|
|
1
|
+
import { defineComponent, openBlock, createElementBlock, withDirectives, createTextVNode, toDisplayString, unref, createElementVNode, renderSlot, ref, computed, watch, createBlock, withKeys, withModifiers, withCtx, normalizeClass, normalizeStyle, mergeProps, onUnmounted, isRef, vModelText, createCommentVNode, Fragment, renderList, createVNode } from "@histoire/vendors/vue";
|
|
2
|
+
import { VTooltip, Dropdown } from "@histoire/vendors/floating-vue";
|
|
3
|
+
import { Icon } from "@histoire/vendors/iconify";
|
|
4
|
+
import { useClipboard } from "@histoire/vendors/vue-use";
|
|
24
5
|
const _hoisted_1$9 = { class: "htw-p-2 hover:htw-bg-primary-100 dark:hover:htw-bg-primary-800 htw-flex htw-gap-2 htw-flex-wrap" };
|
|
25
6
|
const _hoisted_2$7 = { class: "htw-w-28 htw-whitespace-nowrap htw-text-ellipsis htw-overflow-hidden htw-shrink-0" };
|
|
26
7
|
const _hoisted_3$6 = { class: "htw-grow htw-flex htw-items-center htw-gap-1" };
|
|
@@ -28,7 +9,8 @@ const _hoisted_4$4 = { class: "htw-block htw-grow" };
|
|
|
28
9
|
const __default__$c = {
|
|
29
10
|
name: "HstWrapper"
|
|
30
11
|
};
|
|
31
|
-
const _sfc_main$c = /* @__PURE__ */ defineComponent(
|
|
12
|
+
const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
13
|
+
...__default__$c,
|
|
32
14
|
props: {
|
|
33
15
|
title: null
|
|
34
16
|
},
|
|
@@ -53,7 +35,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
|
|
|
53
35
|
]);
|
|
54
36
|
};
|
|
55
37
|
}
|
|
56
|
-
})
|
|
38
|
+
});
|
|
57
39
|
const _hoisted_1$8 = { class: "htw-text-white htw-w-[16px] htw-h-[16px] htw-relative" };
|
|
58
40
|
const _hoisted_2$6 = {
|
|
59
41
|
width: "16",
|
|
@@ -65,7 +47,8 @@ const _hoisted_3$5 = ["stroke-dasharray", "stroke-dashoffset"];
|
|
|
65
47
|
const __default__$b = {
|
|
66
48
|
name: "HstCheckbox"
|
|
67
49
|
};
|
|
68
|
-
const _sfc_main$b = /* @__PURE__ */ defineComponent(
|
|
50
|
+
const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
51
|
+
...__default__$b,
|
|
69
52
|
props: {
|
|
70
53
|
modelValue: { type: Boolean },
|
|
71
54
|
title: null
|
|
@@ -132,12 +115,13 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
|
|
|
132
115
|
}, 8, ["title"]);
|
|
133
116
|
};
|
|
134
117
|
}
|
|
135
|
-
})
|
|
118
|
+
});
|
|
136
119
|
const _hoisted_1$7 = ["value"];
|
|
137
120
|
const __default__$a = {
|
|
138
121
|
name: "HstText"
|
|
139
122
|
};
|
|
140
|
-
const _sfc_main$a = /* @__PURE__ */ defineComponent(
|
|
123
|
+
const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
124
|
+
...__default__$a,
|
|
141
125
|
props: {
|
|
142
126
|
title: null,
|
|
143
127
|
modelValue: null
|
|
@@ -161,7 +145,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
|
|
|
161
145
|
createElementVNode("input", mergeProps({
|
|
162
146
|
ref_key: "input",
|
|
163
147
|
ref: input
|
|
164
|
-
},
|
|
148
|
+
}, { ..._ctx.$attrs, class: null, style: null }, {
|
|
165
149
|
type: "text",
|
|
166
150
|
value: __props.modelValue,
|
|
167
151
|
class: "htw-text-inherit htw-bg-transparent htw-w-full htw-outline-none htw-px-2 htw-py-1 -htw-my-1 htw-border htw-border-solid htw-border-black/25 dark:htw-border-white/25 focus:htw-border-primary-500 dark:focus:htw-border-primary-500 htw-rounded-sm",
|
|
@@ -172,12 +156,13 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
|
|
|
172
156
|
}, 8, ["title", "class", "style"]);
|
|
173
157
|
};
|
|
174
158
|
}
|
|
175
|
-
})
|
|
159
|
+
});
|
|
176
160
|
const __default__$9 = {
|
|
177
161
|
name: "HstNumber",
|
|
178
162
|
inheritAttrs: false
|
|
179
163
|
};
|
|
180
|
-
const _sfc_main$9 = /* @__PURE__ */ defineComponent(
|
|
164
|
+
const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
165
|
+
...__default__$9,
|
|
181
166
|
props: {
|
|
182
167
|
title: null,
|
|
183
168
|
modelValue: null
|
|
@@ -241,7 +226,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
|
|
|
241
226
|
withDirectives(createElementVNode("input", mergeProps({
|
|
242
227
|
ref_key: "input",
|
|
243
228
|
ref: input
|
|
244
|
-
},
|
|
229
|
+
}, { ..._ctx.$attrs, class: null, style: null }, {
|
|
245
230
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(numberModel) ? numberModel.value = $event : null),
|
|
246
231
|
type: "number",
|
|
247
232
|
class: [{
|
|
@@ -260,7 +245,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
|
|
|
260
245
|
}, 8, ["title", "class", "style"]);
|
|
261
246
|
};
|
|
262
247
|
}
|
|
263
|
-
})
|
|
248
|
+
});
|
|
264
249
|
var HstSlider_vue_vue_type_style_index_0_lang = "";
|
|
265
250
|
const _hoisted_1$6 = { class: "htw-relative htw-w-full htw-flex htw-items-center" };
|
|
266
251
|
const _hoisted_2$5 = /* @__PURE__ */ createElementVNode("div", { class: "htw-absolute htw-inset-0 htw-flex htw-items-center" }, [
|
|
@@ -270,7 +255,8 @@ const __default__$8 = {
|
|
|
270
255
|
name: "HstSlider",
|
|
271
256
|
inheritAttrs: false
|
|
272
257
|
};
|
|
273
|
-
const _sfc_main$8 = /* @__PURE__ */ defineComponent(
|
|
258
|
+
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
259
|
+
...__default__$8,
|
|
274
260
|
props: {
|
|
275
261
|
title: null,
|
|
276
262
|
modelValue: null,
|
|
@@ -318,7 +304,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
|
|
|
318
304
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(numberModel) ? numberModel.value = $event : null),
|
|
319
305
|
class: "htw-range-input htw-appearance-none htw-border-0 htw-bg-transparent htw-cursor-pointer htw-relative htw-w-full htw-m-0 htw-text-gray-700",
|
|
320
306
|
type: "range"
|
|
321
|
-
},
|
|
307
|
+
}, { ..._ctx.$attrs, class: null, style: null, min: __props.min, max: __props.max }, {
|
|
322
308
|
onMouseover: _cache[1] || (_cache[1] = ($event) => showTooltip.value = true),
|
|
323
309
|
onMouseleave: _cache[2] || (_cache[2] = ($event) => showTooltip.value = false)
|
|
324
310
|
}), null, 16), [
|
|
@@ -342,13 +328,14 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
|
|
|
342
328
|
}, 8, ["title", "class", "style"]);
|
|
343
329
|
};
|
|
344
330
|
}
|
|
345
|
-
})
|
|
331
|
+
});
|
|
346
332
|
const _hoisted_1$5 = ["value"];
|
|
347
333
|
const __default__$7 = {
|
|
348
334
|
name: "HstTextarea",
|
|
349
335
|
inheritAttrs: false
|
|
350
336
|
};
|
|
351
|
-
const _sfc_main$7 = /* @__PURE__ */ defineComponent(
|
|
337
|
+
const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
338
|
+
...__default__$7,
|
|
352
339
|
props: {
|
|
353
340
|
title: null,
|
|
354
341
|
modelValue: null
|
|
@@ -372,7 +359,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
|
|
|
372
359
|
createElementVNode("textarea", mergeProps({
|
|
373
360
|
ref_key: "input",
|
|
374
361
|
ref: input
|
|
375
|
-
},
|
|
362
|
+
}, { ..._ctx.$attrs, class: null, style: null }, {
|
|
376
363
|
value: __props.modelValue,
|
|
377
364
|
class: "htw-text-inherit htw-bg-transparent htw-w-full htw-outline-none htw-px-2 htw-py-1 -htw-my-1 htw-border htw-border-solid htw-border-black/25 dark:htw-border-white/25 focus:htw-border-primary-500 dark:focus:htw-border-primary-500 htw-rounded-sm htw-box-border htw-resize-y htw-min-h-[26px]",
|
|
378
365
|
onInput: _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event.target.value))
|
|
@@ -382,7 +369,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
|
|
|
382
369
|
}, 8, ["title", "class", "style"]);
|
|
383
370
|
};
|
|
384
371
|
}
|
|
385
|
-
})
|
|
372
|
+
});
|
|
386
373
|
var CustomSelect_vue_vue_type_style_index_0_lang = "";
|
|
387
374
|
const _hoisted_1$4 = { class: "htw-cursor-pointer htw-w-full htw-outline-none htw-px-2 htw-h-[27px] -htw-my-1 htw-border htw-border-solid htw-border-black/25 dark:htw-border-white/25 hover:htw-border-primary-500 dark:hover:htw-border-primary-500 htw-rounded-sm htw-flex htw-gap-2 htw-items-center htw-leading-normal" };
|
|
388
375
|
const _hoisted_2$4 = { class: "htw-flex-1 htw-truncate" };
|
|
@@ -391,7 +378,8 @@ const _hoisted_4$3 = ["onClick"];
|
|
|
391
378
|
const __default__$6 = {
|
|
392
379
|
name: "CustomSelect"
|
|
393
380
|
};
|
|
394
|
-
const _sfc_main$6 = /* @__PURE__ */ defineComponent(
|
|
381
|
+
const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
382
|
+
...__default__$6,
|
|
395
383
|
props: {
|
|
396
384
|
modelValue: null,
|
|
397
385
|
options: null
|
|
@@ -425,7 +413,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
|
|
|
425
413
|
popper: withCtx(({ hide }) => [
|
|
426
414
|
createElementVNode("div", _hoisted_3$4, [
|
|
427
415
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(formattedOptions), ([value, label]) => {
|
|
428
|
-
return openBlock(), createElementBlock("div", mergeProps(
|
|
416
|
+
return openBlock(), createElementBlock("div", mergeProps({ ..._ctx.$attrs, class: null, style: null }, {
|
|
429
417
|
key: label,
|
|
430
418
|
class: ["htw-px-2 htw-py-1 htw-cursor-pointer hover:htw-bg-primary-100 dark:hover:htw-bg-primary-700", {
|
|
431
419
|
"htw-bg-primary-200 dark:htw-bg-primary-800": props.modelValue === value
|
|
@@ -452,11 +440,12 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
|
|
|
452
440
|
});
|
|
453
441
|
};
|
|
454
442
|
}
|
|
455
|
-
})
|
|
443
|
+
});
|
|
456
444
|
const __default__$5 = {
|
|
457
445
|
name: "HstSelect"
|
|
458
446
|
};
|
|
459
|
-
const _sfc_main$5 = /* @__PURE__ */ defineComponent(
|
|
447
|
+
const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
448
|
+
...__default__$5,
|
|
460
449
|
props: {
|
|
461
450
|
title: null,
|
|
462
451
|
modelValue: null,
|
|
@@ -484,11 +473,12 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
|
|
|
484
473
|
}, 8, ["title", "class", "style"]);
|
|
485
474
|
};
|
|
486
475
|
}
|
|
487
|
-
})
|
|
476
|
+
});
|
|
488
477
|
const __default__$4 = {
|
|
489
478
|
name: "HstCopyIcon"
|
|
490
479
|
};
|
|
491
|
-
const _sfc_main$4 = /* @__PURE__ */ defineComponent(
|
|
480
|
+
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
481
|
+
...__default__$4,
|
|
492
482
|
props: {
|
|
493
483
|
content: null
|
|
494
484
|
},
|
|
@@ -512,7 +502,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
|
|
|
512
502
|
]);
|
|
513
503
|
};
|
|
514
504
|
}
|
|
515
|
-
})
|
|
505
|
+
});
|
|
516
506
|
const _hoisted_1$3 = {
|
|
517
507
|
key: 0,
|
|
518
508
|
class: "htw-grid htw-gap-4 htw-grid-cols-[repeat(auto-fill,minmax(200px,1fr))] htw-m-4"
|
|
@@ -525,7 +515,8 @@ const _hoisted_6$1 = { class: "htw-my-0 htw-opacity-50 htw-truncate htw-shrink"
|
|
|
525
515
|
const __default__$3 = {
|
|
526
516
|
name: "HstColorShades"
|
|
527
517
|
};
|
|
528
|
-
const _sfc_main$3 = /* @__PURE__ */ defineComponent(
|
|
518
|
+
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
519
|
+
...__default__$3,
|
|
529
520
|
props: {
|
|
530
521
|
shades: null,
|
|
531
522
|
getName: null,
|
|
@@ -604,7 +595,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
|
|
|
604
595
|
])) : createCommentVNode("", true);
|
|
605
596
|
};
|
|
606
597
|
}
|
|
607
|
-
})
|
|
598
|
+
});
|
|
608
599
|
const _hoisted_1$2 = ["onMouseenter"];
|
|
609
600
|
const _hoisted_2$2 = { class: "htw-mx-4" };
|
|
610
601
|
const _hoisted_3$2 = { class: "htw-flex htw-gap-1" };
|
|
@@ -614,7 +605,8 @@ const _hoisted_6 = { class: "htw-my-0 htw-opacity-50 htw-truncate htw-shrink" };
|
|
|
614
605
|
const __default__$2 = {
|
|
615
606
|
name: "HstTokenList"
|
|
616
607
|
};
|
|
617
|
-
const _sfc_main$2 = /* @__PURE__ */ defineComponent(
|
|
608
|
+
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
609
|
+
...__default__$2,
|
|
618
610
|
props: {
|
|
619
611
|
tokens: null,
|
|
620
612
|
getName: null
|
|
@@ -665,7 +657,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
|
|
|
665
657
|
}), 128);
|
|
666
658
|
};
|
|
667
659
|
}
|
|
668
|
-
})
|
|
660
|
+
});
|
|
669
661
|
var HstTokenGrid_vue_vue_type_style_index_0_lang = "";
|
|
670
662
|
const _hoisted_1$1 = ["onMouseenter"];
|
|
671
663
|
const _hoisted_2$1 = { class: "htw-flex htw-gap-1" };
|
|
@@ -675,7 +667,8 @@ const _hoisted_5 = { class: "htw-my-0 htw-opacity-50 htw-truncate htw-shrink" };
|
|
|
675
667
|
const __default__$1 = {
|
|
676
668
|
name: "HstTokenGrid"
|
|
677
669
|
};
|
|
678
|
-
const _sfc_main$1 = /* @__PURE__ */ defineComponent(
|
|
670
|
+
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
671
|
+
...__default__$1,
|
|
679
672
|
props: {
|
|
680
673
|
tokens: null,
|
|
681
674
|
colSize: { default: 180 },
|
|
@@ -743,14 +736,15 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
|
|
|
743
736
|
], 4);
|
|
744
737
|
};
|
|
745
738
|
}
|
|
746
|
-
})
|
|
739
|
+
});
|
|
747
740
|
const _hoisted_1 = { class: "-htw-my-1" };
|
|
748
741
|
const _hoisted_2 = ["id", "name", "value", "checked", "onChange"];
|
|
749
742
|
const _hoisted_3 = ["for", "onKeydown"];
|
|
750
743
|
const __default__ = {
|
|
751
744
|
name: "HstRadio"
|
|
752
745
|
};
|
|
753
|
-
const _sfc_main = /* @__PURE__ */ defineComponent(
|
|
746
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
747
|
+
...__default__,
|
|
754
748
|
props: {
|
|
755
749
|
title: null,
|
|
756
750
|
modelValue: null,
|
|
@@ -837,7 +831,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
837
831
|
}, 8, ["title", "class", "style"]);
|
|
838
832
|
};
|
|
839
833
|
}
|
|
840
|
-
})
|
|
834
|
+
});
|
|
841
835
|
const HstCheckbox = _sfc_main$b;
|
|
842
836
|
const HstText = _sfc_main$a;
|
|
843
837
|
const HstNumber = _sfc_main$9;
|
|
@@ -204,6 +204,102 @@
|
|
|
204
204
|
}
|
|
205
205
|
|
|
206
206
|
*, ::before, ::after{
|
|
207
|
+
--tw-border-spacing-x:0;
|
|
208
|
+
--tw-border-spacing-y:0;
|
|
209
|
+
--tw-translate-x:0;
|
|
210
|
+
--tw-translate-y:0;
|
|
211
|
+
--tw-rotate:0;
|
|
212
|
+
--tw-skew-x:0;
|
|
213
|
+
--tw-skew-y:0;
|
|
214
|
+
--tw-scale-x:1;
|
|
215
|
+
--tw-scale-y:1;
|
|
216
|
+
--tw-pan-x: ;
|
|
217
|
+
--tw-pan-y: ;
|
|
218
|
+
--tw-pinch-zoom: ;
|
|
219
|
+
--tw-scroll-snap-strictness:proximity;
|
|
220
|
+
--tw-ordinal: ;
|
|
221
|
+
--tw-slashed-zero: ;
|
|
222
|
+
--tw-numeric-figure: ;
|
|
223
|
+
--tw-numeric-spacing: ;
|
|
224
|
+
--tw-numeric-fraction: ;
|
|
225
|
+
--tw-ring-inset: ;
|
|
226
|
+
--tw-ring-offset-width:0px;
|
|
227
|
+
--tw-ring-offset-color:#fff;
|
|
228
|
+
--tw-ring-color:rgb(59 130 246 / 0.5);
|
|
229
|
+
--tw-ring-offset-shadow:0 0 #0000;
|
|
230
|
+
--tw-ring-shadow:0 0 #0000;
|
|
231
|
+
--tw-shadow:0 0 #0000;
|
|
232
|
+
--tw-shadow-colored:0 0 #0000;
|
|
233
|
+
--tw-blur: ;
|
|
234
|
+
--tw-brightness: ;
|
|
235
|
+
--tw-contrast: ;
|
|
236
|
+
--tw-grayscale: ;
|
|
237
|
+
--tw-hue-rotate: ;
|
|
238
|
+
--tw-invert: ;
|
|
239
|
+
--tw-saturate: ;
|
|
240
|
+
--tw-sepia: ;
|
|
241
|
+
--tw-drop-shadow: ;
|
|
242
|
+
--tw-backdrop-blur: ;
|
|
243
|
+
--tw-backdrop-brightness: ;
|
|
244
|
+
--tw-backdrop-contrast: ;
|
|
245
|
+
--tw-backdrop-grayscale: ;
|
|
246
|
+
--tw-backdrop-hue-rotate: ;
|
|
247
|
+
--tw-backdrop-invert: ;
|
|
248
|
+
--tw-backdrop-opacity: ;
|
|
249
|
+
--tw-backdrop-saturate: ;
|
|
250
|
+
--tw-backdrop-sepia:
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
::-webkit-backdrop{
|
|
254
|
+
--tw-border-spacing-x:0;
|
|
255
|
+
--tw-border-spacing-y:0;
|
|
256
|
+
--tw-translate-x:0;
|
|
257
|
+
--tw-translate-y:0;
|
|
258
|
+
--tw-rotate:0;
|
|
259
|
+
--tw-skew-x:0;
|
|
260
|
+
--tw-skew-y:0;
|
|
261
|
+
--tw-scale-x:1;
|
|
262
|
+
--tw-scale-y:1;
|
|
263
|
+
--tw-pan-x: ;
|
|
264
|
+
--tw-pan-y: ;
|
|
265
|
+
--tw-pinch-zoom: ;
|
|
266
|
+
--tw-scroll-snap-strictness:proximity;
|
|
267
|
+
--tw-ordinal: ;
|
|
268
|
+
--tw-slashed-zero: ;
|
|
269
|
+
--tw-numeric-figure: ;
|
|
270
|
+
--tw-numeric-spacing: ;
|
|
271
|
+
--tw-numeric-fraction: ;
|
|
272
|
+
--tw-ring-inset: ;
|
|
273
|
+
--tw-ring-offset-width:0px;
|
|
274
|
+
--tw-ring-offset-color:#fff;
|
|
275
|
+
--tw-ring-color:rgb(59 130 246 / 0.5);
|
|
276
|
+
--tw-ring-offset-shadow:0 0 #0000;
|
|
277
|
+
--tw-ring-shadow:0 0 #0000;
|
|
278
|
+
--tw-shadow:0 0 #0000;
|
|
279
|
+
--tw-shadow-colored:0 0 #0000;
|
|
280
|
+
--tw-blur: ;
|
|
281
|
+
--tw-brightness: ;
|
|
282
|
+
--tw-contrast: ;
|
|
283
|
+
--tw-grayscale: ;
|
|
284
|
+
--tw-hue-rotate: ;
|
|
285
|
+
--tw-invert: ;
|
|
286
|
+
--tw-saturate: ;
|
|
287
|
+
--tw-sepia: ;
|
|
288
|
+
--tw-drop-shadow: ;
|
|
289
|
+
--tw-backdrop-blur: ;
|
|
290
|
+
--tw-backdrop-brightness: ;
|
|
291
|
+
--tw-backdrop-contrast: ;
|
|
292
|
+
--tw-backdrop-grayscale: ;
|
|
293
|
+
--tw-backdrop-hue-rotate: ;
|
|
294
|
+
--tw-backdrop-invert: ;
|
|
295
|
+
--tw-backdrop-opacity: ;
|
|
296
|
+
--tw-backdrop-saturate: ;
|
|
297
|
+
--tw-backdrop-sepia:
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
::backdrop{
|
|
301
|
+
--tw-border-spacing-x:0;
|
|
302
|
+
--tw-border-spacing-y:0;
|
|
207
303
|
--tw-translate-x:0;
|
|
208
304
|
--tw-translate-y:0;
|
|
209
305
|
--tw-rotate:0;
|
|
@@ -436,7 +532,6 @@
|
|
|
436
532
|
.htw-select-none{
|
|
437
533
|
-webkit-user-select:none;
|
|
438
534
|
-moz-user-select:none;
|
|
439
|
-
-ms-user-select:none;
|
|
440
535
|
user-select:none
|
|
441
536
|
}
|
|
442
537
|
|
|
@@ -573,6 +668,11 @@
|
|
|
573
668
|
background-color:rgb(167 243 208 / var(--tw-bg-opacity))
|
|
574
669
|
}
|
|
575
670
|
|
|
671
|
+
.htw-bg-primary-800{
|
|
672
|
+
--tw-bg-opacity:1;
|
|
673
|
+
background-color:rgb(6 95 70 / var(--tw-bg-opacity))
|
|
674
|
+
}
|
|
675
|
+
|
|
576
676
|
.htw-bg-gray-700{
|
|
577
677
|
--tw-bg-opacity:1;
|
|
578
678
|
background-color:rgb(63 63 70 / var(--tw-bg-opacity))
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@histoire/controls",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.2",
|
|
4
4
|
"description": "Prebuilt controls components",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
"type": "module",
|
|
18
18
|
"exports": {
|
|
19
19
|
".": {
|
|
20
|
-
"
|
|
21
|
-
"
|
|
20
|
+
"types": "./dist/index.d.ts",
|
|
21
|
+
"default": "./dist/index.es.js"
|
|
22
22
|
},
|
|
23
23
|
"./*": "./*"
|
|
24
24
|
},
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"*.vue"
|
|
32
32
|
],
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@histoire/vendors": "^0.
|
|
34
|
+
"@histoire/vendors": "^0.9.2"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@peeky/test": "^0.13.5",
|
|
@@ -41,8 +41,7 @@
|
|
|
41
41
|
"@vueuse/core": "^8.2.5",
|
|
42
42
|
"autoprefixer": "^10.4.4",
|
|
43
43
|
"concurrently": "^7.1.0",
|
|
44
|
-
"floating-vue": "^2.0.0-beta.
|
|
45
|
-
"histoire": "0.8.4",
|
|
44
|
+
"floating-vue": "^2.0.0-beta.19",
|
|
46
45
|
"postcss": "^8.4.12",
|
|
47
46
|
"postcss-import": "^14.1.0",
|
|
48
47
|
"tailwindcss": "^3.0.23",
|
|
@@ -58,9 +57,6 @@
|
|
|
58
57
|
"watch": "concurrently \"vite build --watch\" \"pnpm run build:types --watch\"",
|
|
59
58
|
"watch:full": "concurrently \"vite build --watch\" \"pnpm run build:css --watch\" \"pnpm run build:types --watch\"",
|
|
60
59
|
"test:open": "peeky open --port 5010",
|
|
61
|
-
"test": "peeky run"
|
|
62
|
-
"story:dev": "histoire dev",
|
|
63
|
-
"story:build": "histoire build",
|
|
64
|
-
"story:preview": "histoire preview"
|
|
60
|
+
"test": "peeky run"
|
|
65
61
|
}
|
|
66
62
|
}
|
package/tailwind.config.cjs
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
const path = require('path')
|
|
1
2
|
const inheritedConfig = require('../../tailwind.config.cjs')
|
|
2
3
|
|
|
3
4
|
module.exports = {
|
|
4
5
|
...inheritedConfig,
|
|
5
6
|
prefix: 'htw-',
|
|
6
7
|
content: [
|
|
7
|
-
'./src/**/*.{vue,js,ts,jsx,tsx,md}',
|
|
8
|
+
path.resolve(__dirname, './src/**/*.{vue,js,ts,jsx,tsx,md}'),
|
|
8
9
|
],
|
|
9
10
|
// corePlugins: {
|
|
10
11
|
// preflight: false,
|
package/tsconfig.json
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
"moduleResolution": "node",
|
|
6
6
|
"outDir": "dist",
|
|
7
7
|
"rootDir": "src",
|
|
8
|
+
"baseUrl": ".",
|
|
8
9
|
"allowSyntheticDefaultImports": true,
|
|
9
10
|
"esModuleInterop": true,
|
|
10
11
|
"removeComments": false,
|
|
@@ -31,13 +32,13 @@
|
|
|
31
32
|
"jsx": "preserve",
|
|
32
33
|
// Alias
|
|
33
34
|
"paths": {
|
|
34
|
-
"floating-vue": ["./node_modules/@histoire/vendors/
|
|
35
|
-
"@iconify/vue": ["./node_modules/@histoire/vendors/
|
|
36
|
-
"pinia": ["./node_modules/@histoire/vendors/
|
|
37
|
-
"scroll-into-view-if-needed": ["./node_modules/@histoire/vendors/
|
|
38
|
-
"vue-router": ["./node_modules/@histoire/vendors/
|
|
39
|
-
"@vueuse/core": ["./node_modules/@histoire/vendors/
|
|
40
|
-
"vue": ["./node_modules/@histoire/vendors/
|
|
35
|
+
"floating-vue": ["./node_modules/@histoire/vendors/floating-vue"],
|
|
36
|
+
"@iconify/vue": ["./node_modules/@histoire/vendors/iconify"],
|
|
37
|
+
"pinia": ["./node_modules/@histoire/vendors/pinia"],
|
|
38
|
+
"scroll-into-view-if-needed": ["./node_modules/@histoire/vendors/scroll"],
|
|
39
|
+
"vue-router": ["./node_modules/@histoire/vendors/vue-router"],
|
|
40
|
+
"@vueuse/core": ["./node_modules/@histoire/vendors/vue-use"],
|
|
41
|
+
"vue": ["./node_modules/@histoire/vendors/vue"]
|
|
41
42
|
}
|
|
42
43
|
},
|
|
43
44
|
"include": [
|
package/vite.config.ts
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
/// <reference types="histoire"/>
|
|
2
|
-
|
|
3
1
|
import { defineConfig } from 'vite'
|
|
4
2
|
import vue from '@vitejs/plugin-vue'
|
|
5
3
|
|
|
@@ -10,13 +8,13 @@ export default defineConfig({
|
|
|
10
8
|
|
|
11
9
|
resolve: {
|
|
12
10
|
alias: {
|
|
13
|
-
'floating-vue': '@histoire/vendors/
|
|
14
|
-
'@iconify/vue': '@histoire/vendors/
|
|
15
|
-
pinia: '@histoire/vendors/
|
|
16
|
-
'scroll-into-view-if-needed': '@histoire/vendors/
|
|
17
|
-
'vue-router': '@histoire/vendors/
|
|
18
|
-
'@vueuse/core': '@histoire/vendors/
|
|
19
|
-
vue: '@histoire/vendors/
|
|
11
|
+
'floating-vue': '@histoire/vendors/floating-vue',
|
|
12
|
+
'@iconify/vue': '@histoire/vendors/iconify',
|
|
13
|
+
pinia: '@histoire/vendors/pinia',
|
|
14
|
+
'scroll-into-view-if-needed': '@histoire/vendors/scroll',
|
|
15
|
+
'vue-router': '@histoire/vendors/vue-router',
|
|
16
|
+
'@vueuse/core': '@histoire/vendors/vue-use',
|
|
17
|
+
vue: '@histoire/vendors/vue',
|
|
20
18
|
},
|
|
21
19
|
},
|
|
22
20
|
|
|
@@ -37,22 +35,4 @@ export default defineConfig({
|
|
|
37
35
|
],
|
|
38
36
|
},
|
|
39
37
|
},
|
|
40
|
-
|
|
41
|
-
histoire: {
|
|
42
|
-
setupFile: '/src/histoire-setup.ts',
|
|
43
|
-
vite: (config) => {
|
|
44
|
-
config.plugins = [{
|
|
45
|
-
name: 'my-vite-config',
|
|
46
|
-
enforce: 'post',
|
|
47
|
-
config (config) {
|
|
48
|
-
config.build.lib = false
|
|
49
|
-
config.build.rollupOptions.external = []
|
|
50
|
-
},
|
|
51
|
-
}]
|
|
52
|
-
},
|
|
53
|
-
theme: {
|
|
54
|
-
title: 'Histoire controls',
|
|
55
|
-
favicon: '/histoire.svg',
|
|
56
|
-
},
|
|
57
|
-
},
|
|
58
38
|
})
|
package/dist/histoire-setup.d.ts
DELETED
package/dist/histoire.svg
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
2
|
-
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
|
3
|
-
|
|
4
|
-
<svg
|
|
5
|
-
width="512"
|
|
6
|
-
height="512"
|
|
7
|
-
viewBox="0 0 512 512"
|
|
8
|
-
version="1.1"
|
|
9
|
-
id="svg5"
|
|
10
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
11
|
-
xmlns:svg="http://www.w3.org/2000/svg">
|
|
12
|
-
<defs
|
|
13
|
-
id="defs2" />
|
|
14
|
-
<g
|
|
15
|
-
id="layer1">
|
|
16
|
-
<rect
|
|
17
|
-
style="opacity:0.5;fill:#34d399;fill-opacity:1;stroke-width:1.00375"
|
|
18
|
-
id="rect1372"
|
|
19
|
-
width="314.30923"
|
|
20
|
-
height="406.60901"
|
|
21
|
-
x="-26.565063"
|
|
22
|
-
y="134.75079"
|
|
23
|
-
transform="rotate(-23.821262)"
|
|
24
|
-
ry="8" />
|
|
25
|
-
<rect
|
|
26
|
-
style="fill:#34d399;fill-opacity:1;stroke-width:1.00375"
|
|
27
|
-
id="rect850"
|
|
28
|
-
width="314.30923"
|
|
29
|
-
height="406.60901"
|
|
30
|
-
x="77.571838"
|
|
31
|
-
y="72.808708"
|
|
32
|
-
ry="8"
|
|
33
|
-
transform="rotate(-4.5744534)" />
|
|
34
|
-
</g>
|
|
35
|
-
<g
|
|
36
|
-
id="layer3">
|
|
37
|
-
<path
|
|
38
|
-
id="path1657-3"
|
|
39
|
-
style="display:inline;fill:#b4fae2;fill-opacity:1;stroke:#b4fae2;stroke-width:8.34923;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
|
40
|
-
d="M 359.38947,355.95134 320.72935,176.52942 238.34613,238.94118 Z M 273.64124,273.06608 152.59788,156.05591 191.25804,335.47786 Z" />
|
|
41
|
-
</g>
|
|
42
|
-
<g
|
|
43
|
-
id="layer2"
|
|
44
|
-
style="display:none">
|
|
45
|
-
<path
|
|
46
|
-
id="path1657"
|
|
47
|
-
style="fill:#b4fae2;fill-opacity:1;stroke:#b4fae2;stroke-width:8;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
|
48
|
-
d="m 296,103.98242 -135.53125,177.9668 h 88.70117 z M 262.83008,230.05078 216,408.01758 351.53125,230.05078 Z"
|
|
49
|
-
transform="rotate(-4.156553,256,256.00691)" />
|
|
50
|
-
</g>
|
|
51
|
-
</svg>
|
package/public/histoire.svg
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
2
|
-
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
|
3
|
-
|
|
4
|
-
<svg
|
|
5
|
-
width="512"
|
|
6
|
-
height="512"
|
|
7
|
-
viewBox="0 0 512 512"
|
|
8
|
-
version="1.1"
|
|
9
|
-
id="svg5"
|
|
10
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
11
|
-
xmlns:svg="http://www.w3.org/2000/svg">
|
|
12
|
-
<defs
|
|
13
|
-
id="defs2" />
|
|
14
|
-
<g
|
|
15
|
-
id="layer1">
|
|
16
|
-
<rect
|
|
17
|
-
style="opacity:0.5;fill:#34d399;fill-opacity:1;stroke-width:1.00375"
|
|
18
|
-
id="rect1372"
|
|
19
|
-
width="314.30923"
|
|
20
|
-
height="406.60901"
|
|
21
|
-
x="-26.565063"
|
|
22
|
-
y="134.75079"
|
|
23
|
-
transform="rotate(-23.821262)"
|
|
24
|
-
ry="8" />
|
|
25
|
-
<rect
|
|
26
|
-
style="fill:#34d399;fill-opacity:1;stroke-width:1.00375"
|
|
27
|
-
id="rect850"
|
|
28
|
-
width="314.30923"
|
|
29
|
-
height="406.60901"
|
|
30
|
-
x="77.571838"
|
|
31
|
-
y="72.808708"
|
|
32
|
-
ry="8"
|
|
33
|
-
transform="rotate(-4.5744534)" />
|
|
34
|
-
</g>
|
|
35
|
-
<g
|
|
36
|
-
id="layer3">
|
|
37
|
-
<path
|
|
38
|
-
id="path1657-3"
|
|
39
|
-
style="display:inline;fill:#b4fae2;fill-opacity:1;stroke:#b4fae2;stroke-width:8.34923;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
|
40
|
-
d="M 359.38947,355.95134 320.72935,176.52942 238.34613,238.94118 Z M 273.64124,273.06608 152.59788,156.05591 191.25804,335.47786 Z" />
|
|
41
|
-
</g>
|
|
42
|
-
<g
|
|
43
|
-
id="layer2"
|
|
44
|
-
style="display:none">
|
|
45
|
-
<path
|
|
46
|
-
id="path1657"
|
|
47
|
-
style="fill:#b4fae2;fill-opacity:1;stroke:#b4fae2;stroke-width:8;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
|
48
|
-
d="m 296,103.98242 -135.53125,177.9668 h 88.70117 z M 262.83008,230.05078 216,408.01758 351.53125,230.05078 Z"
|
|
49
|
-
transform="rotate(-4.156553,256,256.00691)" />
|
|
50
|
-
</g>
|
|
51
|
-
</svg>
|