pangea-lib 1.9.0 → 1.9.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 @@
1
+ export type Message = string | (() => string);
@@ -0,0 +1,17 @@
1
+ import { Message } from './PgaDisplayText.types';
2
+
3
+ declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{
4
+ text: Message;
5
+ }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
6
+ text: Message;
7
+ }>>>, {}, {}>;
8
+ export default _default;
9
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
10
+ type __VLS_TypePropsToRuntimeProps<T> = {
11
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
12
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
13
+ } : {
14
+ type: import('vue').PropType<T[K]>;
15
+ required: true;
16
+ };
17
+ };
@@ -0,0 +1,3 @@
1
+ export { default as PgaIcon } from './pga-icon/PgaIcon.vue';
2
+ export { default as PgaDisplayText } from './display-components/pga-display-text/PgaDisplayText.vue';
3
+ export { default as PgaSelect } from './input-components/pga-select/PgaSelect.vue';
@@ -0,0 +1,2 @@
1
+ export type ID = any;
2
+ export type Option = any;
@@ -0,0 +1,43 @@
1
+ import { Message } from '../../display-components/pga-display-text/PgaDisplayText.types';
2
+
3
+ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
4
+ modelValue: {
5
+ required: true;
6
+ type: import('vue').PropType<any>;
7
+ };
8
+ options: {
9
+ type: import('vue').PropType<any[]>;
10
+ required: true;
11
+ };
12
+ emptyOptionsMsg: {
13
+ type: import('vue').PropType<Message>;
14
+ };
15
+ disabled: {
16
+ type: import('vue').PropType<boolean>;
17
+ };
18
+ }, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
19
+ modelValue: {
20
+ required: true;
21
+ type: import('vue').PropType<any>;
22
+ };
23
+ options: {
24
+ type: import('vue').PropType<any[]>;
25
+ required: true;
26
+ };
27
+ emptyOptionsMsg: {
28
+ type: import('vue').PropType<Message>;
29
+ };
30
+ disabled: {
31
+ type: import('vue').PropType<boolean>;
32
+ };
33
+ }>>, {}, {}>, {
34
+ dropdownOption?(_: {
35
+ option: any;
36
+ }): any;
37
+ }>;
38
+ export default _default;
39
+ type __VLS_WithTemplateSlots<T, S> = T & {
40
+ new (): {
41
+ $slots: S;
42
+ };
43
+ };
@@ -0,0 +1,5 @@
1
+ import { IconName as FontawesomeIconName } from '@fortawesome/fontawesome-svg-core';
2
+
3
+ export type IconType = 'fas' | 'far' | 'fab';
4
+ export type IconName = FontawesomeIconName;
5
+ export type Icon = [IconType, IconName];
@@ -0,0 +1,17 @@
1
+ import { IconName, Icon } from './PgaIcon.types';
2
+
3
+ declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{
4
+ icon: Icon | IconName;
5
+ }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
6
+ icon: Icon | IconName;
7
+ }>>>, {}, {}>;
8
+ export default _default;
9
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
10
+ type __VLS_TypePropsToRuntimeProps<T> = {
11
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
12
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
13
+ } : {
14
+ type: import('vue').PropType<T[K]>;
15
+ required: true;
16
+ };
17
+ };
@@ -0,0 +1,3 @@
1
+ import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome';
2
+
3
+ export { FontAwesomeIcon };
@@ -0,0 +1,4 @@
1
+ import { PangeaOptions } from './types/pangea-options';
2
+
3
+ declare const pangeaOptions: PangeaOptions;
4
+ export default pangeaOptions;
@@ -0,0 +1,5 @@
1
+ import { App } from 'vue';
2
+ import { PangeaOptions } from './types/pangea-options';
3
+
4
+ declare const _default: (app: App, userOptions?: PangeaOptions) => void;
5
+ export default _default;
@@ -0,0 +1,6 @@
1
+ export type PangeaOptions = {
2
+ colors: {
3
+ first: string;
4
+ second: string;
5
+ };
6
+ };
package/package.json CHANGED
@@ -1,25 +1,25 @@
1
1
  {
2
2
  "name": "pangea-lib",
3
- "version": "1.9.0",
3
+ "version": "1.9.2",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist",
8
8
  "src/styles"
9
9
  ],
10
- "main": "./dist/pangea.umd.cjs",
11
- "module": "./dist/pangea.js",
10
+ "main": "./dist/index.umd.js",
11
+ "module": "./dist/index.es.js",
12
12
  "exports": {
13
13
  ".": {
14
- "import": "./dist/pangea.js",
15
- "require": "./dist/pangea.umd.cjs",
16
- "types": "./dist/index.d.ts"
14
+ "require": "./dist/pangea.umd.js",
15
+ "import": "./dist/index.es.js",
16
+ "types": "./dist/types/index.d.ts"
17
17
  },
18
18
  "./style.css": "./dist/style.css"
19
19
  },
20
- "types": "./dist/index.d.ts",
20
+ "types": "./dist/types/index.d.ts",
21
21
  "scripts": {
22
- "build": "vue-tsc --noEmit && vite build",
22
+ "build": "vue-tsc && vite build",
23
23
  "deploy": "node deploy.js"
24
24
  },
25
25
  "keywords": [
@@ -53,6 +53,7 @@
53
53
  "stylus": "^0.59.0",
54
54
  "typescript": "^5.0.2",
55
55
  "vite": "^4.3.9",
56
+ "vite-plugin-dts": "^3.9.1",
56
57
  "vue-tsc": "^1.4.2",
57
58
  "yarn": "^1.22.22"
58
59
  }
File without changes
File without changes