@poveste/controls 0.15.0 → 0.16.1
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/HstColor-DHgxKTkm.es.js +2405 -0
- package/dist/HstDate-Ct5Jp_ZD.es.js +4954 -0
- package/dist/{HstJson-3DiXqRjL.es.js → HstJson-D83KEa9o.es.js} +2734 -2454
- package/dist/HstWrapper-Bm5H3_to.es.js +2835 -0
- package/dist/PopoverTrigger-BVAfE9fE.es.js +974 -0
- package/dist/VisuallyHiddenInput-0it-_FH2.es.js +183 -0
- package/dist/components/HstTooltip.vue.d.ts +39 -0
- package/dist/components/button/HstButton.vue.d.ts +2 -2
- package/dist/components/checkbox/CheckboxVisual.vue.d.ts +7 -0
- package/dist/components/color/HstColor.story.vue.d.ts +3 -0
- package/dist/components/color/HstColor.vue.d.ts +25 -0
- package/dist/components/date/HstDate.story.vue.d.ts +3 -0
- package/dist/components/date/HstDate.vue.d.ts +30 -0
- package/dist/components/date/iso.d.ts +5 -0
- package/dist/components/json/serialize.d.ts +7 -3
- package/dist/index.d.ts +295 -7
- package/dist/index.es.css +1 -1
- package/dist/index.es.js +2176 -412
- package/dist/portal-target.d.ts +13 -0
- package/dist/style-standalone.css +122 -449
- package/dist/useKbd-DQM4Oqri.es.js +41 -0
- package/dist/useLocale-Dr4PRYn1.es.js +27 -0
- package/package.json +20 -18
- package/dist/HstWrapper-C557fRoN.es.js +0 -22
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const HstButton: {
|
|
2
2
|
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
3
|
-
color?: "
|
|
3
|
+
color?: "default" | "primary" | "flat";
|
|
4
4
|
}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
5
5
|
P: {};
|
|
6
6
|
B: {};
|
|
@@ -9,13 +9,13 @@ export declare const HstButton: {
|
|
|
9
9
|
M: {};
|
|
10
10
|
Defaults: {};
|
|
11
11
|
}, Readonly<{
|
|
12
|
-
color?: "
|
|
12
|
+
color?: "default" | "primary" | "flat";
|
|
13
13
|
}> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
14
14
|
__isFragment?: never;
|
|
15
15
|
__isTeleport?: never;
|
|
16
16
|
__isSuspense?: never;
|
|
17
17
|
} & import("vue").ComponentOptionsBase<Readonly<{
|
|
18
|
-
color?: "
|
|
18
|
+
color?: "default" | "primary" | "flat";
|
|
19
19
|
}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
20
20
|
$slots: {
|
|
21
21
|
default?: (props: {}) => any;
|
|
@@ -406,6 +406,63 @@ export declare const HstCopyIcon: import("vue").DefineComponent<{
|
|
|
406
406
|
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
|
|
407
407
|
content: string | (() => import("@poveste/shared").Awaitable<string>);
|
|
408
408
|
}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
409
|
+
/**
|
|
410
|
+
* Public because `@poveste/app` uses it too: one wrapper for the whole chrome
|
|
411
|
+
* rather than one per package, which is what floating-vue's single theme was.
|
|
412
|
+
*
|
|
413
|
+
* Deliberately absent from `components` below. That list is the controls a story
|
|
414
|
+
* book registers globally and the Svelte bridge mirrors as `Hst.*`; a tooltip is
|
|
415
|
+
* not a control and has no state to bind.
|
|
416
|
+
*/
|
|
417
|
+
export declare const HstTooltip: {
|
|
418
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
419
|
+
content?: string | null | undefined;
|
|
420
|
+
side?: "top" | "right" | "bottom" | "left";
|
|
421
|
+
offset?: number;
|
|
422
|
+
open?: boolean | undefined;
|
|
423
|
+
}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
|
|
424
|
+
content: string | null | undefined;
|
|
425
|
+
side: "top" | "right" | "bottom" | "left";
|
|
426
|
+
offset: number;
|
|
427
|
+
open: boolean | undefined;
|
|
428
|
+
}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
429
|
+
P: {};
|
|
430
|
+
B: {};
|
|
431
|
+
D: {};
|
|
432
|
+
C: {};
|
|
433
|
+
M: {};
|
|
434
|
+
Defaults: {};
|
|
435
|
+
}, Readonly<{
|
|
436
|
+
content?: string | null | undefined;
|
|
437
|
+
side?: "top" | "right" | "bottom" | "left";
|
|
438
|
+
offset?: number;
|
|
439
|
+
open?: boolean | undefined;
|
|
440
|
+
}> & Readonly<{}>, {}, {}, {}, {}, {
|
|
441
|
+
content: string | null | undefined;
|
|
442
|
+
side: "top" | "right" | "bottom" | "left";
|
|
443
|
+
offset: number;
|
|
444
|
+
open: boolean | undefined;
|
|
445
|
+
}>;
|
|
446
|
+
__isFragment?: never;
|
|
447
|
+
__isTeleport?: never;
|
|
448
|
+
__isSuspense?: never;
|
|
449
|
+
} & import("vue").ComponentOptionsBase<Readonly<{
|
|
450
|
+
content?: string | null | undefined;
|
|
451
|
+
side?: "top" | "right" | "bottom" | "left";
|
|
452
|
+
offset?: number;
|
|
453
|
+
open?: boolean | undefined;
|
|
454
|
+
}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
455
|
+
content: string | null | undefined;
|
|
456
|
+
side: "top" | "right" | "bottom" | "left";
|
|
457
|
+
offset: number;
|
|
458
|
+
open: boolean | undefined;
|
|
459
|
+
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
460
|
+
$slots: {
|
|
461
|
+
default?: (props: {}) => any;
|
|
462
|
+
} & {
|
|
463
|
+
content?: (props: {}) => any;
|
|
464
|
+
};
|
|
465
|
+
});
|
|
409
466
|
export declare const HstRadio: {
|
|
410
467
|
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
411
468
|
title?: string;
|
|
@@ -446,9 +503,25 @@ export declare const HstRadio: {
|
|
|
446
503
|
};
|
|
447
504
|
});
|
|
448
505
|
/**
|
|
449
|
-
*
|
|
506
|
+
* The three controls a book pays for only when it uses one.
|
|
507
|
+
*
|
|
508
|
+
* `HstJson` is a CodeMirror editor — 430 KB of this package's 460 (#374).
|
|
509
|
+
* `HstDate` and `HstColor` are Reka's date and colour stacks, 215 KB and 101 KB
|
|
510
|
+
* of a built book, and a book with no date in it was downloading both.
|
|
511
|
+
*
|
|
450
512
|
* Needs `inlineDynamicImports: false` in the build config to mean anything: a
|
|
451
513
|
* single-entry lib build flattens dynamic imports back into one file.
|
|
514
|
+
*
|
|
515
|
+
* Nothing renders until the chunk arrives — no spinner, no reserved box. That is
|
|
516
|
+
* what `HstJson` has always done, and a controls panel is already laid out one
|
|
517
|
+
* row at a time, so a row appearing is the same motion as a row of a longer
|
|
518
|
+
* panel arriving.
|
|
519
|
+
*
|
|
520
|
+
* `name` and `emits` are put back on each wrapper, which carries neither.
|
|
521
|
+
* `@poveste/plugin-svelte`'s Wrap.svelte reads both: it builds its Vue listeners
|
|
522
|
+
* by iterating `controlComponent.emits`, so without this the control renders and
|
|
523
|
+
* edits in a Svelte book and never writes back. `index.spec.ts` pins them against
|
|
524
|
+
* the real components so these copies cannot drift.
|
|
452
525
|
*/
|
|
453
526
|
export declare const HstJson: {
|
|
454
527
|
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
@@ -489,6 +562,108 @@ export declare const HstJson: {
|
|
|
489
562
|
name: string;
|
|
490
563
|
emits: string[];
|
|
491
564
|
};
|
|
565
|
+
export declare const HstDate: {
|
|
566
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
567
|
+
title?: string | undefined;
|
|
568
|
+
modelValue?: string | null | undefined;
|
|
569
|
+
time?: boolean;
|
|
570
|
+
}> & Readonly<{
|
|
571
|
+
"onUpdate:modelValue"?: (value: string) => any;
|
|
572
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
573
|
+
"update:modelValue": (value: string) => any;
|
|
574
|
+
}, import("vue").PublicProps, {
|
|
575
|
+
time: boolean;
|
|
576
|
+
title: string | undefined;
|
|
577
|
+
modelValue: string | null | undefined;
|
|
578
|
+
}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
579
|
+
P: {};
|
|
580
|
+
B: {};
|
|
581
|
+
D: {};
|
|
582
|
+
C: {};
|
|
583
|
+
M: {};
|
|
584
|
+
Defaults: {};
|
|
585
|
+
}, Readonly<{
|
|
586
|
+
title?: string | undefined;
|
|
587
|
+
modelValue?: string | null | undefined;
|
|
588
|
+
time?: boolean;
|
|
589
|
+
}> & Readonly<{
|
|
590
|
+
"onUpdate:modelValue"?: (value: string) => any;
|
|
591
|
+
}>, {}, {}, {}, {}, {
|
|
592
|
+
time: boolean;
|
|
593
|
+
title: string | undefined;
|
|
594
|
+
modelValue: string | null | undefined;
|
|
595
|
+
}>;
|
|
596
|
+
__isFragment?: never;
|
|
597
|
+
__isTeleport?: never;
|
|
598
|
+
__isSuspense?: never;
|
|
599
|
+
} & import("vue").ComponentOptionsBase<Readonly<{
|
|
600
|
+
title?: string | undefined;
|
|
601
|
+
modelValue?: string | null | undefined;
|
|
602
|
+
time?: boolean;
|
|
603
|
+
}> & Readonly<{
|
|
604
|
+
"onUpdate:modelValue"?: (value: string) => any;
|
|
605
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
606
|
+
"update:modelValue": (value: string) => any;
|
|
607
|
+
}, string, {
|
|
608
|
+
time: boolean;
|
|
609
|
+
title: string | undefined;
|
|
610
|
+
modelValue: string | null | undefined;
|
|
611
|
+
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
612
|
+
$slots: {
|
|
613
|
+
actions?: (props: {}) => any;
|
|
614
|
+
};
|
|
615
|
+
}) & {
|
|
616
|
+
name: string;
|
|
617
|
+
emits: string[];
|
|
618
|
+
};
|
|
619
|
+
export declare const HstColor: {
|
|
620
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
621
|
+
title?: string | undefined;
|
|
622
|
+
modelValue?: string | null | undefined;
|
|
623
|
+
}> & Readonly<{
|
|
624
|
+
"onUpdate:modelValue"?: (value: string) => any;
|
|
625
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
626
|
+
"update:modelValue": (value: string) => any;
|
|
627
|
+
}, import("vue").PublicProps, {
|
|
628
|
+
title: string | undefined;
|
|
629
|
+
modelValue: string | null | undefined;
|
|
630
|
+
}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
631
|
+
P: {};
|
|
632
|
+
B: {};
|
|
633
|
+
D: {};
|
|
634
|
+
C: {};
|
|
635
|
+
M: {};
|
|
636
|
+
Defaults: {};
|
|
637
|
+
}, Readonly<{
|
|
638
|
+
title?: string | undefined;
|
|
639
|
+
modelValue?: string | null | undefined;
|
|
640
|
+
}> & Readonly<{
|
|
641
|
+
"onUpdate:modelValue"?: (value: string) => any;
|
|
642
|
+
}>, {}, {}, {}, {}, {
|
|
643
|
+
title: string | undefined;
|
|
644
|
+
modelValue: string | null | undefined;
|
|
645
|
+
}>;
|
|
646
|
+
__isFragment?: never;
|
|
647
|
+
__isTeleport?: never;
|
|
648
|
+
__isSuspense?: never;
|
|
649
|
+
} & import("vue").ComponentOptionsBase<Readonly<{
|
|
650
|
+
title?: string | undefined;
|
|
651
|
+
modelValue?: string | null | undefined;
|
|
652
|
+
}> & Readonly<{
|
|
653
|
+
"onUpdate:modelValue"?: (value: string) => any;
|
|
654
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
655
|
+
"update:modelValue": (value: string) => any;
|
|
656
|
+
}, string, {
|
|
657
|
+
title: string | undefined;
|
|
658
|
+
modelValue: string | null | undefined;
|
|
659
|
+
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
660
|
+
$slots: {
|
|
661
|
+
actions?: (props: {}) => any;
|
|
662
|
+
};
|
|
663
|
+
}) & {
|
|
664
|
+
name: string;
|
|
665
|
+
emits: string[];
|
|
666
|
+
};
|
|
492
667
|
export declare const HstColorSelect: {
|
|
493
668
|
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
494
669
|
title?: string;
|
|
@@ -528,7 +703,7 @@ export declare const HstColorSelect: {
|
|
|
528
703
|
export declare const components: {
|
|
529
704
|
HstButton: {
|
|
530
705
|
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
531
|
-
color?: "
|
|
706
|
+
color?: "default" | "primary" | "flat";
|
|
532
707
|
}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
533
708
|
P: {};
|
|
534
709
|
B: {};
|
|
@@ -537,13 +712,13 @@ export declare const components: {
|
|
|
537
712
|
M: {};
|
|
538
713
|
Defaults: {};
|
|
539
714
|
}, Readonly<{
|
|
540
|
-
color?: "
|
|
715
|
+
color?: "default" | "primary" | "flat";
|
|
541
716
|
}> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
542
717
|
__isFragment?: never;
|
|
543
718
|
__isTeleport?: never;
|
|
544
719
|
__isSuspense?: never;
|
|
545
720
|
} & import("vue").ComponentOptionsBase<Readonly<{
|
|
546
|
-
color?: "
|
|
721
|
+
color?: "default" | "primary" | "flat";
|
|
547
722
|
}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
548
723
|
$slots: {
|
|
549
724
|
default?: (props: {}) => any;
|
|
@@ -864,6 +1039,108 @@ export declare const components: {
|
|
|
864
1039
|
actions?: (props: {}) => any;
|
|
865
1040
|
};
|
|
866
1041
|
});
|
|
1042
|
+
HstColor: {
|
|
1043
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
1044
|
+
title?: string | undefined;
|
|
1045
|
+
modelValue?: string | null | undefined;
|
|
1046
|
+
}> & Readonly<{
|
|
1047
|
+
"onUpdate:modelValue"?: (value: string) => any;
|
|
1048
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
1049
|
+
"update:modelValue": (value: string) => any;
|
|
1050
|
+
}, import("vue").PublicProps, {
|
|
1051
|
+
title: string | undefined;
|
|
1052
|
+
modelValue: string | null | undefined;
|
|
1053
|
+
}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
1054
|
+
P: {};
|
|
1055
|
+
B: {};
|
|
1056
|
+
D: {};
|
|
1057
|
+
C: {};
|
|
1058
|
+
M: {};
|
|
1059
|
+
Defaults: {};
|
|
1060
|
+
}, Readonly<{
|
|
1061
|
+
title?: string | undefined;
|
|
1062
|
+
modelValue?: string | null | undefined;
|
|
1063
|
+
}> & Readonly<{
|
|
1064
|
+
"onUpdate:modelValue"?: (value: string) => any;
|
|
1065
|
+
}>, {}, {}, {}, {}, {
|
|
1066
|
+
title: string | undefined;
|
|
1067
|
+
modelValue: string | null | undefined;
|
|
1068
|
+
}>;
|
|
1069
|
+
__isFragment?: never;
|
|
1070
|
+
__isTeleport?: never;
|
|
1071
|
+
__isSuspense?: never;
|
|
1072
|
+
} & import("vue").ComponentOptionsBase<Readonly<{
|
|
1073
|
+
title?: string | undefined;
|
|
1074
|
+
modelValue?: string | null | undefined;
|
|
1075
|
+
}> & Readonly<{
|
|
1076
|
+
"onUpdate:modelValue"?: (value: string) => any;
|
|
1077
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
1078
|
+
"update:modelValue": (value: string) => any;
|
|
1079
|
+
}, string, {
|
|
1080
|
+
title: string | undefined;
|
|
1081
|
+
modelValue: string | null | undefined;
|
|
1082
|
+
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
1083
|
+
$slots: {
|
|
1084
|
+
actions?: (props: {}) => any;
|
|
1085
|
+
};
|
|
1086
|
+
}) & {
|
|
1087
|
+
name: string;
|
|
1088
|
+
emits: string[];
|
|
1089
|
+
};
|
|
1090
|
+
HstDate: {
|
|
1091
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
1092
|
+
title?: string | undefined;
|
|
1093
|
+
modelValue?: string | null | undefined;
|
|
1094
|
+
time?: boolean;
|
|
1095
|
+
}> & Readonly<{
|
|
1096
|
+
"onUpdate:modelValue"?: (value: string) => any;
|
|
1097
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
1098
|
+
"update:modelValue": (value: string) => any;
|
|
1099
|
+
}, import("vue").PublicProps, {
|
|
1100
|
+
time: boolean;
|
|
1101
|
+
title: string | undefined;
|
|
1102
|
+
modelValue: string | null | undefined;
|
|
1103
|
+
}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
1104
|
+
P: {};
|
|
1105
|
+
B: {};
|
|
1106
|
+
D: {};
|
|
1107
|
+
C: {};
|
|
1108
|
+
M: {};
|
|
1109
|
+
Defaults: {};
|
|
1110
|
+
}, Readonly<{
|
|
1111
|
+
title?: string | undefined;
|
|
1112
|
+
modelValue?: string | null | undefined;
|
|
1113
|
+
time?: boolean;
|
|
1114
|
+
}> & Readonly<{
|
|
1115
|
+
"onUpdate:modelValue"?: (value: string) => any;
|
|
1116
|
+
}>, {}, {}, {}, {}, {
|
|
1117
|
+
time: boolean;
|
|
1118
|
+
title: string | undefined;
|
|
1119
|
+
modelValue: string | null | undefined;
|
|
1120
|
+
}>;
|
|
1121
|
+
__isFragment?: never;
|
|
1122
|
+
__isTeleport?: never;
|
|
1123
|
+
__isSuspense?: never;
|
|
1124
|
+
} & import("vue").ComponentOptionsBase<Readonly<{
|
|
1125
|
+
title?: string | undefined;
|
|
1126
|
+
modelValue?: string | null | undefined;
|
|
1127
|
+
time?: boolean;
|
|
1128
|
+
}> & Readonly<{
|
|
1129
|
+
"onUpdate:modelValue"?: (value: string) => any;
|
|
1130
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
1131
|
+
"update:modelValue": (value: string) => any;
|
|
1132
|
+
}, string, {
|
|
1133
|
+
time: boolean;
|
|
1134
|
+
title: string | undefined;
|
|
1135
|
+
modelValue: string | null | undefined;
|
|
1136
|
+
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
1137
|
+
$slots: {
|
|
1138
|
+
actions?: (props: {}) => any;
|
|
1139
|
+
};
|
|
1140
|
+
}) & {
|
|
1141
|
+
name: string;
|
|
1142
|
+
emits: string[];
|
|
1143
|
+
};
|
|
867
1144
|
HstJson: {
|
|
868
1145
|
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
869
1146
|
title?: string;
|
|
@@ -1049,4 +1326,15 @@ export declare const components: {
|
|
|
1049
1326
|
};
|
|
1050
1327
|
});
|
|
1051
1328
|
};
|
|
1329
|
+
export { portalTarget } from './portal-target.js';
|
|
1052
1330
|
export * from './types.js';
|
|
1331
|
+
/**
|
|
1332
|
+
* Reka's popover primitives, for `@poveste/app`.
|
|
1333
|
+
*
|
|
1334
|
+
* Re-exported rather than imported there directly so a book carries one copy of
|
|
1335
|
+
* Reka: both packages bundle their own dependencies, and `@poveste/vendors`
|
|
1336
|
+
* cannot help — Reka ships a single barrel, and anything an eager import reaches
|
|
1337
|
+
* through it stops being splittable, which is what the date and colour controls
|
|
1338
|
+
* are lazy for (#918).
|
|
1339
|
+
*/
|
|
1340
|
+
export { PopoverAnchor, PopoverContent, PopoverPortal, PopoverRoot, PopoverTrigger } from 'reka-ui';
|
package/dist/index.es.css
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
.bind-col-size{grid-template-columns:repeat(auto-fill, minmax(var(--poveste-col-size), 1fr))}.v-popper{line-height:0}.v-popper--theme-dropdown .v-popper__inner:where(.ptw-dark,.ptw-dark *){border-color:var(--color-gray-850,#1f1f21);background-color:var(--color-gray-700,var(--color-zinc-700));color:var(--color-gray-100,var(--color-zinc-100))}.v-popper--theme-dropdown .v-popper__arrow-inner:where(.ptw-dark,.ptw-dark *){border-color:var(--color-gray-700,var(--color-zinc-700))}.v-popper--theme-dropdown .v-popper__arrow-outer:where(.ptw-dark,.ptw-dark *){border-color:var(--color-gray-850,#1f1f21)}.v-popper--theme-dropdown.v-popper__popper--show-from .v-popper__wrapper{transform:scale(.75)}.v-popper--theme-dropdown.v-popper__popper--show-to .v-popper__wrapper{transition:transform .15s cubic-bezier(0,1,.5,1);transform:none}.v-popper__popper:focus-visible{outline:none}@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-border-style:solid}}}.range-input::-webkit-slider-thumb{height:calc(var(--spacing,.25rem) * 3);width:calc(var(--spacing,.25rem) * 3);appearance:none;border-style:var(--tw-border-style);--tw-border-style:solid;border:1px solid #00000040;border-radius:2147483647px}@supports (color:color-mix(in lab, red, red)){.range-input::-webkit-slider-thumb{border-color:color-mix(in oklab, var(--color-black,#000) 25%, transparent)}}.range-input::-webkit-slider-thumb{background-color:var(--color-white,#fff)}.range-input::-webkit-slider-thumb:where(.ptw-dark,.ptw-dark *){border-color:#ffffff40}@supports (color:color-mix(in lab, red, red)){.range-input::-webkit-slider-thumb:where(.ptw-dark,.ptw-dark *){border-color:color-mix(in oklab, var(--color-white,#fff) 25%, transparent)}}.range-input::-webkit-slider-thumb:where(.ptw-dark,.ptw-dark *){background-color:var(--color-gray-700,var(--color-zinc-700))}.range-input:hover::-webkit-slider-thumb{border-color:var(--color-primary-500,var(--color-emerald-500))!important;background-color:var(--color-primary-500,var(--color-emerald-500))!important}.range-input::-moz-range-thumb{height:calc(var(--spacing,.25rem) * 3);width:calc(var(--spacing,.25rem) * 3);appearance:none;border-style:var(--tw-border-style);--tw-border-style:solid;border:1px solid #00000040;border-radius:2147483647px}@supports (color:color-mix(in lab, red, red)){.range-input::-moz-range-thumb{border-color:color-mix(in oklab, var(--color-black,#000) 25%, transparent)}}.range-input::-moz-range-thumb{background-color:var(--color-white,#fff)}.range-input::-moz-range-thumb:where(.ptw-dark,.ptw-dark *){border-color:#ffffff40}@supports (color:color-mix(in lab, red, red)){.range-input::-moz-range-thumb:where(.ptw-dark,.ptw-dark *){border-color:color-mix(in oklab, var(--color-white,#fff) 25%, transparent)}}.range-input::-moz-range-thumb:where(.ptw-dark,.ptw-dark *){background-color:var(--color-gray-700,var(--color-zinc-700))}.range-input:hover::-moz-range-thumb{border-color:var(--color-primary-500,var(--color-emerald-500))!important;background-color:var(--color-primary-500,var(--color-emerald-500))!important}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}.__poveste-json-code[data-v-68225145] .cm-editor{min-width:280px;height:100%}
|
|
1
|
+
.poveste-tooltip{color:#fff;z-index:100;background:#000c;border-radius:6px;padding:7px 12px 6px;line-height:normal}.poveste-tooltip-arrow{fill:#000c}.poveste-button{--_poveste-button-surface:var(--color-gray-200);--_poveste-button-surface-hover:var(--color-primary-200);--_poveste-button-text:var(--color-gray-900);border-radius:var(--radius-sm);background:var(--_poveste-button-surface);color:var(--_poveste-button-text);cursor:pointer;border:none}.poveste-button:where(.ptw-dark,.ptw-dark *){--_poveste-button-surface:var(--color-gray-750);--_poveste-button-surface-hover:var(--color-primary-900);--_poveste-button-text:var(--color-gray-100)}.poveste-button:hover{background:var(--_poveste-button-surface-hover)}.poveste-button[data-color=primary]{--_poveste-button-surface:var(--color-primary-500);--_poveste-button-surface-hover:var(--color-primary-600);--_poveste-button-text:var(--color-white)}.poveste-button[data-color=primary]:where(.ptw-dark,.ptw-dark *){--_poveste-button-surface:var(--color-primary-500);--_poveste-button-surface-hover:var(--color-primary-600);--_poveste-button-text:var(--color-black)}.poveste-button[data-color=flat]{--_poveste-button-surface:transparent;--_poveste-button-surface-hover:color-mix(in oklab, var(--color-gray-500) 20%, transparent)}.poveste-button[data-color=flat]:where(.ptw-dark,.ptw-dark *){--_poveste-button-surface:transparent;--_poveste-button-surface-hover:color-mix(in oklab, var(--color-gray-500) 20%, transparent)}.poveste-button-group{flex-wrap:nowrap;align-items:center}.poveste-button-group-options{border-radius:var(--radius-sm);border:1px solid #00000040;gap:1px;padding:1px;display:flex}.poveste-button-group-options:where(.ptw-dark,.ptw-dark *){border-color:#ffffff40}.poveste-button-group-option{border-radius:3px;flex:1;height:22px;padding-inline:.25rem}.poveste-button-group-option[data-state=off]{--_poveste-button-surface:transparent;--_poveste-button-surface-hover:color-mix(in oklab, var(--color-gray-500) 20%, transparent)}.poveste-button-group-option[data-state=on]{--_poveste-button-surface:var(--color-primary-500);--_poveste-button-surface-hover:var(--color-primary-600);--_poveste-button-text:var(--color-white)}.poveste-button-group-option[data-state=on]:where(.ptw-dark,.ptw-dark *){--_poveste-button-text:var(--color-black)}.poveste-simple-checkbox{box-sizing:border-box;width:16px;height:16px;color:var(--color-white);background:0 0;border:0;padding:0;display:block;position:relative}.poveste-simple-checkbox:focus-visible{outline:2px solid var(--color-primary-500);outline-offset:2px}.poveste-simple-checkbox-interactive{cursor:pointer}.poveste-checkbox-visual{display:block;position:absolute;inset:0}.poveste-checkbox-visual-box{box-sizing:border-box;border-radius:var(--radius-sm);border:1px solid #00000040;position:absolute;inset:0}@media (prefers-reduced-motion:no-preference){.poveste-checkbox-visual-box{transition:border .15s ease-out .15s}}.poveste-checkbox-visual-box:where(.ptw-dark,.ptw-dark *){border-color:#ffffff40}.poveste-simple-checkbox[data-checked] .poveste-checkbox-visual-box{border-color:var(--color-primary-500);border-width:8px}@media (prefers-reduced-motion:no-preference){.poveste-simple-checkbox[data-checked] .poveste-checkbox-visual-box{transition-delay:0s}}.poveste-simple-checkbox:hover .poveste-checkbox-visual-box{border-color:var(--color-primary-500)}.poveste-simple-checkbox:active .poveste-checkbox-visual-box{background:#6b728033}.poveste-checkbox-visual-check{z-index:10;position:relative}.poveste-checkbox-visual-check path{stroke:var(--color-white);stroke-width:2px}@media (prefers-reduced-motion:no-preference){.poveste-checkbox-visual-animated{transition:all .2s ease-in-out}.poveste-simple-checkbox[data-checked] .poveste-checkbox-visual-animated{transition-delay:.15s}}.poveste-checkbox{cursor:pointer;align-items:center}.poveste-checkbox-box{background:0 0;border:0;padding:0;display:block}.poveste-checkbox-box:focus-visible{outline:2px solid var(--color-primary-500);outline-offset:2px}.poveste-checkbox-list{cursor:text}.poveste-checkbox-list-options{margin-block:-.25rem}.poveste-checkbox-list-option{cursor:pointer;align-items:center;gap:.5rem;padding-block:.25rem;display:flex;position:relative}.poveste-checkbox-list-box{background:0 0;border:0;padding:0;display:block}.poveste-checkbox-list-box:focus-visible{outline:2px solid var(--color-primary-500);outline-offset:2px}.bind-col-size{grid-template-columns:repeat(auto-fill, minmax(var(--poveste-col-size), 1fr))}.poveste-number{cursor:ew-resize;align-items:center}.poveste-number[data-dragging]{-webkit-user-select:none;user-select:none}.poveste-number-input{box-sizing:border-box;border-radius:var(--radius-sm);width:100%;color:inherit;cursor:ew-resize;background:0 0;border:1px solid #00000040;outline:none;margin-block:-.25rem;padding:.25rem 0 .25rem .5rem}.poveste-number-input:where(.ptw-dark,.ptw-dark *){border-color:#ffffff40}.poveste-number-input:focus{border-color:var(--color-primary-500)}.poveste-radio{cursor:text}.poveste-radio-options{margin-block:-.25rem}.poveste-radio-option{cursor:pointer;align-items:center;gap:.5rem;padding-block:.25rem;display:flex;position:relative}.poveste-radio-box{box-sizing:border-box;background:0 0;border:1px solid #00000040;border-radius:9999px;width:16px;height:16px;padding:0;display:block;position:relative}@media (prefers-reduced-motion:no-preference){.poveste-radio-box{transition:border-color .15s ease-out}}.poveste-radio-box:where(.ptw-dark,.ptw-dark *){border-color:#ffffff40}.poveste-radio-box:hover,.poveste-radio-box[data-state=checked]{border-color:var(--color-primary-500)}.poveste-radio-box:focus-visible{outline:2px solid var(--color-primary-500);outline-offset:2px}.poveste-radio-dot{background:var(--color-primary-500);border-radius:9999px;display:block;position:absolute;inset:3px;transform:scale(0)}@media (prefers-reduced-motion:no-preference){.poveste-radio-dot{transition:transform .2s ease-in-out}}[data-state=checked]>.poveste-radio-dot{transform:scale(1)}@media (prefers-reduced-motion:no-preference){[data-state=checked]>.poveste-radio-dot{transition-delay:.15s}}.poveste-select-trigger{border-radius:var(--radius-sm);width:100%;height:27px;color:inherit;font:inherit;text-align:left;cursor:pointer;background:0 0;border:1px solid #00000040;outline:none;align-items:center;gap:.5rem;margin-block:-.25rem;padding-inline:.5rem;line-height:normal;display:flex}.poveste-select-trigger:where(.ptw-dark,.ptw-dark *){border-color:#ffffff40}.poveste-select-trigger:hover{border-color:var(--color-primary-500)}.poveste-select-label{white-space:nowrap;text-overflow:ellipsis;flex:1;overflow:hidden}.poveste-select-chevron{flex:none;width:1rem;height:1rem;margin-left:auto}.poveste-select-popper{min-width:var(--reka-popper-anchor-width);z-index:100}.poveste-select-popper:focus-visible{outline:none}.poveste-select-popper[data-state=open]{animation:.15s cubic-bezier(0,1,.5,1) poveste-select-in}.poveste-select-options{max-height:var(--reka-popover-content-available-height);border:1px solid var(--color-gray-200);border-radius:var(--radius-sm);background:var(--color-gray-50);color:var(--color-gray-900);overflow-y:auto;box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -2px #0000001a}.poveste-select-options:where(.ptw-dark,.ptw-dark *){border-color:var(--color-gray-850);background:var(--color-gray-700);color:var(--color-gray-100)}.poveste-select-list{flex-direction:column;display:flex}.poveste-select-list:focus-visible{outline:none}.poveste-select-option{cursor:pointer;outline:none;padding:.25rem .5rem}.poveste-select-option[data-state=checked]{background:var(--color-primary-200)}.poveste-select-option[data-state=checked]:where(.ptw-dark,.ptw-dark *){background:var(--color-primary-800)}.poveste-select-option[data-highlighted]{background:var(--color-primary-100)}.poveste-select-option[data-highlighted]:where(.ptw-dark,.ptw-dark *){background:var(--color-primary-700)}@keyframes poveste-select-in{0%{transform:scale(.75)}}.poveste-select{cursor:text;align-items:center}.poveste-slider{align-items:center}.poveste-slider-field{--_poveste-slider-thumb:.75rem;align-items:center;width:100%;display:flex;position:relative}.poveste-slider-track-area{align-items:center;display:flex;position:absolute;inset:0}.poveste-slider-track{border:1px solid #00000040;border-radius:9999px;width:100%;height:.25rem}.poveste-slider-track:where(.ptw-dark,.ptw-dark *){border-color:#ffffff40}.poveste-slider-tooltip-anchor{left:calc(var(--_poveste-slider-fraction,0) * (100% - var(--_poveste-slider-thumb)) + var(--_poveste-slider-thumb) / 2);position:absolute}.poveste-slider-input{appearance:none;cursor:pointer;background:0 0;border:0;width:100%;margin:0;position:relative}.poveste-slider-input::-webkit-slider-thumb{width:var(--_poveste-slider-thumb);height:var(--_poveste-slider-thumb);appearance:none;background:var(--color-white);border:1px solid #00000040;border-radius:9999px}.poveste-slider-input:where(.ptw-dark,.ptw-dark *)::-webkit-slider-thumb{background:var(--color-gray-700);border-color:#ffffff40}.poveste-slider-input:hover::-webkit-slider-thumb{border-color:var(--color-primary-500);background:var(--color-primary-500)}.poveste-slider-input::-moz-range-thumb{width:var(--_poveste-slider-thumb);height:var(--_poveste-slider-thumb);appearance:none;background:var(--color-white);border:1px solid #00000040;border-radius:9999px}.poveste-slider-input:where(.ptw-dark,.ptw-dark *)::-moz-range-thumb{background:var(--color-gray-700);border-color:#ffffff40}.poveste-slider-input:hover::-moz-range-thumb{border-color:var(--color-primary-500);background:var(--color-primary-500)}.poveste-text{cursor:text;align-items:center}.poveste-text-input{box-sizing:border-box;border-radius:var(--radius-sm);width:100%;color:inherit;background:0 0;border:1px solid #00000040;outline:none;margin-block:-.25rem;padding:.25rem .5rem}.poveste-text-input:where(.ptw-dark,.ptw-dark *){border-color:#ffffff40}.poveste-text-input:focus{border-color:var(--color-primary-500)}.poveste-textarea{cursor:text}.poveste-textarea-input{box-sizing:border-box;border-radius:var(--radius-sm);width:100%;min-height:26px;color:inherit;resize:vertical;background:0 0;border:1px solid #00000040;outline:none;margin-block:-.25rem;padding:.25rem .5rem}.poveste-textarea-input:where(.ptw-dark,.ptw-dark *){border-color:#ffffff40}.poveste-textarea-input:focus{border-color:var(--color-primary-500)}.__poveste-json-code[data-v-4b978a74] .cm-editor{min-width:280px;height:100%}.poveste-date{align-items:center}.poveste-date-row{flex-wrap:wrap;align-items:center;gap:.5rem;display:flex}.poveste-date-field{box-sizing:border-box;border-radius:var(--radius-sm);border:1px solid #00000040;align-items:center;gap:1px;height:27px;margin-block:-.25rem;padding-inline:.5rem;display:flex}.poveste-date-field:where(.ptw-dark,.ptw-dark *){border-color:#ffffff40}.poveste-date-field:focus-within{border-color:var(--color-primary-500)}.poveste-date-segment{border-radius:var(--radius-sm);padding-inline:.125rem}.poveste-date-segment:focus{background:var(--color-primary-500);color:var(--color-white);outline:none}.poveste-date-segment[data-placeholder]{opacity:.5}.poveste-date-separator{opacity:.5}.poveste-date-trigger{color:inherit;opacity:.5;cursor:pointer;background:0 0;border:0;margin-left:.25rem;padding:0;display:flex}.poveste-date-trigger:hover{opacity:1;color:var(--color-primary-500)}.poveste-date-icon{width:1rem;height:1rem}.poveste-date-calendar{z-index:100;border:1px solid var(--color-gray-200);border-radius:var(--radius-sm);background:var(--color-gray-50);box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -2px #0000001a}.poveste-date-calendar:where(.ptw-dark,.ptw-dark *){border-color:var(--color-gray-850);background:var(--color-gray-700)}.poveste-date-calendar-body{padding:.5rem}.poveste-date-header{justify-content:space-between;align-items:center;padding-bottom:.5rem;display:flex}.poveste-date-step{border-radius:var(--radius-sm);color:inherit;cursor:pointer;background:0 0;border:0;padding:.25rem;display:flex}.poveste-date-step:hover{background:var(--color-primary-100)}.poveste-date-step:hover:where(.ptw-dark,.ptw-dark *){background:var(--color-primary-800)}.poveste-date-grid{border-collapse:collapse}.poveste-date-weekday{opacity:.5;width:1.75rem;font-size:.75rem;font-weight:400}.poveste-date-day{border-radius:var(--radius-sm);width:1.75rem;height:1.75rem;color:inherit;cursor:pointer;background:0 0;border:0;justify-content:center;align-items:center;display:flex}.poveste-date-day[data-outside-view]{opacity:.3}.poveste-date-day[data-today]{color:var(--color-primary-500);font-weight:700}.poveste-date-day:hover:not([data-selected]){background:var(--color-primary-100)}.poveste-date-day:hover:not([data-selected]):where(.ptw-dark,.ptw-dark *){background:var(--color-primary-800)}.poveste-date-day[data-selected]{background:var(--color-primary-500);color:var(--color-white)}.poveste-color{align-items:center}.poveste-color-row{align-items:center;gap:.5rem;width:100%;display:flex}.poveste-color-swatch{box-sizing:border-box;border-radius:var(--radius-sm);cursor:pointer;background:0 0;border:1px solid #00000040;flex:none;width:27px;height:27px;margin-block:-.25rem;padding:.125rem}.poveste-color-swatch:where(.ptw-dark,.ptw-dark *){border-color:#ffffff40}.poveste-color-swatch:hover{border-color:var(--color-primary-500)}.poveste-color-swatch-fill{border-radius:var(--radius-sm);width:100%;height:100%}.poveste-color-field-root{flex-grow:1}.poveste-color-field{box-sizing:border-box;border-radius:var(--radius-sm);width:100%;color:inherit;background:0 0;border:1px solid #00000040;outline:none;margin-block:-.25rem;padding:.25rem .5rem}.poveste-color-field:where(.ptw-dark,.ptw-dark *){border-color:#ffffff40}.poveste-color-field:focus{border-color:var(--color-primary-500)}.poveste-color-picker{z-index:100;border:1px solid var(--color-gray-200);border-radius:var(--radius-sm);background:var(--color-gray-50);flex-direction:column;gap:.5rem;padding:.5rem;display:flex;box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -2px #0000001a}.poveste-color-picker:where(.ptw-dark,.ptw-dark *){border-color:var(--color-gray-850);background:var(--color-gray-700)}.poveste-color-area{width:10rem;height:8rem}.poveste-color-area-surface{border-radius:var(--radius-sm);width:100%;height:100%}.poveste-color-hue{width:10rem;height:.75rem}.poveste-color-hue-track{border-radius:9999px;width:100%;height:100%}.poveste-color-thumb{border:2px solid var(--color-white);border-radius:9999px;width:.75rem;height:.75rem;box-shadow:0 0 0 1px #00000080}
|
|
2
2
|
/*$vite$:1*/
|