@policystudio/policy-studio-ui-vue 1.1.90-beta.0 → 1.1.90-beta.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@policystudio/policy-studio-ui-vue",
3
- "version": "1.1.90-beta.0",
3
+ "version": "1.1.90-beta.2",
4
4
  "description": "Policy Studio UI",
5
5
  "main": "src/index.js",
6
6
  "author": "Policy Studio Team",
@@ -59,7 +59,7 @@
59
59
  "react": "^18.2.0",
60
60
  "react-dom": "^18.2.0",
61
61
  "storybook": "^7.6.7",
62
- "tailwindcss": "^1.9.6",
62
+ "tailwindcss": "^3.4.1",
63
63
  "vue-eslint-parser": "^9.3.2",
64
64
  "vue-loader": "^17.4.2",
65
65
  "watch": "^1.0.2"
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
  },
@@ -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,6 +1,6 @@
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
6
  @apply psui-pr-4;
@@ -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,7 +1,16 @@
1
+ /** @type {import('tailwindcss').Config} */
2
+
1
3
  module.exports = {
2
4
  prefix: 'psui-',
3
- purge: ['./index.html', './src/**/*.vue,js,ts,jsx,tsx}'],
4
- darkMode: false, // or 'media' or 'class'
5
+ content: [
6
+ './index.html',
7
+ './src/**/*.vue',
8
+ './src/**/*.js',
9
+ './src/**/*.ts',
10
+ './src/**/*.jsx',
11
+ './src/**/*.tsx',
12
+ ],
13
+ darkMode: 'media', // or 'media' or 'class'
5
14
  theme: {
6
15
  colors: {
7
16
  'white': '#ffffff ',