@policystudio/policy-studio-ui-vue 1.1.90-beta.0 → 1.1.90-beta.10

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 (77) hide show
  1. package/.eslintrc.js +12 -8
  2. package/.storybook/PolicyStudio.ts +11 -0
  3. package/.storybook/manager.ts +7 -0
  4. package/dist/css/psui_styles.css +4035 -110277
  5. package/package.json +25 -22
  6. package/postcss.config.js +1 -1
  7. package/src/App.vue +30 -0
  8. package/src/assets/scss/base.scss +27 -23
  9. package/src/assets/scss/components/PsAccordion.scss +1 -1
  10. package/src/assets/scss/components/PsChips.scss +3 -3
  11. package/src/assets/scss/components/PsCostEffectBar.scss +4 -4
  12. package/src/assets/scss/components/PsProgressBar.scss +4 -4
  13. package/src/assets/scss/components/PsTabHeader.scss +1 -1
  14. package/src/assets/scss/components/PsTableResults.scss +1 -1
  15. package/src/assets/scss/components/PsTestimonialCard.scss +1 -1
  16. package/src/components/badges-and-tags/PsBadgeWithIcon.vue +2 -1
  17. package/src/components/badges-and-tags/PsProgressBar.vue +1 -1
  18. package/src/components/buttons/PsButton.vue +74 -96
  19. package/src/{index.js → index.ts} +4 -4
  20. package/src/shims-vue.d.ts +11 -0
  21. package/src/stories/{Accordion.stories.js → Accordion.stories.ts} +2 -2
  22. package/src/stories/{BadgeWithIcon.stories.js → BadgeWithIcon.stories.ts} +1 -1
  23. package/src/stories/{BarChart.stories.js → BarChart.stories.ts} +1 -1
  24. package/src/stories/{Breadcrumb.stories.js → Breadcrumb.stories.ts} +1 -4
  25. package/src/stories/{CardInfos.stories.js → CardInfos.stories.ts} +1 -2
  26. package/src/stories/{ChartLegend.stories.js → ChartLegend.stories.ts} +1 -2
  27. package/src/stories/{Checkbox.stories.js → Checkbox.stories.ts} +1 -1
  28. package/src/stories/{CheckboxSimple.stories.js → CheckboxSimple.stories.ts} +1 -1
  29. package/src/stories/{Chips.stories.js → Chips.stories.ts} +24 -22
  30. package/src/stories/ClimateZoneBadge.stories.ts +28 -0
  31. package/src/stories/CostEffectBar.stories.ts +26 -0
  32. package/src/stories/{Datatable.stories.js → Datatable.stories.ts} +5 -2
  33. package/src/stories/{DateCardInfo.stories.js → DateCardInfo.stories.ts} +1 -5
  34. package/src/stories/{Dialog.stories.js → Dialog.stories.ts} +1 -1
  35. package/src/stories/Draggable.stories.ts +32 -0
  36. package/src/stories/{Dropdown.stories.js → Dropdown.stories.ts} +1 -11
  37. package/src/stories/{DropdownList.stories.js → DropdownList.stories.ts} +3 -1
  38. package/src/stories/{Header.stories.js → Header.stories.ts} +1 -0
  39. package/src/stories/{HighlightRippleDot.stories.js → HighlightRippleDot.stories.ts} +2 -1
  40. package/src/stories/{Icon.stories.js → Icon.stories.ts} +2 -1
  41. package/src/stories/{InlineSelector.stories.js → InlineSelector.stories.ts} +1 -1
  42. package/src/stories/{Input.stories.js → Input.stories.ts} +6 -2
  43. package/src/stories/{InputSelect.stories.js → InputSelect.stories.ts} +2 -1
  44. package/src/stories/{InputTextArea.stories.js → InputTextArea.stories.ts} +1 -1
  45. package/src/stories/{MiniTag.stories.js → MiniTag.stories.ts} +8 -1
  46. package/src/stories/{Playground.stories.js → Playground.stories.ts} +1 -1
  47. package/src/stories/{ProgressBar.stories.js → ProgressBar.stories.ts} +2 -1
  48. package/src/stories/{RadioButton.stories.js → RadioButton.stories.ts} +1 -0
  49. package/src/stories/{RadioButtonSimple.stories.js → RadioButtonSimple.stories.ts} +1 -1
  50. package/src/stories/{SimpleAlert.stories.js → SimpleAlert.stories.ts} +2 -1
  51. package/src/stories/{Slider.stories.js → Slider.stories.ts} +5 -1
  52. package/src/stories/{Switch.stories.js → Switch.stories.ts} +1 -1
  53. package/src/stories/{TabHeader.stories.js → TabHeader.stories.ts} +4 -0
  54. package/src/stories/{TableResults.stories.js → TableResults.stories.ts} +5 -1
  55. package/src/stories/{TagScope.stories.js → TagScope.stories.ts} +1 -1
  56. package/src/stories/{TestimonialCard.stories.js → TestimonialCard.stories.ts} +2 -2
  57. package/src/stories/{Toast.stories.js → Toast.stories.ts} +1 -1
  58. package/src/stories/{Toggle.stories.js → Toggle.stories.ts} +6 -3
  59. package/src/stories/{Tooltip.stories.js → Tooltip.stories.ts} +3 -3
  60. package/src/util/{GeneralFunctions.js → GeneralFunctions.ts} +7 -7
  61. package/src/util/{imageLoader.js → imageLoader.ts} +15 -9
  62. package/tailwind.config.js +11 -2
  63. package/tsconfig.json +47 -0
  64. package/webpack.config.js +17 -3
  65. package/.storybook/PolicyStudio.js +0 -10
  66. package/.storybook/manager.js +0 -6
  67. package/babel.config.js +0 -17
  68. package/src/stories/ClimateZoneBadge.stories.js +0 -17
  69. package/src/stories/CostEffectBar.stories.js +0 -23
  70. package/src/stories/Draggable.stories.js +0 -22
  71. /package/.storybook/{eventBus.js → eventBus.ts} +0 -0
  72. /package/.storybook/{main.js → main.ts} +0 -0
  73. /package/.storybook/{preview.js → preview.ts} +0 -0
  74. /package/src/contents/{ComparisonData.js → ComparisonData.ts} +0 -0
  75. /package/src/contents/{FlexibleData.js → FlexibleData.ts} +0 -0
  76. /package/src/contents/{ResultsData.js → ResultsData.ts} +0 -0
  77. /package/src/stories/{Button.stories.js → Button.stories.ts} +0 -0
package/.eslintrc.js CHANGED
@@ -1,19 +1,22 @@
1
1
  module.exports = {
2
2
  root: true,
3
+
3
4
  env: {
4
5
  node: true
5
6
  },
7
+
6
8
  parser: 'vue-eslint-parser',
9
+
7
10
  parserOptions: {
8
- parser: '@babel/eslint-parser',
11
+ parser: '@typescript-eslint/parser',
9
12
  requireConfigFile: false,
10
- babelOptions: {
11
- babelrc: false,
12
- configFile: false,
13
- presets: ['@babel/preset-env'],
14
- },
15
13
  },
16
- extends: ['plugin:vue/vue3-essential', 'eslint:recommended','plugin:vue/vue3-strongly-recommended'],
14
+ extends: [
15
+ 'plugin:vue/vue3-essential',
16
+ 'eslint:recommended',
17
+ 'plugin:vue/vue3-strongly-recommended',
18
+ '@vue/typescript'
19
+ ],
17
20
  rules: {
18
21
  'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
19
22
  'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
@@ -57,6 +60,7 @@
57
60
  ]
58
61
  }]
59
62
  },
63
+
60
64
  overrides: [
61
65
  {
62
66
  files: [
@@ -67,5 +71,5 @@
67
71
  jest: true
68
72
  }
69
73
  }
70
- ]
74
+ ],
71
75
  }
@@ -0,0 +1,11 @@
1
+ import { create } from '@storybook/theming'
2
+ import PolicyStudioUiLogo from '../src/assets/images/policy-studio.svg'
3
+
4
+
5
+ export default create({
6
+ base: 'light',
7
+ brandTitle: 'Policy Studio UI Vue',
8
+ brandUrl: 'https://policystudio.co/',
9
+ brandImage: PolicyStudioUiLogo,
10
+ brandTarget: '_blank',
11
+ });
@@ -0,0 +1,7 @@
1
+ import { addons } from '@storybook/manager-api'
2
+
3
+ import PolicyStudio from './PolicyStudio'
4
+
5
+ addons.setConfig({
6
+ theme: PolicyStudio,
7
+ });