pangea-lib 2.1.1 → 2.2.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.
@@ -1,13 +1,15 @@
1
+ import { Size } from '../types';
2
+
1
3
  declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
2
- size?: string;
4
+ size?: Size;
3
5
  }>, {
4
6
  size: string;
5
7
  }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
6
- size?: string;
8
+ size?: Size;
7
9
  }>, {
8
10
  size: string;
9
11
  }>>>, {
10
- size: string;
12
+ size: Size;
11
13
  }, {}>;
12
14
  export default _default;
13
15
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
@@ -1,45 +1,29 @@
1
- import { ColorNameUnique } from '../colors';
1
+ import { ColorNameUnique } from '../../colors';
2
+ import { Icon, TextProp, Size } from '../../types';
2
3
 
3
4
  declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
5
+ icon?: Icon;
6
+ text?: TextProp;
7
+ type?: ColorNameUnique;
8
+ size?: Size;
4
9
  isLoading?: boolean;
5
10
  numberToDisplay?: number;
6
- href?: string;
7
- target?: string;
8
- type?: "link" | ColorNameUnique;
9
- size?: "s" | "xs" | "m" | "l";
10
- paddingY?: string;
11
- paddingX?: string;
12
- borderRadius?: string;
13
- textDecoration?: string;
14
11
  }>, {
15
- isLoading: boolean;
16
- href: any;
17
- target: string;
18
12
  type: string;
19
13
  size: string;
20
14
  }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
15
+ icon?: Icon;
16
+ text?: TextProp;
17
+ type?: ColorNameUnique;
18
+ size?: Size;
21
19
  isLoading?: boolean;
22
20
  numberToDisplay?: number;
23
- href?: string;
24
- target?: string;
25
- type?: "link" | ColorNameUnique;
26
- size?: "s" | "xs" | "m" | "l";
27
- paddingY?: string;
28
- paddingX?: string;
29
- borderRadius?: string;
30
- textDecoration?: string;
31
21
  }>, {
32
- isLoading: boolean;
33
- href: any;
34
- target: string;
35
22
  type: string;
36
23
  size: string;
37
24
  }>>>, {
38
- size: "s" | "xs" | "m" | "l";
39
- type: "link" | ColorNameUnique;
40
- isLoading: boolean;
41
- href: string;
42
- target: string;
25
+ size: Size;
26
+ type: ColorNameUnique;
43
27
  }, {}>, {
44
28
  default?(_: {}): any;
45
29
  }>;
@@ -0,0 +1,42 @@
1
+ import { TextProp } from '../../types';
2
+
3
+ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
4
+ text?: TextProp;
5
+ href: string;
6
+ target?: string;
7
+ }>, {
8
+ target: string;
9
+ }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
10
+ text?: TextProp;
11
+ href: string;
12
+ target?: string;
13
+ }>, {
14
+ target: string;
15
+ }>>>, {
16
+ target: string;
17
+ }, {}>, {
18
+ default?(_: {}): any;
19
+ }>;
20
+ export default _default;
21
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
22
+ type __VLS_TypePropsToRuntimeProps<T> = {
23
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
24
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
25
+ } : {
26
+ type: import('vue').PropType<T[K]>;
27
+ required: true;
28
+ };
29
+ };
30
+ type __VLS_WithDefaults<P, D> = {
31
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
32
+ default: D[K];
33
+ }> : P[K];
34
+ };
35
+ type __VLS_Prettify<T> = {
36
+ [K in keyof T]: T[K];
37
+ } & {};
38
+ type __VLS_WithTemplateSlots<T, S> = T & {
39
+ new (): {
40
+ $slots: S;
41
+ };
42
+ };
@@ -0,0 +1,24 @@
1
+ import { TextProp } from '../../types';
2
+
3
+ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{
4
+ text?: TextProp;
5
+ }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
6
+ text?: TextProp;
7
+ }>>>, {}, {}>, {
8
+ default?(_: {}): any;
9
+ }>;
10
+ export default _default;
11
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
12
+ type __VLS_TypePropsToRuntimeProps<T> = {
13
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
14
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
15
+ } : {
16
+ type: import('vue').PropType<T[K]>;
17
+ required: true;
18
+ };
19
+ };
20
+ type __VLS_WithTemplateSlots<T, S> = T & {
21
+ new (): {
22
+ $slots: S;
23
+ };
24
+ };
@@ -1,5 +1,4 @@
1
1
  export { default as PgaBadge } from './PgaBadge.vue';
2
- export { default as PgaButton } from './PgaButton.vue';
3
2
  export { default as PgaIcon } from './PgaIcon.vue';
4
3
  export { default as PgaInfoCard } from './PgaInfoCard.vue';
5
4
  export { default as PgaInfoCardFullPage } from './PgaInfoCardFullPage.vue';
@@ -8,6 +7,9 @@ export { default as PgaModal } from './PgaModal.vue';
8
7
  export { default as PgaNoData } from './PgaNoData.vue';
9
8
  export { default as PgaSelector } from './PgaSelector.vue';
10
9
  export { default as PgaSpinner } from './PgaSpinner.vue';
10
+ export { default as PgaButton } from './button/PgaButton.vue';
11
+ export { default as PgaHyperlink } from './button/PgaHyperlink.vue';
12
+ export { default as PgaLink } from './button/PgaLink.vue';
11
13
  export { default as PgaChartBar } from './chart/PgaChartBar.vue';
12
14
  export { default as PgaDisplayText } from './display/PgaDisplayText.vue';
13
15
  export { default as PgaDatePicker } from './form/PgaDatePicker.vue';
@@ -2,6 +2,7 @@ export * from './chart';
2
2
  export * from './icon';
3
3
  export * from './image';
4
4
  export * from './populate';
5
+ export * from './size';
5
6
  export type Id = any;
6
7
  export type ConstructorParams<T> = {
7
8
  [K in keyof T]?: T[K];
@@ -0,0 +1,5 @@
1
+ export type UnitAbsolute = 'px' | 'cm' | 'mm' | 'in' | 'pt' | 'pc';
2
+ export type UnitRelative = 'em' | 'rem' | 'vw' | 'vh' | '%' | 'ch' | 'ex' | 'vmin' | 'vmax';
3
+ export type SizeAbsolute = `${number}${UnitAbsolute}`;
4
+ export type SizeRelative = `${number}${UnitRelative}`;
5
+ export type Size = SizeAbsolute | SizeRelative | 'initial' | 'inherit';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pangea-lib",
3
3
  "description": "",
4
- "version": "2.1.1",
4
+ "version": "2.2.0",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist"