bonkers-ui 1.0.28 → 1.0.30
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,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bonkers-ui",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.30",
|
|
4
4
|
"private": false,
|
|
5
5
|
"scripts": {
|
|
6
6
|
"storybook": "start-storybook -p 6006",
|
|
@@ -21,7 +21,6 @@
|
|
|
21
21
|
"@fortawesome/vue-fontawesome": "^3.0.1",
|
|
22
22
|
"@vueuse/components": "^9.4.0",
|
|
23
23
|
"@vueuse/core": "^9.4.0",
|
|
24
|
-
"husky": "4.3.8",
|
|
25
24
|
"vue": "^3.2.41"
|
|
26
25
|
},
|
|
27
26
|
"devDependencies": {
|
|
@@ -42,6 +41,7 @@
|
|
|
42
41
|
"eslint": "8.26.0",
|
|
43
42
|
"eslint-plugin-vue": "^9.6.0",
|
|
44
43
|
"gh-pages": "^4.0.0",
|
|
44
|
+
"husky": "4",
|
|
45
45
|
"jest": "27.3.1",
|
|
46
46
|
"lint-staged": "^13.0.2",
|
|
47
47
|
"postcss": "^8.4.18",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from "./ui-
|
|
1
|
+
export { default } from "./ui-card-simple.vue";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<label
|
|
3
|
-
class="ui-radio grid cursor-pointer"
|
|
3
|
+
class="ui-radio grid cursor-pointer group grid-flow-col"
|
|
4
4
|
:class="[
|
|
5
5
|
slots.default && 'items-center gap-xs',
|
|
6
6
|
(!justify || justify === EJustify.START) && 'justify-start',
|
|
@@ -19,13 +19,41 @@
|
|
|
19
19
|
:name="name"
|
|
20
20
|
:value="value"
|
|
21
21
|
:disabled="disabled"
|
|
22
|
-
class="appearance-none absolute"
|
|
22
|
+
class="appearance-none absolute peer"
|
|
23
23
|
>
|
|
24
24
|
<span
|
|
25
|
-
class="
|
|
25
|
+
class="
|
|
26
|
+
ui-radio_custom
|
|
27
|
+
relative
|
|
28
|
+
block
|
|
29
|
+
w-md
|
|
30
|
+
h-md
|
|
31
|
+
border
|
|
32
|
+
border-secondary-alt
|
|
33
|
+
rounded-full
|
|
34
|
+
bg-white
|
|
35
|
+
peer-disabled:border-secondary-alt-400
|
|
36
|
+
peer-disabled:bg-secondary-alt-200
|
|
37
|
+
peer-focus:shadow-border-primary
|
|
38
|
+
peer-checked:border-primary
|
|
39
|
+
peer-checked:border-2
|
|
40
|
+
peer-checked:hover:border-primary-600
|
|
41
|
+
group-hover:border-secondary-alt-700
|
|
42
|
+
group-focus:border-secondary-alt-700"
|
|
26
43
|
:class="invertOrder && 'order-last'"
|
|
27
44
|
>
|
|
28
|
-
<span
|
|
45
|
+
<span
|
|
46
|
+
class="
|
|
47
|
+
ui-radio__dot
|
|
48
|
+
absolute
|
|
49
|
+
top-2/4
|
|
50
|
+
left-2/4
|
|
51
|
+
w-xs
|
|
52
|
+
h-xs
|
|
53
|
+
block
|
|
54
|
+
bg-primary
|
|
55
|
+
rounded-full"
|
|
56
|
+
/>
|
|
29
57
|
</span>
|
|
30
58
|
<slot />
|
|
31
59
|
</label>
|
|
@@ -57,43 +85,21 @@
|
|
|
57
85
|
</script>
|
|
58
86
|
|
|
59
87
|
<style>
|
|
60
|
-
.ui-radio {
|
|
61
|
-
grid-template-columns: auto auto;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
88
|
.ui-radio__dot {
|
|
65
89
|
transform: translate3d(-50%, -50%, 0) scale(0);
|
|
66
90
|
transition: transform 0.2s ease-in-out;
|
|
67
91
|
}
|
|
68
92
|
|
|
69
|
-
input:disabled + .ui-radio_custom {
|
|
70
|
-
border: 1px solid var(--color-secondary-alt-400);
|
|
71
|
-
background-color: var(--color-secondary-alt-200);
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
input:focus + .ui-radio_custom {
|
|
75
|
-
box-shadow: var(--shadow-border-primary);
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
input:checked + .ui-radio_custom {
|
|
79
|
-
border: 2px solid var(--color-primary);
|
|
80
|
-
}
|
|
81
|
-
|
|
82
93
|
input:checked + .ui-radio_custom .ui-radio__dot {
|
|
83
94
|
transform: translate3d(-50%, -50%, 0) scale(1);
|
|
84
95
|
}
|
|
85
96
|
|
|
86
|
-
input:checked + .ui-radio_custom:hover {
|
|
87
|
-
border: 2px solid var(--color-primary-600);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
97
|
input:checked + .ui-radio_custom:hover .ui-radio__dot {
|
|
91
98
|
background-color: var(--color-primary-600);
|
|
92
99
|
}
|
|
93
100
|
|
|
94
101
|
input:checked:disabled + .ui-radio_custom {
|
|
95
102
|
border: 2px solid var(--color-primary-300);
|
|
96
|
-
background-color: var(--color-white);
|
|
97
103
|
}
|
|
98
104
|
|
|
99
105
|
input:checked:disabled + .ui-radio_custom .ui-radio__dot {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<label
|
|
3
|
-
class="ui-radio-fancy"
|
|
4
|
-
:class="disabled && 'pointer-events-none
|
|
3
|
+
class="ui-radio-fancy relative"
|
|
4
|
+
:class="disabled && 'pointer-events-none'"
|
|
5
5
|
>
|
|
6
6
|
<input
|
|
7
7
|
v-model="radioModel"
|
|
@@ -22,19 +22,22 @@
|
|
|
22
22
|
hover:border-secondary-alt-700
|
|
23
23
|
cursor-pointer
|
|
24
24
|
rounded-xl
|
|
25
|
-
active:border-sm
|
|
26
25
|
active:bg-secondary-alt-200
|
|
27
|
-
peer-checked:active:outline-4
|
|
28
|
-
peer-checked:active:outline
|
|
29
|
-
peer-checked:active:outline-offset-4
|
|
30
26
|
peer-checked:border-transparent
|
|
31
|
-
active:
|
|
32
|
-
active:outline-4
|
|
33
|
-
active:outline-primary
|
|
34
|
-
active:border-secondary-alt
|
|
27
|
+
peer-checked:active:shadow-border-primary
|
|
35
28
|
peer-checked:hover:shadow-border-selected
|
|
36
|
-
peer-checked:shadow-selected-shadow
|
|
37
|
-
|
|
29
|
+
peer-checked:shadow-selected-shadow
|
|
30
|
+
peer-checked:before:absolute
|
|
31
|
+
peer-checked:before:-top-xs
|
|
32
|
+
peer-checked:before:-bottom-xs
|
|
33
|
+
peer-checked:before:-left-xs
|
|
34
|
+
peer-checked:before:-right-xs
|
|
35
|
+
peer-checked:before:bg-primary-300
|
|
36
|
+
peer-checked:before:rounded-[20px]
|
|
37
|
+
peer-checked:before:box-border
|
|
38
|
+
peer-checked:before:-z-10
|
|
39
|
+
"
|
|
40
|
+
:class="disabled && 'pointer-events-none'"
|
|
38
41
|
>
|
|
39
42
|
<ui-icon
|
|
40
43
|
:icon-name="iconName"
|