@policystudio/policy-studio-ui-vue 1.1.90-beta.2 → 1.1.90-beta.21
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 +13 -8
- package/.github/workflows/deploy-storybook.yml +4 -4
- package/.nvmrc +1 -0
- package/dist/css/psui_styles_output.css +6986 -0
- package/dist/index.d.ts +50 -0
- package/dist/index.js +104 -0
- package/dist/index.js.map +1 -0
- package/dist/util/GeneralFunctions.d.ts +3 -0
- package/dist/util/GeneralFunctions.js +29 -0
- package/dist/util/GeneralFunctions.js.map +1 -0
- package/dist/util/directives.d.ts +1 -0
- package/dist/util/directives.js +22 -0
- package/dist/util/directives.js.map +1 -0
- package/dist/util/imageLoader.d.ts +6 -0
- package/dist/util/imageLoader.js +52 -0
- package/dist/util/imageLoader.js.map +1 -0
- package/package.json +24 -37
- package/src/App.vue +30 -0
- package/src/assets/scss/components/PsDataTable.scss +1 -1
- package/src/components/accordion/PsAccordionItem.vue +75 -75
- package/src/components/badges-and-tags/PsBadgeWithIcon.vue +31 -33
- package/src/components/badges-and-tags/PsCardInfos.vue +39 -41
- package/src/components/badges-and-tags/PsChartLegend.vue +46 -51
- package/src/components/badges-and-tags/PsClimateZoneBadge.vue +13 -19
- package/src/components/badges-and-tags/PsCostEffectBar.vue +24 -56
- package/src/components/badges-and-tags/PsDateCardInfo.vue +17 -18
- package/src/components/badges-and-tags/PsHighlightRippleDot.vue +3 -2
- package/src/components/badges-and-tags/PsMiniTag.vue +39 -41
- package/src/components/badges-and-tags/PsProgressBar.vue +72 -68
- package/src/components/badges-and-tags/PsTagScope.vue +17 -22
- package/src/components/badges-and-tags/PsTestimonialCard.vue +19 -26
- package/src/components/buttons/PsButton.vue +88 -111
- package/src/components/chips/PsChips.vue +98 -101
- package/src/components/controls/PsCheckbox.vue +84 -84
- package/src/components/controls/PsCheckboxSimple.vue +95 -95
- package/src/components/controls/PsDraggable.vue +53 -55
- package/src/components/controls/PsInlineSelector.vue +98 -99
- package/src/components/controls/PsRadioButton.vue +59 -58
- package/src/components/controls/PsRadioButtonSimple.vue +79 -75
- package/src/components/controls/PsSlider.vue +185 -176
- package/src/components/controls/PsSwitch.vue +51 -52
- package/src/components/controls/PsToggle.vue +52 -50
- package/src/components/data-graphics/PsBarChart.vue +18 -21
- package/src/components/datatable/PsDataTable.vue +56 -60
- package/src/components/datatable/PsDataTableItem.vue +13 -28
- package/src/components/forms/PsDropdown.vue +164 -162
- package/src/components/forms/PsDropdownList.vue +133 -130
- package/src/components/forms/PsInput.vue +154 -153
- package/src/components/forms/PsInputSelect.vue +91 -92
- package/src/components/forms/PsInputTextArea.vue +71 -71
- package/src/components/navigations/PsBreadcrumb.vue +25 -34
- package/src/components/notifications/PsDialog.vue +57 -56
- package/src/components/notifications/PsSimpleAlert.vue +27 -29
- package/src/components/notifications/PsToast.vue +40 -39
- package/src/components/table-results/PsTableResults.vue +449 -458
- package/src/components/table-results/PsTableResultsBody.vue +66 -67
- package/src/components/table-results/PsTableResultsHead.vue +62 -56
- package/src/components/table-results/PsTableResultsHeadComparison.vue +62 -56
- package/src/components/table-results/PsTableResultsHeadFlexible.vue +63 -56
- package/src/components/table-results/PsTableResultsRow.vue +55 -56
- package/src/components/tabs/PsTabHeader.vue +106 -100
- package/src/components/tooltip/PsDialogTooltip.vue +96 -101
- package/src/components/tooltip/PsRichTooltip.vue +41 -45
- package/src/components/tooltip/PsTooltip.vue +111 -116
- package/src/components/ui/PsDotLoader.vue +1 -5
- package/src/components/ui/PsIcon.vue +126 -129
- package/src/index.ts +156 -0
- package/src/tsconfig.json +12 -0
- package/src/types/index.d.ts +6 -0
- package/src/util/GeneralFunctions.js +4 -6
- package/src/util/directives.ts +24 -0
- package/src/util/imageLoader.js +14 -7
- package/tailwind.config.js +1 -1
- package/tsconfig.json +47 -0
- package/.storybook/PolicyStudio.js +0 -10
- package/.storybook/eventBus.js +0 -26
- package/.storybook/main.js +0 -21
- package/.storybook/manager.js +0 -6
- package/.storybook/preview.js +0 -17
- package/babel.config.js +0 -17
- package/dist/css/psui_styles.css +0 -4647
- package/postcss.config.js +0 -8
- package/src/assets/images/multifamily-units.svg +0 -10
- package/src/assets/images/policy-studio.svg +0 -15
- package/src/components/playground/PsScrollBar.vue +0 -320
- package/src/contents/ComparisonData.js +0 -378
- package/src/contents/FlexibleData.js +0 -502
- package/src/contents/ResultsData.js +0 -531
- package/src/index.js +0 -166
- package/src/stories/Accordion.stories.js +0 -59
- package/src/stories/BadgeWithIcon.stories.js +0 -31
- package/src/stories/BarChart.stories.js +0 -17
- package/src/stories/Breadcrumb.stories.js +0 -25
- package/src/stories/Button.stories.js +0 -48
- package/src/stories/Button.vue +0 -59
- package/src/stories/CardInfos.stories.js +0 -16
- package/src/stories/ChartLegend.stories.js +0 -16
- package/src/stories/Checkbox.stories.js +0 -45
- package/src/stories/CheckboxSimple.stories.js +0 -49
- package/src/stories/Chips.stories.js +0 -31
- package/src/stories/ClimateZoneBadge.stories.js +0 -17
- package/src/stories/Colors.mdx +0 -70
- package/src/stories/CostEffectBar.stories.js +0 -23
- package/src/stories/Datatable.stories.js +0 -50
- package/src/stories/DateCardInfo.stories.js +0 -24
- package/src/stories/Dialog.stories.js +0 -131
- package/src/stories/Draggable.stories.js +0 -22
- package/src/stories/Dropdown.stories.js +0 -99
- package/src/stories/DropdownList.stories.js +0 -211
- package/src/stories/ElevationSystem.mdx +0 -41
- package/src/stories/Header.stories.js +0 -41
- package/src/stories/Header.vue +0 -77
- package/src/stories/HighlightRippleDot.stories.js +0 -15
- package/src/stories/Icon.stories.js +0 -21
- package/src/stories/InlineSelector.stories.js +0 -18
- package/src/stories/Input.stories.js +0 -240
- package/src/stories/InputSelect.stories.js +0 -30
- package/src/stories/InputTextArea.stories.js +0 -25
- package/src/stories/Introduction.mdx +0 -211
- package/src/stories/MiniTag.stories.js +0 -52
- package/src/stories/Playground.stories.js +0 -16
- package/src/stories/ProgressBar.stories.js +0 -23
- package/src/stories/RadioButton.stories.js +0 -40
- package/src/stories/RadioButtonSimple.stories.js +0 -43
- package/src/stories/SimpleAlert.stories.js +0 -21
- package/src/stories/Slider.stories.js +0 -75
- package/src/stories/Switch.stories.js +0 -39
- package/src/stories/TabHeader.stories.js +0 -52
- package/src/stories/TableResults.stories.js +0 -724
- package/src/stories/TagScope.stories.js +0 -17
- package/src/stories/TestimonialCard.stories.js +0 -27
- package/src/stories/Toast.stories.js +0 -52
- package/src/stories/Toggle.stories.js +0 -45
- package/src/stories/Tooltip.stories.js +0 -114
- package/src/stories/Typography.mdx +0 -212
- package/src/stories/assets/code-brackets.svg +0 -1
- package/src/stories/assets/colors.svg +0 -1
- package/src/stories/assets/comments.svg +0 -1
- package/src/stories/assets/direction.svg +0 -1
- package/src/stories/assets/flow.svg +0 -1
- package/src/stories/assets/plugin.svg +0 -1
- package/src/stories/assets/repo.svg +0 -1
- package/src/stories/assets/stackalt.svg +0 -1
- package/src/stories/button.css +0 -30
- package/src/stories/header.css +0 -32
- package/webpack.config.js +0 -22
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import PsRadioButtonSimple from '../components/controls/PsRadioButtonSimple.vue'
|
|
2
|
-
|
|
3
|
-
export default {
|
|
4
|
-
title: 'Text fields & Forms/Inputs V2/RadioButton',
|
|
5
|
-
component: PsRadioButtonSimple,
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
const defaultTemplate = (args, {argTypes}) => ({
|
|
9
|
-
props: Object.keys(argTypes),
|
|
10
|
-
components: { PsRadioButtonSimple },
|
|
11
|
-
data: () => ({
|
|
12
|
-
checkBox1 : true
|
|
13
|
-
}),
|
|
14
|
-
template: `
|
|
15
|
-
<div style='display:flex; gap: 20px;'>
|
|
16
|
-
<div style='display:flex; flex-direction:column; gap:5px;'>
|
|
17
|
-
<p>Resting</p>
|
|
18
|
-
<div style='display: flex; flex-direction:column; gap: 10px;'>
|
|
19
|
-
<PsRadioButtonSimple :checked="radioButton1" @click="radioButton1 = true" label='Label 1' />
|
|
20
|
-
<PsRadioButtonSimple :checked="radioButton2" @click="radioButton2 = true" label='Label 2' size='small' />
|
|
21
|
-
</div>
|
|
22
|
-
</div>
|
|
23
|
-
<div style='display:flex; flex-direction:column; gap:5px;'>
|
|
24
|
-
<p>Active</p>
|
|
25
|
-
<div style='display: flex; flex-direction:column; gap: 10px;'>
|
|
26
|
-
<PsRadioButtonSimple v-bind="$props" label='Label 3' checked />
|
|
27
|
-
<PsRadioButtonSimple v-bind="$props" label='Label 4' checked size='small'/>
|
|
28
|
-
</div>
|
|
29
|
-
</div>
|
|
30
|
-
<div style='display:flex; flex-direction:column; gap:5px;'>
|
|
31
|
-
<p>Disabled</p>
|
|
32
|
-
<div style='display: flex; flex-direction:column; gap: 10px;'>
|
|
33
|
-
<PsRadioButtonSimple v-bind="$props" label='Input via inputAttrs' :inputAttrs="{ id: 'my-input-id' }" disabled/>
|
|
34
|
-
<PsRadioButtonSimple v-bind="$props" label='Input via component id' size='small' id="my-component-id" data-test="test" disabled/>
|
|
35
|
-
<PsRadioButtonSimple v-bind="$props" label='Input fallback' size='small' disabled/>
|
|
36
|
-
</div>
|
|
37
|
-
</div>
|
|
38
|
-
</div>
|
|
39
|
-
`
|
|
40
|
-
})
|
|
41
|
-
|
|
42
|
-
export const Default = defaultTemplate.bind({})
|
|
43
|
-
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import PsSimpleAlert from '../components/notifications/PsSimpleAlert.vue'
|
|
2
|
-
|
|
3
|
-
export default {
|
|
4
|
-
title: 'Notifications/Simple Alert',
|
|
5
|
-
component: PsSimpleAlert,
|
|
6
|
-
}
|
|
7
|
-
|
|
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
|
-
Default.args = {
|
|
20
|
-
message:'lorem'
|
|
21
|
-
}
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import PsSlider from '../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
|
-
|
|
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
|
-
Label.args = {
|
|
33
|
-
min: 0,
|
|
34
|
-
max: 200,
|
|
35
|
-
maxValue: 200,
|
|
36
|
-
value: 30,
|
|
37
|
-
label: 'Score Label',
|
|
38
|
-
layout: 'default'
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
export const NoLabel = Template.bind({})
|
|
42
|
-
NoLabel.args = {
|
|
43
|
-
min: 0,
|
|
44
|
-
max: 200,
|
|
45
|
-
maxValue: 200,
|
|
46
|
-
value: 15,
|
|
47
|
-
layout: 'default'
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
export const Bubble = Template.bind({})
|
|
51
|
-
Bubble.args = {
|
|
52
|
-
min: 0,
|
|
53
|
-
max: 200,
|
|
54
|
-
maxValue: 200,
|
|
55
|
-
value: 23,
|
|
56
|
-
bubble: true,
|
|
57
|
-
layout: 'default'
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
const sliderColors = [
|
|
61
|
-
{ start: 140, end: 170, bgColor: '#FF906D' },
|
|
62
|
-
{ start: 170, end: 200, bgColor: '#D65C5A' },
|
|
63
|
-
]
|
|
64
|
-
export const Rich = Template.bind({})
|
|
65
|
-
Rich.args = {
|
|
66
|
-
min: 0,
|
|
67
|
-
max: 200,
|
|
68
|
-
maxValue: 200,
|
|
69
|
-
value: 20,
|
|
70
|
-
bubble: true,
|
|
71
|
-
dividers: true,
|
|
72
|
-
layout: 'rich',
|
|
73
|
-
sliderColors: sliderColors,
|
|
74
|
-
gridData: [0, 30, 55, 80, 100]
|
|
75
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import PsSwitch from '../components/controls/PsSwitch.vue'
|
|
2
|
-
export default {
|
|
3
|
-
title: 'Controls & Selectors/Switch',
|
|
4
|
-
component: PsSwitch,
|
|
5
|
-
}
|
|
6
|
-
|
|
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
|
-
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import PsTabHeader from '../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
|
-
const Template = (args, { argTypes }) => ({
|
|
11
|
-
props: Object.keys(argTypes),
|
|
12
|
-
components: { PsTabHeader },
|
|
13
|
-
data: () => {
|
|
14
|
-
return {
|
|
15
|
-
}
|
|
16
|
-
},
|
|
17
|
-
template: `
|
|
18
|
-
<div class="psui-bg-gray-20 psui-p-8">
|
|
19
|
-
<PsTabHeader :selected.sync=selected v-bind="$props"/>
|
|
20
|
-
<div v-if="$props['selected'] === 'Existing Buildings'" class="psui-bg-white psui-p-4" :class="{ 'psui-mt-4' : $props['layout'] === 'standard'}">
|
|
21
|
-
<p v-for="i of 4">Tab Existing Buildings Selected</p>
|
|
22
|
-
</div>
|
|
23
|
-
<div v-if="$props['selected'] === 'New Constructions'" class="psui-bg-white psui-p-4" :class="{ 'psui-mt-4' : $props['layout'] === 'standard'}">
|
|
24
|
-
<p v-for="i of 4">Tab New Constructions Selected</p>
|
|
25
|
-
</div>
|
|
26
|
-
<div v-if="$props['selected'] === 'Other tab'" class="psui-bg-white psui-p-4" :class="{ 'psui-mt-4' : $props['layout'] === 'standard'}">
|
|
27
|
-
<p v-for="i of 4">Other tab Selected</p>
|
|
28
|
-
</div>
|
|
29
|
-
</div>
|
|
30
|
-
`
|
|
31
|
-
})
|
|
32
|
-
|
|
33
|
-
export const Standard = Template.bind({})
|
|
34
|
-
Standard.args = {
|
|
35
|
-
layout: 'standard',
|
|
36
|
-
items: items,
|
|
37
|
-
selected: item
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
export const Underline = Template.bind({})
|
|
41
|
-
Underline.args = {
|
|
42
|
-
layout: 'underline',
|
|
43
|
-
items: items,
|
|
44
|
-
selected: item
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
export const Folder = Template.bind({})
|
|
48
|
-
Folder.args = {
|
|
49
|
-
layout: 'folder',
|
|
50
|
-
items: items,
|
|
51
|
-
selected: item
|
|
52
|
-
}
|