pangea-lib 2.0.0 → 2.0.1

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.
Files changed (40) hide show
  1. package/README.md +61 -1
  2. package/dist/main.cjs.js +22 -17
  3. package/dist/main.css +7 -0
  4. package/dist/main.es.js +21751 -20592
  5. package/{src → dist}/styles/helpers.styl +7 -14
  6. package/dist/styles/index.styl +2 -0
  7. package/dist/styles/responsive-font-size.css +1 -0
  8. package/dist/styles/scrollbar.css +1 -0
  9. package/dist/styles/variables/breakpoints.styl +10 -0
  10. package/dist/styles/variables/index.styl +1 -0
  11. package/dist/types/colors/all-colors.d.ts +3 -0
  12. package/dist/types/colors/colors.helpers.d.ts +3 -0
  13. package/dist/types/colors/colors.store.d.ts +96 -0
  14. package/dist/types/colors/colors.types.d.ts +12 -0
  15. package/dist/types/colors/index.d.ts +6 -0
  16. package/dist/types/components/PgaBadge.vue.d.ts +4 -2
  17. package/dist/types/components/PgaButton.vue.d.ts +8 -6
  18. package/dist/types/components/PgaInfoCardFullPage.vue.d.ts +2 -2
  19. package/dist/types/components/PgaSelector.vue.d.ts +11 -10
  20. package/dist/types/components/chart/{PgaBarChart.vue.d.ts → PgaChartBar.vue.d.ts} +5 -5
  21. package/dist/types/components/display/PgaDisplayText.vue.d.ts +3 -3
  22. package/dist/types/components/form/PgaSelect.vue.d.ts +3 -3
  23. package/dist/types/components/index.d.ts +1 -1
  24. package/dist/types/default-pangea-options.d.ts +4 -1
  25. package/dist/types/helpers/css.d.ts +1 -0
  26. package/dist/types/helpers/index.d.ts +1 -1
  27. package/dist/types/i18n/create-i18n.d.ts +10 -0
  28. package/dist/types/i18n/i18n.d.ts +14 -3
  29. package/dist/types/i18n/i18n.store.d.ts +11 -8
  30. package/dist/types/i18n/index.d.ts +2 -0
  31. package/dist/types/main.d.ts +3 -1
  32. package/dist/types/types/chart.d.ts +6 -6
  33. package/dist/types/types/index.d.ts +2 -2
  34. package/package.json +13 -7
  35. package/dist/style.css +0 -1
  36. package/dist/types/helpers/animation.d.ts +0 -1
  37. package/dist/types/i18n/i18n.types.d.ts +0 -9
  38. package/dist/types/types/pangea-options.d.ts +0 -6
  39. package/src/styles/index.styl +0 -2
  40. package/src/styles/variables.styl +0 -64
package/README.md CHANGED
@@ -1 +1,61 @@
1
- # PANGEA
1
+ # Pangea
2
+
3
+ ## Installation
4
+
5
+ Install the following packages in your project with npm or yarn:
6
+
7
+ ```bash
8
+ 1. yarn add pangea-lib
9
+ 2. yarn add pinia
10
+ 3. yarn add pinia-plugin-persistedstate
11
+ ```
12
+
13
+ In the `main` file:
14
+
15
+ ```javascript
16
+ import { createApp } from 'vue';
17
+ import App from '@/App.vue';
18
+ // pinia
19
+ import { createPinia } from 'pinia';
20
+ import { createPersistedState } from 'pinia-plugin-persistedstate';
21
+ // pangea
22
+ import pangea from 'pangea-lib';
23
+ // styles
24
+ import 'pangea-lib/main.css';
25
+ import 'pangea-lib/responsive-font-size.css'; // (OPTIONAL) responsive font size
26
+ import 'pangea-lib/scrollbar.css'; // (OPTIONAL) styles for scrollbars
27
+
28
+ // create app
29
+ const app = createApp(App);
30
+ // pinia
31
+ const pinia = createPinia();
32
+ pinia.use(createPersistedState({ storage: localStorage }));
33
+ app.use(pinia);
34
+ // pangea
35
+ app.use(pangea, pangeaOptions); // pangeaOptions object is OPTIONAL
36
+ // mount
37
+ app.mount('#app');
38
+ ```
39
+
40
+ > **Note**: Pangea includes sanitize.css by default.
41
+
42
+ If you want to use the Stylus helpers:
43
+
44
+ 1. `yarn add stylus --dev`
45
+ 2. Add the following to your `vite.config`:
46
+
47
+ ```javascript
48
+ import { defineConfig } from 'vite';
49
+
50
+ export default defineConfig({
51
+ css: {
52
+ preprocessorOptions: {
53
+ stylus: {
54
+ additionalData: `
55
+ @import "pangea-lib/dist/styles/index.styl";
56
+ `,
57
+ },
58
+ },
59
+ },
60
+ });
61
+ ```