@policystudio/policy-studio-ui-vue 1.1.90-beta.5 → 1.1.91

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 (131) hide show
  1. package/.eslintrc.js +67 -81
  2. package/.github/workflows/deploy-storybook.yml +1 -1
  3. package/.storybook/PolicyStudio.js +10 -0
  4. package/.storybook/eventBus.js +3 -0
  5. package/.storybook/main.js +25 -0
  6. package/.storybook/manager.js +6 -0
  7. package/babel.config.js +3 -17
  8. package/backup-package-lock.json +37194 -0
  9. package/dist/css/psui_styles.css +110273 -4031
  10. package/package.json +33 -52
  11. package/postcss.config.js +1 -1
  12. package/src/assets/scss/base.scss +23 -27
  13. package/src/assets/scss/components/PsAccordion.scss +1 -1
  14. package/src/assets/scss/components/PsChips.scss +3 -3
  15. package/src/assets/scss/components/PsCostEffectBar.scss +4 -4
  16. package/src/assets/scss/components/PsProgressBar.scss +4 -4
  17. package/src/assets/scss/components/PsTabHeader.scss +1 -1
  18. package/src/assets/scss/components/PsTableResults.scss +1 -1
  19. package/src/assets/scss/components/PsTestimonialCard.scss +1 -1
  20. package/src/components/accordion/PsAccordion.vue +21 -20
  21. package/src/components/accordion/PsAccordionItem.vue +8 -30
  22. package/src/components/badges-and-tags/PsBadgeWithIcon.vue +4 -8
  23. package/src/components/badges-and-tags/PsCardInfos.vue +1 -3
  24. package/src/components/badges-and-tags/PsChartLegend.vue +5 -19
  25. package/src/components/badges-and-tags/PsCostEffectBar.vue +5 -4
  26. package/src/components/badges-and-tags/PsHighlightRippleDot.vue +1 -1
  27. package/src/components/badges-and-tags/PsProgressBar.vue +1 -1
  28. package/src/components/badges-and-tags/PsTestimonialCard.vue +4 -6
  29. package/src/components/buttons/PsButton.vue +88 -85
  30. package/src/components/chips/PsChips.vue +2 -5
  31. package/src/components/controls/PsCheckbox.vue +2 -5
  32. package/src/components/controls/PsCheckboxSimple.vue +4 -4
  33. package/src/components/controls/PsDraggable.vue +67 -70
  34. package/src/components/controls/PsInlineSelector.vue +14 -13
  35. package/src/components/controls/PsRadioButton.vue +5 -10
  36. package/src/components/controls/PsRadioButtonSimple.vue +3 -3
  37. package/src/components/controls/PsSlider.vue +6 -6
  38. package/src/components/controls/PsSwitch.vue +3 -13
  39. package/src/components/controls/PsToggle.vue +11 -14
  40. package/src/components/data-graphics/PsBarChart.vue +2 -4
  41. package/src/components/datatable/PsDataTable.vue +5 -14
  42. package/src/components/datatable/PsDataTableItem.vue +4 -17
  43. package/src/components/forms/PsDropdown.vue +5 -8
  44. package/src/components/forms/PsDropdownList.vue +1 -1
  45. package/src/components/forms/PsInput.vue +14 -30
  46. package/src/components/forms/PsInputSelect.vue +11 -33
  47. package/src/components/forms/PsInputTextArea.vue +4 -15
  48. package/src/components/navigations/PsBreadcrumb.vue +1 -1
  49. package/src/components/notifications/PsDialog.vue +5 -11
  50. package/src/components/notifications/PsSimpleAlert.vue +10 -22
  51. package/src/components/notifications/PsToast.vue +3 -8
  52. package/src/components/playground/PsScrollBar.vue +50 -122
  53. package/src/components/table-results/PsTableResults.vue +60 -76
  54. package/src/components/table-results/PsTableResultsBody.vue +1 -3
  55. package/src/components/table-results/PsTableResultsHead.vue +13 -32
  56. package/src/components/table-results/PsTableResultsHeadComparison.vue +8 -24
  57. package/src/components/table-results/PsTableResultsHeadFlexible.vue +11 -23
  58. package/src/components/table-results/PsTableResultsRow.vue +2 -6
  59. package/src/components/tabs/PsTabHeader.vue +16 -19
  60. package/src/components/tooltip/PsDialogTooltip.vue +8 -18
  61. package/src/components/tooltip/PsRichTooltip.vue +5 -12
  62. package/src/components/tooltip/PsTooltip.vue +9 -17
  63. package/src/components/ui/PsDotLoader.vue +5 -5
  64. package/src/components/ui/PsIcon.vue +2 -6
  65. package/src/{index.ts → index.js} +1 -0
  66. package/src/stories/{Accordion.stories.ts → Accordion.stories.js} +2 -2
  67. package/src/stories/{BadgeWithIcon.stories.ts → BadgeWithIcon.stories.js} +1 -1
  68. package/src/stories/{BarChart.stories.ts → BarChart.stories.js} +1 -1
  69. package/src/stories/{Breadcrumb.stories.ts → Breadcrumb.stories.js} +4 -1
  70. package/src/stories/Button.stories.js +130 -0
  71. package/src/stories/{CardInfos.stories.ts → CardInfos.stories.js} +2 -1
  72. package/src/stories/{ChartLegend.stories.ts → ChartLegend.stories.js} +2 -1
  73. package/src/stories/{Checkbox.stories.ts → Checkbox.stories.js} +1 -1
  74. package/src/stories/{CheckboxSimple.stories.ts → CheckboxSimple.stories.js} +1 -1
  75. package/src/stories/{Chips.stories.ts → Chips.stories.js} +22 -24
  76. package/src/stories/{ClimateZoneBadge.stories.ts → ClimateZoneBadge.stories.js} +1 -1
  77. package/src/stories/{CostEffectBar.stories.ts → CostEffectBar.stories.js} +1 -1
  78. package/src/stories/{Datatable.stories.ts → Datatable.stories.js} +2 -2
  79. package/src/stories/{DateCardInfo.stories.ts → DateCardInfo.stories.js} +5 -1
  80. package/src/stories/{ElevationSystem.mdx → ElevationSystem.stories.mdx} +1 -1
  81. package/src/stories/{InlineSelector.stories.ts → InlineSelector.stories.js} +1 -1
  82. package/src/stories/{InputTextArea.stories.ts → InputTextArea.stories.js} +1 -1
  83. package/src/stories/{Introduction.mdx → Introduction.stories.mdx} +101 -101
  84. package/src/stories/{RadioButtonSimple.stories.ts → RadioButtonSimple.stories.js} +1 -1
  85. package/src/stories/{Toggle.stories.ts → Toggle.stories.js} +1 -1
  86. package/src/stories/{Tooltip.stories.ts → Tooltip.stories.js} +3 -3
  87. package/src/stories/{Typography.mdx → Typography.stories.mdx} +105 -107
  88. package/src/util/{GeneralFunctions.ts → GeneralFunctions.js} +4 -4
  89. package/src/util/{imageLoader.ts → imageLoader.js} +7 -7
  90. package/tailwind.config.js +2 -11
  91. package/.eslintignore +0 -1
  92. package/.storybook/PolicyStudio.ts +0 -11
  93. package/.storybook/eventBus.ts +0 -26
  94. package/.storybook/main.ts +0 -21
  95. package/.storybook/manager.ts +0 -7
  96. package/scripts/kill-port.sh +0 -12
  97. package/src/App.vue +0 -30
  98. package/src/shims-vue.d.ts +0 -11
  99. package/src/stories/Button.stories.ts +0 -48
  100. package/src/stories/Button.vue +0 -59
  101. package/src/stories/Header.stories.ts +0 -41
  102. package/src/stories/Header.vue +0 -77
  103. package/src/stories/button.css +0 -30
  104. package/src/stories/header.css +0 -32
  105. package/tsconfig.json +0 -42
  106. package/webpack.config.js +0 -22
  107. /package/.storybook/{preview.ts → preview.js} +0 -0
  108. /package/src/contents/{ComparisonData.ts → ComparisonData.js} +0 -0
  109. /package/src/contents/{FlexibleData.ts → FlexibleData.js} +0 -0
  110. /package/src/contents/{ResultsData.ts → ResultsData.js} +0 -0
  111. /package/src/stories/{Colors.mdx → Colors.stories.mdx} +0 -0
  112. /package/src/stories/{Dialog.stories.ts → Dialog.stories.js} +0 -0
  113. /package/src/stories/{Draggable.stories.ts → Draggable.stories.js} +0 -0
  114. /package/src/stories/{Dropdown.stories.ts → Dropdown.stories.js} +0 -0
  115. /package/src/stories/{DropdownList.stories.ts → DropdownList.stories.js} +0 -0
  116. /package/src/stories/{HighlightRippleDot.stories.ts → HighlightRippleDot.stories.js} +0 -0
  117. /package/src/stories/{Icon.stories.ts → Icon.stories.js} +0 -0
  118. /package/src/stories/{Input.stories.ts → Input.stories.js} +0 -0
  119. /package/src/stories/{InputSelect.stories.ts → InputSelect.stories.js} +0 -0
  120. /package/src/stories/{MiniTag.stories.ts → MiniTag.stories.js} +0 -0
  121. /package/src/stories/{Playground.stories.ts → Playground.stories.js} +0 -0
  122. /package/src/stories/{ProgressBar.stories.ts → ProgressBar.stories.js} +0 -0
  123. /package/src/stories/{RadioButton.stories.ts → RadioButton.stories.js} +0 -0
  124. /package/src/stories/{SimpleAlert.stories.ts → SimpleAlert.stories.js} +0 -0
  125. /package/src/stories/{Slider.stories.ts → Slider.stories.js} +0 -0
  126. /package/src/stories/{Switch.stories.ts → Switch.stories.js} +0 -0
  127. /package/src/stories/{TabHeader.stories.ts → TabHeader.stories.js} +0 -0
  128. /package/src/stories/{TableResults.stories.ts → TableResults.stories.js} +0 -0
  129. /package/src/stories/{TagScope.stories.ts → TagScope.stories.js} +0 -0
  130. /package/src/stories/{TestimonialCard.stories.ts → TestimonialCard.stories.js} +0 -0
  131. /package/src/stories/{Toast.stories.ts → Toast.stories.js} +0 -0
package/.eslintrc.js CHANGED
@@ -1,82 +1,68 @@
1
- module.exports = {
2
- root: true,
3
-
4
- env: {
5
- node: true
6
- },
7
-
8
- parser: 'vue-eslint-parser',
9
-
10
- parserOptions: {
11
- parser: '@typescript-eslint/parser',
12
- requireConfigFile: false,
13
- babelOptions: {
14
- babelrc: false,
15
- configFile: false,
16
- presets: ['@babel/preset-env'],
17
- },
18
- },
19
-
20
- extends: [
21
- 'plugin:vue/vue3-essential',
22
- 'eslint:recommended',
23
- 'plugin:vue/vue3-strongly-recommended',
24
- '@vue/typescript'
25
- ],
26
-
27
- rules: {
28
- 'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
29
- 'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
30
- 'semi': ['warn', 'never'],
31
- 'quotes': [2, 'single'],
32
- 'vue/order-in-components': ['warn', {
33
- 'order': [
34
- 'el',
35
- 'name',
36
- 'key',
37
- 'parent',
38
- ['components', 'directives', 'filters'],
39
- ['props', 'propsData'],
40
- 'functional',
41
- ['delimiters', 'comments'],
42
- 'extends',
43
- 'mixins',
44
- ['provide', 'inject'],
45
- 'ROUTER_GUARDS',
46
- 'layout',
47
- 'middleware',
48
- 'validate',
49
- 'scrollToTop',
50
- 'transition',
51
- 'loading',
52
- 'inheritAttrs',
53
- 'model',
54
- 'emits',
55
- 'setup',
56
- 'asyncData',
57
- 'data',
58
- 'fetch',
59
- 'head',
60
- 'computed',
61
- 'watch',
62
- 'watchQuery',
63
- 'LIFECYCLE_HOOKS',
64
- 'methods',
65
- ['template', 'render'],
66
- 'renderError'
67
- ]
68
- }]
69
- },
70
-
71
- overrides: [
72
- {
73
- files: [
74
- '**/__tests__/*.{j,t}s?(x)',
75
- '**/tests/unit/**/*.spec.{j,t}s?(x)'
76
- ],
77
- env: {
78
- jest: true
79
- }
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
80
65
  }
81
- ],
82
- }
66
+ }
67
+ ]
68
+ }
@@ -26,7 +26,7 @@ jobs:
26
26
  - name: Setup Node.js
27
27
  uses: actions/setup-node@v2
28
28
  with:
29
- node-version: 18.19.0
29
+ node-version: ^14.0.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
@@ -0,0 +1,10 @@
1
+ import { create } from '@storybook/theming';
2
+ import logo from '../src/assets/images/policy-studio.svg';
3
+
4
+ export default create({
5
+ base: 'light',
6
+ brandTitle: 'Policy Studio UI Vue',
7
+ brandUrl: 'https://policystudio.co/',
8
+ brandImage: logo,
9
+ brandTarget: '_blank',
10
+ });
@@ -0,0 +1,3 @@
1
+ import Vue from 'vue';
2
+
3
+ export const eventBus = new Vue();
@@ -0,0 +1,25 @@
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": [
13
+ "@storybook/addon-links",
14
+ "@storybook/addon-essentials",
15
+ {
16
+ name: '@storybook/addon-postcss',
17
+ options: {
18
+ postcssLoaderOptions: {
19
+ implementation: require('postcss'),
20
+ },
21
+ },
22
+ },
23
+ ],
24
+ "framework": "@storybook/vue"
25
+ }
@@ -0,0 +1,6 @@
1
+ import { addons } from '@storybook/addons';
2
+ import PolicyStudio from './PolicyStudio';
3
+
4
+ addons.setConfig({
5
+ theme: PolicyStudio,
6
+ });
package/babel.config.js CHANGED
@@ -1,17 +1,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 }
1
+ module.exports = {
2
+ presets: ['@vue/cli-plugin-babel/preset'],
3
+ }