@policystudio/policy-studio-ui-vue 1.1.90-beta.30 → 1.1.90-beta.32
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/dist/css/psui_styles_output.css +5679 -6077
- package/dist/index.d.ts +2 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/doc/.nvmrc +1 -0
- package/doc/.storybook/PolicyStudio.ts +11 -0
- package/doc/.storybook/main.ts +27 -0
- package/doc/.storybook/manager.ts +7 -0
- package/doc/.storybook/preview.ts +16 -0
- package/doc/package-lock.json +22653 -0
- package/doc/package.json +71 -0
- package/doc/shims-vue.d.ts +6 -0
- package/doc/src/assets/images/multifamily-units.svg +10 -0
- package/doc/src/assets/images/policy-studio.svg +15 -0
- package/doc/src/contents/ComparisonData.ts +378 -0
- package/doc/src/contents/FlexibleData.ts +502 -0
- package/doc/src/contents/ResultsData.ts +531 -0
- package/doc/src/stories/Accordion.stories.ts +58 -0
- package/doc/src/stories/BadgeWithIcon.stories.ts +31 -0
- package/doc/src/stories/BarChart.stories.ts +17 -0
- package/doc/src/stories/Breadcrumb.stories.ts +22 -0
- package/doc/src/stories/Button.stories.ts +130 -0
- package/doc/src/stories/CardInfos.stories.ts +15 -0
- package/doc/src/stories/ChartLegend.stories.ts +15 -0
- package/doc/src/stories/Checkbox.stories.ts +45 -0
- package/doc/src/stories/CheckboxSimple.stories.ts +49 -0
- package/doc/src/stories/Chips.stories.ts +30 -0
- package/doc/src/stories/ClimateZoneBadge.stories.ts +18 -0
- package/doc/src/stories/Collapse.stories.ts +46 -0
- package/doc/src/stories/Colors.mdx +70 -0
- package/doc/src/stories/CostEffectBar.stories.ts +24 -0
- package/doc/src/stories/Datatable.stories.ts +53 -0
- package/doc/src/stories/DateCardInfo.stories.ts +20 -0
- package/doc/src/stories/Dialog.stories.ts +131 -0
- package/doc/src/stories/Draggable.stories.ts +23 -0
- package/doc/src/stories/Dropdown.stories.ts +100 -0
- package/doc/src/stories/DropdownList.stories.ts +213 -0
- package/doc/src/stories/ElevationSystem.mdx +41 -0
- package/doc/src/stories/HighlightRippleDot.stories.ts +16 -0
- package/doc/src/stories/Icon.stories.ts +23 -0
- package/doc/src/stories/InlineSelector.stories.ts +18 -0
- package/doc/src/stories/Input.stories.ts +243 -0
- package/doc/src/stories/InputSelect.stories.ts +31 -0
- package/doc/src/stories/InputTextArea.stories.ts +25 -0
- package/doc/src/stories/Introduction.mdx +211 -0
- package/doc/src/stories/MiniTag.stories.ts +59 -0
- package/doc/src/stories/ProgressBar.stories.ts +24 -0
- package/doc/src/stories/RadioButton.stories.ts +40 -0
- package/doc/src/stories/RadioButtonSimple.stories.ts +43 -0
- package/doc/src/stories/SimpleAlert.stories.ts +22 -0
- package/doc/src/stories/Slider.stories.ts +79 -0
- package/doc/src/stories/Switch.stories.ts +39 -0
- package/doc/src/stories/TabHeader.stories.ts +57 -0
- package/doc/src/stories/TableResults.stories.ts +728 -0
- package/doc/src/stories/TagScope.stories.ts +18 -0
- package/doc/src/stories/TestimonialCard.stories.ts +27 -0
- package/doc/src/stories/Toast.stories.ts +52 -0
- package/doc/src/stories/Toggle.stories.ts +48 -0
- package/doc/src/stories/Tooltip.stories.ts +114 -0
- package/doc/src/stories/Typography.mdx +212 -0
- package/doc/src/stories/assets/code-brackets.svg +1 -0
- package/doc/src/stories/assets/colors.svg +1 -0
- package/doc/src/stories/assets/comments.svg +1 -0
- package/doc/src/stories/assets/direction.svg +1 -0
- package/doc/src/stories/assets/flow.svg +1 -0
- package/doc/src/stories/assets/plugin.svg +1 -0
- package/doc/src/stories/assets/repo.svg +1 -0
- package/doc/src/stories/assets/stackalt.svg +1 -0
- package/doc/tsconfig.json +17 -0
- package/package.json +7 -3
- package/scripts/gulp.js +11 -0
- package/src/assets/scss/base.scss +3 -34
- package/src/assets/scss/components/PsAccordion.scss +1 -1
- package/src/assets/scss/components/PsCollapse.css +74 -0
- package/src/components/collapse/PsCollapse.vue +121 -0
- package/src/index.ts +4 -1
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import PsSimpleAlert from '../../../src/components/notifications/PsSimpleAlert.vue'
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
title: 'Notifications/Simple Alert',
|
|
5
|
+
component: PsSimpleAlert,
|
|
6
|
+
}
|
|
7
|
+
// @ts-ignore
|
|
8
|
+
const TemplateDefault = (args, { argTypes }) => ({
|
|
9
|
+
props: Object.keys(argTypes),
|
|
10
|
+
components: { PsSimpleAlert },
|
|
11
|
+
template: `
|
|
12
|
+
<div style="width:300px;">
|
|
13
|
+
<PsSimpleAlert v-bind="$props" class="psui-text-blue-60 psui-bg-blue-20"/>
|
|
14
|
+
</div>
|
|
15
|
+
`,
|
|
16
|
+
})
|
|
17
|
+
|
|
18
|
+
export const Default = TemplateDefault.bind({})
|
|
19
|
+
// @ts-ignore
|
|
20
|
+
Default.args = {
|
|
21
|
+
message:'lorem'
|
|
22
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import PsSlider from '../../../src/components/controls/PsSlider.vue'
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
title: 'Text fields & Forms/Slider',
|
|
5
|
+
component: PsSlider,
|
|
6
|
+
// argTypes: {
|
|
7
|
+
// layout: { control: { type: 'inline-radio', options: sliderLayout } },
|
|
8
|
+
// },
|
|
9
|
+
}
|
|
10
|
+
// @ts-ignore
|
|
11
|
+
const Template = (args, { argTypes }) => ({
|
|
12
|
+
props: Object.keys(argTypes),
|
|
13
|
+
components: { PsSlider },
|
|
14
|
+
template: `
|
|
15
|
+
<div style="width: 500px;display:block;margin:0 auto;">
|
|
16
|
+
<PsSlider
|
|
17
|
+
v-if="$props['layout'] == 'rich'"
|
|
18
|
+
v-bind="$props"
|
|
19
|
+
:value.sync="value"
|
|
20
|
+
class="psui-bg-gray-10 psui-p-10 psui-rounded psui-border psui-border-gray-30 psui-border-dashed"
|
|
21
|
+
/>
|
|
22
|
+
<PsSlider
|
|
23
|
+
v-else
|
|
24
|
+
v-bind="$props"
|
|
25
|
+
:value.sync="value"
|
|
26
|
+
/>
|
|
27
|
+
</div>
|
|
28
|
+
`
|
|
29
|
+
})
|
|
30
|
+
|
|
31
|
+
export const Label = Template.bind({})
|
|
32
|
+
// @ts-ignore
|
|
33
|
+
Label.args = {
|
|
34
|
+
min: 0,
|
|
35
|
+
max: 200,
|
|
36
|
+
maxValue: 200,
|
|
37
|
+
value: 30,
|
|
38
|
+
label: 'Score Label',
|
|
39
|
+
layout: 'default'
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export const NoLabel = Template.bind({})
|
|
43
|
+
// @ts-ignore
|
|
44
|
+
NoLabel.args = {
|
|
45
|
+
min: 0,
|
|
46
|
+
max: 200,
|
|
47
|
+
maxValue: 200,
|
|
48
|
+
value: 15,
|
|
49
|
+
layout: 'default'
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export const Bubble = Template.bind({})
|
|
53
|
+
// @ts-ignore
|
|
54
|
+
Bubble.args = {
|
|
55
|
+
min: 0,
|
|
56
|
+
max: 200,
|
|
57
|
+
maxValue: 200,
|
|
58
|
+
value: 23,
|
|
59
|
+
bubble: true,
|
|
60
|
+
layout: 'default'
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
const sliderColors = [
|
|
64
|
+
{ start: 140, end: 170, bgColor: '#FF906D' },
|
|
65
|
+
{ start: 170, end: 200, bgColor: '#D65C5A' },
|
|
66
|
+
]
|
|
67
|
+
export const Rich = Template.bind({})
|
|
68
|
+
// @ts-ignore
|
|
69
|
+
Rich.args = {
|
|
70
|
+
min: 0,
|
|
71
|
+
max: 200,
|
|
72
|
+
maxValue: 200,
|
|
73
|
+
value: 20,
|
|
74
|
+
bubble: true,
|
|
75
|
+
dividers: true,
|
|
76
|
+
layout: 'rich',
|
|
77
|
+
sliderColors: sliderColors,
|
|
78
|
+
gridData: [0, 30, 55, 80, 100]
|
|
79
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import PsSwitch from '../../../src/components/controls/PsSwitch.vue'
|
|
2
|
+
export default {
|
|
3
|
+
title: 'Controls & Selectors/Switch',
|
|
4
|
+
component: PsSwitch,
|
|
5
|
+
}
|
|
6
|
+
// @ts-ignore
|
|
7
|
+
const Template = (args, { argTypes }) => ({
|
|
8
|
+
props: Object.keys(argTypes),
|
|
9
|
+
components: { PsSwitch },
|
|
10
|
+
data(){
|
|
11
|
+
return {
|
|
12
|
+
dt: false
|
|
13
|
+
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
template: `
|
|
17
|
+
<div style='display: flex; gap:10px;'>
|
|
18
|
+
<div style='display: flex; gap: 10px; flex-direction: column; margin-right: 10px;'>
|
|
19
|
+
<span>Size</span>
|
|
20
|
+
<span>BIG</span>
|
|
21
|
+
<span>SMALL</span>
|
|
22
|
+
</div>
|
|
23
|
+
<div style='display: flex; gap: 10px; flex-direction: column;'>
|
|
24
|
+
<span>Disable</span>
|
|
25
|
+
<PsSwitch v-bind="$props" v-model="dt" label='Switch1' disabled size='big'/>
|
|
26
|
+
<PsSwitch v-bind="$props" v-model="dt" label='Switch2' disabled size='small'/>
|
|
27
|
+
</div>
|
|
28
|
+
<div style='display: flex; gap: 10px; flex-direction: column;'>
|
|
29
|
+
<span>Enable</span>
|
|
30
|
+
<PsSwitch v-bind="$props" label='Switch3' value size='big'/>
|
|
31
|
+
<PsSwitch v-bind="$props" label='Switch4' value size='small'/>
|
|
32
|
+
</div>
|
|
33
|
+
</div>
|
|
34
|
+
`
|
|
35
|
+
})
|
|
36
|
+
|
|
37
|
+
export const Default = Template.bind({})
|
|
38
|
+
|
|
39
|
+
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import PsTabHeader from '../../../src/components/tabs/PsTabHeader.vue'
|
|
2
|
+
const items = ['Existing Buildings', 'New Constructions', 'Other tab']
|
|
3
|
+
const item = items[0]
|
|
4
|
+
|
|
5
|
+
export default {
|
|
6
|
+
title: 'Components/Tab Header',
|
|
7
|
+
component: PsTabHeader,
|
|
8
|
+
argTypes: {}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
// @ts-ignore
|
|
12
|
+
const Template = (args, { argTypes }) => ({
|
|
13
|
+
props: Object.keys(argTypes),
|
|
14
|
+
components: { PsTabHeader },
|
|
15
|
+
data: () => {
|
|
16
|
+
return {
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
template: `
|
|
20
|
+
<div class="psui-bg-gray-20 psui-p-8">
|
|
21
|
+
<PsTabHeader :selected.sync=selected v-bind="$props"/>
|
|
22
|
+
<div v-if="$props['selected'] === 'Existing Buildings'" class="psui-bg-white psui-p-4" :class="{ 'psui-mt-4' : $props['layout'] === 'standard'}">
|
|
23
|
+
<p v-for="i of 4">Tab Existing Buildings Selected</p>
|
|
24
|
+
</div>
|
|
25
|
+
<div v-if="$props['selected'] === 'New Constructions'" class="psui-bg-white psui-p-4" :class="{ 'psui-mt-4' : $props['layout'] === 'standard'}">
|
|
26
|
+
<p v-for="i of 4">Tab New Constructions Selected</p>
|
|
27
|
+
</div>
|
|
28
|
+
<div v-if="$props['selected'] === 'Other tab'" class="psui-bg-white psui-p-4" :class="{ 'psui-mt-4' : $props['layout'] === 'standard'}">
|
|
29
|
+
<p v-for="i of 4">Other tab Selected</p>
|
|
30
|
+
</div>
|
|
31
|
+
</div>
|
|
32
|
+
`
|
|
33
|
+
})
|
|
34
|
+
|
|
35
|
+
export const Standard = Template.bind({})
|
|
36
|
+
// @ts-ignore
|
|
37
|
+
Standard.args = {
|
|
38
|
+
layout: 'standard',
|
|
39
|
+
items: items,
|
|
40
|
+
selected: item
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export const Underline = Template.bind({})
|
|
44
|
+
// @ts-ignore
|
|
45
|
+
Underline.args = {
|
|
46
|
+
layout: 'underline',
|
|
47
|
+
items: items,
|
|
48
|
+
selected: item
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export const Folder = Template.bind({})
|
|
52
|
+
// @ts-ignore
|
|
53
|
+
Folder.args = {
|
|
54
|
+
layout: 'folder',
|
|
55
|
+
items: items,
|
|
56
|
+
selected: item
|
|
57
|
+
}
|