@appmax_npm/ds-prime 1.0.0-alpha.11 → 1.0.0-alpha.13

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 { default } from 'primevue/button';
@@ -0,0 +1 @@
1
+ export { default } from 'primevue/button';
@@ -0,0 +1 @@
1
+ export declare const AmPreset: any;
@@ -0,0 +1,76 @@
1
+ import { definePreset } from '@primevue/themes';
2
+ import Lara from '@primevue/themes/lara';
3
+ export var AmPreset = definePreset(Lara, {
4
+ primitive: {
5
+ purple: {
6
+ 50: '#f7f3ff',
7
+ 100: '#f0e8ff',
8
+ 200: '#e4d6ff',
9
+ 300: '#ccb2ff',
10
+ 400: '#b28bff',
11
+ 500: '#9b6afa',
12
+ 600: '#7443d6',
13
+ 700: '#623dae',
14
+ 800: '#4d2f89',
15
+ 900: '#372263'
16
+ }
17
+ },
18
+ semantic: {
19
+ primary: {
20
+ 50: '{purple.50}',
21
+ 100: '{purple.100}',
22
+ 200: '{purple.200}',
23
+ 300: '{purple.300}',
24
+ 400: '{purple.400}',
25
+ 500: '{purple.500}',
26
+ 600: '{purple.600}',
27
+ 700: '{purple.700}',
28
+ 800: '{purple.800}',
29
+ 900: '{purple.900}',
30
+ 950: '{purple.950}'
31
+ },
32
+ colorScheme: {
33
+ light: {
34
+ surface: {
35
+ 0: '#ffffff',
36
+ 50: '#fafafa',
37
+ 100: '#f5f5f5',
38
+ 200: '#eeeeee',
39
+ 300: '#e0e0e0',
40
+ 400: '#bdbdbd',
41
+ 500: '#9e9e9e',
42
+ 600: '#757575',
43
+ 700: '#616161',
44
+ 800: '#424242',
45
+ 900: '#212121'
46
+ },
47
+ primary: {
48
+ color: '{primary.500}',
49
+ contrastColor: '{surface.0}',
50
+ hoverColor: '{primary.600}',
51
+ activeColor: '{primary.700}'
52
+ },
53
+ highlight: {
54
+ background: '{primary.50}',
55
+ focusBackground: '{primary.100}',
56
+ color: '{primary.700}',
57
+ focusColor: '{primary.800}'
58
+ }
59
+ },
60
+ dark: {
61
+ primary: {
62
+ color: '{primary.400}',
63
+ contrastColor: '{surface.900}',
64
+ hoverColor: '{primary.300}',
65
+ activeColor: '{primary.200}'
66
+ },
67
+ highlight: {
68
+ background: 'color-mix(in srgb, {primary.400}, transparent 84%)',
69
+ focusBackground: 'color-mix(in srgb, {primary.400}, transparent 76%)',
70
+ color: 'rgba(255,255,255,.87)',
71
+ focusColor: 'rgba(255,255,255,.87)'
72
+ }
73
+ }
74
+ }
75
+ }
76
+ });
@@ -0,0 +1,2 @@
1
+ import type { PrimeVueConfiguration } from 'primevue/config';
2
+ export declare const AmDSPrimeConfig: PrimeVueConfiguration;
@@ -0,0 +1,9 @@
1
+ import { AmPreset } from './preset';
2
+ export var AmDSPrimeConfig = {
3
+ theme: {
4
+ preset: AmPreset,
5
+ options: {
6
+ darkModeSelector: '.p-dark'
7
+ }
8
+ }
9
+ };
package/index.d.ts CHANGED
@@ -1,2 +1,3 @@
1
- import type { PrimeVueConfiguration } from 'primevue/config';
2
- export declare const appmaxPrimeConfig: PrimeVueConfiguration;
1
+ import type { Plugin } from 'vue';
2
+ export declare const AmDSPrime: Plugin;
3
+ export default AmDSPrime;
package/index.js ADDED
@@ -0,0 +1,8 @@
1
+ import Primevue from 'primevue/config';
2
+ import { AmDSPrimeConfig } from './config/theme';
3
+ export var AmDSPrime = {
4
+ install: function (app) {
5
+ app.use(Primevue, AmDSPrimeConfig);
6
+ }
7
+ };
8
+ export default AmDSPrime;
package/package.json CHANGED
@@ -1,17 +1,18 @@
1
1
  {
2
2
  "name": "@appmax_npm/ds-prime",
3
- "version": "1.0.0-alpha.11",
3
+ "version": "1.0.0-alpha.13",
4
4
  "description": "Design System da Appmax baseado no Primevue",
5
5
  "author": "Appmax",
6
6
  "type": "module",
7
- "main": "./index.umd.js",
8
- "module": "/index.es.js",
9
- "types": "./index.d.ts",
7
+ "exports": {
8
+ ".": "./index.js",
9
+ "./*": "./*/index.js"
10
+ },
10
11
  "dependencies": {
11
- "@primevue/themes": "^4.0.4"
12
+ "@primevue/themes": "^4.0.4",
13
+ "primevue": "^4.0.4"
12
14
  },
13
15
  "peerDependencies": {
14
- "primevue": "^4.0.4",
15
16
  "vue": "^3.0.0"
16
17
  }
17
18
  }