@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.
- package/dist/components/HstCopyIcon.vue.d.ts +13 -10
- package/dist/components/HstWrapper.vue.d.ts +30 -19
- package/dist/components/button/HstButton.vue.d.ts +14 -9
- package/dist/components/button/HstButtonGroup.vue.d.ts +19 -24
- package/dist/components/checkbox/HstCheckbox.vue.d.ts +18 -17
- package/dist/components/checkbox/HstCheckboxList.vue.d.ts +19 -26
- package/dist/components/checkbox/HstSimpleCheckbox.vue.d.ts +18 -17
- package/dist/components/colorselect/HstColorSelect.vue.d.ts +18 -17
- package/dist/components/design-tokens/HstColorShades.vue.d.ts +18 -23
- package/dist/components/design-tokens/HstTokenGrid.vue.d.ts +32 -27
- package/dist/components/design-tokens/HstTokenList.vue.d.ts +16 -17
- package/dist/components/json/HstJson.vue.d.ts +18 -19
- package/dist/components/number/HstNumber.vue.d.ts +18 -17
- package/dist/components/radio/HstRadio.vue.d.ts +19 -24
- package/dist/components/select/CustomSelect.vue.d.ts +17 -20
- package/dist/components/select/HstSelect.vue.d.ts +19 -24
- package/dist/components/slider/HstSlider.vue.d.ts +22 -33
- package/dist/components/text/HstText.vue.d.ts +18 -17
- package/dist/components/textarea/HstTextarea.vue.d.ts +18 -17
- package/dist/index.d.ts +394 -1332
- package/dist/index.es.js +4579 -3953
- package/package.json +17 -17
- package/src/components/button/HstButton.story.vue +1 -1
- package/src/components/design-tokens/HstColorShades.story.vue +4 -3
- package/src/components/design-tokens/HstColorShades.vue +2 -1
- 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.
|
|
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.
|
|
34
|
+
"@codemirror/commands": "^6.3.0",
|
|
35
35
|
"@codemirror/lang-json": "^6.0.1",
|
|
36
|
-
"@codemirror/language": "^6.
|
|
37
|
-
"@codemirror/lint": "^6.4.
|
|
38
|
-
"@codemirror/state": "^6.
|
|
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.
|
|
41
|
-
"@histoire/shared": "^0.17.
|
|
42
|
-
"@histoire/vendors": "^0.17.
|
|
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.
|
|
47
|
-
"@vue/runtime-dom": "^3.3.
|
|
48
|
-
"@vue/test-utils": "^2.4.
|
|
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.
|
|
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.
|
|
54
|
+
"postcss": "^8.4.31",
|
|
55
55
|
"postcss-import": "^14.1.0",
|
|
56
|
-
"tailwindcss": "^3.3.
|
|
56
|
+
"tailwindcss": "^3.3.5",
|
|
57
57
|
"typescript": "^4.9.5",
|
|
58
58
|
"vite": "^4.5.0",
|
|
59
|
-
"vitest": "^0.34.
|
|
60
|
-
"vue": "^3.3.
|
|
61
|
-
"vue-tsc": "^1.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",
|
|
@@ -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>
|