@policystudio/policy-studio-ui-vue 1.2.0-access.6 → 1.2.0-access.61

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/composables/useCollapseAnimation.d.ts +8 -0
  2. package/dist/composables/useCollapseAnimation.js +65 -0
  3. package/dist/composables/useCollapseAnimation.js.map +1 -0
  4. package/dist/css/psui_styles_output.css +2954 -2258
  5. package/doc/src/stories/Colors.mdx +3 -3
  6. package/doc/src/stories/Dropdown.stories.ts +4 -4
  7. package/doc/src/stories/Input.stories.ts +9 -9
  8. package/package.json +1 -1
  9. package/src/assets/scss/base.scss +3 -1
  10. package/src/assets/scss/components/PsAccordion.scss +20 -29
  11. package/src/assets/scss/components/PsBadgeWithIcon.scss +2 -2
  12. package/src/assets/scss/components/PsButton.scss +117 -72
  13. package/src/assets/scss/components/PsCardInfos.scss +13 -3
  14. package/src/assets/scss/components/PsChartLegend.scss +2 -2
  15. package/src/assets/scss/components/PsCheckbox.scss +63 -48
  16. package/src/assets/scss/components/PsChips.scss +81 -31
  17. package/src/assets/scss/components/PsClimateZoneBadge.scss +1 -1
  18. package/src/assets/scss/components/PsCollapse.scss +52 -56
  19. package/src/assets/scss/components/PsDateCardInfo.scss +7 -4
  20. package/src/assets/scss/components/PsDialog.scss +114 -39
  21. package/src/assets/scss/components/PsDraggable.scss +28 -36
  22. package/src/assets/scss/components/PsDropdown.scss +7 -15
  23. package/src/assets/scss/components/PsIcon.scss +21 -0
  24. package/src/assets/scss/components/PsInlineSelector.scss +1 -1
  25. package/src/assets/scss/components/PsInput.scss +27 -64
  26. package/src/assets/scss/components/PsInputSelect.scss +6 -6
  27. package/src/assets/scss/components/PsInputTextArea.scss +1 -1
  28. package/src/assets/scss/components/PsMiniTag.scss +25 -30
  29. package/src/assets/scss/components/PsRadioButton.scss +90 -75
  30. package/src/assets/scss/components/PsSimpleAlert.scss +16 -13
  31. package/src/assets/scss/components/PsSlider.scss +2 -2
  32. package/src/assets/scss/components/PsSwitch.scss +39 -21
  33. package/src/assets/scss/components/PsTabHeader.scss +124 -133
  34. package/src/assets/scss/components/PsTableResults.scss +16 -723
  35. package/src/assets/scss/components/PsTagScope.scss +1 -1
  36. package/src/assets/scss/components/PsTestimonialCard.scss +2 -2
  37. package/src/assets/scss/components/PsToast.scss +62 -60
  38. package/src/assets/scss/components/PsToggle.scss +3 -6
  39. package/src/assets/scss/components/PsTooltip.scss +1 -1
  40. package/src/assets/scss/components/_PsTableResults.scss +1 -1
  41. package/src/assets/scss/components/table-layouts/LayoutComparison.scss +200 -0
  42. package/src/assets/scss/components/table-layouts/LayoutFlexible.scss +325 -0
  43. package/src/assets/scss/components/table-layouts/LayoutResults.scss +102 -0
  44. package/src/components/accordion/PsAccordionItem.vue +4 -62
  45. package/src/components/badges-and-tags/PsCardInfos.vue +6 -2
  46. package/src/components/badges-and-tags/PsChartLegend.vue +1 -1
  47. package/src/components/badges-and-tags/PsDateCardInfo.vue +16 -5
  48. package/src/components/badges-and-tags/PsMiniTag.vue +5 -5
  49. package/src/components/badges-and-tags/PsTestimonialCard.vue +8 -6
  50. package/src/components/buttons/PsButton.vue +62 -9
  51. package/src/components/chips/PsChips.vue +2 -2
  52. package/src/components/collapse/PsCollapse.vue +18 -16
  53. package/src/components/controls/PsCheckboxSimple.vue +7 -2
  54. package/src/components/controls/PsDraggable.vue +4 -4
  55. package/src/components/controls/PsRadioButton.vue +3 -1
  56. package/src/components/controls/PsRadioButtonSimple.vue +2 -0
  57. package/src/components/datatable/PsDataTableItem.vue +1 -1
  58. package/src/components/forms/PsDropdown.vue +77 -27
  59. package/src/components/forms/PsDropdownList.vue +5 -1
  60. package/src/components/forms/PsInput.vue +1 -1
  61. package/src/components/notifications/PsDialog.vue +60 -11
  62. package/src/components/notifications/PsSimpleAlert.vue +6 -7
  63. package/src/components/notifications/PsToast.vue +5 -5
  64. package/src/components/table-results/PsTableResults.vue +27 -21
  65. package/src/components/table-results/PsTableResultsHead.vue +5 -5
  66. package/src/components/table-results/PsTableResultsHeadComparison.vue +2 -2
  67. package/src/components/table-results/PsTableResultsHeadFlexible.vue +7 -7
  68. package/src/components/tabs/PsTabHeader.vue +6 -2
  69. package/src/components/tooltip/PsTooltip.vue +11 -1
  70. package/src/components/ui/PsIcon.vue +14 -6
  71. package/src/composables/useCollapseAnimation.ts +76 -0
  72. package/tailwind.config.js +50 -79
@@ -28,9 +28,9 @@ Out colors are designed to be harmonious, ensure accessible text, and distinguis
28
28
  <div class="psui-cursor-pointer psui-p-2 psui-h-24 psui-w-32 psui-text-white psui-bg-gray-60 click-to-copy" data-to-copy="psui-bg-gray-60">Gray 60 <div>#515E6A</div></div>
29
29
  <div class="psui-cursor-pointer psui-p-2 psui-h-24 psui-w-32 psui-text-white psui-bg-gray-50 click-to-copy" data-to-copy="psui-bg-gray-50">Gray 50 <div>#798490</div></div>
30
30
  <div class="psui-cursor-pointer psui-p-2 psui-h-24 psui-w-32 psui-text-white psui-bg-gray-40 click-to-copy" data-to-copy="psui-bg-gray-40">Gray 40 <div>#A2ACB7</div></div>
31
- <div class="psui-cursor-pointer psui-p-2 psui-h-24 psui-w-32 psui-text-gray-50 psui-bg-gray-30 click-to-copy" data-to-copy="psui-bg-gray-30">Gray 30 <div>#D6DDE5</div></div>
32
- <div class="psui-cursor-pointer psui-p-2 psui-h-24 psui-w-32 psui-text-gray-50 psui-bg-gray-20 click-to-copy" data-to-copy="psui-bg-gray-20">Gray 20 <div>#E6ECF2</div></div>
33
- <div class="psui-cursor-pointer psui-p-2 psui-h-24 psui-w-32 psui-text-gray-50 psui-bg-gray-10 click-to-copy" data-to-copy="psui-bg-gray-10">Gray 10 <div>#F3F6F9</div></div>
31
+ <div class="psui-cursor-pointer psui-p-2 psui-h-24 psui-w-32 psui-text-gray-60 psui-bg-gray-30 click-to-copy" data-to-copy="psui-bg-gray-30">Gray 30 <div>#D6DDE5</div></div>
32
+ <div class="psui-cursor-pointer psui-p-2 psui-h-24 psui-w-32 psui-text-gray-60 psui-bg-gray-20 click-to-copy" data-to-copy="psui-bg-gray-20">Gray 20 <div>#E6ECF2</div></div>
33
+ <div class="psui-cursor-pointer psui-p-2 psui-h-24 psui-w-32 psui-text-gray-60 psui-bg-gray-10 click-to-copy" data-to-copy="psui-bg-gray-10">Gray 10 <div>#F3F6F9</div></div>
34
34
  </div>
35
35
 
36
36
  ## Yellow
@@ -12,7 +12,7 @@ const Template = (args, { argTypes }) => ({
12
12
  <div style='background: #E6ECF2; width:1200px; height: 700px; padding: 20px;' class='psui-flex psui-gap-64 psui-bg-gray-20 '>
13
13
  <PsDropdown>
14
14
  <template #dropdownTrigger>
15
- <i class='psui-icon psui-text-gray-50 psui-cursor-pointer psui-h-2'>more_horiz</i>
15
+ <i class='psui-icon psui-text-gray-60 psui-cursor-pointer psui-h-2'>more_horiz</i>
16
16
  </template>
17
17
  <template #items>
18
18
  <div class='psui-pb-5'>
@@ -35,7 +35,7 @@ const Template = (args, { argTypes }) => ({
35
35
 
36
36
  <PsDropdown>
37
37
  <template #dropdownTrigger>
38
- <i class='psui-icon psui-text-gray-50 psui-cursor-pointer psui-h-2'>more_horiz</i>
38
+ <i class='psui-icon psui-text-gray-60 psui-cursor-pointer psui-h-2'>more_horiz</i>
39
39
  </template>
40
40
  <template #items>
41
41
  <div class='psui-pb-5'>
@@ -58,7 +58,7 @@ const Template = (args, { argTypes }) => ({
58
58
 
59
59
  <PsDropdown>
60
60
  <template #dropdownTrigger>
61
- <i class='psui-icon psui-text-gray-50 psui-cursor-pointer psui-h-auto'>more_horiz</i>
61
+ <i class='psui-icon psui-text-gray-60 psui-cursor-pointer psui-h-auto'>more_horiz</i>
62
62
  </template>
63
63
  <template #items>
64
64
  <PsDropdownList v-bind='$props'></PsDropdownList>
@@ -67,7 +67,7 @@ const Template = (args, { argTypes }) => ({
67
67
 
68
68
  <PsDropdown>
69
69
  <template #dropdownTrigger>
70
- <i class='psui-icon psui-text-gray-50 psui-cursor-pointer psui-h-auto'>more_horiz</i>
70
+ <i class='psui-icon psui-text-gray-60 psui-cursor-pointer psui-h-auto'>more_horiz</i>
71
71
  </template>
72
72
  <template #items>
73
73
  <div class='psui-my-3'>
@@ -100,7 +100,7 @@ const TemplateInputPassword = (args, { argTypes }) => ({
100
100
 
101
101
  <PsInput v-bind="{...$props, label: 'Resting with hint', placeholder: '', value: '', hint: 'Between 8 and 16 characters' }" >
102
102
  <template v-slot:append>
103
- <span class="material-icons-round psui-text-gray-50 psui-mr-2">
103
+ <span class="material-icons-round psui-text-gray-60 psui-mr-2">
104
104
  visibility_off
105
105
  </span>
106
106
  </template>
@@ -108,7 +108,7 @@ const TemplateInputPassword = (args, { argTypes }) => ({
108
108
 
109
109
  <PsInput label="Resting without hint" hint="Between 8 and 16 characters">
110
110
  <template v-slot:append>
111
- <span class="material-icons-round psui-text-gray-50 psui-mr-2">
111
+ <span class="material-icons-round psui-text-gray-60 psui-mr-2">
112
112
  visibility_off
113
113
  </span>
114
114
  </template>
@@ -116,7 +116,7 @@ const TemplateInputPassword = (args, { argTypes }) => ({
116
116
 
117
117
  <PsInput label="Resting with Placeholder" placeholder="This is a placeholder" hint="Between 8 and 16 characters">
118
118
  <template v-slot:append>
119
- <span class="material-icons-round psui-text-gray-50 psui-mr-2">
119
+ <span class="material-icons-round psui-text-gray-60 psui-mr-2">
120
120
  visibility_off
121
121
  </span>
122
122
  </template>
@@ -124,7 +124,7 @@ const TemplateInputPassword = (args, { argTypes }) => ({
124
124
 
125
125
  <PsInput v-bind="{...$props, label: 'Focus'}" hint="Between 8 and 16 characters">
126
126
  <template v-slot:append>
127
- <span class="material-icons-round psui-text-gray-50 psui-mr-2">
127
+ <span class="material-icons-round psui-text-gray-60 psui-mr-2">
128
128
  visibility_off
129
129
  </span>
130
130
  </template>
@@ -132,7 +132,7 @@ const TemplateInputPassword = (args, { argTypes }) => ({
132
132
 
133
133
  <PsInput v-bind="{...$props, label: 'Typing', placeholder: 'Type to see the effect...', value: '' }" hint="Between 8 and 16 characters" >
134
134
  <template v-slot:append>
135
- <span class="material-icons-round psui-text-gray-50 psui-mr-2">
135
+ <span class="material-icons-round psui-text-gray-60 psui-mr-2">
136
136
  visibility_off
137
137
  </span>
138
138
  </template>
@@ -140,7 +140,7 @@ const TemplateInputPassword = (args, { argTypes }) => ({
140
140
 
141
141
  <PsInput v-bind="{label: 'Active', active: true }" value="Password123" hint="Between 8 and 16 characters">
142
142
  <template v-slot:append>
143
- <span class="material-icons-round psui-text-gray-50 psui-mr-2">
143
+ <span class="material-icons-round psui-text-gray-60 psui-mr-2">
144
144
  visibility
145
145
  </span>
146
146
  </template>
@@ -159,7 +159,7 @@ const TemplateInputPassword = (args, { argTypes }) => ({
159
159
 
160
160
  <PsInput label="Disabled" :disabled="true" value="100,000" hint="Between 8 and 16 characters">
161
161
  <template v-slot:append>
162
- <span class="material-icons-round psui-text-gray-50 psui-mr-2">
162
+ <span class="material-icons-round psui-text-gray-60 psui-mr-2">
163
163
  visibility
164
164
  </span>
165
165
  </template>
@@ -167,7 +167,7 @@ const TemplateInputPassword = (args, { argTypes }) => ({
167
167
 
168
168
  <PsInput v-bind="{...$props, label: 'Disabled without value', disabled: true, value: '', hint: false }">
169
169
  <template v-slot:append>
170
- <span class="material-icons-round psui-text-gray-50 psui-mr-2">
170
+ <span class="material-icons-round psui-text-gray-60 psui-mr-2">
171
171
  visibility_off
172
172
  </span>
173
173
  </template>
@@ -175,7 +175,7 @@ const TemplateInputPassword = (args, { argTypes }) => ({
175
175
 
176
176
  <PsInput v-bind="{...$props, label: 'Active/Disabled', disabled: true, active: true }" hint="Between 8 and 16 characters">
177
177
  <template v-slot:append>
178
- <span class="material-icons-round psui-text-gray-50 psui-mr-2">
178
+ <span class="material-icons-round psui-text-gray-60 psui-mr-2">
179
179
  visibility_off
180
180
  </span>
181
181
  </template>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@policystudio/policy-studio-ui-vue",
3
- "version": "1.2.0-access.6",
3
+ "version": "1.2.0-access.61",
4
4
  "description": "Policy Studio UI",
5
5
  "author": "Policy Studio Team",
6
6
  "scripts": {
@@ -1,3 +1,4 @@
1
+ @import './components/PsTableResults.scss';
1
2
  @import url('https://fonts.googleapis.com/icon?family=Material+Icons|Material+Icons+Round');
2
3
  @import './components/PsChips.scss';
3
4
  @import './components/PsToggle.scss';
@@ -11,7 +12,6 @@
11
12
  @import './components/PsCostEffectBar.scss';
12
13
  @import './components/PsHighlightRippleDot.scss';
13
14
  @import './components/PsDataTable.scss';
14
- @import './components/PsTableResults.scss';
15
15
  @import './components/PsCheckbox.scss';
16
16
  @import './components/PsDialog.scss';
17
17
  @import './components/PsDotLoader.scss';
@@ -36,6 +36,7 @@
36
36
  @import './components/PsSimpleAlert.scss';
37
37
  @import './components/PsBreadcrumb.scss';
38
38
  @import './components/PsCollapse.scss';
39
+ @import './components/PsIcon.scss';
39
40
 
40
41
 
41
42
  @import "tailwindcss/base";
@@ -45,6 +46,7 @@
45
46
  *:focus {
46
47
  outline: none;
47
48
  }
49
+
48
50
  html {
49
51
  -webkit-font-smoothing: antialiased;
50
52
  -moz-osx-font-smoothing: grayscale;
@@ -18,28 +18,18 @@
18
18
  &.disabled {
19
19
  .psui-el-accordion-item-header {
20
20
  .psui-el-accordion-item-header-wrapper {
21
- @apply psui-text-gray-50 psui-pointer-events-none;
21
+ @apply psui-text-gray-60 psui-pointer-events-none;
22
22
 
23
23
  }
24
24
  }
25
25
  }
26
26
 
27
27
  &-header {
28
- @apply psui-flex psui-justify-between psui-items-center;
29
- padding-top: 16px;
30
- padding-bottom: 16px;
28
+ @apply psui-flex psui-justify-between psui-items-center psui-py-[10px];
29
+
31
30
 
32
31
  &-wrapper {
33
32
  @apply psui-flex psui-items-start psui-justify-between psui-w-full psui-cursor-pointer psui-transition-all transition-default psui-text-gray-80;
34
-
35
- &:hover {
36
- .psui-el-accordion-item-icon {
37
- @apply psui-text-blue-60 !important;
38
- }
39
- .psui-el-accordion-item-title{
40
- @apply psui-text-blue-60;
41
- }
42
- }
43
33
  }
44
34
  }
45
35
 
@@ -48,12 +38,26 @@
48
38
  }
49
39
 
50
40
  &-icon {
51
- @apply psui-icon;
41
+ @apply psui-icon psui-text-gray-60;
52
42
  font-size: 20px;
53
43
  width: 20px;
54
44
  transition: transform 0.4s ease-in-out;
55
45
  }
56
46
 
47
+ &:hover {
48
+ .psui-el-accordion-item-header-wrapper {
49
+ @apply psui-text-blue-60;
50
+ }
51
+ }
52
+
53
+ &:not(:hover) {
54
+ .psui-el-accordion-item-header-wrapper {
55
+ .psui-el-accordion-item-title {
56
+ @apply psui-text-gray-80;
57
+ }
58
+ }
59
+ }
60
+
57
61
  }
58
62
 
59
63
  &.layout-big {
@@ -62,7 +66,7 @@
62
66
  @apply psui-pl-4 psui-pr-4;
63
67
  }
64
68
  &-title {
65
- @apply psui-text-18 psui-font-bold;
69
+ @apply psui-text-18 psui-font-semibold;
66
70
  }
67
71
  &-icon {
68
72
  @apply psui-text-gray-30
@@ -73,7 +77,7 @@
73
77
  &.layout-medium {
74
78
  .psui-el-accordion-item {
75
79
  &-title {
76
- @apply psui-text-14 psui-font-bold;
80
+ @apply psui-text-14 psui-font-semibold;
77
81
  }
78
82
  &-icon {
79
83
  @apply psui-text-gray-60;
@@ -86,19 +90,6 @@
86
90
  }
87
91
  }
88
92
  }
89
-
90
- .psui-el-accordion-item {
91
- &.status-opened .psui-el-accordion-item-header {
92
- .psui-el-accordion-item-header-wrapper {
93
- .psui-el-accordion-item-icon {
94
- @apply psui-text-blue-60;
95
- }
96
- .psui-el-accordion-item-title{
97
- @apply psui-text-blue-60;
98
- }
99
- }
100
- }
101
- }
102
93
 
103
94
  .psui-el-accordion-item-content {
104
95
  @apply psui-list-none psui-text-gray-60 psui-mb-5;
@@ -4,13 +4,13 @@
4
4
  @apply psui-flex psui-items-center psui-py-1 psui-px-2 psui-rounded;
5
5
 
6
6
  &.layout-grey{
7
- @apply psui-bg-gray-10 psui-text-gray-50;
7
+ @apply psui-bg-gray-10 psui-text-gray-60;
8
8
  }
9
9
  &.layout-blue{
10
10
  @apply psui-bg-blue-20 psui-text-blue-60;
11
11
  }
12
12
  &.layout-green{
13
- @apply psui-bg-green-10 psui-text-green-70;
13
+ @apply psui-bg-green-10 psui-text-green-80;
14
14
  }
15
15
  &.layout-yellow{
16
16
  @apply psui-bg-yellow-10 psui-text-yellow-70;
@@ -1,160 +1,205 @@
1
1
  @layer components {
2
-
3
2
  .psui-el-button {
4
-
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;
3
+ @apply psui-flex psui-items-center psui-content-center psui-font-bold psui-transition-all psui-ease-in-out psui-duration-[130ms] psui-no-underline psui-cursor-pointer;
7
4
 
8
5
  span {
9
- @apply psui-font-bold psui-flex-shrink-0;
10
- line-height: 130%;
11
- font-family: inherit;
12
- text-align: right;
6
+ @apply psui-flex psui-items-center psui-font-semibold psui-flex-shrink-0 psui-leading-[130%] psui-font-[inherit] psui-text-right psui-pt-[1px] psui-align-middle;
13
7
  }
14
8
 
15
9
  &:focus {
16
- outline: none;
10
+ @apply psui-outline-none;
17
11
  }
18
12
 
19
13
  &:focus-visible {
20
- outline: 2px solid #2563EB;
21
- outline-offset: 2px;
22
- border-radius: 6px;
23
- }
24
-
14
+ @apply psui-outline-2 psui-outline psui-outline-focus-ring psui-outline-offset-2 psui-rounded-[6px];
15
+ }
16
+
17
+ &[href] {
18
+ @apply psui-inline-flex;
19
+ }
20
+
25
21
  &.size-big {
26
- @apply psui-flex psui-items-center psui-content-center;
27
- padding: 9.5px 16px;
28
-
22
+ @apply psui-flex psui-items-center psui-justify-center psui-content-center psui-rounded-md psui-py-[9.5px] psui-px-4 psui-text-[16px];
23
+
29
24
  &.icon-left,
30
25
  &.icon-right,
31
26
  &.icon-both {
32
- padding: 8px 16px;
27
+ @apply psui-py-2 psui-px-4;
33
28
  }
34
29
 
35
30
  .icon-left-side {
36
- font-size: 24px;
37
- margin-right: 8px;
31
+ @apply psui-text-[24px] psui-mr-2;
38
32
  }
39
33
 
40
34
  .icon-right-side {
41
- font-size: 24px;
42
- margin-left: 8px;
35
+ @apply psui-text-[24px] psui-ml-2;
43
36
  }
44
37
  }
45
38
 
46
39
  &.size-medium {
47
- @apply psui-flex psui-items-center psui-content-center;
48
- padding: 7px 13px;
49
- font-size: 14px;
40
+ @apply psui-flex psui-items-center psui-justify-center psui-content-center psui-rounded-md psui-py-1.5 psui-px-3 psui-text-[14px];
50
41
 
51
42
  .icon-left-side {
52
- font-size: 18px;
53
- margin-right: 4px;
43
+ @apply psui-text-[18px] psui-mr-1;
54
44
  }
55
45
 
56
46
  .icon-right-side {
57
- font-size: 18px;
58
- margin-left: 4px;
47
+ @apply psui-text-[18px] psui-ml-1;
59
48
  }
60
49
  }
61
50
 
62
51
  &.size-small {
63
- @apply psui-flex psui-items-center psui-justify-center psui-rounded psui-py-1 psui-px-2;
64
- font-size: 14px;
52
+ @apply psui-flex psui-items-center psui-justify-center psui-py-1 psui-px-2 psui-rounded psui-text-[14px];
65
53
 
66
- &.layout-onlytext {
54
+ &.layout-onlytext,
55
+ &.layout-textonly {
67
56
  &:active:not(.disabled) {
68
- @apply psui-bg-blue-20 psui-text-blue-60;
69
- box-shadow: inset 0px 1px 2px rgba(0,0,0,0.05);
70
- }
57
+ @apply psui-bg-blue-20 psui-text-blue-60 psui-shadow-[inset_0px_1px_2px_rgba(0,0,0,0.05)];
58
+ }
59
+ }
60
+
61
+ &.hover.layout-onlytext,
62
+ &.hover.layout-textonly {
63
+ @apply psui-bg-blue-20 psui-text-blue-60 !important;
71
64
  }
72
65
 
73
- &.hover.layout-onlytext {
74
- @apply psui-text-blue-60 psui-bg-blue-20 !important;
66
+ .icon-left-side {
67
+ @apply psui-text-[18px] psui-mr-1;
75
68
  }
76
69
 
70
+ .icon-right-side {
71
+ @apply psui-text-[18px] psui-ml-1;
72
+ }
73
+ }
74
+
75
+ &.size-compact {
76
+ @apply psui-flex psui-items-center psui-justify-center psui-rounded psui-py-0.5 psui-px-1.5 psui-text-[14px];
77
+
77
78
  .icon-left-side {
78
- font-size: 18px;
79
- margin-right: 4px;
79
+ @apply psui-text-[16px] psui-mr-0.5;
80
80
  }
81
81
 
82
82
  .icon-right-side {
83
- font-size: 18px;
84
- margin-left: 4px;
83
+ @apply psui-text-[16px] psui-ml-0.5;
85
84
  }
86
85
  }
87
86
 
88
- &.layout-solid {
89
- @apply psui-bg-blue-60 psui-text-white;
87
+ /* Layout Solid (alias: Primary) */
88
+ &.layout-solid,
89
+ &.layout-primary {
90
+ @apply psui-bg-blue-60 psui-text-white;
90
91
 
91
92
  &.hover {
92
- @apply psui-bg-blue-50 psui-text-white;
93
+ @apply psui-bg-blue-65 psui-text-white;
93
94
  }
94
95
 
95
96
  &:active:not(.disabled) {
96
- @apply psui-bg-blue-50 psui-text-white;
97
- box-shadow: inset 0px 1px 2px rgba(0,0,0,0.15);
97
+ @apply psui-bg-blue-65 psui-text-white psui-shadow-[inset_0px_1px_2px_rgba(0,0,0,0.15)];
98
98
  }
99
99
 
100
100
  &.disabled {
101
- @apply psui-text-gray-40 psui-bg-gray-20 psui-cursor-default
102
- }
101
+ @apply psui-bg-gray-20 psui-text-gray-60 psui-cursor-default;
102
+
103
+ .icon-left-side,
104
+ .icon-right-side {
105
+ @apply psui-text-gray-60;
106
+ }
107
+ }
103
108
  }
104
109
 
105
- &.layout-outline {
106
- @apply psui-text-blue-60 psui-border psui-border-blue-50;
107
- background: transparent;
110
+ /* Layout Outline (alias: Secondary) */
111
+ &.layout-outline,
112
+ &.layout-secondary {
113
+ @apply psui-bg-transparent psui-text-gray-80 psui-border psui-border-blue-30;
114
+
115
+ .icon-left-side,
116
+ .icon-right-side {
117
+ @apply psui-text-blue-60;
118
+ }
108
119
 
109
120
  &.hover,
110
121
  &:active {
111
- @apply psui-border psui-border-blue-60
122
+ @apply psui-bg-blue-20 psui-text-blue-80 psui-border psui-border-blue-30;
123
+
124
+ .icon-left-side,
125
+ .icon-right-side {
126
+ @apply psui-text-blue-60;
127
+ }
112
128
  }
113
129
 
114
130
  &.disabled {
115
- @apply psui-text-gray-40 psui-border-gray-30 psui-cursor-default;
116
- }
131
+ @apply psui-bg-gray-20 psui-text-gray-60 psui-border psui-border-gray-30 psui-cursor-default;
132
+
133
+ .icon-left-side,
134
+ .icon-right-side {
135
+ @apply psui-text-gray-60;
136
+ }
137
+ }
117
138
  }
118
139
 
119
- &.layout-ghost {
140
+ /* &.layout-ghost {
120
141
  @apply psui-bg-blue-20 psui-text-blue-60;
121
142
 
122
143
  &.hover {
123
- @apply psui-bg-blue-10
124
- }
144
+ @apply psui-bg-blue-10;
145
+ }
125
146
 
126
147
  &:active:not(.disabled) {
127
- box-shadow: inset 0px 1px 2px rgba(0,0,0,0.05)
148
+ @apply psui-shadow-[inset_0px_1px_2px_rgba(0,0,0,0.05)];
128
149
  }
129
150
 
130
151
  &.disabled {
131
- @apply psui-text-gray-40 psui-bg-gray-20 psui-cursor-default
152
+ @apply psui-bg-gray-20 psui-text-gray-40 psui-cursor-default;
132
153
  }
133
- }
154
+ } */
134
155
 
135
- &.layout-onlytext {
136
- @apply psui-text-blue-60;
156
+ /* Layout OnlyText (alias: TextOnly) */
157
+ &.layout-onlytext,
158
+ &.layout-textonly {
159
+ @apply psui-text-gray-80;
137
160
 
138
- &.disabled {
139
- @apply psui-text-gray-40 psui-cursor-default
161
+ .icon-left-side,
162
+ .icon-right-side {
163
+ @apply psui-text-blue-60;
140
164
  }
141
-
165
+
142
166
  &.hover {
143
- @apply psui-text-blue-50
167
+ @apply psui-bg-blue-20 psui-text-blue-80;
168
+
169
+ .icon-left-side,
170
+ .icon-right-side {
171
+ @apply psui-text-blue-65;
172
+ }
173
+ }
174
+
175
+ &.disabled {
176
+ @apply psui-text-gray-60 psui-cursor-default;
177
+
178
+ .icon-left-side,
179
+ .icon-right-side {
180
+ @apply psui-text-gray-40;
181
+ }
144
182
  }
145
183
  }
146
184
 
147
- &.layout-caution {
148
- @apply psui-bg-red-10 psui-text-red-20;
185
+ /* Layout Caution (alias: Destructive) */
186
+ &.layout-caution,
187
+ &.layout-destructive {
188
+ @apply psui-bg-red-80 psui-text-white;
149
189
 
150
- &.hover,
190
+ &.hover,
151
191
  &:active:not(.disabled) {
152
- @apply psui-bg-red-10 psui-text-red-70;
192
+ @apply psui-bg-red-10 psui-text-red-80;
153
193
  }
154
194
 
155
195
  &.disabled {
156
- @apply psui-text-gray-40 psui-bg-gray-20 psui-cursor-default
196
+ @apply psui-bg-gray-20 psui-text-gray-60 psui-cursor-default;
197
+
198
+ .icon-left-side,
199
+ .icon-right-side {
200
+ @apply psui-text-gray-40;
201
+ }
157
202
  }
158
203
  }
159
204
  }
160
- }
205
+ }
@@ -3,16 +3,26 @@
3
3
  .psui-el-card-infos {
4
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
5
 
6
+ &:focus {
7
+ outline: none !important;
8
+ }
9
+
10
+ &:focus-visible {
11
+ outline: 2px solid #2563eb !important;
12
+ outline-offset: 2px !important;
13
+ border-radius: 6px !important;
14
+ }
15
+
6
16
  &-title {
7
- @apply psui-flex psui-text-xsmall psui-text-gray-40 psui-mb-1;
17
+ @apply psui-flex psui-text-xsmall psui-text-gray-80 psui-mb-1;
8
18
  }
9
19
 
10
20
  &-content {
11
- @apply psui-w-full psui-flex psui-justify-end psui-items-center psui-text-16;
21
+ @apply psui-w-full psui-flex psui-justify-end psui-items-center psui-text-16 psui-text-gray-80;
12
22
  }
13
23
 
14
24
  &-icon {
15
- @apply psui-text-blue-50 psui-mr-1;
25
+ @apply psui-text-blue-60 psui-mr-1;
16
26
  font-size: 17px;
17
27
  }
18
28
 
@@ -10,7 +10,7 @@
10
10
  }
11
11
 
12
12
  &-text {
13
- @apply psui-text-xsmall psui-text-gray-50 psui-font-bold;
13
+ @apply psui-text-xsmall psui-text-gray-60 psui-font-bold;
14
14
  }
15
15
 
16
16
  &-total {
@@ -18,7 +18,7 @@
18
18
  }
19
19
 
20
20
  &-percentage {
21
- @apply psui-text-gray-50 psui-text-16 psui-mt-1;
21
+ @apply psui-text-gray-60 psui-text-16 psui-mt-1;
22
22
  }
23
23
  }
24
24