File tree Expand file tree Collapse file tree 3 files changed +25
-3
lines changed
Expand file tree Collapse file tree 3 files changed +25
-3
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,13 @@ import '@sysvale/cuida/dist/style.css';
3434- E instale o Cuida:
3535
3636``` js
37- Vue .use (Cuida);
37+ app .use (Cuida);
38+ ```
39+
40+ - Exponha os utils do Cuida:
41+
42+ ``` js
43+ app .provide (' cdsUtils' , cdsUtils);
3844```
3945
4046- Agora para utilizar os componentes, basta usá-los no seu template. Como exemplo, para usar a
Original file line number Diff line number Diff line change 11{
22 "name" : " @sysvale/cuida" ,
3- "version" : " 3.72.4 " ,
3+ "version" : " 3.74.0 " ,
44 "description" : " A design system built by Sysvale, using storybook and Vue components" ,
55 "repository" : {
66 "type" : " git" ,
Original file line number Diff line number Diff line change 1+ /* COMPONENTS */
12import ActionBar from './ActionBar.vue' ;
23import ActionsList from './ActionsList.vue' ;
34import Alert from './Alert.vue' ;
@@ -98,11 +99,19 @@ import TimelineItem from './TimelineItem.vue';
9899import Tooltip from './Tooltip.vue' ;
99100import Truncate from './Truncate.vue' ;
100101import PasswordInput from './PasswordInput.vue' ;
102+ import WebcamModal from './WebcamModal.vue' ;
101103import Wizard from './Wizard.vue' ;
102104
105+ /* DIRECTIVES */
103106import Cdstip from '../utils/directives/cdstip' ;
104107import CdsFloatify from "../utils/directives/cdsFloatify" ;
105- import WebcamModal from './WebcamModal.vue' ;
108+
109+ /* UTILS */
110+ import contrastChecker from '@/utils/methods/contrastChecker' ;
111+ import hasSlot from '@/utils/methods/hasSlot' ;
112+ import removeAccents from '@/utils/methods/removeAccents' ;
113+ import hexToRgb from '@/utils/methods/hexToRgb' ;
114+ import isDeviceType from '@/utils/methods/isDeviceType' ;
106115
107116export default {
108117 install : ( app : any , options : any ) => {
@@ -211,4 +220,11 @@ export default {
211220 app . component ( 'CdsWebcamModal' , WebcamModal ) ;
212221 app . component ( 'CdsWizard' , Wizard ) ;
213222 } ,
223+ utils : {
224+ contrastChecker,
225+ hasSlot,
226+ removeAccents,
227+ hexToRgb,
228+ isDeviceType
229+ } ,
214230}
You can’t perform that action at this time.
0 commit comments