@policystudio/policy-studio-ui-vue 1.1.90-beta.10 → 1.1.90-beta.17

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 (132) hide show
  1. package/.eslintrc.js +2 -1
  2. package/.github/workflows/deploy-storybook.yml +4 -4
  3. package/.nvmrc +1 -0
  4. package/dist/css/psui_styles_output.css +6986 -0
  5. package/package.json +9 -23
  6. package/src/assets/scss/components/PsDataTable.scss +1 -1
  7. package/src/components/accordion/PsAccordionItem.vue +75 -75
  8. package/src/components/badges-and-tags/PsBadgeWithIcon.vue +31 -34
  9. package/src/components/badges-and-tags/PsCardInfos.vue +40 -41
  10. package/src/components/badges-and-tags/PsChartLegend.vue +47 -51
  11. package/src/components/badges-and-tags/PsClimateZoneBadge.vue +14 -19
  12. package/src/components/badges-and-tags/PsCostEffectBar.vue +24 -56
  13. package/src/components/badges-and-tags/PsDateCardInfo.vue +17 -18
  14. package/src/components/badges-and-tags/PsHighlightRippleDot.vue +3 -2
  15. package/src/components/badges-and-tags/PsMiniTag.vue +39 -41
  16. package/src/components/badges-and-tags/PsProgressBar.vue +72 -68
  17. package/src/components/badges-and-tags/PsTagScope.vue +17 -22
  18. package/src/components/badges-and-tags/PsTestimonialCard.vue +20 -26
  19. package/src/components/buttons/PsButton.vue +61 -62
  20. package/src/components/chips/PsChips.vue +98 -101
  21. package/src/components/controls/PsCheckbox.vue +84 -84
  22. package/src/components/controls/PsCheckboxSimple.vue +95 -95
  23. package/src/components/controls/PsDraggable.vue +53 -55
  24. package/src/components/controls/PsInlineSelector.vue +99 -99
  25. package/src/components/controls/PsRadioButton.vue +59 -58
  26. package/src/components/controls/PsRadioButtonSimple.vue +79 -75
  27. package/src/components/controls/PsSlider.vue +185 -176
  28. package/src/components/controls/PsSwitch.vue +51 -52
  29. package/src/components/controls/PsToggle.vue +53 -50
  30. package/src/components/data-graphics/PsBarChart.vue +19 -21
  31. package/src/components/datatable/PsDataTable.vue +56 -60
  32. package/src/components/datatable/PsDataTableItem.vue +14 -28
  33. package/src/components/forms/PsDropdown.vue +164 -162
  34. package/src/components/forms/PsDropdownList.vue +132 -129
  35. package/src/components/forms/PsInput.vue +155 -153
  36. package/src/components/forms/PsInputSelect.vue +91 -92
  37. package/src/components/forms/PsInputTextArea.vue +71 -71
  38. package/src/components/navigations/PsBreadcrumb.vue +26 -34
  39. package/src/components/notifications/PsDialog.vue +57 -56
  40. package/src/components/notifications/PsSimpleAlert.vue +28 -29
  41. package/src/components/notifications/PsToast.vue +40 -39
  42. package/src/components/table-results/PsTableResults.vue +452 -458
  43. package/src/components/table-results/PsTableResultsBody.vue +66 -67
  44. package/src/components/table-results/PsTableResultsHead.vue +62 -56
  45. package/src/components/table-results/PsTableResultsHeadComparison.vue +62 -56
  46. package/src/components/table-results/PsTableResultsHeadFlexible.vue +63 -56
  47. package/src/components/table-results/PsTableResultsRow.vue +55 -56
  48. package/src/components/tabs/PsTabHeader.vue +106 -100
  49. package/src/components/tooltip/PsDialogTooltip.vue +96 -101
  50. package/src/components/tooltip/PsRichTooltip.vue +42 -45
  51. package/src/components/tooltip/PsTooltip.vue +111 -116
  52. package/src/components/ui/PsDotLoader.vue +1 -5
  53. package/src/components/ui/PsIcon.vue +126 -129
  54. package/src/index.ts +56 -66
  55. package/src/tsconfig.json +12 -0
  56. package/src/{shims-vue.d.ts → types/index.d.ts} +0 -5
  57. package/src/util/{GeneralFunctions.ts → GeneralFunctions.js} +3 -5
  58. package/src/util/directives.ts +24 -0
  59. package/src/util/eventBus.js +10 -0
  60. package/src/util/{imageLoader.ts → imageLoader.js} +9 -8
  61. package/tailwind.config.js +1 -1
  62. package/tsconfig.json +16 -18
  63. package/.storybook/PolicyStudio.ts +0 -11
  64. package/.storybook/eventBus.ts +0 -26
  65. package/.storybook/main.ts +0 -21
  66. package/.storybook/manager.ts +0 -7
  67. package/.storybook/preview.ts +0 -17
  68. package/dist/css/psui_styles.css +0 -4647
  69. package/postcss.config.js +0 -8
  70. package/src/assets/images/multifamily-units.svg +0 -10
  71. package/src/assets/images/policy-studio.svg +0 -15
  72. package/src/components/playground/PsScrollBar.vue +0 -320
  73. package/src/contents/ComparisonData.ts +0 -378
  74. package/src/contents/FlexibleData.ts +0 -502
  75. package/src/contents/ResultsData.ts +0 -531
  76. package/src/stories/Accordion.stories.ts +0 -59
  77. package/src/stories/BadgeWithIcon.stories.ts +0 -31
  78. package/src/stories/BarChart.stories.ts +0 -17
  79. package/src/stories/Breadcrumb.stories.ts +0 -22
  80. package/src/stories/Button.stories.ts +0 -48
  81. package/src/stories/Button.vue +0 -59
  82. package/src/stories/CardInfos.stories.ts +0 -15
  83. package/src/stories/ChartLegend.stories.ts +0 -15
  84. package/src/stories/Checkbox.stories.ts +0 -45
  85. package/src/stories/CheckboxSimple.stories.ts +0 -49
  86. package/src/stories/Chips.stories.ts +0 -33
  87. package/src/stories/ClimateZoneBadge.stories.ts +0 -28
  88. package/src/stories/Colors.mdx +0 -70
  89. package/src/stories/CostEffectBar.stories.ts +0 -26
  90. package/src/stories/Datatable.stories.ts +0 -53
  91. package/src/stories/DateCardInfo.stories.ts +0 -20
  92. package/src/stories/Dialog.stories.ts +0 -131
  93. package/src/stories/Draggable.stories.ts +0 -32
  94. package/src/stories/Dropdown.stories.ts +0 -89
  95. package/src/stories/DropdownList.stories.ts +0 -213
  96. package/src/stories/ElevationSystem.mdx +0 -41
  97. package/src/stories/Header.stories.ts +0 -42
  98. package/src/stories/Header.vue +0 -77
  99. package/src/stories/HighlightRippleDot.stories.ts +0 -16
  100. package/src/stories/Icon.stories.ts +0 -22
  101. package/src/stories/InlineSelector.stories.ts +0 -18
  102. package/src/stories/Input.stories.ts +0 -244
  103. package/src/stories/InputSelect.stories.ts +0 -31
  104. package/src/stories/InputTextArea.stories.ts +0 -25
  105. package/src/stories/Introduction.mdx +0 -211
  106. package/src/stories/MiniTag.stories.ts +0 -59
  107. package/src/stories/Playground.stories.ts +0 -16
  108. package/src/stories/ProgressBar.stories.ts +0 -24
  109. package/src/stories/RadioButton.stories.ts +0 -41
  110. package/src/stories/RadioButtonSimple.stories.ts +0 -43
  111. package/src/stories/SimpleAlert.stories.ts +0 -22
  112. package/src/stories/Slider.stories.ts +0 -79
  113. package/src/stories/Switch.stories.ts +0 -39
  114. package/src/stories/TabHeader.stories.ts +0 -56
  115. package/src/stories/TableResults.stories.ts +0 -728
  116. package/src/stories/TagScope.stories.ts +0 -17
  117. package/src/stories/TestimonialCard.stories.ts +0 -27
  118. package/src/stories/Toast.stories.ts +0 -52
  119. package/src/stories/Toggle.stories.ts +0 -48
  120. package/src/stories/Tooltip.stories.ts +0 -114
  121. package/src/stories/Typography.mdx +0 -212
  122. package/src/stories/assets/code-brackets.svg +0 -1
  123. package/src/stories/assets/colors.svg +0 -1
  124. package/src/stories/assets/comments.svg +0 -1
  125. package/src/stories/assets/direction.svg +0 -1
  126. package/src/stories/assets/flow.svg +0 -1
  127. package/src/stories/assets/plugin.svg +0 -1
  128. package/src/stories/assets/repo.svg +0 -1
  129. package/src/stories/assets/stackalt.svg +0 -1
  130. package/src/stories/button.css +0 -30
  131. package/src/stories/header.css +0 -32
  132. package/webpack.config.js +0 -36
@@ -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:any, {argTypes}:{argTypes:any}) => ({
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,22 +0,0 @@
1
- import PsSimpleAlert from '../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
- }
@@ -1,79 +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
- // @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
- }
@@ -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
- // @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
-
@@ -1,56 +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
- // @ts-ignore
11
- const Template = (args, { argTypes }) => ({
12
- props: Object.keys(argTypes),
13
- components: { PsTabHeader },
14
- data: () => {
15
- return {
16
- }
17
- },
18
- template: `
19
- <div class="psui-bg-gray-20 psui-p-8">
20
- <PsTabHeader :selected.sync=selected v-bind="$props"/>
21
- <div v-if="$props['selected'] === 'Existing Buildings'" class="psui-bg-white psui-p-4" :class="{ 'psui-mt-4' : $props['layout'] === 'standard'}">
22
- <p v-for="i of 4">Tab Existing Buildings Selected</p>
23
- </div>
24
- <div v-if="$props['selected'] === 'New Constructions'" class="psui-bg-white psui-p-4" :class="{ 'psui-mt-4' : $props['layout'] === 'standard'}">
25
- <p v-for="i of 4">Tab New Constructions Selected</p>
26
- </div>
27
- <div v-if="$props['selected'] === 'Other tab'" class="psui-bg-white psui-p-4" :class="{ 'psui-mt-4' : $props['layout'] === 'standard'}">
28
- <p v-for="i of 4">Other tab Selected</p>
29
- </div>
30
- </div>
31
- `
32
- })
33
-
34
- export const Standard = Template.bind({})
35
- // @ts-ignore
36
- Standard.args = {
37
- layout: 'standard',
38
- items: items,
39
- selected: item
40
- }
41
-
42
- export const Underline = Template.bind({})
43
- // @ts-ignore
44
- Underline.args = {
45
- layout: 'underline',
46
- items: items,
47
- selected: item
48
- }
49
-
50
- export const Folder = Template.bind({})
51
- // @ts-ignore
52
- Folder.args = {
53
- layout: 'folder',
54
- items: items,
55
- selected: item
56
- }