@histoire/controls 1.0.0-alpha.2 → 1.0.0-alpha.3

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@histoire/controls",
3
3
  "type": "module",
4
- "version": "1.0.0-alpha.2",
4
+ "version": "1.0.0-alpha.3",
5
5
  "description": "Prebuilt controls components",
6
6
  "author": {
7
7
  "name": "Guillaume Chau"
@@ -38,8 +38,8 @@
38
38
  "@codemirror/state": "^6.4.1",
39
39
  "@codemirror/theme-one-dark": "^6.1.2",
40
40
  "@codemirror/view": "^6.35.0",
41
- "@histoire/vendors": "^1.0.0-alpha.2",
42
- "@histoire/shared": "^1.0.0-alpha.2"
41
+ "@histoire/shared": "^1.0.0-alpha.3",
42
+ "@histoire/vendors": "^1.0.0-alpha.3"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@types/node": "^22.10.1",
@@ -55,7 +55,7 @@
55
55
  "postcss-import": "^16.1.0",
56
56
  "tailwindcss": "^3.4.16",
57
57
  "typescript": "5.6.3",
58
- "vite": "^6.0.5",
58
+ "vite": "^7.0.0",
59
59
  "vitest": "0.34.6",
60
60
  "vue": "^3.5.13",
61
61
  "vue-tsc": "^2.1.10"
@@ -6,7 +6,6 @@ export default {
6
6
 
7
7
  <script lang="ts" setup>
8
8
  import { VTooltip as vTooltip } from 'floating-vue'
9
- import { withDefaults } from 'vue'
10
9
 
11
10
  withDefaults(defineProps<{
12
11
  title?: string
@@ -12,7 +12,7 @@ import HstSimpleCheckbox from './HstSimpleCheckbox.vue'
12
12
  type Booleanish = boolean | 'true' | 'false'
13
13
 
14
14
  const props = defineProps<{
15
- modelValue?: Booleanish
15
+ modelValue?: Booleanish | null
16
16
  title?: string
17
17
  }>()
18
18
 
@@ -11,7 +11,7 @@ import HstWrapper from '../HstWrapper.vue'
11
11
 
12
12
  const props = defineProps<{
13
13
  title?: string
14
- modelValue?: string
14
+ modelValue?: string | null
15
15
  }>()
16
16
 
17
17
  const emit = defineEmits({
@@ -6,7 +6,7 @@ export default {
6
6
 
7
7
  <script lang="ts" setup>
8
8
  import { VTooltip as vTooltip } from 'floating-vue'
9
- import { computed, ref, withDefaults } from 'vue'
9
+ import { computed, ref } from 'vue'
10
10
  import HstCopyIcon from '../HstCopyIcon.vue'
11
11
 
12
12
  const props = withDefaults(defineProps<{
@@ -11,7 +11,7 @@ import HstWrapper from '../HstWrapper.vue'
11
11
 
12
12
  const props = defineProps<{
13
13
  title?: string
14
- modelValue?: number
14
+ modelValue?: number | null
15
15
  }>()
16
16
 
17
17
  const emit = defineEmits({
@@ -12,7 +12,7 @@ import HstWrapper from '../HstWrapper.vue'
12
12
 
13
13
  const props = defineProps<{
14
14
  title?: string
15
- modelValue?: string
15
+ modelValue?: string | null
16
16
  options: HstControlOption[]
17
17
  }>()
18
18
 
@@ -13,7 +13,7 @@ import HstWrapper from '../HstWrapper.vue'
13
13
 
14
14
  const props = defineProps<{
15
15
  title?: string
16
- modelValue?: number
16
+ modelValue?: number | null
17
17
  min: number
18
18
  max: number
19
19
  }>()
@@ -10,7 +10,7 @@ import HstWrapper from '../HstWrapper.vue'
10
10
 
11
11
  defineProps<{
12
12
  title?: string
13
- modelValue?: string
13
+ modelValue?: string | null
14
14
  }>()
15
15
 
16
16
  const emit = defineEmits({
@@ -11,7 +11,7 @@ import HstWrapper from '../HstWrapper.vue'
11
11
 
12
12
  defineProps<{
13
13
  title?: string
14
- modelValue?: string
14
+ modelValue?: string | null
15
15
  }>()
16
16
 
17
17
  const emit = defineEmits({