@propelinc/citrus-ui 0.4.0-dev.0 → 0.4.0-dev.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.
@@ -0,0 +1,12 @@
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;
@@ -0,0 +1,21 @@
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>;
@@ -0,0 +1,45 @@
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';
@@ -0,0 +1,3 @@
1
+ import { PluginObject } from 'vue';
2
+ declare const plugin: PluginObject<never>;
3
+ export default plugin;
@@ -0,0 +1,3 @@
1
+ import { VuetifyIcons } from 'vuetify/types/services/icons';
2
+ declare const Icons: Partial<VuetifyIcons>;
3
+ export default Icons;
package/index.d.ts ADDED
@@ -0,0 +1,45 @@
1
+ import plugin from './src/plugin';
2
+ import './src/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 './src/components/index';
package/package.json CHANGED
@@ -1,15 +1,16 @@
1
1
  {
2
2
  "name": "@propelinc/citrus-ui",
3
- "version": "0.4.0-dev.0",
3
+ "version": "0.4.0-dev.2",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/propelinc/citrus-ui"
7
7
  },
8
8
  "license": "UNLICENSED",
9
9
  "scripts": {
10
- "build:dist": "vue-cli-service build --target lib ./src/index.ts",
10
+ "build:dist": "vue-cli-service build --target lib ./src/index.ts && npm run generate:types",
11
11
  "build:storybook": "vue-cli-service storybook:build -c .storybook",
12
12
  "generate:component": "plop component",
13
+ "generate:types": "tsc --project tsconfig.json --declaration --emitDeclarationOnly && tsc-alias -p tsconfig.json",
13
14
  "lint": "npm run lint:js && npm run lint:css",
14
15
  "lint:css": "stylelint \"src/**/*.(vue|less)\"",
15
16
  "lint:js": "vue-cli-service lint",
@@ -68,6 +69,7 @@
68
69
  "stylelint-config-prettier": "^8.0.2",
69
70
  "stylelint-config-standard": "^22.0.0",
70
71
  "stylelint-order": "^4.1.0",
72
+ "tsc-alias": "1.3.7",
71
73
  "typescript": "~4.1.5",
72
74
  "vue-cli-plugin-storybook": "~2.0.0",
73
75
  "vue-cli-plugin-vuetify": "~2.4.0",
package/plugin.d.ts ADDED
@@ -0,0 +1,3 @@
1
+ import { PluginObject } from 'vue';
2
+ declare const plugin: PluginObject<never>;
3
+ export default plugin;
@@ -0,0 +1,12 @@
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,22 +1,21 @@
1
- import Vue, { VueConstructor } from 'vue';
2
-
3
- export const CAlert: VueConstructor<Vue>;
4
- export const CBanner: VueConstructor<Vue>;
5
- export const CButton: VueConstructor<Vue>;
6
- export const CCard: VueConstructor<Vue>;
7
- export const CCardFooter: VueConstructor<Vue>;
8
- export const CCardHeader: VueConstructor<Vue>;
9
- export const CCardSection: VueConstructor<Vue>;
10
- export const CCheckbox: VueConstructor<Vue>;
11
- export const CIconButton: VueConstructor<Vue>;
12
- export const CListItem: VueConstructor<Vue>;
13
- export const CModal: VueConstructor<Vue>;
14
- export const CModalLoading: VueConstructor<Vue>;
15
- export const CSegmentedButton: VueConstructor<Vue>;
16
- export const CSegmentedButtonOption: VueConstructor<Vue>;
17
- export const CSelect: VueConstructor<Vue>;
18
- export const CSkeletonLoaderCircle: VueConstructor<Vue>;
19
- export const CSkeletonLoaderText: VueConstructor<Vue>;
20
- export const CTextArea: VueConstructor<Vue>;
21
- export const CTextField: VueConstructor<Vue>;
22
- export const CTextLink: VueConstructor<Vue>;
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 CHANGED
@@ -1,9 +1,45 @@
1
- import _Colors from './colors/colors.json';
2
- import _Theme from './colors/theme';
3
- import _Icons from './theme/icons';
4
-
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>;
5
45
  export * from './components/index';
6
-
7
- export const Theme: typeof _Theme;
8
- export const Colors: typeof _Colors;
9
- export const Icons: typeof _Icons;
package/src/index.ts CHANGED
@@ -1,11 +1,15 @@
1
- import _Colors from '@/colors/colors.json';
2
1
  import _Theme from '@/colors/theme';
2
+ import plugin from '@/plugin';
3
3
  import _Icons from '@/theme/icons';
4
4
 
5
+ import _Colors from './colors/colors.json';
6
+
5
7
  import '@/styles/core.less';
6
8
 
7
- export * from './components/index';
9
+ export default plugin;
8
10
 
9
11
  export const Colors = _Colors;
10
12
  export const Theme = _Theme;
11
13
  export const Icons = _Icons;
14
+
15
+ export * from '@/components/index';
@@ -0,0 +1,3 @@
1
+ import { PluginObject } from 'vue';
2
+ declare const plugin: PluginObject<never>;
3
+ export default plugin;
package/src/plugin.ts CHANGED
@@ -1,16 +1,13 @@
1
- import Vue from 'vue';
2
- import { UserVuetifyPreset } from 'vuetify';
1
+ import _Vue, { PluginObject } from 'vue';
3
2
 
4
3
  import * as Components from '@/components';
5
4
 
6
- export interface PluginOptions {
7
- vuetify?: UserVuetifyPreset;
8
- }
9
-
10
- export default {
11
- install(_Vue: typeof Vue): void {
5
+ const plugin: PluginObject<never> = {
6
+ install(Vue: typeof _Vue): void {
12
7
  Object.entries(Components).forEach(([name, component]) => {
13
- _Vue.component(name, component);
8
+ Vue.component(name, component);
14
9
  });
15
10
  },
16
11
  };
12
+
13
+ export default plugin;
@@ -0,0 +1,3 @@
1
+ import { VuetifyIcons } from 'vuetify/types/services/icons';
2
+ declare const Icons: Partial<VuetifyIcons>;
3
+ export default Icons;
@@ -0,0 +1,3 @@
1
+ import { VuetifyIcons } from 'vuetify/types/services/icons';
2
+ declare const Icons: Partial<VuetifyIcons>;
3
+ export default Icons;
package/tsconfig.json CHANGED
@@ -28,16 +28,15 @@
28
28
  "dom",
29
29
  "dom.iterable",
30
30
  "scripthost"
31
- ]
31
+ ],
32
+ "outDir": "dist"
32
33
  },
33
34
  "include": [
34
35
  "src/**/*.ts",
35
- "src/**/*.tsx",
36
- "src/**/*.vue",
37
- "tests/**/*.ts",
38
- "tests/**/*.tsx"
36
+ "src/**/*.vue"
39
37
  ],
40
38
  "exclude": [
41
- "node_modules"
39
+ "node_modules",
40
+ ".storybook"
42
41
  ]
43
42
  }