@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.
- package/.eslintrc.js +12 -8
- package/.storybook/PolicyStudio.ts +11 -0
- package/.storybook/manager.ts +7 -0
- package/dist/css/psui_styles.css +4035 -110277
- package/package.json +25 -22
- package/postcss.config.js +1 -1
- package/src/App.vue +30 -0
- package/src/assets/scss/base.scss +27 -23
- package/src/assets/scss/components/PsAccordion.scss +1 -1
- package/src/assets/scss/components/PsChips.scss +3 -3
- package/src/assets/scss/components/PsCostEffectBar.scss +4 -4
- package/src/assets/scss/components/PsProgressBar.scss +4 -4
- package/src/assets/scss/components/PsTabHeader.scss +1 -1
- package/src/assets/scss/components/PsTableResults.scss +1 -1
- package/src/assets/scss/components/PsTestimonialCard.scss +1 -1
- package/src/components/badges-and-tags/PsBadgeWithIcon.vue +2 -1
- package/src/components/badges-and-tags/PsProgressBar.vue +1 -1
- package/src/components/buttons/PsButton.vue +74 -96
- package/src/{index.js → index.ts} +4 -4
- package/src/shims-vue.d.ts +11 -0
- package/src/stories/{Accordion.stories.js → Accordion.stories.ts} +2 -2
- package/src/stories/{BadgeWithIcon.stories.js → BadgeWithIcon.stories.ts} +1 -1
- package/src/stories/{BarChart.stories.js → BarChart.stories.ts} +1 -1
- package/src/stories/{Breadcrumb.stories.js → Breadcrumb.stories.ts} +1 -4
- package/src/stories/{CardInfos.stories.js → CardInfos.stories.ts} +1 -2
- package/src/stories/{ChartLegend.stories.js → ChartLegend.stories.ts} +1 -2
- package/src/stories/{Checkbox.stories.js → Checkbox.stories.ts} +1 -1
- package/src/stories/{CheckboxSimple.stories.js → CheckboxSimple.stories.ts} +1 -1
- package/src/stories/{Chips.stories.js → Chips.stories.ts} +24 -22
- package/src/stories/ClimateZoneBadge.stories.ts +28 -0
- package/src/stories/CostEffectBar.stories.ts +26 -0
- package/src/stories/{Datatable.stories.js → Datatable.stories.ts} +5 -2
- package/src/stories/{DateCardInfo.stories.js → DateCardInfo.stories.ts} +1 -5
- package/src/stories/{Dialog.stories.js → Dialog.stories.ts} +1 -1
- package/src/stories/Draggable.stories.ts +32 -0
- package/src/stories/{Dropdown.stories.js → Dropdown.stories.ts} +1 -11
- package/src/stories/{DropdownList.stories.js → DropdownList.stories.ts} +3 -1
- package/src/stories/{Header.stories.js → Header.stories.ts} +1 -0
- package/src/stories/{HighlightRippleDot.stories.js → HighlightRippleDot.stories.ts} +2 -1
- package/src/stories/{Icon.stories.js → Icon.stories.ts} +2 -1
- package/src/stories/{InlineSelector.stories.js → InlineSelector.stories.ts} +1 -1
- package/src/stories/{Input.stories.js → Input.stories.ts} +6 -2
- package/src/stories/{InputSelect.stories.js → InputSelect.stories.ts} +2 -1
- package/src/stories/{InputTextArea.stories.js → InputTextArea.stories.ts} +1 -1
- package/src/stories/{MiniTag.stories.js → MiniTag.stories.ts} +8 -1
- package/src/stories/{Playground.stories.js → Playground.stories.ts} +1 -1
- package/src/stories/{ProgressBar.stories.js → ProgressBar.stories.ts} +2 -1
- package/src/stories/{RadioButton.stories.js → RadioButton.stories.ts} +1 -0
- package/src/stories/{RadioButtonSimple.stories.js → RadioButtonSimple.stories.ts} +1 -1
- package/src/stories/{SimpleAlert.stories.js → SimpleAlert.stories.ts} +2 -1
- package/src/stories/{Slider.stories.js → Slider.stories.ts} +5 -1
- package/src/stories/{Switch.stories.js → Switch.stories.ts} +1 -1
- package/src/stories/{TabHeader.stories.js → TabHeader.stories.ts} +4 -0
- package/src/stories/{TableResults.stories.js → TableResults.stories.ts} +5 -1
- package/src/stories/{TagScope.stories.js → TagScope.stories.ts} +1 -1
- package/src/stories/{TestimonialCard.stories.js → TestimonialCard.stories.ts} +2 -2
- package/src/stories/{Toast.stories.js → Toast.stories.ts} +1 -1
- package/src/stories/{Toggle.stories.js → Toggle.stories.ts} +6 -3
- package/src/stories/{Tooltip.stories.js → Tooltip.stories.ts} +3 -3
- package/src/util/{GeneralFunctions.js → GeneralFunctions.ts} +7 -7
- package/src/util/{imageLoader.js → imageLoader.ts} +15 -9
- package/tailwind.config.js +11 -2
- package/tsconfig.json +47 -0
- package/webpack.config.js +17 -3
- package/.storybook/PolicyStudio.js +0 -10
- package/.storybook/manager.js +0 -6
- package/babel.config.js +0 -17
- package/src/stories/ClimateZoneBadge.stories.js +0 -17
- package/src/stories/CostEffectBar.stories.js +0 -23
- package/src/stories/Draggable.stories.js +0 -22
- /package/.storybook/{eventBus.js → eventBus.ts} +0 -0
- /package/.storybook/{main.js → main.ts} +0 -0
- /package/.storybook/{preview.js → preview.ts} +0 -0
- /package/src/contents/{ComparisonData.js → ComparisonData.ts} +0 -0
- /package/src/contents/{FlexibleData.js → FlexibleData.ts} +0 -0
- /package/src/contents/{ResultsData.js → ResultsData.ts} +0 -0
- /package/src/stories/{Button.stories.js → Button.stories.ts} +0 -0
|
@@ -1,31 +1,33 @@
|
|
|
1
1
|
import PsChips from '../components/chips/PsChips.vue'
|
|
2
|
+
import type { Meta, StoryObj } from '@storybook/vue3'
|
|
2
3
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
import * as HeaderStories from '../stories/Header.stories'
|
|
5
|
+
|
|
6
|
+
const meta: Meta<typeof PsChips> = {
|
|
7
|
+
component: PsChips
|
|
6
8
|
}
|
|
7
9
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
10
|
+
export default meta
|
|
11
|
+
|
|
12
|
+
type Story = StoryObj<typeof PsChips>
|
|
13
|
+
|
|
14
|
+
export const Primary: Story = {
|
|
15
|
+
render: (args) => ({
|
|
16
|
+
components: { PsChips },
|
|
17
|
+
setup(){
|
|
18
|
+
return { args }
|
|
19
|
+
},
|
|
20
|
+
template: `<div style="display:flex; gap: 10px;">
|
|
19
21
|
<PsChips v-bind='$props' label="Simple chips with icons" type="button" layout="with-icon" icon="home" @update:checked='isChecked = $event' :checked='isChecked'/>
|
|
20
22
|
<PsChips v-bind='$props' label="Radio chips" type="radio" @update:checked='isChecked = $event' :checked='isChecked'/>
|
|
21
23
|
<PsChips v-bind='$props' label="Checkbox chips" type="checkbox" @update:checked='isCheckedTwo = $event' :checked='isCheckedTwo'/>
|
|
22
24
|
<PsChips v-bind='$props' label="Rich chips" type="button" layout="rich" icon="text_snippet" @update:checked='isChecked = $event' :checked='isChecked'/>
|
|
23
25
|
</div>
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
}
|
|
26
|
+
`,
|
|
27
|
+
args:{
|
|
28
|
+
label: 'Simple Chip',
|
|
29
|
+
icon:'',
|
|
30
|
+
...HeaderStories.LoggedIn.args
|
|
31
|
+
}
|
|
32
|
+
})
|
|
33
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/vue3'
|
|
2
|
+
|
|
3
|
+
import PsClimateZoneBadge from '../components/badges-and-tags/PsClimateZoneBadge.vue'
|
|
4
|
+
|
|
5
|
+
import * as HeaderStories from '../stories/Header.stories'
|
|
6
|
+
|
|
7
|
+
const meta: Meta<typeof PsClimateZoneBadge> = {
|
|
8
|
+
component: PsClimateZoneBadge
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export default meta
|
|
12
|
+
|
|
13
|
+
type Story = StoryObj<typeof PsClimateZoneBadge>
|
|
14
|
+
|
|
15
|
+
export const Primary: Story = {
|
|
16
|
+
render: (args) => ({
|
|
17
|
+
components: { PsClimateZoneBadge },
|
|
18
|
+
setup(){
|
|
19
|
+
return { args }
|
|
20
|
+
},
|
|
21
|
+
template: '<PsClimateZoneBadge v-bind="$props" />',
|
|
22
|
+
args:{
|
|
23
|
+
icon: 'area_chart',
|
|
24
|
+
...HeaderStories.LoggedIn.args
|
|
25
|
+
}
|
|
26
|
+
})
|
|
27
|
+
}
|
|
28
|
+
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/vue3'
|
|
2
|
+
|
|
3
|
+
import PsCostEffectBar from '../components/badges-and-tags/PsCostEffectBar.vue'
|
|
4
|
+
|
|
5
|
+
import * as HeaderStories from '../stories/Header.stories'
|
|
6
|
+
|
|
7
|
+
const meta: Meta<typeof PsCostEffectBar> = {
|
|
8
|
+
component: PsCostEffectBar
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export default meta
|
|
12
|
+
|
|
13
|
+
type Story = StoryObj<typeof PsCostEffectBar>
|
|
14
|
+
|
|
15
|
+
export const Primary: Story = {
|
|
16
|
+
render: (args) => ({
|
|
17
|
+
components: { PsCostEffectBar },
|
|
18
|
+
setup(){
|
|
19
|
+
return { args }
|
|
20
|
+
},
|
|
21
|
+
template: '<PsCostEffectBar v-bind="$props" />',
|
|
22
|
+
args:{
|
|
23
|
+
...HeaderStories.LoggedIn.args
|
|
24
|
+
}
|
|
25
|
+
})
|
|
26
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
// @ts-ignore
|
|
1
2
|
import PsDataTable, { alignment } from '../components/datatable/PsDataTable.vue'
|
|
2
3
|
import PsDataTableItem from '../components/datatable/PsDataTableItem.vue'
|
|
3
4
|
|
|
@@ -10,7 +11,7 @@ export default {
|
|
|
10
11
|
}
|
|
11
12
|
}
|
|
12
13
|
|
|
13
|
-
const Template = (args, { argTypes }) => ({
|
|
14
|
+
const Template = (args:any, { argTypes }:{ argTypes:any }) => ({
|
|
14
15
|
props: Object.keys(argTypes),
|
|
15
16
|
components: {PsDataTable},
|
|
16
17
|
template: `
|
|
@@ -20,7 +21,7 @@ const Template = (args, { argTypes }) => ({
|
|
|
20
21
|
`
|
|
21
22
|
})
|
|
22
23
|
|
|
23
|
-
const RichTemplate = (args, { argTypes } ) => ({
|
|
24
|
+
const RichTemplate = (args:any, { argTypes }:{ argTypes:any } ) => ({
|
|
24
25
|
props: Object.keys(argTypes),
|
|
25
26
|
components: {PsDataTable, PsDataTableItem},
|
|
26
27
|
template: `
|
|
@@ -34,6 +35,7 @@ const RichTemplate = (args, { argTypes } ) => ({
|
|
|
34
35
|
|
|
35
36
|
|
|
36
37
|
export const Simple = Template.bind({})
|
|
38
|
+
// @ts-ignore
|
|
37
39
|
Simple.args = {
|
|
38
40
|
header: ['year', 'month', 'sale'],
|
|
39
41
|
data: [{ year: '1992', month: '12', sale: '1000.00' }, { year: '1989', month: '02', sale: '1200.00' }],
|
|
@@ -42,6 +44,7 @@ Simple.args = {
|
|
|
42
44
|
}
|
|
43
45
|
|
|
44
46
|
export const Rich = RichTemplate.bind({})
|
|
47
|
+
// @ts-ignore
|
|
45
48
|
Rich.args = {
|
|
46
49
|
header: ['header 1', 'header 2', 'header 3'],
|
|
47
50
|
data:[[ [ 20, -3], [ 20, 2], [ 20, 2] ], { header4: { value: 20, delta: 2}, header5: { value: 20, delta: 2}, header6: { value: 20, delta: 2} }],
|
|
@@ -5,7 +5,7 @@ export default {
|
|
|
5
5
|
component: PsDateCardInfo,
|
|
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:{PsDateCardInfo},
|
|
11
11
|
template: `
|
|
@@ -18,7 +18,3 @@ export default {
|
|
|
18
18
|
})
|
|
19
19
|
|
|
20
20
|
export const Default = Template.bind({})
|
|
21
|
-
|
|
22
|
-
Default.args = {
|
|
23
|
-
date: '2021/02/23'
|
|
24
|
-
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import PsDraggable from '../components/controls/PsDraggable.vue'
|
|
2
|
+
|
|
3
|
+
import type { Meta, StoryObj } from '@storybook/vue3'
|
|
4
|
+
|
|
5
|
+
import * as HeaderStories from '../stories/Header.stories'
|
|
6
|
+
|
|
7
|
+
const meta: Meta<typeof PsDraggable> = {
|
|
8
|
+
component: PsDraggable
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export default meta
|
|
12
|
+
|
|
13
|
+
type Story = StoryObj<typeof PsDraggable>
|
|
14
|
+
|
|
15
|
+
export const Primary: Story = {
|
|
16
|
+
render: (args) => ({
|
|
17
|
+
components: { PsDraggable },
|
|
18
|
+
setup(){
|
|
19
|
+
return { args }
|
|
20
|
+
},
|
|
21
|
+
template: `
|
|
22
|
+
<div style='width: 300px; font-family: "Lato", sans-serif; font-size: 12px;'>
|
|
23
|
+
<PsDraggable v-bind='$props'/>
|
|
24
|
+
</div>
|
|
25
|
+
`,
|
|
26
|
+
args:{
|
|
27
|
+
...HeaderStories.LoggedIn.args,
|
|
28
|
+
getColumns: {columnGroups:[{title: 'COST EFFECTIVENESS', columns: [ 'Item 1' , 'Item 2' , 'Item 3', 'Item 4']}, {title: 'PER HOME RESULTS', columns: [ 'Item 1' , 'Item 2' , 'Item 3', 'Item 4']}]},
|
|
29
|
+
module: 'comparison'
|
|
30
|
+
}
|
|
31
|
+
})
|
|
32
|
+
}
|
|
@@ -5,7 +5,7 @@ export default {
|
|
|
5
5
|
component: { PsDropdown, PsDropdownList },
|
|
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: { PsDropdown, PsDropdownList },
|
|
11
11
|
template: `
|
|
@@ -87,13 +87,3 @@ const Template = (args, { argTypes }) => ({
|
|
|
87
87
|
})
|
|
88
88
|
|
|
89
89
|
export const DropdownMenu = Template.bind({})
|
|
90
|
-
DropdownMenu.args = {
|
|
91
|
-
items: [
|
|
92
|
-
'Selectable option 01',
|
|
93
|
-
'Selectable option 02',
|
|
94
|
-
'Selectable option 03',
|
|
95
|
-
'Selectable option 04',
|
|
96
|
-
'Selectable option 05',
|
|
97
|
-
'Selectable option 06',
|
|
98
|
-
],
|
|
99
|
-
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
// @ts-ignore
|
|
1
2
|
import PsDropdownList, { itemStyle } from '../components/forms/PsDropdownList.vue'
|
|
2
3
|
export default {
|
|
3
4
|
title: 'Components/Dropdown/Dropdown List',
|
|
@@ -17,7 +18,7 @@ export default {
|
|
|
17
18
|
}
|
|
18
19
|
}
|
|
19
20
|
}
|
|
20
|
-
|
|
21
|
+
// @ts-ignore
|
|
21
22
|
const Template = (args, { argTypes }) => ({
|
|
22
23
|
props: Object.keys(argTypes),
|
|
23
24
|
components: { PsDropdownList },
|
|
@@ -205,6 +206,7 @@ const studyData = {
|
|
|
205
206
|
}
|
|
206
207
|
|
|
207
208
|
export const DropdownList = Template.bind({})
|
|
209
|
+
// @ts-ignore
|
|
208
210
|
DropdownList.args = {
|
|
209
211
|
items: onlyTextItems,
|
|
210
212
|
study_data: studyData,
|
|
@@ -5,6 +5,7 @@ export default {
|
|
|
5
5
|
component: MyHeader,
|
|
6
6
|
// This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/writing-docs/autodocs
|
|
7
7
|
tags: ['autodocs'],
|
|
8
|
+
// @ts-ignore
|
|
8
9
|
render: (args) => ({
|
|
9
10
|
// Components used in your story `template` are defined in the `components` object
|
|
10
11
|
components: {
|
|
@@ -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 = {}
|
|
@@ -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
|
}
|
|
@@ -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',
|
|
@@ -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,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,
|
|
@@ -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,
|
|
@@ -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',
|