@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.
- package/dist/composables/useCollapseAnimation.d.ts +8 -0
- package/dist/composables/useCollapseAnimation.js +65 -0
- package/dist/composables/useCollapseAnimation.js.map +1 -0
- package/dist/css/psui_styles_output.css +2954 -2258
- package/doc/src/stories/Colors.mdx +3 -3
- package/doc/src/stories/Dropdown.stories.ts +4 -4
- package/doc/src/stories/Input.stories.ts +9 -9
- package/package.json +1 -1
- package/src/assets/scss/base.scss +3 -1
- package/src/assets/scss/components/PsAccordion.scss +20 -29
- package/src/assets/scss/components/PsBadgeWithIcon.scss +2 -2
- package/src/assets/scss/components/PsButton.scss +117 -72
- package/src/assets/scss/components/PsCardInfos.scss +13 -3
- package/src/assets/scss/components/PsChartLegend.scss +2 -2
- package/src/assets/scss/components/PsCheckbox.scss +63 -48
- package/src/assets/scss/components/PsChips.scss +81 -31
- package/src/assets/scss/components/PsClimateZoneBadge.scss +1 -1
- package/src/assets/scss/components/PsCollapse.scss +52 -56
- package/src/assets/scss/components/PsDateCardInfo.scss +7 -4
- package/src/assets/scss/components/PsDialog.scss +114 -39
- package/src/assets/scss/components/PsDraggable.scss +28 -36
- package/src/assets/scss/components/PsDropdown.scss +7 -15
- package/src/assets/scss/components/PsIcon.scss +21 -0
- package/src/assets/scss/components/PsInlineSelector.scss +1 -1
- package/src/assets/scss/components/PsInput.scss +27 -64
- package/src/assets/scss/components/PsInputSelect.scss +6 -6
- package/src/assets/scss/components/PsInputTextArea.scss +1 -1
- package/src/assets/scss/components/PsMiniTag.scss +25 -30
- package/src/assets/scss/components/PsRadioButton.scss +90 -75
- package/src/assets/scss/components/PsSimpleAlert.scss +16 -13
- package/src/assets/scss/components/PsSlider.scss +2 -2
- package/src/assets/scss/components/PsSwitch.scss +39 -21
- package/src/assets/scss/components/PsTabHeader.scss +124 -133
- package/src/assets/scss/components/PsTableResults.scss +16 -723
- package/src/assets/scss/components/PsTagScope.scss +1 -1
- package/src/assets/scss/components/PsTestimonialCard.scss +2 -2
- package/src/assets/scss/components/PsToast.scss +62 -60
- package/src/assets/scss/components/PsToggle.scss +3 -6
- package/src/assets/scss/components/PsTooltip.scss +1 -1
- package/src/assets/scss/components/_PsTableResults.scss +1 -1
- package/src/assets/scss/components/table-layouts/LayoutComparison.scss +200 -0
- package/src/assets/scss/components/table-layouts/LayoutFlexible.scss +325 -0
- package/src/assets/scss/components/table-layouts/LayoutResults.scss +102 -0
- package/src/components/accordion/PsAccordionItem.vue +4 -62
- package/src/components/badges-and-tags/PsCardInfos.vue +6 -2
- package/src/components/badges-and-tags/PsChartLegend.vue +1 -1
- package/src/components/badges-and-tags/PsDateCardInfo.vue +16 -5
- package/src/components/badges-and-tags/PsMiniTag.vue +5 -5
- package/src/components/badges-and-tags/PsTestimonialCard.vue +8 -6
- package/src/components/buttons/PsButton.vue +62 -9
- package/src/components/chips/PsChips.vue +2 -2
- package/src/components/collapse/PsCollapse.vue +18 -16
- package/src/components/controls/PsCheckboxSimple.vue +7 -2
- package/src/components/controls/PsDraggable.vue +4 -4
- package/src/components/controls/PsRadioButton.vue +3 -1
- package/src/components/controls/PsRadioButtonSimple.vue +2 -0
- package/src/components/datatable/PsDataTableItem.vue +1 -1
- package/src/components/forms/PsDropdown.vue +77 -27
- package/src/components/forms/PsDropdownList.vue +5 -1
- package/src/components/forms/PsInput.vue +1 -1
- package/src/components/notifications/PsDialog.vue +60 -11
- package/src/components/notifications/PsSimpleAlert.vue +6 -7
- package/src/components/notifications/PsToast.vue +5 -5
- package/src/components/table-results/PsTableResults.vue +27 -21
- package/src/components/table-results/PsTableResultsHead.vue +5 -5
- package/src/components/table-results/PsTableResultsHeadComparison.vue +2 -2
- package/src/components/table-results/PsTableResultsHeadFlexible.vue +7 -7
- package/src/components/tabs/PsTabHeader.vue +6 -2
- package/src/components/tooltip/PsTooltip.vue +11 -1
- package/src/components/ui/PsIcon.vue +14 -6
- package/src/composables/useCollapseAnimation.ts +76 -0
- package/tailwind.config.js +50 -79
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
@layer components {
|
|
2
2
|
.psui-el-tag-scope {
|
|
3
|
-
@apply psui-flex psui-items-center psui-rounded psui-py-1 psui-pr-2 psui-h-6 psui-bg-gray-10 psui-text-gray-
|
|
3
|
+
@apply psui-flex psui-items-center psui-rounded psui-py-1 psui-pr-2 psui-h-6 psui-bg-gray-10 psui-text-gray-60;
|
|
4
4
|
width: 150px;
|
|
5
5
|
|
|
6
6
|
&-icon {
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
&-description {
|
|
13
|
-
@apply psui-text-16 psui-text-blue-80 psui-italic;
|
|
13
|
+
@apply psui-text-16 psui-text-blue-80 psui-italic psui-leading-6;
|
|
14
14
|
margin-bottom: 33px;
|
|
15
15
|
}
|
|
16
16
|
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
|
|
24
24
|
&-position,
|
|
25
25
|
&-jurisdiction {
|
|
26
|
-
@apply psui-text-gray-
|
|
26
|
+
@apply psui-text-gray-60 psui-text-14 psui-leading-[130%];
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
}
|
|
@@ -1,62 +1,64 @@
|
|
|
1
1
|
@layer components {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
2
|
+
.psui-el-toast {
|
|
3
|
+
@apply psui-flex psui-items-center psui-text-white psui-py-3 psui-px-4 psui-rounded-md psui-shadow-elevation-20;
|
|
4
|
+
|
|
5
|
+
&:focus {
|
|
6
|
+
outline: none;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
&:focus-visible {
|
|
10
|
+
outline: 2px solid #2563eb;
|
|
11
|
+
outline-offset: 2px;
|
|
12
|
+
border-radius: 6px;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.psui-el-toast-icon {
|
|
16
|
+
@apply psui-flex psui-mr-4;
|
|
17
|
+
font-size: 24px;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.psui-el-toast-message {
|
|
21
|
+
@apply psui-mr-auto psui-text-16 psui-font-semibold;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.psui-el-toast-actions {
|
|
25
|
+
@apply psui-flex psui-gap-4 psui-text-16 psui-font-bold;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&.fill-intense.layout {
|
|
29
|
+
&-info {
|
|
30
|
+
@apply psui-bg-blue-60;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&-success {
|
|
34
|
+
@apply psui-bg-green-80;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&-warning {
|
|
38
|
+
@apply psui-bg-yellow-80;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
&-error {
|
|
42
|
+
@apply psui-bg-red-80;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
&.fill-soft.layout {
|
|
47
|
+
&-info {
|
|
48
|
+
@apply psui-text-blue-60 psui-bg-blue-20;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
&-success {
|
|
52
|
+
@apply psui-text-green-80 psui-bg-green-10;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
&-warning {
|
|
56
|
+
@apply psui-text-gray-80 psui-bg-yellow-10;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
&-error {
|
|
60
|
+
@apply psui-text-red-80 psui-bg-red-10;
|
|
61
|
+
}
|
|
61
62
|
}
|
|
62
|
-
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
@layer components{
|
|
2
|
-
|
|
1
|
+
@layer components {
|
|
3
2
|
.psui-el-toggle {
|
|
4
3
|
@apply psui-flex psui-bg-gray-10 psui-items-center;
|
|
5
4
|
padding: 2px;
|
|
@@ -9,7 +8,7 @@
|
|
|
9
8
|
button {
|
|
10
9
|
@apply transition-default psui-inline-flex psui-text-14 psui-bg-gray-10 psui-text-blue-60 psui-outline-none psui-align-middle;
|
|
11
10
|
border-radius: 4px;
|
|
12
|
-
padding:1px 8px;
|
|
11
|
+
padding: 1px 8px;
|
|
13
12
|
|
|
14
13
|
&.status-active {
|
|
15
14
|
@apply psui-bg-blue-60 psui-text-white psui-font-bold psui-shadow-elevation-10;
|
|
@@ -21,7 +20,5 @@
|
|
|
21
20
|
}
|
|
22
21
|
}
|
|
23
22
|
}
|
|
24
|
-
|
|
25
23
|
}
|
|
26
|
-
|
|
27
|
-
}
|
|
24
|
+
}
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
.description {
|
|
22
|
-
@apply .psui-flex .psui-flex-col
|
|
22
|
+
@apply .psui-flex .psui-flex-col psui-text-gray-60 .psui-pl-10 .psui-text-right;
|
|
23
23
|
padding-top: 0.813rem;
|
|
24
24
|
padding-bottom: 0.813rem;
|
|
25
25
|
min-height: 3.5rem;
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
@mixin renderComparison {
|
|
2
|
+
&.is-sticky {
|
|
3
|
+
tr:first-of-type th:first-child,
|
|
4
|
+
td:first-child {
|
|
5
|
+
box-shadow: 3px 0px 10px 0px rgba(0, 0, 0, 0.15);
|
|
6
|
+
border-right-color: transparent;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
tr {
|
|
11
|
+
th,
|
|
12
|
+
td {
|
|
13
|
+
@apply psui-relative;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
thead {
|
|
18
|
+
@apply psui-bg-gray-20 psui-items-start;
|
|
19
|
+
|
|
20
|
+
div {
|
|
21
|
+
@apply psui-relative;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
tr {
|
|
25
|
+
.title {
|
|
26
|
+
@apply psui-text-14 psui-font-bold psui-leading-4 psui-text-gray-80;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
th {
|
|
30
|
+
@apply psui-px-6 psui-py-4 psui-text-gray-60 psui-text-center psui-align-top;
|
|
31
|
+
padding-top: 0.688rem;
|
|
32
|
+
padding-bottom: 0.188rem;
|
|
33
|
+
min-width: 200px;
|
|
34
|
+
|
|
35
|
+
.description {
|
|
36
|
+
@apply psui-text-xsmall psui-font-normal;
|
|
37
|
+
line-height: 110%;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
&:not(:first-of-type) {
|
|
42
|
+
th {
|
|
43
|
+
&:after {
|
|
44
|
+
@apply psui-absolute psui-top-0 psui-inline-block psui-w-px;
|
|
45
|
+
content: "";
|
|
46
|
+
right: -1px;
|
|
47
|
+
height: calc(100% + 0.5rem);
|
|
48
|
+
background-color: #c3cad1;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
&:last-child:after {
|
|
52
|
+
display: none;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
&:first-of-type {
|
|
58
|
+
th {
|
|
59
|
+
@apply psui-text-left psui-text-gray-60 psui-text-16 psui-px-6;
|
|
60
|
+
padding-top: 7px;
|
|
61
|
+
padding-bottom: 7px;
|
|
62
|
+
|
|
63
|
+
&:after {
|
|
64
|
+
@apply psui-absolute psui-top-0 psui-right-0 psui-inline-block;
|
|
65
|
+
content: "";
|
|
66
|
+
width: 1px;
|
|
67
|
+
height: calc(100% + 0.5rem);
|
|
68
|
+
background-color: #c3cad1;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
&:first-child {
|
|
72
|
+
@apply psui-align-middle psui-sticky psui-z-10 psui-left-0 psui-bg-gray-20;
|
|
73
|
+
padding-left: 22px;
|
|
74
|
+
min-width: 240px;
|
|
75
|
+
|
|
76
|
+
.title {
|
|
77
|
+
@apply psui-text-h6 psui-text-gray-80 psui-font-bold;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
&:after {
|
|
81
|
+
width: 2px;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
&:last-child:after {
|
|
86
|
+
display: none;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
p {
|
|
91
|
+
@apply psui-text-14;
|
|
92
|
+
line-height: 18px;
|
|
93
|
+
|
|
94
|
+
&.title {
|
|
95
|
+
@apply psui-text-gray-60 psui-font-normal;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
tbody {
|
|
103
|
+
tr {
|
|
104
|
+
border-bottom: 8px solid transparent;
|
|
105
|
+
|
|
106
|
+
td {
|
|
107
|
+
@apply psui-relative;
|
|
108
|
+
border-right: 1px solid #c8d0d9;
|
|
109
|
+
|
|
110
|
+
> div {
|
|
111
|
+
position: relative;
|
|
112
|
+
z-index: 3;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.title {
|
|
116
|
+
@apply psui-text-14 psui-text-gray-80 psui-font-bold psui-truncate psui-leading-none psui-ml-1;
|
|
117
|
+
width: 144px;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.badge {
|
|
121
|
+
@apply psui-flex psui-items-center psui-justify-center psui-rounded psui-h-6;
|
|
122
|
+
width: 28px;
|
|
123
|
+
background-color: #d3efde;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
&:before,
|
|
127
|
+
&:after {
|
|
128
|
+
content: "";
|
|
129
|
+
position: absolute;
|
|
130
|
+
left: 0;
|
|
131
|
+
width: 100%;
|
|
132
|
+
background-color: #fff;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
&:before {
|
|
136
|
+
top: 0;
|
|
137
|
+
height: 100%;
|
|
138
|
+
box-shadow:
|
|
139
|
+
0px 0px 4px rgb(0 0 0 / 3%),
|
|
140
|
+
0px 1px 2px rgb(0 0 0 / 10%);
|
|
141
|
+
z-index: 1;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
&:after {
|
|
145
|
+
background-color: #fff;
|
|
146
|
+
bottom: 0;
|
|
147
|
+
height: 8px;
|
|
148
|
+
z-index: 11;
|
|
149
|
+
width: calc(100% - 1px);
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
&:first-child {
|
|
153
|
+
@apply psui-px-3 psui-rounded-tl-md psui-rounded-bl-md psui-bg-white psui-sticky psui-z-10 psui-left-0;
|
|
154
|
+
border-right-width: 2px;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
&:last-child {
|
|
158
|
+
@apply psui-px-3 psui-rounded-tr-md psui-rounded-br-md psui-border-r-0;
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
&.opened {
|
|
163
|
+
td {
|
|
164
|
+
&:before {
|
|
165
|
+
@apply psui-shadow-elevation-20;
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
&.is-first {
|
|
171
|
+
&.opened {
|
|
172
|
+
td {
|
|
173
|
+
&:first-child {
|
|
174
|
+
@apply psui-rounded-bl-none;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
&:last-child {
|
|
178
|
+
@apply psui-rounded-br-none;
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
&:not(.is-first) {
|
|
185
|
+
td {
|
|
186
|
+
&:first-child {
|
|
187
|
+
@apply psui-rounded-tl-none;
|
|
188
|
+
}
|
|
189
|
+
&:last-child {
|
|
190
|
+
@apply psui-rounded-tr-none;
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
&.opened {
|
|
195
|
+
border-bottom-width: 14px;
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
}
|