@saasicat/ui-vue 0.18.0 → 0.18.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/package.json +2 -2
- package/src/components/dialogs/PilotCreateDialog.vue +15 -188
- package/src/components/dialogs/PilotEditDialog.vue +51 -233
- package/src/components/dialogs/PromoCodeCreateDialog.vue +19 -560
- package/src/components/dialogs/PromoCodeDialogFields.vue +666 -0
- package/src/components/dialogs/PromoCodeEditDialog.vue +22 -570
- package/src/components/dialogs/pilot-dialog.css +222 -0
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Building blocks of the pilot dialogs — chrome, sections, inputs, plan
|
|
3
|
+
* picker, end-date presets.
|
|
4
|
+
*
|
|
5
|
+
* Create and edit draw the same elements, so these rules existed twice,
|
|
6
|
+
* identically. Both dialogs pull this file in through
|
|
7
|
+
* `<style src="..." scoped>`, which keeps scoping intact: each component still
|
|
8
|
+
* gets its own id.
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
.pl-dlg__head {
|
|
12
|
+
display: flex;
|
|
13
|
+
align-items: flex-start;
|
|
14
|
+
gap: 16px;
|
|
15
|
+
padding: 18px 22px 14px;
|
|
16
|
+
border-bottom: 1px solid var(--sa-border, #e2e8f0);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.pl-dlg__title {
|
|
20
|
+
font-family: var(--sa-font-head, system-ui, sans-serif);
|
|
21
|
+
font-weight: 700;
|
|
22
|
+
font-size: 17px;
|
|
23
|
+
color: var(--sa-heading, #0f172a);
|
|
24
|
+
letter-spacing: -0.015em;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.pl-dlg__close {
|
|
28
|
+
margin-left: auto;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.pl-dlg__foot {
|
|
32
|
+
border-top: 1px solid var(--sa-border, #e2e8f0);
|
|
33
|
+
background: #fbfbfd;
|
|
34
|
+
padding: 12px 18px;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.pl-section:last-of-type {
|
|
38
|
+
margin-bottom: 4px;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.pl-section__head {
|
|
42
|
+
display: flex;
|
|
43
|
+
align-items: flex-start;
|
|
44
|
+
gap: 12px;
|
|
45
|
+
margin-bottom: 12px;
|
|
46
|
+
padding-bottom: 10px;
|
|
47
|
+
border-bottom: 1px solid #f1f5f9;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.pl-section__num {
|
|
51
|
+
width: 24px;
|
|
52
|
+
height: 24px;
|
|
53
|
+
background: #eff6ff;
|
|
54
|
+
color: #1d4ed8;
|
|
55
|
+
border-radius: 50%;
|
|
56
|
+
font: 700 12px var(--sa-font-body, system-ui, sans-serif);
|
|
57
|
+
display: grid;
|
|
58
|
+
place-items: center;
|
|
59
|
+
flex: 0 0 auto;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.pl-section__title {
|
|
63
|
+
font-size: 13.5px;
|
|
64
|
+
font-weight: 700;
|
|
65
|
+
color: var(--sa-heading, #0f172a);
|
|
66
|
+
letter-spacing: -0.005em;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.pl-section__sub {
|
|
70
|
+
font-size: 11.5px;
|
|
71
|
+
color: #94a3b8;
|
|
72
|
+
margin-top: 2px;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.pl-input {
|
|
76
|
+
width: 100%;
|
|
77
|
+
padding: 9px 12px;
|
|
78
|
+
background: #fff;
|
|
79
|
+
border: 1px solid var(--sa-border, #e2e8f0);
|
|
80
|
+
border-radius: 8px;
|
|
81
|
+
font: 13px var(--sa-font-body, system-ui, sans-serif);
|
|
82
|
+
color: var(--sa-body, #1e293b);
|
|
83
|
+
outline: 0;
|
|
84
|
+
transition:
|
|
85
|
+
border-color 0.12s,
|
|
86
|
+
box-shadow 0.12s;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.pl-input:focus {
|
|
90
|
+
border-color: var(--sa-primary, #3f6bff);
|
|
91
|
+
box-shadow: 0 0 0 3px rgba(63, 107, 255, 0.12);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.pl-plan-select {
|
|
95
|
+
display: flex;
|
|
96
|
+
flex-direction: column;
|
|
97
|
+
gap: 5px;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.pl-plan-opt {
|
|
101
|
+
display: flex;
|
|
102
|
+
align-items: center;
|
|
103
|
+
gap: 10px;
|
|
104
|
+
padding: 8px 11px;
|
|
105
|
+
background: #fff;
|
|
106
|
+
border: 1px solid var(--sa-border, #e2e8f0);
|
|
107
|
+
border-radius: 8px;
|
|
108
|
+
cursor: pointer;
|
|
109
|
+
text-align: left;
|
|
110
|
+
font-family: var(--sa-font-body, system-ui, sans-serif);
|
|
111
|
+
transition:
|
|
112
|
+
border-color 0.12s,
|
|
113
|
+
background 0.12s;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.pl-plan-opt:hover {
|
|
117
|
+
border-color: #93c5fd;
|
|
118
|
+
background: #fafbff;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.pl-plan-opt--active {
|
|
122
|
+
border-color: var(--sa-primary, #2563eb);
|
|
123
|
+
background: #eff6ff;
|
|
124
|
+
box-shadow: 0 0 0 1px var(--sa-primary, #2563eb) inset;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.pl-plan-opt__dot {
|
|
128
|
+
width: 10px;
|
|
129
|
+
height: 10px;
|
|
130
|
+
border-radius: 50%;
|
|
131
|
+
flex: 0 0 auto;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.pl-plan-opt__text {
|
|
135
|
+
display: flex;
|
|
136
|
+
flex-direction: column;
|
|
137
|
+
flex: 1;
|
|
138
|
+
min-width: 0;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.pl-plan-opt__key {
|
|
142
|
+
font: 700 11px var(--sa-font-mono, ui-monospace, monospace);
|
|
143
|
+
letter-spacing: 0.05em;
|
|
144
|
+
color: var(--sa-heading, #0f172a);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.pl-plan-opt__label {
|
|
148
|
+
font-size: 11px;
|
|
149
|
+
color: var(--sa-muted, #64748b);
|
|
150
|
+
margin-top: 1px;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.pl-plan-opt__check {
|
|
154
|
+
color: #1d4ed8;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.pl-end-row {
|
|
158
|
+
display: flex;
|
|
159
|
+
align-items: center;
|
|
160
|
+
gap: 6px;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.pl-end-row .pl-input {
|
|
164
|
+
flex: 1;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.pl-btn-mini {
|
|
168
|
+
display: inline-flex;
|
|
169
|
+
align-items: center;
|
|
170
|
+
gap: 4px;
|
|
171
|
+
padding: 7px 10px;
|
|
172
|
+
background: #fff;
|
|
173
|
+
border: 1px solid var(--sa-border, #e2e8f0);
|
|
174
|
+
border-radius: 7px;
|
|
175
|
+
color: var(--sa-muted-dark, #475569);
|
|
176
|
+
font: 500 11.5px var(--sa-font-body, system-ui, sans-serif);
|
|
177
|
+
cursor: pointer;
|
|
178
|
+
white-space: nowrap;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.pl-btn-mini:hover {
|
|
182
|
+
background: #f8fafc;
|
|
183
|
+
border-color: #cbd5e1;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.pl-end-presets {
|
|
187
|
+
display: flex;
|
|
188
|
+
flex-wrap: wrap;
|
|
189
|
+
gap: 5px;
|
|
190
|
+
margin-top: 5px;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.pl-preset-btn {
|
|
194
|
+
padding: 4px 9px;
|
|
195
|
+
background: #fff;
|
|
196
|
+
border: 1px dashed #cbd5e1;
|
|
197
|
+
border-radius: 999px;
|
|
198
|
+
font: 600 11px var(--sa-font-body, system-ui, sans-serif);
|
|
199
|
+
color: var(--sa-muted-dark, #475569);
|
|
200
|
+
cursor: pointer;
|
|
201
|
+
transition:
|
|
202
|
+
background 0.12s,
|
|
203
|
+
border-color 0.12s,
|
|
204
|
+
color 0.12s;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.pl-preset-btn:hover {
|
|
208
|
+
background: #eff6ff;
|
|
209
|
+
border-color: #93c5fd;
|
|
210
|
+
border-style: solid;
|
|
211
|
+
color: #1d4ed8;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
.pl-error {
|
|
215
|
+
background: #fef2f2;
|
|
216
|
+
border: 1px solid #fecaca;
|
|
217
|
+
color: #b91c1c;
|
|
218
|
+
font-size: 13px;
|
|
219
|
+
margin: 12px 0 0;
|
|
220
|
+
padding: 8px 12px;
|
|
221
|
+
border-radius: 8px;
|
|
222
|
+
}
|