@veritree/ui 0.19.2-19 → 0.19.2-20
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.
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { formControlMixin } from '
|
|
1
|
+
import { formControlMixin, formControlStyleMixin } from '../mixins/form-control';
|
|
2
2
|
|
|
3
3
|
export const formControlIconMixin = {
|
|
4
4
|
inheritAttrs: false,
|
|
5
5
|
|
|
6
|
-
mixins: [formControlMixin],
|
|
6
|
+
mixins: [formControlMixin, formControlStyleMixin],
|
|
7
7
|
|
|
8
8
|
data() {
|
|
9
9
|
return {
|
package/mixins/form-control.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@veritree/ui",
|
|
3
|
-
"version": "0.19.2-
|
|
3
|
+
"version": "0.19.2-20",
|
|
4
4
|
"description": "veritree ui library",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
14
|
"@floating-ui/dom": "^1.0.4",
|
|
15
|
-
"@veritree/icons": "^0.
|
|
15
|
+
"@veritree/icons": "^0.45.1"
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|
|
18
18
|
"@nuxt/kit": "^3.0.0",
|
|
@@ -16,11 +16,11 @@
|
|
|
16
16
|
headless
|
|
17
17
|
? `button--${variant}`
|
|
18
18
|
: isPrimary
|
|
19
|
-
? '
|
|
19
|
+
? 'bg-secondary-400 hover:bg-secondary-500 active:bg-secondary-600 border-transparent text-white disabled:bg-gray-200 disabled:text-gray-400'
|
|
20
20
|
: isSecondary
|
|
21
21
|
? 'border-gray-400 bg-white text-gray-700 hover:bg-gray-100 active:bg-gray-200 disabled:border-gray-300 disabled:text-gray-400'
|
|
22
22
|
: isTertiary
|
|
23
|
-
? '
|
|
23
|
+
? 'text-secondary-400 hover:text-secondary-500 active:text-secondary-500 border-transparent disabled:text-gray-400'
|
|
24
24
|
: isIcon
|
|
25
25
|
? 'text-primary-100 focus-within:bg-gray-200 hover:bg-gray-200 active:bg-gray-300'
|
|
26
26
|
: null,
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
: isLarge
|
|
31
31
|
? isIcon
|
|
32
32
|
? 'h-8 w-8'
|
|
33
|
-
: 'h-10'
|
|
33
|
+
: 'h-12 sm:h-10'
|
|
34
34
|
: isSmall
|
|
35
35
|
? isIcon
|
|
36
36
|
? 'h-6 w-6 p-1'
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
<VTSpinner v-if="busy" class="absolute inset-0 m-auto" />
|
|
42
42
|
<span
|
|
43
43
|
:class="[
|
|
44
|
-
headless ? null : 'inline-flex items-center gap-2 self-center
|
|
44
|
+
headless ? null : 'mx-auto inline-flex items-center gap-2 self-center',
|
|
45
45
|
headless && busy ? 'button--busy' : busy ? 'invisible' : null,
|
|
46
46
|
]"
|
|
47
47
|
>
|
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
</template>
|
|
21
21
|
|
|
22
22
|
<script>
|
|
23
|
+
import { IconVisibilityOn, IconVisibilityOff } from '@veritree/icons';
|
|
23
24
|
import { formControlIconMixin } from '../../../mixins/form-control-icon';
|
|
24
25
|
|
|
25
26
|
export default {
|
|
@@ -27,6 +28,11 @@ export default {
|
|
|
27
28
|
|
|
28
29
|
mixins: [formControlIconMixin],
|
|
29
30
|
|
|
31
|
+
components: {
|
|
32
|
+
IconVisibilityOn,
|
|
33
|
+
IconVisibilityOff,
|
|
34
|
+
},
|
|
35
|
+
|
|
30
36
|
props: {
|
|
31
37
|
iconPlacement: {
|
|
32
38
|
type: String,
|