@policystudio/policy-studio-ui-vue 1.0.28 → 1.0.31

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 (81) hide show
  1. package/.storybook/preview.js +7 -1
  2. package/README.md +6 -2
  3. package/dist/css/psui_styles.css +1863 -210
  4. package/package.json +15 -5
  5. package/src/assets/scss/base.scss +4 -0
  6. package/src/assets/scss/components/PsAccordion.scss +28 -11
  7. package/src/assets/scss/components/PsButton.scss +39 -18
  8. package/src/assets/scss/components/PsCardInfos.scss +1 -1
  9. package/src/assets/scss/components/PsCheckbox.scss +4 -5
  10. package/src/assets/scss/components/PsChips.scss +13 -8
  11. package/src/assets/scss/components/PsClimateZoneBadge.scss +1 -1
  12. package/src/assets/scss/components/PsCostEffectBar.scss +22 -27
  13. package/src/assets/scss/components/PsDialog.scss +5 -2
  14. package/src/assets/scss/components/PsDotLoader.scss +45 -0
  15. package/src/assets/scss/components/PsDraggable.scss +64 -0
  16. package/src/assets/scss/components/PsDropdown.scss +5 -22
  17. package/src/assets/scss/components/PsDropdownList.scss +19 -0
  18. package/src/assets/scss/components/PsHighlightRippleDot.scss +1 -1
  19. package/src/assets/scss/components/PsInlineSelector.scss +92 -1
  20. package/src/assets/scss/components/PsInput.scss +8 -3
  21. package/src/assets/scss/components/PsInputSelect.scss +75 -30
  22. package/src/assets/scss/components/PsInputTextArea.scss +5 -2
  23. package/src/assets/scss/components/PsMiniTag.scss +36 -0
  24. package/src/assets/scss/components/PsRadioButton.scss +5 -5
  25. package/src/assets/scss/components/PsSwitch.scss +4 -4
  26. package/src/assets/scss/components/PsTabHeader.scss +14 -0
  27. package/src/assets/scss/components/PsToast.scss +3 -3
  28. package/src/assets/scss/components/PsToggle.scss +6 -2
  29. package/src/assets/scss/components/PsTooltip.scss +51 -18
  30. package/src/components/accordion/PsAccordion.vue +7 -23
  31. package/src/components/accordion/PsAccordionItem.vue +41 -25
  32. package/src/components/badges-and-tags/PsCardInfos.vue +12 -0
  33. package/src/components/badges-and-tags/PsChartLegend.vue +13 -0
  34. package/src/components/badges-and-tags/PsClimateZoneBadge.vue +7 -0
  35. package/src/components/badges-and-tags/PsCostEffectBar.vue +6 -1
  36. package/src/components/badges-and-tags/PsHighlightRippleDot.vue +3 -1
  37. package/src/components/badges-and-tags/PsMiniTag.vue +21 -24
  38. package/src/components/badges-and-tags/PsProgressBar.vue +17 -9
  39. package/src/components/buttons/PsButton.vue +27 -2
  40. package/src/components/chips/PsChips.vue +24 -4
  41. package/src/components/controls/PsCheckbox.vue +32 -16
  42. package/src/components/controls/PsDraggable.vue +39 -150
  43. package/src/components/controls/PsInlineSelector.vue +144 -6
  44. package/src/components/controls/PsRadioButton.vue +28 -15
  45. package/src/components/controls/PsSlider.vue +1 -1
  46. package/src/components/controls/PsSwitch.vue +20 -11
  47. package/src/components/controls/PsToggle.vue +33 -12
  48. package/src/components/datatable/PsDataTable.vue +18 -0
  49. package/src/components/forms/PsDropdown.vue +18 -60
  50. package/src/components/forms/PsDropdownList.vue +82 -0
  51. package/src/components/forms/PsInput.vue +28 -1
  52. package/src/components/forms/PsInputSelect.vue +31 -2
  53. package/src/components/forms/PsInputTextArea.vue +53 -40
  54. package/src/components/notifications/PsDialog.vue +15 -0
  55. package/src/components/notifications/PsToast.vue +15 -0
  56. package/src/components/playground/PsScrollBar.vue +15 -0
  57. package/src/components/tabs/PsTabHeader.vue +19 -1
  58. package/src/components/tooltip/PsDialogTooltip.vue +103 -20
  59. package/src/components/tooltip/PsRichTooltip.vue +6 -3
  60. package/src/components/tooltip/PsTooltip.vue +19 -3
  61. package/src/components/ui/PsDotLoader.vue +15 -0
  62. package/src/components/ui/PsIcon.vue +30 -0
  63. package/src/index.js +39 -7
  64. package/src/stories/Accordion.stories.js +12 -48
  65. package/src/stories/Button.stories.js +30 -7
  66. package/src/stories/Chips.stories.js +14 -2
  67. package/src/stories/Colors.stories.mdx +1 -0
  68. package/src/stories/Dropdown.stories.js +36 -13
  69. package/src/stories/InlineSelector.stories.js +3 -1
  70. package/src/stories/InputSelect.stories.js +8 -0
  71. package/src/stories/MiniTag.stories.js +12 -6
  72. package/src/stories/Playground.stories.js +16 -0
  73. package/src/stories/Switch.stories.js +8 -2
  74. package/src/stories/Toast.stories.js +16 -16
  75. package/src/stories/Tooltip.stories.js +6 -6
  76. package/src/stories/Typography.stories.mdx +22 -18
  77. package/src/util/GeneralFunctions.js +8 -0
  78. package/tailwind.config.js +8 -3
  79. package/vetur/attributes.json +1376 -0
  80. package/vetur/tags.json +632 -0
  81. package/src/components/badges-and-tags/PsCostEffectBar.Copy.vue +0 -72
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@policystudio/policy-studio-ui-vue",
3
- "version": "1.0.28",
3
+ "version": "1.0.31",
4
4
  "description": "Policy Studio UI",
5
5
  "main": "src/index.js",
6
6
  "author": "Policy Studio Team",
@@ -12,11 +12,15 @@
12
12
  ],
13
13
  "scripts": {
14
14
  "lint": "vue-cli-service lint",
15
- "storybook": "start-storybook -p 6006",
16
- "build-storybook": "build-storybook",
15
+ "build-storybook": "STORYBOOK_ENV=production build-storybook",
17
16
  "build-tailwind": "postcss src/assets/scss/base.scss -o dist/css/psui_styles.css",
18
- "publish": "npm run lint && npm run build-tailwind && npm publish",
19
- "dev": "watch 'npm run build-tailwind' ./src/assets"
17
+ "build-temp-tailwind": "postcss src/assets/scss/base.scss -o temp/css/psui_styles.css",
18
+ "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\"",
20
+ "watch-storybook": "start-storybook -p 6006",
21
+ "watch-prod-tailwind": "watch 'npm run build-tailwind' ./src/assets",
22
+ "watch-tailwind": "watch 'npm run build-temp-tailwind' ./src/assets",
23
+ "build-prop-intellisense": "vue-int --input src/components --output vetur --recursive"
20
24
  },
21
25
  "dependencies": {
22
26
  "core-js": "^3.6.5",
@@ -35,6 +39,7 @@
35
39
  "@vue/eslint-config-prettier": "^6.0.0",
36
40
  "babel-eslint": "^10.1.0",
37
41
  "babel-loader": "^8.2.3",
42
+ "concurrently": "^7.0.0",
38
43
  "eslint": "^6.7.2",
39
44
  "eslint-plugin-prettier": "^3.3.1",
40
45
  "eslint-plugin-vue": "^6.2.2",
@@ -44,8 +49,13 @@
44
49
  "postcss-nested": "^5.0.6",
45
50
  "prettier": "^2.2.1",
46
51
  "tailwindcss": "^1.9.6",
52
+ "vue-intellisense": "^1.0.1",
47
53
  "vue-loader": "^15.9.8",
48
54
  "vue-template-compiler": "^2.6.11",
49
55
  "watch": "^1.0.2"
56
+ },
57
+ "vetur": {
58
+ "tags": "vetur/tags.json",
59
+ "attributes": "vetur/attributes.json"
50
60
  }
51
61
  }
@@ -13,16 +13,20 @@
13
13
  @import './components/PsDataTable.scss';
14
14
  @import './components/PsCheckbox.scss';
15
15
  @import './components/PsDialog.scss';
16
+ @import './components/PsDotLoader.scss';
16
17
  @import './components/PsRadioButton.scss';
17
18
  @import './components/PsSwitch.scss';
18
19
  @import './components/PsProgressBar.scss';
19
20
  @import './components/PsDropdown.scss';
21
+ @import './components/PsDropdownList.scss';
20
22
  @import './components/PsSlider.scss';
21
23
  @import './components/PsToast.scss';
24
+ @import './components/PsMiniTag.scss';
22
25
  @import './components/PsInlineSelector.scss';
23
26
  @import './components/PsTooltip.scss';
24
27
  @import './components/PsInputTextArea.scss';
25
28
  @import './components/PsInputSelect.scss';
29
+ @import './components/PsDraggable.scss';
26
30
  @import "tailwindcss/base";
27
31
  @import "tailwindcss/components";
28
32
  @import "tailwindcss/utilities";
@@ -9,27 +9,25 @@
9
9
  @apply psui-flex psui-cursor-pointer psui-transition-all psui-justify-between transition-default psui-text-gray-80;
10
10
  padding-top: 16px;
11
11
  padding-bottom: 16px;
12
+
12
13
  &:hover {
13
14
  @apply psui-text-blue-60;
14
15
  }
15
16
  }
16
17
 
17
- &-content {
18
- padding-bottom: 24px;
19
- }
20
-
21
18
  &-icon {
19
+ @apply psui-icon;
22
20
  font-size: 20px;
23
21
  width: 20px;
24
- }
25
-
22
+ transition: transform 0.4s ease-in-out;
23
+ }
24
+
26
25
  }
27
26
 
28
27
  &.layout-big {
29
28
  .psui-el-accordion-item {
30
29
  &-header, &-content {
31
- padding-left: 16px;
32
- padding-right: 16px;
30
+ @apply psui-pl-4 psui-pr-4;
33
31
  }
34
32
  &-title {
35
33
  @apply psui-text-h5 psui-font-bold;
@@ -46,8 +44,14 @@
46
44
  @apply psui-text-small psui-font-bold;
47
45
  }
48
46
  &-icon {
49
- @apply psui-text-gray-60
50
- }
47
+ @apply psui-text-gray-60;
48
+ }
49
+
50
+ &.status-opened {
51
+ .psui-el-accordion-item-icon {
52
+ transform: rotate(180deg);
53
+ }
54
+ }
51
55
  }
52
56
  }
53
57
 
@@ -60,8 +64,21 @@
60
64
  }
61
65
  }
62
66
 
67
+ .psui-el-accordion-item-content {
68
+ @apply psui-list-none psui-text-gray-60 psui-mb-5;
69
+ }
63
70
 
71
+ .accordion-fade-enter-active,
72
+ .accordion-fade-leave-active {
73
+ will-change: height, margin-bottom;
74
+ transition: height 0.4s ease, margin-bottom 0.4s ease-in-out;
75
+ overflow: hidden;
76
+ }
64
77
 
78
+ .accordion-fade-enter,
79
+ .accordion-fade-leave-to {
80
+ height: 0 !important;
81
+ margin-bottom: 0 !important;
82
+ }
65
83
  }
66
-
67
84
  }
@@ -2,7 +2,8 @@
2
2
 
3
3
  .psui-el-button {
4
4
 
5
- @apply psui-font-bold psui-items-center psui-flex psui-content-center psui-rounded-md transition-default;
5
+ @apply psui-font-bold psui-items-center psui-flex psui-content-center psui-rounded-md psui-transition-all psui-ease-in-out;
6
+ transition-duration: 130ms;
6
7
 
7
8
  span {
8
9
  @apply psui-font-bold psui-flex-shrink-0;
@@ -22,22 +23,27 @@
22
23
  &.size-big {
23
24
  @apply psui-flex psui-items-center psui-content-center;
24
25
  padding: 9.5px 16px;
25
- font-size: 16px;
26
26
 
27
- &.icon-left i {
28
- font-size: 24px;
29
- margin-right: 8px;
30
- }
27
+ &.icon-left {
28
+ padding: 8px 16px;
29
+ i {
30
+ font-size: 24px;
31
+ margin-right: 8px;
32
+ }
33
+ }
31
34
 
32
- &.icon-right i {
33
- font-size: 24px;
34
- margin-left: 8px;
35
- }
35
+ &.icon-right {
36
+ padding: 8px 16px;
37
+ i {
38
+ font-size: 24px;
39
+ margin-left: 8px;
40
+ }
41
+ }
36
42
  }
37
43
 
38
44
  &.size-medium {
39
45
  @apply psui-flex psui-items-center psui-content-center;
40
- padding: 7px 16px;
46
+ padding: 7px 13px;
41
47
  font-size: 14px;
42
48
 
43
49
  &.icon-left i {
@@ -56,7 +62,7 @@
56
62
  font-size: 14px;
57
63
 
58
64
  &.layout-onlytext {
59
- &:focus:not(.disabled) {
65
+ &:active:not(.disabled) {
60
66
  @apply psui-bg-blue-20 psui-text-blue-60;
61
67
  box-shadow: inset 0px 1px 2px rgba(0,0,0,0.05);
62
68
  }
@@ -82,14 +88,13 @@
82
88
  }
83
89
 
84
90
  &.layout-solid {
85
-
86
91
  @apply psui-bg-blue-60 psui-text-white;
87
92
 
88
93
  &.hover {
89
94
  @apply psui-bg-blue-50 psui-text-white;
90
95
  }
91
96
 
92
- &:focus:not(.disabled) {
97
+ &:active:not(.disabled) {
93
98
  @apply psui-bg-blue-50 psui-text-white;
94
99
  box-shadow: inset 0px 1px 2px rgba(0,0,0,0.15);
95
100
  }
@@ -104,7 +109,7 @@
104
109
  background: transparent;
105
110
 
106
111
  &.hover,
107
- &:focus {
112
+ &:active {
108
113
  @apply psui-border psui-border-blue-60
109
114
  }
110
115
 
@@ -116,9 +121,12 @@
116
121
  &.layout-ghost {
117
122
  @apply psui-bg-blue-20 psui-text-blue-60;
118
123
 
119
- &.hover,
120
- &:focus:not(.disabled) {
121
- box-shadow: inset 0px 1px 2px rgba(0,0,0,0.05);
124
+ &.hover {
125
+ @apply psui-bg-blue-10
126
+ }
127
+
128
+ &:active:not(.disabled) {
129
+ box-shadow: inset 0px 1px 2px rgba(0,0,0,0.05)
122
130
  }
123
131
 
124
132
  &.disabled {
@@ -137,5 +145,18 @@
137
145
  @apply psui-text-blue-50
138
146
  }
139
147
  }
148
+
149
+ &.layout-caution {
150
+ @apply psui-bg-red-10 psui-text-red-20;
151
+
152
+ &.hover,
153
+ &:active:not(.disabled) {
154
+ @apply psui-bg-red-10 psui-text-red-70;
155
+ }
156
+
157
+ &.disabled {
158
+ @apply psui-text-gray-40 psui-bg-gray-20 psui-cursor-default
159
+ }
160
+ }
140
161
  }
141
162
  }
@@ -8,7 +8,7 @@
8
8
  }
9
9
 
10
10
  &-content {
11
- @apply psui-w-full psui-flex psui-justify-center psui-items-center psui-text-p;
11
+ @apply psui-w-full psui-flex psui-justify-end psui-items-center psui-text-p;
12
12
  }
13
13
 
14
14
  &-icon {
@@ -1,7 +1,7 @@
1
1
  @layer components {
2
2
 
3
3
  .psui-el-checkbox {
4
- @apply psui-relative psui-text-gray-50;
4
+ @apply psui-relative psui-text-gray-50 psui-bg-gray-10;
5
5
 
6
6
  &.disabled {
7
7
  .psui-el-checkmark {
@@ -37,7 +37,7 @@
37
37
  }
38
38
  }
39
39
  .psui-el-checkmark {
40
- @apply psui-block psui-cursor-pointer;
40
+ @apply psui-flex psui-cursor-pointer psui-items-center;
41
41
  height: 18px;
42
42
 
43
43
  span {
@@ -46,7 +46,7 @@
46
46
 
47
47
  &::before {
48
48
  content:'check_box_outline_blank';
49
- @apply psui-text-gray-40 psui-align-text-bottom;
49
+ @apply psui-text-gray-40;
50
50
  font-family:'Material Icons Round';
51
51
  font-size: 18px;
52
52
  }
@@ -76,11 +76,10 @@
76
76
  }
77
77
  }
78
78
  .psui-el-checkmark {
79
- @apply psui-flex psui-cursor-pointer psui-content-center;
79
+ @apply psui-flex psui-cursor-pointer psui-items-center;
80
80
  height: 24px;
81
81
 
82
82
  span {
83
- margin-top: 1px;
84
83
  margin-left: 8px;
85
84
  }
86
85
 
@@ -116,7 +116,11 @@
116
116
  @apply psui-rounded-full psui-bg-gray-10 psui-text-gray-40 psui-text-xsmall psui-font-bold psui-pl-1 psui-py-1 psui-pr-2;
117
117
 
118
118
  &:hover {
119
- @apply psui-text-gray-50;
119
+
120
+ &,
121
+ .psui-el-chips-close {
122
+ @apply .psui-text-gray-50;
123
+ }
120
124
 
121
125
  .psui-el-chips-icon-prepend {
122
126
  @apply psui-bg-gray-40;
@@ -125,7 +129,12 @@
125
129
 
126
130
  &:focus,
127
131
  &:active {
128
- @apply psui-bg-blue-20 psui-text-blue-60;
132
+ @apply psui-bg-blue-20;
133
+
134
+ &,
135
+ .psui-el-chips-close {
136
+ @apply .psui-text-blue-60;
137
+ }
129
138
 
130
139
  .psui-el-chips-icon-prepend {
131
140
  @apply psui-bg-blue-60;
@@ -137,16 +146,12 @@
137
146
  font-size: 18px;
138
147
 
139
148
  &-prepend {
140
- @apply psui-bg-gray-30 psui-rounded-full psui-text-white psui-mr-2;
149
+ @apply psui-bg-gray-30 psui-rounded-full psui-text-white psui-mr-2 psui-w-6 psui-h-6 psui-flex psui-items-center psui-justify-center;
141
150
  }
142
151
  }
143
152
 
144
153
  .psui-el-chips-close {
145
- @apply psui-text-gray-40 psui-flex psui-items-center psui-justify-center;
146
-
147
- span {
148
- @apply psui-ml-2;
149
- }
154
+ @apply psui-text-gray-40 psui-flex psui-items-center psui-justify-center psui-ml-2;
150
155
  }
151
156
  }
152
157
  }
@@ -2,7 +2,7 @@
2
2
  .psui-el-climate-zone-badge {
3
3
  @apply psui-flex psui-bg-gray-10 psui-text-gray-50 psui-transition-all psui-duration-300 psui-ease-out psui-rounded psui-items-center;
4
4
  width: fit-content;
5
- padding: 4px 6px;
5
+ padding: 0px 6px;
6
6
 
7
7
  &:hover {
8
8
  @apply psui-text-blue-60 psui-bg-blue-20;
@@ -1,31 +1,26 @@
1
1
  @layer components {
2
- .psui-el-cost-effect-bar {
3
- @apply psui-overflow-visible;
4
-
5
- div {
6
- @apply psui-relative psui-h-2 psui-rounded-2xl;
7
- width: 100px;
8
-
9
- span {
10
- @apply psui-absolute psui-rounded-sm psui-z-10;
11
- background-color: #d6dde5;
12
- width: 2px;
13
- height: 14px;
14
- top: -3px;
15
- }
16
-
17
- .psui-el-simple-progress-bar {
18
- @apply psui-overflow-hidden;
19
-
20
-
21
- &-percentage {
22
-
23
- border-radius: unset;
24
- }
25
-
26
- }
27
-
2
+ .psui-el-cost-effect-bar {
3
+ @apply psui-overflow-visible;
4
+
5
+ div {
6
+ @apply psui-relative psui-h-2 psui-rounded-2xl;
7
+ width: 100px;
8
+
9
+ span {
10
+ @apply psui-absolute psui-rounded-sm psui-z-10;
11
+ background-color: #d6dde5;
12
+ width: 2px;
13
+ height: 14px;
14
+ top: -3px;
15
+ }
16
+
17
+ .psui-el-simple-progress-bar {
18
+ @apply psui-overflow-hidden;
19
+
20
+ &-percentage {
21
+ border-radius: unset;
28
22
  }
29
-
23
+ }
30
24
  }
25
+ }
31
26
  }
@@ -1,7 +1,9 @@
1
1
  @layer components {
2
2
 
3
3
  .psui-el-dialog {
4
- @apply psui-flex psui-justify-start psui-items-start psui-pr-3 psui-pl-2 psui-py-2 psui-rounded-md;
4
+ @apply psui-flex psui-justify-start psui-items-start psui-pr-3 psui-pl-2 psui-rounded-md;
5
+ padding-top: 8.8px;
6
+ padding-bottom: 8.8px;
5
7
 
6
8
  &-wrapper {
7
9
  @apply psui-flex psui-flex-grow
@@ -25,7 +27,8 @@
25
27
  }
26
28
 
27
29
  &.layout-vertical {
28
- @apply psui-pr-2 psui-pl-2 psui-flex psui-items-start;
30
+ @apply psui-flex psui-items-start;
31
+ padding: 9.6px 9.6px 11.2px 9.6px;
29
32
 
30
33
  .psui-el-dialog-wrapper {
31
34
  @apply psui-flex-col psui-text-small
@@ -0,0 +1,45 @@
1
+ @layer components {
2
+
3
+ .psui-el-dotloader {
4
+ @apply psui-flex psui-items-center psui-justify-center psui-h-full;
5
+ padding: 0;
6
+
7
+ .psui-el-dotloader-wrapper {
8
+ @apply psui-relative psui-p-4 psui-flex;
9
+ height: 15px;
10
+ span {
11
+ @apply psui-rounded-full psui-relative psui-float-left psui-left-0 psui-top-0 psui-mr-1;
12
+ background: #b7b7b7;
13
+ height: 15px;
14
+ width: 15px;
15
+ opacity: 0.15;
16
+ transform: scale(1);
17
+ animation: dots-animation 1s 0.2s ease-in-out infinite;
18
+
19
+ &:nth-of-type(1) {
20
+ animation-delay: 0.2s;
21
+ }
22
+
23
+ &:nth-of-type(2) {
24
+ animation-delay: 0.4s;
25
+ }
26
+
27
+ &:nth-of-type(3) {
28
+ animation-delay: 0.6s;
29
+ }
30
+ }
31
+
32
+ @keyframes dots-animation {
33
+ 0%, 70%, 100% {
34
+ opacity: 0.15;
35
+ transform: scale(1);
36
+ }
37
+
38
+ 35% {
39
+ opacity: 1;
40
+ transform: scale(1);
41
+ }
42
+ }
43
+ }
44
+ }
45
+ }
@@ -0,0 +1,64 @@
1
+ @layer components {
2
+ .psui-el-draggable {
3
+ @apply psui-w-full psui-flex psui-flex-wrap psui-justify-start psui-gap-2;
4
+
5
+ .psui-el-draggable-wrapper {
6
+ @apply psui-w-full psui-rounded-lg psui-bg-gray-20 psui-p-2 psui-flex psui-items-center psui-flex-col;
7
+ padding: 8px 8px 0px 8px;
8
+
9
+ }
10
+
11
+ .psui-el-draggable-title {
12
+ @apply psui-w-full psui-flex psui-rounded-sm psui-items-center psui-cursor-grab psui-align-middle;
13
+
14
+ &:active {
15
+ @apply psui-cursor-grabbing;
16
+ }
17
+
18
+ padding: 6px 16px;
19
+
20
+ h2 {
21
+ @apply psui-w-full psui-text-gray-80 psui-font-bold psui-uppercase;
22
+ font-size: 12px;
23
+ }
24
+
25
+ i {
26
+ @apply psui-icon psui-text-gray-40;
27
+ font-size: 18px;
28
+ }
29
+ }
30
+
31
+
32
+ .psui-el-draggable-list-items-wrapper {
33
+ @apply psui-w-full psui-flex psui-flex-wrap;
34
+
35
+ li {
36
+ @apply psui-w-full psui-mb-2 psui-shadow-elevation-5 psui-bg-white psui-rounded psui-flex psui-items-center;
37
+ padding: 7px 16px;
38
+
39
+ &:hover {
40
+ @apply psui-text-gray-50 psui-cursor-grab
41
+ }
42
+
43
+ &:active {
44
+ @apply psui-cursor-grabbing
45
+ }
46
+ }
47
+
48
+ .psui-el-draggable-item-wrapper {
49
+ @apply psui-select-none psui-w-full psui-flex psui-items-center
50
+ }
51
+
52
+ .psui-el-draggable-item-icon {
53
+ @apply psui-flex psui-justify-end psui-ml-auto;
54
+
55
+ i {
56
+ @apply psui-icon psui-text-gray-30;
57
+ font-size: 18px;
58
+
59
+
60
+ }
61
+ }
62
+ }
63
+ }
64
+ }
@@ -1,19 +1,8 @@
1
1
  @layer components {
2
2
  .psui-el-dropdown-menu {
3
- @apply psui-relative psui-inline-block psui-text-left psui-bg-white;
4
- padding: 0px 20px;
5
- width: 230px;
3
+ @apply psui-relative psui-inline-block psui-text-left;
6
4
 
7
- &:hover {
8
- @apply psui-cursor-pointer psui-bg-blue-10 psui-text-blue-60;
9
-
10
- }
11
-
12
- &:first-child {
13
-
14
- }
15
-
16
- &-button {
5
+ button {
17
6
  @apply psui-inline-flex psui-justify-center psui-items-center psui-w-full psui-font-medium psui-leading-none;
18
7
  background-color: transparent;
19
8
  padding-top: 2.5px;
@@ -27,18 +16,12 @@
27
16
  }
28
17
  }
29
18
 
30
- &-dialog {
31
- @apply psui-hidden psui-origin-top-right psui-fixed psui-mt-2 psui-w-auto psui-rounded psui-shadow-lg psui-z-50 psui-opacity-0;
32
- transition: opacity 150ms ease-in-out;
19
+ &-dialog-wrapper {
20
+ @apply psui-hidden psui-origin-top-right psui-py-4 psui-bg-white psui-fixed psui-w-auto psui-rounded-md psui-z-50 psui-opacity-0 psui-shadow-elevation-20 psui-transition-all psui-duration-100 psui-ease-in;
33
21
 
34
- &-category-divider {
22
+ &-dialog {
35
23
  @apply w-full;
36
-
37
- h2 {
38
- @apply psui-text-gray-20 psui-font-bold psui-whitespace-no-wrap psui-mb-4;
39
- }
40
24
  }
41
-
42
25
  }
43
26
  }
44
27
  }
@@ -0,0 +1,19 @@
1
+ @layer components {
2
+ .psui-el-dropdown-menu-list {
3
+ @apply psui-w-full psui-font-bold;
4
+
5
+ li {
6
+ @apply psui-w-full psui-text-gray-60 psui-text-small psui-list-none psui-flex psui-flex-col psui-cursor-pointer;
7
+ padding: 7px 20px;
8
+ font-weight: 700;
9
+
10
+ &:hover {
11
+ @apply psui-text-blue-60
12
+ }
13
+
14
+ span {
15
+ @apply psui-w-full;
16
+ }
17
+ }
18
+ }
19
+ }
@@ -9,7 +9,7 @@
9
9
 
10
10
  &::before, &::after {
11
11
  @apply psui-rounded-full psui-absolute psui-origin-center;
12
- background-color: #def8e8;
12
+ background-color: rgba(93, 184, 131, 0.3);
13
13
  border: solid 0px;
14
14
  content: '';
15
15
  width: 36px;