@policystudio/policy-studio-ui-vue 1.1.89 → 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 (134) hide show
  1. package/.eslintignore +1 -0
  2. package/.eslintrc.js +74 -67
  3. package/.github/workflows/deploy-storybook.yml +1 -1
  4. package/.storybook/PolicyStudio.ts +11 -0
  5. package/.storybook/eventBus.ts +26 -0
  6. package/.storybook/main.ts +21 -0
  7. package/.storybook/manager.ts +7 -0
  8. package/dist/css/psui_styles.css +4028 -110346
  9. package/package.json +50 -34
  10. package/postcss.config.js +1 -1
  11. package/scripts/kill-port.sh +12 -0
  12. package/src/App.vue +30 -0
  13. package/src/assets/scss/base.scss +27 -23
  14. package/src/assets/scss/components/PsAccordion.scss +1 -1
  15. package/src/assets/scss/components/PsChips.scss +3 -3
  16. package/src/assets/scss/components/PsCostEffectBar.scss +4 -4
  17. package/src/assets/scss/components/PsProgressBar.scss +4 -4
  18. package/src/assets/scss/components/PsTabHeader.scss +1 -1
  19. package/src/assets/scss/components/PsTableResults.scss +2 -63
  20. package/src/assets/scss/components/PsTestimonialCard.scss +1 -1
  21. package/src/components/accordion/PsAccordion.vue +20 -21
  22. package/src/components/accordion/PsAccordionItem.vue +30 -8
  23. package/src/components/badges-and-tags/PsBadgeWithIcon.vue +8 -4
  24. package/src/components/badges-and-tags/PsCardInfos.vue +3 -1
  25. package/src/components/badges-and-tags/PsChartLegend.vue +19 -5
  26. package/src/components/badges-and-tags/PsCostEffectBar.vue +4 -5
  27. package/src/components/badges-and-tags/PsHighlightRippleDot.vue +1 -1
  28. package/src/components/badges-and-tags/PsProgressBar.vue +1 -1
  29. package/src/components/badges-and-tags/PsTestimonialCard.vue +6 -4
  30. package/src/components/buttons/PsButton.vue +85 -88
  31. package/src/components/chips/PsChips.vue +5 -2
  32. package/src/components/controls/PsCheckbox.vue +5 -2
  33. package/src/components/controls/PsCheckboxSimple.vue +4 -4
  34. package/src/components/controls/PsDraggable.vue +70 -67
  35. package/src/components/controls/PsInlineSelector.vue +13 -14
  36. package/src/components/controls/PsRadioButton.vue +10 -5
  37. package/src/components/controls/PsRadioButtonSimple.vue +3 -3
  38. package/src/components/controls/PsSlider.vue +6 -6
  39. package/src/components/controls/PsSwitch.vue +13 -3
  40. package/src/components/controls/PsToggle.vue +14 -11
  41. package/src/components/data-graphics/PsBarChart.vue +4 -2
  42. package/src/components/datatable/PsDataTable.vue +14 -5
  43. package/src/components/datatable/PsDataTableItem.vue +17 -4
  44. package/src/components/forms/PsDropdown.vue +8 -5
  45. package/src/components/forms/PsDropdownList.vue +1 -1
  46. package/src/components/forms/PsInput.vue +30 -14
  47. package/src/components/forms/PsInputSelect.vue +33 -11
  48. package/src/components/forms/PsInputTextArea.vue +15 -4
  49. package/src/components/navigations/PsBreadcrumb.vue +1 -1
  50. package/src/components/notifications/PsDialog.vue +11 -5
  51. package/src/components/notifications/PsSimpleAlert.vue +22 -10
  52. package/src/components/notifications/PsToast.vue +8 -3
  53. package/src/components/playground/PsScrollBar.vue +122 -50
  54. package/src/components/table-results/PsTableResults.vue +67 -51
  55. package/src/components/table-results/PsTableResultsBody.vue +3 -1
  56. package/src/components/table-results/PsTableResultsHead.vue +27 -8
  57. package/src/components/table-results/PsTableResultsHeadComparison.vue +24 -8
  58. package/src/components/table-results/PsTableResultsHeadFlexible.vue +18 -6
  59. package/src/components/table-results/PsTableResultsRow.vue +6 -2
  60. package/src/components/tabs/PsTabHeader.vue +19 -16
  61. package/src/components/tooltip/PsDialogTooltip.vue +18 -8
  62. package/src/components/tooltip/PsRichTooltip.vue +12 -5
  63. package/src/components/tooltip/PsTooltip.vue +17 -9
  64. package/src/components/ui/PsDotLoader.vue +5 -5
  65. package/src/components/ui/PsIcon.vue +6 -2
  66. package/src/{index.js → index.ts} +4 -5
  67. package/src/shims-vue.d.ts +11 -0
  68. package/src/stories/{Accordion.stories.js → Accordion.stories.ts} +2 -2
  69. package/src/stories/{BadgeWithIcon.stories.js → BadgeWithIcon.stories.ts} +1 -1
  70. package/src/stories/{BarChart.stories.js → BarChart.stories.ts} +1 -1
  71. package/src/stories/{Breadcrumb.stories.js → Breadcrumb.stories.ts} +1 -4
  72. package/src/stories/Button.stories.ts +48 -0
  73. package/src/stories/Button.vue +59 -0
  74. package/src/stories/{CardInfos.stories.js → CardInfos.stories.ts} +1 -2
  75. package/src/stories/{ChartLegend.stories.js → ChartLegend.stories.ts} +1 -2
  76. package/src/stories/{Checkbox.stories.js → Checkbox.stories.ts} +1 -1
  77. package/src/stories/{CheckboxSimple.stories.js → CheckboxSimple.stories.ts} +1 -1
  78. package/src/stories/{Chips.stories.js → Chips.stories.ts} +24 -22
  79. package/src/stories/ClimateZoneBadge.stories.ts +28 -0
  80. package/src/stories/CostEffectBar.stories.ts +26 -0
  81. package/src/stories/{Datatable.stories.js → Datatable.stories.ts} +5 -2
  82. package/src/stories/{DateCardInfo.stories.js → DateCardInfo.stories.ts} +1 -5
  83. package/src/stories/{Dialog.stories.js → Dialog.stories.ts} +1 -1
  84. package/src/stories/Draggable.stories.ts +32 -0
  85. package/src/stories/{Dropdown.stories.js → Dropdown.stories.ts} +1 -11
  86. package/src/stories/{DropdownList.stories.js → DropdownList.stories.ts} +3 -1
  87. package/src/stories/{ElevationSystem.stories.mdx → ElevationSystem.mdx} +1 -1
  88. package/src/stories/Header.stories.ts +42 -0
  89. package/src/stories/Header.vue +77 -0
  90. package/src/stories/{HighlightRippleDot.stories.js → HighlightRippleDot.stories.ts} +2 -1
  91. package/src/stories/{Icon.stories.js → Icon.stories.ts} +2 -1
  92. package/src/stories/{InlineSelector.stories.js → InlineSelector.stories.ts} +1 -1
  93. package/src/stories/{Input.stories.js → Input.stories.ts} +6 -2
  94. package/src/stories/{InputSelect.stories.js → InputSelect.stories.ts} +2 -1
  95. package/src/stories/{InputTextArea.stories.js → InputTextArea.stories.ts} +1 -1
  96. package/src/stories/{Introduction.stories.mdx → Introduction.mdx} +101 -101
  97. package/src/stories/{MiniTag.stories.js → MiniTag.stories.ts} +8 -1
  98. package/src/stories/{Playground.stories.js → Playground.stories.ts} +1 -1
  99. package/src/stories/{ProgressBar.stories.js → ProgressBar.stories.ts} +2 -1
  100. package/src/stories/{RadioButton.stories.js → RadioButton.stories.ts} +1 -0
  101. package/src/stories/{RadioButtonSimple.stories.js → RadioButtonSimple.stories.ts} +1 -1
  102. package/src/stories/{SimpleAlert.stories.js → SimpleAlert.stories.ts} +2 -1
  103. package/src/stories/{Slider.stories.js → Slider.stories.ts} +5 -1
  104. package/src/stories/{Switch.stories.js → Switch.stories.ts} +1 -1
  105. package/src/stories/{TabHeader.stories.js → TabHeader.stories.ts} +4 -0
  106. package/src/stories/{TableResults.stories.js → TableResults.stories.ts} +5 -1
  107. package/src/stories/{TagScope.stories.js → TagScope.stories.ts} +1 -1
  108. package/src/stories/{TestimonialCard.stories.js → TestimonialCard.stories.ts} +2 -2
  109. package/src/stories/{Toast.stories.js → Toast.stories.ts} +1 -1
  110. package/src/stories/{Toggle.stories.js → Toggle.stories.ts} +6 -3
  111. package/src/stories/{Tooltip.stories.js → Tooltip.stories.ts} +3 -3
  112. package/src/stories/{Typography.stories.mdx → Typography.mdx} +107 -105
  113. package/src/stories/button.css +30 -0
  114. package/src/stories/header.css +32 -0
  115. package/src/util/{GeneralFunctions.js → GeneralFunctions.ts} +7 -7
  116. package/src/util/{imageLoader.js → imageLoader.ts} +15 -9
  117. package/tailwind.config.js +11 -2
  118. package/tsconfig.json +47 -0
  119. package/webpack.config.js +36 -0
  120. package/.storybook/PolicyStudio.js +0 -10
  121. package/.storybook/eventBus.js +0 -3
  122. package/.storybook/main.js +0 -25
  123. package/.storybook/manager.js +0 -6
  124. package/babel.config.js +0 -3
  125. package/backup-package-lock.json +0 -37194
  126. package/src/stories/Button.stories.js +0 -130
  127. package/src/stories/ClimateZoneBadge.stories.js +0 -17
  128. package/src/stories/CostEffectBar.stories.js +0 -23
  129. package/src/stories/Draggable.stories.js +0 -22
  130. /package/.storybook/{preview.js → preview.ts} +0 -0
  131. /package/src/contents/{ComparisonData.js → ComparisonData.ts} +0 -0
  132. /package/src/contents/{FlexibleData.js → FlexibleData.ts} +0 -0
  133. /package/src/contents/{ResultsData.js → ResultsData.ts} +0 -0
  134. /package/src/stories/{Colors.stories.mdx → Colors.mdx} +0 -0
@@ -0,0 +1,77 @@
1
+ <template>
2
+ <header>
3
+ <div class="storybook-header">
4
+ <div>
5
+ <svg
6
+ width="32"
7
+ height="32"
8
+ viewBox="0 0 32 32"
9
+ xmlns="http://www.w3.org/2000/svg"
10
+ >
11
+ <g
12
+ fill="none"
13
+ fill-rule="evenodd"
14
+ >
15
+ <path
16
+ d="M10 0h12a10 10 0 0110 10v12a10 10 0 01-10 10H10A10 10 0 010 22V10A10 10 0 0110 0z"
17
+ fill="#FFF"
18
+ />
19
+ <path
20
+ d="M5.3 10.6l10.4 6v11.1l-10.4-6v-11zm11.4-6.2l9.7 5.5-9.7 5.6V4.4z"
21
+ fill="#555AB9"
22
+ />
23
+ <path
24
+ d="M27.2 10.6v11.2l-10.5 6V16.5l10.5-6zM15.7 4.4v11L6 10l9.7-5.5z"
25
+ fill="#91BAF8"
26
+ />
27
+ </g>
28
+ </svg>
29
+ <h1>Acme</h1>
30
+ </div>
31
+ <div>
32
+ <span
33
+ class="welcome"
34
+ v-if="user"
35
+ >Welcome, aa<b>{{ user.name }}</b>!</span>
36
+ <my-button
37
+ size="small"
38
+ @click="$emit('logout')"
39
+ label="Log out"
40
+ v-if="user"
41
+ />
42
+ <my-button
43
+ size="small"
44
+ @click="$emit('login')"
45
+ label="Log in"
46
+ v-if="!user"
47
+ />
48
+ <my-button
49
+ primary
50
+ size="small"
51
+ @click="$emit('createAccount')"
52
+ label="Sign up"
53
+ v-if="!user"
54
+ />
55
+ </div>
56
+ </div>
57
+ </header>
58
+ </template>
59
+
60
+ <script>
61
+ import './header.css'
62
+ import MyButton from './Button.vue'
63
+
64
+ export default {
65
+ name: 'MyHeader',
66
+
67
+ components: { MyButton },
68
+
69
+ props: {
70
+ user: {
71
+ type: Object,
72
+ },
73
+ },
74
+
75
+ emits: ['login', 'logout', 'createAccount'],
76
+ }
77
+ </script>
@@ -4,7 +4,7 @@ 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 = {}
@@ -5,7 +5,7 @@ export default {
5
5
  component: PsIcon,
6
6
  argTypes: {},
7
7
  }
8
-
8
+ // @ts-ignore
9
9
  const Template = (args, { argTypes }) => ({
10
10
  props: Object.keys(argTypes),
11
11
  components: { PsIcon },
@@ -18,4 +18,5 @@ export default {
18
18
  })
19
19
 
20
20
  export const IconSimple = Template.bind({})
21
+ // @ts-ignore
21
22
  IconSimple.args = {}
@@ -5,7 +5,7 @@ export default {
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: `
@@ -8,6 +8,7 @@ export default {
8
8
  },
9
9
  }
10
10
 
11
+ // @ts-ignore
11
12
  const TemplateInputText = (args, { argTypes }) => ({
12
13
  props: Object.keys(argTypes),
13
14
  components: { PsInput },
@@ -79,7 +80,7 @@ const TemplateInputText = (args, { argTypes }) => ({
79
80
  </div>
80
81
  `
81
82
  })
82
-
83
+ // @ts-ignore
83
84
  const TemplateInputPassword = (args, { argTypes }) => ({
84
85
  props: Object.keys(argTypes),
85
86
  components: { PsInput },
@@ -183,7 +184,7 @@ const TemplateInputPassword = (args, { argTypes }) => ({
183
184
  </div>
184
185
  `
185
186
  })
186
-
187
+ // @ts-ignore
187
188
  const TemplateSlots = (args, { argTypes }) => ({
188
189
  props: Object.keys(argTypes),
189
190
  components: { PsInput },
@@ -212,6 +213,7 @@ const TemplateSlots = (args, { argTypes }) => ({
212
213
  })
213
214
 
214
215
  export const InputText = TemplateInputText.bind({})
216
+ // @ts-ignore
215
217
  InputText.args = {
216
218
  label: 'Input Text',
217
219
  placeholder: 'Placeholder',
@@ -222,6 +224,7 @@ InputText.args = {
222
224
  }
223
225
 
224
226
  export const InputPassword = TemplateInputPassword.bind({})
227
+ // @ts-ignore
225
228
  InputPassword.args = {
226
229
  type: 'password',
227
230
  label: 'Password',
@@ -231,6 +234,7 @@ InputPassword.args = {
231
234
  }
232
235
 
233
236
  export const InputSlots = TemplateSlots.bind({})
237
+ // @ts-ignore
234
238
  InputSlots.args = {
235
239
  label: 'Label',
236
240
  placeholder: 'Placeholder',
@@ -4,7 +4,7 @@ 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
  }
@@ -5,7 +5,7 @@ export default {
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,4 +1,4 @@
1
- import { Meta } from '@storybook/addon-docs';
1
+ import { Meta } from "@storybook/blocks";
2
2
  import Code from './assets/code-brackets.svg';
3
3
  import Colors from './assets/colors.svg';
4
4
  import Comments from './assets/comments.svg';
@@ -10,7 +10,104 @@ import StackAlt from './assets/stackalt.svg';
10
10
 
11
11
  <Meta title="Policy Studio" />
12
12
 
13
- <style>{`
13
+ #Welcome to UI Explorer
14
+
15
+ Storybook helps you build UI components in isolation from your app's business logic, data, and context.
16
+ That makes it easy to develop hard-to-reach states. Save these UI states as **stories** to revisit during development, testing, or QA.
17
+
18
+ Browse example stories now by navigating to them in the sidebar.
19
+ View their code in the `src/stories` directory to learn how they work.
20
+ We recommend building UIs with a [**component-driven**](https://componentdriven.org) process starting with atomic components and ending with pages.
21
+
22
+ <div className="subheading">Configure</div>
23
+
24
+ <div className="link-list">
25
+ <a
26
+ className="link-item"
27
+ href="https://storybook.js.org/docs/react/addons/addon-types"
28
+ target="_blank"
29
+ >
30
+ <img src={Plugin} alt="plugin" />
31
+ <span>
32
+ <strong>Presets for popular tools</strong>
33
+ Easy setup for TypeScript, SCSS and more.
34
+ </span>
35
+ </a>
36
+ <a
37
+ className="link-item"
38
+ href="https://storybook.js.org/docs/react/configure/webpack"
39
+ target="_blank"
40
+ >
41
+ <img src={StackAlt} alt="Build" />
42
+ <span>
43
+ <strong>Build configuration</strong>
44
+ How to customize webpack and Babel
45
+ </span>
46
+ </a>
47
+ <a
48
+ className="link-item"
49
+ href="https://storybook.js.org/docs/react/configure/styling-and-css"
50
+ target="_blank"
51
+ >
52
+ <img src={Colors} alt="colors" />
53
+ <span>
54
+ <strong>Styling</strong>
55
+ How to load and configure CSS libraries
56
+ </span>
57
+ </a>
58
+ <a
59
+ className="link-item"
60
+ href="https://storybook.js.org/docs/react/get-started/setup#configure-storybook-for-your-stack"
61
+ target="_blank"
62
+ >
63
+ <img src={Flow} alt="flow" />
64
+ <span>
65
+ <strong>Data</strong>
66
+ Providers and mocking for data libraries
67
+ </span>
68
+ </a>
69
+ </div>
70
+
71
+ <div className="subheading">Learn</div>
72
+
73
+ <div className="link-list">
74
+ <a className="link-item" href="https://storybook.js.org/docs" target="_blank">
75
+ <img src={Repo} alt="repo" />
76
+ <span>
77
+ <strong>Storybook documentation</strong>
78
+ Configure, customize, and extend
79
+ </span>
80
+ </a>
81
+ <a className="link-item" href="https://storybook.js.org/tutorials/" target="_blank">
82
+ <img src={Direction} alt="direction" />
83
+ <span>
84
+ <strong>In-depth guides</strong>
85
+ Best practices from leading teams
86
+ </span>
87
+ </a>
88
+ <a className="link-item" href="https://github.com/storybookjs/storybook" target="_blank">
89
+ <img src={Code} alt="code" />
90
+ <span>
91
+ <strong>GitHub project</strong>
92
+ View the source and add issues
93
+ </span>
94
+ </a>
95
+ <a className="link-item" href="https://discord.gg/storybook" target="_blank">
96
+ <img src={Comments} alt="comments" />
97
+ <span>
98
+ <strong>Discord chat</strong>
99
+ Chat with maintainers and the community
100
+ </span>
101
+ </a>
102
+ </div>
103
+
104
+ <div className="tip-wrapper">
105
+ <span className="tip">Tip</span>
106
+ <code>src/stories/Introduction.stories.mdx</code>
107
+ </div>
108
+
109
+ <style>
110
+ {`
14
111
  .subheading {
15
112
  --mediumdark: '#999999';
16
113
  font-weight: 900;
@@ -110,102 +207,5 @@ import StackAlt from './assets/stackalt.svg';
110
207
  font-size: 12px;
111
208
  display: inline-block;
112
209
  }
113
-
114
-
115
- `}</style>
116
-
117
- # Welcome to UI Explorer
118
-
119
- Storybook helps you build UI components in isolation from your app's business logic, data, and context.
120
- That makes it easy to develop hard-to-reach states. Save these UI states as **stories** to revisit during development, testing, or QA.
121
-
122
- Browse example stories now by navigating to them in the sidebar.
123
- View their code in the `src/stories` directory to learn how they work.
124
- We recommend building UIs with a [**component-driven**](https://componentdriven.org) process starting with atomic components and ending with pages.
125
-
126
- <div className="subheading">Configure</div>
127
-
128
- <div className="link-list">
129
- <a
130
- className="link-item"
131
- href="https://storybook.js.org/docs/react/addons/addon-types"
132
- target="_blank"
133
- >
134
- <img src={Plugin} alt="plugin" />
135
- <span>
136
- <strong>Presets for popular tools</strong>
137
- Easy setup for TypeScript, SCSS and more.
138
- </span>
139
- </a>
140
- <a
141
- className="link-item"
142
- href="https://storybook.js.org/docs/react/configure/webpack"
143
- target="_blank"
144
- >
145
- <img src={StackAlt} alt="Build" />
146
- <span>
147
- <strong>Build configuration</strong>
148
- How to customize webpack and Babel
149
- </span>
150
- </a>
151
- <a
152
- className="link-item"
153
- href="https://storybook.js.org/docs/react/configure/styling-and-css"
154
- target="_blank"
155
- >
156
- <img src={Colors} alt="colors" />
157
- <span>
158
- <strong>Styling</strong>
159
- How to load and configure CSS libraries
160
- </span>
161
- </a>
162
- <a
163
- className="link-item"
164
- href="https://storybook.js.org/docs/react/get-started/setup#configure-storybook-for-your-stack"
165
- target="_blank"
166
- >
167
- <img src={Flow} alt="flow" />
168
- <span>
169
- <strong>Data</strong>
170
- Providers and mocking for data libraries
171
- </span>
172
- </a>
173
- </div>
174
-
175
- <div className="subheading">Learn</div>
176
-
177
- <div className="link-list">
178
- <a className="link-item" href="https://storybook.js.org/docs" target="_blank">
179
- <img src={Repo} alt="repo" />
180
- <span>
181
- <strong>Storybook documentation</strong>
182
- Configure, customize, and extend
183
- </span>
184
- </a>
185
- <a className="link-item" href="https://storybook.js.org/tutorials/" target="_blank">
186
- <img src={Direction} alt="direction" />
187
- <span>
188
- <strong>In-depth guides</strong>
189
- Best practices from leading teams
190
- </span>
191
- </a>
192
- <a className="link-item" href="https://github.com/storybookjs/storybook" target="_blank">
193
- <img src={Code} alt="code" />
194
- <span>
195
- <strong>GitHub project</strong>
196
- View the source and add issues
197
- </span>
198
- </a>
199
- <a className="link-item" href="https://discord.gg/storybook" target="_blank">
200
- <img src={Comments} alt="comments" />
201
- <span>
202
- <strong>Discord chat</strong>
203
- Chat with maintainers and the community
204
- </span>
205
- </a>
206
- </div>
207
-
208
- <div className="tip-wrapper">
209
- <span className="tip">Tip</span>Edit the Markdown in{' '}
210
- <code>src/stories/Introduction.stories.mdx</code>
211
- </div>
210
+ `}
211
+ </style>
@@ -1,4 +1,6 @@
1
+
1
2
  import PsMiniTag, {
3
+ // @ts-ignore
2
4
  typeOptions,
3
5
  } from '../components/badges-and-tags/PsMiniTag.vue'
4
6
 
@@ -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',
@@ -4,7 +4,7 @@ export default {
4
4
  title: 'Components/Playground',
5
5
  component: PsScrollBar
6
6
  }
7
-
7
+ // @ts-ignore
8
8
  const Template = (args, {argTypes}) => ({
9
9
  props: Object.keys(argTypes),
10
10
  components: { PsScrollBar},
@@ -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 = {}
@@ -5,6 +5,7 @@ export default {
5
5
  component: PsRadioButton,
6
6
  }
7
7
 
8
+ // @ts-ignore
8
9
  const DefaultTemplate = (args,{ argTypes}) => ({
9
10
  props: Object.keys(argTypes),
10
11
  components: { PsRadioButton},
@@ -5,7 +5,7 @@ export default {
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: () => ({
@@ -4,7 +4,7 @@ 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
  }
@@ -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,
@@ -3,7 +3,7 @@ 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 },
@@ -7,6 +7,7 @@ export default {
7
7
  component: PsTabHeader,
8
8
  argTypes: {}
9
9
  }
10
+ // @ts-ignore
10
11
  const Template = (args, { argTypes }) => ({
11
12
  props: Object.keys(argTypes),
12
13
  components: { PsTabHeader },
@@ -31,6 +32,7 @@ const Template = (args, { argTypes }) => ({
31
32
  })
32
33
 
33
34
  export const Standard = Template.bind({})
35
+ // @ts-ignore
34
36
  Standard.args = {
35
37
  layout: 'standard',
36
38
  items: items,
@@ -38,6 +40,7 @@ Standard.args = {
38
40
  }
39
41
 
40
42
  export const Underline = Template.bind({})
43
+ // @ts-ignore
41
44
  Underline.args = {
42
45
  layout: 'underline',
43
46
  items: items,
@@ -45,6 +48,7 @@ Underline.args = {
45
48
  }
46
49
 
47
50
  export const Folder = Template.bind({})
51
+ // @ts-ignore
48
52
  Folder.args = {
49
53
  layout: 'folder',
50
54
  items: items,
@@ -1,3 +1,4 @@
1
+ // @ts-ignore
1
2
  import PsTableResults, { tableLayout } from '../components/table-results/PsTableResults.vue'
2
3
  import PsTableResultsHead from '../components/table-results/PsTableResultsHead.vue'
3
4
  import PsTableResultsHeadFlexible from '../components/table-results/PsTableResultsHeadFlexible.vue'
@@ -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,
@@ -3,7 +3,7 @@ export default {
3
3
  title: 'Badges & Tags/Tags/Tag Scope',
4
4
  component: PsTagScope,
5
5
  }
6
-
6
+ // @ts-ignore
7
7
  const defaultTemplate = (args, {argTypes}) => ({
8
8
  props: Object.keys(argTypes),
9
9
  components: { PsTagScope },
@@ -4,7 +4,7 @@ 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',
@@ -3,7 +3,7 @@ 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 },