classcard-ui 0.2.1473 → 0.2.1475
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 +413 -135
- package/dist/classcard-ui.common.js.map +1 -1
- package/dist/classcard-ui.css +2 -2
- package/dist/classcard-ui.umd.js +413 -135
- package/dist/classcard-ui.umd.js.map +1 -1
- package/dist/classcard-ui.umd.min.js +3 -3
- package/dist/classcard-ui.umd.min.js.map +1 -1
- package/package.json +83 -83
- package/src/App.vue +16 -16
- package/src/colorConfig.js +52 -52
- package/src/components/CAlertModal/CAlertModal.vue +179 -179
- package/src/components/CAlertModal/index.js +3 -3
- package/src/components/CAlerts/CAlerts.vue +114 -114
- package/src/components/CAlerts/index.js +2 -2
- package/src/components/CAnchorTabs/CAnchorTabs.vue +100 -100
- package/src/components/CAnchorTabs/index.js +2 -2
- package/src/components/CAnchorTag/CAnchorTag.vue +84 -84
- package/src/components/CAnchorTag/index.js +2 -2
- package/src/components/CAvatar/CAvatar.vue +230 -230
- package/src/components/CAvatar/index.js +2 -2
- package/src/components/CAvatarGroup/CAvatarGroup.vue +213 -213
- 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 +239 -239
- package/src/components/CButton/index.js +2 -2
- package/src/components/CButtonGroup/CButtonGroup.vue +155 -155
- package/src/components/CButtonGroup/index.js +2 -2
- package/src/components/CButtonIcon/CButtonIcon.vue +166 -166
- package/src/components/CButtonIcon/index.js +2 -2
- package/src/components/CButtonLink/CButtonLink.vue +43 -43
- package/src/components/CButtonLink/index.js +2 -2
- package/src/components/CButtonSelect/CButtonSelect.vue +186 -186
- package/src/components/CButtonSelect/index.js +2 -2
- package/src/components/CButtonSelectBorder/CButtonSelectBorder.vue +265 -265
- package/src/components/CButtonSelectBorder/index.js +3 -3
- package/src/components/CButtonWithDropdown/CButtonWithDropdown.vue +152 -152
- package/src/components/CButtonWithDropdown/index.js +2 -2
- package/src/components/CCalendar/CCalendar.vue +443 -443
- package/src/components/CCalendar/index.js +3 -3
- package/src/components/CCard/CCard.vue +53 -53
- package/src/components/CCard/index.js +2 -2
- package/src/components/CCheckbox/CCheckbox.vue +200 -200
- package/src/components/CCheckbox/index.js +2 -2
- package/src/components/CCircularButton/CCircularButton.vue +57 -57
- package/src/components/CCircularButton/index.js +2 -2
- package/src/components/CCollapsibleSection/CCollapsibleSection.vue +121 -121
- package/src/components/CCollapsibleSection/index.js +2 -2
- package/src/components/CColorDots/CColorDots.vue +52 -52
- package/src/components/CColorDots/index.js +3 -3
- package/src/components/CConfirmActionModal/CConfirmActionModal.vue +221 -221
- package/src/components/CConfirmActionModal/index.js +3 -3
- package/src/components/CDatepicker/CDatepicker.vue +235 -235
- 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 +114 -114
- package/src/components/CEditor/index.js +2 -2
- package/src/components/CFormSectionHeading/CFormSectionHeading.vue +76 -76
- package/src/components/CFormSectionHeading/index.js +2 -2
- package/src/components/CGroupedFilterDropdown/CGroupedFilterDropdown.vue +263 -263
- package/src/components/CGroupedFilterDropdown/index.js +2 -2
- package/src/components/CGroupedSelect/CGroupedSelect.vue +366 -366
- package/src/components/CGroupedSelect/index.js +3 -3
- package/src/components/CIcon/CIcon.vue +112 -112
- package/src/components/CIcon/index.js +2 -2
- package/src/components/CIconDropdown/CIconDropdown.vue +206 -206
- package/src/components/CIconDropdown/index.js +2 -2
- package/src/components/CIconSelect/CIconSelect.vue +182 -182
- package/src/components/CIconSelect/index.js +3 -3
- package/src/components/CInput/CInput.vue +173 -173
- package/src/components/CInput/index.js +2 -2
- package/src/components/CInputAddon/CInputAddon.vue +297 -297
- package/src/components/CInputAddon/index.js +2 -2
- package/src/components/CInputEmail/CInputEmail.vue +107 -107
- package/src/components/CInputEmail/index.js +2 -2
- package/src/components/CInsetTabs/CInsetTabs.vue +134 -134
- 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 +88 -88
- package/src/components/CModuleHelpLinks/index.js +3 -3
- package/src/components/CMultiselect/CMultiselect.vue +1170 -937
- 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 +83 -83
- package/src/components/CPageHeading/index.js +2 -2
- package/src/components/CPagination/CPagination.vue +239 -239
- package/src/components/CPagination/index.js +2 -2
- package/src/components/CPhoneNumber/CPhoneNumber.vue +213 -213
- package/src/components/CPhoneNumber/index.js +2 -2
- package/src/components/CProgress/CProgress.vue +91 -91
- package/src/components/CProgress/index.js +2 -2
- package/src/components/CRadio/CRadio.vue +197 -197
- package/src/components/CRadio/index.js +2 -2
- package/src/components/CRadioGroup/CRadioGroup.vue +96 -96
- package/src/components/CRadioGroup/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 +1210 -1165
- 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 +162 -162
- package/src/components/CStackedList/index.js +2 -2
- package/src/components/CStats/CStats.vue +157 -157
- package/src/components/CStats/index.js +2 -2
- package/src/components/CSwitch/CSwitch.vue +200 -200
- package/src/components/CSwitch/index.js +2 -2
- package/src/components/CTabLazy/CTabLazy.vue +83 -83
- package/src/components/CTabLazy/index.js +2 -2
- package/src/components/CTable/CTable.vue +1114 -1114
- package/src/components/CTable/index.js +2 -2
- package/src/components/CTabs/CTabs.vue +250 -250
- package/src/components/CTabs/index.js +2 -2
- package/src/components/CTag/CTag.vue +109 -109
- package/src/components/CTag/index.js +2 -2
- package/src/components/CTextarea/CTextarea.vue +118 -118
- 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/CToolTip/CToolTip.vue +108 -108
- package/src/components/CToolTip/index.js +3 -3
- package/src/components/CUpload/CUpload.vue +331 -331
- package/src/components/CUpload/index.js +2 -2
- package/src/components/NumberAnimator.vue +112 -112
- package/src/components/index.js +57 -57
- package/src/helper.js +8 -8
- package/src/icons.js +830 -830
- package/src/main.js +22 -22
- package/src/stories/CAlertModal.stories.js +30 -30
- package/src/stories/CAlerts.stories.js +39 -39
- package/src/stories/CAnchorTabs.stories.js +29 -29
- package/src/stories/CAnchorTag.stories.js +38 -38
- package/src/stories/CAvatar.stories.js +38 -38
- package/src/stories/CAvatarGroup.stories.js +136 -136
- package/src/stories/CBasicTable.stories.js +316 -316
- package/src/stories/CBreadcrumbs.stories.js +24 -24
- package/src/stories/CButton.stories.js +49 -49
- package/src/stories/CButtonGroup.stories.js +43 -43
- package/src/stories/CButtonIcon.stories.js +27 -27
- package/src/stories/CButtonLink.stories.js +24 -24
- package/src/stories/CButtonSelect.stories.js +44 -44
- package/src/stories/CButtonSelectBorder.stories.js +56 -56
- 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 +38 -38
- package/src/stories/CCircularButton.stories.js +29 -29
- package/src/stories/CCollapsibleSection.stories.js +29 -29
- package/src/stories/CColorDots.stories.js +37 -37
- package/src/stories/CConfirmActionModal.stories.js +60 -60
- package/src/stories/CDatepicker.stories.js +31 -31
- package/src/stories/CDualSelect.stories.js +29 -29
- package/src/stories/CEditor.stories.js +30 -30
- package/src/stories/CFormSectionHeading.stories.js +37 -37
- package/src/stories/CGroupedFilterDropdown.stories.js +176 -176
- package/src/stories/CGroupedSelect.stories.js +103 -103
- package/src/stories/CIcon.stories.js +31 -31
- package/src/stories/CIconDropdown.stories.js +52 -52
- package/src/stories/CIconSelect.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 +48 -48
- package/src/stories/CModalHeading.stories.js +25 -25
- package/src/stories/CModuleHelpLinks.stories.js +25 -25
- package/src/stories/CMultiselect.stories.js +136 -136
- 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 +37 -37
- package/src/stories/CProgress.stories.js +23 -23
- package/src/stories/CRadio.stories.js +44 -44
- package/src/stories/CRadioGroup.stories.js +51 -51
- package/src/stories/CRangeSlider.stories.js +23 -23
- package/src/stories/CReorderableStackedList.stories.js +23 -23
- package/src/stories/CSelect.stories.js +157 -157
- package/src/stories/CSmallTimeline.stories.js +26 -26
- package/src/stories/CStackedList.stories.js +37 -37
- package/src/stories/CStats.stories.js +53 -53
- package/src/stories/CSwitch.stories.js +28 -28
- package/src/stories/CTabLazy.stories.js +42 -42
- package/src/stories/CTable.stories.js +203 -203
- package/src/stories/CTabs.stories.js +36 -36
- package/src/stories/CTag.stories.js +37 -37
- package/src/stories/CTextarea.stories.js +32 -32
- package/src/stories/CTimeline.stories.js +26 -26
- package/src/stories/CToolTip.stories.js +27 -27
- 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 +32 -32
package/package.json
CHANGED
|
@@ -1,83 +1,83 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "classcard-ui",
|
|
3
|
-
"version": "0.2.
|
|
4
|
-
"main": "dist/classcard-ui.umd.min.js",
|
|
5
|
-
"scripts": {
|
|
6
|
-
"serve": "vue-cli-service serve",
|
|
7
|
-
"build": "vue-cli-service build",
|
|
8
|
-
"build-bundle": "vue-cli-service build --target lib --name classcard-ui src/main.js",
|
|
9
|
-
"lint": "vue-cli-service lint",
|
|
10
|
-
"storybook": "start-storybook -p 6006",
|
|
11
|
-
"build-storybook": "build-storybook",
|
|
12
|
-
"version-patch": "git checkout main && git pull && git checkout deploy && git pull && git merge main && npm version patch && git push",
|
|
13
|
-
"publish-to-npm": "git checkout main && git pull && npm run build-bundle && npm publish"
|
|
14
|
-
},
|
|
15
|
-
"files": [
|
|
16
|
-
"dist/*",
|
|
17
|
-
"src/*"
|
|
18
|
-
],
|
|
19
|
-
"dependencies": {
|
|
20
|
-
"@shopify/draggable": "^1.0.0-beta.8",
|
|
21
|
-
"@storybook/addon-postcss": "^2.0.0",
|
|
22
|
-
"@tailwindcss/forms": "^0.2.1",
|
|
23
|
-
"core-js": "^3.18.0",
|
|
24
|
-
"dayjs": "^1.10.7",
|
|
25
|
-
"filestack-js": "^3.30.0",
|
|
26
|
-
"focus-trap-vue": "^1.1.1",
|
|
27
|
-
"gridjs-selection": "^3.4.0",
|
|
28
|
-
"gridjs-vue": "^3.4.0",
|
|
29
|
-
"lodash-es": "^4.17.23",
|
|
30
|
-
"skeleton-loader-vue": "^1.0.10",
|
|
31
|
-
"v-calendar": "^2.3.2",
|
|
32
|
-
"v-scroll-lock": "^1.3.1",
|
|
33
|
-
"vue": "^2.6.14",
|
|
34
|
-
"vue-good-table": "^2.21.8",
|
|
35
|
-
"vue-multiselect": "^2.1.6",
|
|
36
|
-
"vue-quill-editor": "^3.0.6",
|
|
37
|
-
"vue-select": "^3.13.0",
|
|
38
|
-
"vue-table-draggable": "^1.0.1",
|
|
39
|
-
"vue-tailwind-picker": "^2.0.0",
|
|
40
|
-
"vue-tel-input": "^4.4.2"
|
|
41
|
-
},
|
|
42
|
-
"devDependencies": {
|
|
43
|
-
"@babel/core": "^7.15.5",
|
|
44
|
-
"@storybook/addon-actions": "^6.5.10",
|
|
45
|
-
"@storybook/addon-essentials": "^6.5.10",
|
|
46
|
-
"@storybook/addon-links": "^6.5.10",
|
|
47
|
-
"@storybook/vue": "^6.5.10",
|
|
48
|
-
"@tailwindcss/postcss7-compat": "^2.2.14",
|
|
49
|
-
"@types/lodash-es": "^4.17.5",
|
|
50
|
-
"@vue/cli-plugin-babel": "^4.5.13",
|
|
51
|
-
"@vue/cli-plugin-eslint": "^4.5.13",
|
|
52
|
-
"@vue/cli-service": "^4.5.13",
|
|
53
|
-
"autoprefixer": "^9.8.6",
|
|
54
|
-
"babel-eslint": "^10.1.0",
|
|
55
|
-
"babel-loader": "^8.2.2",
|
|
56
|
-
"eslint": "^6.7.2",
|
|
57
|
-
"eslint-plugin-vue": "^6.2.2",
|
|
58
|
-
"postcss": "^8.4.31",
|
|
59
|
-
"prettier": "^2.5.1",
|
|
60
|
-
"prettier-plugin-tailwindcss": "^0.1.6",
|
|
61
|
-
"tailwindcss": "npm:@tailwindcss/postcss7-compat@^2.2.14",
|
|
62
|
-
"vue-template-compiler": "^2.6.14"
|
|
63
|
-
},
|
|
64
|
-
"eslintConfig": {
|
|
65
|
-
"root": true,
|
|
66
|
-
"env": {
|
|
67
|
-
"node": true
|
|
68
|
-
},
|
|
69
|
-
"extends": [
|
|
70
|
-
"plugin:vue/essential",
|
|
71
|
-
"eslint:recommended"
|
|
72
|
-
],
|
|
73
|
-
"parserOptions": {
|
|
74
|
-
"parser": "babel-eslint"
|
|
75
|
-
},
|
|
76
|
-
"rules": {}
|
|
77
|
-
},
|
|
78
|
-
"browserslist": [
|
|
79
|
-
"> 1%",
|
|
80
|
-
"last 2 versions",
|
|
81
|
-
"not dead"
|
|
82
|
-
]
|
|
83
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "classcard-ui",
|
|
3
|
+
"version": "0.2.1475",
|
|
4
|
+
"main": "dist/classcard-ui.umd.min.js",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"serve": "vue-cli-service serve",
|
|
7
|
+
"build": "vue-cli-service build",
|
|
8
|
+
"build-bundle": "vue-cli-service build --target lib --name classcard-ui src/main.js",
|
|
9
|
+
"lint": "vue-cli-service lint",
|
|
10
|
+
"storybook": "start-storybook -p 6006",
|
|
11
|
+
"build-storybook": "build-storybook",
|
|
12
|
+
"version-patch": "git checkout main && git pull && git checkout deploy && git pull && git merge main && npm version patch && git push",
|
|
13
|
+
"publish-to-npm": "git checkout main && git pull && npm run build-bundle && npm publish"
|
|
14
|
+
},
|
|
15
|
+
"files": [
|
|
16
|
+
"dist/*",
|
|
17
|
+
"src/*"
|
|
18
|
+
],
|
|
19
|
+
"dependencies": {
|
|
20
|
+
"@shopify/draggable": "^1.0.0-beta.8",
|
|
21
|
+
"@storybook/addon-postcss": "^2.0.0",
|
|
22
|
+
"@tailwindcss/forms": "^0.2.1",
|
|
23
|
+
"core-js": "^3.18.0",
|
|
24
|
+
"dayjs": "^1.10.7",
|
|
25
|
+
"filestack-js": "^3.30.0",
|
|
26
|
+
"focus-trap-vue": "^1.1.1",
|
|
27
|
+
"gridjs-selection": "^3.4.0",
|
|
28
|
+
"gridjs-vue": "^3.4.0",
|
|
29
|
+
"lodash-es": "^4.17.23",
|
|
30
|
+
"skeleton-loader-vue": "^1.0.10",
|
|
31
|
+
"v-calendar": "^2.3.2",
|
|
32
|
+
"v-scroll-lock": "^1.3.1",
|
|
33
|
+
"vue": "^2.6.14",
|
|
34
|
+
"vue-good-table": "^2.21.8",
|
|
35
|
+
"vue-multiselect": "^2.1.6",
|
|
36
|
+
"vue-quill-editor": "^3.0.6",
|
|
37
|
+
"vue-select": "^3.13.0",
|
|
38
|
+
"vue-table-draggable": "^1.0.1",
|
|
39
|
+
"vue-tailwind-picker": "^2.0.0",
|
|
40
|
+
"vue-tel-input": "^4.4.2"
|
|
41
|
+
},
|
|
42
|
+
"devDependencies": {
|
|
43
|
+
"@babel/core": "^7.15.5",
|
|
44
|
+
"@storybook/addon-actions": "^6.5.10",
|
|
45
|
+
"@storybook/addon-essentials": "^6.5.10",
|
|
46
|
+
"@storybook/addon-links": "^6.5.10",
|
|
47
|
+
"@storybook/vue": "^6.5.10",
|
|
48
|
+
"@tailwindcss/postcss7-compat": "^2.2.14",
|
|
49
|
+
"@types/lodash-es": "^4.17.5",
|
|
50
|
+
"@vue/cli-plugin-babel": "^4.5.13",
|
|
51
|
+
"@vue/cli-plugin-eslint": "^4.5.13",
|
|
52
|
+
"@vue/cli-service": "^4.5.13",
|
|
53
|
+
"autoprefixer": "^9.8.6",
|
|
54
|
+
"babel-eslint": "^10.1.0",
|
|
55
|
+
"babel-loader": "^8.2.2",
|
|
56
|
+
"eslint": "^6.7.2",
|
|
57
|
+
"eslint-plugin-vue": "^6.2.2",
|
|
58
|
+
"postcss": "^8.4.31",
|
|
59
|
+
"prettier": "^2.5.1",
|
|
60
|
+
"prettier-plugin-tailwindcss": "^0.1.6",
|
|
61
|
+
"tailwindcss": "npm:@tailwindcss/postcss7-compat@^2.2.14",
|
|
62
|
+
"vue-template-compiler": "^2.6.14"
|
|
63
|
+
},
|
|
64
|
+
"eslintConfig": {
|
|
65
|
+
"root": true,
|
|
66
|
+
"env": {
|
|
67
|
+
"node": true
|
|
68
|
+
},
|
|
69
|
+
"extends": [
|
|
70
|
+
"plugin:vue/essential",
|
|
71
|
+
"eslint:recommended"
|
|
72
|
+
],
|
|
73
|
+
"parserOptions": {
|
|
74
|
+
"parser": "babel-eslint"
|
|
75
|
+
},
|
|
76
|
+
"rules": {}
|
|
77
|
+
},
|
|
78
|
+
"browserslist": [
|
|
79
|
+
"> 1%",
|
|
80
|
+
"last 2 versions",
|
|
81
|
+
"not dead"
|
|
82
|
+
]
|
|
83
|
+
}
|
package/src/App.vue
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div id="app">
|
|
3
|
-
|
|
4
|
-
</div>
|
|
5
|
-
</template>
|
|
6
|
-
|
|
7
|
-
<script>
|
|
8
|
-
|
|
9
|
-
export default {
|
|
10
|
-
name: 'App'
|
|
11
|
-
}
|
|
12
|
-
</script>
|
|
13
|
-
|
|
14
|
-
<style>
|
|
15
|
-
|
|
16
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div id="app">
|
|
3
|
+
|
|
4
|
+
</div>
|
|
5
|
+
</template>
|
|
6
|
+
|
|
7
|
+
<script>
|
|
8
|
+
|
|
9
|
+
export default {
|
|
10
|
+
name: 'App'
|
|
11
|
+
}
|
|
12
|
+
</script>
|
|
13
|
+
|
|
14
|
+
<style>
|
|
15
|
+
|
|
16
|
+
</style>
|
package/src/colorConfig.js
CHANGED
|
@@ -1,52 +1,52 @@
|
|
|
1
|
-
export const COLOR_CONFIG = {
|
|
2
|
-
red: {
|
|
3
|
-
shade50: "#fef2f2", // red-50
|
|
4
|
-
shade100: "#fee2e2", // red-100
|
|
5
|
-
shade200: "#fecaca", // red-200
|
|
6
|
-
shade500: "#ef4444", // red-500
|
|
7
|
-
shade600: "#dc2626", // red-600
|
|
8
|
-
shade700: "#b91c1c", // red-700
|
|
9
|
-
shade800: "#991b1b", // red-800
|
|
10
|
-
shade900: "#7f1d1d", // red-900
|
|
11
|
-
},
|
|
12
|
-
indigo: {
|
|
13
|
-
shade50: "#f0f9ff", // indigo-50
|
|
14
|
-
shade100: "#e0f2fe", // indigo-100
|
|
15
|
-
shade200: "#bae6fd", // indigo-200
|
|
16
|
-
shade500: "#0ea5e9", // indigo-500
|
|
17
|
-
shade600: "#0284c7", // indigo-600
|
|
18
|
-
shade700: "#0369a1", // indigo-700
|
|
19
|
-
shade800: "#075985", // indigo-800
|
|
20
|
-
shade900: "#0c4a6e", //indigo-900
|
|
21
|
-
},
|
|
22
|
-
yellow: {
|
|
23
|
-
shade50: "#fefce8", // yellow-50
|
|
24
|
-
shade100: "#fef9c3", // yellow-100
|
|
25
|
-
shade200: "#fef08a", // yellow-200
|
|
26
|
-
shade500: "#eab308", // yellow-500
|
|
27
|
-
shade600: "#ca8a04", // yellow-600
|
|
28
|
-
shade700: "#a16207", // yellow-700
|
|
29
|
-
shade800: "#854d0e", // yellow-800
|
|
30
|
-
shade900: "#713f12", // yellow-900
|
|
31
|
-
},
|
|
32
|
-
purple: {
|
|
33
|
-
shade50: "#f5f3ff", // purple-50
|
|
34
|
-
shade100: "#ede9fe", // purple-100
|
|
35
|
-
shade200: "#ddd6fe", // violet-200
|
|
36
|
-
shade500: "#8b5cf6", // purple-500
|
|
37
|
-
shade600: "#7c3aed", // purple-600
|
|
38
|
-
shade700: "#6d28d9", // purple-700
|
|
39
|
-
shade800: "#5b21b6", // purple-800
|
|
40
|
-
shade900: "#4c1d95", // purple-900
|
|
41
|
-
},
|
|
42
|
-
green: {
|
|
43
|
-
shade50: "#f0fdf4", // green-50
|
|
44
|
-
shade100: "#dcfce7", // green-100
|
|
45
|
-
shade200: "#bbf7d0", // green-200
|
|
46
|
-
shade500: "#22c55e", // green-500
|
|
47
|
-
shade600: "#16a34a", // green-600
|
|
48
|
-
shade700: "#15803d", // green-700
|
|
49
|
-
shade800: "#166534", // green-800
|
|
50
|
-
shade900: "#14532d", // green-900
|
|
51
|
-
},
|
|
52
|
-
};
|
|
1
|
+
export const COLOR_CONFIG = {
|
|
2
|
+
red: {
|
|
3
|
+
shade50: "#fef2f2", // red-50
|
|
4
|
+
shade100: "#fee2e2", // red-100
|
|
5
|
+
shade200: "#fecaca", // red-200
|
|
6
|
+
shade500: "#ef4444", // red-500
|
|
7
|
+
shade600: "#dc2626", // red-600
|
|
8
|
+
shade700: "#b91c1c", // red-700
|
|
9
|
+
shade800: "#991b1b", // red-800
|
|
10
|
+
shade900: "#7f1d1d", // red-900
|
|
11
|
+
},
|
|
12
|
+
indigo: {
|
|
13
|
+
shade50: "#f0f9ff", // indigo-50
|
|
14
|
+
shade100: "#e0f2fe", // indigo-100
|
|
15
|
+
shade200: "#bae6fd", // indigo-200
|
|
16
|
+
shade500: "#0ea5e9", // indigo-500
|
|
17
|
+
shade600: "#0284c7", // indigo-600
|
|
18
|
+
shade700: "#0369a1", // indigo-700
|
|
19
|
+
shade800: "#075985", // indigo-800
|
|
20
|
+
shade900: "#0c4a6e", //indigo-900
|
|
21
|
+
},
|
|
22
|
+
yellow: {
|
|
23
|
+
shade50: "#fefce8", // yellow-50
|
|
24
|
+
shade100: "#fef9c3", // yellow-100
|
|
25
|
+
shade200: "#fef08a", // yellow-200
|
|
26
|
+
shade500: "#eab308", // yellow-500
|
|
27
|
+
shade600: "#ca8a04", // yellow-600
|
|
28
|
+
shade700: "#a16207", // yellow-700
|
|
29
|
+
shade800: "#854d0e", // yellow-800
|
|
30
|
+
shade900: "#713f12", // yellow-900
|
|
31
|
+
},
|
|
32
|
+
purple: {
|
|
33
|
+
shade50: "#f5f3ff", // purple-50
|
|
34
|
+
shade100: "#ede9fe", // purple-100
|
|
35
|
+
shade200: "#ddd6fe", // violet-200
|
|
36
|
+
shade500: "#8b5cf6", // purple-500
|
|
37
|
+
shade600: "#7c3aed", // purple-600
|
|
38
|
+
shade700: "#6d28d9", // purple-700
|
|
39
|
+
shade800: "#5b21b6", // purple-800
|
|
40
|
+
shade900: "#4c1d95", // purple-900
|
|
41
|
+
},
|
|
42
|
+
green: {
|
|
43
|
+
shade50: "#f0fdf4", // green-50
|
|
44
|
+
shade100: "#dcfce7", // green-100
|
|
45
|
+
shade200: "#bbf7d0", // green-200
|
|
46
|
+
shade500: "#22c55e", // green-500
|
|
47
|
+
shade600: "#16a34a", // green-600
|
|
48
|
+
shade700: "#15803d", // green-700
|
|
49
|
+
shade800: "#166534", // green-800
|
|
50
|
+
shade900: "#14532d", // green-900
|
|
51
|
+
},
|
|
52
|
+
};
|
|
@@ -1,179 +1,179 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="z-100 fixed inset-0 overflow-y-auto">
|
|
3
|
-
<div
|
|
4
|
-
class="flex min-h-screen items-end justify-center px-4 pt-4 pb-20 text-center sm:block sm:p-0"
|
|
5
|
-
@click="$emit('proceedAddingEvent', false)"
|
|
6
|
-
>
|
|
7
|
-
<transition
|
|
8
|
-
enter-active-class="ease-out duration-300"
|
|
9
|
-
enter-class="opacity-0"
|
|
10
|
-
enter-to-class="opacity-100"
|
|
11
|
-
leave-active-class="ease-in duration-200"
|
|
12
|
-
leave-class="opacity-100"
|
|
13
|
-
leave-to-class="opacity-0"
|
|
14
|
-
>
|
|
15
|
-
<div class="fixed inset-0 transition-opacity" aria-hidden="true">
|
|
16
|
-
<div class="absolute inset-0 bg-gray-500 opacity-75"></div>
|
|
17
|
-
</div>
|
|
18
|
-
</transition>
|
|
19
|
-
|
|
20
|
-
<!-- This element is to trick the browser into centering the modal contents. -->
|
|
21
|
-
<span
|
|
22
|
-
class="hidden sm:inline-block sm:h-screen sm:align-middle"
|
|
23
|
-
aria-hidden="true"
|
|
24
|
-
>​</span
|
|
25
|
-
>
|
|
26
|
-
<transition
|
|
27
|
-
enter-active-class="ease-out duration-300"
|
|
28
|
-
enter-class="opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"
|
|
29
|
-
enter-to-class="opacity-100 translate-y-0 sm:scale-100"
|
|
30
|
-
leave-active-class="ease-in duration-200"
|
|
31
|
-
leave-class="opacity-100 translate-y-0 sm:scale-100"
|
|
32
|
-
leave-to-class="opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"
|
|
33
|
-
>
|
|
34
|
-
<div
|
|
35
|
-
:class="`inline-block transform overflow-y-visible rounded-lg bg-white px-4 pb-4 pt-5 text-left shadow-xl transition-all sm:my-8 sm:w-full sm:max-w-lg sm:p-6 ${parentWrapperClass}`"
|
|
36
|
-
role="dialog"
|
|
37
|
-
aria-modal="true"
|
|
38
|
-
aria-labelledby="modal-headline"
|
|
39
|
-
@click.stop
|
|
40
|
-
>
|
|
41
|
-
<div class="sm:flex sm:items-start" :style="`${contentWrapperStyle}`">
|
|
42
|
-
<div
|
|
43
|
-
class="mx-auto flex h-12 w-12 flex-shrink-0 items-center justify-center rounded-full sm:mx-0 sm:h-10 sm:w-10"
|
|
44
|
-
:class="`bg-${alertModalColor}-100`"
|
|
45
|
-
>
|
|
46
|
-
<svg
|
|
47
|
-
:class="`h-6 w-6 text-${alertModalColor}-600`"
|
|
48
|
-
fill="none"
|
|
49
|
-
viewBox="0 0 24 24"
|
|
50
|
-
stroke-width="1.5"
|
|
51
|
-
stroke="currentColor"
|
|
52
|
-
aria-hidden="true"
|
|
53
|
-
>
|
|
54
|
-
<path
|
|
55
|
-
stroke-linecap="round"
|
|
56
|
-
stroke-linejoin="round"
|
|
57
|
-
d="M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126zM12 15.75h.007v.008H12v-.008z"
|
|
58
|
-
/>
|
|
59
|
-
</svg>
|
|
60
|
-
</div>
|
|
61
|
-
<div class="mt-3 text-center sm:ml-4 sm:mt-0 sm:text-left">
|
|
62
|
-
<h3
|
|
63
|
-
:class="`text-base font-semibold leading-6 text-gray-900 ${titleClass}`"
|
|
64
|
-
id="modal-title"
|
|
65
|
-
>
|
|
66
|
-
{{ title }}
|
|
67
|
-
</h3>
|
|
68
|
-
<div class="mt-2">
|
|
69
|
-
<p class="text-sm text-gray-500">{{ msg }}</p>
|
|
70
|
-
|
|
71
|
-
<p class="mt-4 text-sm text-gray-500">{{ msg2 }}</p>
|
|
72
|
-
</div>
|
|
73
|
-
</div>
|
|
74
|
-
</div>
|
|
75
|
-
<div
|
|
76
|
-
:class="`mt-4 items-center justify-end gap-4 sm:ml-10 sm:flex ${btnWrapperClass}`"
|
|
77
|
-
>
|
|
78
|
-
<c-button
|
|
79
|
-
v-if="secondaryButtonText"
|
|
80
|
-
:type="secondaryButtonType"
|
|
81
|
-
:label="secondaryButtonText"
|
|
82
|
-
:id="getActionIDFn(secondaryButtonText)"
|
|
83
|
-
@action="$emit('proceedAddingEvent', false)"
|
|
84
|
-
></c-button>
|
|
85
|
-
<c-button
|
|
86
|
-
v-if="primaryButtonText"
|
|
87
|
-
:type="primaryButtonType"
|
|
88
|
-
:label="primaryButtonText"
|
|
89
|
-
:isLoading="primaryButtonLoader"
|
|
90
|
-
:id="getActionIDFn(secondaryButtonText)"
|
|
91
|
-
@action="$emit('proceedAddingEvent', true)"
|
|
92
|
-
></c-button>
|
|
93
|
-
</div>
|
|
94
|
-
</div>
|
|
95
|
-
</transition>
|
|
96
|
-
</div>
|
|
97
|
-
</div>
|
|
98
|
-
</template>
|
|
99
|
-
<script>
|
|
100
|
-
import { getActionID } from "../../helper";
|
|
101
|
-
import CButton from "../CButton/CButton.vue";
|
|
102
|
-
export default {
|
|
103
|
-
name: "CAlertModal",
|
|
104
|
-
components: { CButton },
|
|
105
|
-
props: {
|
|
106
|
-
proceedAddingEvent: {
|
|
107
|
-
type: Function,
|
|
108
|
-
},
|
|
109
|
-
titleClass: {
|
|
110
|
-
type: String,
|
|
111
|
-
default: "",
|
|
112
|
-
},
|
|
113
|
-
btnWrapperClass: {
|
|
114
|
-
type: String,
|
|
115
|
-
default: "",
|
|
116
|
-
},
|
|
117
|
-
parentWrapperClass: {
|
|
118
|
-
type: String,
|
|
119
|
-
default: "",
|
|
120
|
-
},
|
|
121
|
-
contentWrapperStyle: {
|
|
122
|
-
type: String,
|
|
123
|
-
default: "",
|
|
124
|
-
},
|
|
125
|
-
title: {
|
|
126
|
-
type: String,
|
|
127
|
-
default: "Outside working hour",
|
|
128
|
-
},
|
|
129
|
-
iconColor: {
|
|
130
|
-
type: String,
|
|
131
|
-
default: "",
|
|
132
|
-
},
|
|
133
|
-
msg: {
|
|
134
|
-
type: String,
|
|
135
|
-
default:
|
|
136
|
-
"You are adding an event outside of the working hours. Are you sure wish to proceed?",
|
|
137
|
-
},
|
|
138
|
-
msg2: {
|
|
139
|
-
type: String,
|
|
140
|
-
default: "",
|
|
141
|
-
},
|
|
142
|
-
primaryButtonText: {
|
|
143
|
-
type: String,
|
|
144
|
-
},
|
|
145
|
-
id: {
|
|
146
|
-
type: String,
|
|
147
|
-
},
|
|
148
|
-
primaryButtonLoader: {
|
|
149
|
-
type: Boolean,
|
|
150
|
-
},
|
|
151
|
-
secondaryButtonText: {
|
|
152
|
-
type: String,
|
|
153
|
-
},
|
|
154
|
-
alertModalColor: {
|
|
155
|
-
type: String,
|
|
156
|
-
default: "yellow",
|
|
157
|
-
},
|
|
158
|
-
primaryButtonType: {
|
|
159
|
-
type: String,
|
|
160
|
-
default: "primary",
|
|
161
|
-
},
|
|
162
|
-
secondaryButtonType: {
|
|
163
|
-
type: String,
|
|
164
|
-
default: "white",
|
|
165
|
-
},
|
|
166
|
-
},
|
|
167
|
-
methods: {
|
|
168
|
-
getActionIDFn(name) {
|
|
169
|
-
return getActionID(name, this.id);
|
|
170
|
-
},
|
|
171
|
-
},
|
|
172
|
-
};
|
|
173
|
-
</script>
|
|
174
|
-
|
|
175
|
-
<style>
|
|
176
|
-
.form-content {
|
|
177
|
-
max-height: calc(100vh - 200px);
|
|
178
|
-
}
|
|
179
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="z-100 fixed inset-0 overflow-y-auto">
|
|
3
|
+
<div
|
|
4
|
+
class="flex min-h-screen items-end justify-center px-4 pt-4 pb-20 text-center sm:block sm:p-0"
|
|
5
|
+
@click="$emit('proceedAddingEvent', false)"
|
|
6
|
+
>
|
|
7
|
+
<transition
|
|
8
|
+
enter-active-class="ease-out duration-300"
|
|
9
|
+
enter-class="opacity-0"
|
|
10
|
+
enter-to-class="opacity-100"
|
|
11
|
+
leave-active-class="ease-in duration-200"
|
|
12
|
+
leave-class="opacity-100"
|
|
13
|
+
leave-to-class="opacity-0"
|
|
14
|
+
>
|
|
15
|
+
<div class="fixed inset-0 transition-opacity" aria-hidden="true">
|
|
16
|
+
<div class="absolute inset-0 bg-gray-500 opacity-75"></div>
|
|
17
|
+
</div>
|
|
18
|
+
</transition>
|
|
19
|
+
|
|
20
|
+
<!-- This element is to trick the browser into centering the modal contents. -->
|
|
21
|
+
<span
|
|
22
|
+
class="hidden sm:inline-block sm:h-screen sm:align-middle"
|
|
23
|
+
aria-hidden="true"
|
|
24
|
+
>​</span
|
|
25
|
+
>
|
|
26
|
+
<transition
|
|
27
|
+
enter-active-class="ease-out duration-300"
|
|
28
|
+
enter-class="opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"
|
|
29
|
+
enter-to-class="opacity-100 translate-y-0 sm:scale-100"
|
|
30
|
+
leave-active-class="ease-in duration-200"
|
|
31
|
+
leave-class="opacity-100 translate-y-0 sm:scale-100"
|
|
32
|
+
leave-to-class="opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"
|
|
33
|
+
>
|
|
34
|
+
<div
|
|
35
|
+
:class="`inline-block transform overflow-y-visible rounded-lg bg-white px-4 pb-4 pt-5 text-left shadow-xl transition-all sm:my-8 sm:w-full sm:max-w-lg sm:p-6 ${parentWrapperClass}`"
|
|
36
|
+
role="dialog"
|
|
37
|
+
aria-modal="true"
|
|
38
|
+
aria-labelledby="modal-headline"
|
|
39
|
+
@click.stop
|
|
40
|
+
>
|
|
41
|
+
<div class="sm:flex sm:items-start" :style="`${contentWrapperStyle}`">
|
|
42
|
+
<div
|
|
43
|
+
class="mx-auto flex h-12 w-12 flex-shrink-0 items-center justify-center rounded-full sm:mx-0 sm:h-10 sm:w-10"
|
|
44
|
+
:class="`bg-${alertModalColor}-100`"
|
|
45
|
+
>
|
|
46
|
+
<svg
|
|
47
|
+
:class="`h-6 w-6 text-${alertModalColor}-600`"
|
|
48
|
+
fill="none"
|
|
49
|
+
viewBox="0 0 24 24"
|
|
50
|
+
stroke-width="1.5"
|
|
51
|
+
stroke="currentColor"
|
|
52
|
+
aria-hidden="true"
|
|
53
|
+
>
|
|
54
|
+
<path
|
|
55
|
+
stroke-linecap="round"
|
|
56
|
+
stroke-linejoin="round"
|
|
57
|
+
d="M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126zM12 15.75h.007v.008H12v-.008z"
|
|
58
|
+
/>
|
|
59
|
+
</svg>
|
|
60
|
+
</div>
|
|
61
|
+
<div class="mt-3 text-center sm:ml-4 sm:mt-0 sm:text-left">
|
|
62
|
+
<h3
|
|
63
|
+
:class="`text-base font-semibold leading-6 text-gray-900 ${titleClass}`"
|
|
64
|
+
id="modal-title"
|
|
65
|
+
>
|
|
66
|
+
{{ title }}
|
|
67
|
+
</h3>
|
|
68
|
+
<div class="mt-2">
|
|
69
|
+
<p class="text-sm text-gray-500">{{ msg }}</p>
|
|
70
|
+
|
|
71
|
+
<p class="mt-4 text-sm text-gray-500">{{ msg2 }}</p>
|
|
72
|
+
</div>
|
|
73
|
+
</div>
|
|
74
|
+
</div>
|
|
75
|
+
<div
|
|
76
|
+
:class="`mt-4 items-center justify-end gap-4 sm:ml-10 sm:flex ${btnWrapperClass}`"
|
|
77
|
+
>
|
|
78
|
+
<c-button
|
|
79
|
+
v-if="secondaryButtonText"
|
|
80
|
+
:type="secondaryButtonType"
|
|
81
|
+
:label="secondaryButtonText"
|
|
82
|
+
:id="getActionIDFn(secondaryButtonText)"
|
|
83
|
+
@action="$emit('proceedAddingEvent', false)"
|
|
84
|
+
></c-button>
|
|
85
|
+
<c-button
|
|
86
|
+
v-if="primaryButtonText"
|
|
87
|
+
:type="primaryButtonType"
|
|
88
|
+
:label="primaryButtonText"
|
|
89
|
+
:isLoading="primaryButtonLoader"
|
|
90
|
+
:id="getActionIDFn(secondaryButtonText)"
|
|
91
|
+
@action="$emit('proceedAddingEvent', true)"
|
|
92
|
+
></c-button>
|
|
93
|
+
</div>
|
|
94
|
+
</div>
|
|
95
|
+
</transition>
|
|
96
|
+
</div>
|
|
97
|
+
</div>
|
|
98
|
+
</template>
|
|
99
|
+
<script>
|
|
100
|
+
import { getActionID } from "../../helper";
|
|
101
|
+
import CButton from "../CButton/CButton.vue";
|
|
102
|
+
export default {
|
|
103
|
+
name: "CAlertModal",
|
|
104
|
+
components: { CButton },
|
|
105
|
+
props: {
|
|
106
|
+
proceedAddingEvent: {
|
|
107
|
+
type: Function,
|
|
108
|
+
},
|
|
109
|
+
titleClass: {
|
|
110
|
+
type: String,
|
|
111
|
+
default: "",
|
|
112
|
+
},
|
|
113
|
+
btnWrapperClass: {
|
|
114
|
+
type: String,
|
|
115
|
+
default: "",
|
|
116
|
+
},
|
|
117
|
+
parentWrapperClass: {
|
|
118
|
+
type: String,
|
|
119
|
+
default: "",
|
|
120
|
+
},
|
|
121
|
+
contentWrapperStyle: {
|
|
122
|
+
type: String,
|
|
123
|
+
default: "",
|
|
124
|
+
},
|
|
125
|
+
title: {
|
|
126
|
+
type: String,
|
|
127
|
+
default: "Outside working hour",
|
|
128
|
+
},
|
|
129
|
+
iconColor: {
|
|
130
|
+
type: String,
|
|
131
|
+
default: "",
|
|
132
|
+
},
|
|
133
|
+
msg: {
|
|
134
|
+
type: String,
|
|
135
|
+
default:
|
|
136
|
+
"You are adding an event outside of the working hours. Are you sure wish to proceed?",
|
|
137
|
+
},
|
|
138
|
+
msg2: {
|
|
139
|
+
type: String,
|
|
140
|
+
default: "",
|
|
141
|
+
},
|
|
142
|
+
primaryButtonText: {
|
|
143
|
+
type: String,
|
|
144
|
+
},
|
|
145
|
+
id: {
|
|
146
|
+
type: String,
|
|
147
|
+
},
|
|
148
|
+
primaryButtonLoader: {
|
|
149
|
+
type: Boolean,
|
|
150
|
+
},
|
|
151
|
+
secondaryButtonText: {
|
|
152
|
+
type: String,
|
|
153
|
+
},
|
|
154
|
+
alertModalColor: {
|
|
155
|
+
type: String,
|
|
156
|
+
default: "yellow",
|
|
157
|
+
},
|
|
158
|
+
primaryButtonType: {
|
|
159
|
+
type: String,
|
|
160
|
+
default: "primary",
|
|
161
|
+
},
|
|
162
|
+
secondaryButtonType: {
|
|
163
|
+
type: String,
|
|
164
|
+
default: "white",
|
|
165
|
+
},
|
|
166
|
+
},
|
|
167
|
+
methods: {
|
|
168
|
+
getActionIDFn(name) {
|
|
169
|
+
return getActionID(name, this.id);
|
|
170
|
+
},
|
|
171
|
+
},
|
|
172
|
+
};
|
|
173
|
+
</script>
|
|
174
|
+
|
|
175
|
+
<style>
|
|
176
|
+
.form-content {
|
|
177
|
+
max-height: calc(100vh - 200px);
|
|
178
|
+
}
|
|
179
|
+
</style>
|