@policystudio/policy-studio-ui-vue 1.0.99 → 1.1.2

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 (35) hide show
  1. package/dist/css/psui_styles.css +79 -0
  2. package/package.json +1 -2
  3. package/src/assets/scss/base.scss +2 -0
  4. package/src/assets/scss/components/PsBarChart.scss +17 -0
  5. package/src/assets/scss/components/PsChartLegend.scss +1 -1
  6. package/src/assets/scss/components/PsTagScope.scss +16 -0
  7. package/src/components/badges-and-tags/PsDateCardInfo.vue +13 -16
  8. package/src/components/badges-and-tags/PsTagScope.vue +31 -0
  9. package/src/components/data-graphics/PsBarChart.vue +34 -0
  10. package/src/components/table-results/PsTableResults.vue +7 -26
  11. package/src/index.js +7 -1
  12. package/src/stories/BadgeWithIcon.stories.js +1 -1
  13. package/src/stories/BarChart.stories.js +17 -0
  14. package/src/stories/ChartLegend.stories.js +1 -1
  15. package/src/stories/Checkbox.stories.js +1 -1
  16. package/src/stories/CheckboxSimple.stories.js +1 -1
  17. package/src/stories/ClimateZoneBadge.stories.js +1 -1
  18. package/src/stories/CostEffectBar.stories.js +1 -1
  19. package/src/stories/Datatable.stories.js +1 -1
  20. package/src/stories/DateCardInfo.stories.js +2 -2
  21. package/src/stories/Dialog.stories.js +1 -1
  22. package/src/stories/Draggable.stories.js +1 -1
  23. package/src/stories/HighlightRippleDot.stories.js +1 -2
  24. package/src/stories/InlineSelector.stories.js +6 -6
  25. package/src/stories/Input.stories.js +1 -1
  26. package/src/stories/InputSelect.stories.js +2 -2
  27. package/src/stories/InputTextArea.stories.js +16 -16
  28. package/src/stories/MiniTag.stories.js +1 -1
  29. package/src/stories/ProgressBar.stories.js +1 -1
  30. package/src/stories/RadioButton.stories.js +1 -1
  31. package/src/stories/RadioButtonSimple.stories.js +1 -1
  32. package/src/stories/Switch.stories.js +1 -1
  33. package/src/stories/TableResults.stories.js +1 -1
  34. package/src/stories/TagScope.stories.js +17 -0
  35. package/src/stories/Toast.stories.js +1 -1
@@ -1709,6 +1709,8 @@ video {
1709
1709
  --text-opacity: 1;
1710
1710
  color: #798490;
1711
1711
  color: rgba(121, 132, 144, var(--text-opacity));
1712
+ font-size: 16px;
1713
+ line-height: 130%;
1712
1714
  }
1713
1715
 
1714
1716
  .psui-el-climate-zone-badge {
@@ -3923,6 +3925,83 @@ video {
3923
3925
  font-weight: 700;
3924
3926
  }
3925
3927
 
3928
+ .psui-el-tag-scope {
3929
+ display: flex;
3930
+ align-items: center;
3931
+ border-radius: 0.25rem;
3932
+ padding-top: 0.25rem;
3933
+ padding-bottom: 0.25rem;
3934
+ padding-right: 0.5rem;
3935
+ height: 1.5rem;
3936
+ --bg-opacity: 1;
3937
+ background-color: #F3F6F9;
3938
+ background-color: rgba(243, 246, 249, var(--bg-opacity));
3939
+ --text-opacity: 1;
3940
+ color: #798490;
3941
+ color: rgba(121, 132, 144, var(--text-opacity));
3942
+ width: 150px;
3943
+ }
3944
+
3945
+ .psui-el-tag-scope-icon {
3946
+ font-family: 'Material Icons Round';
3947
+ font-weight: normal;
3948
+ font-style: normal;
3949
+ font-size: 24px;
3950
+ line-height: 1;
3951
+ letter-spacing: normal;
3952
+ text-transform: none;
3953
+ display: inline-block;
3954
+ white-space: nowrap;
3955
+ word-wrap: normal;
3956
+ direction: ltr;
3957
+ -webkit-font-feature-settings: 'liga';
3958
+ -webkit-font-smoothing: antialiased;
3959
+ margin-left: auto;
3960
+ margin-right: auto;
3961
+ font-size: 1.125rem;
3962
+ }
3963
+
3964
+ .psui-el-tag-scope-true {
3965
+ --text-opacity: 1;
3966
+ color: #44A06A;
3967
+ color: rgba(68, 160, 106, var(--text-opacity));
3968
+ background-color: #D3EFDE;
3969
+ }
3970
+
3971
+ .psui-el-bar-chart {
3972
+ display: flex;
3973
+ align-items: center;
3974
+ border-radius: 0.25rem;
3975
+ font-size: 12px;
3976
+ line-height: 130%;
3977
+ font-weight: 700;
3978
+ overflow: hidden;
3979
+ padding-top: 0.25rem;
3980
+ padding-bottom: 0.25rem;
3981
+ padding-right: 0.5rem;
3982
+ height: 1.5rem;
3983
+ position: relative;
3984
+ background-color: #D4E7F0;
3985
+ width: 150px;
3986
+ }
3987
+
3988
+ .psui-el-bar-chart-total {
3989
+ --text-opacity: 1;
3990
+ color: #00465F;
3991
+ color: rgba(0, 70, 95, var(--text-opacity));
3992
+ margin-left: auto;
3993
+ position: relative;
3994
+ z-index: 1;
3995
+ }
3996
+
3997
+ .psui-el-bar-chart-bar {
3998
+ position: absolute;
3999
+ top: 0;
4000
+ left: 0;
4001
+ height: 100%;
4002
+ background-color: #8AC6D9;
4003
+ }
4004
+
3926
4005
  .psui-space-y-0 > :not(template) ~ :not(template){
3927
4006
  --space-y-reverse: 0;
3928
4007
  margin-top: calc(0px * calc(1 - var(--space-y-reverse)));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@policystudio/policy-studio-ui-vue",
3
- "version": "1.0.99",
3
+ "version": "1.1.2",
4
4
  "description": "Policy Studio UI",
5
5
  "main": "src/index.js",
6
6
  "author": "Policy Studio Team",
@@ -25,7 +25,6 @@
25
25
  },
26
26
  "dependencies": {
27
27
  "core-js": "^3.6.5",
28
- "dayjs": "^1.11.7",
29
28
  "vue": "^2.6.11"
30
29
  },
31
30
  "devDependencies": {
@@ -31,6 +31,8 @@
31
31
  @import './components/PsBadgeWithIcon.scss';
32
32
  @import './components/PsTestimonialCard.scss';
33
33
  @import './components/PsDateCardInfo.scss';
34
+ @import './components/PsTagScope.scss';
35
+ @import './components/PsBarChart.scss';
34
36
  @import "tailwindcss/base";
35
37
  @import "tailwindcss/components";
36
38
  @import "tailwindcss/utilities";
@@ -0,0 +1,17 @@
1
+ @layer components {
2
+ .psui-el-bar-chart {
3
+ @apply psui-flex psui-items-center psui-rounded psui-text-xsmall psui-font-bold psui-overflow-hidden psui-py-1 psui-pr-2 psui-h-6 psui-relative;
4
+ background-color: #D4E7F0;
5
+ width: 150px;
6
+
7
+ &-total {
8
+ @apply psui-text-blue-70 psui-ml-auto psui-relative;
9
+ z-index: 1;
10
+ }
11
+
12
+ &-bar {
13
+ @apply psui-absolute psui-top-0 psui-left-0 psui-h-full;
14
+ background-color: #8AC6D9;
15
+ }
16
+ }
17
+ }
@@ -18,7 +18,7 @@
18
18
  }
19
19
 
20
20
  &-percentage {
21
- @apply psui-text-gray-50;
21
+ @apply psui-text-gray-50 psui-text-p;
22
22
  }
23
23
  }
24
24
 
@@ -0,0 +1,16 @@
1
+ @layer components {
2
+ .psui-el-tag-scope {
3
+ @apply psui-flex psui-items-center psui-rounded psui-py-1 psui-pr-2 psui-h-6 psui-bg-gray-10 psui-text-gray-50;
4
+ width: 150px;
5
+
6
+ &-icon {
7
+ @apply psui-icon psui-mx-auto;
8
+ font-size: 1.125rem;
9
+ }
10
+
11
+ &-true {
12
+ @apply psui-text-green-70;
13
+ background-color: #D3EFDE;
14
+ }
15
+ }
16
+ }
@@ -10,24 +10,21 @@
10
10
  </template>
11
11
 
12
12
  <script>
13
-
14
- import dayjs from 'dayjs'
15
-
16
13
  export default {
17
- name:'PsDateCardInfo',
18
- props:{
19
- date:{
20
- type:String,
21
- default:'',
22
- }
14
+ name: 'PsDateCardInfo',
15
+ props: {
16
+ date: {
17
+ type: [Date, String],
18
+ default: new Date(),
19
+ }
20
+ },
21
+ computed: {
22
+ getMonthFromDate() {
23
+ return (new Date(this.date))?.toLocaleString('default', { month: 'short' })
23
24
  },
24
- computed:{
25
- getMonthFromDate(){
26
- return dayjs(this.date).format('MMM')
27
- },
28
- getDayFromDate(){
29
- return dayjs(this.date).format('DD')
30
- }
25
+ getDayFromDate() {
26
+ return (new Date(this.date))?.toLocaleString('default', { day: '2-digit' })
31
27
  }
28
+ }
32
29
  }
33
30
  </script>
@@ -0,0 +1,31 @@
1
+ <template>
2
+ <div
3
+ class="psui-el-tag-scope"
4
+ :class="getComponentClass"
5
+ >
6
+ <span class="psui-el-tag-scope-icon">{{ getComponentIcon }}</span>
7
+ </div>
8
+ </template>
9
+
10
+ <script>
11
+ export default {
12
+ name: 'PsTagScope',
13
+ props: {
14
+ included: {
15
+ type: Boolean,
16
+ default: true
17
+ },
18
+ },
19
+ computed: {
20
+ getComponentClass() {
21
+ return `psui-el-tag-scope-${this.included}`
22
+ },
23
+ getComponentIcon() {
24
+ return this.included ? 'check' : 'remove'
25
+ }
26
+ },
27
+ }
28
+ </script>
29
+
30
+ <style> /* Please, use the file src/assets/scss/components/PsTagScope.scss */ </style>
31
+
@@ -0,0 +1,34 @@
1
+ <template>
2
+ <div class="psui-el-bar-chart">
3
+ <p
4
+ v-if="showNumber"
5
+ class="psui-el-bar-chart-total"
6
+ >{{ total }}</p>
7
+
8
+ <div
9
+ class="psui-el-bar-chart-bar"
10
+ :style="{width: `${fillWidth}%`}"
11
+ ></div>
12
+ </div>
13
+ </template>
14
+
15
+ <script>
16
+ export default {
17
+ name: 'PsBarChart',
18
+ props: {
19
+ showNumber: {
20
+ type: Boolean,
21
+ default: true
22
+ },
23
+ total: {
24
+ type: String,
25
+ default: '5,0',
26
+ },
27
+ fillWidth: {
28
+ type: Number,
29
+ default: 50
30
+ },
31
+ },
32
+ computed: {}
33
+ }
34
+ </script>
@@ -352,40 +352,21 @@ export default {
352
352
  this.$forceUpdate()
353
353
  this.$emit('collapse-row', this.collapsedRows)
354
354
  },
355
- shouldShowIcon(item) {
356
- if(item.actions && (item.deep == 1 || item.deep == 2)) {
357
- return true
358
- } else {
359
- return false
360
- }
361
- },
362
355
  onRowHover(index) {
363
356
  this.isHoveringRow = index
364
357
  },
358
+ shouldShowIcon(item) {
359
+ if(item?.action && item?.deep == 2) return true
360
+ else return false
361
+ },
365
362
  getIcon(item) {
366
- if(item.actions && item.is_disabled) {
367
- return item.actions[1].icon
368
- } else if(item.actions && !item.is_disabled) {
369
- return item.actions[0].icon
370
- } else {
371
- return ''
372
- }
363
+ if(item?.action) return item.action.icon
373
364
  },
374
365
  getText(item) {
375
- if(item.actions && item.is_disabled) {
376
- return item.actions[1].text
377
- } else if(item.actions && !item.is_disabled) {
378
- return item.actions[0].text
379
- } else {
380
- return ''
381
- }
366
+ if(item?.action) return item.action.text
382
367
  },
383
368
  executeCallback(item) {
384
- if(item.actions && item.is_disabled) {
385
- item.actions[1].callback()
386
- } else if(item.actions && !item.is_disabled) {
387
- item.actions[0].callback()
388
- }
369
+ if(item?.action) item.action.callback(item)
389
370
  },
390
371
  }
391
372
  }
package/src/index.js CHANGED
@@ -42,6 +42,8 @@ import PsProgressBar from './components/badges-and-tags/PsProgressBar.vue'
42
42
  import PsRadioButtonSimple from './components/controls/PsRadioButtonSimple.vue'
43
43
  import PsTestimonialCard from './components/badges-and-tags/PsTestimonialCard.vue'
44
44
  import PsDateCardInfo from './components/badges-and-tags/PsDateCardInfo.vue'
45
+ import PsTagScope from './components/badges-and-tags/PsTagScope.vue'
46
+ import PsBarChart from './components/data-graphics/PsBarChart.vue'
45
47
 
46
48
  export default {
47
49
  install(Vue) {
@@ -84,6 +86,8 @@ export default {
84
86
  Vue.component('PsRadioButtonSimple', PsRadioButtonSimple)
85
87
  Vue.component('PsTestimonialCard',PsTestimonialCard)
86
88
  Vue.component('PsDateCardInfo',PsDateCardInfo)
89
+ Vue.component('PsTagScope',PsTagScope)
90
+ Vue.component('PsBarChart',PsBarChart)
87
91
 
88
92
  Vue.directive('click-outside', {
89
93
  bind: function (el, binding, vnode) {
@@ -142,6 +146,8 @@ export {
142
146
  PsProgressBar,
143
147
  PsRadioButtonSimple,
144
148
  PsTestimonialCard,
145
- PsDateCardInfo
149
+ PsDateCardInfo,
150
+ PsTagScope,
151
+ PsBarChart
146
152
  }
147
153
 
@@ -1,7 +1,7 @@
1
1
  import PsBadgeWithIcon from '../components/badges-and-tags/PsBadgeWithIcon.vue'
2
2
 
3
3
  export default {
4
- title: 'Components/BadgeWithIcon',
4
+ title: 'Badges & Tags/Badges/BadgeWithIcon',
5
5
  component: PsBadgeWithIcon,
6
6
  argTypes: {
7
7
  },
@@ -0,0 +1,17 @@
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,7 +1,7 @@
1
1
  import PsChartLegend from '../components/badges-and-tags/PsChartLegend.vue'
2
2
 
3
3
  export default {
4
- title: 'Components/ChartLegend',
4
+ title: 'Badges & Tags/Badges/ChartLegend',
5
5
  component: PsChartLegend,
6
6
  argTypes: {},
7
7
  }
@@ -1,7 +1,7 @@
1
1
  import PsCheckbox from '../components/controls/PsCheckbox.vue'
2
2
  // const icons = ['add_circle', 'delete', 'done', 'info', 'send']
3
3
  export default {
4
- title: 'Components/Checkbox',
4
+ title: 'Controls & Selectors/Checkbox',
5
5
  component: PsCheckbox,
6
6
  }
7
7
 
@@ -1,7 +1,7 @@
1
1
  import PsCheckboxSimple from '../components/controls/PsCheckboxSimple.vue'
2
2
  // const icons = ['add_circle', 'delete', 'done', 'info', 'send']
3
3
  export default {
4
- title: 'Components/Inputs V2/Checkbox',
4
+ title: 'Text fields & Forms/Inputs V2/Checkbox',
5
5
  component: PsCheckboxSimple,
6
6
  }
7
7
 
@@ -1,7 +1,7 @@
1
1
  import PsClimateZoneBadge from '../components/badges-and-tags/PsClimateZoneBadge.vue'
2
2
 
3
3
  export default {
4
- title: 'Components/ClimateZoneBadge',
4
+ title: 'Badges & Tags/Badges/ClimateZoneBadge',
5
5
  component: PsClimateZoneBadge,
6
6
  }
7
7
 
@@ -1,7 +1,7 @@
1
1
  import PsCostEffectBar from '../components/badges-and-tags/PsCostEffectBar.vue'
2
2
 
3
3
  export default {
4
- title: 'Components/CostEffectBar',
4
+ title: 'Badges & Tags/Badges/CostEffectBar',
5
5
  component: PsCostEffectBar,
6
6
  argTypes: {
7
7
  value: {
@@ -2,7 +2,7 @@ import PsDataTable, { alignment } from '../components/datatable/PsDataTable.vue'
2
2
  import PsDataTableItem from '../components/datatable/PsDataTableItem.vue'
3
3
 
4
4
  export default {
5
- title: 'Components/DataTable',
5
+ title: 'Data Tables/DataTable',
6
6
  component: PsDataTable,
7
7
  subcomponents: { PsDataTableItem },
8
8
  argTypes: {
@@ -19,6 +19,6 @@ export default {
19
19
 
20
20
  export const Default = Template.bind({})
21
21
 
22
- Default.args ={
23
- date:'23/05/2023'
22
+ Default.args = {
23
+ date: new Date()
24
24
  }
@@ -1,7 +1,7 @@
1
1
  import PsDialog from '../components/notifications/PsDialog.vue'
2
2
 
3
3
  export default {
4
- title: 'Components/Dialog',
4
+ title: 'Notifications/Dialog',
5
5
  component: PsDialog,
6
6
  }
7
7
 
@@ -1,7 +1,7 @@
1
1
  import PsDraggable from '../components/controls/PsDraggable.vue'
2
2
 
3
3
  export default {
4
- title: 'Components/Draggable',
4
+ title: 'Controls & Selectors/Draggable',
5
5
  component: PsDraggable
6
6
  }
7
7
 
@@ -1,9 +1,8 @@
1
1
  import PsHighlightRippleDot from '../components/badges-and-tags/PsHighlightRippleDot.vue'
2
2
 
3
3
  export default {
4
- title: 'Components/HighlightRippleDot',
4
+ title: 'Badges & Tags/Badges/HighlightRippleDot',
5
5
  component: PsHighlightRippleDot,
6
- argTypes: {},
7
6
  }
8
7
 
9
8
  const Template = (args, { argTypes }) => ({
@@ -1,18 +1,18 @@
1
1
  import PsInlineSelector from '../components/controls/PsInlineSelector.vue'
2
2
 
3
3
  export default {
4
- title: 'Components/InlineSelector',
5
- component: PsInlineSelector,
4
+ title: 'Controls & Selectors/InlineSelector',
5
+ component: PsInlineSelector,
6
6
  }
7
7
 
8
8
  const TemplateDefault = (args, {argTypes}) => ({
9
- props: Object.keys(argTypes),
10
- components: {PsInlineSelector},
11
- template: `
9
+ props: Object.keys(argTypes),
10
+ components: {PsInlineSelector},
11
+ template: `
12
12
  <div style="width: auto; margin-right: auto; display: flex; align-items: center;">
13
13
  <PsInlineSelector v-bind="$props"></PsInlineSelector>
14
14
  </div>
15
- `
15
+ `
16
16
  })
17
17
 
18
18
  export const Default = TemplateDefault.bind({})
@@ -1,6 +1,6 @@
1
1
  import PsInput from '../components/forms/PsInput.vue'
2
2
  export default {
3
- title: 'Components/Input',
3
+ title: 'Text fields & Forms/Input',
4
4
  component: PsInput,
5
5
  argTypes: {
6
6
  disabled: { control: 'boolean' },
@@ -1,8 +1,8 @@
1
1
  import PsInputSelect from '../components/forms/PsInputSelect.vue'
2
2
 
3
3
  export default {
4
- title: 'Components/InputSelect',
5
- component: PsInputSelect
4
+ title: 'Text fields & Forms/InputSelect',
5
+ component: PsInputSelect
6
6
  }
7
7
 
8
8
  const TemplateDefault = (args, {argTypes})=> ({
@@ -1,25 +1,25 @@
1
1
  import PsInputTextArea from '../components/forms/PsInputTextArea.vue'
2
2
 
3
3
  export default {
4
- title: 'Components/Input Textarea',
5
- component: PsInputTextArea,
4
+ title: 'Text fields & Forms/Input Textarea',
5
+ component: PsInputTextArea,
6
6
  }
7
7
 
8
8
  const Template = (args, {argTypes}) => ({
9
- props: Object.keys(argTypes),
10
- components: {PsInputTextArea},
11
- template: `
12
- <div style='background-color:#F3F6F9; width:400px; height: 100%; padding: 20px 20px; display: flex: display; flex-direction: column;'>
13
- <div style='display: flex; align-items:center; gap:30px;'>
14
- <h1>Default</h1>
15
- <PsInputTextArea v-bind='$props' placeholder='Optional placeholder' label='Drop us a line' rows="${10}" optionalLabel="Optional helper/feedback text"></PsInputTextArea>
16
- </div>
17
- <div style='display: flex; align-items:center; gap:30px; margin-top:40px;'>
18
- <h1>Disable</h1>
19
- <PsInputTextArea v-bind='$props' placeholder='Optional placeholder' label='Drop us a line' rows="${10}" disabled ></PsInputTextArea>
20
- </div>
21
- </div>
22
- `
9
+ props: Object.keys(argTypes),
10
+ components: {PsInputTextArea},
11
+ template: `
12
+ <div style='background-color:#F3F6F9; width:400px; height: 100%; padding: 20px 20px; display: flex: display; flex-direction: column;'>
13
+ <div style='display: flex; align-items:center; gap:30px;'>
14
+ <h1>Default</h1>
15
+ <PsInputTextArea v-bind='$props' placeholder='Optional placeholder' label='Drop us a line' rows="${10}" optionalLabel="Optional helper/feedback text"></PsInputTextArea>
16
+ </div>
17
+ <div style='display: flex; align-items:center; gap:30px; margin-top:40px;'>
18
+ <h1>Disable</h1>
19
+ <PsInputTextArea v-bind='$props' placeholder='Optional placeholder' label='Drop us a line' rows="${10}" disabled ></PsInputTextArea>
20
+ </div>
21
+ </div>
22
+ `
23
23
  })
24
24
 
25
25
  export const Default = Template.bind({})
@@ -3,7 +3,7 @@ import PsMiniTag, {
3
3
  } from '../components/badges-and-tags/PsMiniTag.vue'
4
4
 
5
5
  export default {
6
- title: 'Components/MiniTag',
6
+ title: 'Badges & Tags/Tags/Mini Tag',
7
7
  component: PsMiniTag,
8
8
  argTypes: {
9
9
  type: {
@@ -1,7 +1,7 @@
1
1
  import PsProgressBar from '../components/badges-and-tags/PsProgressBar.vue'
2
2
 
3
3
  export default {
4
- title: 'Components/ProgressBar',
4
+ title: 'Badges & Tags/Badges/ProgressBar',
5
5
  component: PsProgressBar,
6
6
  argTypes: {
7
7
  value: {
@@ -1,7 +1,7 @@
1
1
  import PsRadioButton from '../components/controls/PsRadioButton.vue'
2
2
 
3
3
  export default {
4
- title: 'Components/Radio Button',
4
+ title: 'Controls & Selectors/Radio Button',
5
5
  component: PsRadioButton,
6
6
  }
7
7
 
@@ -1,7 +1,7 @@
1
1
  import PsRadioButtonSimple from '../components/controls/PsRadioButtonSimple.vue'
2
2
 
3
3
  export default {
4
- title: 'Components/Inputs V2/RadioButton',
4
+ title: 'Text fields & Forms/Inputs V2/RadioButton',
5
5
  component: PsRadioButtonSimple,
6
6
  }
7
7
 
@@ -1,6 +1,6 @@
1
1
  import PsSwitch from '../components/controls/PsSwitch.vue'
2
2
  export default {
3
- title: 'Components/Switch',
3
+ title: 'Controls & Selectors/Switch',
4
4
  component: PsSwitch,
5
5
  }
6
6
 
@@ -3,7 +3,7 @@ import PsTableResultsHead from '../components/table-results/PsTableResultsHead.v
3
3
  import PsProgressBar from '../components/badges-and-tags/PsProgressBar.vue'
4
4
 
5
5
  export default {
6
- title: 'Components/TableResults',
6
+ title: 'Data Tables/TableResults',
7
7
  component: { PsTableResults, PsTableResultsHead },
8
8
  argTypes: {
9
9
  onClick: { action: 'clicked' },
@@ -0,0 +1,17 @@
1
+ import PsTagScope from '../components/badges-and-tags/PsTagScope.vue'
2
+ export default {
3
+ title: 'Badges & Tags/Tags/Tag Scope',
4
+ component: PsTagScope,
5
+ }
6
+
7
+ const defaultTemplate = (args, {argTypes}) => ({
8
+ props: Object.keys(argTypes),
9
+ components: { PsTagScope },
10
+ template: `
11
+ <div style='padding: 20px;'>
12
+ <PsTagScope v-bind="$props"/>
13
+ </div>
14
+ `
15
+ })
16
+
17
+ export const TagScope = defaultTemplate.bind({})
@@ -1,6 +1,6 @@
1
1
  import PsToast from '../components/notifications/PsToast.vue'
2
2
  export default {
3
- title: 'Components/Toast',
3
+ title: 'Notifications/Toast',
4
4
  component: PsToast,
5
5
  }
6
6