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

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 (72) hide show
  1. package/dist/css/psui_styles.css +4822 -383
  2. package/package.json +1 -1
  3. package/src/assets/scss/base.scss +39 -2
  4. package/src/assets/scss/components/PsAccordion.scss +6 -2
  5. package/src/assets/scss/components/PsButton.scss +114 -118
  6. package/src/assets/scss/components/PsCardInfos.scss +26 -0
  7. package/src/assets/scss/components/PsChartLegend.scss +25 -0
  8. package/src/assets/scss/components/PsCheckbox.scss +96 -0
  9. package/src/assets/scss/components/PsChips.scss +155 -0
  10. package/src/assets/scss/components/PsClimateZoneBadge.scss +26 -0
  11. package/src/assets/scss/components/PsCostEffectBar.scss +31 -0
  12. package/src/assets/scss/components/PsDataTable.scss +50 -0
  13. package/src/assets/scss/components/PsDialog.scss +80 -0
  14. package/src/assets/scss/components/PsDropdown.scss +44 -0
  15. package/src/assets/scss/components/PsHighlightRippleDot.scss +48 -0
  16. package/src/assets/scss/components/PsInlineSelector.scss +5 -0
  17. package/src/assets/scss/components/PsInputSelect.scss +62 -0
  18. package/src/assets/scss/components/PsInputTextArea.scss +49 -0
  19. package/src/assets/scss/components/PsProgressBar.scss +24 -0
  20. package/src/assets/scss/components/PsRadioButton.scss +78 -0
  21. package/src/assets/scss/components/PsSlider.scss +11 -0
  22. package/src/assets/scss/components/PsSwitch.scss +66 -0
  23. package/src/assets/scss/components/PsTabHeader.scss +105 -0
  24. package/src/assets/scss/components/PsToast.scss +52 -0
  25. package/src/assets/scss/components/PsToggle.scss +23 -0
  26. package/src/assets/scss/components/PsTooltip.scss +118 -0
  27. package/src/components/accordion/PsAccordion.vue +0 -1
  28. package/src/components/accordion/PsAccordionItem.vue +9 -2
  29. package/src/components/badges-and-tags/PsCardInfos.vue +14 -7
  30. package/src/components/badges-and-tags/PsChartLegend.vue +12 -18
  31. package/src/components/badges-and-tags/PsClimateZoneBadge.vue +15 -6
  32. package/src/components/badges-and-tags/PsCostEffectBar.Copy.vue +72 -0
  33. package/src/components/badges-and-tags/PsCostEffectBar.vue +33 -70
  34. package/src/components/badges-and-tags/PsHighlightRippleDot.vue +3 -69
  35. package/src/components/badges-and-tags/PsProgressBar.vue +42 -0
  36. package/src/components/buttons/PsButton.vue +74 -77
  37. package/src/components/chips/PsChips.vue +46 -87
  38. package/src/components/controls/PsCheckbox.vue +58 -134
  39. package/src/components/controls/PsInlineSelector.vue +15 -0
  40. package/src/components/controls/PsRadioButton.vue +33 -88
  41. package/src/components/controls/PsSlider.vue +4 -5
  42. package/src/components/controls/PsSwitch.vue +29 -81
  43. package/src/components/controls/PsToggle.vue +45 -39
  44. package/src/components/datatable/PsDataTable.vue +3 -15
  45. package/src/components/forms/PsDropdown.vue +27 -11
  46. package/src/components/forms/PsInputSelect.vue +80 -0
  47. package/src/components/forms/PsInputTextArea.vue +80 -0
  48. package/src/components/notifications/PsDialog.vue +32 -23
  49. package/src/components/notifications/PsToast.vue +13 -28
  50. package/src/components/tabs/PsTabHeader.vue +53 -41
  51. package/src/components/tooltip/PsDialogTooltip.vue +6 -31
  52. package/src/components/tooltip/PsRichTooltip.vue +37 -44
  53. package/src/components/tooltip/PsTooltip.vue +18 -28
  54. package/src/components/ui/PsIcon.vue +9 -9
  55. package/src/index.js +12 -3
  56. package/src/stories/Button.stories.js +102 -102
  57. package/src/stories/Checkbox.stories.js +34 -37
  58. package/src/stories/Chips.stories.js +43 -54
  59. package/src/stories/ClimateZoneBadge.stories.js +0 -7
  60. package/src/stories/Dialog.stories.js +15 -51
  61. package/src/stories/InlineSelector.stories.js +16 -0
  62. package/src/stories/InputSelect.stories.js +22 -0
  63. package/src/stories/InputTextArea.stories.js +25 -0
  64. package/src/stories/RadioButton.stories.js +32 -29
  65. package/src/stories/Switch.stories.js +33 -0
  66. package/src/stories/TabHeader.stories.js +6 -6
  67. package/src/stories/Toast.stories.js +40 -46
  68. package/src/stories/Tooltip.stories.js +86 -86
  69. package/tailwind.config.js +7 -1
  70. package/src/assets/images/check-checkbox-button.svg +0 -1
  71. package/src/assets/images/radio-checked-button.svg +0 -1
  72. package/src/stories/Swith.stories.js +0 -38
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@policystudio/policy-studio-ui-vue",
3
- "version": "1.0.24",
3
+ "version": "1.0.28",
4
4
  "description": "Policy Studio UI",
5
5
  "main": "src/index.js",
6
6
  "author": "Policy Studio Team",
@@ -1,13 +1,34 @@
1
1
  @import url('https://fonts.googleapis.com/icon?family=Material+Icons|Material+Icons+Round');
2
+ @import './components/PsChips.scss';
3
+ @import './components/PsToggle.scss';
4
+ @import './components/PsTabHeader.scss';
2
5
  @import './components/PsAccordion.scss';
3
6
  @import './components/PsInput.scss';
4
7
  @import './components/PsButton.scss';
8
+ @import './components/PsCardInfos.scss';
9
+ @import './components/PsChartLegend.scss';
10
+ @import './components/PsClimateZoneBadge.scss';
11
+ @import './components/PsCostEffectBar.scss';
12
+ @import './components/PsHighlightRippleDot.scss';
13
+ @import './components/PsDataTable.scss';
14
+ @import './components/PsCheckbox.scss';
15
+ @import './components/PsDialog.scss';
16
+ @import './components/PsRadioButton.scss';
17
+ @import './components/PsSwitch.scss';
18
+ @import './components/PsProgressBar.scss';
19
+ @import './components/PsDropdown.scss';
20
+ @import './components/PsSlider.scss';
21
+ @import './components/PsToast.scss';
22
+ @import './components/PsInlineSelector.scss';
23
+ @import './components/PsTooltip.scss';
24
+ @import './components/PsInputTextArea.scss';
25
+ @import './components/PsInputSelect.scss';
5
26
  @import "tailwindcss/base";
6
27
  @import "tailwindcss/components";
7
28
  @import "tailwindcss/utilities";
8
29
 
9
30
  *:focus {
10
- outline: none;
31
+ outline: none;
11
32
  }
12
33
  html {
13
34
  -webkit-font-smoothing: antialiased;
@@ -16,4 +37,20 @@ html {
16
37
 
17
38
  .transition-default {
18
39
  transition: cubic-bezier(.17,.67,.83,.67) 250ms;
19
- }
40
+ }
41
+
42
+ .psui-icon {
43
+ font-family: 'Material Icons Round';
44
+ font-weight: normal;
45
+ font-style: normal;
46
+ font-size: 24px;
47
+ line-height: 1;
48
+ letter-spacing: normal;
49
+ text-transform: none;
50
+ display: inline-block;
51
+ white-space: nowrap;
52
+ word-wrap: normal;
53
+ direction: ltr;
54
+ -webkit-font-feature-settings: 'liga';
55
+ -webkit-font-smoothing: antialiased;
56
+ }
@@ -6,7 +6,7 @@
6
6
  border-bottom: 1px solid #e6ecf2;
7
7
 
8
8
  &-header {
9
- @apply psui-flex psui-cursor-pointer psui-transition-all psui-justify-between transition-default;
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
  &:hover {
@@ -45,11 +45,15 @@
45
45
  &-title {
46
46
  @apply psui-text-small psui-font-bold;
47
47
  }
48
+ &-icon {
49
+ @apply psui-text-gray-60
50
+ }
48
51
  }
49
52
  }
50
53
 
51
54
  .psui-el-accordion-item {
52
- &.status-opened, &-header:hover {
55
+ &.status-opened .psui-el-accordion-item-header, &-header:hover {
56
+ @apply psui-text-blue-60;
53
57
  .psui-el-accordion-item-icon {
54
58
  @apply psui-text-blue-60;
55
59
  }
@@ -1,145 +1,141 @@
1
1
  @layer components {
2
2
 
3
- .psui-el-button {
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 transition-default;
6
6
 
7
- span {
8
- @apply psui-font-bold;
9
- line-height: 130%;
10
- font-family: inherit;
11
- text-align: right;
12
- }
13
-
14
- &:focus {
15
- outline: none;
16
- }
7
+ span {
8
+ @apply psui-font-bold psui-flex-shrink-0;
9
+ line-height: 130%;
10
+ font-family: inherit;
11
+ text-align: right;
12
+ }
17
13
 
18
- &.right {
19
- @apply psui-flex-row-reverse;
20
- }
21
-
22
- &.big {
23
- @apply psui-flex psui-items-center psui-content-center;
24
- padding: 9.5px 16px;
25
- font-size: 16px;
26
-
27
- &.left i {
28
- font-size: 24px;
29
- margin-right: 8px;
30
- }
31
-
32
- &.right i {
33
- font-size: 24px;
34
- margin-left: 8px;
35
- }
14
+ &:focus {
15
+ outline: none;
16
+ }
36
17
 
37
- }
18
+ &.icon-right {
19
+ @apply psui-flex-row-reverse;
20
+ }
21
+
22
+ &.size-big {
23
+ @apply psui-flex psui-items-center psui-content-center;
24
+ padding: 9.5px 16px;
25
+ font-size: 16px;
26
+
27
+ &.icon-left i {
28
+ font-size: 24px;
29
+ margin-right: 8px;
30
+ }
31
+
32
+ &.icon-right i {
33
+ font-size: 24px;
34
+ margin-left: 8px;
35
+ }
36
+ }
38
37
 
39
- &.medium {
38
+ &.size-medium {
39
+ @apply psui-flex psui-items-center psui-content-center;
40
+ padding: 7px 16px;
41
+ font-size: 14px;
40
42
 
41
- @apply psui-flex psui-items-center psui-content-center;
42
- padding: 7px 16px;
43
- font-size: 14px;
43
+ &.icon-left i {
44
+ font-size: 18px;
45
+ margin-right: 4px;
46
+ }
44
47
 
45
- &.left i {
46
- font-size: 18px;
47
- margin-right: 4px;
48
- }
48
+ &.icon-right i {
49
+ font-size: 18px;
50
+ margin-left: 4px;
51
+ }
52
+ }
49
53
 
50
- &.right i {
51
- font-size: 18px;
52
- margin-left: 4px;
53
- }
54
+ &.size-small {
55
+ @apply psui-flex psui-items-center psui-justify-center psui-rounded psui-py-1 psui-px-2;
56
+ font-size: 14px;
57
+
58
+ &.layout-onlytext {
59
+ &:focus:not(.disabled) {
60
+ @apply psui-bg-blue-20 psui-text-blue-60;
61
+ box-shadow: inset 0px 1px 2px rgba(0,0,0,0.05);
62
+ }
63
+ }
64
+
65
+ &.hover.layout-onlytext {
66
+ @apply psui-text-blue-60 psui-bg-blue-20 !important;
67
+ }
68
+
69
+ &.icon-left {
70
+ i {
71
+ font-size: 18px;
72
+ margin-right: 4px;
54
73
  }
74
+ }
55
75
 
56
- &.small {
57
-
58
- @apply psui-flex psui-items-center psui-content-center;
59
- padding: 4px 8px;
60
- font-size: 14px;
61
-
62
- &.active {
63
- @apply psui-bg-blue-20 psui-text-blue-60;
64
- box-shadow: inset 0px 1px 2px rgba(0,0,0,0.05);
65
- }
66
-
67
- &.hover.layout-onlytext {
68
- @apply psui-text-blue-60 psui-bg-blue-20 !important;
69
- }
70
-
71
- &.left {
72
- i {
73
- font-size: 18px;
74
- margin-right: 4px;
75
- }
76
- }
77
-
78
- &.right {
79
- i {
80
- font-size: 18px;
81
- margin-left: 4px;
82
- }
83
- }
84
-
76
+ &.icon-right {
77
+ i {
78
+ font-size: 18px;
79
+ margin-left: 4px;
85
80
  }
81
+ }
82
+ }
86
83
 
87
- &.layout-solid {
88
-
89
- @apply psui-bg-blue-60 psui-text-white;
90
-
91
- &.hover {
92
- @apply psui-bg-blue-50 psui-text-white;
93
- }
84
+ &.layout-solid {
85
+
86
+ @apply psui-bg-blue-60 psui-text-white;
94
87
 
95
- &.active {
96
- @apply psui-bg-blue-50 psui-text-white;
97
- box-shadow: inset 0px 1px 2px rgba(0,0,0,0.15);
98
- }
88
+ &.hover {
89
+ @apply psui-bg-blue-50 psui-text-white;
90
+ }
99
91
 
100
- &.disabled {
101
- @apply psui-text-gray-40 psui-bg-gray-20 psui-cursor-default
102
- }
103
- }
92
+ &:focus:not(.disabled) {
93
+ @apply psui-bg-blue-50 psui-text-white;
94
+ box-shadow: inset 0px 1px 2px rgba(0,0,0,0.15);
95
+ }
104
96
 
105
- &.layout-outline {
97
+ &.disabled {
98
+ @apply psui-text-gray-40 psui-bg-gray-20 psui-cursor-default
99
+ }
100
+ }
106
101
 
107
- @apply psui-text-blue-60 psui-border psui-border-blue-50;
108
- background: transparent;
102
+ &.layout-outline {
103
+ @apply psui-text-blue-60 psui-border psui-border-blue-50;
104
+ background: transparent;
109
105
 
110
- &.hover,
111
- &.active {
112
- @apply psui-border psui-border-blue-60
113
- }
106
+ &.hover,
107
+ &:focus {
108
+ @apply psui-border psui-border-blue-60
109
+ }
114
110
 
115
- &.disabled {
116
- @apply psui-text-gray-40 psui-border-gray-30 psui-cursor-default;
117
- }
118
- }
111
+ &.disabled {
112
+ @apply psui-text-gray-40 psui-border-gray-30 psui-cursor-default;
113
+ }
114
+ }
119
115
 
120
- &.layout-ghost {
116
+ &.layout-ghost {
117
+ @apply psui-bg-blue-20 psui-text-blue-60;
121
118
 
122
- @apply psui-bg-blue-20 psui-text-blue-60;
123
- &.hover,
124
- &.active {
125
- @apply psui-bg-blue-10
126
- }
127
- &.disabled {
128
- @apply psui-text-gray-40 psui-bg-gray-20 psui-cursor-default
129
- }
130
- }
119
+ &.hover,
120
+ &:focus:not(.disabled) {
121
+ box-shadow: inset 0px 1px 2px rgba(0,0,0,0.05);
122
+ }
131
123
 
132
- &.layout-onlytext {
124
+ &.disabled {
125
+ @apply psui-text-gray-40 psui-bg-gray-20 psui-cursor-default
126
+ }
127
+ }
133
128
 
134
- @apply psui-bg-white psui-text-blue-60;
129
+ &.layout-onlytext {
130
+ @apply psui-bg-white psui-text-blue-60;
135
131
 
136
- &.disabled {
137
- @apply psui-text-gray-40 psui-cursor-default
138
- }
139
-
140
- &.hover {
141
- @apply psui-text-blue-50
142
- }
143
- }
132
+ &.disabled {
133
+ @apply psui-text-gray-40 psui-cursor-default
134
+ }
135
+
136
+ &.hover {
137
+ @apply psui-text-blue-50
138
+ }
144
139
  }
140
+ }
145
141
  }
@@ -0,0 +1,26 @@
1
+ @layer components{
2
+
3
+ .psui-el-card-infos {
4
+ @apply psui-border psui-border-gray-20 psui-rounded-md psui-flex psui-flex-col psui-items-center psui-justify-center psui-px-3 psui-py-2 psui-cursor-pointer;
5
+
6
+ &-title {
7
+ @apply psui-text-xsmall psui-font-bold psui-text-gray-40 psui-mb-1;
8
+ }
9
+
10
+ &-content {
11
+ @apply psui-w-full psui-flex psui-justify-center psui-items-center psui-text-p;
12
+ }
13
+
14
+ &-icon {
15
+ @apply psui-text-blue-50 psui-mr-1;
16
+ font-size: 17px;
17
+ }
18
+
19
+ &:hover {
20
+ .psui-el-card-infos-icon {
21
+ @apply psui-text-blue-60;
22
+ }
23
+ }
24
+ }
25
+
26
+ }
@@ -0,0 +1,25 @@
1
+ @layer components{
2
+
3
+ .psui-el-chart-legend {
4
+ @apply psui-flex psui-p-2 psui-rounded;
5
+
6
+ &-dot {
7
+ @apply psui-bg-teal psui-rounded-full;
8
+ width: 14px; height: 14px;
9
+ margin-right: 6px;
10
+ }
11
+
12
+ &-text {
13
+ @apply psui-text-xsmall psui-text-gray-50 psui-font-bold;
14
+ }
15
+
16
+ &-total {
17
+ @apply psui-text-p psui-text-gray-80 psui-mt-1;
18
+ }
19
+
20
+ &-percentage {
21
+ @apply psui-text-gray-50;
22
+ }
23
+ }
24
+
25
+ }
@@ -0,0 +1,96 @@
1
+ @layer components {
2
+
3
+ .psui-el-checkbox {
4
+ @apply psui-relative psui-text-gray-50;
5
+
6
+ &.disabled {
7
+ .psui-el-checkmark {
8
+ @apply psui-cursor-default psui-text-gray-40 !important
9
+ }
10
+
11
+ .psui-el-checkmark::before {
12
+ @apply psui-text-gray-30 !important
13
+ }
14
+ }
15
+
16
+ &.size-small {
17
+ @apply psui-text-small;
18
+
19
+ &.layout-default {
20
+ input:checked ~.psui-el-checkmark::before {
21
+ content: 'check_box';
22
+ font-family: 'Material Icons Round';
23
+ }
24
+ }
25
+ &.layout-mixed {
26
+ input:checked ~.psui-el-checkmark::before {
27
+ content: 'indeterminate_check_box';
28
+ font-family: 'Material Icons Round';
29
+ }
30
+ }
31
+ input {
32
+ @apply psui-absolute psui-opacity-0 psui-h-0 psui-w-0;
33
+
34
+ &:checked ~ .psui-el-checkmark::before {
35
+ @apply psui-text-blue-50;
36
+ font-size: 18px;
37
+ }
38
+ }
39
+ .psui-el-checkmark {
40
+ @apply psui-block psui-cursor-pointer;
41
+ height: 18px;
42
+
43
+ span {
44
+ margin-left: 8px;
45
+ }
46
+
47
+ &::before {
48
+ content:'check_box_outline_blank';
49
+ @apply psui-text-gray-40 psui-align-text-bottom;
50
+ font-family:'Material Icons Round';
51
+ font-size: 18px;
52
+ }
53
+ }
54
+ }
55
+ &.size-big {
56
+ @apply psui-text-big;
57
+
58
+ &.layout-mixed {
59
+ input:checked ~.psui-el-checkmark::before {
60
+ content: 'indeterminate_check_box';
61
+ font-family: 'Material Icons Round';
62
+ }
63
+ }
64
+ &.layout-default {
65
+ input:checked ~.psui-el-checkmark::before {
66
+ content: 'check_box';
67
+ font-family: 'Material Icons Round';
68
+ }
69
+ }
70
+ input {
71
+ @apply psui-absolute psui-opacity-0 psui-h-0 psui-w-0;
72
+
73
+ &:checked ~ .psui-el-checkmark:before {
74
+ @apply psui-text-blue-50;
75
+ font-size: 24px;
76
+ }
77
+ }
78
+ .psui-el-checkmark {
79
+ @apply psui-flex psui-cursor-pointer psui-content-center;
80
+ height: 24px;
81
+
82
+ span {
83
+ margin-top: 1px;
84
+ margin-left: 8px;
85
+ }
86
+
87
+ &:before {
88
+ content:'check_box_outline_blank';
89
+ @apply psui-text-gray-40 psui-align-text-bottom;
90
+ font-family:'Material Icons Round';
91
+ font-size: 24px;
92
+ }
93
+ }
94
+ }
95
+ }
96
+ }
@@ -0,0 +1,155 @@
1
+ @layer components{
2
+
3
+ .psui-el-chips {
4
+ @apply psui-inline-flex psui-relative;
5
+
6
+ &-icon {
7
+ @apply psui-icon;
8
+ }
9
+
10
+ &.type-checkbox,
11
+ &.type-radio {
12
+ font-size: 14px;
13
+ @apply psui-leading-none;
14
+
15
+ input {
16
+ @apply psui-absolute psui-pointer-events-none psui-invisible;
17
+ clip: rect(0,0,0,0);
18
+
19
+ &:checked {
20
+ + label {
21
+ @apply psui-text-blue-60 psui-bg-blue-20;
22
+
23
+ &:before {
24
+ @apply psui-text-blue-50;
25
+ }
26
+ }
27
+ }
28
+ }
29
+
30
+ label {
31
+ @apply psui-flex psui-items-center psui-justify-center psui-text-gray-50 psui-bg-white psui-transition-all psui-cursor-pointer psui-rounded;
32
+ padding: 4px 8px 4px 6px;
33
+
34
+ &:before {
35
+ @apply psui-inline-block psui-text-gray-30 psui-cursor-pointer psui-transition-all;
36
+ content: '';
37
+ font-family: 'Material Icons Round';
38
+ font-size: 18px;
39
+ margin-right: 6px;
40
+ }
41
+
42
+ &:hover {
43
+ @apply psui-text-blue-60;
44
+ &:before {
45
+ @apply psui-text-blue-50;
46
+ }
47
+ }
48
+ }
49
+ }
50
+
51
+ &.type-checkbox {
52
+ input:checked {
53
+ + label {
54
+
55
+ &:before {
56
+ content: "check_box";
57
+ }
58
+ }
59
+ }
60
+
61
+ label {
62
+ &:before {
63
+ content: "check_box_outline_blank";
64
+ }
65
+ }
66
+ }
67
+
68
+ &.type-radio {
69
+ input:checked {
70
+ + label {
71
+ &:before {
72
+ content: "radio_button_checked";
73
+ }
74
+ }
75
+ }
76
+
77
+ label {
78
+ &:before {
79
+ content: "radio_button_unchecked";
80
+ }
81
+ }
82
+ }
83
+
84
+ &.type-button {
85
+ label {
86
+ @apply psui-flex psui-items-center psui-justify-center psui-text-gray-60 psui-bg-gray-10 psui-transition-all psui-cursor-pointer psui-rounded psui-py-1 psui-px-3 psui-text-small;
87
+
88
+ &:hover {
89
+ @apply psui-text-blue-60 psui-bg-white;
90
+ }
91
+
92
+ &:focus,
93
+ &:active {
94
+ @apply psui-text-blue-60 psui-bg-blue-20;
95
+ }
96
+ }
97
+
98
+ &.layout-with-icon {
99
+ label {
100
+ @apply psui-flex psui-items-center psui-justify-center psui-text-gray-50 psui-rounded-full;
101
+ padding: 6px 12px;
102
+
103
+ &:hover {
104
+ @apply psui-text-blue-60 psui-bg-blue-10;
105
+ }
106
+ }
107
+
108
+ .psui-el-chips-icon {
109
+ @apply psui-icon psui-mr-2;
110
+ font-size: 20px;
111
+ }
112
+ }
113
+
114
+ &.layout-rich {
115
+ label {
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
+
118
+ &:hover {
119
+ @apply psui-text-gray-50;
120
+
121
+ .psui-el-chips-icon-prepend {
122
+ @apply psui-bg-gray-40;
123
+ }
124
+ }
125
+
126
+ &:focus,
127
+ &:active {
128
+ @apply psui-bg-blue-20 psui-text-blue-60;
129
+
130
+ .psui-el-chips-icon-prepend {
131
+ @apply psui-bg-blue-60;
132
+ }
133
+ }
134
+ }
135
+
136
+ .psui-el-chips-icon {
137
+ font-size: 18px;
138
+
139
+ &-prepend {
140
+ @apply psui-bg-gray-30 psui-rounded-full psui-text-white psui-mr-2;
141
+ }
142
+ }
143
+
144
+ .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
+ }
150
+ }
151
+ }
152
+ }
153
+ }
154
+
155
+ }
@@ -0,0 +1,26 @@
1
+ @layer components {
2
+ .psui-el-climate-zone-badge {
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
+ width: fit-content;
5
+ padding: 4px 6px;
6
+
7
+ &:hover {
8
+ @apply psui-text-blue-60 psui-bg-blue-20;
9
+ }
10
+
11
+ i {
12
+ font-family: 'Material Icons Round';
13
+ font-style: normal;
14
+ margin-right: 4px;
15
+ font-size: 16px;
16
+ }
17
+
18
+ span {
19
+ @apply psui-font-bold psui-inline-block psui-self-end;
20
+ font-size: 12px;
21
+ line-height: 120%;
22
+ margin-bottom: 3.5px;
23
+ }
24
+
25
+ }
26
+ }