cja-phoenix 0.0.1 → 0.0.2
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 +1 -0
- package/dist/cja-phoenix.es.js +3134 -63
- package/dist/fonts/ProximaNova-Black.woff +0 -0
- package/dist/fonts/ProximaNova-Black.woff2 +0 -0
- package/dist/fonts/ProximaNova-Bold.woff +0 -0
- package/dist/fonts/ProximaNova-Bold.woff2 +0 -0
- package/dist/fonts/ProximaNova-Extrabld.woff +0 -0
- package/dist/fonts/ProximaNova-Extrabld.woff2 +0 -0
- package/dist/fonts/ProximaNova-Regular.woff +0 -0
- package/dist/fonts/ProximaNova-Regular.woff2 +0 -0
- package/dist/fonts/ProximaNovaT-Thin.woff +0 -0
- package/dist/fonts/ProximaNovaT-Thin.woff2 +0 -0
- package/dist/iconia/fonts/CGG-icomoon.eot +0 -0
- package/dist/iconia/fonts/CGG-icomoon.svg +507 -0
- package/dist/iconia/fonts/CGG-icomoon.ttf +0 -0
- package/dist/iconia/fonts/CGG-icomoon.woff +0 -0
- package/dist/iconia/selection.json +1 -0
- package/dist/iconia/style.css +1529 -0
- package/dist/style.css +1 -1
- package/dist/types/components/CheckboxInput.vue.d.ts +14 -0
- package/dist/types/components/CjaButton.vue.d.ts +9 -0
- package/dist/types/components/ComponentA.vue.d.ts +4 -4
- package/dist/types/components/ComponentB.vue.d.ts +1 -1
- package/dist/types/components/Modal.vue.d.ts +32 -0
- package/dist/types/components/PhoneInput.vue.d.ts +62 -0
- package/dist/types/components/TextInput.vue.d.ts +58 -0
- package/dist/types/components/index.d.ts +8 -3
- package/dist/types/stories/Modal.story.vue.d.ts +2 -0
- package/package.json +18 -6
- package/src/assets/fonts.scss +44 -0
- package/src/assets/forms.scss +375 -0
- package/src/assets/main.scss +9 -12
- package/src/components/CheckboxInput.vue +27 -0
- package/src/components/CjaButton.vue +65 -0
- package/src/components/Modal.vue +191 -0
- package/src/components/PhoneInput.vue +91 -0
- package/src/components/TextInput.vue +72 -0
- package/src/components/index.ts +14 -4
- package/src/env.d.ts +5 -4
- package/src/index.ts +3 -0
- package/src/stories/Modal.story.vue +18 -0
- package/src/assets/fonts/myfont.woff +0 -0
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.icon-heart[data-v-5800c09e]{color:tomato}.counter label[data-v-2c22e62b]{padding-right:10px;font-weight:700}.counter .count[data-v-2c22e62b]{padding:0 10px}@font-face{font-family:myfont;src:url(data:font/woff;base64,d09GRgABAAAAAATMAAsAAAAABIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABPUy8yAAABCAAAAGAAAABgDxIGBGNtYXAAAAFoAAAAVAAAAFQWfNQ7Z2FzcAAAAbwAAAAIAAAACAAAABBnbHlmAAABxAAAAMQAAADE9iu5ZGhlYWQAAAKIAAAANgAAADYfdnyraGhlYQAAAsAAAAAkAAAAJAfCA8ZobXR4AAAC5AAAABQAAAAUCgAAAGxvY2EAAAL4AAAADAAAAAwAKAB2bWF4cAAAAwQAAAAgAAAAIAAHACxuYW1lAAADJAAAAYYAAAGGmUoJ+3Bvc3QAAASsAAAAIAAAACAAAwAAAAMDAAGQAAUAAAKZAswAAACPApkCzAAAAesAMwEJAAAAAAAAAAAAAAAAAAAAARAAAAAAAAAAAAAAAAAAAAAAQAAA6doDwP/AAEADwABAAAAAAQAAAAAAAAAAAAAAIAAAAAAAAwAAAAMAAAAcAAEAAwAAABwAAwABAAAAHAAEADgAAAAKAAgAAgACAAEAIOna//3//wAAAAAAIOna//3//wAB/+MWKgADAAEAAAAAAAAAAAAAAAEAAf//AA8AAQAAAAAAAAAAAAIAADc5AQAAAAABAAAAAAAAAAAAAgAANzkBAAAAAAEAAAAAAAAAAAACAAA3OQEAAAAAAQAA/8wEAAOAACkAAAEiBw4BBwYHJicuAScmIyIHDgEHBhUUFx4BFxYXNjc+ATc2NTQnLgEnJgLzKCUlPxkZEBAZGT8lJSg4MTFJFRUzM5lZWk5KWVmbNTQVFUkxMQOADw8yICEiIiEgMg8PFRVJMTE4cU5Pjk5NcG9PT5BOT204MTFJFRUAAAEAAAAAAABxV9/FXw889QALBAAAAAAA3iwcMQAAAADeLBwxAAD/zAQAA4AAAAAIAAIAAAAAAAAAAQAAA8D/wAAABAAAAAAABAAAAQAAAAAAAAAAAAAAAAAAAAUEAAAAAAAAAAAAAAACAAAABAAAAAAAAAAACgAUAB4AYgABAAAABQAqAAEAAAAAAAIAAAAAAAAAAAAAAAAAAAAAAAAADgCuAAEAAAAAAAEABwAAAAEAAAAAAAIABwBgAAEAAAAAAAMABwA2AAEAAAAAAAQABwB1AAEAAAAAAAUACwAVAAEAAAAAAAYABwBLAAEAAAAAAAoAGgCKAAMAAQQJAAEADgAHAAMAAQQJAAIADgBnAAMAAQQJAAMADgA9AAMAAQQJAAQADgB8AAMAAQQJAAUAFgAgAAMAAQQJAAYADgBSAAMAAQQJAAoANACkaWNvbW9vbgBpAGMAbwBtAG8AbwBuVmVyc2lvbiAxLjAAVgBlAHIAcwBpAG8AbgAgADEALgAwaWNvbW9vbgBpAGMAbwBtAG8AbwBuaWNvbW9vbgBpAGMAbwBtAG8AbwBuUmVndWxhcgBSAGUAZwB1AGwAYQByaWNvbW9vbgBpAGMAbwBtAG8AbwBuRm9udCBnZW5lcmF0ZWQgYnkgSWNvTW9vbi4ARgBvAG4AdAAgAGcAZQBuAGUAcgBhAHQAZQBkACAAYgB5ACAASQBjAG8ATQBvAG8AbgAuAAAAAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==)}[class^=icon-],[class*=" icon-"]{font-family:myfont!important}.icon-heart:before{content:"\e9da"}.global-example{color:red}
|
|
1
|
+
.icon-heart[data-v-5800c09e]{color:tomato}.counter label[data-v-2c22e62b]{padding-right:10px;font-weight:700}.counter .count[data-v-2c22e62b]{padding:0 10px}.modal-backdrop[data-v-4c7349cf]{position:fixed;top:0;left:0;width:100%;height:100%;z-index:12;background-color:#0006;transition:all .4s ease-in-out}.modal-overlay[data-v-4c7349cf]{position:fixed;top:0;left:0;width:100%;height:100%;z-index:13}.modal-container[data-v-4c7349cf]{position:absolute;top:0;left:0;height:100%;background:#ffffff;padding:20px;width:100%;box-sizing:border-box}@media screen and (min-width: 601px){.modal-container[data-v-4c7349cf]{top:50%;left:50%;transform:translateY(-50%) translate(-50%);max-width:calc(100% - 60px);border-radius:8px;padding:20px 40px;height:auto}}@media screen and (min-width: 1100px){.modal-container[data-v-4c7349cf]{max-width:1040px}}.modal-container .modal-header[data-v-4c7349cf]{font-weight:700;font-size:18px;line-height:21px;padding-bottom:15px;padding-right:20px;border-bottom:1px solid #dedede}@media screen and (min-width: 601px){.modal-container .modal-header[data-v-4c7349cf]{font-size:24px;line-height:27px}}.modal-container .btn-close[data-v-4c7349cf]{position:absolute;top:20px;right:20px;background:none;border:none;padding:0;outline:0;height:20px;cursor:pointer}@media screen and (min-width: 601px){.modal-container .btn-close[data-v-4c7349cf]{right:40px}}.modal-container .btn-close span[data-v-4c7349cf]{line-height:20px}.modal-container .btn-close[data-v-4c7349cf]:focus{outline:0}.modal-container .modal-body[data-v-4c7349cf]{margin:20px -15px -15px;font-size:15px;line-height:17px;overflow-y:auto;max-height:calc(100vh - 97px);height:auto;padding:0 15px 15px}@media screen and (min-width: 768px){.modal-container .modal-body[data-v-4c7349cf]{max-height:700px}}.modal-container .modal-footer[data-v-4c7349cf]{border-top:1px solid #dedede;padding-top:15px;margin-top:15px}.modal-container .modal-footer[data-v-4c7349cf] .button-container{display:flex;flex-direction:row;justify-content:flex-end;gap:10px}.fade-enter-from[data-v-4c7349cf],.fade-leave-to[data-v-4c7349cf]{opacity:0}.fade-enter-to[data-v-4c7349cf],.fade-leave-from[data-v-4c7349cf]{opacity:1}.cja-btn[data-v-2bfec323]{display:inline-flex;justify-content:center;align-items:center;padding:10px 20px;border-radius:8px;box-shadow:0 4px 20px #0000001a;color:#076b9c;background:none;font-weight:700;font-size:16px;line-height:16px;cursor:pointer}@media screen and (min-width: 768px){.cja-btn[data-v-2bfec323]{padding:15px 20px;font-size:20px;line-height:20px}}.cja-btn[data-v-2bfec323]:focus-visible{outline:none}.cja-btn.btn-primary[data-v-2bfec323]{background:#076b9c;border:1px solid #076b9c;color:#fff}.cja-btn.btn-primary.btn-orange[data-v-2bfec323]{background:#f58423;border-color:#f58423}.cja-btn.btn-primary.btn-white[data-v-2bfec323]{background:#fff;border-color:#fff;color:#155072}.cja-btn.btn-primary[data-v-2bfec323]:disabled{background:#dedede;border:1px solid #dedede;cursor:pointer}.cja-btn.btn-secondary[data-v-2bfec323]{border:1px solid #dedede}.cja-btn[data-v-2bfec323] span[class^=m-cgg-icon--]:last-child{margin-left:5px}@font-face{font-family:Proxima Nova;src:url(fonts/ProximaNovaT-Thin.woff2) format("woff2"),url(fonts/ProximaNovaT-Thin.woff) format("woff");font-weight:100;font-style:normal;font-display:swap}@font-face{font-family:Proxima Nova;src:url(fonts/ProximaNova-Black.woff2) format("woff2"),url(fonts/ProximaNova-Black.woff) format("woff");font-weight:900;font-style:normal;font-display:swap}@font-face{font-family:Proxima Nova;src:url(fonts/ProximaNova-Regular.woff2) format("woff2"),url(fonts/ProximaNova-Regular.woff) format("woff");font-weight:400;font-style:normal;font-display:swap}@font-face{font-family:Proxima Nova;src:url(fonts/ProximaNova-Bold.woff2) format("woff2"),url(fonts/ProximaNova-Bold.woff) format("woff");font-weight:700;font-style:normal;font-display:swap}@font-face{font-family:Proxima Nova;src:url(fonts/ProximaNova-Extrabld.woff2) format("woff2"),url(fonts/ProximaNova-Extrabld.woff) format("woff");font-weight:800;font-style:normal;font-display:swap}body{font-family:Proxima Nova,Helvetica Neue,Helvetica,Microsoft JhengHei,Open Sans,Arial,"sans-serif"}*,*:before,*:after{box-sizing:border-box}.form-group .input-title{font-size:14px;line-height:17px;font-weight:700;margin-bottom:10px}@media screen and (min-width: 768px){.form-group .input-title{font-size:16px;line-height:19px}}.form-group .input-container{position:relative}.form-group .input-container input,.form-group .input-container textarea{outline:none;padding:10px 8px;font-size:15px;line-height:18px;width:100%;border:1px solid #dedede;border-radius:5px;transition:all .1s ease-in}.form-group .input-container input:active,.form-group .input-container input:focus,.form-group .input-container textarea:active,.form-group .input-container textarea:focus{border:1px solid #5fbbff;outline:none}.form-group .input-container input:active+.icon,.form-group .input-container input:focus+.icon,.form-group .input-container textarea:active+.icon,.form-group .input-container textarea:focus+.icon{color:#312f2e}.form-group .input-container textarea{resize:none}.form-group .input-container.has-icon input{padding-right:50px}.form-group .input-container.has-icon .icon{position:absolute;top:50%;transform:translateY(-50%);right:20px;line-height:10px;font-size:20px;font-weight:700;color:#979290;transition:color .1s ease-in}.form-group .input-container.error input,.form-group .input-container.error textarea{background-color:#ffebeb;border:1px solid #ff533f}.form-group .input-container-radio ul{display:flex;flex-direction:column;gap:15px}.form-group .input-container-radio label{display:flex;flex-direction:row;gap:10px;cursor:pointer}.form-group .input-container-radio label input{display:none}.form-group .input-container-radio label input:checked+.radio-icon{border-color:#77aa43}.form-group .input-container-radio label input:checked+.radio-icon:before{opacity:1}.form-group .input-container-radio label .radio-icon{height:25px;width:25px;border:2px solid #9fabbc;border-radius:50%;transition:all .3s ease-in-out}.form-group .input-container-radio label .radio-icon:before{content:"";display:block;opacity:0;transition:all .3s ease-in-out;width:100%;height:100%;background-color:#77aa43;background-clip:content-box;border:4px solid transparent;border-radius:50%}.form-group .input-container-radio label p{font-size:16px;line-height:25px}.form-group .input-container-checkbox label{display:flex;flex-direction:row;flex-wrap:nowrap;gap:15px;cursor:pointer}.form-group .input-container-checkbox label input{display:none}.form-group .input-container-checkbox label.active .radio-icon{border-color:#77aa43}.form-group .input-container-checkbox label.active .radio-icon:before{opacity:1}.form-group .input-container-checkbox label.active p{color:#77aa43}.form-group .input-container-checkbox label .checkbox-icon{position:relative}.form-group .input-container-checkbox label .checkbox-icon:after{content:"";display:block;width:22px;height:22px;border-radius:3px;border:1px solid #cccbc8;color:#77aa43}.form-group .input-container-checkbox label .checkbox-icon:before{position:absolute;opacity:0;font-size:20px}.form-group .input-container-checkbox label input:checked+.checkbox-icon:before{opacity:1}.form-group .input-container-checkbox label .text-container{font-size:12px;line-height:18px;user-select:none}.form-group .input-container-checkbox label .text-container a{color:inherit;font-weight:700;text-decoration:underline}.form-group .input-container-checkbox label .text-container a:hover{text-decoration:none}.form-group .input-container-select{position:relative}.form-group .input-container-select .close-overlay{position:fixed;top:0;left:0;width:100vw;height:100vh;z-index:23}.form-group .input-container-select .select-toggle{position:relative;display:flex;justify-content:space-between;gap:10px;background-color:#fff;border:1px solid #dedede;border-radius:5px;cursor:pointer;padding:10px 8px;font-size:15px;line-height:18px;width:100%;transition:z-index 0s .3s;z-index:0}.form-group .input-container-select .select-toggle .select-display{flex-grow:1;text-overflow:ellipsis;overflow:hidden}.form-group .input-container-select .select-toggle.open{z-index:25;transition:z-index 0s}.form-group .input-container-select .select-toggle.open em{transform:rotate(180deg)}.form-group .input-container-select .select-toggle.disabled{opacity:.5;cursor:auto}.form-group .input-container-select .select-toggle em{font-size:12px;line-height:18px;color:#9fabbc;transition:all .3s ease-in-out}.form-group .input-container-select .select-collapse{position:absolute;z-index:24;left:0;width:100%;max-height:400px;overflow-y:auto;padding-top:4px;background-color:#fff;border:1px solid #dedede;transition:all .3s ease-in-out}.form-group .input-container-select .select-collapse.position-top{bottom:calc(100% - 5px);border-top-left-radius:5px;border-top-right-radius:5px;box-shadow:0 -4px 10px #00000026}.form-group .input-container-select .select-collapse.position-bottom{top:calc(100% - 5px);border-bottom-left-radius:5px;border-bottom-right-radius:5px;box-shadow:0 4px 10px #00000026}.form-group .input-container-select .select-collapse .search-filter-container{padding:5px 10px}.form-group .input-container-select .select-collapse .search-filter-container input{outline:none;padding:10px 8px;font-size:15px;line-height:18px;width:100%;border:1px solid #dedede;border-radius:5px}.form-group .input-container-select .select-collapse .search-filter-container input:active,.form-group .input-container-select .select-collapse .search-filter-container input:focus{border:1px solid #5fbbff;outline:none}.form-group .input-container-select .select-collapse.slide-fade-enter-from,.form-group .input-container-select .select-collapse.slide-fade-leave-to{opacity:0}.form-group .input-container-select .select-collapse.slide-fade-enter-to,.form-group .input-container-select .select-collapse.slide-fade-leave-from{opacity:1}.form-group .input-container-select .select-collapse ul li{display:flex;align-items:center;transition:all .3s ease-in-out;padding:8px 10px;cursor:pointer;user-select:none;overflow-x:hidden}.form-group .input-container-select .select-collapse ul li:hover{background-color:#f1f7ee}.form-group .input-container-select .select-collapse ul li .checkbox-icon{height:20px;width:20px;border:2px solid #9fabbc;border-radius:3px;transition:all .3s ease-in-out;display:inline-flex;place-items:center;margin-right:10px}.form-group .input-container-select .select-collapse ul li .checkbox-icon:before{color:#77aa43;opacity:0}.form-group .input-container-select .select-collapse ul li.active .checkbox-icon:before{opacity:1}.form-group .input-container-select.error .select-toggle{background-color:#ffebeb;border:1px solid #ff533f}.form-group .input-container-select.error em{background-color:#ffebeb}.form-group .input-error{color:#ff533f;font-size:14px;line-height:16px;margin-top:8px}@media screen and (min-width: 768px){.form-group .input-error{font-size:16px;line-height:18px}}.form-group .iti{display:block}.form-group .iti__flag{background-image:url(https://www.comparaja.pt/s3/portugal/comparaja.pt/production/pt/images/general/flags.png)!important}@media (-webkit-min-device-pixel-ratio: 2),(min-resolution: 192dpi){.form-group .iti__flag{background-image:url(https://www.comparaja.pt/s3/portugal/comparaja.pt/production/pt/images/general/flags@2x.png)!important}}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
label: StringConstructor;
|
|
3
|
+
error: StringConstructor;
|
|
4
|
+
modelValue: BooleanConstructor;
|
|
5
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
6
|
+
label: StringConstructor;
|
|
7
|
+
error: StringConstructor;
|
|
8
|
+
modelValue: BooleanConstructor;
|
|
9
|
+
}>> & {
|
|
10
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
11
|
+
}, {
|
|
12
|
+
modelValue: boolean;
|
|
13
|
+
}>;
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>, {
|
|
2
|
+
default: (_: {}) => any;
|
|
3
|
+
}>;
|
|
4
|
+
export default _default;
|
|
5
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
6
|
+
new (): {
|
|
7
|
+
$slots: S;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<
|
|
1
|
+
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
2
2
|
msg: string;
|
|
3
|
-
}>,
|
|
3
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
4
4
|
msg: string;
|
|
5
5
|
}>>>, {}>;
|
|
6
6
|
export default _default;
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
8
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
9
9
|
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
10
10
|
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
11
11
|
} : {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{},
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
2
2
|
export default _default;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
2
|
+
title?: string | undefined;
|
|
3
|
+
class?: string | undefined;
|
|
4
|
+
}>, {
|
|
5
|
+
active: import("vue").Ref<boolean>;
|
|
6
|
+
openModal: () => void;
|
|
7
|
+
closeModal: () => void;
|
|
8
|
+
toggleModal: () => void;
|
|
9
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "close"[], "close", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
10
|
+
title?: string | undefined;
|
|
11
|
+
class?: string | undefined;
|
|
12
|
+
}>>> & {
|
|
13
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
14
|
+
}, {}>, {
|
|
15
|
+
body: (_: {}) => any;
|
|
16
|
+
footer: (_: {}) => any;
|
|
17
|
+
}>;
|
|
18
|
+
export default _default;
|
|
19
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
20
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
21
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
22
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
23
|
+
} : {
|
|
24
|
+
type: import('vue').PropType<T[K]>;
|
|
25
|
+
required: true;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
29
|
+
new (): {
|
|
30
|
+
$slots: S;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
placeholder: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
default: string;
|
|
5
|
+
};
|
|
6
|
+
title: {
|
|
7
|
+
type: StringConstructor;
|
|
8
|
+
required: true;
|
|
9
|
+
};
|
|
10
|
+
modelValue: {
|
|
11
|
+
type: StringConstructor;
|
|
12
|
+
default: string;
|
|
13
|
+
};
|
|
14
|
+
phoneCountryCode: {
|
|
15
|
+
type: StringConstructor;
|
|
16
|
+
default: string;
|
|
17
|
+
};
|
|
18
|
+
errorDisplay: {
|
|
19
|
+
type: BooleanConstructor;
|
|
20
|
+
default: boolean;
|
|
21
|
+
};
|
|
22
|
+
validation: ObjectConstructor;
|
|
23
|
+
autocomplete: StringConstructor;
|
|
24
|
+
id: StringConstructor;
|
|
25
|
+
}, {
|
|
26
|
+
errorMessage: import("vue").Ref<string | undefined>;
|
|
27
|
+
meta: import("vee-validate").FieldMeta<string>;
|
|
28
|
+
validate: (opts?: Partial<import("vee-validate").ValidationOptions> | undefined) => Promise<import("vee-validate").ValidationResult>;
|
|
29
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:phoneCountryCode")[], "update:modelValue" | "update:phoneCountryCode", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
30
|
+
placeholder: {
|
|
31
|
+
type: StringConstructor;
|
|
32
|
+
default: string;
|
|
33
|
+
};
|
|
34
|
+
title: {
|
|
35
|
+
type: StringConstructor;
|
|
36
|
+
required: true;
|
|
37
|
+
};
|
|
38
|
+
modelValue: {
|
|
39
|
+
type: StringConstructor;
|
|
40
|
+
default: string;
|
|
41
|
+
};
|
|
42
|
+
phoneCountryCode: {
|
|
43
|
+
type: StringConstructor;
|
|
44
|
+
default: string;
|
|
45
|
+
};
|
|
46
|
+
errorDisplay: {
|
|
47
|
+
type: BooleanConstructor;
|
|
48
|
+
default: boolean;
|
|
49
|
+
};
|
|
50
|
+
validation: ObjectConstructor;
|
|
51
|
+
autocomplete: StringConstructor;
|
|
52
|
+
id: StringConstructor;
|
|
53
|
+
}>> & {
|
|
54
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
55
|
+
"onUpdate:phoneCountryCode"?: ((...args: any[]) => any) | undefined;
|
|
56
|
+
}, {
|
|
57
|
+
modelValue: string;
|
|
58
|
+
placeholder: string;
|
|
59
|
+
phoneCountryCode: string;
|
|
60
|
+
errorDisplay: boolean;
|
|
61
|
+
}>;
|
|
62
|
+
export default _default;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { HTMLAttributes, InputHTMLAttributes } from "vue";
|
|
2
|
+
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
+
mask?: string | undefined;
|
|
4
|
+
placeholder?: InputHTMLAttributes["placeholder"];
|
|
5
|
+
icon?: string | undefined;
|
|
6
|
+
title?: string | undefined;
|
|
7
|
+
inputmode?: HTMLAttributes["inputmode"];
|
|
8
|
+
type?: InputHTMLAttributes["type"];
|
|
9
|
+
error?: string | undefined;
|
|
10
|
+
modelValue: InputHTMLAttributes["value"];
|
|
11
|
+
autocomplete?: InputHTMLAttributes["autocomplete"];
|
|
12
|
+
id?: InputHTMLAttributes["id"];
|
|
13
|
+
validation?: any;
|
|
14
|
+
errorDisplay?: boolean | undefined;
|
|
15
|
+
}>, {
|
|
16
|
+
type: string;
|
|
17
|
+
errorDisplay: boolean;
|
|
18
|
+
}>, {
|
|
19
|
+
errorMessage: import("vue").Ref<string | undefined>;
|
|
20
|
+
meta: import("vee-validate").FieldMeta<any>;
|
|
21
|
+
validate: (opts?: Partial<import("vee-validate").ValidationOptions> | undefined) => Promise<import("vee-validate").ValidationResult>;
|
|
22
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
23
|
+
mask?: string | undefined;
|
|
24
|
+
placeholder?: InputHTMLAttributes["placeholder"];
|
|
25
|
+
icon?: string | undefined;
|
|
26
|
+
title?: string | undefined;
|
|
27
|
+
inputmode?: HTMLAttributes["inputmode"];
|
|
28
|
+
type?: InputHTMLAttributes["type"];
|
|
29
|
+
error?: string | undefined;
|
|
30
|
+
modelValue: InputHTMLAttributes["value"];
|
|
31
|
+
autocomplete?: InputHTMLAttributes["autocomplete"];
|
|
32
|
+
id?: InputHTMLAttributes["id"];
|
|
33
|
+
validation?: any;
|
|
34
|
+
errorDisplay?: boolean | undefined;
|
|
35
|
+
}>, {
|
|
36
|
+
type: string;
|
|
37
|
+
errorDisplay: boolean;
|
|
38
|
+
}>>> & {
|
|
39
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
40
|
+
}, {
|
|
41
|
+
type: string;
|
|
42
|
+
errorDisplay: boolean;
|
|
43
|
+
}>;
|
|
44
|
+
export default _default;
|
|
45
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
46
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
47
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
48
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
49
|
+
} : {
|
|
50
|
+
type: import('vue').PropType<T[K]>;
|
|
51
|
+
required: true;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
type __VLS_WithDefaults<P, D> = {
|
|
55
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
|
|
56
|
+
default: D[K];
|
|
57
|
+
} : P[K];
|
|
58
|
+
};
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
-
import ComponentA from
|
|
2
|
-
import ComponentB from
|
|
3
|
-
|
|
1
|
+
import ComponentA from "./ComponentA.vue";
|
|
2
|
+
import ComponentB from "./ComponentB.vue";
|
|
3
|
+
import Modal from "./Modal.vue";
|
|
4
|
+
import CjaButton from "./CjaButton.vue";
|
|
5
|
+
import TextInput from "./TextInput.vue";
|
|
6
|
+
import PhoneInput from "./PhoneInput.vue";
|
|
7
|
+
import CheckboxInput from "./CheckboxInput.vue";
|
|
8
|
+
export { ComponentA, ComponentB, Modal, CjaButton, TextInput, PhoneInput, CheckboxInput, };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
2
|
+
export default _default;
|
package/package.json
CHANGED
|
@@ -1,26 +1,37 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cja-phoenix",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build:lib": "rimraf dist && vue-tsc && vite build",
|
|
6
6
|
"publish:lib": "npm run build:lib && npm publish",
|
|
7
7
|
"docs:dev": "vitepress dev docs",
|
|
8
8
|
"docs:build": "vitepress build docs",
|
|
9
|
-
"docs:serve": "vitepress serve docs"
|
|
9
|
+
"docs:serve": "vitepress serve docs",
|
|
10
|
+
"story:dev": "histoire dev",
|
|
11
|
+
"story:build": "histoire build",
|
|
12
|
+
"story:preview": "histoire preview"
|
|
10
13
|
},
|
|
11
14
|
"peerDependencies": {
|
|
12
|
-
"vue": "^3.2.25"
|
|
15
|
+
"vue": "^3.2.25",
|
|
16
|
+
"intl-tel-input": "^17.0.15",
|
|
17
|
+
"maska": "^1.5.0"
|
|
13
18
|
},
|
|
14
19
|
"devDependencies": {
|
|
20
|
+
"@histoire/plugin-vue": "^0.14.2",
|
|
21
|
+
"@types/intl-tel-input": "^17.0.6",
|
|
15
22
|
"@types/node": "^17.0.14",
|
|
16
23
|
"@vitejs/plugin-vue": "^2.0.0",
|
|
24
|
+
"histoire": "^0.14.2",
|
|
25
|
+
"vee-validate": "^4.7.2",
|
|
17
26
|
"rimraf": "^3.0.2",
|
|
18
27
|
"sass": "^1.49.7",
|
|
19
28
|
"typescript": "^4.4.4",
|
|
20
|
-
"vite": "^
|
|
29
|
+
"vite": "^3.0.0",
|
|
21
30
|
"vitepress": "^0.21.6",
|
|
22
31
|
"vue": "^3.2.25",
|
|
23
|
-
"vue-tsc": "^0.
|
|
32
|
+
"vue-tsc": "^1.0.24",
|
|
33
|
+
"intl-tel-input": "^17.0.15",
|
|
34
|
+
"maska": "^1.5.0"
|
|
24
35
|
},
|
|
25
36
|
"files": [
|
|
26
37
|
"src",
|
|
@@ -32,6 +43,7 @@
|
|
|
32
43
|
".": {
|
|
33
44
|
"import": "./dist/cja-phoenix.es.js"
|
|
34
45
|
},
|
|
35
|
-
"./dist/style.css": "./dist/style.css"
|
|
46
|
+
"./dist/style.css": "./dist/style.css",
|
|
47
|
+
"./dist/iconia/style.css": "./dist/iconia/style.css"
|
|
36
48
|
}
|
|
37
49
|
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
@font-face {
|
|
2
|
+
font-family: "Proxima Nova";
|
|
3
|
+
src: url("fonts/ProximaNovaT-Thin.woff2") format("woff2"),
|
|
4
|
+
url("fonts/ProximaNovaT-Thin.woff") format("woff");
|
|
5
|
+
font-weight: 100;
|
|
6
|
+
font-style: normal;
|
|
7
|
+
font-display: swap;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
@font-face {
|
|
11
|
+
font-family: "Proxima Nova";
|
|
12
|
+
src: url("fonts/ProximaNova-Black.woff2") format("woff2"),
|
|
13
|
+
url("fonts/ProximaNova-Black.woff") format("woff");
|
|
14
|
+
font-weight: 900;
|
|
15
|
+
font-style: normal;
|
|
16
|
+
font-display: swap;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
@font-face {
|
|
20
|
+
font-family: "Proxima Nova";
|
|
21
|
+
src: url("fonts/ProximaNova-Regular.woff2") format("woff2"),
|
|
22
|
+
url("fonts/ProximaNova-Regular.woff") format("woff");
|
|
23
|
+
font-weight: 400;
|
|
24
|
+
font-style: normal;
|
|
25
|
+
font-display: swap;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
@font-face {
|
|
29
|
+
font-family: "Proxima Nova";
|
|
30
|
+
src: url("fonts/ProximaNova-Bold.woff2") format("woff2"),
|
|
31
|
+
url("fonts/ProximaNova-Bold.woff") format("woff");
|
|
32
|
+
font-weight: 700;
|
|
33
|
+
font-style: normal;
|
|
34
|
+
font-display: swap;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
@font-face {
|
|
38
|
+
font-family: "Proxima Nova";
|
|
39
|
+
src: url("fonts/ProximaNova-Extrabld.woff2") format("woff2"),
|
|
40
|
+
url("fonts/ProximaNova-Extrabld.woff") format("woff");
|
|
41
|
+
font-weight: 800;
|
|
42
|
+
font-style: normal;
|
|
43
|
+
font-display: swap;
|
|
44
|
+
}
|