@propelinc/citrus-ui 0.4.0-dev.2 → 0.4.1-dev.0
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/dist/citrus-ui.common.js +157 -162
- package/dist/citrus-ui.common.js.map +1 -1
- package/dist/citrus-ui.css +1 -1
- package/dist/citrus-ui.umd.js +157 -162
- package/dist/citrus-ui.umd.js.map +1 -1
- package/dist/citrus-ui.umd.min.js +3 -3
- package/dist/citrus-ui.umd.min.js.map +1 -1
- package/package.json +2 -2
- package/src/components/CAlert.vue +3 -0
- package/src/components/CButton.vue +4 -0
- package/src/components/CIconButton.vue +4 -1
- package/src/components/CListItem.vue +1 -0
- package/src/components/CModal.vue +2 -1
- package/src/components/CSegmentedButton.vue +1 -0
- package/src/components/CSelect.vue +2 -0
- package/src/colors/theme.d.ts +0 -12
- package/src/components/index.d.ts +0 -21
- package/src/index.d.ts +0 -45
- package/src/plugin.d.ts +0 -3
- package/src/theme/icons.d.ts +0 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@propelinc/citrus-ui",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.1-dev.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/propelinc/citrus-ui"
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"test:unit": "vue-cli-service test:unit"
|
|
21
21
|
},
|
|
22
22
|
"main": "./dist/citrus-ui.common.js",
|
|
23
|
-
"types": "./
|
|
23
|
+
"types": "./dist/index.d.ts",
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@fortawesome/fontawesome-svg-core": "^1.2.35",
|
|
26
26
|
"@fortawesome/pro-light-svg-icons": "5.15.3",
|
|
@@ -37,9 +37,12 @@ import CIconButton from '@/components/CIconButton.vue';
|
|
|
37
37
|
export default class CAlert extends Vue {
|
|
38
38
|
faTimes = faTimes;
|
|
39
39
|
|
|
40
|
+
/** Controls whether the alert is shown */
|
|
40
41
|
@Prop({ type: Boolean, default: false }) value!: boolean;
|
|
41
42
|
@Prop(String) message?: string;
|
|
43
|
+
/** Renders the error state */
|
|
42
44
|
@Prop({ type: Boolean, default: false }) error!: boolean;
|
|
45
|
+
/** Renders the success state */
|
|
43
46
|
@Prop({ type: Boolean, default: false }) success!: boolean;
|
|
44
47
|
|
|
45
48
|
get shouldAutoDismiss(): boolean {
|
|
@@ -46,11 +46,15 @@ import { RawLocation } from 'vue-router';
|
|
|
46
46
|
|
|
47
47
|
@Component({ name: 'CButton', components: { FontAwesomeIcon } })
|
|
48
48
|
export default class CButton extends Vue {
|
|
49
|
+
/** Controls whether button appears as full-width */
|
|
49
50
|
@Prop({ type: Boolean, default: false }) block!: boolean;
|
|
51
|
+
/** Renders navy variant */
|
|
50
52
|
@Prop({ type: Boolean, default: false }) dark!: boolean;
|
|
51
53
|
@Prop({ type: Boolean, default: false }) disabled!: boolean;
|
|
54
|
+
/** Chooses an icon to render on the left side of the button */
|
|
52
55
|
@Prop([String, Array, Object]) icon?: IconDefinition;
|
|
53
56
|
@Prop({ type: Boolean, default: false }) large!: boolean;
|
|
57
|
+
/** Renders white variant */
|
|
54
58
|
@Prop({ type: Boolean, default: false }) light!: boolean;
|
|
55
59
|
@Prop({ type: Boolean, default: false }) secondary!: boolean;
|
|
56
60
|
@Prop({ type: Boolean, default: false }) tertiary!: boolean;
|
|
@@ -28,12 +28,15 @@ interface ColorScheme {
|
|
|
28
28
|
|
|
29
29
|
@Component({ name: 'CIconButton', components: { FontAwesomeIcon } })
|
|
30
30
|
export default class CIconButton extends Vue {
|
|
31
|
+
/** Renders a filled circle around the button */
|
|
31
32
|
@Prop({ type: Boolean, default: false }) contained!: boolean;
|
|
33
|
+
/** Renders the navy variant */
|
|
32
34
|
@Prop({ type: Boolean, default: false }) dark!: boolean;
|
|
35
|
+
/** Renders the white variant */
|
|
33
36
|
@Prop({ type: Boolean, default: false }) light!: boolean;
|
|
34
37
|
@Prop({ type: [String, Array, Object], required: true }) icon!: IconDefinition;
|
|
38
|
+
/** Spins the icon for loading states */
|
|
35
39
|
@Prop({ type: Boolean, default: false }) spinIcon!: boolean;
|
|
36
|
-
@Prop({ type: Boolean, default: false }) tertiary!: boolean;
|
|
37
40
|
@Prop([Object, String]) to?: RawLocation;
|
|
38
41
|
@Prop(String) href?: string;
|
|
39
42
|
@Prop(String) target?: string;
|
|
@@ -36,6 +36,7 @@ export default class CListItem extends Vue {
|
|
|
36
36
|
faChevronRight = faChevronRight;
|
|
37
37
|
|
|
38
38
|
@Prop([String, Array, Object]) icon?: IconDefinition;
|
|
39
|
+
/** Makes the whole row tappable. Renders the right chevron. */
|
|
39
40
|
@Prop({ type: Boolean, default: true }) tappable!: boolean;
|
|
40
41
|
@Prop([String, Object]) to?: RawLocation;
|
|
41
42
|
@Prop(String) target?: string;
|
|
@@ -59,9 +59,10 @@ export default class CModal extends Vue {
|
|
|
59
59
|
faSync = faSync;
|
|
60
60
|
faTimes = faTimes;
|
|
61
61
|
|
|
62
|
+
/** Controls whether or not the modal is showing */
|
|
62
63
|
@Prop({ type: Boolean, default: false }) value!: boolean;
|
|
63
64
|
@Prop(String) title?: string;
|
|
64
|
-
/** Shows loading state
|
|
65
|
+
/** Shows loading state and sets loading message if string */
|
|
65
66
|
@Prop([String, Boolean]) loading?: string | boolean;
|
|
66
67
|
/** Allows modal to be dismissed */
|
|
67
68
|
@Prop({ type: Boolean, default: true }) dismissible!: boolean;
|
|
@@ -33,6 +33,7 @@ interface SegmentedButtonOption {
|
|
|
33
33
|
export default class CSegmentedButton extends Vue {
|
|
34
34
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
35
35
|
@Prop() value?: any;
|
|
36
|
+
/** An array of options like `{ value: true, label: 'Yes' }` */
|
|
36
37
|
@Prop({ type: Array, required: true }) options!: SegmentedButtonOption[];
|
|
37
38
|
}
|
|
38
39
|
</script>
|
|
@@ -56,9 +56,11 @@ export default class CSelect extends Vue {
|
|
|
56
56
|
@Prop(String) label?: string;
|
|
57
57
|
@Prop(String) placeholder?: string;
|
|
58
58
|
@Prop({ type: String, required: true }) id!: string;
|
|
59
|
+
/** List of options like `{ label: 'Yes', value: 'yes' }` */
|
|
59
60
|
@Prop({ type: Array, default: () => [] }) items!: { label: string; value: string }[];
|
|
60
61
|
@Prop({ type: Boolean, default: false }) disabled!: boolean;
|
|
61
62
|
@Prop({ type: String, default: '' }) value!: string;
|
|
63
|
+
/** Prefix for test selectors */
|
|
62
64
|
@Prop({ type: String, default: 'select-field' }) dataTest!: string;
|
|
63
65
|
@Prop({ type: Boolean, default: false }) loading!: boolean;
|
|
64
66
|
@Prop({ type: Array, default: () => [] }) rules!: ((value: string) => string | boolean)[];
|
package/src/colors/theme.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
[x: string]: import("vuetify/types/services/theme").VuetifyThemeItem;
|
|
3
|
-
primary?: import("vuetify/types/services/theme").VuetifyThemeItem;
|
|
4
|
-
secondary?: import("vuetify/types/services/theme").VuetifyThemeItem;
|
|
5
|
-
accent?: import("vuetify/types/services/theme").VuetifyThemeItem;
|
|
6
|
-
info?: import("vuetify/types/services/theme").VuetifyThemeItem;
|
|
7
|
-
warning?: import("vuetify/types/services/theme").VuetifyThemeItem;
|
|
8
|
-
error?: import("vuetify/types/services/theme").VuetifyThemeItem;
|
|
9
|
-
success?: import("vuetify/types/services/theme").VuetifyThemeItem;
|
|
10
|
-
anchor?: string | number | undefined;
|
|
11
|
-
};
|
|
12
|
-
export default _default;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import _CAlert from '../components/CAlert.vue';
|
|
2
|
-
export declare const CAlert: import("vue").VueConstructor<_CAlert>;
|
|
3
|
-
export declare const CBanner: import("vue").VueConstructor<_CAlert>;
|
|
4
|
-
export declare const CButton: import("vue").VueConstructor<_CAlert>;
|
|
5
|
-
export declare const CCard: import("vue").VueConstructor<_CAlert>;
|
|
6
|
-
export declare const CCardFooter: import("vue").VueConstructor<_CAlert>;
|
|
7
|
-
export declare const CCardHeader: import("vue").VueConstructor<_CAlert>;
|
|
8
|
-
export declare const CCardSection: import("vue").VueConstructor<_CAlert>;
|
|
9
|
-
export declare const CCheckbox: import("vue").VueConstructor<_CAlert>;
|
|
10
|
-
export declare const CIconButton: import("vue").VueConstructor<_CAlert>;
|
|
11
|
-
export declare const CListItem: import("vue").VueConstructor<_CAlert>;
|
|
12
|
-
export declare const CModal: import("vue").VueConstructor<_CAlert>;
|
|
13
|
-
export declare const CModalLoading: import("vue").VueConstructor<_CAlert>;
|
|
14
|
-
export declare const CSegmentedButton: import("vue").VueConstructor<_CAlert>;
|
|
15
|
-
export declare const CSegmentedButtonOption: import("vue").VueConstructor<_CAlert>;
|
|
16
|
-
export declare const CSelect: import("vue").VueConstructor<_CAlert>;
|
|
17
|
-
export declare const CSkeletonLoaderCircle: import("vue").VueConstructor<_CAlert>;
|
|
18
|
-
export declare const CSkeletonLoaderText: import("vue").VueConstructor<_CAlert>;
|
|
19
|
-
export declare const CTextArea: import("vue").VueConstructor<_CAlert>;
|
|
20
|
-
export declare const CTextField: import("vue").VueConstructor<_CAlert>;
|
|
21
|
-
export declare const CTextLink: import("vue").VueConstructor<_CAlert>;
|
package/src/index.d.ts
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import plugin from './plugin';
|
|
2
|
-
import './styles/core.less';
|
|
3
|
-
export default plugin;
|
|
4
|
-
export declare const Colors: {
|
|
5
|
-
"color-providers-green-tint-2": string;
|
|
6
|
-
"color-providers-green-tint-1": string;
|
|
7
|
-
"color-providers-green": string;
|
|
8
|
-
"color-accent-green": string;
|
|
9
|
-
"color-accent-green-shade-1": string;
|
|
10
|
-
"color-accent-green-shade-2": string;
|
|
11
|
-
"color-providers-blue-tint-2": string;
|
|
12
|
-
"color-providers-blue-tint-1": string;
|
|
13
|
-
"color-providers-blue": string;
|
|
14
|
-
"color-accent-blue": string;
|
|
15
|
-
"color-accent-blue-shade-1": string;
|
|
16
|
-
"color-accent-blue-shade-2": string;
|
|
17
|
-
"color-navy-tint-4": string;
|
|
18
|
-
"color-navy-tint-3": string;
|
|
19
|
-
"color-navy-tint-2": string;
|
|
20
|
-
"color-navy-tint-1": string;
|
|
21
|
-
"color-navy": string;
|
|
22
|
-
"color-neutral": string;
|
|
23
|
-
"color-neutral-shade": string;
|
|
24
|
-
"color-white": string;
|
|
25
|
-
"color-purple": string;
|
|
26
|
-
"color-pink": string;
|
|
27
|
-
"color-orange": string;
|
|
28
|
-
"color-peach": string;
|
|
29
|
-
"color-yellow": string;
|
|
30
|
-
"color-lemon": string;
|
|
31
|
-
"color-alert-red": string;
|
|
32
|
-
};
|
|
33
|
-
export declare const Theme: {
|
|
34
|
-
[x: string]: import("vuetify/types/services/theme").VuetifyThemeItem;
|
|
35
|
-
primary?: import("vuetify/types/services/theme").VuetifyThemeItem;
|
|
36
|
-
secondary?: import("vuetify/types/services/theme").VuetifyThemeItem;
|
|
37
|
-
accent?: import("vuetify/types/services/theme").VuetifyThemeItem;
|
|
38
|
-
info?: import("vuetify/types/services/theme").VuetifyThemeItem;
|
|
39
|
-
warning?: import("vuetify/types/services/theme").VuetifyThemeItem;
|
|
40
|
-
error?: import("vuetify/types/services/theme").VuetifyThemeItem;
|
|
41
|
-
success?: import("vuetify/types/services/theme").VuetifyThemeItem;
|
|
42
|
-
anchor?: string | number | undefined;
|
|
43
|
-
};
|
|
44
|
-
export declare const Icons: Partial<import("vuetify/types/services/icons").VuetifyIcons>;
|
|
45
|
-
export * from './components/index';
|
package/src/plugin.d.ts
DELETED
package/src/theme/icons.d.ts
DELETED