@policystudio/policy-studio-ui-vue 1.1.89 → 1.1.90-beta.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.
Files changed (76) hide show
  1. package/.eslintignore +1 -0
  2. package/.eslintrc.js +70 -67
  3. package/.github/workflows/deploy-storybook.yml +1 -1
  4. package/.storybook/eventBus.js +25 -2
  5. package/.storybook/main.js +17 -21
  6. package/babel.config.js +17 -3
  7. package/dist/css/psui_styles.css +4028 -110346
  8. package/package.json +37 -24
  9. package/postcss.config.js +1 -1
  10. package/scripts/kill-port.sh +12 -0
  11. package/src/assets/scss/base.scss +27 -23
  12. package/src/assets/scss/components/PsAccordion.scss +1 -1
  13. package/src/assets/scss/components/PsChips.scss +3 -3
  14. package/src/assets/scss/components/PsCostEffectBar.scss +4 -4
  15. package/src/assets/scss/components/PsProgressBar.scss +4 -4
  16. package/src/assets/scss/components/PsTabHeader.scss +1 -1
  17. package/src/assets/scss/components/PsTableResults.scss +2 -63
  18. package/src/assets/scss/components/PsTestimonialCard.scss +1 -1
  19. package/src/components/accordion/PsAccordion.vue +20 -21
  20. package/src/components/accordion/PsAccordionItem.vue +30 -8
  21. package/src/components/badges-and-tags/PsBadgeWithIcon.vue +6 -3
  22. package/src/components/badges-and-tags/PsCardInfos.vue +3 -1
  23. package/src/components/badges-and-tags/PsChartLegend.vue +19 -5
  24. package/src/components/badges-and-tags/PsCostEffectBar.vue +4 -5
  25. package/src/components/badges-and-tags/PsHighlightRippleDot.vue +1 -1
  26. package/src/components/badges-and-tags/PsTestimonialCard.vue +6 -4
  27. package/src/components/buttons/PsButton.vue +30 -11
  28. package/src/components/chips/PsChips.vue +5 -2
  29. package/src/components/controls/PsCheckbox.vue +5 -2
  30. package/src/components/controls/PsCheckboxSimple.vue +4 -4
  31. package/src/components/controls/PsDraggable.vue +70 -67
  32. package/src/components/controls/PsInlineSelector.vue +13 -14
  33. package/src/components/controls/PsRadioButton.vue +10 -5
  34. package/src/components/controls/PsRadioButtonSimple.vue +3 -3
  35. package/src/components/controls/PsSlider.vue +6 -6
  36. package/src/components/controls/PsSwitch.vue +13 -3
  37. package/src/components/controls/PsToggle.vue +14 -11
  38. package/src/components/data-graphics/PsBarChart.vue +4 -2
  39. package/src/components/datatable/PsDataTable.vue +14 -5
  40. package/src/components/datatable/PsDataTableItem.vue +17 -4
  41. package/src/components/forms/PsDropdown.vue +8 -5
  42. package/src/components/forms/PsDropdownList.vue +1 -1
  43. package/src/components/forms/PsInput.vue +30 -14
  44. package/src/components/forms/PsInputSelect.vue +33 -11
  45. package/src/components/forms/PsInputTextArea.vue +15 -4
  46. package/src/components/navigations/PsBreadcrumb.vue +1 -1
  47. package/src/components/notifications/PsDialog.vue +11 -5
  48. package/src/components/notifications/PsSimpleAlert.vue +22 -10
  49. package/src/components/notifications/PsToast.vue +8 -3
  50. package/src/components/playground/PsScrollBar.vue +122 -50
  51. package/src/components/table-results/PsTableResults.vue +67 -51
  52. package/src/components/table-results/PsTableResultsBody.vue +3 -1
  53. package/src/components/table-results/PsTableResultsHead.vue +27 -8
  54. package/src/components/table-results/PsTableResultsHeadComparison.vue +24 -8
  55. package/src/components/table-results/PsTableResultsHeadFlexible.vue +18 -6
  56. package/src/components/table-results/PsTableResultsRow.vue +6 -2
  57. package/src/components/tabs/PsTabHeader.vue +19 -16
  58. package/src/components/tooltip/PsDialogTooltip.vue +18 -8
  59. package/src/components/tooltip/PsRichTooltip.vue +12 -5
  60. package/src/components/tooltip/PsTooltip.vue +17 -9
  61. package/src/components/ui/PsDotLoader.vue +5 -5
  62. package/src/components/ui/PsIcon.vue +6 -2
  63. package/src/index.js +0 -1
  64. package/src/stories/Button.stories.js +48 -130
  65. package/src/stories/Button.vue +59 -0
  66. package/src/stories/{ElevationSystem.stories.mdx → ElevationSystem.mdx} +1 -1
  67. package/src/stories/Header.stories.js +41 -0
  68. package/src/stories/Header.vue +77 -0
  69. package/src/stories/{Introduction.stories.mdx → Introduction.mdx} +101 -101
  70. package/src/stories/{Typography.stories.mdx → Typography.mdx} +107 -105
  71. package/src/stories/button.css +30 -0
  72. package/src/stories/header.css +32 -0
  73. package/tailwind.config.js +11 -2
  74. package/webpack.config.js +22 -0
  75. package/backup-package-lock.json +0 -37194
  76. /package/src/stories/{Colors.stories.mdx → Colors.mdx} +0 -0
package/.eslintignore ADDED
@@ -0,0 +1 @@
1
+ .storybook
package/.eslintrc.js CHANGED
@@ -1,68 +1,71 @@
1
- module.exports = {
2
- root: true,
3
- env: {
4
- node: true
5
- },
6
- extends: [
7
- 'plugin:vue/essential',
8
- 'eslint:recommended',
9
- ],
10
- parserOptions: {
11
- parser: 'babel-eslint',
12
- requireConfigFile: false,
13
- },
14
- rules: {
15
- 'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
16
- 'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
17
- 'semi': ['warn', 'never'],
18
- 'quotes': [2, 'single'],
19
- 'vue/order-in-components': ['warn', {
20
- 'order': [
21
- 'el',
22
- 'name',
23
- 'key',
24
- 'parent',
25
- ['components', 'directives', 'filters'],
26
- ['props', 'propsData'],
27
- 'functional',
28
- ['delimiters', 'comments'],
29
- 'extends',
30
- 'mixins',
31
- ['provide', 'inject'],
32
- 'ROUTER_GUARDS',
33
- 'layout',
34
- 'middleware',
35
- 'validate',
36
- 'scrollToTop',
37
- 'transition',
38
- 'loading',
39
- 'inheritAttrs',
40
- 'model',
41
- 'emits',
42
- 'setup',
43
- 'asyncData',
44
- 'data',
45
- 'fetch',
46
- 'head',
47
- 'computed',
48
- 'watch',
49
- 'watchQuery',
50
- 'LIFECYCLE_HOOKS',
51
- 'methods',
52
- ['template', 'render'],
53
- 'renderError'
54
- ]
55
- }]
56
- },
57
- overrides: [
58
- {
59
- files: [
60
- '**/__tests__/*.{j,t}s?(x)',
61
- '**/tests/unit/**/*.spec.{j,t}s?(x)'
62
- ],
63
- env: {
64
- jest: true
1
+ module.exports = {
2
+ root: true,
3
+ env: {
4
+ node: true
5
+ },
6
+ parser: 'vue-eslint-parser',
7
+ parserOptions: {
8
+ parser: '@babel/eslint-parser',
9
+ requireConfigFile: false,
10
+ babelOptions: {
11
+ babelrc: false,
12
+ configFile: false,
13
+ presets: ['@babel/preset-env'],
14
+ },
15
+ },
16
+ extends: ['plugin:vue/vue3-essential', 'eslint:recommended','plugin:vue/vue3-strongly-recommended'],
17
+ rules: {
18
+ 'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
19
+ 'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
20
+ 'semi': ['warn', 'never'],
21
+ 'quotes': [2, 'single'],
22
+ 'vue/order-in-components': ['warn', {
23
+ 'order': [
24
+ 'el',
25
+ 'name',
26
+ 'key',
27
+ 'parent',
28
+ ['components', 'directives', 'filters'],
29
+ ['props', 'propsData'],
30
+ 'functional',
31
+ ['delimiters', 'comments'],
32
+ 'extends',
33
+ 'mixins',
34
+ ['provide', 'inject'],
35
+ 'ROUTER_GUARDS',
36
+ 'layout',
37
+ 'middleware',
38
+ 'validate',
39
+ 'scrollToTop',
40
+ 'transition',
41
+ 'loading',
42
+ 'inheritAttrs',
43
+ 'model',
44
+ 'emits',
45
+ 'setup',
46
+ 'asyncData',
47
+ 'data',
48
+ 'fetch',
49
+ 'head',
50
+ 'computed',
51
+ 'watch',
52
+ 'watchQuery',
53
+ 'LIFECYCLE_HOOKS',
54
+ 'methods',
55
+ ['template', 'render'],
56
+ 'renderError'
57
+ ]
58
+ }]
59
+ },
60
+ overrides: [
61
+ {
62
+ files: [
63
+ '**/__tests__/*.{j,t}s?(x)',
64
+ '**/tests/unit/**/*.spec.{j,t}s?(x)'
65
+ ],
66
+ env: {
67
+ jest: true
68
+ }
65
69
  }
66
- }
67
- ]
68
- }
70
+ ]
71
+ }
@@ -26,7 +26,7 @@ jobs:
26
26
  - name: Setup Node.js
27
27
  uses: actions/setup-node@v2
28
28
  with:
29
- node-version: ^14.0.0
29
+ node-version: 18.19.0
30
30
 
31
31
  - name: Install dependencies
32
32
  run: npm install && npm install vercel@25.1.0 && npm install -g vercel@25.1.0
@@ -1,3 +1,26 @@
1
- import Vue from 'vue';
1
+ // this was a vue2 syntax
2
+ // import Vue from 'vue';
3
+ // export const eventBus = new Vue();
2
4
 
3
- export const eventBus = new Vue();
5
+ // import { createApp } from 'vue';
6
+
7
+ // export const app = createApp({});
8
+ // const emitter = app.config.globalProperties.$emitter = {};
9
+
10
+ // export const eventBus = {
11
+ // on(event, callback) {
12
+ // if (!emitter[event]) {
13
+ // emitter[event] = [];
14
+ // }
15
+ // emitter[event].push(callback);
16
+ // },
17
+ // emit(event, ...args) {
18
+ // if (emitter[event]) {
19
+ // emitter[event].forEach(callback => {
20
+ // callback(...args);
21
+ // });
22
+ // }
23
+ // },
24
+ // };
25
+
26
+ // app.mount('#app');
@@ -1,25 +1,21 @@
1
- module.exports = {
2
- "stories": [
3
- "../src/**/*.stories.mdx",
4
- "../src/**/*.stories.@(js|jsx|ts|tsx)"
5
- ],
6
- previewHead: (head) => (`
7
- ${head}
8
- <link rel="preconnect" href="https://fonts.googleapis.com">
9
- <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
10
- <link href="https://fonts.googleapis.com/css2?family=Lato:wght@100;300;400;700;900&display=swap" rel="stylesheet">
11
- `),
12
- "addons": [
1
+ /** @type { import('@storybook/vue3-webpack5').StorybookConfig } */
2
+ const config = {
3
+ stories: ["../src/**/*.mdx", "../src/**/*.stories.@(js|jsx|mjs|ts|tsx)"],
4
+ addons: [
13
5
  "@storybook/addon-links",
14
6
  "@storybook/addon-essentials",
15
- {
16
- name: '@storybook/addon-postcss',
17
- options: {
18
- postcssLoaderOptions: {
19
- implementation: require('postcss'),
20
- },
7
+ "@storybook/addon-interactions",
8
+ ],
9
+ framework: {
10
+ name: "@storybook/vue3-webpack5",
11
+ options: {
12
+ builder: {
13
+ useSWC: true,
21
14
  },
22
15
  },
23
- ],
24
- "framework": "@storybook/vue"
25
- }
16
+ },
17
+ docs: {
18
+ autodocs: "tag",
19
+ },
20
+ };
21
+ export default config;
package/babel.config.js CHANGED
@@ -1,3 +1,17 @@
1
- module.exports = {
2
- presets: ['@vue/cli-plugin-babel/preset'],
3
- }
1
+ const presets = [
2
+ [
3
+ '@babel/preset-env',
4
+ {
5
+ targets: {
6
+ edge: '17',
7
+ firefox: '60',
8
+ chrome: '67',
9
+ safari: '11.1',
10
+ },
11
+ useBuiltIns: 'usage',
12
+ corejs: '3.6.4',
13
+ },
14
+ ],
15
+ ]
16
+
17
+ module.exports = { presets }