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

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 (134) hide show
  1. package/.eslintignore +1 -0
  2. package/.eslintrc.js +74 -67
  3. package/.github/workflows/deploy-storybook.yml +1 -1
  4. package/.storybook/PolicyStudio.ts +11 -0
  5. package/.storybook/eventBus.ts +26 -0
  6. package/.storybook/main.ts +21 -0
  7. package/.storybook/manager.ts +7 -0
  8. package/dist/css/psui_styles.css +4028 -110346
  9. package/package.json +50 -34
  10. package/postcss.config.js +1 -1
  11. package/scripts/kill-port.sh +12 -0
  12. package/src/App.vue +30 -0
  13. package/src/assets/scss/base.scss +27 -23
  14. package/src/assets/scss/components/PsAccordion.scss +1 -1
  15. package/src/assets/scss/components/PsChips.scss +3 -3
  16. package/src/assets/scss/components/PsCostEffectBar.scss +4 -4
  17. package/src/assets/scss/components/PsProgressBar.scss +4 -4
  18. package/src/assets/scss/components/PsTabHeader.scss +1 -1
  19. package/src/assets/scss/components/PsTableResults.scss +2 -63
  20. package/src/assets/scss/components/PsTestimonialCard.scss +1 -1
  21. package/src/components/accordion/PsAccordion.vue +20 -21
  22. package/src/components/accordion/PsAccordionItem.vue +30 -8
  23. package/src/components/badges-and-tags/PsBadgeWithIcon.vue +8 -4
  24. package/src/components/badges-and-tags/PsCardInfos.vue +3 -1
  25. package/src/components/badges-and-tags/PsChartLegend.vue +19 -5
  26. package/src/components/badges-and-tags/PsCostEffectBar.vue +4 -5
  27. package/src/components/badges-and-tags/PsHighlightRippleDot.vue +1 -1
  28. package/src/components/badges-and-tags/PsProgressBar.vue +1 -1
  29. package/src/components/badges-and-tags/PsTestimonialCard.vue +6 -4
  30. package/src/components/buttons/PsButton.vue +85 -88
  31. package/src/components/chips/PsChips.vue +5 -2
  32. package/src/components/controls/PsCheckbox.vue +5 -2
  33. package/src/components/controls/PsCheckboxSimple.vue +4 -4
  34. package/src/components/controls/PsDraggable.vue +70 -67
  35. package/src/components/controls/PsInlineSelector.vue +13 -14
  36. package/src/components/controls/PsRadioButton.vue +10 -5
  37. package/src/components/controls/PsRadioButtonSimple.vue +3 -3
  38. package/src/components/controls/PsSlider.vue +6 -6
  39. package/src/components/controls/PsSwitch.vue +13 -3
  40. package/src/components/controls/PsToggle.vue +14 -11
  41. package/src/components/data-graphics/PsBarChart.vue +4 -2
  42. package/src/components/datatable/PsDataTable.vue +14 -5
  43. package/src/components/datatable/PsDataTableItem.vue +17 -4
  44. package/src/components/forms/PsDropdown.vue +8 -5
  45. package/src/components/forms/PsDropdownList.vue +1 -1
  46. package/src/components/forms/PsInput.vue +30 -14
  47. package/src/components/forms/PsInputSelect.vue +33 -11
  48. package/src/components/forms/PsInputTextArea.vue +15 -4
  49. package/src/components/navigations/PsBreadcrumb.vue +1 -1
  50. package/src/components/notifications/PsDialog.vue +11 -5
  51. package/src/components/notifications/PsSimpleAlert.vue +22 -10
  52. package/src/components/notifications/PsToast.vue +8 -3
  53. package/src/components/playground/PsScrollBar.vue +122 -50
  54. package/src/components/table-results/PsTableResults.vue +67 -51
  55. package/src/components/table-results/PsTableResultsBody.vue +3 -1
  56. package/src/components/table-results/PsTableResultsHead.vue +27 -8
  57. package/src/components/table-results/PsTableResultsHeadComparison.vue +24 -8
  58. package/src/components/table-results/PsTableResultsHeadFlexible.vue +18 -6
  59. package/src/components/table-results/PsTableResultsRow.vue +6 -2
  60. package/src/components/tabs/PsTabHeader.vue +19 -16
  61. package/src/components/tooltip/PsDialogTooltip.vue +18 -8
  62. package/src/components/tooltip/PsRichTooltip.vue +12 -5
  63. package/src/components/tooltip/PsTooltip.vue +17 -9
  64. package/src/components/ui/PsDotLoader.vue +5 -5
  65. package/src/components/ui/PsIcon.vue +6 -2
  66. package/src/{index.js → index.ts} +4 -5
  67. package/src/shims-vue.d.ts +11 -0
  68. package/src/stories/{Accordion.stories.js → Accordion.stories.ts} +2 -2
  69. package/src/stories/{BadgeWithIcon.stories.js → BadgeWithIcon.stories.ts} +1 -1
  70. package/src/stories/{BarChart.stories.js → BarChart.stories.ts} +1 -1
  71. package/src/stories/{Breadcrumb.stories.js → Breadcrumb.stories.ts} +1 -4
  72. package/src/stories/Button.stories.ts +48 -0
  73. package/src/stories/Button.vue +59 -0
  74. package/src/stories/{CardInfos.stories.js → CardInfos.stories.ts} +1 -2
  75. package/src/stories/{ChartLegend.stories.js → ChartLegend.stories.ts} +1 -2
  76. package/src/stories/{Checkbox.stories.js → Checkbox.stories.ts} +1 -1
  77. package/src/stories/{CheckboxSimple.stories.js → CheckboxSimple.stories.ts} +1 -1
  78. package/src/stories/{Chips.stories.js → Chips.stories.ts} +24 -22
  79. package/src/stories/ClimateZoneBadge.stories.ts +28 -0
  80. package/src/stories/CostEffectBar.stories.ts +26 -0
  81. package/src/stories/{Datatable.stories.js → Datatable.stories.ts} +5 -2
  82. package/src/stories/{DateCardInfo.stories.js → DateCardInfo.stories.ts} +1 -5
  83. package/src/stories/{Dialog.stories.js → Dialog.stories.ts} +1 -1
  84. package/src/stories/Draggable.stories.ts +32 -0
  85. package/src/stories/{Dropdown.stories.js → Dropdown.stories.ts} +1 -11
  86. package/src/stories/{DropdownList.stories.js → DropdownList.stories.ts} +3 -1
  87. package/src/stories/{ElevationSystem.stories.mdx → ElevationSystem.mdx} +1 -1
  88. package/src/stories/Header.stories.ts +42 -0
  89. package/src/stories/Header.vue +77 -0
  90. package/src/stories/{HighlightRippleDot.stories.js → HighlightRippleDot.stories.ts} +2 -1
  91. package/src/stories/{Icon.stories.js → Icon.stories.ts} +2 -1
  92. package/src/stories/{InlineSelector.stories.js → InlineSelector.stories.ts} +1 -1
  93. package/src/stories/{Input.stories.js → Input.stories.ts} +6 -2
  94. package/src/stories/{InputSelect.stories.js → InputSelect.stories.ts} +2 -1
  95. package/src/stories/{InputTextArea.stories.js → InputTextArea.stories.ts} +1 -1
  96. package/src/stories/{Introduction.stories.mdx → Introduction.mdx} +101 -101
  97. package/src/stories/{MiniTag.stories.js → MiniTag.stories.ts} +8 -1
  98. package/src/stories/{Playground.stories.js → Playground.stories.ts} +1 -1
  99. package/src/stories/{ProgressBar.stories.js → ProgressBar.stories.ts} +2 -1
  100. package/src/stories/{RadioButton.stories.js → RadioButton.stories.ts} +1 -0
  101. package/src/stories/{RadioButtonSimple.stories.js → RadioButtonSimple.stories.ts} +1 -1
  102. package/src/stories/{SimpleAlert.stories.js → SimpleAlert.stories.ts} +2 -1
  103. package/src/stories/{Slider.stories.js → Slider.stories.ts} +5 -1
  104. package/src/stories/{Switch.stories.js → Switch.stories.ts} +1 -1
  105. package/src/stories/{TabHeader.stories.js → TabHeader.stories.ts} +4 -0
  106. package/src/stories/{TableResults.stories.js → TableResults.stories.ts} +5 -1
  107. package/src/stories/{TagScope.stories.js → TagScope.stories.ts} +1 -1
  108. package/src/stories/{TestimonialCard.stories.js → TestimonialCard.stories.ts} +2 -2
  109. package/src/stories/{Toast.stories.js → Toast.stories.ts} +1 -1
  110. package/src/stories/{Toggle.stories.js → Toggle.stories.ts} +6 -3
  111. package/src/stories/{Tooltip.stories.js → Tooltip.stories.ts} +3 -3
  112. package/src/stories/{Typography.stories.mdx → Typography.mdx} +107 -105
  113. package/src/stories/button.css +30 -0
  114. package/src/stories/header.css +32 -0
  115. package/src/util/{GeneralFunctions.js → GeneralFunctions.ts} +7 -7
  116. package/src/util/{imageLoader.js → imageLoader.ts} +15 -9
  117. package/tailwind.config.js +11 -2
  118. package/tsconfig.json +47 -0
  119. package/webpack.config.js +36 -0
  120. package/.storybook/PolicyStudio.js +0 -10
  121. package/.storybook/eventBus.js +0 -3
  122. package/.storybook/main.js +0 -25
  123. package/.storybook/manager.js +0 -6
  124. package/babel.config.js +0 -3
  125. package/backup-package-lock.json +0 -37194
  126. package/src/stories/Button.stories.js +0 -130
  127. package/src/stories/ClimateZoneBadge.stories.js +0 -17
  128. package/src/stories/CostEffectBar.stories.js +0 -23
  129. package/src/stories/Draggable.stories.js +0 -22
  130. /package/.storybook/{preview.js → preview.ts} +0 -0
  131. /package/src/contents/{ComparisonData.js → ComparisonData.ts} +0 -0
  132. /package/src/contents/{FlexibleData.js → FlexibleData.ts} +0 -0
  133. /package/src/contents/{ResultsData.js → ResultsData.ts} +0 -0
  134. /package/src/stories/{Colors.stories.mdx → Colors.mdx} +0 -0
package/package.json CHANGED
@@ -1,57 +1,73 @@
1
1
  {
2
2
  "name": "@policystudio/policy-studio-ui-vue",
3
- "version": "1.1.89",
3
+ "version": "1.1.90-beta.10",
4
4
  "description": "Policy Studio UI",
5
- "main": "src/index.js",
6
5
  "author": "Policy Studio Team",
7
- "url": "https://github.com/Policy-Studio/policy-studio-ui-vue",
8
- "license": "MIT",
9
- "keywords": [
10
- "vue",
11
- "ui"
12
- ],
13
6
  "scripts": {
7
+ "serve": "concurrently --kill-others \"npm run watch-storybook\" \"npm run watch-tailwind\"",
14
8
  "lint": "vue-cli-service lint",
15
- "build-storybook": "STORYBOOK_ENV=production build-storybook",
9
+ "build-storybook": "storybook build",
10
+ "build-ts":"tsc",
16
11
  "build-tailwind": "postcss src/assets/scss/base.scss -o dist/css/psui_styles.css",
17
12
  "build-temp-tailwind": "postcss src/assets/scss/base.scss -o temp/css/psui_styles.css",
18
- "full-publish": "npm run lint && npm run build-tailwind && build-storybook && npm publish",
19
- "serve": "concurrently --kill-others \"npm run watch-storybook\" \"npm run watch-tailwind\"",
13
+ "full-publish": "npm run lint && npm run build-ts && npm run build-tailwind && npm run build-storybook && npm publish --tag beta",
14
+ "kill-port": "sh ./scripts/kill-port.sh",
20
15
  "serve-prod": "concurrently --kill-others \"npm run watch-storybook\" \"npm run watch-prod-tailwind\"",
21
- "watch-storybook": "start-storybook -p 6006",
16
+ "storybook": "concurrently \"npm run kill-port\" \"npm run watch-prod-tailwind\" \"storybook dev -p 6006\"",
22
17
  "watch-prod-tailwind": "watch 'npm run build-tailwind' ./src/assets",
23
18
  "watch-tailwind": "watch 'npm run build-temp-tailwind' ./src/assets"
24
19
  },
20
+ "main": "dist/index.js",
25
21
  "dependencies": {
22
+ "@vue/compat": "^3.4.5",
26
23
  "core-js": "^3.6.5",
27
24
  "v-tooltip": "^2.1.3",
28
- "vue": "^2.6.11"
25
+ "vue": "^3.4.5"
29
26
  },
30
27
  "devDependencies": {
31
- "@babel/core": "^7.16.7",
32
- "@storybook/addon-actions": "^6.4.13",
33
- "@storybook/addon-essentials": "^6.4.13",
34
- "@storybook/addon-links": "^6.4.13",
35
- "@storybook/addon-postcss": "^2.0.0",
36
- "@storybook/vue": "^6.4.13",
37
- "@vue/cli-plugin-babel": "~4.5.0",
38
- "@vue/cli-plugin-eslint": "~4.5.0",
39
- "@vue/cli-service": "~4.5.0",
40
- "@vue/eslint-config-prettier": "^6.0.0",
41
- "babel-eslint": "^10.1.0",
42
- "babel-loader": "^8.2.3",
28
+ "@storybook/addon-essentials": "^7.6.7",
29
+ "@storybook/addon-interactions": "^7.6.7",
30
+ "@storybook/addon-links": "^7.6.7",
31
+ "@storybook/blocks": "^7.6.7",
32
+ "@storybook/test": "^7.6.7",
33
+ "@storybook/vue3": "^7.6.7",
34
+ "@storybook/vue3-webpack5": "^7.6.7",
35
+ "@typescript-eslint/eslint-plugin": "^5.4.0",
36
+ "@typescript-eslint/parser": "^5.4.0",
37
+ "@vue/cli-plugin-eslint": "^5.0.8",
38
+ "@vue/cli-plugin-typescript": "~5.0.0",
39
+ "@vue/cli-service": "~5.0.8",
40
+ "@vue/compiler-sfc": "^3.4.5",
41
+ "@vue/eslint-config-prettier": "^9.0.0",
42
+ "@vue/eslint-config-typescript": "^9.1.0",
43
43
  "concurrently": "^7.0.0",
44
- "eslint": "^6.7.2",
45
- "eslint-plugin-prettier": "^3.3.1",
46
- "eslint-plugin-vue": "^6.2.2",
44
+ "eslint": "^8.56.0",
45
+ "eslint-plugin-prettier": "^5.1.2",
46
+ "eslint-plugin-storybook": "^0.6.15",
47
+ "eslint-plugin-vue": "^8.7.1",
47
48
  "postcss": "^8.3.11",
48
49
  "postcss-cli": "^9.0.2",
49
50
  "postcss-import": "^14.0.2",
50
51
  "postcss-nested": "^5.0.6",
51
- "prettier": "^2.2.1",
52
- "tailwindcss": "^1.9.6",
53
- "vue-loader": "^15.9.8",
54
- "vue-template-compiler": "^2.6.11",
55
- "watch": "^1.0.2"
56
- }
52
+ "prettier": "^3.1.1",
53
+ "react": "^18.2.0",
54
+ "react-dom": "^18.2.0",
55
+ "storybook": "^7.6.7",
56
+ "tailwindcss": "^3.4.1",
57
+ "ts-loader": "^9.5.1",
58
+ "typescript": "~4.5.5",
59
+ "vue-eslint-parser": "^9.3.2",
60
+ "vue-loader": "^17.4.2",
61
+ "watch": "^1.0.2",
62
+ "webpack": "^5.89.0"
63
+ },
64
+ "engines": {
65
+ "node": "18.19.0"
66
+ },
67
+ "keywords": [
68
+ "vue",
69
+ "ui"
70
+ ],
71
+ "license": "MIT",
72
+ "url": "https://github.com/Policy-Studio/policy-studio-ui-vue"
57
73
  }
package/postcss.config.js CHANGED
@@ -1,7 +1,7 @@
1
1
  module.exports = {
2
2
  plugins: {
3
- 'postcss-nested': {},
4
3
  'postcss-import': {},
4
+ 'tailwindcss/nesting': {},
5
5
  tailwindcss: {},
6
6
  autoprefixer: {},
7
7
  },
@@ -0,0 +1,12 @@
1
+ #!/bin/bash
2
+
3
+ # Find the process using port 3000
4
+ PROCESS_ID=$(lsof -t -i:6006)
5
+
6
+ # Check if a process is using the port
7
+ if [ -n "$PROCESS_ID" ]; then
8
+ echo "Killing process on port 6006 (PID: $PROCESS_ID)"
9
+ kill -9 $PROCESS_ID
10
+ else
11
+ echo "Port 6006 is not in use"
12
+ fi
package/src/App.vue ADDED
@@ -0,0 +1,30 @@
1
+ <template>
2
+ <img
3
+ alt="Vue logo"
4
+ src="./assets/logo.png"
5
+ >
6
+ <HelloWorld msg="Welcome to Your Vue.js + TypeScript App" />
7
+ </template>
8
+
9
+ <script lang="ts">
10
+ import { defineComponent } from 'vue'
11
+ import HelloWorld from './components/HelloWorld.vue'
12
+
13
+ export default defineComponent({
14
+ name: 'App',
15
+ components: {
16
+ HelloWorld
17
+ }
18
+ })
19
+ </script>
20
+
21
+ <style>
22
+ #app {
23
+ font-family: Avenir, Helvetica, Arial, sans-serif;
24
+ -webkit-font-smoothing: antialiased;
25
+ -moz-osx-font-smoothing: grayscale;
26
+ text-align: center;
27
+ color: #2c3e50;
28
+ margin-top: 60px;
29
+ }
30
+ </style>
@@ -67,35 +67,39 @@ html {
67
67
  -webkit-font-smoothing: antialiased;
68
68
  }
69
69
 
70
- .psui-card {
71
- @apply .psui-w-full .psui-bg-white .psui-rounded-lg .psui-px-6 .psui-py-4 .psui-shadow-elevation-5;
72
70
 
73
- &-header {
74
- @apply .psui-flex .psui-items-center .psui-justify-between .psui-mb-4;
75
-
76
- h4 {
77
- @apply .psui-text-h6 .psui-font-bold .psui-text-gray-80;
71
+ @layer components {
72
+ .psui-card {
73
+ @apply .psui-w-full .psui-bg-white .psui-rounded-lg .psui-px-6 .psui-py-4 .psui-shadow-elevation-5;
74
+
75
+ &-header {
76
+ @apply .psui-flex .psui-items-center .psui-justify-between .psui-mb-4;
77
+
78
+ h4 {
79
+ @apply .psui-text-h6 .psui-font-bold .psui-text-gray-80;
80
+ }
78
81
  }
79
82
  }
80
- }
81
83
 
82
- .psui-show-childrens-on-hover {
83
- &:hover {
84
- * {
85
- opacity: 1 !important;
84
+ .psui-show-childrens-on-hover {
85
+ &:hover {
86
+ * {
87
+ opacity: 1 !important;
88
+ }
86
89
  }
87
- }
88
-
89
- &.absolute-childrens {
90
- @apply psui-relative;
91
-
92
- .helper {
93
- @apply psui-absolute psui-top-0;
94
- right: -18px;
90
+
91
+ &.absolute-childrens {
92
+ @apply psui-relative;
93
+
94
+ .helper {
95
+ @apply psui-absolute psui-top-0;
96
+ right: -18px;
97
+ }
95
98
  }
96
99
  }
100
+
101
+ .psui-transition {
102
+ @apply psui-transition-all psui-ease-in-out psui-duration-150;
103
+ }
97
104
  }
98
105
 
99
- .psui-transition {
100
- @apply psui-transition-all psui-ease-in-out psui-duration-150;
101
- }
@@ -8,7 +8,7 @@
8
8
  &.disabled {
9
9
  .psui-el-accordion-item-header {
10
10
  .psui-el-accordion-item-header-wrapper {
11
- @apply psui-text-gray-50 pointer-events-none;
11
+ @apply psui-text-gray-50 psui-pointer-events-none;
12
12
 
13
13
  }
14
14
  }
@@ -1,4 +1,4 @@
1
- @layer components{
1
+ @layer components {
2
2
 
3
3
  .psui-el-chips {
4
4
  @apply psui-inline-flex psui-relative;
@@ -126,7 +126,7 @@
126
126
 
127
127
  &,
128
128
  .psui-el-chips-close {
129
- @apply .psui-text-gray-50;
129
+ @apply psui-text-gray-50;
130
130
  }
131
131
 
132
132
  .psui-el-chips-icon-prepend {
@@ -140,7 +140,7 @@
140
140
 
141
141
  &,
142
142
  .psui-el-chips-close {
143
- @apply .psui-text-blue-60;
143
+ @apply psui-text-blue-60;
144
144
  }
145
145
 
146
146
  .psui-el-chips-icon-prepend {
@@ -1,13 +1,13 @@
1
1
  @layer components {
2
2
  .psui-el-cost-effect-bar {
3
- @apply .psui-overflow-visible;
3
+ @apply psui-overflow-visible;
4
4
 
5
5
  div {
6
- @apply .psui-relative .psui-h-2 .psui-rounded-2xl;
6
+ @apply psui-relative psui-h-2 psui-rounded-2xl;
7
7
  width: 100px;
8
8
 
9
9
  span {
10
- @apply .psui-absolute .psui-rounded-sm .psui-z-10;
10
+ @apply psui-absolute psui-rounded-sm psui-z-10;
11
11
  background-color: #d6dde5;
12
12
  width: 2px;
13
13
  height: 14px;
@@ -15,7 +15,7 @@
15
15
  }
16
16
 
17
17
  .psui-el-simple-progress-bar {
18
- @apply .psui-overflow-hidden;
18
+ @apply psui-overflow-hidden;
19
19
 
20
20
  &-percentage {
21
21
  border-radius: unset;
@@ -1,10 +1,10 @@
1
1
  @layer components {
2
2
  .psui-el-progress-bar {
3
- @apply .psui-relative .psui-h-2 .psui-rounded-full .psui-bg-red-10;
3
+ @apply psui-relative psui-h-2 psui-rounded-full psui-bg-red-10;
4
4
  width: 100px;
5
5
 
6
6
  &.is-breakeven {
7
- @apply .psui-bg-blue-20;
7
+ @apply psui-bg-blue-20;
8
8
  }
9
9
 
10
10
  &-percentage {
@@ -16,13 +16,13 @@
16
16
  }
17
17
 
18
18
  &-divider {
19
- @apply .psui-absolute .psui-rounded-full .psui-z-auto .psui-bg-gray-30;
19
+ @apply psui-absolute psui-rounded-full psui-z-auto psui-bg-gray-30;
20
20
  width: 2px; height: 14px;
21
21
  top: -3px;
22
22
  }
23
23
 
24
24
  &-value {
25
- @apply .psui-h-2 .psui-rounded-tl-full .psui-rounded-bl-full;
25
+ @apply psui-h-2 psui-rounded-tl-full psui-rounded-bl-full;
26
26
  }
27
27
 
28
28
  @keyframes animate-stripes {
@@ -6,7 +6,7 @@
6
6
  button {
7
7
  @apply transition-default psui-text-small;
8
8
  &.status-disabled {
9
- @apply cursor-not-allowed;
9
+ @apply psui-cursor-not-allowed;
10
10
  }
11
11
 
12
12
  &:focus {
@@ -1,9 +1,9 @@
1
1
  @layer components{
2
2
  .psui-el-table-results-wrapper {
3
- @apply psui-w-full psui-whitespace-no-wrap psui-flex psui-overflow-auto;
3
+ @apply psui-w-full psui-whitespace-nowrap psui-flex psui-overflow-auto;
4
4
 
5
5
  &.table-flexible {
6
- @apply psui-pr-4 psui-pb-2;
6
+ @apply psui-pr-4;
7
7
  }
8
8
  }
9
9
 
@@ -481,20 +481,6 @@
481
481
  }
482
482
  }
483
483
 
484
- &.combined_measure_margin_aux {
485
-
486
- td {
487
- content: '' !important;
488
- background-color: white !important;
489
- max-height: 10px;
490
- visibility: hidden;
491
-
492
- &:nth-child(3) {
493
- visibility: visible;
494
- }
495
-
496
- }
497
- }
498
484
 
499
485
  &.is-disabled {
500
486
  td {
@@ -506,53 +492,6 @@
506
492
  }
507
493
  }
508
494
 
509
- &.visible {
510
- display: none
511
- }
512
-
513
- &.appended-row {
514
- @apply psui-bg-blue-10 psui-border psui-rounded-md;
515
- height: 36px;
516
-
517
- td {
518
- @apply psui-bg-gray-10 psui-text-gray-70;
519
- transition: background-color 0.5s ease;
520
-
521
- .title {
522
- margin-left: 6px;
523
- }
524
-
525
- &:first-child {
526
- @apply psui-sticky;
527
- min-width: 330px;
528
-
529
- &:after,&:before {
530
- content: '';
531
- @apply psui-absolute psui-top-0;
532
- }
533
-
534
- &:before {
535
- @apply psui-bg-gray-10 psui-rounded-bl-full ;
536
- box-shadow: -3px 3px 0px 0px #ffffff;
537
- z-index: 30;
538
- top: 25px;
539
- left: 0;
540
- width: 10px;
541
- height: 10px;
542
- }
543
-
544
- &:after {
545
- @apply psui-bg-gray-10 psui-rounded-tl-full ;
546
- box-shadow: -3px -3px 0px 0px #ffffff;
547
- z-index: 30;
548
- top: 0;
549
- left: 0;
550
- width: 10px;
551
- height: 10px;
552
- }
553
- }
554
- }
555
- }
556
495
 
557
496
  td {
558
497
  @apply psui-text-gray-70 psui-h-10 psui-text-right psui-text-small;
@@ -1,6 +1,6 @@
1
1
  @layer components {
2
2
  .psui-el-testimonial {
3
- @apply psui-relative psui-bg-white psui-shadow-elevation-5 psui-flex psui-flex-col psui-rounded-lg w-full;
3
+ @apply psui-relative psui-bg-white psui-shadow-elevation-5 psui-flex psui-flex-col psui-rounded-lg psui-w-full;
4
4
  padding: 56px 42px 40px 32px;
5
5
 
6
6
  &-icon {
@@ -1,28 +1,27 @@
1
1
  <template>
2
- <div class="psui-el-accordion" :class="getComponentClass">
3
- <slot></slot>
2
+ <div
3
+ class="psui-el-accordion"
4
+ :class="getComponentClass"
5
+ >
6
+ <slot />
4
7
  </div>
5
8
  </template>
6
9
 
7
- <script>
8
- export const layouts = ['big', 'medium']
9
- export default {
10
- name: 'PsAccordion',
11
- props: {
12
- /**
13
- * It defines the size of the accordion items. eg: text size and font.
14
- */
15
- layout: {
16
- type: String,
17
- default: 'medium',
18
- validator: (value) => ['medium','big'].includes(value),
19
- },
10
+ <script setup>
11
+ import { computed } from 'vue'
12
+
13
+ const props = defineProps({
14
+ layout:{
15
+ type: String,
16
+ default: 'medium',
17
+ validator: (value) => ['big', 'medium'].includes(value)
20
18
  },
21
- computed: {
22
- getComponentClass() {
23
- return `layout-${this.layout}`
24
- }
25
- }
26
- }
19
+ })
20
+
21
+ const getComponentClass = computed(() => {
22
+ return `layout-${props.layout}`
23
+ })
24
+
27
25
  </script>
26
+
28
27
  <style> /* Please, use the file src/assets/scss/components/PsAccordion.scss */</style>
@@ -1,11 +1,30 @@
1
1
  <template>
2
- <div class="psui-el-accordion-item" :class="{'status-opened':isOpen, 'disabled':disabled}">
2
+ <div
3
+ class="psui-el-accordion-item"
4
+ :class="{'status-opened':isOpen, 'disabled':disabled}"
5
+ >
3
6
  <div class="psui-el-accordion-item-header">
4
- <slot name='custom-header' :toggle="toggle" :isOpen="isOpen">
5
- <div @click="toggle" class="psui-el-accordion-item-header-wrapper" v-if="!hasCustomHeader">
6
- <h2 v-if="title" class="psui-el-accordion-item-title">{{ title }}</h2>
7
- <slot name='header-additionals'></slot>
8
- <i v-if="!disabled" class="psui-el-accordion-item-icon">{{ getIcon }}</i>
7
+ <slot
8
+ name="custom-header"
9
+ :toggle="toggle"
10
+ :is-open="isOpen"
11
+ >
12
+ <div
13
+ @click="toggle"
14
+ class="psui-el-accordion-item-header-wrapper"
15
+ v-if="!hasCustomHeader"
16
+ >
17
+ <h2
18
+ v-if="title"
19
+ class="psui-el-accordion-item-title"
20
+ >
21
+ {{ title }}
22
+ </h2>
23
+ <slot name="header-additionals" />
24
+ <i
25
+ v-if="!disabled"
26
+ class="psui-el-accordion-item-icon"
27
+ >{{ getIcon }}</i>
9
28
  </div>
10
29
  </slot>
11
30
  </div>
@@ -16,8 +35,11 @@
16
35
  @before-leave="start"
17
36
  @after-leave="end"
18
37
  >
19
- <div v-if="isOpen" class="psui-el-accordion-item-content">
20
- <slot></slot>
38
+ <div
39
+ v-if="isOpen"
40
+ class="psui-el-accordion-item-content"
41
+ >
42
+ <slot />
21
43
  </div>
22
44
  </transition>
23
45
  </div>
@@ -1,11 +1,14 @@
1
1
  <template>
2
- <div class="psui-el-badge-with-icon" :class="getComponentClass">
2
+ <div
3
+ class="psui-el-badge-with-icon"
4
+ :class="getComponentClass"
5
+ >
3
6
  <i
4
7
  v-if="icon"
5
8
  :class="iconClass"
6
9
  class="psui-el-badge-with-icon-icon"
7
- >{{icon}}</i>
8
- <span class="psui-el-badge-with-icon-message">{{message}}</span>
10
+ >{{ icon }}</i>
11
+ <span class="psui-el-badge-with-icon-message">{{ message }}</span>
9
12
  </div>
10
13
  </template>
11
14
 
@@ -21,7 +24,8 @@
21
24
  * It set any further css style that might be needed.
22
25
  */
23
26
  iconClass: {
24
- type: String
27
+ type: String,
28
+ default:''
25
29
  },
26
30
  message: {
27
31
  type: String,
@@ -8,7 +8,9 @@
8
8
  </h5>
9
9
  <div class="psui-el-card-infos-content">
10
10
  <span class="psui-el-card-infos-icon material-icons-round">{{ icon }}</span>
11
- <h5 class="psui-text-gray-80">{{ total }}</h5>
11
+ <h5 class="psui-text-gray-80">
12
+ {{ total }}
13
+ </h5>
12
14
  </div>
13
15
  </div>
14
16
  </template>
@@ -1,14 +1,28 @@
1
1
  <template>
2
2
  <div class="psui-el-chart-legend">
3
3
  <div class="psui-flex psui-flex-shrink-0">
4
- <div class="psui-el-chart-legend-dot" :style="dotColor"/>
4
+ <div
5
+ class="psui-el-chart-legend-dot"
6
+ :style="dotColor"
7
+ />
5
8
  </div>
6
9
  <div class="psui-flex-grow-1 flex psui-flex-col">
7
- <div class="psui-el-chart-legend-text">{{ text }}</div>
10
+ <div class="psui-el-chart-legend-text">
11
+ {{ text }}
12
+ </div>
8
13
  <div class="flex psui-items-center psui-flex-shrink-0 psui-gap-1">
9
- <span v-if="this.total" class="psui-el-chart-legend-total">{{ total }}</span>
10
- <span class="psui-text-gray-30" v-if="total && percentage"> | </span>
11
- <span class="psui-el-chart-legend-percentage" v-if="percentage">
14
+ <span
15
+ v-if="this.total"
16
+ class="psui-el-chart-legend-total"
17
+ >{{ total }}</span>
18
+ <span
19
+ class="psui-text-gray-30"
20
+ v-if="total && percentage"
21
+ > | </span>
22
+ <span
23
+ class="psui-el-chart-legend-percentage"
24
+ v-if="percentage"
25
+ >
12
26
  {{ percentage }}%
13
27
  </span>
14
28
  </div>
@@ -1,14 +1,13 @@
1
1
  <template>
2
2
  <div class="psui-el-cost-effect-bar">
3
3
  <div>
4
- <span :style="breakEvenPosition"> </span>
4
+ <span :style="breakEvenPosition" />
5
5
 
6
6
  <PsProgressBar
7
7
  :value="value"
8
- :percentageColor="percentageColor"
9
- :bgColor="bgColor"
10
- >
11
- </PsProgressBar>
8
+ :percentage-color="percentageColor"
9
+ :bg-color="bgColor"
10
+ />
12
11
  </div>
13
12
  </div>
14
13
  </template>
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <div class="psui-el-highlight-ripple-icon">
3
- <div class="psui-el-icon"></div>
3
+ <div class="psui-el-icon" />
4
4
  </div>
5
5
  </template>
6
6
 
@@ -38,7 +38,7 @@ export default {
38
38
  default: 1
39
39
  },
40
40
  forceBreakEven: {
41
- Boolean,
41
+ type: Boolean,
42
42
  default: false
43
43
  },
44
44
  value: {
@@ -8,11 +8,13 @@
8
8
  display="flex"
9
9
  />
10
10
  </div>
11
- <p class="psui-el-testimonial-description">{{description}}</p>
11
+ <p class="psui-el-testimonial-description">
12
+ {{ description }}
13
+ </p>
12
14
  <div class="psui-el-testimonial-info">
13
- <span class="psui-el-testimonial-info-user" >{{user}}</span>
14
- <span class="psui-el-testimonial-info-position">{{position}}</span>
15
- <span class="psui-el-testimonial-info-jurisdiction">{{jurisdiction}}</span>
15
+ <span class="psui-el-testimonial-info-user">{{ user }}</span>
16
+ <span class="psui-el-testimonial-info-position">{{ position }}</span>
17
+ <span class="psui-el-testimonial-info-jurisdiction">{{ jurisdiction }}</span>
16
18
  </div>
17
19
  </div>
18
20
  </template>