classcard-ui 0.2.126 → 0.2.135

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.
@@ -22,10 +22,8 @@ const Template = (args, { argTypes }) => ({
22
22
 
23
23
  export const Default = Template.bind({});
24
24
  Default.args = {
25
- items: [
26
- { text: "one" },
27
- { text: "two" },
28
- ],
29
- // type: 'primary',
30
- label: "Button"
31
- };
25
+ firstDropdownOptions: [{ text: "one" }, { text: "two" }],
26
+ secondDropdownOptions: [{ text: "four" }, { text: "five" }],
27
+ // type: 'primary',
28
+ label: "Button",
29
+ };
@@ -0,0 +1,69 @@
1
+ import CGroupedSelect from "../components/CGroupedSelect/CGroupedSelect.vue";
2
+ import "./utils.css";
3
+
4
+ export default {
5
+ title: "CGroupedSelect",
6
+ component: CGroupedSelect,
7
+ argTypes: {
8
+ options: Array,
9
+ label: String,
10
+ },
11
+ };
12
+
13
+ const Template = (args, { argTypes }) => ({
14
+ props: Object.keys(argTypes),
15
+ components: { CGroupedSelect },
16
+ template: '<c-grouped-select v-bind="$props" />',
17
+ });
18
+
19
+ export const Default = Template.bind({});
20
+
21
+ Default.args = {
22
+ options: [
23
+ {
24
+ id: 0,
25
+ label: "fees",
26
+ options: [
27
+ {
28
+ id: 11751,
29
+ label: "Activity - Cricket - Flat Rate",
30
+ },
31
+ {
32
+ id: 13344,
33
+ label: "Cricket Kit",
34
+ },
35
+ {
36
+ id: 13407,
37
+ label: "Sports - Cricket - 60 mins",
38
+ },
39
+ {
40
+ id: 15370,
41
+ label: "Sports - Cricket - 60 mins",
42
+ },
43
+ ],
44
+ },
45
+ {
46
+ id: 1,
47
+ label: "packages",
48
+ options: [
49
+ {
50
+ id: 15664,
51
+ label: "Sports Cricket 4 Sessions",
52
+ },
53
+ {
54
+ id: 15663,
55
+ label: "Sports - Cricket 6 Sessions",
56
+ },
57
+ ],
58
+ },
59
+ {
60
+ id: 2,
61
+ label: "others",
62
+ options: [],
63
+ },
64
+ ],
65
+ value: {
66
+ id: 11751,
67
+ label: "Activity - Cricket - Flat Rate",
68
+ },
69
+ };
@@ -6,7 +6,12 @@ export default {
6
6
  component: CPhoneNumber,
7
7
  argTypes: {
8
8
  label: String,
9
- color: { control: { type: 'select', options: ['gray', 'red', 'yellow', 'green', 'indigo', 'purple', 'pink'] } }
9
+ color: {
10
+ control: {
11
+ type: "select",
12
+ options: ["gray", "red", "yellow", "green", "indigo", "purple", "pink"],
13
+ },
14
+ },
10
15
  },
11
16
  };
12
17
 
@@ -19,5 +24,6 @@ const Template = (args, { argTypes }) => ({
19
24
  export const Default = Template.bind({});
20
25
  Default.args = {
21
26
  label: "Active",
22
- color: "green"
27
+ color: "green",
28
+ phone: "+3197010281349",
23
29
  };