@poveste/controls 0.14.0 → 0.16.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.
- package/README.md +1 -1
- package/dist/HstColor-DHgxKTkm.es.js +2405 -0
- package/dist/HstDate-Ct5Jp_ZD.es.js +4954 -0
- package/dist/{HstJson-Dz6cYiFP.es.js → HstJson-D83KEa9o.es.js} +2846 -2554
- 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/HstCopyIcon.story.vue.d.ts +2 -1
- package/dist/components/HstCopyIcon.vue.d.ts +3 -2
- package/dist/components/HstTooltip.vue.d.ts +39 -0
- package/dist/components/HstWrapper.vue.d.ts +10 -9
- package/dist/components/button/HstButton.story.vue.d.ts +2 -1
- package/dist/components/button/HstButton.vue.d.ts +6 -5
- package/dist/components/button/HstButtonGroup.story.vue.d.ts +2 -1
- package/dist/components/button/HstButtonGroup.vue.d.ts +3 -2
- package/dist/components/checkbox/CheckboxVisual.vue.d.ts +7 -0
- package/dist/components/checkbox/HstCheckbox.story.vue.d.ts +2 -1
- package/dist/components/checkbox/HstCheckbox.vue.d.ts +4 -3
- package/dist/components/checkbox/HstCheckboxList.story.vue.d.ts +2 -1
- package/dist/components/checkbox/HstCheckboxList.vue.d.ts +3 -2
- package/dist/components/checkbox/HstSimpleCheckbox.story.vue.d.ts +2 -1
- package/dist/components/checkbox/HstSimpleCheckbox.vue.d.ts +8 -7
- package/dist/components/color/HstColor.story.vue.d.ts +3 -0
- package/dist/components/color/HstColor.vue.d.ts +25 -0
- package/dist/components/colorselect/HstColorSelect.story.vue.d.ts +2 -1
- package/dist/components/colorselect/HstColorSelect.vue.d.ts +4 -3
- 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/design-tokens/HstColorShades.story.vue.d.ts +2 -1
- package/dist/components/design-tokens/HstColorShades.vue.d.ts +3 -2
- package/dist/components/design-tokens/HstTokenGrid.story.vue.d.ts +2 -1
- package/dist/components/design-tokens/HstTokenGrid.vue.d.ts +3 -3
- package/dist/components/design-tokens/HstTokenList.story.vue.d.ts +2 -1
- package/dist/components/design-tokens/HstTokenList.vue.d.ts +3 -2
- package/dist/components/json/HstJson.story.vue.d.ts +2 -1
- package/dist/components/json/HstJson.vue.d.ts +3 -2
- package/dist/components/json/serialize.d.ts +10 -12
- package/dist/components/number/HstNumber.story.vue.d.ts +2 -1
- package/dist/components/number/HstNumber.vue.d.ts +4 -3
- package/dist/components/radio/HstRadio.story.vue.d.ts +2 -1
- package/dist/components/radio/HstRadio.vue.d.ts +3 -2
- package/dist/components/select/CustomSelect.vue.d.ts +4 -3
- package/dist/components/select/HstSelect.story.vue.d.ts +2 -1
- package/dist/components/select/HstSelect.vue.d.ts +3 -2
- package/dist/components/slider/HstSlider.story.vue.d.ts +2 -1
- package/dist/components/slider/HstSlider.vue.d.ts +3 -2
- package/dist/components/text/HstText.story.vue.d.ts +2 -1
- package/dist/components/text/HstText.vue.d.ts +4 -3
- package/dist/components/textarea/HstTextarea.story.vue.d.ts +2 -1
- package/dist/components/textarea/HstTextarea.vue.d.ts +4 -3
- package/dist/index.d.ts +332 -50
- package/dist/index.es.css +1 -1
- package/dist/index.es.js +2179 -414
- package/dist/portal-target.d.ts +13 -0
- package/dist/style-standalone.css +126 -447
- package/dist/useKbd-DQM4Oqri.es.js +41 -0
- package/dist/useLocale-Dr4PRYn1.es.js +27 -0
- package/package.json +24 -22
- package/dist/HstWrapper-C557fRoN.es.js +0 -22
|
@@ -1,15 +1,13 @@
|
|
|
1
|
+
export declare function stringifyState(value: unknown, space?: number): string;
|
|
1
2
|
/**
|
|
2
|
-
* `
|
|
3
|
-
*
|
|
4
|
-
* State reaches this control straight out of a story's own scope, so it holds
|
|
5
|
-
* whatever a `<script setup>` holds: a function, a DOM node, an object that
|
|
6
|
-
* refers back to itself. `JSON.stringify` throws on the cycle, and it throws
|
|
7
|
-
* from inside a lifecycle hook — which takes the rest of that flush with it, so
|
|
8
|
-
* the panel and the toolbar beside it never mount. A marker in the editor is
|
|
9
|
-
* the smaller loss, and it is what the story events pane already does.
|
|
3
|
+
* `stringifyState`, and whether the document *is* the value.
|
|
10
4
|
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
5
|
+
* `faithful` is false as soon as anything was named rather than written out —
|
|
6
|
+
* a marker, or the budget cutting the rest short. Such a document is a view of
|
|
7
|
+
* the value and not the value, so nothing may parse it back into the model:
|
|
8
|
+
* doing so replaces whatever each marker stands for with its label.
|
|
14
9
|
*/
|
|
15
|
-
export declare function
|
|
10
|
+
export declare function serializeState(value: unknown, space?: number): {
|
|
11
|
+
doc: string;
|
|
12
|
+
faithful: boolean;
|
|
13
|
+
};
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
declare const
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
2
3
|
export default _default;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: typeof __VLS_export;
|
|
2
|
+
export default _default;
|
|
3
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
2
4
|
title?: string;
|
|
3
5
|
modelValue?: number | null;
|
|
4
6
|
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
@@ -8,10 +10,9 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
|
8
10
|
modelValue?: number | null;
|
|
9
11
|
}> & Readonly<{
|
|
10
12
|
"onUpdate:modelValue"?: (newValue: number) => any;
|
|
11
|
-
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions,
|
|
13
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
12
14
|
actions?: (props: {}) => any;
|
|
13
15
|
}>;
|
|
14
|
-
export default _default;
|
|
15
16
|
type __VLS_WithSlots<T, S> = T & {
|
|
16
17
|
new (): {
|
|
17
18
|
$slots: S;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
declare const
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
2
3
|
export default _default;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import type { HstControlOption } from '../../types';
|
|
2
|
-
declare const _default:
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
4
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
3
5
|
title?: string;
|
|
4
6
|
modelValue?: string | null;
|
|
5
7
|
options: HstControlOption[];
|
|
@@ -14,7 +16,6 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
|
14
16
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
15
17
|
actions?: (props: {}) => any;
|
|
16
18
|
}>;
|
|
17
|
-
export default _default;
|
|
18
19
|
type __VLS_WithSlots<T, S> = T & {
|
|
19
20
|
new (): {
|
|
20
21
|
$slots: S;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import type { HstControlOption } from '../../types';
|
|
2
|
-
declare const _default:
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
4
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
3
5
|
modelValue: string;
|
|
4
6
|
options: Record<string, any> | string[] | number[] | HstControlOption[];
|
|
5
7
|
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
@@ -11,10 +13,9 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
|
11
13
|
"onUpdate:modelValue"?: (value: string) => any;
|
|
12
14
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
13
15
|
default?: (props: {
|
|
14
|
-
label: string;
|
|
16
|
+
label: string | undefined;
|
|
15
17
|
}) => any;
|
|
16
18
|
}>;
|
|
17
|
-
export default _default;
|
|
18
19
|
type __VLS_WithSlots<T, S> = T & {
|
|
19
20
|
new (): {
|
|
20
21
|
$slots: S;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
declare const
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
2
3
|
export default _default;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import type { HstControlOption } from '../../types';
|
|
2
|
-
declare const _default:
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
4
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
3
5
|
title?: string;
|
|
4
6
|
modelValue?: any;
|
|
5
7
|
options: Record<string, any> | string[] | HstControlOption[];
|
|
@@ -14,7 +16,6 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
|
14
16
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
15
17
|
actions?: (props: {}) => any;
|
|
16
18
|
}>;
|
|
17
|
-
export default _default;
|
|
18
19
|
type __VLS_WithSlots<T, S> = T & {
|
|
19
20
|
new (): {
|
|
20
21
|
$slots: S;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
declare const
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
2
3
|
export default _default;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: typeof __VLS_export;
|
|
2
|
+
export default _default;
|
|
3
|
+
declare const __VLS_export: import("vue").DefineComponent<{
|
|
2
4
|
title?: string;
|
|
3
5
|
modelValue?: number | null;
|
|
4
6
|
min: number;
|
|
@@ -13,4 +15,3 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
13
15
|
}> & Readonly<{
|
|
14
16
|
"onUpdate:modelValue"?: (newValue: number) => any;
|
|
15
17
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
16
|
-
export default _default;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
declare const
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
2
3
|
export default _default;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: typeof __VLS_export;
|
|
2
|
+
export default _default;
|
|
3
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
2
4
|
title?: string;
|
|
3
5
|
modelValue?: string | null;
|
|
4
6
|
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
@@ -8,10 +10,9 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
|
8
10
|
modelValue?: string | null;
|
|
9
11
|
}> & Readonly<{
|
|
10
12
|
"onUpdate:modelValue"?: (newValue: string) => any;
|
|
11
|
-
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions,
|
|
13
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
12
14
|
actions?: (props: {}) => any;
|
|
13
15
|
}>;
|
|
14
|
-
export default _default;
|
|
15
16
|
type __VLS_WithSlots<T, S> = T & {
|
|
16
17
|
new (): {
|
|
17
18
|
$slots: S;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
declare const
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
2
3
|
export default _default;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: typeof __VLS_export;
|
|
2
|
+
export default _default;
|
|
3
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
2
4
|
title?: string;
|
|
3
5
|
modelValue?: string | null;
|
|
4
6
|
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
@@ -8,10 +10,9 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
|
8
10
|
modelValue?: string | null;
|
|
9
11
|
}> & Readonly<{
|
|
10
12
|
"onUpdate:modelValue"?: (newValue: string) => any;
|
|
11
|
-
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions,
|
|
13
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
12
14
|
actions?: (props: {}) => any;
|
|
13
15
|
}>;
|
|
14
|
-
export default _default;
|
|
15
16
|
type __VLS_WithSlots<T, S> = T & {
|
|
16
17
|
new (): {
|
|
17
18
|
$slots: S;
|