@mptw/skylens-ui 1.5.0 → 1.5.1
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/AGENTS.md +59 -0
- package/CLAUDE.md +36 -0
- package/README.md +7 -7
- package/app/app.config.ts +11 -2
- package/app/app.vue +5 -0
- package/app/assets/css/layout.css +134 -0
- package/app/assets/css/main.css +189 -0
- package/app/components/SLAlertModal.vue +24 -16
- package/app/components/SLBreadcrumbs.vue +12 -8
- package/app/components/SLButton.vue +196 -163
- package/app/components/SLCalendarButton.vue +40 -34
- package/app/components/SLCalendarPopup.vue +79 -53
- package/app/components/SLCard.vue +57 -41
- package/app/components/SLChart.vue +6 -3
- package/app/components/SLCheckbox.vue +92 -49
- package/app/components/SLCircleButton.vue +25 -16
- package/app/components/SLCollapsableBlock.vue +44 -33
- package/app/components/SLCollapsableMulitPillSelect.vue +20 -15
- package/app/components/SLConfirmModal.vue +9 -6
- package/app/components/SLContextMenu.vue +88 -48
- package/app/components/SLDateInput.vue +109 -92
- package/app/components/SLDatePicker.vue +9 -7
- package/app/components/SLDistributor.vue +1 -1
- package/app/components/SLDownloadButton.vue +39 -29
- package/app/components/SLDraggable.vue +2 -2
- package/app/components/SLDropdown.vue +33 -25
- package/app/components/SLDropdownItem.vue +9 -5
- package/app/components/SLElementWithTitle.vue +12 -7
- package/app/components/SLEyeCheckbox.vue +44 -31
- package/app/components/SLFileInput.vue +23 -16
- package/app/components/SLGenderAgeSelect.vue +52 -36
- package/app/components/SLHourRangeInput.vue +45 -32
- package/app/components/SLIOSSwitch.vue +81 -60
- package/app/components/SLIcon.vue +4 -3
- package/app/components/SLIconButton.vue +31 -29
- package/app/components/SLInfoTip.vue +51 -40
- package/app/components/SLInsightSitePage.vue +12 -7
- package/app/components/SLLegend.vue +19 -12
- package/app/components/SLLinearProgressBar.vue +7 -20
- package/app/components/SLLink.vue +12 -8
- package/app/components/SLLoading.vue +34 -31
- package/app/components/SLMapChart.vue +5 -4
- package/app/components/SLModal.vue +90 -66
- package/app/components/SLMonthCalendarButton.vue +91 -45
- package/app/components/SLMonthPicker.vue +42 -37
- package/app/components/SLMultiEmailInput.vue +163 -113
- package/app/components/SLMultiSelect.vue +37 -26
- package/app/components/SLNoData.vue +16 -11
- package/app/components/SLNotification.vue +133 -129
- package/app/components/SLPageModal.vue +14 -9
- package/app/components/SLPagination.vue +45 -33
- package/app/components/SLPillCheckbox.vue +50 -42
- package/app/components/SLPillLabel.vue +43 -28
- package/app/components/SLPopupMenuButton.vue +26 -17
- package/app/components/SLProfileButton.vue +28 -20
- package/app/components/SLProjectShareItem.vue +30 -17
- package/app/components/SLRadioButton.vue +41 -33
- package/app/components/SLRadioButtonGroup.vue +28 -23
- package/app/components/SLRadioGroup.vue +90 -78
- package/app/components/SLRangeInput.vue +53 -38
- package/app/components/SLRegionsMapChart.vue +5 -4
- package/app/components/SLRightSider.vue +50 -40
- package/app/components/SLSearchInput.vue +24 -19
- package/app/components/SLSelect.vue +114 -87
- package/app/components/SLSelectAllToggle.vue +52 -37
- package/app/components/SLSidebarNav.vue +253 -193
- package/app/components/SLSidebarNavGroupItem.vue +13 -10
- package/app/components/SLSidebarNavGroupItemSection.vue +240 -179
- package/app/components/SLSidebarNavLinkItem.vue +131 -109
- package/app/components/SLSidebarNavSectionItem.vue +21 -18
- package/app/components/SLSitePage.vue +35 -24
- package/app/components/SLSkyInsightSitePage.vue +13 -8
- package/app/components/SLSortByDropdown.vue +35 -22
- package/app/components/SLSpinIcon.vue +6 -3
- package/app/components/SLStayRangeInput.vue +47 -36
- package/app/components/SLTab.vue +7 -2
- package/app/components/SLTable.vue +330 -313
- package/app/components/SLTableTooltip.vue +44 -30
- package/app/components/SLTabs.vue +333 -280
- package/app/components/SLTextInput.vue +162 -134
- package/app/components/SLTextarea.vue +40 -29
- package/app/components/SLToast.vue +19 -11
- package/app/components/SLToggleButton.vue +18 -11
- package/app/components/SLTwoLayerMultiSelect.vue +180 -85
- package/app/components/SLTwoLayerSelect.vue +47 -37
- package/app/components/SLTwoLayerSingleSelect.vue +52 -33
- package/app/components/SLWarnModal.vue +9 -7
- package/app/interface/commons.ts +7 -0
- package/app/utils/index.ts +213 -146
- package/eslint.config.js +3 -0
- package/nuxt.config.ts +17 -14
- package/package.json +9 -8
- package/skills-lock.json +59 -0
- package/tsconfig.json +1 -6
- package/.eslintrc.cjs +0 -4
- package/app/assets/css/layout.styl +0 -98
- package/app/assets/css/tailwind.css +0 -3
- package/app/pages/index.vue +0 -15
- package/interface/commons.ts +0 -7
- package/tailwind.config.js +0 -271
- /package/{interface → app/interface}/IDateRange.ts +0 -0
- /package/{interface → app/interface}/IHourRange.ts +0 -0
- /package/{interface → app/interface}/IInputOption.ts +0 -0
- /package/{interface → app/interface}/ILegendItem.ts +0 -0
- /package/{interface → app/interface}/IOrganization.ts +0 -0
- /package/{interface → app/interface}/IPopupMenuButton.ts +0 -0
- /package/{interface → app/interface}/IStayRange.ts +0 -0
- /package/{interface → app/interface}/ITableField.ts +0 -0
- /package/{interface → app/interface}/IWeb.ts +0 -0
- /package/{interface → app/interface}/NavConfigType.ts +0 -0
- /package/{models → app/models}/DateRange.ts +0 -0
|
@@ -12,140 +12,144 @@
|
|
|
12
12
|
.notification(v-if='isShow')
|
|
13
13
|
.notification-wrapper {{ content }}
|
|
14
14
|
</template>
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
},
|
|
26
|
-
content: {
|
|
27
|
-
type: String,
|
|
28
|
-
default: '',
|
|
29
|
-
},
|
|
15
|
+
|
|
16
|
+
<script lang="ts">
|
|
17
|
+
import gsap from "gsap";
|
|
18
|
+
|
|
19
|
+
export default defineComponent({
|
|
20
|
+
name: "SLNotification",
|
|
21
|
+
props: {
|
|
22
|
+
isShow: {
|
|
23
|
+
type: Boolean,
|
|
24
|
+
default: false,
|
|
30
25
|
},
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
26
|
+
content: {
|
|
27
|
+
type: String,
|
|
28
|
+
default: "",
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
emits: ["update:isShow"],
|
|
32
|
+
setup(props, { emit }) {
|
|
33
|
+
const { isShow } = toRefs(props);
|
|
34
|
+
|
|
35
|
+
let timeoutId: any = null;
|
|
36
|
+
|
|
37
|
+
function onBeforeEnter(el: Element) {
|
|
38
|
+
const wrapperEl = el.querySelector(".notification-wrapper");
|
|
39
|
+
|
|
40
|
+
if (wrapperEl) {
|
|
41
|
+
gsap.set(wrapperEl, {
|
|
42
|
+
alpha: 0,
|
|
43
|
+
});
|
|
45
44
|
}
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
function onEnter(el: Element, done: () => void) {
|
|
48
|
+
const wrapperEl = el.querySelector(".notification-wrapper");
|
|
49
|
+
|
|
50
|
+
if (wrapperEl) {
|
|
51
|
+
gsap.to(wrapperEl, {
|
|
52
|
+
alpha: 1,
|
|
53
|
+
duration: 0.3,
|
|
54
|
+
onComplete: () => {
|
|
55
|
+
done();
|
|
56
|
+
},
|
|
57
|
+
});
|
|
58
|
+
} else {
|
|
59
|
+
done();
|
|
61
60
|
}
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
function onAfterEnter(el: Element) {
|
|
64
|
+
const wrapperEl = el.querySelector(".notification-wrapper");
|
|
65
|
+
|
|
66
|
+
if (wrapperEl) {
|
|
67
|
+
gsap.set(wrapperEl, {
|
|
68
|
+
alpha: 1,
|
|
69
|
+
});
|
|
71
70
|
}
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
function onBeforeLeave(el: Element) {
|
|
74
|
+
const wrapperEl = el.querySelector(".notification-wrapper");
|
|
75
|
+
|
|
76
|
+
if (wrapperEl) {
|
|
77
|
+
gsap.set(wrapperEl, {
|
|
78
|
+
alpha: 1,
|
|
79
|
+
});
|
|
81
80
|
}
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
function onLeave(el: Element, done: () => void) {
|
|
84
|
+
const wrapperEl = el.querySelector(".notification-wrapper");
|
|
85
|
+
|
|
86
|
+
if (wrapperEl) {
|
|
87
|
+
gsap.to(wrapperEl, {
|
|
88
|
+
alpha: 0,
|
|
89
|
+
duration: 0.3,
|
|
90
|
+
onComplete: () => {
|
|
91
|
+
done();
|
|
92
|
+
},
|
|
93
|
+
});
|
|
94
|
+
} else {
|
|
95
|
+
done();
|
|
97
96
|
}
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
function onAfterLeave(el: Element) {
|
|
100
|
+
const wrapperEl = el.querySelector(".notification-wrapper");
|
|
101
|
+
|
|
102
|
+
if (wrapperEl) {
|
|
103
|
+
gsap.set(wrapperEl, {
|
|
104
|
+
alpha: 0,
|
|
105
|
+
});
|
|
107
106
|
}
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
timeoutId = null;
|
|
114
|
-
|
|
115
|
-
timeoutId = setTimeout(() => {
|
|
116
|
-
emit('update:isShow', false);
|
|
117
|
-
}, 2000);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
function delayHide() {
|
|
110
|
+
if (timeoutId) {
|
|
111
|
+
clearTimeout(timeoutId);
|
|
118
112
|
}
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
113
|
+
timeoutId = null;
|
|
114
|
+
|
|
115
|
+
timeoutId = setTimeout(() => {
|
|
116
|
+
emit("update:isShow", false);
|
|
117
|
+
}, 2000);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
watch(isShow, () => {
|
|
121
|
+
if (isShow.value) {
|
|
122
|
+
delayHide();
|
|
123
|
+
}
|
|
124
|
+
});
|
|
125
|
+
|
|
126
|
+
onBeforeUnmount(() => {
|
|
127
|
+
if (timeoutId) {
|
|
128
|
+
clearTimeout(timeoutId);
|
|
129
|
+
}
|
|
130
|
+
timeoutId = null;
|
|
131
|
+
});
|
|
132
|
+
|
|
133
|
+
return {
|
|
134
|
+
onBeforeEnter,
|
|
135
|
+
onEnter,
|
|
136
|
+
onAfterEnter,
|
|
137
|
+
onBeforeLeave,
|
|
138
|
+
onLeave,
|
|
139
|
+
onAfterLeave,
|
|
140
|
+
};
|
|
141
|
+
},
|
|
142
|
+
});
|
|
143
|
+
</script>
|
|
144
|
+
|
|
145
|
+
<style lang="css">
|
|
146
|
+
@reference '~ui/app/assets/css/main.css';
|
|
147
|
+
|
|
148
|
+
.notification {
|
|
149
|
+
@apply z-100 fixed top-0 left-0 w-full h-full pointer-events-none;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.notification-wrapper {
|
|
153
|
+
@apply absolute top-1/2 left-1/2 p-4 bg-backdrop/80 rounded text-base text-white -translate-x-1/2 -translate-y-1/2 shadow-popup-sm;
|
|
154
|
+
}
|
|
155
|
+
</style>
|
|
@@ -50,15 +50,20 @@ export default defineComponent({
|
|
|
50
50
|
});
|
|
51
51
|
</script>
|
|
52
52
|
|
|
53
|
-
<style
|
|
54
|
-
.
|
|
55
|
-
@apply fixed top-0 left-0 w-full h-full s('bg-white/70') backdrop-blur-8
|
|
53
|
+
<style>
|
|
54
|
+
@reference '~ui/app/assets/css/main.css';
|
|
56
55
|
|
|
57
|
-
.page-modal
|
|
58
|
-
@apply fixed top-0 left-0 w-full h-full
|
|
56
|
+
.page-modal-backdrop {
|
|
57
|
+
@apply fixed top-0 left-0 w-full h-full bg-white/70 backdrop-blur-[8px];
|
|
58
|
+
}
|
|
59
59
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
60
|
+
.page-modal {
|
|
61
|
+
@apply fixed top-0 left-0 w-full h-full overflow-auto;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.page-modal .modal-dialog {
|
|
65
|
+
@apply flex items-center justify-center relative m-8 rounded-lg bg-white shadow-popup-lg overflow-hidden;
|
|
66
|
+
width: calc(100% - var(--spacing) * 8 * 2);
|
|
67
|
+
height: calc(100% - var(--spacing) * 8 * 2);
|
|
68
|
+
}
|
|
64
69
|
</style>
|
|
@@ -143,50 +143,62 @@ export default defineComponent({
|
|
|
143
143
|
});
|
|
144
144
|
</script>
|
|
145
145
|
|
|
146
|
-
<style
|
|
147
|
-
.
|
|
148
|
-
|
|
146
|
+
<style>
|
|
147
|
+
@reference '~ui/app/assets/css/main.css';
|
|
148
|
+
|
|
149
|
+
.pagination {
|
|
150
|
+
@apply flex items-center justify-end;
|
|
151
|
+
}
|
|
149
152
|
|
|
150
|
-
|
|
151
|
-
|
|
153
|
+
.pagination-info {
|
|
154
|
+
@apply inline-flex items-center mr-4 space-x-0.5 text-base text-pgray-2;
|
|
155
|
+
}
|
|
152
156
|
|
|
153
|
-
|
|
154
|
-
|
|
157
|
+
.pagination-info .custom-select {
|
|
158
|
+
@apply min-w-[2.3125rem];
|
|
159
|
+
}
|
|
155
160
|
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
161
|
+
.pagination-info .custom-select .form-control label {
|
|
162
|
+
@apply text-center;
|
|
163
|
+
}
|
|
159
164
|
|
|
160
|
-
|
|
161
|
-
|
|
165
|
+
.pagination-info .custom-select .form-control label .icon {
|
|
166
|
+
@apply hidden;
|
|
167
|
+
}
|
|
162
168
|
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
@apply s('min-w-0') text-center
|
|
169
|
+
.pagination-info .custom-select .select-options .option-list .option-button {
|
|
170
|
+
@apply min-w-0 text-center;
|
|
171
|
+
}
|
|
167
172
|
|
|
168
|
-
|
|
169
|
-
|
|
173
|
+
.pagination-items {
|
|
174
|
+
@apply inline-flex items-center;
|
|
175
|
+
}
|
|
170
176
|
|
|
171
|
-
|
|
172
|
-
|
|
177
|
+
.pagination-item + .pagination-item {
|
|
178
|
+
@apply border-l;
|
|
179
|
+
}
|
|
173
180
|
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
181
|
+
.pagination-item {
|
|
182
|
+
@apply inline-flex items-center justify-center min-w-[1.5rem] min-h-[1.5rem] p-1 border-t border-b border-primary bg-white text-xs text-primary hover:text-primary-600 focus:text-primary;
|
|
183
|
+
}
|
|
177
184
|
|
|
178
|
-
|
|
179
|
-
|
|
185
|
+
.pagination-item.pagination-item--icon {
|
|
186
|
+
@apply py-1.5;
|
|
187
|
+
}
|
|
180
188
|
|
|
181
|
-
|
|
182
|
-
|
|
189
|
+
.pagination-item:first-child {
|
|
190
|
+
@apply border-l rounded-l-sm;
|
|
191
|
+
}
|
|
183
192
|
|
|
184
|
-
|
|
185
|
-
|
|
193
|
+
.pagination-item:last-child {
|
|
194
|
+
@apply border-r rounded-r-sm;
|
|
195
|
+
}
|
|
186
196
|
|
|
187
|
-
|
|
188
|
-
|
|
197
|
+
.pagination-item.active {
|
|
198
|
+
@apply bg-primary text-white;
|
|
199
|
+
}
|
|
189
200
|
|
|
190
|
-
|
|
191
|
-
|
|
201
|
+
.pagination-item.more {
|
|
202
|
+
@apply cursor-default hover:text-primary-600;
|
|
203
|
+
}
|
|
192
204
|
</style>
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
<script lang="ts">
|
|
17
17
|
import type { PropType } from "vue";
|
|
18
18
|
import { isEqual } from "lodash-es";
|
|
19
|
-
import { getUID } from "~ui/utils";
|
|
19
|
+
import { getUID } from "~ui/app/utils";
|
|
20
20
|
|
|
21
21
|
export default defineComponent({
|
|
22
22
|
name: "SLPillCheckbox",
|
|
@@ -120,7 +120,7 @@ export default defineComponent({
|
|
|
120
120
|
} else {
|
|
121
121
|
emit(
|
|
122
122
|
"update:modelValue",
|
|
123
|
-
isTargetChecked ? trueValue.value : falseValue.value
|
|
123
|
+
isTargetChecked ? trueValue.value : falseValue.value,
|
|
124
124
|
);
|
|
125
125
|
}
|
|
126
126
|
}
|
|
@@ -139,58 +139,66 @@ export default defineComponent({
|
|
|
139
139
|
});
|
|
140
140
|
</script>
|
|
141
141
|
|
|
142
|
-
<style
|
|
143
|
-
.
|
|
144
|
-
@apply inline-block relative
|
|
142
|
+
<style>
|
|
143
|
+
@reference '~ui/app/assets/css/main.css';
|
|
145
144
|
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
145
|
+
.pill-checkbox {
|
|
146
|
+
@apply inline-block relative;
|
|
147
|
+
}
|
|
149
148
|
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
149
|
+
.pill-checkbox.pill-checkbox-xs label {
|
|
150
|
+
@apply py-px text-xs;
|
|
151
|
+
}
|
|
153
152
|
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
153
|
+
.pill-checkbox.pill-checkbox-third-500 input:checked + label {
|
|
154
|
+
@apply bg-third-500 border-third-500;
|
|
155
|
+
}
|
|
157
156
|
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
157
|
+
.pill-checkbox.pill-checkbox-third input:checked + label {
|
|
158
|
+
@apply bg-third border-third;
|
|
159
|
+
}
|
|
161
160
|
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
161
|
+
.pill-checkbox.pill-checkbox-primary input:checked + label {
|
|
162
|
+
@apply bg-primary border-primary;
|
|
163
|
+
}
|
|
165
164
|
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
165
|
+
.pill-checkbox.pill-checkbox-primary-600 input:checked + label {
|
|
166
|
+
@apply bg-primary-600 border-primary-600;
|
|
167
|
+
}
|
|
169
168
|
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
169
|
+
.pill-checkbox.pill-checkbox-highlight input:checked + label {
|
|
170
|
+
@apply bg-highlight border-highlight;
|
|
171
|
+
}
|
|
173
172
|
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
173
|
+
.pill-checkbox.pill-checkbox-blue-1 input:checked + label {
|
|
174
|
+
@apply bg-blue-1 border-blue-1;
|
|
175
|
+
}
|
|
177
176
|
|
|
178
|
-
|
|
179
|
-
|
|
177
|
+
.pill-checkbox.pill-checkbox-secondary-400 input:checked + label {
|
|
178
|
+
@apply bg-secondary-400 border-secondary-400;
|
|
179
|
+
}
|
|
180
180
|
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
181
|
+
.pill-checkbox input {
|
|
182
|
+
@apply absolute left-1/2 top-1/2 transform -translate-x-1/2 -translate-y-1/2;
|
|
183
|
+
}
|
|
184
184
|
|
|
185
|
-
|
|
186
|
-
|
|
185
|
+
.pill-checkbox label {
|
|
186
|
+
@apply inline-flex justify-center items-center relative px-1.75 py-0.75 bg-white border border-primary-300 rounded-full text-sm leading-4.75 text-pgray-2 align-top cursor-pointer;
|
|
187
|
+
}
|
|
187
188
|
|
|
188
|
-
|
|
189
|
-
|
|
189
|
+
.pill-checkbox label .icon {
|
|
190
|
+
@apply hidden ml-2;
|
|
191
|
+
}
|
|
190
192
|
|
|
191
|
-
|
|
192
|
-
|
|
193
|
+
.pill-checkbox input:checked + label {
|
|
194
|
+
@apply bg-white border-white text-white font-bold;
|
|
195
|
+
}
|
|
193
196
|
|
|
194
|
-
|
|
195
|
-
|
|
197
|
+
.pill-checkbox input:checked + label .icon {
|
|
198
|
+
@apply inline-block;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.pill-checkbox input:disabled + label {
|
|
202
|
+
@apply bg-white border-pgray-5 text-pgray-4 font-normal cursor-default;
|
|
203
|
+
}
|
|
196
204
|
</style>
|
|
@@ -62,44 +62,59 @@ export default defineComponent({
|
|
|
62
62
|
});
|
|
63
63
|
</script>
|
|
64
64
|
|
|
65
|
-
<style
|
|
66
|
-
.
|
|
67
|
-
@apply inline-flex justify-center items-center relative s('px-1.75') s('py-0.75')
|
|
68
|
-
@apply bg-white border border-white rounded-full text-sm s('leading-4.75') text-white font-bold align-top whitespace-nowrap
|
|
65
|
+
<style>
|
|
66
|
+
@reference '~ui/app/assets/css/main.css';
|
|
69
67
|
|
|
70
|
-
|
|
71
|
-
|
|
68
|
+
.pill-label {
|
|
69
|
+
@apply inline-flex justify-center items-center relative px-1.75 py-0.75;
|
|
70
|
+
@apply bg-white border border-white rounded-full text-sm leading-4.75 text-white font-bold align-top whitespace-nowrap;
|
|
71
|
+
}
|
|
72
72
|
|
|
73
|
-
|
|
74
|
-
|
|
73
|
+
.pill-label.pill-label-xs {
|
|
74
|
+
@apply py-px text-xs;
|
|
75
|
+
}
|
|
75
76
|
|
|
76
|
-
|
|
77
|
-
|
|
77
|
+
.pill-label.pill-label-sm {
|
|
78
|
+
@apply py-px text-sm;
|
|
79
|
+
}
|
|
78
80
|
|
|
79
|
-
|
|
80
|
-
|
|
81
|
+
.pill-label.pill-label-white {
|
|
82
|
+
@apply text-pgray-2;
|
|
83
|
+
}
|
|
81
84
|
|
|
82
|
-
|
|
83
|
-
|
|
85
|
+
.pill-label.pill-label-third-500 {
|
|
86
|
+
@apply bg-third-500 border-third-500;
|
|
87
|
+
}
|
|
84
88
|
|
|
85
|
-
|
|
86
|
-
|
|
89
|
+
.pill-label.pill-label-third-600 {
|
|
90
|
+
@apply bg-third-600 border-third-600;
|
|
91
|
+
}
|
|
87
92
|
|
|
88
|
-
|
|
89
|
-
|
|
93
|
+
.pill-label.pill-label-third {
|
|
94
|
+
@apply bg-third border-third;
|
|
95
|
+
}
|
|
90
96
|
|
|
91
|
-
|
|
92
|
-
|
|
97
|
+
.pill-label.pill-label-primary {
|
|
98
|
+
@apply bg-primary border-primary;
|
|
99
|
+
}
|
|
93
100
|
|
|
94
|
-
|
|
95
|
-
|
|
101
|
+
.pill-label.pill-label-primary-600 {
|
|
102
|
+
@apply bg-primary-600 border-primary-600;
|
|
103
|
+
}
|
|
96
104
|
|
|
97
|
-
|
|
98
|
-
|
|
105
|
+
.pill-label.pill-label-highlight {
|
|
106
|
+
@apply bg-highlight border-highlight;
|
|
107
|
+
}
|
|
99
108
|
|
|
100
|
-
|
|
101
|
-
|
|
109
|
+
.pill-label.pill-label-blue-1 {
|
|
110
|
+
@apply bg-blue-1 border-blue-1;
|
|
111
|
+
}
|
|
102
112
|
|
|
103
|
-
|
|
104
|
-
|
|
113
|
+
.pill-label.pill-label-secondary {
|
|
114
|
+
@apply bg-secondary border-secondary;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.pill-label .icon {
|
|
118
|
+
@apply inline-block ml-2;
|
|
119
|
+
}
|
|
105
120
|
</style>
|