@policystudio/policy-studio-ui-vue 1.1.90-beta.3 → 1.1.90-beta.30

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 (147) hide show
  1. package/.eslintrc.js +13 -8
  2. package/.github/workflows/deploy-storybook.yml +4 -4
  3. package/.nvmrc +1 -0
  4. package/dist/css/psui_styles_output.css +6994 -0
  5. package/dist/index.d.ts +50 -0
  6. package/dist/index.js +104 -0
  7. package/dist/index.js.map +1 -0
  8. package/dist/util/GeneralFunctions.d.ts +3 -0
  9. package/dist/util/GeneralFunctions.js +35 -0
  10. package/dist/util/GeneralFunctions.js.map +1 -0
  11. package/dist/util/directives.d.ts +1 -0
  12. package/dist/util/directives.js +22 -0
  13. package/dist/util/directives.js.map +1 -0
  14. package/dist/util/imageLoader.d.ts +6 -0
  15. package/dist/util/imageLoader.js +52 -0
  16. package/dist/util/imageLoader.js.map +1 -0
  17. package/package.json +24 -37
  18. package/src/App.vue +30 -0
  19. package/src/assets/scss/components/PsDataTable.scss +1 -1
  20. package/src/assets/scss/components/PsDropdownList.scss +1 -1
  21. package/src/components/accordion/PsAccordionItem.vue +88 -74
  22. package/src/components/badges-and-tags/PsBadgeWithIcon.vue +31 -33
  23. package/src/components/badges-and-tags/PsCardInfos.vue +39 -41
  24. package/src/components/badges-and-tags/PsChartLegend.vue +46 -51
  25. package/src/components/badges-and-tags/PsClimateZoneBadge.vue +13 -19
  26. package/src/components/badges-and-tags/PsCostEffectBar.vue +24 -56
  27. package/src/components/badges-and-tags/PsDateCardInfo.vue +17 -18
  28. package/src/components/badges-and-tags/PsHighlightRippleDot.vue +3 -2
  29. package/src/components/badges-and-tags/PsMiniTag.vue +39 -41
  30. package/src/components/badges-and-tags/PsProgressBar.vue +72 -68
  31. package/src/components/badges-and-tags/PsTagScope.vue +17 -22
  32. package/src/components/badges-and-tags/PsTestimonialCard.vue +19 -26
  33. package/src/components/buttons/PsButton.vue +60 -61
  34. package/src/components/chips/PsChips.vue +98 -101
  35. package/src/components/controls/PsCheckbox.vue +84 -84
  36. package/src/components/controls/PsCheckboxSimple.vue +95 -95
  37. package/src/components/controls/PsDraggable.vue +53 -55
  38. package/src/components/controls/PsInlineSelector.vue +98 -99
  39. package/src/components/controls/PsRadioButton.vue +59 -58
  40. package/src/components/controls/PsRadioButtonSimple.vue +79 -75
  41. package/src/components/controls/PsSlider.vue +185 -176
  42. package/src/components/controls/PsSwitch.vue +51 -52
  43. package/src/components/controls/PsToggle.vue +52 -50
  44. package/src/components/data-graphics/PsBarChart.vue +18 -21
  45. package/src/components/datatable/PsDataTable.vue +56 -60
  46. package/src/components/datatable/PsDataTableItem.vue +13 -28
  47. package/src/components/forms/PsDropdown.vue +165 -162
  48. package/src/components/forms/PsDropdownList.vue +133 -130
  49. package/src/components/forms/PsInput.vue +154 -153
  50. package/src/components/forms/PsInputSelect.vue +91 -92
  51. package/src/components/forms/PsInputTextArea.vue +70 -71
  52. package/src/components/navigations/PsBreadcrumb.vue +25 -34
  53. package/src/components/notifications/PsDialog.vue +57 -56
  54. package/src/components/notifications/PsSimpleAlert.vue +27 -29
  55. package/src/components/notifications/PsToast.vue +40 -39
  56. package/src/components/table-results/PsTableResults.vue +456 -466
  57. package/src/components/table-results/PsTableResultsBody.vue +66 -67
  58. package/src/components/table-results/PsTableResultsHead.vue +67 -61
  59. package/src/components/table-results/PsTableResultsHeadComparison.vue +62 -56
  60. package/src/components/table-results/PsTableResultsHeadFlexible.vue +68 -61
  61. package/src/components/table-results/PsTableResultsRow.vue +55 -56
  62. package/src/components/tabs/PsTabHeader.vue +106 -100
  63. package/src/components/tooltip/PsDialogTooltip.vue +96 -101
  64. package/src/components/tooltip/PsRichTooltip.vue +41 -45
  65. package/src/components/tooltip/PsTooltip.vue +111 -116
  66. package/src/components/ui/PsDotLoader.vue +1 -5
  67. package/src/components/ui/PsIcon.vue +131 -129
  68. package/src/index.ts +156 -0
  69. package/src/tsconfig.json +12 -0
  70. package/src/types/index.d.ts +6 -0
  71. package/src/util/GeneralFunctions.js +16 -7
  72. package/src/util/directives.ts +24 -0
  73. package/src/util/imageLoader.js +14 -7
  74. package/tailwind.config.js +1 -1
  75. package/tsconfig.json +47 -0
  76. package/.storybook/PolicyStudio.js +0 -10
  77. package/.storybook/eventBus.js +0 -26
  78. package/.storybook/main.js +0 -21
  79. package/.storybook/manager.js +0 -6
  80. package/.storybook/preview.js +0 -17
  81. package/babel.config.js +0 -17
  82. package/dist/css/psui_styles.css +0 -4647
  83. package/postcss.config.js +0 -8
  84. package/src/assets/images/multifamily-units.svg +0 -10
  85. package/src/assets/images/policy-studio.svg +0 -15
  86. package/src/components/playground/PsScrollBar.vue +0 -320
  87. package/src/contents/ComparisonData.js +0 -378
  88. package/src/contents/FlexibleData.js +0 -502
  89. package/src/contents/ResultsData.js +0 -531
  90. package/src/index.js +0 -166
  91. package/src/stories/Accordion.stories.js +0 -59
  92. package/src/stories/BadgeWithIcon.stories.js +0 -31
  93. package/src/stories/BarChart.stories.js +0 -17
  94. package/src/stories/Breadcrumb.stories.js +0 -25
  95. package/src/stories/Button.stories.js +0 -48
  96. package/src/stories/Button.vue +0 -59
  97. package/src/stories/CardInfos.stories.js +0 -16
  98. package/src/stories/ChartLegend.stories.js +0 -16
  99. package/src/stories/Checkbox.stories.js +0 -45
  100. package/src/stories/CheckboxSimple.stories.js +0 -49
  101. package/src/stories/Chips.stories.js +0 -31
  102. package/src/stories/ClimateZoneBadge.stories.js +0 -17
  103. package/src/stories/Colors.mdx +0 -70
  104. package/src/stories/CostEffectBar.stories.js +0 -23
  105. package/src/stories/Datatable.stories.js +0 -50
  106. package/src/stories/DateCardInfo.stories.js +0 -24
  107. package/src/stories/Dialog.stories.js +0 -131
  108. package/src/stories/Draggable.stories.js +0 -22
  109. package/src/stories/Dropdown.stories.js +0 -99
  110. package/src/stories/DropdownList.stories.js +0 -211
  111. package/src/stories/ElevationSystem.mdx +0 -41
  112. package/src/stories/Header.stories.js +0 -41
  113. package/src/stories/Header.vue +0 -77
  114. package/src/stories/HighlightRippleDot.stories.js +0 -15
  115. package/src/stories/Icon.stories.js +0 -21
  116. package/src/stories/InlineSelector.stories.js +0 -18
  117. package/src/stories/Input.stories.js +0 -240
  118. package/src/stories/InputSelect.stories.js +0 -30
  119. package/src/stories/InputTextArea.stories.js +0 -25
  120. package/src/stories/Introduction.mdx +0 -211
  121. package/src/stories/MiniTag.stories.js +0 -52
  122. package/src/stories/Playground.stories.js +0 -16
  123. package/src/stories/ProgressBar.stories.js +0 -23
  124. package/src/stories/RadioButton.stories.js +0 -40
  125. package/src/stories/RadioButtonSimple.stories.js +0 -43
  126. package/src/stories/SimpleAlert.stories.js +0 -21
  127. package/src/stories/Slider.stories.js +0 -75
  128. package/src/stories/Switch.stories.js +0 -39
  129. package/src/stories/TabHeader.stories.js +0 -52
  130. package/src/stories/TableResults.stories.js +0 -724
  131. package/src/stories/TagScope.stories.js +0 -17
  132. package/src/stories/TestimonialCard.stories.js +0 -27
  133. package/src/stories/Toast.stories.js +0 -52
  134. package/src/stories/Toggle.stories.js +0 -45
  135. package/src/stories/Tooltip.stories.js +0 -114
  136. package/src/stories/Typography.mdx +0 -212
  137. package/src/stories/assets/code-brackets.svg +0 -1
  138. package/src/stories/assets/colors.svg +0 -1
  139. package/src/stories/assets/comments.svg +0 -1
  140. package/src/stories/assets/direction.svg +0 -1
  141. package/src/stories/assets/flow.svg +0 -1
  142. package/src/stories/assets/plugin.svg +0 -1
  143. package/src/stories/assets/repo.svg +0 -1
  144. package/src/stories/assets/stackalt.svg +0 -1
  145. package/src/stories/button.css +0 -30
  146. package/src/stories/header.css +0 -32
  147. package/webpack.config.js +0 -22
@@ -1,59 +0,0 @@
1
- import PsAccordionItem from '../components/accordion/PsAccordionItem.vue'
2
- import PsAccordion from '../components/accordion/PsAccordion.vue'
3
-
4
- export default {
5
- title: 'Components/Accordion',
6
- component: PsAccordion,
7
- subcomponents: { PsAccordionItem },
8
- }
9
-
10
-
11
- export const Index = (args, { argTypes }) => ({
12
- props: Object.keys(argTypes, args),
13
- components: { PsAccordion, PsAccordionItem },
14
- template:
15
- `
16
- <div class="psui-p-8 psui-bg-gray-10 psui-grid psui-grid-cols-2 psui-gap-6">
17
- <div>
18
- <div class="psui-my-4">
19
- <h1 class="psui-font-bold psui-border-b psui-border-gray-30">Accordion Big</h1>
20
- </div>
21
- <PsAccordion layout="big" class="psui-bg-white">
22
- <PsAccordionItem title="Header 01">
23
- <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Voluptates, illum.</p>
24
- <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Voluptates, illum.</p>
25
- <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Voluptates, illum.</p>
26
- <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Voluptates, illum.</p>
27
- <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Voluptates, illum.</p>
28
- </PsAccordionItem>
29
- <PsAccordionItem title="Header 02">
30
- <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Voluptates, illum.</p>
31
- </PsAccordionItem>
32
- <PsAccordionItem title="Header 03">
33
- <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Voluptates, illum.</p>
34
- </PsAccordionItem>
35
- </PsAccordion>
36
- </div>
37
-
38
- <div>
39
- <div class="psui-my-4">
40
- <h1 class="psui-font-bold psui-border-b psui-border-gray-30">Accordion Medium</h1>
41
- </div>
42
- <PsAccordion layout="medium" class="psui-bg-white">
43
- <PsAccordionItem title="Header 01">
44
- <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Voluptates, illum.</p>
45
- <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Voluptates, illum.</p>
46
- <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Voluptates, illum.</p>
47
- <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Voluptates, illum.</p>
48
- </PsAccordionItem>
49
- <PsAccordionItem title="Header 02" :opened="false">
50
- <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Voluptates, illum.</p>
51
- </PsAccordionItem>
52
- <PsAccordionItem title="Header 03">
53
- <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Voluptates, illum.</p>
54
- </PsAccordionItem>
55
- </PsAccordion>
56
- </div>
57
- </div>
58
- `,
59
- })
@@ -1,31 +0,0 @@
1
- import PsBadgeWithIcon from '../components/badges-and-tags/PsBadgeWithIcon.vue'
2
-
3
- export default {
4
- title: 'Badges & Tags/Badges/BadgeWithIcon',
5
- component: PsBadgeWithIcon,
6
- argTypes: {
7
- },
8
- }
9
-
10
- const TemplateDefault = (args, {argTypes})=>({
11
- props: Object.keys(argTypes),
12
- components:{PsBadgeWithIcon},
13
- template: `
14
- <div style="display: flex; flex-direction: column;">
15
- <div style="width: fit-content; display:flex; gap:70px; margin-left: 40px;">
16
- <span>Grey</span>
17
- <span style="margin-left: 8px;">Blue</span>
18
- <span style="margin-left: 5px;">Green</span>
19
- <span>Yellow</span>
20
- </div>
21
- <div style="width: fit-content; display:flex; gap:5px;">
22
- <PsBadgeWithIcon/>
23
- <PsBadgeWithIcon layout="blue"/>
24
- <PsBadgeWithIcon layout="green"/>
25
- <PsBadgeWithIcon layout="yellow"/>
26
- </div>
27
- </div>
28
- `
29
- })
30
-
31
- export const Default = TemplateDefault.bind({})
@@ -1,17 +0,0 @@
1
- import PsBarChart from '../components/data-graphics/PsBarChart.vue'
2
- export default {
3
- title: 'Data Graphics/Charts/BarChart',
4
- component: PsBarChart,
5
- }
6
-
7
- const defaultTemplate = (args, {argTypes}) => ({
8
- props: Object.keys(argTypes),
9
- components: { PsBarChart },
10
- template: `
11
- <div style='padding: 20px;'>
12
- <PsBarChart v-bind="$props"/>
13
- </div>
14
- `
15
- })
16
-
17
- export const BarChart = defaultTemplate.bind({})
@@ -1,25 +0,0 @@
1
- import PsBreadcrumb from '../components/navigations/PsBreadcrumb.vue'
2
- export default {
3
- title: 'Navigations/Breadcrumb',
4
- component: PsBreadcrumb,
5
- argTypes: {},
6
- }
7
- const items = [
8
- { title: '1st level', route: '' },
9
- { title: 'Big name that needs to be shortened', route: '#' },
10
- { title: '3rd level', route: '' },
11
- { title: '4th level', route: '' },
12
- ]
13
-
14
- const Template = (args, { argTypes }) => ({
15
- props: Object.keys(argTypes),
16
- components: { PsBreadcrumb },
17
- template: `
18
- <PsBreadcrumb v-bind="$props" />
19
- `,
20
- })
21
-
22
- export const Default = Template.bind({})
23
- Default.args = {
24
- items: items,
25
- }
@@ -1,48 +0,0 @@
1
- import MyButton from './Button.vue'
2
-
3
- // More on how to set up stories at: https://storybook.js.org/docs/writing-stories
4
- export default {
5
- title: 'Example/Button',
6
- component: MyButton,
7
- tags: ['autodocs'],
8
- argTypes: {
9
- backgroundColor: {
10
- control: 'color',
11
- },
12
- onClick: {},
13
- size: {
14
- control: {
15
- type: 'select',
16
- },
17
- options: ['small', 'medium', 'large'],
18
- },
19
- },
20
- }
21
-
22
- // More on writing stories with args: https://storybook.js.org/docs/writing-stories/args
23
- export const Primary = {
24
- args: {
25
- primary: true,
26
- label: 'Button',
27
- },
28
- }
29
-
30
- export const Secondary = {
31
- args: {
32
- label: 'Button',
33
- },
34
- }
35
-
36
- export const Large = {
37
- args: {
38
- size: 'large',
39
- label: 'Button',
40
- },
41
- }
42
-
43
- export const Small = {
44
- args: {
45
- size: 'small',
46
- label: 'Button',
47
- },
48
- }
@@ -1,59 +0,0 @@
1
- <template>
2
- <button
3
- type="button"
4
- :class="classes"
5
- @click="onClick"
6
- :style="style"
7
- >
8
- {{ label }}
9
- </button>
10
- </template>
11
-
12
- <script>
13
- import './button.css'
14
- import { reactive, computed } from 'vue'
15
-
16
- export default {
17
- name: 'MyButton',
18
-
19
- props: {
20
- label: {
21
- type: String,
22
- required: true,
23
- },
24
- primary: {
25
- type: Boolean,
26
- default: false,
27
- },
28
- size: {
29
- type: String,
30
- validator: function (value) {
31
- return ['small', 'medium', 'large'].indexOf(value) !== -1
32
- },
33
- },
34
- backgroundColor: {
35
- type: String,
36
- },
37
- },
38
-
39
- emits: ['click'],
40
-
41
- setup(props, { emit }) {
42
- props = reactive(props)
43
- return {
44
- classes: computed(() => ({
45
- 'storybook-button': true,
46
- 'storybook-button--primary': props.primary,
47
- 'storybook-button--secondary': !props.primary,
48
- [`storybook-button--${props.size || 'medium'}`]: true,
49
- })),
50
- style: computed(() => ({
51
- backgroundColor: props.backgroundColor,
52
- })),
53
- onClick() {
54
- emit('click')
55
- },
56
- }
57
- },
58
- }
59
- </script>
@@ -1,16 +0,0 @@
1
- import PsCardInfos from '../components/badges-and-tags/PsCardInfos.vue'
2
-
3
- export default {
4
- title: 'Components/CardInfos',
5
- component: PsCardInfos,
6
- argTypes: {},
7
- }
8
-
9
- const Template = (args, { argTypes }) => ({
10
- props: Object.keys(argTypes),
11
- components: { PsCardInfos },
12
- template: '<PsCardInfos v-bind="$props" />',
13
- })
14
-
15
- export const CardInfos = Template.bind({})
16
- CardInfos.args = {}
@@ -1,16 +0,0 @@
1
- import PsChartLegend from '../components/badges-and-tags/PsChartLegend.vue'
2
-
3
- export default {
4
- title: 'Badges & Tags/Badges/ChartLegend',
5
- component: PsChartLegend,
6
- argTypes: {},
7
- }
8
-
9
- const Template = (args, { argTypes }) => ({
10
- props: Object.keys(argTypes),
11
- components: { PsChartLegend },
12
- template: '<PsChartLegend v-bind="$props" />',
13
- })
14
-
15
- export const ChartLegend = Template.bind({})
16
- ChartLegend.args = {}
@@ -1,45 +0,0 @@
1
- import PsCheckbox from '../components/controls/PsCheckbox.vue'
2
- // const icons = ['add_circle', 'delete', 'done', 'info', 'send']
3
- export default {
4
- title: 'Controls & Selectors/Checkbox',
5
- component: PsCheckbox,
6
- }
7
-
8
- const defaultTemplate = (args, {argTypes}) => ({
9
- props: Object.keys(argTypes),
10
- components: { PsCheckbox},
11
- template: `
12
- <div style='display:flex; gap: 20px;'>
13
- <div style='display:flex; flex-direction:column; gap:5px;'>
14
- <p>Resting</p>
15
- <div style='display: flex; flex-direction:column; gap: 10px;'>
16
- <PsCheckbox v-bind="$props" label='Label 1' />
17
- <PsCheckbox v-bind="$props" label='Label 2' size='small' />
18
- </div>
19
- </div>
20
- <div style='display:flex; flex-direction:column; gap:5px;'>
21
- <p>Active</p>
22
- <div style='display: flex; flex-direction:column; gap: 10px;'>
23
- <PsCheckbox v-bind="$props" label='Label 3' checked />
24
- <PsCheckbox v-bind="$props" label='Label 4' checked size='small'/>
25
- </div>
26
- </div>
27
- <div style='display:flex; flex-direction:column; gap:5px;'>
28
- <p>Mixed</p>
29
- <div style='display: flex; flex-direction:column; gap: 10px;'>
30
- <PsCheckbox v-bind="$props" label='Label 5' layout='mixed' checked />
31
- <PsCheckbox v-bind="$props" label='Label 6' layout='mixed' size='small' checked />
32
- </div>
33
- </div>
34
- <div style='display:flex; flex-direction:column; gap:5px;'>
35
- <p>Disabled</p>
36
- <div style='display: flex; flex-direction:column; gap: 10px;'>
37
- <PsCheckbox v-bind="$props" label='Label 7' disabled/>
38
- <PsCheckbox v-bind="$props" label='Label 8' size='small' disabled/>
39
- </div>
40
- </div>
41
- </div>
42
- `
43
- })
44
-
45
- export const Default = defaultTemplate.bind({})
@@ -1,49 +0,0 @@
1
- import PsCheckboxSimple from '../components/controls/PsCheckboxSimple.vue'
2
- // const icons = ['add_circle', 'delete', 'done', 'info', 'send']
3
- export default {
4
- title: 'Text fields & Forms/Inputs V2/Checkbox',
5
- component: PsCheckboxSimple,
6
- }
7
-
8
- const defaultTemplate = (args, {argTypes}) => ({
9
- props: Object.keys(argTypes),
10
- components: { PsCheckboxSimple },
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
- <PsCheckboxSimple :checked="checkBox1" @click="checkBox1 = !checkBox1" label='Label 1' />
20
- <PsCheckboxSimple v-bind="$props" 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
- <PsCheckboxSimple v-bind="$props" label='Label 3' checked />
27
- <PsCheckboxSimple 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>Mixed</p>
32
- <div style='display: flex; flex-direction:column; gap: 10px;'>
33
- <PsCheckboxSimple v-bind="$props" label='Label 5' layout='mixed' checked />
34
- <PsCheckboxSimple v-bind="$props" label='Label 6' layout='mixed' size='small' checked />
35
- </div>
36
- </div>
37
- <div style='display:flex; flex-direction:column; gap:5px;'>
38
- <p>Disabled</p>
39
- <div style='display: flex; flex-direction:column; gap: 10px;'>
40
- <PsCheckboxSimple v-bind="$props" label='Input via inputAttrs' :inputAttrs="{ id: 'my-input-id' }" disabled/>
41
- <PsCheckboxSimple v-bind="$props" label='Input via component id' size='small' id="my-component-id" data-test="test" disabled/>
42
- <PsCheckboxSimple v-bind="$props" label='Input fallback' size='small' disabled/>
43
- </div>
44
- </div>
45
- </div>
46
- `
47
- })
48
-
49
- export const Default = defaultTemplate.bind({})
@@ -1,31 +0,0 @@
1
- import PsChips from '../components/chips/PsChips.vue'
2
-
3
- export default {
4
- title: 'Components/Chips',
5
- component: PsChips,
6
- }
7
-
8
- const Template = (args, { argTypes }) => ({
9
- props: Object.keys(argTypes),
10
- components: { PsChips },
11
- data: ()=>{
12
- return{
13
- isChecked: true,
14
- isCheckedTwo: null,
15
- }
16
- },
17
- template: `<div style="display:flex; gap: 10px;">
18
- <PsChips v-bind='$props' type="button" @update:checked='isChecked = $event' :checked='isChecked'/>
19
- <PsChips v-bind='$props' label="Simple chips with icons" type="button" layout="with-icon" icon="home" @update:checked='isChecked = $event' :checked='isChecked'/>
20
- <PsChips v-bind='$props' label="Radio chips" type="radio" @update:checked='isChecked = $event' :checked='isChecked'/>
21
- <PsChips v-bind='$props' label="Checkbox chips" type="checkbox" @update:checked='isCheckedTwo = $event' :checked='isCheckedTwo'/>
22
- <PsChips v-bind='$props' label="Rich chips" type="button" layout="rich" icon="text_snippet" @update:checked='isChecked = $event' :checked='isChecked'/>
23
- </div>
24
- `
25
- })
26
-
27
- export const Default = Template.bind({})
28
- Default.args = {
29
- label: 'Simple Chip',
30
- icon:'',
31
- }
@@ -1,17 +0,0 @@
1
- import PsClimateZoneBadge from '../components/badges-and-tags/PsClimateZoneBadge.vue'
2
-
3
- export default {
4
- title: 'Badges & Tags/Badges/ClimateZoneBadge',
5
- component: PsClimateZoneBadge,
6
- }
7
-
8
- const Template = (args, { argTypes }) => ({
9
- props: Object.keys(argTypes),
10
- components: { PsClimateZoneBadge },
11
- template: '<PsClimateZoneBadge v-bind="$props" />',
12
- })
13
-
14
- export const ClimateZoneBadge = Template.bind({})
15
- ClimateZoneBadge.args = {
16
- icon: 'area_chart',
17
- }
@@ -1,70 +0,0 @@
1
- import {Meta } from '@storybook/addon-docs';
2
-
3
- <Meta title="Colors" />
4
-
5
- <style>{`
6
- .mx-auto { margin: 0 auto; }
7
- `}</style>
8
-
9
- # Colors
10
- Out colors are designed to be harmonious, ensure accessible text, and distinguish UI elements and surfaces from one another. The support colors are used as a visual support to communicate and provide better and more meaningful feedback.
11
-
12
- ## Blue
13
- <div class="psui-flex">
14
- <div class="psui-cursor-pointer psui-p-2 psui-h-24 psui-w-32 psui-text-white psui-bg-blue click-to-copy" data-to-copy="psui-bg-blue">Blue <div>#5094D3</div></div>
15
- <div class="psui-cursor-pointer psui-p-2 psui-h-24 psui-w-32 psui-text-white psui-bg-blue-80 click-to-copy" data-to-copy="psui-bg-blue-80">Blue 80 <div>#002A3A</div></div>
16
- <div class="psui-cursor-pointer psui-p-2 psui-h-24 psui-w-32 psui-text-white psui-bg-blue-70 click-to-copy" data-to-copy="psui-bg-blue-70">Blue 70 <div>#00465F</div></div>
17
- <div class="psui-cursor-pointer psui-p-2 psui-h-24 psui-w-32 psui-text-white psui-bg-blue-60 click-to-copy" data-to-copy="psui-bg-blue-60">Blue 60 <div>#318FAC</div></div>
18
- <div class="psui-cursor-pointer psui-p-2 psui-h-24 psui-w-32 psui-text-white psui-bg-blue-50 click-to-copy" data-to-copy="psui-bg-blue-50">Blue 50 <div>#64B5CE</div></div>
19
- <div class="psui-cursor-pointer psui-p-2 psui-h-24 psui-w-32 psui-text-blue-70 psui-bg-blue-20 click-to-copy" data-to-copy="psui-bg-blue-20">Blue 20 <div>#E0EFF6</div></div>
20
- <div class="psui-cursor-pointer psui-p-2 psui-h-24 psui-w-32 psui-text-blue-70 psui-bg-blue-10 click-to-copy" data-to-copy="psui-bg-blue-10">Blue 10 <div>#ECF7FB</div></div>
21
- <div class="psui-cursor-pointer psui-p-2 psui-h-24 psui-w-32 psui-text-blue-70 psui-bg-white click-to-copy" data-to-copy="psui-bg-white">White <div>#FFFFFF</div></div>
22
- </div>
23
-
24
- ## Gray
25
- <div class="psui-flex">
26
- <div class="psui-cursor-pointer psui-p-2 psui-h-24 psui-w-32 psui-text-white psui-bg-gray-80 click-to-copy" data-to-copy="psui-bg-gray-80">Gray 80 <div>#28323B</div></div>
27
- <div class="psui-cursor-pointer psui-p-2 psui-h-24 psui-w-32 psui-text-white psui-bg-gray-70 click-to-copy" data-to-copy="psui-bg-gray-70">Gray 70 <div>#34404A</div></div>
28
- <div class="psui-cursor-pointer psui-p-2 psui-h-24 psui-w-32 psui-text-white psui-bg-gray-60 click-to-copy" data-to-copy="psui-bg-gray-60">Gray 60 <div>#515E6A</div></div>
29
- <div class="psui-cursor-pointer psui-p-2 psui-h-24 psui-w-32 psui-text-white psui-bg-gray-50 click-to-copy" data-to-copy="psui-bg-gray-50">Gray 50 <div>#798490</div></div>
30
- <div class="psui-cursor-pointer psui-p-2 psui-h-24 psui-w-32 psui-text-white psui-bg-gray-40 click-to-copy" data-to-copy="psui-bg-gray-40">Gray 40 <div>#A2ACB7</div></div>
31
- <div class="psui-cursor-pointer psui-p-2 psui-h-24 psui-w-32 psui-text-gray-50 psui-bg-gray-30 click-to-copy" data-to-copy="psui-bg-gray-30">Gray 30 <div>#D6DDE5</div></div>
32
- <div class="psui-cursor-pointer psui-p-2 psui-h-24 psui-w-32 psui-text-gray-50 psui-bg-gray-20 click-to-copy" data-to-copy="psui-bg-gray-20">Gray 20 <div>#E6ECF2</div></div>
33
- <div class="psui-cursor-pointer psui-p-2 psui-h-24 psui-w-32 psui-text-gray-50 psui-bg-gray-10 click-to-copy" data-to-copy="psui-bg-gray-10">Gray 10 <div>#F3F6F9</div></div>
34
- </div>
35
-
36
- ## Yellow
37
- <div class="psui-flex">
38
- <div class="psui-cursor-pointer psui-p-2 psui-h-24 psui-w-32 psui-text-white psui-bg-yellow-80 click-to-copy" data-to-copy="psui-bg-yellow-80">Yellow 80 <div>#834C0D</div></div>
39
- <div class="psui-cursor-pointer psui-p-2 psui-h-24 psui-w-32 psui-text-white psui-bg-yellow-70 click-to-copy" data-to-copy="psui-bg-yellow-70">Yellow 70 <div>#B87305</div></div>
40
- <div class="psui-cursor-pointer psui-p-2 psui-h-24 psui-w-32 psui-text-white psui-bg-yellow-20 click-to-copy" data-to-copy="psui-bg-yellow-20">Yellow 20 <div>#EDAB3E</div></div>
41
- <div class="psui-cursor-pointer psui-p-2 psui-h-24 psui-w-32 psui-text-yellow-20 psui-bg-yellow-10 click-to-copy" data-to-copy="psui-bg-yellow-10">Yellow 10 <div>#FDF3E3</div></div>
42
- </div>
43
-
44
- ## Green
45
- <div class="psui-flex">
46
- <div class="psui-cursor-pointer psui-p-2 psui-h-24 psui-w-32 psui-text-white psui-bg-green-80 click-to-copy" data-to-copy="psui-bg-green-80">Green 80 <div>#286943</div></div>
47
- <div class="psui-cursor-pointer psui-p-2 psui-h-24 psui-w-32 psui-text-white psui-bg-green-70 click-to-copy" data-to-copy="psui-bg-green-70">Green 70 <div>#44A06A</div></div>
48
- <div class="psui-cursor-pointer psui-p-2 psui-h-24 psui-w-32 psui-text-white psui-bg-green-20 click-to-copy" data-to-copy="psui-bg-green-20">Green 20 <div>#5DB883</div></div>
49
- <div class="psui-cursor-pointer psui-p-2 psui-h-24 psui-w-32 psui-text-green-20 psui-bg-green-10 click-to-copy" data-to-copy="psui-bg-green-10">Green 10 <div>#DEF8E8</div></div>
50
- </div>
51
-
52
- ## Red
53
- <div class="psui-flex">
54
- <div class="psui-cursor-pointer psui-p-2 psui-h-24 psui-w-32 psui-text-white psui-bg-red-80 click-to-copy" data-to-copy="psui-bg-red-80">Red 80 <div>#832F2E</div></div>
55
- <div class="psui-cursor-pointer psui-p-2 psui-h-24 psui-w-32 psui-text-white psui-bg-red-70 click-to-copy" data-to-copy="psui-bg-red-70">Red 70 <div>#AA3937</div></div>
56
- <div class="psui-cursor-pointer psui-p-2 psui-h-24 psui-w-32 psui-text-white psui-bg-red-20 click-to-copy" data-to-copy="psui-bg-red-20">Red 20 <div>#D65C5A</div></div>
57
- <div class="psui-cursor-pointer psui-p-2 psui-h-24 psui-w-32 psui-text-red-20 psui-bg-red-15 click-to-copy" data-to-copy="psui-bg-red-15">Red 15 <div>#EAC5C5</div></div>
58
- <div class="psui-cursor-pointer psui-p-2 psui-h-24 psui-w-32 psui-text-red-20 psui-bg-red-10 click-to-copy" data-to-copy="psui-bg-red-10">Red 10 <div>#FCEBEB</div></div>
59
- </div>
60
-
61
- ## Chart colors
62
- <div class="psui-flex">
63
- <div class="psui-float-left psui-cursor-pointer psui-p-2 psui-h-24 psui-w-32 psui-text-white psui-bg-sky click-to-copy" data-to-copy="psui-bg-sky">Sky <div>#518BE2</div></div>
64
- <div class="psui-float-left psui-cursor-pointer psui-p-2 psui-h-24 psui-w-32 psui-text-white psui-bg-teal click-to-copy" data-to-copy="psui-bg-teal">Teal <div>#57C0BA</div></div>
65
- <div class="psui-float-left psui-cursor-pointer psui-p-2 psui-h-24 psui-w-32 psui-text-white psui-bg-emerald click-to-copy" data-to-copy="psui-bg-emerald">Emerald <div>#8CCA82</div></div>
66
- <div class="psui-float-left psui-cursor-pointer psui-p-2 psui-h-24 psui-w-32 psui-text-white psui-bg-mustard click-to-copy" data-to-copy="psui-bg-mustard">Mustard <div>#E9CF74</div></div>
67
- <div class="psui-float-left psui-cursor-pointer psui-p-2 psui-h-24 psui-w-32 psui-text-white psui-bg-orange click-to-copy" data-to-copy="psui-bg-orange">Orange <div>#FF906D</div></div>
68
- <div class="psui-float-left psui-cursor-pointer psui-p-2 psui-h-24 psui-w-32 psui-text-white psui-bg-pink click-to-copy" data-to-copy="psui-bg-pink">Pink <div>#FF77B8</div></div>
69
- <div class="psui-float-left psui-cursor-pointer psui-p-2 psui-h-24 psui-w-32 psui-text-white psui-bg-purple click-to-copy" data-to-copy="psui-bg-purple">Purple <div>#9278C9</div></div>
70
- </div>
@@ -1,23 +0,0 @@
1
- import PsCostEffectBar from '../components/badges-and-tags/PsCostEffectBar.vue'
2
-
3
- export default {
4
- title: 'Badges & Tags/Badges/CostEffectBar',
5
- component: PsCostEffectBar,
6
- argTypes: {
7
- value: {
8
- control: { type: 'number', min: 0, max: 100 },
9
- },
10
- breakEven: {
11
- control: { type: 'number', min: 0, max: 100 },
12
- },
13
- },
14
- }
15
-
16
- const Template = (args, { argTypes }) => ({
17
- props: Object.keys(argTypes),
18
- components: { PsCostEffectBar },
19
- template: '<PsCostEffectBar v-bind="$props" />',
20
- })
21
-
22
- export const SimpleProgressBar = Template.bind({})
23
- SimpleProgressBar.args = {}
@@ -1,50 +0,0 @@
1
- import PsDataTable, { alignment } from '../components/datatable/PsDataTable.vue'
2
- import PsDataTableItem from '../components/datatable/PsDataTableItem.vue'
3
-
4
- export default {
5
- title: 'Data Tables/DataTable',
6
- component: PsDataTable,
7
- subcomponents: { PsDataTableItem },
8
- argTypes: {
9
- align: { control: { type: 'select', options: alignment } },
10
- }
11
- }
12
-
13
- const Template = (args, { argTypes }) => ({
14
- props: Object.keys(argTypes),
15
- components: {PsDataTable},
16
- template: `
17
- <div style="width:400px;">
18
- <PsDataTable v-bind="$props" />
19
- </div>
20
- `
21
- })
22
-
23
- const RichTemplate = (args, { argTypes } ) => ({
24
- props: Object.keys(argTypes),
25
- components: {PsDataTable, PsDataTableItem},
26
- template: `
27
- <div style="width:400px">
28
- <PsDataTable v-bind="$props">
29
- <PsDataTableItem v-bind="$props"/>
30
- </PsDataTable>
31
- </div>
32
- `
33
- })
34
-
35
-
36
- export const Simple = Template.bind({})
37
- Simple.args = {
38
- header: ['year', 'month', 'sale'],
39
- data: [{ year: '1992', month: '12', sale: '1000.00' }, { year: '1989', month: '02', sale: '1200.00' }],
40
- footer: ['Footer 1', 'Footer 2', 'Footer 3'],
41
- type: 'simple',
42
- }
43
-
44
- export const Rich = RichTemplate.bind({})
45
- Rich.args = {
46
- header: ['header 1', 'header 2', 'header 3'],
47
- data:[[ [ 20, -3], [ 20, 2], [ 20, 2] ], { header4: { value: 20, delta: 2}, header5: { value: 20, delta: 2}, header6: { value: 20, delta: 2} }],
48
- footer: ['Footer 1', 'Footer 2', 'Footer 3'],
49
- type: 'rich'
50
- }
@@ -1,24 +0,0 @@
1
- import PsDateCardInfo from '../components/badges-and-tags/PsDateCardInfo.vue'
2
-
3
- export default {
4
- title: 'Components/DateCardInfo',
5
- component: PsDateCardInfo,
6
- }
7
-
8
- const Template = (args,{argTypes}) => ({
9
- props: Object.keys(argTypes),
10
- components:{PsDateCardInfo},
11
- template: `
12
- <div style="width: 1000px; background:#DBE9F1; display:flex; gap: 7px; padding: 20px; height: 100%;">
13
- <PsDateCardInfo v-bind="$props"/>
14
- <PsDateCardInfo v-bind="$props"/>
15
- <PsDateCardInfo v-bind="$props"/>
16
- </div>
17
- `
18
- })
19
-
20
- export const Default = Template.bind({})
21
-
22
- Default.args = {
23
- date: '2021/02/23'
24
- }