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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "classcard-ui",
3
- "version": "0.2.1519",
3
+ "version": "0.2.1520",
4
4
  "main": "dist/classcard-ui.umd.min.js",
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -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-indigo-500 disabled:opacity-50 disabled:cursor-not-allowed"
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>
@@ -155,6 +155,10 @@ const COLOR_VARIANT_CLASSES = {
155
155
  background: "bg-yellow-100",
156
156
  text: "text-yellow-600",
157
157
  },
158
+ orange: {
159
+ background: "bg-orange-100",
160
+ text: "text-orange-600",
161
+ },
158
162
  };
159
163
 
160
164
  export default {
@@ -1,11 +1,33 @@
1
- import CButtonIcon from '../components/CButtonIcon/CButtonIcon.vue';
2
- import './utils.css'
1
+ import CButtonIcon from "../components/CButtonIcon/CButtonIcon.vue";
2
+ import "./utils.css";
3
3
 
4
4
  export default {
5
- title: 'CButtonIcon',
5
+ title: "CButtonIcon",
6
6
  component: CButtonIcon,
7
7
  argTypes: {
8
- type: { control: { type: 'select', options: ['primary', 'secondary', 'white', 'danger', 'success', 'tertiary', 'secondary-gray', 'rounded-hover', 'dark-blue', 'white-plain'] } },
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: 'primary',
43
+ type: "primary",
22
44
  icon: {
23
- name: 'check',
24
- type: 'solid',
25
- class: 'h-5 w-5'
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