classcard-ui 0.2.1069 → 0.2.1071
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/README.md +24 -24
- package/dist/classcard-ui.common.js +62 -59
- package/dist/classcard-ui.common.js.map +1 -1
- package/dist/classcard-ui.umd.js +62 -59
- package/dist/classcard-ui.umd.js.map +1 -1
- package/dist/classcard-ui.umd.min.js +1 -1
- package/dist/classcard-ui.umd.min.js.map +1 -1
- package/package.json +82 -82
- package/src/App.vue +16 -16
- package/src/components/CAlerts/CAlerts.vue +70 -70
- package/src/components/CAlerts/index.js +2 -2
- package/src/components/CAnchorTabs/CAnchorTabs.vue +96 -96
- package/src/components/CAnchorTabs/index.js +2 -2
- package/src/components/CAnchorTag/CAnchorTag.vue +62 -62
- package/src/components/CAnchorTag/index.js +2 -2
- package/src/components/CAvatar/CAvatar.vue +212 -212
- package/src/components/CAvatar/index.js +2 -2
- package/src/components/CAvatarGroup/CAvatarGroup.vue +145 -145
- package/src/components/CAvatarGroup/index.js +2 -2
- package/src/components/CBasicTable/CBasicTable.vue +184 -184
- package/src/components/CBasicTable/index.js +2 -2
- package/src/components/CBreadcrumbs/CBreadcrumbs.vue +38 -38
- package/src/components/CBreadcrumbs/index.js +2 -2
- package/src/components/CButton/CButton.vue +152 -152
- package/src/components/CButton/index.js +2 -2
- package/src/components/CButtonGroup/CButtonGroup.vue +118 -118
- package/src/components/CButtonGroup/index.js +2 -2
- package/src/components/CButtonIcon/CButtonIcon.vue +117 -117
- package/src/components/CButtonIcon/index.js +2 -2
- package/src/components/CButtonLink/CButtonLink.vue +39 -39
- package/src/components/CButtonLink/index.js +2 -2
- package/src/components/CButtonSelect/CButtonSelect.vue +134 -134
- package/src/components/CButtonSelect/index.js +2 -2
- package/src/components/CButtonSelectBorder/CButtonSelectBorder.vue +135 -135
- package/src/components/CButtonSelectBorder/index.js +3 -3
- package/src/components/CButtonWithDropdown/CButtonWithDropdown.vue +135 -135
- package/src/components/CButtonWithDropdown/index.js +2 -2
- package/src/components/CCalendar/CCalendar.vue +410 -410
- package/src/components/CCalendar/index.js +3 -3
- package/src/components/CCard/CCard.vue +49 -49
- package/src/components/CCard/index.js +2 -2
- package/src/components/CCheckbox/CCheckbox.vue +123 -123
- package/src/components/CCheckbox/index.js +2 -2
- package/src/components/CCircularButton/CCircularButton.vue +53 -53
- package/src/components/CCircularButton/index.js +2 -2
- package/src/components/CCollapsibleSection/CCollapsibleSection.vue +101 -101
- package/src/components/CCollapsibleSection/index.js +2 -2
- package/src/components/CColorDots/CColorDots.vue +51 -51
- package/src/components/CColorDots/index.js +3 -3
- package/src/components/CConfirmActionModal/CConfirmActionModal.vue +180 -180
- package/src/components/CConfirmActionModal/index.js +3 -3
- package/src/components/CDatepicker/CDatepicker.vue +201 -201
- package/src/components/CDatepicker/index.js +2 -2
- package/src/components/CDualSelect/CDualSelect.vue +193 -193
- package/src/components/CDualSelect/index.js +2 -2
- package/src/components/CEditor/CEditor.vue +98 -98
- package/src/components/CEditor/index.js +2 -2
- package/src/components/CFormSectionHeading/CFormSectionHeading.vue +53 -53
- package/src/components/CFormSectionHeading/index.js +2 -2
- package/src/components/CGroupedSelect/CGroupedSelect.vue +245 -245
- package/src/components/CGroupedSelect/index.js +3 -3
- package/src/components/CIcon/CIcon.vue +91 -91
- package/src/components/CIcon/index.js +2 -2
- package/src/components/CIconDropdown/CIconDropdown.vue +146 -146
- package/src/components/CIconDropdown/index.js +2 -2
- package/src/components/CInput/CInput.vue +134 -134
- package/src/components/CInput/index.js +2 -2
- package/src/components/CInputAddon/CInputAddon.vue +228 -228
- package/src/components/CInputAddon/index.js +2 -2
- package/src/components/CInputEmail/CInputEmail.vue +93 -93
- package/src/components/CInputEmail/index.js +2 -2
- package/src/components/CInsetTabs/CInsetTabs.vue +88 -88
- package/src/components/CInsetTabs/index.js +3 -3
- package/src/components/CModalHeading/CModalHeading.vue +22 -22
- package/src/components/CModalHeading/index.js +2 -2
- package/src/components/CModuleHelpLinks/CModuleHelpLinks.vue +70 -70
- package/src/components/CModuleHelpLinks/index.js +3 -3
- package/src/components/CMultiselect/CMultiselect.vue +615 -615
- package/src/components/CMultiselect/index.js +2 -2
- package/src/components/CMultiselectr/CMultiselectr.vue +44 -44
- package/src/components/CMultiselectr/index.js +2 -2
- package/src/components/CPageHeading/CPageHeading.vue +56 -56
- package/src/components/CPageHeading/index.js +2 -2
- package/src/components/CPagination/CPagination.vue +233 -233
- package/src/components/CPagination/index.js +2 -2
- package/src/components/CPhoneNumber/CPhoneNumber.vue +114 -114
- package/src/components/CPhoneNumber/index.js +2 -2
- package/src/components/CProgress/CProgress.vue +57 -57
- package/src/components/CProgress/index.js +2 -2
- package/src/components/CRadio/CRadio.vue +126 -126
- package/src/components/CRadio/index.js +2 -2
- package/src/components/CRangeSlider/CRangeSlider.vue +55 -55
- package/src/components/CRangeSlider/index.js +2 -2
- package/src/components/CReorderableStackedList/CReorderableStackedList.vue +94 -94
- package/src/components/CReorderableStackedList/index.js +2 -2
- package/src/components/CSelect/CSelect.vue +539 -539
- package/src/components/CSelect/index.js +2 -2
- package/src/components/CSmallTimeline/CSmallTimeline.vue +40 -40
- package/src/components/CSmallTimeline/index.js +2 -2
- package/src/components/CStackedList/CStackedList.vue +150 -150
- package/src/components/CStackedList/index.js +2 -2
- package/src/components/CStats/CStats.vue +116 -116
- package/src/components/CStats/index.js +2 -2
- package/src/components/CSwitch/CSwitch.vue +176 -176
- package/src/components/CSwitch/index.js +2 -2
- package/src/components/CTabLazy/CTabLazy.vue +63 -63
- package/src/components/CTabLazy/index.js +2 -2
- package/src/components/CTable/CTable.vue +671 -671
- package/src/components/CTable/index.js +2 -2
- package/src/components/CTabs/CTabs.vue +169 -169
- package/src/components/CTabs/index.js +2 -2
- package/src/components/CTag/CTag.vue +59 -59
- package/src/components/CTag/index.js +2 -2
- package/src/components/CTextarea/CTextarea.vue +107 -107
- package/src/components/CTextarea/index.js +2 -2
- package/src/components/CTimeline/CTimeline.vue +237 -237
- package/src/components/CTimeline/index.js +2 -2
- package/src/components/CUpload/CUpload.vue +267 -267
- package/src/components/CUpload/index.js +2 -2
- package/src/components/index.js +53 -53
- package/src/icons.js +459 -453
- package/src/main.js +22 -22
- package/src/stories/CAlerts.stories.js +37 -37
- package/src/stories/CAnchorTabs.stories.js +29 -29
- package/src/stories/CAnchorTag.stories.js +36 -36
- package/src/stories/CAvatar.stories.js +38 -38
- package/src/stories/CAvatarGroup.stories.js +100 -100
- package/src/stories/CBasicTable.stories.js +316 -316
- package/src/stories/CBreadcrumbs.stories.js +24 -24
- package/src/stories/CButton.stories.js +47 -47
- package/src/stories/CButtonGroup.stories.js +33 -33
- package/src/stories/CButtonIcon.stories.js +27 -27
- package/src/stories/CButtonLink.stories.js +24 -24
- package/src/stories/CButtonSelect.stories.js +41 -41
- package/src/stories/CButtonSelectBorder.stories.js +48 -48
- package/src/stories/CButtonWithDropdown.stories.js +41 -41
- package/src/stories/CCalendar.stories.js +16 -16
- package/src/stories/CCard.stories.js +30 -30
- package/src/stories/CCheckbox.stories.js +29 -29
- package/src/stories/CCircularButton.stories.js +29 -29
- package/src/stories/CCollapsibleSection.stories.js +28 -28
- package/src/stories/CColorDots.stories.js +28 -28
- package/src/stories/CConfirmActionModal.stories.js +59 -59
- package/src/stories/CDatepicker.stories.js +30 -30
- package/src/stories/CDualSelect.stories.js +29 -29
- package/src/stories/CEditor.stories.js +30 -30
- package/src/stories/CFormSectionHeading.stories.js +34 -34
- package/src/stories/CGroupedSelect.stories.js +71 -71
- package/src/stories/CIcon.stories.js +28 -28
- package/src/stories/CIconDropdown.stories.js +45 -45
- package/src/stories/CInput.stories.js +36 -36
- package/src/stories/CInputAddon.stories.js +37 -37
- package/src/stories/CInputEmail.stories.js +27 -27
- package/src/stories/CInsetTabs.stories.js +38 -38
- package/src/stories/CModalHeading.stories.js +25 -25
- package/src/stories/CModuleHelpLinks.stories.js +25 -25
- package/src/stories/CMultiselect.stories.js +167 -167
- package/src/stories/CMultiselectr.stories.js +23 -23
- package/src/stories/CPageHeading.stories.js +32 -32
- package/src/stories/CPagination.stories.js +30 -30
- package/src/stories/CPhoneNumber.stories.js +29 -29
- package/src/stories/CProgress.stories.js +23 -23
- package/src/stories/CRadio.stories.js +36 -36
- package/src/stories/CRangeSlider.stories.js +23 -23
- package/src/stories/CReorderableStackedList.stories.js +23 -23
- package/src/stories/CSelect.stories.js +109 -109
- package/src/stories/CSmallTimeline.stories.js +26 -26
- package/src/stories/CStackedList.stories.js +37 -37
- package/src/stories/CStats.stories.js +33 -33
- package/src/stories/CSwitch.stories.js +28 -28
- package/src/stories/CTabLazy.stories.js +26 -26
- package/src/stories/CTable.stories.js +169 -169
- package/src/stories/CTabs.stories.js +36 -36
- package/src/stories/CTag.stories.js +34 -34
- package/src/stories/CTextarea.stories.js +32 -32
- package/src/stories/CTimeline.stories.js +26 -26
- package/src/stories/CUpload.stories.js +36 -36
- package/src/stories/Introduction.stories.mdx +207 -207
- package/src/stories/Page.vue +88 -88
- package/src/stories/assets/code-brackets.svg +0 -0
- package/src/stories/assets/colors.svg +0 -0
- package/src/stories/assets/comments.svg +0 -0
- package/src/stories/assets/direction.svg +0 -0
- package/src/stories/assets/flow.svg +0 -0
- package/src/stories/assets/plugin.svg +0 -0
- package/src/stories/assets/repo.svg +0 -0
- package/src/stories/assets/stackalt.svg +0 -0
- package/src/stories/header.css +26 -26
- package/src/stories/page.css +69 -69
- package/src/stories/utils.css +17 -17
|
@@ -1,71 +1,71 @@
|
|
|
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
|
-
labelExtra: "Something",
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
id: 13344,
|
|
34
|
-
label: "Cricket Kit",
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
id: 13407,
|
|
38
|
-
label: "Sports - Cricket - 60 mins",
|
|
39
|
-
labelExtra: "Football - extra - 15mins",
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
id: 15370,
|
|
43
|
-
label: "Sports - Cricket - 60 mins",
|
|
44
|
-
},
|
|
45
|
-
],
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
id: 1,
|
|
49
|
-
label: "packages",
|
|
50
|
-
options: [
|
|
51
|
-
{
|
|
52
|
-
id: 15664,
|
|
53
|
-
label: "Sports Cricket 4 Sessions",
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
id: 15663,
|
|
57
|
-
label: "Sports - Cricket 6 Sessions",
|
|
58
|
-
},
|
|
59
|
-
],
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
id: 2,
|
|
63
|
-
label: "others",
|
|
64
|
-
options: [],
|
|
65
|
-
},
|
|
66
|
-
],
|
|
67
|
-
value: {
|
|
68
|
-
id: 11751,
|
|
69
|
-
label: "Activity - Cricket - Flat Rate",
|
|
70
|
-
},
|
|
71
|
-
};
|
|
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
|
+
labelExtra: "Something",
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
id: 13344,
|
|
34
|
+
label: "Cricket Kit",
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
id: 13407,
|
|
38
|
+
label: "Sports - Cricket - 60 mins",
|
|
39
|
+
labelExtra: "Football - extra - 15mins",
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
id: 15370,
|
|
43
|
+
label: "Sports - Cricket - 60 mins",
|
|
44
|
+
},
|
|
45
|
+
],
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
id: 1,
|
|
49
|
+
label: "packages",
|
|
50
|
+
options: [
|
|
51
|
+
{
|
|
52
|
+
id: 15664,
|
|
53
|
+
label: "Sports Cricket 4 Sessions",
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
id: 15663,
|
|
57
|
+
label: "Sports - Cricket 6 Sessions",
|
|
58
|
+
},
|
|
59
|
+
],
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
id: 2,
|
|
63
|
+
label: "others",
|
|
64
|
+
options: [],
|
|
65
|
+
},
|
|
66
|
+
],
|
|
67
|
+
value: {
|
|
68
|
+
id: 11751,
|
|
69
|
+
label: "Activity - Cricket - Flat Rate",
|
|
70
|
+
},
|
|
71
|
+
};
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import CIcon from "../components/CIcon/CIcon.vue";
|
|
2
|
-
import "./utils.css";
|
|
3
|
-
|
|
4
|
-
export default {
|
|
5
|
-
title: "CIcon",
|
|
6
|
-
component: CIcon,
|
|
7
|
-
argTypes: {
|
|
8
|
-
name: String,
|
|
9
|
-
classes: String,
|
|
10
|
-
type: {
|
|
11
|
-
control: { type: "select", options: ["solid", "outline", "outline-v2"] },
|
|
12
|
-
},
|
|
13
|
-
viewBox: String,
|
|
14
|
-
dimensions: String,
|
|
15
|
-
},
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
const Template = (args, { argTypes }) => ({
|
|
19
|
-
props: Object.keys(argTypes),
|
|
20
|
-
components: { CIcon },
|
|
21
|
-
template: '<c-icon v-bind="$props" />',
|
|
22
|
-
});
|
|
23
|
-
|
|
24
|
-
export const Default = Template.bind({});
|
|
25
|
-
Default.args = {
|
|
26
|
-
name: "bell",
|
|
27
|
-
classes: "h-5 w-5",
|
|
28
|
-
};
|
|
1
|
+
import CIcon from "../components/CIcon/CIcon.vue";
|
|
2
|
+
import "./utils.css";
|
|
3
|
+
|
|
4
|
+
export default {
|
|
5
|
+
title: "CIcon",
|
|
6
|
+
component: CIcon,
|
|
7
|
+
argTypes: {
|
|
8
|
+
name: String,
|
|
9
|
+
classes: String,
|
|
10
|
+
type: {
|
|
11
|
+
control: { type: "select", options: ["solid", "outline", "outline-v2"] },
|
|
12
|
+
},
|
|
13
|
+
viewBox: String,
|
|
14
|
+
dimensions: String,
|
|
15
|
+
},
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
const Template = (args, { argTypes }) => ({
|
|
19
|
+
props: Object.keys(argTypes),
|
|
20
|
+
components: { CIcon },
|
|
21
|
+
template: '<c-icon v-bind="$props" />',
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
export const Default = Template.bind({});
|
|
25
|
+
Default.args = {
|
|
26
|
+
name: "bell",
|
|
27
|
+
classes: "h-5 w-5",
|
|
28
|
+
};
|
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
import CIconDropdown from "../components/CIconDropdown/CIconDropdown.vue";
|
|
2
|
-
import CIcon from "../components/CIcon/CIcon.vue";
|
|
3
|
-
import "./utils.css";
|
|
4
|
-
|
|
5
|
-
export default {
|
|
6
|
-
title: "CIconDropdown",
|
|
7
|
-
component: CIconDropdown,
|
|
8
|
-
subcomponents: { CIcon },
|
|
9
|
-
argTypes: {
|
|
10
|
-
items: { control: { type: "object" } },
|
|
11
|
-
icon: Object,
|
|
12
|
-
dropdownIcons: { type: Array },
|
|
13
|
-
},
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
const Template = (args, { argTypes }) => ({
|
|
17
|
-
props: Object.keys(argTypes),
|
|
18
|
-
components: { CIconDropdown },
|
|
19
|
-
template: '<c-icon-dropdown v-bind="$props" />',
|
|
20
|
-
});
|
|
21
|
-
|
|
22
|
-
export const Default = Template.bind({});
|
|
23
|
-
Default.args = {
|
|
24
|
-
items: [
|
|
25
|
-
{
|
|
26
|
-
icon: true,
|
|
27
|
-
text: "one",
|
|
28
|
-
action: "alert",
|
|
29
|
-
class: "hover:bg-red-100 hover:text-red-500 w-56",
|
|
30
|
-
},
|
|
31
|
-
{ text: "two" },
|
|
32
|
-
],
|
|
33
|
-
dropdownIcons: [
|
|
34
|
-
{
|
|
35
|
-
name: "trash",
|
|
36
|
-
class: "mr-3 h-5 w-5 text-gray-400 hover:text-red-500",
|
|
37
|
-
type: "solid",
|
|
38
|
-
},
|
|
39
|
-
],
|
|
40
|
-
icon: {
|
|
41
|
-
name: "dots-vertical-solid",
|
|
42
|
-
class: "h-5 w-5 text-gray-500",
|
|
43
|
-
type: "solid",
|
|
44
|
-
},
|
|
45
|
-
};
|
|
1
|
+
import CIconDropdown from "../components/CIconDropdown/CIconDropdown.vue";
|
|
2
|
+
import CIcon from "../components/CIcon/CIcon.vue";
|
|
3
|
+
import "./utils.css";
|
|
4
|
+
|
|
5
|
+
export default {
|
|
6
|
+
title: "CIconDropdown",
|
|
7
|
+
component: CIconDropdown,
|
|
8
|
+
subcomponents: { CIcon },
|
|
9
|
+
argTypes: {
|
|
10
|
+
items: { control: { type: "object" } },
|
|
11
|
+
icon: Object,
|
|
12
|
+
dropdownIcons: { type: Array },
|
|
13
|
+
},
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
const Template = (args, { argTypes }) => ({
|
|
17
|
+
props: Object.keys(argTypes),
|
|
18
|
+
components: { CIconDropdown },
|
|
19
|
+
template: '<c-icon-dropdown v-bind="$props" />',
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
export const Default = Template.bind({});
|
|
23
|
+
Default.args = {
|
|
24
|
+
items: [
|
|
25
|
+
{
|
|
26
|
+
icon: true,
|
|
27
|
+
text: "one",
|
|
28
|
+
action: "alert",
|
|
29
|
+
class: "hover:bg-red-100 hover:text-red-500 w-56",
|
|
30
|
+
},
|
|
31
|
+
{ text: "two" },
|
|
32
|
+
],
|
|
33
|
+
dropdownIcons: [
|
|
34
|
+
{
|
|
35
|
+
name: "trash",
|
|
36
|
+
class: "mr-3 h-5 w-5 text-gray-400 hover:text-red-500",
|
|
37
|
+
type: "solid",
|
|
38
|
+
},
|
|
39
|
+
],
|
|
40
|
+
icon: {
|
|
41
|
+
name: "dots-vertical-solid",
|
|
42
|
+
class: "h-5 w-5 text-gray-500",
|
|
43
|
+
type: "solid",
|
|
44
|
+
},
|
|
45
|
+
};
|
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import CInput from "../components/CInput/CInput.vue";
|
|
2
|
-
import "./utils.css";
|
|
3
|
-
|
|
4
|
-
export default {
|
|
5
|
-
title: "CInput",
|
|
6
|
-
component: CInput,
|
|
7
|
-
argTypes: {
|
|
8
|
-
label: String,
|
|
9
|
-
placeholder: String,
|
|
10
|
-
addon: String,
|
|
11
|
-
hint: String,
|
|
12
|
-
helpText: String,
|
|
13
|
-
isValidate: Boolean,
|
|
14
|
-
value: String,
|
|
15
|
-
disabled: Boolean,
|
|
16
|
-
type: String,
|
|
17
|
-
},
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
const Template = (args, { argTypes }) => ({
|
|
21
|
-
props: Object.keys(argTypes),
|
|
22
|
-
components: { CInput },
|
|
23
|
-
template: '<c-input v-bind="$props" />',
|
|
24
|
-
});
|
|
25
|
-
|
|
26
|
-
export const Default = Template.bind({});
|
|
27
|
-
Default.args = {
|
|
28
|
-
label: "Name",
|
|
29
|
-
placeholder: "Enter your name",
|
|
30
|
-
addon: "AED",
|
|
31
|
-
hint: "Optional",
|
|
32
|
-
helpText: "Any message",
|
|
33
|
-
isValidate: true,
|
|
34
|
-
disabled: true,
|
|
35
|
-
type: "text",
|
|
36
|
-
};
|
|
1
|
+
import CInput from "../components/CInput/CInput.vue";
|
|
2
|
+
import "./utils.css";
|
|
3
|
+
|
|
4
|
+
export default {
|
|
5
|
+
title: "CInput",
|
|
6
|
+
component: CInput,
|
|
7
|
+
argTypes: {
|
|
8
|
+
label: String,
|
|
9
|
+
placeholder: String,
|
|
10
|
+
addon: String,
|
|
11
|
+
hint: String,
|
|
12
|
+
helpText: String,
|
|
13
|
+
isValidate: Boolean,
|
|
14
|
+
value: String,
|
|
15
|
+
disabled: Boolean,
|
|
16
|
+
type: String,
|
|
17
|
+
},
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
const Template = (args, { argTypes }) => ({
|
|
21
|
+
props: Object.keys(argTypes),
|
|
22
|
+
components: { CInput },
|
|
23
|
+
template: '<c-input v-bind="$props" />',
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
export const Default = Template.bind({});
|
|
27
|
+
Default.args = {
|
|
28
|
+
label: "Name",
|
|
29
|
+
placeholder: "Enter your name",
|
|
30
|
+
addon: "AED",
|
|
31
|
+
hint: "Optional",
|
|
32
|
+
helpText: "Any message",
|
|
33
|
+
isValidate: true,
|
|
34
|
+
disabled: true,
|
|
35
|
+
type: "text",
|
|
36
|
+
};
|
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
import CInputAddon from "../components/CInputAddon/CInputAddon.vue";
|
|
2
|
-
import "./utils.css";
|
|
3
|
-
|
|
4
|
-
export default {
|
|
5
|
-
title: "CInputAddon",
|
|
6
|
-
component: CInputAddon,
|
|
7
|
-
argTypes: {
|
|
8
|
-
addonType: {
|
|
9
|
-
control: { type: "select", options: ["leading", "trailing"] },
|
|
10
|
-
},
|
|
11
|
-
helpTextColor: {
|
|
12
|
-
control: { type: "select", options: ["gray", "red", "green"] },
|
|
13
|
-
},
|
|
14
|
-
disabled: Boolean,
|
|
15
|
-
},
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
const Template = (args, { argTypes }) => ({
|
|
19
|
-
props: Object.keys(argTypes),
|
|
20
|
-
components: { CInputAddon },
|
|
21
|
-
template: '<c-input-addon v-bind="$props" />',
|
|
22
|
-
});
|
|
23
|
-
|
|
24
|
-
export const Default = Template.bind({});
|
|
25
|
-
Default.args = {
|
|
26
|
-
label: "Name",
|
|
27
|
-
placeholder: "Enter your name",
|
|
28
|
-
addon: "AED",
|
|
29
|
-
hint: "Optional",
|
|
30
|
-
helpText: "Any message",
|
|
31
|
-
isValidate: true,
|
|
32
|
-
addonType: "leading",
|
|
33
|
-
helpTextColor: "gray",
|
|
34
|
-
inlineAddon: false,
|
|
35
|
-
disabled: true,
|
|
36
|
-
inputType: "text",
|
|
37
|
-
};
|
|
1
|
+
import CInputAddon from "../components/CInputAddon/CInputAddon.vue";
|
|
2
|
+
import "./utils.css";
|
|
3
|
+
|
|
4
|
+
export default {
|
|
5
|
+
title: "CInputAddon",
|
|
6
|
+
component: CInputAddon,
|
|
7
|
+
argTypes: {
|
|
8
|
+
addonType: {
|
|
9
|
+
control: { type: "select", options: ["leading", "trailing"] },
|
|
10
|
+
},
|
|
11
|
+
helpTextColor: {
|
|
12
|
+
control: { type: "select", options: ["gray", "red", "green"] },
|
|
13
|
+
},
|
|
14
|
+
disabled: Boolean,
|
|
15
|
+
},
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
const Template = (args, { argTypes }) => ({
|
|
19
|
+
props: Object.keys(argTypes),
|
|
20
|
+
components: { CInputAddon },
|
|
21
|
+
template: '<c-input-addon v-bind="$props" />',
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
export const Default = Template.bind({});
|
|
25
|
+
Default.args = {
|
|
26
|
+
label: "Name",
|
|
27
|
+
placeholder: "Enter your name",
|
|
28
|
+
addon: "AED",
|
|
29
|
+
hint: "Optional",
|
|
30
|
+
helpText: "Any message",
|
|
31
|
+
isValidate: true,
|
|
32
|
+
addonType: "leading",
|
|
33
|
+
helpTextColor: "gray",
|
|
34
|
+
inlineAddon: false,
|
|
35
|
+
disabled: true,
|
|
36
|
+
inputType: "text",
|
|
37
|
+
};
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import CInputEmail from '../components/CInputEmail/CInputEmail.vue';
|
|
2
|
-
import './utils.css'
|
|
3
|
-
|
|
4
|
-
export default {
|
|
5
|
-
title: 'CInputEmail',
|
|
6
|
-
component: CInputEmail,
|
|
7
|
-
argTypes: {
|
|
8
|
-
label: String,
|
|
9
|
-
placeholder: String,
|
|
10
|
-
hint:String,
|
|
11
|
-
helpText: String
|
|
12
|
-
},
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
const Template = (args, { argTypes }) => ({
|
|
16
|
-
props: Object.keys(argTypes),
|
|
17
|
-
components: { CInputEmail },
|
|
18
|
-
template: '<c-input-email v-bind="$props" />',
|
|
19
|
-
});
|
|
20
|
-
|
|
21
|
-
export const Default = Template.bind({});
|
|
22
|
-
Default.args = {
|
|
23
|
-
label: 'Email',
|
|
24
|
-
placeholder: 'Enter email address',
|
|
25
|
-
hint:'Optional',
|
|
26
|
-
helpText: 'Any message'
|
|
27
|
-
};
|
|
1
|
+
import CInputEmail from '../components/CInputEmail/CInputEmail.vue';
|
|
2
|
+
import './utils.css'
|
|
3
|
+
|
|
4
|
+
export default {
|
|
5
|
+
title: 'CInputEmail',
|
|
6
|
+
component: CInputEmail,
|
|
7
|
+
argTypes: {
|
|
8
|
+
label: String,
|
|
9
|
+
placeholder: String,
|
|
10
|
+
hint:String,
|
|
11
|
+
helpText: String
|
|
12
|
+
},
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
const Template = (args, { argTypes }) => ({
|
|
16
|
+
props: Object.keys(argTypes),
|
|
17
|
+
components: { CInputEmail },
|
|
18
|
+
template: '<c-input-email v-bind="$props" />',
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
export const Default = Template.bind({});
|
|
22
|
+
Default.args = {
|
|
23
|
+
label: 'Email',
|
|
24
|
+
placeholder: 'Enter email address',
|
|
25
|
+
hint:'Optional',
|
|
26
|
+
helpText: 'Any message'
|
|
27
|
+
};
|
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
import CInsetTabs from "../components/CInsetTabs/CInsetTabs.vue";
|
|
2
|
-
|
|
3
|
-
export default {
|
|
4
|
-
title: "CInsetTabs",
|
|
5
|
-
components: CInsetTabs,
|
|
6
|
-
argTypes: {
|
|
7
|
-
currentTab: String,
|
|
8
|
-
tabOptions: Array,
|
|
9
|
-
},
|
|
10
|
-
};
|
|
11
|
-
const Template = (args, { argTypes }) => ({
|
|
12
|
-
props: Object.keys(argTypes),
|
|
13
|
-
components: { CInsetTabs },
|
|
14
|
-
template: '<c-inset-tabs v-bind="$props" />',
|
|
15
|
-
});
|
|
16
|
-
|
|
17
|
-
export const Default = Template.bind({});
|
|
18
|
-
Default.args = {
|
|
19
|
-
currentTab: "Dates",
|
|
20
|
-
tabOptions: [
|
|
21
|
-
{
|
|
22
|
-
label: "Dates",
|
|
23
|
-
icon: {
|
|
24
|
-
type: "solid",
|
|
25
|
-
name: "calendar-solid",
|
|
26
|
-
viewBox: "0 0 20 20",
|
|
27
|
-
},
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
label: "Days",
|
|
31
|
-
icon: {
|
|
32
|
-
type: "solid",
|
|
33
|
-
name: "calendar-solid",
|
|
34
|
-
viewBox: "0 0 20 20",
|
|
35
|
-
},
|
|
36
|
-
},
|
|
37
|
-
],
|
|
38
|
-
};
|
|
1
|
+
import CInsetTabs from "../components/CInsetTabs/CInsetTabs.vue";
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
title: "CInsetTabs",
|
|
5
|
+
components: CInsetTabs,
|
|
6
|
+
argTypes: {
|
|
7
|
+
currentTab: String,
|
|
8
|
+
tabOptions: Array,
|
|
9
|
+
},
|
|
10
|
+
};
|
|
11
|
+
const Template = (args, { argTypes }) => ({
|
|
12
|
+
props: Object.keys(argTypes),
|
|
13
|
+
components: { CInsetTabs },
|
|
14
|
+
template: '<c-inset-tabs v-bind="$props" />',
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
export const Default = Template.bind({});
|
|
18
|
+
Default.args = {
|
|
19
|
+
currentTab: "Dates",
|
|
20
|
+
tabOptions: [
|
|
21
|
+
{
|
|
22
|
+
label: "Dates",
|
|
23
|
+
icon: {
|
|
24
|
+
type: "solid",
|
|
25
|
+
name: "calendar-solid",
|
|
26
|
+
viewBox: "0 0 20 20",
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
label: "Days",
|
|
31
|
+
icon: {
|
|
32
|
+
type: "solid",
|
|
33
|
+
name: "calendar-solid",
|
|
34
|
+
viewBox: "0 0 20 20",
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
],
|
|
38
|
+
};
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import CModalHeading from "../components/CModalHeading/CModalHeading.vue";
|
|
2
|
-
import "./utils.css";
|
|
3
|
-
|
|
4
|
-
export default {
|
|
5
|
-
title: "CModalHeading",
|
|
6
|
-
component: CModalHeading,
|
|
7
|
-
argTypes: {
|
|
8
|
-
title: String,
|
|
9
|
-
description: String,
|
|
10
|
-
divider: Boolean,
|
|
11
|
-
},
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
const Template = (args, { argTypes }) => ({
|
|
15
|
-
props: Object.keys(argTypes),
|
|
16
|
-
components: { CModalHeading },
|
|
17
|
-
template: '<c-modal-heading v-bind="$props" />',
|
|
18
|
-
});
|
|
19
|
-
|
|
20
|
-
export const Default = Template.bind({});
|
|
21
|
-
Default.args = {
|
|
22
|
-
title: "Includes",
|
|
23
|
-
description: "Add subjects to include them in the package",
|
|
24
|
-
divider: false,
|
|
25
|
-
};
|
|
1
|
+
import CModalHeading from "../components/CModalHeading/CModalHeading.vue";
|
|
2
|
+
import "./utils.css";
|
|
3
|
+
|
|
4
|
+
export default {
|
|
5
|
+
title: "CModalHeading",
|
|
6
|
+
component: CModalHeading,
|
|
7
|
+
argTypes: {
|
|
8
|
+
title: String,
|
|
9
|
+
description: String,
|
|
10
|
+
divider: Boolean,
|
|
11
|
+
},
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
const Template = (args, { argTypes }) => ({
|
|
15
|
+
props: Object.keys(argTypes),
|
|
16
|
+
components: { CModalHeading },
|
|
17
|
+
template: '<c-modal-heading v-bind="$props" />',
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
export const Default = Template.bind({});
|
|
21
|
+
Default.args = {
|
|
22
|
+
title: "Includes",
|
|
23
|
+
description: "Add subjects to include them in the package",
|
|
24
|
+
divider: false,
|
|
25
|
+
};
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import CModuleHelpLinks from "../components/CModuleHelpLinks/CModuleHelpLinks.vue";
|
|
2
|
-
import "./utils.css";
|
|
3
|
-
|
|
4
|
-
export default {
|
|
5
|
-
title: "CModuleHelpLinks",
|
|
6
|
-
component: CModuleHelpLinks,
|
|
7
|
-
argTypes: {
|
|
8
|
-
description: String,
|
|
9
|
-
helpVideo: String,
|
|
10
|
-
helpArticle: String,
|
|
11
|
-
},
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
const Template = (args, { argTypes }) => ({
|
|
15
|
-
props: Object.keys(argTypes),
|
|
16
|
-
components: { CModuleHelpLinks },
|
|
17
|
-
template: '<c-module-help-links v-bind="$props" />',
|
|
18
|
-
});
|
|
19
|
-
|
|
20
|
-
export const Default = Template.bind({});
|
|
21
|
-
Default.args = {
|
|
22
|
-
description: "pp",
|
|
23
|
-
helpArticle: "iop",
|
|
24
|
-
helpVideo: "gueue",
|
|
25
|
-
};
|
|
1
|
+
import CModuleHelpLinks from "../components/CModuleHelpLinks/CModuleHelpLinks.vue";
|
|
2
|
+
import "./utils.css";
|
|
3
|
+
|
|
4
|
+
export default {
|
|
5
|
+
title: "CModuleHelpLinks",
|
|
6
|
+
component: CModuleHelpLinks,
|
|
7
|
+
argTypes: {
|
|
8
|
+
description: String,
|
|
9
|
+
helpVideo: String,
|
|
10
|
+
helpArticle: String,
|
|
11
|
+
},
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
const Template = (args, { argTypes }) => ({
|
|
15
|
+
props: Object.keys(argTypes),
|
|
16
|
+
components: { CModuleHelpLinks },
|
|
17
|
+
template: '<c-module-help-links v-bind="$props" />',
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
export const Default = Template.bind({});
|
|
21
|
+
Default.args = {
|
|
22
|
+
description: "pp",
|
|
23
|
+
helpArticle: "iop",
|
|
24
|
+
helpVideo: "gueue",
|
|
25
|
+
};
|