classcard-ui 0.2.1519 → 0.2.1520
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/classcard-ui.common.js +168 -196
- package/dist/classcard-ui.common.js.map +1 -1
- package/dist/classcard-ui.css +2 -2
- package/dist/classcard-ui.umd.js +168 -196
- package/dist/classcard-ui.umd.js.map +1 -1
- package/dist/classcard-ui.umd.min.js +4 -4
- package/dist/classcard-ui.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/CButtonIcon/CButtonIcon.vue +6 -1
- package/src/components/CConfirmActionModal/CConfirmActionModal.vue +4 -0
- package/src/stories/CButtonIcon.stories.js +32 -9
- package/src/.DS_Store +0 -0
package/package.json
CHANGED
|
@@ -24,11 +24,12 @@
|
|
|
24
24
|
<button
|
|
25
25
|
v-else-if="type == 'rounded-hover'"
|
|
26
26
|
@click.prevent="$emit('action')"
|
|
27
|
-
class="flex h-9 w-9 cursor-pointer items-center justify-center rounded-full bg-white text-gray-500 hover:bg-gray-100 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-
|
|
27
|
+
class="rounded-hover-button flex h-9 w-9 cursor-pointer items-center justify-center rounded-full bg-white text-gray-500 hover:bg-gray-100 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed"
|
|
28
28
|
:class="[
|
|
29
29
|
isTransparent ? 'bg-transparent' : 'bg-white',
|
|
30
30
|
customButtonClasses,
|
|
31
31
|
]"
|
|
32
|
+
:style="computedStyles"
|
|
32
33
|
:disabled="disabled"
|
|
33
34
|
:id="id"
|
|
34
35
|
>
|
|
@@ -163,4 +164,8 @@ export default {
|
|
|
163
164
|
.white-button-classes:focus {
|
|
164
165
|
outline-color: var(--primary-ring-color);
|
|
165
166
|
}
|
|
167
|
+
|
|
168
|
+
.rounded-hover-button:focus {
|
|
169
|
+
outline-color: var(--primary-ring-color);
|
|
170
|
+
}
|
|
166
171
|
</style>
|
|
@@ -1,11 +1,33 @@
|
|
|
1
|
-
import CButtonIcon from
|
|
2
|
-
import
|
|
1
|
+
import CButtonIcon from "../components/CButtonIcon/CButtonIcon.vue";
|
|
2
|
+
import "./utils.css";
|
|
3
3
|
|
|
4
4
|
export default {
|
|
5
|
-
title:
|
|
5
|
+
title: "CButtonIcon",
|
|
6
6
|
component: CButtonIcon,
|
|
7
7
|
argTypes: {
|
|
8
|
-
type: {
|
|
8
|
+
type: {
|
|
9
|
+
control: {
|
|
10
|
+
type: "select",
|
|
11
|
+
options: [
|
|
12
|
+
"primary",
|
|
13
|
+
"secondary",
|
|
14
|
+
"white",
|
|
15
|
+
"danger",
|
|
16
|
+
"success",
|
|
17
|
+
"tertiary",
|
|
18
|
+
"secondary-gray",
|
|
19
|
+
"rounded-hover",
|
|
20
|
+
"dark-blue",
|
|
21
|
+
"white-plain",
|
|
22
|
+
],
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
preferredColor: {
|
|
26
|
+
control: {
|
|
27
|
+
type: "select",
|
|
28
|
+
options: ["red", "indigo", "yellow", "green", "purple"],
|
|
29
|
+
},
|
|
30
|
+
},
|
|
9
31
|
},
|
|
10
32
|
};
|
|
11
33
|
|
|
@@ -18,10 +40,11 @@ const Template = (args, { argTypes }) => ({
|
|
|
18
40
|
export const Default = Template.bind({});
|
|
19
41
|
Default.args = {
|
|
20
42
|
isLoading: false,
|
|
21
|
-
type:
|
|
43
|
+
type: "primary",
|
|
22
44
|
icon: {
|
|
23
|
-
name:
|
|
24
|
-
type:
|
|
25
|
-
class:
|
|
26
|
-
}
|
|
45
|
+
name: "check",
|
|
46
|
+
type: "solid",
|
|
47
|
+
class: "h-5 w-5",
|
|
48
|
+
},
|
|
49
|
+
preferredColor: "indigo",
|
|
27
50
|
};
|
package/src/.DS_Store
DELETED
|
Binary file
|