@histoire/controls 0.17.4 → 0.17.6

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 (26) hide show
  1. package/dist/components/HstCopyIcon.vue.d.ts +13 -10
  2. package/dist/components/HstWrapper.vue.d.ts +30 -19
  3. package/dist/components/button/HstButton.vue.d.ts +14 -9
  4. package/dist/components/button/HstButtonGroup.vue.d.ts +19 -24
  5. package/dist/components/checkbox/HstCheckbox.vue.d.ts +18 -17
  6. package/dist/components/checkbox/HstCheckboxList.vue.d.ts +19 -26
  7. package/dist/components/checkbox/HstSimpleCheckbox.vue.d.ts +18 -17
  8. package/dist/components/colorselect/HstColorSelect.vue.d.ts +18 -17
  9. package/dist/components/design-tokens/HstColorShades.vue.d.ts +18 -23
  10. package/dist/components/design-tokens/HstTokenGrid.vue.d.ts +32 -27
  11. package/dist/components/design-tokens/HstTokenList.vue.d.ts +16 -17
  12. package/dist/components/json/HstJson.vue.d.ts +18 -19
  13. package/dist/components/number/HstNumber.vue.d.ts +18 -17
  14. package/dist/components/radio/HstRadio.vue.d.ts +19 -24
  15. package/dist/components/select/CustomSelect.vue.d.ts +17 -20
  16. package/dist/components/select/HstSelect.vue.d.ts +19 -24
  17. package/dist/components/slider/HstSlider.vue.d.ts +22 -33
  18. package/dist/components/text/HstText.vue.d.ts +18 -17
  19. package/dist/components/textarea/HstTextarea.vue.d.ts +18 -17
  20. package/dist/index.d.ts +394 -1332
  21. package/dist/index.es.js +4579 -3953
  22. package/package.json +17 -17
  23. package/src/components/button/HstButton.story.vue +1 -1
  24. package/src/components/design-tokens/HstColorShades.story.vue +4 -3
  25. package/src/components/design-tokens/HstColorShades.vue +2 -1
  26. package/src/components/design-tokens/HstTokenList.story.vue +2 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@histoire/controls",
3
- "version": "0.17.4",
3
+ "version": "0.17.6",
4
4
  "description": "Prebuilt controls components",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -31,34 +31,34 @@
31
31
  "*.vue"
32
32
  ],
33
33
  "dependencies": {
34
- "@codemirror/commands": "^6.2.4",
34
+ "@codemirror/commands": "^6.3.0",
35
35
  "@codemirror/lang-json": "^6.0.1",
36
- "@codemirror/language": "^6.8.0",
37
- "@codemirror/lint": "^6.4.0",
38
- "@codemirror/state": "^6.2.1",
36
+ "@codemirror/language": "^6.9.2",
37
+ "@codemirror/lint": "^6.4.2",
38
+ "@codemirror/state": "^6.3.1",
39
39
  "@codemirror/theme-one-dark": "^6.1.2",
40
- "@codemirror/view": "^6.16.0",
41
- "@histoire/shared": "^0.17.4",
42
- "@histoire/vendors": "^0.17.4"
40
+ "@codemirror/view": "^6.22.0",
41
+ "@histoire/shared": "^0.17.6",
42
+ "@histoire/vendors": "^0.17.6"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@types/node": "^17.0.45",
46
- "@vitejs/plugin-vue": "^4.2.3",
47
- "@vue/runtime-dom": "^3.3.4",
48
- "@vue/test-utils": "^2.4.1",
46
+ "@vitejs/plugin-vue": "^4.5.0",
47
+ "@vue/runtime-dom": "^3.3.8",
48
+ "@vue/test-utils": "^2.4.2",
49
49
  "@vueuse/core": "^9.13.0",
50
- "autoprefixer": "^10.4.15",
50
+ "autoprefixer": "^10.4.16",
51
51
  "concurrently": "^7.6.0",
52
52
  "floating-vue": "2.0.0-beta.19",
53
53
  "jsdom": "^22.1.0",
54
- "postcss": "^8.4.27",
54
+ "postcss": "^8.4.31",
55
55
  "postcss-import": "^14.1.0",
56
- "tailwindcss": "^3.3.3",
56
+ "tailwindcss": "^3.3.5",
57
57
  "typescript": "^4.9.5",
58
58
  "vite": "^4.5.0",
59
- "vitest": "^0.34.1",
60
- "vue": "^3.3.4",
61
- "vue-tsc": "^1.8.8"
59
+ "vitest": "^0.34.6",
60
+ "vue": "^3.3.8",
61
+ "vue-tsc": "^1.8.22"
62
62
  },
63
63
  "scripts": {
64
64
  "build": "rimraf dist && pnpm run build:css && vite build && pnpm run build:types",
@@ -20,7 +20,7 @@ const variants: Array<{name: string, bind?: unknown}> = [
20
20
  :title="variant.name"
21
21
  >
22
22
  <HstButton
23
- v-bind="variant.bind"
23
+ v-bind="variant.bind as {}"
24
24
  class="htw-p-2"
25
25
  >
26
26
  Click me!
@@ -1,5 +1,6 @@
1
1
  <script lang="ts" setup>
2
2
  import HstColorShades from './HstColorShades.vue'
3
+ import type { CSSProperties } from 'vue'
3
4
 
4
5
  const colors = {
5
6
  slate: {
@@ -311,7 +312,7 @@ const colors = {
311
312
  class="htw-rounded htw-h-[100px]"
312
313
  :style="{
313
314
  backgroundColor: color,
314
- }"
315
+ } as CSSProperties"
315
316
  />
316
317
  </template>
317
318
  </HstColorShades>
@@ -329,7 +330,7 @@ const colors = {
329
330
  class="htw-rounded htw-h-[100px] htw-text-5xl htw-flex htw-items-end"
330
331
  :style="{
331
332
  color: color,
332
- }"
333
+ } as CSSProperties"
333
334
  >
334
335
  Aa
335
336
  </div>
@@ -349,7 +350,7 @@ const colors = {
349
350
  class="htw-rounded htw-h-[100px] htw-border-solid htw-border-2"
350
351
  :style="{
351
352
  borderColor: color,
352
- }"
353
+ } as CSSProperties"
353
354
  />
354
355
  </template>
355
356
  </HstColorShades>
@@ -8,6 +8,7 @@ export default {
8
8
  import { computed, ref } from 'vue'
9
9
  import { VTooltip as vTooltip } from 'floating-vue'
10
10
  import HstCopyIcon from '../HstCopyIcon.vue'
11
+ import type { CSSProperties } from 'vue'
11
12
 
12
13
  const props = defineProps<{
13
14
  shades: Record<string, any>
@@ -68,7 +69,7 @@ const hover = ref<string>(null)
68
69
  class="htw-rounded-full htw-w-16 htw-h-16"
69
70
  :style="{
70
71
  backgroundColor: shade.color,
71
- }"
72
+ } as CSSProperties"
72
73
  />
73
74
  </slot>
74
75
  <div>
@@ -1,5 +1,6 @@
1
1
  <script lang="ts" setup>
2
2
  import HstTokenList from './HstTokenList.vue'
3
+ import type { CSSProperties } from 'vue'
3
4
 
4
5
  const tokens = {
5
6
  0: 0,
@@ -70,7 +71,7 @@ const tokens = {
70
71
  class="htw-h-20 htw-bg-gray-500/50"
71
72
  :style="{
72
73
  width: token.value as string,
73
- }"
74
+ } as CSSProperties"
74
75
  />
75
76
  </div>
76
77
  </template>