@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.
Files changed (60) hide show
  1. package/README.md +1 -1
  2. package/dist/HstColor-DHgxKTkm.es.js +2405 -0
  3. package/dist/HstDate-Ct5Jp_ZD.es.js +4954 -0
  4. package/dist/{HstJson-Dz6cYiFP.es.js → HstJson-D83KEa9o.es.js} +2846 -2554
  5. package/dist/HstWrapper-Bm5H3_to.es.js +2835 -0
  6. package/dist/PopoverTrigger-BVAfE9fE.es.js +974 -0
  7. package/dist/VisuallyHiddenInput-0it-_FH2.es.js +183 -0
  8. package/dist/components/HstCopyIcon.story.vue.d.ts +2 -1
  9. package/dist/components/HstCopyIcon.vue.d.ts +3 -2
  10. package/dist/components/HstTooltip.vue.d.ts +39 -0
  11. package/dist/components/HstWrapper.vue.d.ts +10 -9
  12. package/dist/components/button/HstButton.story.vue.d.ts +2 -1
  13. package/dist/components/button/HstButton.vue.d.ts +6 -5
  14. package/dist/components/button/HstButtonGroup.story.vue.d.ts +2 -1
  15. package/dist/components/button/HstButtonGroup.vue.d.ts +3 -2
  16. package/dist/components/checkbox/CheckboxVisual.vue.d.ts +7 -0
  17. package/dist/components/checkbox/HstCheckbox.story.vue.d.ts +2 -1
  18. package/dist/components/checkbox/HstCheckbox.vue.d.ts +4 -3
  19. package/dist/components/checkbox/HstCheckboxList.story.vue.d.ts +2 -1
  20. package/dist/components/checkbox/HstCheckboxList.vue.d.ts +3 -2
  21. package/dist/components/checkbox/HstSimpleCheckbox.story.vue.d.ts +2 -1
  22. package/dist/components/checkbox/HstSimpleCheckbox.vue.d.ts +8 -7
  23. package/dist/components/color/HstColor.story.vue.d.ts +3 -0
  24. package/dist/components/color/HstColor.vue.d.ts +25 -0
  25. package/dist/components/colorselect/HstColorSelect.story.vue.d.ts +2 -1
  26. package/dist/components/colorselect/HstColorSelect.vue.d.ts +4 -3
  27. package/dist/components/date/HstDate.story.vue.d.ts +3 -0
  28. package/dist/components/date/HstDate.vue.d.ts +30 -0
  29. package/dist/components/date/iso.d.ts +5 -0
  30. package/dist/components/design-tokens/HstColorShades.story.vue.d.ts +2 -1
  31. package/dist/components/design-tokens/HstColorShades.vue.d.ts +3 -2
  32. package/dist/components/design-tokens/HstTokenGrid.story.vue.d.ts +2 -1
  33. package/dist/components/design-tokens/HstTokenGrid.vue.d.ts +3 -3
  34. package/dist/components/design-tokens/HstTokenList.story.vue.d.ts +2 -1
  35. package/dist/components/design-tokens/HstTokenList.vue.d.ts +3 -2
  36. package/dist/components/json/HstJson.story.vue.d.ts +2 -1
  37. package/dist/components/json/HstJson.vue.d.ts +3 -2
  38. package/dist/components/json/serialize.d.ts +10 -12
  39. package/dist/components/number/HstNumber.story.vue.d.ts +2 -1
  40. package/dist/components/number/HstNumber.vue.d.ts +4 -3
  41. package/dist/components/radio/HstRadio.story.vue.d.ts +2 -1
  42. package/dist/components/radio/HstRadio.vue.d.ts +3 -2
  43. package/dist/components/select/CustomSelect.vue.d.ts +4 -3
  44. package/dist/components/select/HstSelect.story.vue.d.ts +2 -1
  45. package/dist/components/select/HstSelect.vue.d.ts +3 -2
  46. package/dist/components/slider/HstSlider.story.vue.d.ts +2 -1
  47. package/dist/components/slider/HstSlider.vue.d.ts +3 -2
  48. package/dist/components/text/HstText.story.vue.d.ts +2 -1
  49. package/dist/components/text/HstText.vue.d.ts +4 -3
  50. package/dist/components/textarea/HstTextarea.story.vue.d.ts +2 -1
  51. package/dist/components/textarea/HstTextarea.vue.d.ts +4 -3
  52. package/dist/index.d.ts +332 -50
  53. package/dist/index.es.css +1 -1
  54. package/dist/index.es.js +2179 -414
  55. package/dist/portal-target.d.ts +13 -0
  56. package/dist/style-standalone.css +126 -447
  57. package/dist/useKbd-DQM4Oqri.es.js +41 -0
  58. package/dist/useLocale-Dr4PRYn1.es.js +27 -0
  59. package/package.json +24 -22
  60. 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
- * `JSON.stringify` for values that were never promised to be JSON.
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
- * Nodes and windows are named rather than walked. Both are cyclic, so the guard
12
- * below would terminate on them, but only after walking a few thousand
13
- * properties of `window` on every keystroke.
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 stringifyState(value: unknown, space?: number): string;
10
+ export declare function serializeState(value: unknown, space?: number): {
11
+ doc: string;
12
+ faithful: boolean;
13
+ };
@@ -1,2 +1,3 @@
1
- declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
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: __VLS_WithSlots<import("vue").DefineComponent<{
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, true, {}, any>, {
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 _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
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: __VLS_WithSlots<import("vue").DefineComponent<{
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: __VLS_WithSlots<import("vue").DefineComponent<{
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 _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
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: __VLS_WithSlots<import("vue").DefineComponent<{
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 _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
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: import("vue").DefineComponent<{
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 _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
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: __VLS_WithSlots<import("vue").DefineComponent<{
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, true, {}, any>, {
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 _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
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: __VLS_WithSlots<import("vue").DefineComponent<{
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, true, {}, any>, {
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;