classcard-ui 0.2.208 → 0.2.212
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 +0 -0
- package/dist/classcard-ui.common.js +108 -141
- package/dist/classcard-ui.common.js.map +1 -1
- package/dist/classcard-ui.css +1 -3
- package/dist/classcard-ui.umd.js +108 -141
- package/dist/classcard-ui.umd.js.map +1 -1
- package/dist/classcard-ui.umd.min.js +2 -2
- package/dist/classcard-ui.umd.min.js.map +1 -1
- package/package.json +14 -18
- package/src/App.vue +0 -0
- package/src/components/CAlerts/CAlerts.vue +0 -0
- package/src/components/CAlerts/index.js +0 -0
- package/src/components/CAnchorTabs/CAnchorTabs.vue +0 -0
- package/src/components/CAnchorTabs/index.js +0 -0
- package/src/components/CAnchorTag/CAnchorTag.vue +0 -0
- package/src/components/CAnchorTag/index.js +0 -0
- package/src/components/CAvatar/CAvatar.vue +0 -0
- package/src/components/CAvatar/index.js +0 -0
- package/src/components/CAvatarGroup/CAvatarGroup.vue +0 -0
- package/src/components/CAvatarGroup/index.js +0 -0
- package/src/components/CBasicTable/CBasicTable.vue +0 -0
- package/src/components/CBasicTable/index.js +0 -0
- package/src/components/CBreadcrumbs/CBreadcrumbs.vue +0 -0
- package/src/components/CBreadcrumbs/index.js +0 -0
- package/src/components/CButton/CButton.vue +0 -0
- package/src/components/CButton/index.js +0 -0
- package/src/components/CButtonGroup/CButtonGroup.vue +0 -0
- package/src/components/CButtonGroup/index.js +0 -0
- package/src/components/CButtonIcon/CButtonIcon.vue +0 -0
- package/src/components/CButtonIcon/index.js +0 -0
- package/src/components/CButtonLink/CButtonLink.vue +0 -0
- package/src/components/CButtonLink/index.js +0 -0
- package/src/components/CButtonSelect/CButtonSelect.vue +0 -0
- package/src/components/CButtonSelect/index.js +0 -0
- package/src/components/CButtonWithDropdown/CButtonWithDropdown.vue +0 -0
- package/src/components/CButtonWithDropdown/index.js +0 -0
- package/src/components/CCard/CCard.vue +0 -0
- package/src/components/CCard/index.js +0 -0
- package/src/components/CCheckbox/CCheckbox.vue +0 -0
- package/src/components/CCheckbox/index.js +0 -0
- package/src/components/CCollapsibleSection/CCollapsibleSection.vue +0 -0
- package/src/components/CCollapsibleSection/index.js +0 -0
- package/src/components/CColorDots/CColorDots.vue +0 -0
- package/src/components/CColorDots/index.js +0 -0
- package/src/components/CConfirmActionModal/CConfirmActionModal.vue +0 -0
- package/src/components/CConfirmActionModal/index.js +0 -0
- package/src/components/CDatepicker/CDatepicker.vue +0 -1
- package/src/components/CDatepicker/index.js +0 -0
- package/src/components/CDualSelect/CDualSelect.vue +0 -0
- package/src/components/CDualSelect/index.js +0 -0
- package/src/components/CEditor/CEditor.vue +0 -0
- package/src/components/CEditor/index.js +0 -0
- package/src/components/CFormSectionHeading/CFormSectionHeading.vue +0 -0
- package/src/components/CFormSectionHeading/index.js +0 -0
- package/src/components/CGroupedSelect/CGroupedSelect.vue +0 -0
- package/src/components/CGroupedSelect/index.js +0 -0
- package/src/components/CIcon/CIcon.vue +0 -0
- package/src/components/CIcon/index.js +0 -0
- package/src/components/CIconDropdown/CIconDropdown.vue +0 -0
- package/src/components/CIconDropdown/index.js +0 -0
- package/src/components/CInput/CInput.vue +0 -0
- package/src/components/CInput/index.js +0 -0
- package/src/components/CInputAddon/CInputAddon.vue +1 -1
- package/src/components/CInputAddon/index.js +0 -0
- package/src/components/CInputEmail/CInputEmail.vue +0 -0
- package/src/components/CInputEmail/index.js +0 -0
- package/src/components/CModalHeading/CModalHeading.vue +0 -0
- package/src/components/CModalHeading/index.js +0 -0
- package/src/components/CModuleHelpLinks/CModuleHelpLinks.vue +0 -0
- package/src/components/CModuleHelpLinks/index.js +0 -0
- package/src/components/CMultiselect/CMultiselect.vue +2 -2
- package/src/components/CMultiselect/index.js +0 -0
- package/src/components/CMultiselectr/CMultiselectr.vue +3 -2
- package/src/components/CMultiselectr/index.js +0 -0
- package/src/components/CPageHeading/CPageHeading.vue +0 -0
- package/src/components/CPageHeading/index.js +0 -0
- package/src/components/CPagination/CPagination.vue +68 -73
- package/src/components/CPagination/index.js +0 -0
- package/src/components/CPhoneNumber/CPhoneNumber.vue +0 -0
- package/src/components/CPhoneNumber/index.js +0 -0
- package/src/components/CRadio/CRadio.vue +1 -4
- package/src/components/CRadio/index.js +0 -0
- package/src/components/CRangeSlider/CRangeSlider.vue +0 -0
- package/src/components/CRangeSlider/index.js +0 -0
- package/src/components/CReorderableStackedList/CReorderableStackedList.vue +0 -0
- package/src/components/CReorderableStackedList/index.js +0 -0
- package/src/components/CSelect/CSelect.vue +0 -0
- package/src/components/CSelect/index.js +0 -0
- package/src/components/CSmallTimeline/CSmallTimeline.vue +0 -0
- package/src/components/CSmallTimeline/index.js +0 -0
- package/src/components/CStackedList/CStackedList.vue +0 -0
- package/src/components/CStackedList/index.js +0 -0
- package/src/components/CStats/CStats.vue +0 -0
- package/src/components/CStats/index.js +0 -0
- package/src/components/CSwitch/CSwitch.vue +2 -6
- package/src/components/CSwitch/index.js +0 -0
- package/src/components/CTable/CTable.vue +58 -71
- package/src/components/CTable/index.js +0 -0
- package/src/components/CTabs/CTabs.vue +0 -0
- package/src/components/CTabs/index.js +0 -0
- package/src/components/CTag/CTag.vue +0 -0
- package/src/components/CTag/index.js +0 -0
- package/src/components/CTextarea/CTextarea.vue +0 -0
- package/src/components/CTextarea/index.js +0 -0
- package/src/components/CTimeline/CTimeline.vue +0 -0
- package/src/components/CTimeline/index.js +0 -0
- package/src/components/CUpload/CUpload.vue +0 -0
- package/src/components/CUpload/index.js +0 -0
- package/src/components/index.js +0 -0
- package/src/icons.js +6 -5
- package/src/main.js +0 -1
- package/src/stories/CAlerts.stories.js +0 -0
- package/src/stories/CAnchorTabs.stories.js +0 -0
- package/src/stories/CAnchorTag.stories.js +0 -0
- package/src/stories/CAvatar.stories.js +0 -0
- package/src/stories/CAvatarGroup.stories.js +0 -0
- package/src/stories/CBasicTable.stories.js +0 -0
- package/src/stories/CBreadcrumbs.stories.js +0 -0
- package/src/stories/CButton.stories.js +0 -0
- package/src/stories/CButtonGroup.stories.js +0 -0
- package/src/stories/CButtonIcon.stories.js +0 -0
- package/src/stories/CButtonLink.stories.js +0 -0
- package/src/stories/CButtonSelect.stories.js +0 -0
- package/src/stories/CButtonWithDropdown.stories.js +0 -0
- package/src/stories/CCard.stories.js +0 -0
- package/src/stories/CCheckbox.stories.js +0 -0
- package/src/stories/CCollapsibleSection.stories.js +0 -0
- package/src/stories/CColorDots.stories.js +0 -0
- package/src/stories/CConfirmActionModal.stories.js +0 -0
- package/src/stories/CDatepicker.stories.js +0 -0
- package/src/stories/CDualSelect.stories.js +0 -0
- package/src/stories/CEditor.stories.js +0 -0
- package/src/stories/CFormSectionHeading.stories.js +0 -0
- package/src/stories/CGroupedSelect.stories.js +0 -0
- package/src/stories/CIcon.stories.js +0 -0
- package/src/stories/CIconDropdown.stories.js +0 -0
- package/src/stories/CInput.stories.js +0 -0
- package/src/stories/CInputAddon.stories.js +0 -0
- package/src/stories/CInputEmail.stories.js +0 -0
- package/src/stories/CModalHeading.stories.js +0 -0
- package/src/stories/CModuleHelpLinks.stories.js +0 -0
- package/src/stories/CMultiselect.stories.js +0 -0
- package/src/stories/CMultiselectr.stories.js +0 -0
- package/src/stories/CPageHeading.stories.js +0 -0
- package/src/stories/CPagination.stories.js +0 -0
- package/src/stories/CPhoneNumber.stories.js +0 -0
- package/src/stories/CRadio.stories.js +1 -1
- package/src/stories/CRangeSlider.stories.js +0 -0
- package/src/stories/CReorderableStackedList.stories.js +0 -0
- package/src/stories/CSelect.stories.js +0 -0
- package/src/stories/CSmallTimeline.stories.js +0 -0
- package/src/stories/CStackedList.stories.js +0 -0
- package/src/stories/CStats.stories.js +0 -0
- package/src/stories/CSwitch.stories.js +0 -0
- package/src/stories/CTable.stories.js +7 -99
- package/src/stories/CTabs.stories.js +0 -0
- package/src/stories/CTag.stories.js +0 -0
- package/src/stories/CTextarea.stories.js +0 -0
- package/src/stories/CTimeline.stories.js +0 -0
- package/src/stories/CUpload.stories.js +0 -0
- package/src/stories/Introduction.stories.mdx +0 -0
- package/src/stories/Page.vue +0 -0
- 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 +0 -0
- package/src/stories/page.css +0 -0
- package/src/stories/utils.css +0 -0
- package/src/assets/tailwind.css +0 -5
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "classcard-ui",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.212",
|
|
4
|
+
"main": "dist/classcard-ui.common.js",
|
|
4
5
|
"scripts": {
|
|
5
6
|
"serve": "vue-cli-service serve",
|
|
6
7
|
"build": "vue-cli-service build",
|
|
7
|
-
"lint": "vue-cli-service lint",
|
|
8
8
|
"build-bundle": "vue-cli-service build --target lib --name classcard-ui src/main.js",
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
"
|
|
9
|
+
"lint": "vue-cli-service lint",
|
|
10
|
+
"storybook": "start-storybook -p 6006",
|
|
11
|
+
"publish-to-npm": "npm version patch && git push && npm run build-bundle && npm publish",
|
|
12
|
+
"build-storybook": "build-storybook"
|
|
12
13
|
},
|
|
13
|
-
"main": "dist/classcard-ui.common.js",
|
|
14
14
|
"files": [
|
|
15
15
|
"dist/*",
|
|
16
16
|
"src/*"
|
|
@@ -18,18 +18,13 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@shopify/draggable": "^1.0.0-beta.8",
|
|
20
20
|
"@storybook/addon-postcss": "^2.0.0",
|
|
21
|
-
"@tailwindcss/
|
|
22
|
-
"autoprefixer": "^9",
|
|
21
|
+
"@tailwindcss/forms": "^0.2.1",
|
|
23
22
|
"core-js": "^3.18.0",
|
|
24
23
|
"dayjs": "^1.10.7",
|
|
25
24
|
"filestack-js": "^3.25.0",
|
|
26
25
|
"gridjs-selection": "^3.4.0",
|
|
27
26
|
"gridjs-vue": "^3.4.0",
|
|
28
|
-
"i": "^0.3.7",
|
|
29
27
|
"lodash-es": "^4.17.21",
|
|
30
|
-
"npm": "^8.3.0",
|
|
31
|
-
"postcss": "^7",
|
|
32
|
-
"tailwindcss": "npm:@tailwindcss/postcss7-compat@^2.2.17",
|
|
33
28
|
"v-calendar": "^2.3.2",
|
|
34
29
|
"vue": "^2.6.14",
|
|
35
30
|
"vue-good-table": "^2.21.8",
|
|
@@ -42,21 +37,22 @@
|
|
|
42
37
|
},
|
|
43
38
|
"devDependencies": {
|
|
44
39
|
"@babel/core": "^7.15.5",
|
|
45
|
-
"@storybook/addon-actions": "^6.4.
|
|
46
|
-
"@storybook/addon-essentials": "^6.4.
|
|
47
|
-
"@storybook/addon-links": "^6.4.
|
|
48
|
-
"@storybook/vue": "^6.4.
|
|
49
|
-
"@tailwindcss/forms": "^0.4.0",
|
|
40
|
+
"@storybook/addon-actions": "^6.4.4",
|
|
41
|
+
"@storybook/addon-essentials": "^6.4.4",
|
|
42
|
+
"@storybook/addon-links": "^6.4.4",
|
|
43
|
+
"@storybook/vue": "^6.4.4",
|
|
50
44
|
"@tailwindcss/postcss7-compat": "^2.2.14",
|
|
51
45
|
"@types/lodash-es": "^4.17.5",
|
|
52
46
|
"@vue/cli-plugin-babel": "^4.5.13",
|
|
53
47
|
"@vue/cli-plugin-eslint": "^4.5.13",
|
|
54
48
|
"@vue/cli-service": "^4.5.13",
|
|
49
|
+
"autoprefixer": "^9.8.6",
|
|
55
50
|
"babel-eslint": "^10.1.0",
|
|
56
51
|
"babel-loader": "^8.2.2",
|
|
57
52
|
"eslint": "^6.7.2",
|
|
58
53
|
"eslint-plugin-vue": "^6.2.2",
|
|
59
|
-
"
|
|
54
|
+
"postcss": "^7.0.36",
|
|
55
|
+
"tailwindcss": "npm:@tailwindcss/postcss7-compat@^2.2.14",
|
|
60
56
|
"vue-template-compiler": "^2.6.14"
|
|
61
57
|
},
|
|
62
58
|
"eslintConfig": {
|
package/src/App.vue
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -74,7 +74,7 @@ export default {
|
|
|
74
74
|
required: true,
|
|
75
75
|
},
|
|
76
76
|
label: String,
|
|
77
|
-
placeholder:
|
|
77
|
+
placeholder:{
|
|
78
78
|
type: String,
|
|
79
79
|
default: "Start typing... (min 2 characters) to search options",
|
|
80
80
|
},
|
|
@@ -173,7 +173,7 @@ export default {
|
|
|
173
173
|
.vs__dropdown-toggle.vs__dropdown-option--highlight {
|
|
174
174
|
@apply bg-indigo-700 text-white;
|
|
175
175
|
}
|
|
176
|
-
.vs__dropdown-option--highlight {
|
|
176
|
+
.vs__dropdown-option--highlight {
|
|
177
177
|
@apply bg-indigo-700 text-white;
|
|
178
178
|
}
|
|
179
179
|
</style>
|
|
File without changes
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div>
|
|
3
|
-
|
|
3
|
+
<!-- <label class="text-sm text-gray-900">{{label}}</label>
|
|
4
4
|
<multiselect class="mt-1" v-model="value" :options="options" :multiple="true">
|
|
5
5
|
</multiselect> -->
|
|
6
6
|
</div>
|
|
7
7
|
</template>
|
|
8
8
|
<script>
|
|
9
|
+
|
|
9
10
|
export default {
|
|
10
11
|
// name: "CMultiselect",
|
|
11
12
|
// components: { Multiselect },
|
|
@@ -37,7 +38,7 @@ export default {
|
|
|
37
38
|
.multiselect__tag-icon:hover,
|
|
38
39
|
.multiselect__option--highlight,
|
|
39
40
|
.multiselect__option--highlight::after {
|
|
40
|
-
background: #
|
|
41
|
+
background: #0369A1;
|
|
41
42
|
color: #fff;
|
|
42
43
|
}
|
|
43
44
|
</style>
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,85 +1,80 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
<span class="font-medium">10</span>
|
|
18
|
-
of
|
|
19
|
-
<span class="font-medium">97</span>
|
|
20
|
-
results
|
|
21
|
-
</p>
|
|
22
|
-
</div>
|
|
23
|
-
<div>
|
|
24
|
-
<nav class="relative z-0 inline-flex rounded-md shadow-sm -space-x-px" aria-label="Pagination">
|
|
25
|
-
<div class="hidden md:-mt-px md:flex">
|
|
26
|
-
<div href="#"
|
|
27
|
-
@click="currentPageNumber == '1' ? '' : goToPreviousPage()"
|
|
28
|
-
class="relative inline-flex items-center px-2 py-2 rounded-l-md border border-r-0 border-gray-300 bg-white text-sm font-medium text-gray-500 hover:bg-gray-50"
|
|
29
|
-
:class="
|
|
2
|
+
<nav class="px-4 flex items-center justify-between sm:px-0">
|
|
3
|
+
<div class="-mt-px w-0 flex-1 flex">
|
|
4
|
+
<a
|
|
5
|
+
@click="currentPageNumber == '1' ? '' : goToPreviousPage()"
|
|
6
|
+
class="pt-4 pr-1 inline-flex items-center text-sm font-medium"
|
|
7
|
+
:class="
|
|
8
|
+
currentPageNumber == '1'
|
|
9
|
+
? 'text-gray-400 pointer-events-none'
|
|
10
|
+
: 'text-gray-500 hover:text-gray-700 group cursor-pointer'
|
|
11
|
+
"
|
|
12
|
+
>
|
|
13
|
+
<c-icon
|
|
14
|
+
name="arrow-narrow-left-solid"
|
|
15
|
+
class="h-5 w-5 mr-3"
|
|
16
|
+
:class="
|
|
30
17
|
currentPageNumber == '1'
|
|
31
18
|
? 'text-gray-400 pointer-events-none'
|
|
32
|
-
: 'text-gray-500 hover:text-gray-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
19
|
+
: 'text-gray-500 group-hover:text-gray-800'
|
|
20
|
+
"
|
|
21
|
+
type="solid"
|
|
22
|
+
></c-icon>
|
|
23
|
+
Previous
|
|
24
|
+
</a>
|
|
25
|
+
</div>
|
|
26
|
+
<div class="hidden md:-mt-px md:flex">
|
|
27
|
+
<div
|
|
28
|
+
v-for="page in pageRange"
|
|
29
|
+
:key="page"
|
|
30
|
+
class="text-gray-500 hover:text-gray-700 px-4 inline-flex items-center text-sm font-medium group"
|
|
31
|
+
:class="[
|
|
32
|
+
page == currentPageNumber
|
|
33
|
+
? 'border-indigo-500 border-t-4 cursor-pointer'
|
|
34
|
+
: 'hover:border-t-4',
|
|
35
|
+
page === '...' ? 'cursor-text hover:border-t-4 hover:border-transparent' : '',
|
|
36
|
+
page !== currentPageNumber && page !== '...'
|
|
37
|
+
? 'hover:border-gray-300 hover:border-t-4 cursor-pointer'
|
|
38
|
+
: '',
|
|
39
|
+
]"
|
|
40
|
+
@click="changePage(page)"
|
|
41
|
+
>
|
|
42
|
+
<div class="pt-4 group-hover:-mt-1" v-if="page === '...'">...</div>
|
|
43
|
+
<div v-else-if="page == currentPageNumber" class="pt-3.5 text-indigo-600">
|
|
44
|
+
{{ page }}
|
|
45
|
+
</div>
|
|
46
|
+
<div class="pt-4 group-hover:-mt-1" v-else>
|
|
47
|
+
{{ page }}
|
|
48
|
+
</div>
|
|
49
|
+
</div>
|
|
50
|
+
</div>
|
|
51
|
+
<div class="-mt-px w-0 flex-1 flex justify-end">
|
|
52
|
+
<a
|
|
53
|
+
@click="currentPageNumber == lastPageNumber ? '' : goToNextPage()"
|
|
54
|
+
class="pt-4 pl-1 inline-flex items-center text-sm"
|
|
55
|
+
:class="
|
|
56
|
+
currentPageNumber == lastPageNumber
|
|
57
|
+
? 'text-gray-400 pointer-events-none'
|
|
58
|
+
: 'text-gray-500 hover:text-gray-700 group cursor-pointer'
|
|
59
|
+
"
|
|
60
|
+
>
|
|
61
|
+
Next
|
|
62
|
+
<c-icon
|
|
63
|
+
class="ml-3 h-5 w-5"
|
|
63
64
|
:class="
|
|
64
65
|
currentPageNumber == lastPageNumber
|
|
65
66
|
? 'text-gray-400 pointer-events-none'
|
|
66
|
-
: 'text-gray-500 hover:text-gray-
|
|
67
|
+
: 'text-gray-500 group-hover:text-gray-800'
|
|
67
68
|
"
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
<path fill-rule="evenodd" d="M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z" clip-rule="evenodd" />
|
|
73
|
-
</svg>
|
|
74
|
-
</div>
|
|
75
|
-
</div>
|
|
76
|
-
</nav>
|
|
69
|
+
name="arrow-narrow-right-solid"
|
|
70
|
+
type="solid"
|
|
71
|
+
></c-icon>
|
|
72
|
+
</a>
|
|
77
73
|
</div>
|
|
78
|
-
</
|
|
79
|
-
</div>
|
|
74
|
+
</nav>
|
|
80
75
|
</template>
|
|
81
76
|
<script>
|
|
82
|
-
|
|
77
|
+
import CIcon from "../CIcon/CIcon.vue";
|
|
83
78
|
export default {
|
|
84
79
|
name: "CPagination",
|
|
85
80
|
props: {
|
|
@@ -97,7 +92,7 @@ export default {
|
|
|
97
92
|
},
|
|
98
93
|
},
|
|
99
94
|
components: {
|
|
100
|
-
|
|
95
|
+
CIcon,
|
|
101
96
|
},
|
|
102
97
|
data() {
|
|
103
98
|
return {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -17,10 +17,7 @@
|
|
|
17
17
|
:disabled="isDisabled"
|
|
18
18
|
/>
|
|
19
19
|
</div>
|
|
20
|
-
<label
|
|
21
|
-
class="ml-3 flex flex-col cursor-pointer"
|
|
22
|
-
@click="onChange(item.value)"
|
|
23
|
-
>
|
|
20
|
+
<label class="ml-3 flex flex-col cursor-pointer" @click="onChange(item.value)">
|
|
24
21
|
<span class="block text-sm font-medium">
|
|
25
22
|
{{ item.label }}
|
|
26
23
|
</span>
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -38,7 +38,6 @@
|
|
|
38
38
|
<span v-if="description" class="text-sm text-gray-500">{{ description }}</span>
|
|
39
39
|
</span>
|
|
40
40
|
</div>
|
|
41
|
-
|
|
42
41
|
<!-- large toggle -->
|
|
43
42
|
<div v-else :class="label == '' ? 'items-center' : 'items-start'" class="flex justify-between cursor-pointer">
|
|
44
43
|
<span class="flex-grow flex flex-col" id="toggleLabel" v-if="direction == 'left'" @click="switchValue">
|
|
@@ -60,7 +59,7 @@
|
|
|
60
59
|
class="inline-block h-5 w-5 rounded-full bg-white transform ring-0 transition ease-in-out duration-200"
|
|
61
60
|
></span>
|
|
62
61
|
</button>
|
|
63
|
-
<span class="flex flex-col" id="toggleLabel" v-if="direction == 'right'"
|
|
62
|
+
<span class="flex flex-col" id="toggleLabel" v-if="direction == 'right'" disabled:opacity-50>
|
|
64
63
|
<span v-if="label" :class="classes" class="text-gray-900">{{ label }}</span>
|
|
65
64
|
<span v-if="description" class="text-sm text-gray-500">{{ description }}</span>
|
|
66
65
|
</span>
|
|
@@ -92,9 +91,6 @@ export default {
|
|
|
92
91
|
direction: {
|
|
93
92
|
type: String,
|
|
94
93
|
},
|
|
95
|
-
disabled: {
|
|
96
|
-
type: Boolean,
|
|
97
|
-
}
|
|
98
94
|
},
|
|
99
95
|
data() {
|
|
100
96
|
return {
|
|
@@ -103,7 +99,7 @@ export default {
|
|
|
103
99
|
},
|
|
104
100
|
methods: {
|
|
105
101
|
switchValue() {
|
|
106
|
-
this.isToggle = this.isToggle
|
|
102
|
+
this.isToggle = this.isToggle === 1 ? 0 : 1;
|
|
107
103
|
this.$emit("returnToggleValue", this.isToggle);
|
|
108
104
|
},
|
|
109
105
|
},
|
|
File without changes
|