@personizely/ui 0.0.50 → 0.0.52
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/personizely-ui.css +2 -2
- package/dist/personizely-ui.js +1326 -1324
- package/dist/personizely-ui.umd.cjs +19 -19
- package/package.json +1 -1
- package/src/components/ui/textarea/Textarea.vue +7 -3
- package/web-types.json +15 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@personizely/ui",
|
|
3
3
|
"web-types": "./web-types.json",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.52",
|
|
5
5
|
"description": "Personizely UI is a Vue.js UI library with a simple API, based on Reka UI, inspired by shadcn-vue and Keen UI.",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "./dist/personizely-ui.js",
|
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<textarea v-model="modelValue" :class="cn('flex min-h-20 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50', props.class)" />
|
|
2
|
+
<textarea v-model="modelValue" v-autofocus="autofocus" :class="cn('flex min-h-20 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50', props.class)" />
|
|
3
3
|
</template>
|
|
4
4
|
|
|
5
5
|
<script setup lang="ts">
|
|
6
6
|
import type { HTMLAttributes } from 'vue'
|
|
7
7
|
import { cn } from '@/utils/tailwind'
|
|
8
|
+
import vAutofocus from '@/directives/autofocus'
|
|
8
9
|
|
|
9
10
|
const modelValue = defineModel<string | undefined | null>()
|
|
10
|
-
const props = defineProps<{
|
|
11
|
+
const props = withDefaults(defineProps<{
|
|
12
|
+
autofocus?: boolean
|
|
11
13
|
class?: HTMLAttributes['class']
|
|
12
|
-
}>()
|
|
14
|
+
}>(), {
|
|
15
|
+
autofocus: false
|
|
16
|
+
})
|
|
13
17
|
</script>
|
package/web-types.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"$schema": "http://json.schemastore.org/web-types",
|
|
3
3
|
"framework": "vue",
|
|
4
4
|
"name": "@personizely/ui",
|
|
5
|
-
"version": "0.0.
|
|
5
|
+
"version": "0.0.52",
|
|
6
6
|
"description-markup": "none",
|
|
7
7
|
"js-types-syntax": "typescript",
|
|
8
8
|
"contributions": {
|
|
@@ -9410,6 +9410,13 @@
|
|
|
9410
9410
|
"type": "string | null | undefined",
|
|
9411
9411
|
"required": false
|
|
9412
9412
|
},
|
|
9413
|
+
{
|
|
9414
|
+
"name": "autofocus",
|
|
9415
|
+
"description": "",
|
|
9416
|
+
"type": "boolean | undefined",
|
|
9417
|
+
"required": false,
|
|
9418
|
+
"default": "false"
|
|
9419
|
+
},
|
|
9413
9420
|
{
|
|
9414
9421
|
"name": "class",
|
|
9415
9422
|
"description": "",
|
|
@@ -9471,6 +9478,13 @@
|
|
|
9471
9478
|
"type": "string | null | undefined",
|
|
9472
9479
|
"required": false
|
|
9473
9480
|
},
|
|
9481
|
+
{
|
|
9482
|
+
"name": "autofocus",
|
|
9483
|
+
"description": "",
|
|
9484
|
+
"type": "boolean | undefined",
|
|
9485
|
+
"required": false,
|
|
9486
|
+
"default": "false"
|
|
9487
|
+
},
|
|
9474
9488
|
{
|
|
9475
9489
|
"name": "class",
|
|
9476
9490
|
"description": "",
|