@policystudio/policy-studio-ui-vue 1.1.90-beta.3 → 1.1.90-beta.31

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 (160) hide show
  1. package/.eslintrc.js +13 -8
  2. package/.github/workflows/deploy-storybook.yml +4 -4
  3. package/.nvmrc +1 -0
  4. package/dist/css/psui_styles_output.css +7090 -0
  5. package/dist/index.d.ts +51 -0
  6. package/dist/index.js +106 -0
  7. package/dist/index.js.map +1 -0
  8. package/dist/util/GeneralFunctions.d.ts +3 -0
  9. package/dist/util/GeneralFunctions.js +35 -0
  10. package/dist/util/GeneralFunctions.js.map +1 -0
  11. package/dist/util/directives.d.ts +1 -0
  12. package/dist/util/directives.js +22 -0
  13. package/dist/util/directives.js.map +1 -0
  14. package/dist/util/imageLoader.d.ts +6 -0
  15. package/dist/util/imageLoader.js +52 -0
  16. package/dist/util/imageLoader.js.map +1 -0
  17. package/doc/.nvmrc +1 -0
  18. package/doc/.storybook/PolicyStudio.ts +11 -0
  19. package/{.storybook/main.js → doc/.storybook/main.ts} +8 -2
  20. package/doc/.storybook/manager.ts +7 -0
  21. package/{.storybook/preview.js → doc/.storybook/preview.ts} +2 -3
  22. package/doc/package-lock.json +22653 -0
  23. package/doc/package.json +71 -0
  24. package/doc/shims-vue.d.ts +6 -0
  25. package/{src/stories/Accordion.stories.js → doc/src/stories/Accordion.stories.ts} +4 -5
  26. package/{src/stories/BadgeWithIcon.stories.js → doc/src/stories/BadgeWithIcon.stories.ts} +2 -2
  27. package/{src/stories/BarChart.stories.js → doc/src/stories/BarChart.stories.ts} +2 -2
  28. package/{src/stories/Breadcrumb.stories.js → doc/src/stories/Breadcrumb.stories.ts} +2 -5
  29. package/doc/src/stories/Button.stories.ts +130 -0
  30. package/{src/stories/CardInfos.stories.js → doc/src/stories/CardInfos.stories.ts} +2 -3
  31. package/{src/stories/ChartLegend.stories.js → doc/src/stories/ChartLegend.stories.ts} +2 -3
  32. package/{src/stories/Checkbox.stories.js → doc/src/stories/Checkbox.stories.ts} +2 -2
  33. package/{src/stories/CheckboxSimple.stories.js → doc/src/stories/CheckboxSimple.stories.ts} +2 -2
  34. package/{src/stories/Chips.stories.js → doc/src/stories/Chips.stories.ts} +22 -23
  35. package/{src/stories/ClimateZoneBadge.stories.js → doc/src/stories/ClimateZoneBadge.stories.ts} +3 -2
  36. package/doc/src/stories/Collapse.stories.ts +46 -0
  37. package/{src/stories/CostEffectBar.stories.js → doc/src/stories/CostEffectBar.stories.ts} +3 -2
  38. package/{src/stories/Datatable.stories.js → doc/src/stories/Datatable.stories.ts} +7 -4
  39. package/{src/stories/DateCardInfo.stories.js → doc/src/stories/DateCardInfo.stories.ts} +2 -6
  40. package/{src/stories/Dialog.stories.js → doc/src/stories/Dialog.stories.ts} +2 -2
  41. package/{src/stories/Draggable.stories.js → doc/src/stories/Draggable.stories.ts} +3 -2
  42. package/{src/stories/Dropdown.stories.js → doc/src/stories/Dropdown.stories.ts} +4 -3
  43. package/{src/stories/DropdownList.stories.js → doc/src/stories/DropdownList.stories.ts} +4 -2
  44. package/{src/stories/HighlightRippleDot.stories.js → doc/src/stories/HighlightRippleDot.stories.ts} +3 -2
  45. package/{src/stories/Icon.stories.js → doc/src/stories/Icon.stories.ts} +3 -1
  46. package/{src/stories/InlineSelector.stories.js → doc/src/stories/InlineSelector.stories.ts} +2 -2
  47. package/{src/stories/Input.stories.js → doc/src/stories/Input.stories.ts} +7 -4
  48. package/{src/stories/InputSelect.stories.js → doc/src/stories/InputSelect.stories.ts} +3 -2
  49. package/{src/stories/InputTextArea.stories.js → doc/src/stories/InputTextArea.stories.ts} +2 -2
  50. package/{src/stories/MiniTag.stories.js → doc/src/stories/MiniTag.stories.ts} +9 -2
  51. package/{src/stories/ProgressBar.stories.js → doc/src/stories/ProgressBar.stories.ts} +3 -2
  52. package/{src/stories/RadioButton.stories.js → doc/src/stories/RadioButton.stories.ts} +2 -2
  53. package/{src/stories/RadioButtonSimple.stories.js → doc/src/stories/RadioButtonSimple.stories.ts} +2 -2
  54. package/{src/stories/SimpleAlert.stories.js → doc/src/stories/SimpleAlert.stories.ts} +3 -2
  55. package/{src/stories/Slider.stories.js → doc/src/stories/Slider.stories.ts} +6 -2
  56. package/{src/stories/Switch.stories.js → doc/src/stories/Switch.stories.ts} +2 -2
  57. package/{src/stories/TabHeader.stories.js → doc/src/stories/TabHeader.stories.ts} +6 -1
  58. package/{src/stories/TableResults.stories.js → doc/src/stories/TableResults.stories.ts} +11 -7
  59. package/{src/stories/TagScope.stories.js → doc/src/stories/TagScope.stories.ts} +3 -2
  60. package/{src/stories/TestimonialCard.stories.js → doc/src/stories/TestimonialCard.stories.ts} +3 -3
  61. package/{src/stories/Toast.stories.js → doc/src/stories/Toast.stories.ts} +2 -2
  62. package/{src/stories/Toggle.stories.js → doc/src/stories/Toggle.stories.ts} +7 -4
  63. package/{src/stories/Tooltip.stories.js → doc/src/stories/Tooltip.stories.ts} +6 -6
  64. package/doc/tsconfig.json +17 -0
  65. package/package.json +24 -37
  66. package/src/App.vue +30 -0
  67. package/src/assets/scss/base.scss +3 -34
  68. package/src/assets/scss/components/PsAccordion.scss +1 -1
  69. package/src/assets/scss/components/PsCollapse.css +74 -0
  70. package/src/assets/scss/components/PsDataTable.scss +1 -1
  71. package/src/assets/scss/components/PsDropdownList.scss +1 -1
  72. package/src/components/accordion/PsAccordionItem.vue +88 -74
  73. package/src/components/badges-and-tags/PsBadgeWithIcon.vue +31 -33
  74. package/src/components/badges-and-tags/PsCardInfos.vue +39 -41
  75. package/src/components/badges-and-tags/PsChartLegend.vue +46 -51
  76. package/src/components/badges-and-tags/PsClimateZoneBadge.vue +13 -19
  77. package/src/components/badges-and-tags/PsCostEffectBar.vue +24 -56
  78. package/src/components/badges-and-tags/PsDateCardInfo.vue +17 -18
  79. package/src/components/badges-and-tags/PsHighlightRippleDot.vue +3 -2
  80. package/src/components/badges-and-tags/PsMiniTag.vue +39 -41
  81. package/src/components/badges-and-tags/PsProgressBar.vue +72 -68
  82. package/src/components/badges-and-tags/PsTagScope.vue +17 -22
  83. package/src/components/badges-and-tags/PsTestimonialCard.vue +19 -26
  84. package/src/components/buttons/PsButton.vue +60 -61
  85. package/src/components/chips/PsChips.vue +98 -101
  86. package/src/components/collapse/PsCollapse.vue +121 -0
  87. package/src/components/controls/PsCheckbox.vue +84 -84
  88. package/src/components/controls/PsCheckboxSimple.vue +95 -95
  89. package/src/components/controls/PsDraggable.vue +53 -55
  90. package/src/components/controls/PsInlineSelector.vue +98 -99
  91. package/src/components/controls/PsRadioButton.vue +59 -58
  92. package/src/components/controls/PsRadioButtonSimple.vue +79 -75
  93. package/src/components/controls/PsSlider.vue +185 -176
  94. package/src/components/controls/PsSwitch.vue +51 -52
  95. package/src/components/controls/PsToggle.vue +52 -50
  96. package/src/components/data-graphics/PsBarChart.vue +18 -21
  97. package/src/components/datatable/PsDataTable.vue +56 -60
  98. package/src/components/datatable/PsDataTableItem.vue +13 -28
  99. package/src/components/forms/PsDropdown.vue +165 -162
  100. package/src/components/forms/PsDropdownList.vue +133 -130
  101. package/src/components/forms/PsInput.vue +154 -153
  102. package/src/components/forms/PsInputSelect.vue +91 -92
  103. package/src/components/forms/PsInputTextArea.vue +70 -71
  104. package/src/components/navigations/PsBreadcrumb.vue +25 -34
  105. package/src/components/notifications/PsDialog.vue +57 -56
  106. package/src/components/notifications/PsSimpleAlert.vue +27 -29
  107. package/src/components/notifications/PsToast.vue +40 -39
  108. package/src/components/table-results/PsTableResults.vue +456 -466
  109. package/src/components/table-results/PsTableResultsBody.vue +66 -67
  110. package/src/components/table-results/PsTableResultsHead.vue +67 -61
  111. package/src/components/table-results/PsTableResultsHeadComparison.vue +62 -56
  112. package/src/components/table-results/PsTableResultsHeadFlexible.vue +68 -61
  113. package/src/components/table-results/PsTableResultsRow.vue +55 -56
  114. package/src/components/tabs/PsTabHeader.vue +106 -100
  115. package/src/components/tooltip/PsDialogTooltip.vue +96 -101
  116. package/src/components/tooltip/PsRichTooltip.vue +41 -45
  117. package/src/components/tooltip/PsTooltip.vue +111 -116
  118. package/src/components/ui/PsDotLoader.vue +1 -5
  119. package/src/components/ui/PsIcon.vue +131 -129
  120. package/src/index.ts +159 -0
  121. package/src/tsconfig.json +12 -0
  122. package/src/types/index.d.ts +6 -0
  123. package/src/util/GeneralFunctions.js +16 -7
  124. package/src/util/directives.ts +24 -0
  125. package/src/util/imageLoader.js +14 -7
  126. package/tailwind.config.js +1 -1
  127. package/tsconfig.json +47 -0
  128. package/.storybook/PolicyStudio.js +0 -10
  129. package/.storybook/eventBus.js +0 -26
  130. package/.storybook/manager.js +0 -6
  131. package/babel.config.js +0 -17
  132. package/dist/css/psui_styles.css +0 -4647
  133. package/postcss.config.js +0 -8
  134. package/src/components/playground/PsScrollBar.vue +0 -320
  135. package/src/index.js +0 -166
  136. package/src/stories/Button.stories.js +0 -48
  137. package/src/stories/Button.vue +0 -59
  138. package/src/stories/Header.stories.js +0 -41
  139. package/src/stories/Header.vue +0 -77
  140. package/src/stories/Playground.stories.js +0 -16
  141. package/src/stories/button.css +0 -30
  142. package/src/stories/header.css +0 -32
  143. package/webpack.config.js +0 -22
  144. /package/{src → doc/src}/assets/images/multifamily-units.svg +0 -0
  145. /package/{src → doc/src}/assets/images/policy-studio.svg +0 -0
  146. /package/{src/contents/ComparisonData.js → doc/src/contents/ComparisonData.ts} +0 -0
  147. /package/{src/contents/FlexibleData.js → doc/src/contents/FlexibleData.ts} +0 -0
  148. /package/{src/contents/ResultsData.js → doc/src/contents/ResultsData.ts} +0 -0
  149. /package/{src → doc/src}/stories/Colors.mdx +0 -0
  150. /package/{src → doc/src}/stories/ElevationSystem.mdx +0 -0
  151. /package/{src → doc/src}/stories/Introduction.mdx +0 -0
  152. /package/{src → doc/src}/stories/Typography.mdx +0 -0
  153. /package/{src → doc/src}/stories/assets/code-brackets.svg +0 -0
  154. /package/{src → doc/src}/stories/assets/colors.svg +0 -0
  155. /package/{src → doc/src}/stories/assets/comments.svg +0 -0
  156. /package/{src → doc/src}/stories/assets/direction.svg +0 -0
  157. /package/{src → doc/src}/stories/assets/flow.svg +0 -0
  158. /package/{src → doc/src}/stories/assets/plugin.svg +0 -0
  159. /package/{src → doc/src}/stories/assets/repo.svg +0 -0
  160. /package/{src → doc/src}/stories/assets/stackalt.svg +0 -0
@@ -1,10 +1,10 @@
1
- import PsHighlightRippleDot from '../components/badges-and-tags/PsHighlightRippleDot.vue'
1
+ import PsHighlightRippleDot from '../../../src/components/badges-and-tags/PsHighlightRippleDot.vue'
2
2
 
3
3
  export default {
4
4
  title: 'Badges & Tags/Badges/HighlightRippleDot',
5
5
  component: PsHighlightRippleDot,
6
6
  }
7
-
7
+ // @ts-ignore
8
8
  const Template = (args, { argTypes }) => ({
9
9
  props: Object.keys(argTypes),
10
10
  components: { PsHighlightRippleDot },
@@ -12,4 +12,5 @@ const Template = (args, { argTypes }) => ({
12
12
  })
13
13
 
14
14
  export const HighlightRippleDot = Template.bind({})
15
+ // @ts-ignore
15
16
  HighlightRippleDot.args = {}
@@ -1,4 +1,4 @@
1
- import PsIcon from '../components/ui/PsIcon.vue'
1
+ import PsIcon from '../../../src/components/ui/PsIcon.vue'
2
2
 
3
3
  export default {
4
4
  title: 'Components/Icon',
@@ -6,6 +6,7 @@ export default {
6
6
  argTypes: {},
7
7
  }
8
8
 
9
+ // @ts-ignore
9
10
  const Template = (args, { argTypes }) => ({
10
11
  props: Object.keys(argTypes),
11
12
  components: { PsIcon },
@@ -18,4 +19,5 @@ export default {
18
19
  })
19
20
 
20
21
  export const IconSimple = Template.bind({})
22
+ // @ts-ignore
21
23
  IconSimple.args = {}
@@ -1,11 +1,11 @@
1
- import PsInlineSelector from '../components/controls/PsInlineSelector.vue'
1
+ import PsInlineSelector from '../../../src/components/controls/PsInlineSelector.vue'
2
2
 
3
3
  export default {
4
4
  title: 'Controls & Selectors/InlineSelector',
5
5
  component: PsInlineSelector,
6
6
  }
7
7
 
8
- const TemplateDefault = (args, {argTypes}) => ({
8
+ const TemplateDefault = (args:any, {argTypes}:{argTypes:any}) => ({
9
9
  props: Object.keys(argTypes),
10
10
  components: {PsInlineSelector},
11
11
  template: `
@@ -1,4 +1,4 @@
1
- import PsInput from '../components/forms/PsInput.vue'
1
+ import PsInput from '../../../src/components/forms/PsInput.vue'
2
2
  export default {
3
3
  title: 'Text fields & Forms/Input',
4
4
  component: PsInput,
@@ -7,7 +7,7 @@ export default {
7
7
  required: { control: 'boolean' },
8
8
  },
9
9
  }
10
-
10
+ // @ts-ignore
11
11
  const TemplateInputText = (args, { argTypes }) => ({
12
12
  props: Object.keys(argTypes),
13
13
  components: { PsInput },
@@ -79,7 +79,7 @@ const TemplateInputText = (args, { argTypes }) => ({
79
79
  </div>
80
80
  `
81
81
  })
82
-
82
+ // @ts-ignore
83
83
  const TemplateInputPassword = (args, { argTypes }) => ({
84
84
  props: Object.keys(argTypes),
85
85
  components: { PsInput },
@@ -183,7 +183,7 @@ const TemplateInputPassword = (args, { argTypes }) => ({
183
183
  </div>
184
184
  `
185
185
  })
186
-
186
+ // @ts-ignore
187
187
  const TemplateSlots = (args, { argTypes }) => ({
188
188
  props: Object.keys(argTypes),
189
189
  components: { PsInput },
@@ -212,6 +212,7 @@ const TemplateSlots = (args, { argTypes }) => ({
212
212
  })
213
213
 
214
214
  export const InputText = TemplateInputText.bind({})
215
+ // @ts-ignore
215
216
  InputText.args = {
216
217
  label: 'Input Text',
217
218
  placeholder: 'Placeholder',
@@ -222,6 +223,7 @@ InputText.args = {
222
223
  }
223
224
 
224
225
  export const InputPassword = TemplateInputPassword.bind({})
226
+ // @ts-ignore
225
227
  InputPassword.args = {
226
228
  type: 'password',
227
229
  label: 'Password',
@@ -231,6 +233,7 @@ InputPassword.args = {
231
233
  }
232
234
 
233
235
  export const InputSlots = TemplateSlots.bind({})
236
+ // @ts-ignore
234
237
  InputSlots.args = {
235
238
  label: 'Label',
236
239
  placeholder: 'Placeholder',
@@ -1,10 +1,10 @@
1
- import PsInputSelect from '../components/forms/PsInputSelect.vue'
1
+ import PsInputSelect from '../../../src/components/forms/PsInputSelect.vue'
2
2
 
3
3
  export default {
4
4
  title: 'Text fields & Forms/InputSelect',
5
5
  component: PsInputSelect
6
6
  }
7
-
7
+ // @ts-ignore
8
8
  const TemplateDefault = (args, {argTypes})=> ({
9
9
  props: Object.keys(argTypes),
10
10
  components: {PsInputSelect},
@@ -25,6 +25,7 @@ const TemplateDefault = (args, {argTypes})=> ({
25
25
  })
26
26
 
27
27
  export const Default = TemplateDefault.bind({})
28
+ // @ts-ignore
28
29
  Default.args = {
29
30
  items: [{title:'Text 1', value:'Value 1'}, {title:'Text 2', value:'Value 2'}]
30
31
  }
@@ -1,11 +1,11 @@
1
- import PsInputTextArea from '../components/forms/PsInputTextArea.vue'
1
+ import PsInputTextArea from '../../../src/components/forms/PsInputTextArea.vue'
2
2
 
3
3
  export default {
4
4
  title: 'Text fields & Forms/Input Textarea',
5
5
  component: PsInputTextArea,
6
6
  }
7
7
 
8
- const Template = (args, {argTypes}) => ({
8
+ const Template = (args:any, {argTypes}:{argTypes:any}) => ({
9
9
  props: Object.keys(argTypes),
10
10
  components: {PsInputTextArea},
11
11
  template: `
@@ -1,6 +1,8 @@
1
+
1
2
  import PsMiniTag, {
3
+ // @ts-ignore
2
4
  typeOptions,
3
- } from '../components/badges-and-tags/PsMiniTag.vue'
5
+ } from '../../../src/components/badges-and-tags/PsMiniTag.vue'
4
6
 
5
7
  export default {
6
8
  title: 'Badges & Tags/Tags/Mini Tag',
@@ -14,7 +16,7 @@ export default {
14
16
  },
15
17
  },
16
18
  }
17
-
19
+ // @ts-ignore
18
20
  const Template = (args, { argTypes }) => ({
19
21
  props: Object.keys(argTypes),
20
22
  components: { PsMiniTag },
@@ -22,30 +24,35 @@ const Template = (args, { argTypes }) => ({
22
24
  })
23
25
 
24
26
  export const Info = Template.bind({})
27
+ // @ts-ignore
25
28
  Info.args = {
26
29
  layout: 'info',
27
30
  message: 'This is an info alert',
28
31
  }
29
32
 
30
33
  export const Success = Template.bind({})
34
+ // @ts-ignore
31
35
  Success.args = {
32
36
  layout: 'success',
33
37
  message: 'This is a success alert',
34
38
  }
35
39
 
36
40
  export const Warning = Template.bind({})
41
+ // @ts-ignore
37
42
  Warning.args = {
38
43
  layout: 'warning',
39
44
  message: 'This is a warning alert',
40
45
  }
41
46
 
42
47
  export const Error = Template.bind({})
48
+ // @ts-ignore
43
49
  Error.args = {
44
50
  layout: 'error',
45
51
  message: 'This is an error alert',
46
52
  }
47
53
 
48
54
  export const Default = Template.bind({})
55
+ // @ts-ignore
49
56
  Default.args = {
50
57
  layout: 'default',
51
58
  message: 'This is a default color',
@@ -1,4 +1,4 @@
1
- import PsProgressBar from '../components/badges-and-tags/PsProgressBar.vue'
1
+ import PsProgressBar from '../../../src/components/badges-and-tags/PsProgressBar.vue'
2
2
 
3
3
  export default {
4
4
  title: 'Badges & Tags/Badges/ProgressBar',
@@ -12,7 +12,7 @@ export default {
12
12
  },
13
13
  },
14
14
  }
15
-
15
+ // @ts-ignore
16
16
  const TemplateDefault = (args, { argTypes }) => ({
17
17
  props: Object.keys(argTypes),
18
18
  components: { PsProgressBar },
@@ -20,4 +20,5 @@ const TemplateDefault = (args, { argTypes }) => ({
20
20
  })
21
21
 
22
22
  export const Default = TemplateDefault.bind({})
23
+ // @ts-ignore
23
24
  Default.args = {}
@@ -1,10 +1,10 @@
1
- import PsRadioButton from '../components/controls/PsRadioButton.vue'
1
+ import PsRadioButton from '../../../src/components/controls/PsRadioButton.vue'
2
2
 
3
3
  export default {
4
4
  title: 'Controls & Selectors/Radio Button',
5
5
  component: PsRadioButton,
6
6
  }
7
-
7
+ // @ts-ignore
8
8
  const DefaultTemplate = (args,{ argTypes}) => ({
9
9
  props: Object.keys(argTypes),
10
10
  components: { PsRadioButton},
@@ -1,11 +1,11 @@
1
- import PsRadioButtonSimple from '../components/controls/PsRadioButtonSimple.vue'
1
+ import PsRadioButtonSimple from '../../../src/components/controls/PsRadioButtonSimple.vue'
2
2
 
3
3
  export default {
4
4
  title: 'Text fields & Forms/Inputs V2/RadioButton',
5
5
  component: PsRadioButtonSimple,
6
6
  }
7
7
 
8
- const defaultTemplate = (args, {argTypes}) => ({
8
+ const defaultTemplate = (args:any, {argTypes}:{argTypes:any}) => ({
9
9
  props: Object.keys(argTypes),
10
10
  components: { PsRadioButtonSimple },
11
11
  data: () => ({
@@ -1,10 +1,10 @@
1
- import PsSimpleAlert from '../components/notifications/PsSimpleAlert.vue'
1
+ import PsSimpleAlert from '../../../src/components/notifications/PsSimpleAlert.vue'
2
2
 
3
3
  export default {
4
4
  title: 'Notifications/Simple Alert',
5
5
  component: PsSimpleAlert,
6
6
  }
7
-
7
+ // @ts-ignore
8
8
  const TemplateDefault = (args, { argTypes }) => ({
9
9
  props: Object.keys(argTypes),
10
10
  components: { PsSimpleAlert },
@@ -16,6 +16,7 @@ export default {
16
16
  })
17
17
 
18
18
  export const Default = TemplateDefault.bind({})
19
+ // @ts-ignore
19
20
  Default.args = {
20
21
  message:'lorem'
21
22
  }
@@ -1,4 +1,4 @@
1
- import PsSlider from '../components/controls/PsSlider.vue'
1
+ import PsSlider from '../../../src/components/controls/PsSlider.vue'
2
2
 
3
3
  export default {
4
4
  title: 'Text fields & Forms/Slider',
@@ -7,7 +7,7 @@ export default {
7
7
  // layout: { control: { type: 'inline-radio', options: sliderLayout } },
8
8
  // },
9
9
  }
10
-
10
+ // @ts-ignore
11
11
  const Template = (args, { argTypes }) => ({
12
12
  props: Object.keys(argTypes),
13
13
  components: { PsSlider },
@@ -29,6 +29,7 @@ const Template = (args, { argTypes }) => ({
29
29
  })
30
30
 
31
31
  export const Label = Template.bind({})
32
+ // @ts-ignore
32
33
  Label.args = {
33
34
  min: 0,
34
35
  max: 200,
@@ -39,6 +40,7 @@ Label.args = {
39
40
  }
40
41
 
41
42
  export const NoLabel = Template.bind({})
43
+ // @ts-ignore
42
44
  NoLabel.args = {
43
45
  min: 0,
44
46
  max: 200,
@@ -48,6 +50,7 @@ NoLabel.args = {
48
50
  }
49
51
 
50
52
  export const Bubble = Template.bind({})
53
+ // @ts-ignore
51
54
  Bubble.args = {
52
55
  min: 0,
53
56
  max: 200,
@@ -62,6 +65,7 @@ const sliderColors = [
62
65
  { start: 170, end: 200, bgColor: '#D65C5A' },
63
66
  ]
64
67
  export const Rich = Template.bind({})
68
+ // @ts-ignore
65
69
  Rich.args = {
66
70
  min: 0,
67
71
  max: 200,
@@ -1,9 +1,9 @@
1
- import PsSwitch from '../components/controls/PsSwitch.vue'
1
+ import PsSwitch from '../../../src/components/controls/PsSwitch.vue'
2
2
  export default {
3
3
  title: 'Controls & Selectors/Switch',
4
4
  component: PsSwitch,
5
5
  }
6
-
6
+ // @ts-ignore
7
7
  const Template = (args, { argTypes }) => ({
8
8
  props: Object.keys(argTypes),
9
9
  components: { PsSwitch },
@@ -1,4 +1,4 @@
1
- import PsTabHeader from '../components/tabs/PsTabHeader.vue'
1
+ import PsTabHeader from '../../../src/components/tabs/PsTabHeader.vue'
2
2
  const items = ['Existing Buildings', 'New Constructions', 'Other tab']
3
3
  const item = items[0]
4
4
 
@@ -7,6 +7,8 @@ export default {
7
7
  component: PsTabHeader,
8
8
  argTypes: {}
9
9
  }
10
+
11
+ // @ts-ignore
10
12
  const Template = (args, { argTypes }) => ({
11
13
  props: Object.keys(argTypes),
12
14
  components: { PsTabHeader },
@@ -31,6 +33,7 @@ const Template = (args, { argTypes }) => ({
31
33
  })
32
34
 
33
35
  export const Standard = Template.bind({})
36
+ // @ts-ignore
34
37
  Standard.args = {
35
38
  layout: 'standard',
36
39
  items: items,
@@ -38,6 +41,7 @@ Standard.args = {
38
41
  }
39
42
 
40
43
  export const Underline = Template.bind({})
44
+ // @ts-ignore
41
45
  Underline.args = {
42
46
  layout: 'underline',
43
47
  items: items,
@@ -45,6 +49,7 @@ Underline.args = {
45
49
  }
46
50
 
47
51
  export const Folder = Template.bind({})
52
+ // @ts-ignore
48
53
  Folder.args = {
49
54
  layout: 'folder',
50
55
  items: items,
@@ -1,9 +1,10 @@
1
- import PsTableResults, { tableLayout } from '../components/table-results/PsTableResults.vue'
2
- import PsTableResultsHead from '../components/table-results/PsTableResultsHead.vue'
3
- import PsTableResultsHeadFlexible from '../components/table-results/PsTableResultsHeadFlexible.vue'
4
- import PsTableResultsHeadComparison from '../components/table-results/PsTableResultsHeadComparison.vue'
5
- import PsProgressBar from '../components/badges-and-tags/PsProgressBar.vue'
6
- import PsSwitch from '../components/controls/PsSwitch.vue'
1
+ // @ts-ignore
2
+ import PsTableResults, { tableLayout } from '../../../src/components/table-results/PsTableResults.vue'
3
+ import PsTableResultsHead from '../../../src/components/table-results/PsTableResultsHead.vue'
4
+ import PsTableResultsHeadFlexible from '../../../src/components/table-results/PsTableResultsHeadFlexible.vue'
5
+ import PsTableResultsHeadComparison from '../../../src/components/table-results/PsTableResultsHeadComparison.vue'
6
+ import PsProgressBar from '../../../src/components/badges-and-tags/PsProgressBar.vue'
7
+ import PsSwitch from '../../../src/components/controls/PsSwitch.vue'
7
8
 
8
9
  import { resultsDataHeader, resultsDataColumnGroup, resultsDataSummary } from '../contents/ResultsData'
9
10
  import { comparisonDataHeader, comparisonDataColumnGroup, comparisonDataSummary } from '../contents/ComparisonData'
@@ -18,7 +19,7 @@ export default {
18
19
  onCollapse: { action: 'clicked' },
19
20
  },
20
21
  }
21
-
22
+ // @ts-ignore
22
23
  const TableResults = (args, { argTypes }) => ({
23
24
  props: Object.keys(argTypes),
24
25
  components: { PsTableResults, PsTableResultsHead, PsTableResultsHeadComparison, PsTableResultsHeadFlexible },
@@ -54,6 +55,7 @@ const TableResults = (args, { argTypes }) => ({
54
55
  })
55
56
 
56
57
  export const Results = TableResults.bind({})
58
+ // @ts-ignore
57
59
  Results.args = {
58
60
  layout: 'results',
59
61
  header: resultsDataHeader,
@@ -64,6 +66,7 @@ Results.args = {
64
66
  }
65
67
 
66
68
  export const Comparison = TableResults.bind({})
69
+ // @ts-ignore
67
70
  Comparison.args = {
68
71
  layout: 'comparison',
69
72
  header: comparisonDataHeader,
@@ -74,6 +77,7 @@ Comparison.args = {
74
77
  }
75
78
 
76
79
  export const Flexible = TableResults.bind({})
80
+ // @ts-ignore
77
81
  Flexible.args = {
78
82
  layout: 'flexible',
79
83
  header: flexibleDataHeader,
@@ -1,9 +1,10 @@
1
- import PsTagScope from '../components/badges-and-tags/PsTagScope.vue'
1
+ import PsTagScope from '../../../src/components/badges-and-tags/PsTagScope.vue'
2
+
2
3
  export default {
3
4
  title: 'Badges & Tags/Tags/Tag Scope',
4
5
  component: PsTagScope,
5
6
  }
6
-
7
+ // @ts-ignore
7
8
  const defaultTemplate = (args, {argTypes}) => ({
8
9
  props: Object.keys(argTypes),
9
10
  components: { PsTagScope },
@@ -1,10 +1,10 @@
1
- import PsTestimonialCard from '../components/badges-and-tags/PsTestimonialCard.vue'
1
+ import PsTestimonialCard from '../../../src/components/badges-and-tags/PsTestimonialCard.vue'
2
2
 
3
3
  export default {
4
4
  title: 'Components/TestimonialCard',
5
5
  component: PsTestimonialCard,
6
6
  }
7
-
7
+ // @ts-ignore
8
8
  const Template = (args,{argTypes}) => ({
9
9
  props: Object.keys(argTypes),
10
10
  components:{PsTestimonialCard},
@@ -18,7 +18,7 @@ export default {
18
18
  })
19
19
 
20
20
  export const Default = Template.bind({})
21
-
21
+ // @ts-ignore
22
22
  Default.args = {
23
23
  testimonial: 'I used to spend most of my time helping California cities make reach codes. Now, i just show them the Explorer and get to focus on helping cities in other states.',
24
24
  user:'Amy Rider',
@@ -1,9 +1,9 @@
1
- import PsToast from '../components/notifications/PsToast.vue'
1
+ import PsToast from '../../../src/components/notifications/PsToast.vue'
2
2
  export default {
3
3
  title: 'Notifications/Toast',
4
4
  component: PsToast,
5
5
  }
6
-
6
+ // @ts-ignore
7
7
  const Template = (args, { argTypes }) => ({
8
8
  props: Object.keys(argTypes),
9
9
  components: { PsToast },
@@ -1,4 +1,4 @@
1
- import PsToggle from '../components/controls/PsToggle.vue'
1
+ import PsToggle from '../../../src/components/controls/PsToggle.vue'
2
2
  export default {
3
3
  title: 'Components/Toggle',
4
4
  component: PsToggle,
@@ -6,7 +6,7 @@ export default {
6
6
  }
7
7
  const items = ['Option 1', 'Option 2', 'Option 3']
8
8
  const selected = 'Option 2'
9
-
9
+ // @ts-ignore
10
10
  const Template = (args, { argTypes }) => ({
11
11
  props: Object.keys(argTypes),
12
12
  components: { PsToggle },
@@ -16,6 +16,7 @@ const Template = (args, { argTypes }) => ({
16
16
  })
17
17
 
18
18
  export const Default = Template.bind({})
19
+ // @ts-ignore
19
20
  Default.args = {
20
21
  items: items,
21
22
  selected: selected,
@@ -28,13 +29,15 @@ Default.args = {
28
29
  * Se quiser dar uma melhorada nessa parte, fique a vontade meu chegado! TMJ
29
30
  */
30
31
  window.addEventListener('click', (ev) => {
32
+ // @ts-ignore
31
33
  if (ev.target.classList.contains('click-to-copy')) {
34
+ // @ts-ignore
32
35
  copyText(ev.target.dataset.toCopy)
33
36
  }
34
37
  })
35
-
38
+ // @ts-ignore
36
39
  function copyText(textToCopy) {
37
- var myTemporaryInputElement = document.createElement('input')
40
+ const myTemporaryInputElement = document.createElement('input')
38
41
  myTemporaryInputElement.type = 'text'
39
42
  myTemporaryInputElement.value = textToCopy
40
43
  document.body.appendChild(myTemporaryInputElement)
@@ -1,6 +1,6 @@
1
- import PsTooltip from '../components/tooltip/PsTooltip.vue'
2
- import PsRichTooltip from '../components/tooltip/PsRichTooltip.vue'
3
- import PsDialogTooltip from '../components/tooltip/PsDialogTooltip.vue'
1
+ import PsTooltip from '../../../src/components/tooltip/PsTooltip.vue'
2
+ import PsRichTooltip from '../../../src/components/tooltip/PsRichTooltip.vue'
3
+ import PsDialogTooltip from '../../../src/components/tooltip/PsDialogTooltip.vue'
4
4
 
5
5
  export default {
6
6
  title: 'Components/Tooltip',
@@ -8,7 +8,7 @@ export default {
8
8
  subcomponents: {PsRichTooltip, PsDialogTooltip}
9
9
  }
10
10
 
11
- const TemplateDialog = (args, {argTypes}) => ({
11
+ const TemplateDialog = (args:any, {argTypes}:{argTypes:any}) => ({
12
12
  props: Object.keys(argTypes),
13
13
  components: {PsDialogTooltip},
14
14
  template: `
@@ -41,7 +41,7 @@ const TemplateDialog = (args, {argTypes}) => ({
41
41
  `,
42
42
  })
43
43
 
44
- const TemplateRich = (args,{argTypes})=>({
44
+ const TemplateRich = (args:any, {argTypes}:{argTypes:any})=>({
45
45
  props: Object.keys(argTypes),
46
46
  components: {PsRichTooltip},
47
47
  template: `
@@ -74,7 +74,7 @@ const TemplateRich = (args,{argTypes})=>({
74
74
  `
75
75
  })
76
76
 
77
- const TemplateDefault = (args, {argTypes}) => ({
77
+ const TemplateDefault = (args:any, {argTypes}:{argTypes:any}) => ({
78
78
  props: Object.keys(argTypes),
79
79
  components: {PsTooltip},
80
80
  template: `
@@ -0,0 +1,17 @@
1
+ {
2
+ "compilerOptions": {
3
+ "rootDir": "../",
4
+ "strict": true,
5
+ "outDir": "../dist",
6
+ },
7
+ "include": [
8
+ "doc/src/**/*.ts",
9
+ "doc/.storybook/**/*.ts",
10
+ "doc/src/**/*.stories.ts",
11
+ "doc/*.d.ts",
12
+ ],
13
+ "references": [
14
+ {"path": "../"}
15
+ ]
16
+ }
17
+
package/package.json CHANGED
@@ -1,28 +1,18 @@
1
1
  {
2
2
  "name": "@policystudio/policy-studio-ui-vue",
3
- "version": "1.1.90-beta.3",
3
+ "version": "1.1.90-beta.31",
4
4
  "description": "Policy Studio UI",
5
- "main": "src/index.js",
6
5
  "author": "Policy Studio Team",
7
- "url": "https://github.com/Policy-Studio/policy-studio-ui-vue",
8
- "license": "MIT",
9
- "keywords": [
10
- "vue",
11
- "ui"
12
- ],
13
6
  "scripts": {
14
7
  "lint": "vue-cli-service lint",
15
- "build-storybook": "storybook build",
16
- "build-tailwind": "postcss src/assets/scss/base.scss -o dist/css/psui_styles.css",
17
- "build-temp-tailwind": "postcss src/assets/scss/base.scss -o temp/css/psui_styles.css",
18
- "full-publish": "npm run lint && npm run build-tailwind && npm run build-storybook && npm publish --tag beta",
19
- "serve": "concurrently --kill-others \"npm run watch-storybook\" \"npm run watch-tailwind\"",
20
- "serve-prod": "concurrently --kill-others \"npm run watch-storybook\" \"npm run watch-prod-tailwind\"",
21
- "watch-prod-tailwind": "watch 'npm run build-tailwind' ./src/assets",
22
- "watch-tailwind": "watch 'npm run build-temp-tailwind' ./src/assets",
8
+ "build": "tsc -p tsconfig.json && npm run build:tailwind",
9
+ "full-publish": "npm run lint && npm run build && npm publish --tag beta",
23
10
  "kill-port": "sh ./scripts/kill-port.sh",
24
- "storybook": "concurrently \"npm run kill-port\" \"npm run watch-prod-tailwind\" \"storybook dev -p 6006\""
11
+ "build:tailwind": "tailwindcss build -i src/assets/scss/base.scss -o dist/css/psui_styles_output.css -c tailwind.config.js",
12
+ "watch:tailwind": "watch 'npm run build:tailwind' dist/css"
25
13
  },
14
+ "main": "dist/index.js",
15
+ "types": "src/types/index.d.ts",
26
16
  "dependencies": {
27
17
  "@vue/compat": "^3.4.5",
28
18
  "core-js": "^3.6.5",
@@ -30,41 +20,38 @@
30
20
  "vue": "^3.4.5"
31
21
  },
32
22
  "devDependencies": {
33
- "@babel/cli": "^7.23.4",
34
- "@babel/core": "^7.23.7",
35
- "@babel/eslint-parser": "^7.23.3",
36
- "@babel/preset-env": "^7.23.7",
37
- "@storybook/addon-essentials": "^7.6.7",
38
- "@storybook/addon-interactions": "^7.6.7",
39
- "@storybook/addon-links": "^7.6.7",
40
- "@storybook/blocks": "^7.6.7",
41
- "@storybook/test": "^7.6.7",
42
- "@storybook/vue3": "^7.6.7",
43
- "@storybook/vue3-webpack5": "^7.6.7",
23
+ "@typescript-eslint/eslint-plugin": "^5.4.0",
24
+ "@typescript-eslint/parser": "^5.4.0",
44
25
  "@vue/cli-plugin-eslint": "^5.0.8",
26
+ "@vue/cli-plugin-typescript": "~5.0.0",
45
27
  "@vue/cli-service": "~5.0.8",
46
28
  "@vue/compiler-sfc": "^3.4.5",
47
29
  "@vue/eslint-config-prettier": "^9.0.0",
48
- "babel-eslint": "^10.1.0",
30
+ "@vue/eslint-config-typescript": "^9.1.0",
49
31
  "concurrently": "^7.0.0",
50
32
  "eslint": "^8.56.0",
51
33
  "eslint-plugin-prettier": "^5.1.2",
52
- "eslint-plugin-storybook": "^0.6.15",
53
- "eslint-plugin-vue": "^9.19.2",
34
+ "eslint-plugin-vue": "^8.7.1",
54
35
  "postcss": "^8.3.11",
55
36
  "postcss-cli": "^9.0.2",
56
37
  "postcss-import": "^14.0.2",
57
38
  "postcss-nested": "^5.0.6",
58
39
  "prettier": "^3.1.1",
59
- "react": "^18.2.0",
60
- "react-dom": "^18.2.0",
61
- "storybook": "^7.6.7",
62
40
  "tailwindcss": "^3.4.1",
41
+ "ts-loader": "^9.5.1",
42
+ "typescript": "~4.5.5",
63
43
  "vue-eslint-parser": "^9.3.2",
64
44
  "vue-loader": "^17.4.2",
65
- "watch": "^1.0.2"
45
+ "watch": "^1.0.2",
46
+ "webpack": "^5.89.0"
66
47
  },
67
48
  "engines": {
68
- "node": "18.19.0"
69
- }
49
+ "node": "20.11.0"
50
+ },
51
+ "keywords": [
52
+ "vue",
53
+ "ui"
54
+ ],
55
+ "license": "MIT",
56
+ "url": "https://github.com/Policy-Studio/policy-studio-ui-vue"
70
57
  }