@licklist/design 0.78.5-dev.56 → 0.78.5-dev.57

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.
@@ -1,12 +1,14 @@
1
1
  .nps-score {
2
2
  width: 100%;
3
3
  margin-top: 24px;
4
+ padding: 0 1rem;
5
+ box-sizing: border-box;
4
6
 
5
7
  &__container {
6
- background: var(--surfaces-main-surface-secondary, #F4F4F7);
8
+ background: var(--surface-secondary);
7
9
  border-radius: 16px;
8
10
  padding: 24px;
9
- border: 1px solid var(--borders-main-border-primary, #E8E9EF);
11
+ border: 1px solid var(--border-primary);
10
12
  }
11
13
 
12
14
  &__question {
@@ -14,7 +16,7 @@
14
16
  font-size: 18px;
15
17
  font-weight: 600;
16
18
  line-height: 24px;
17
- color: var(--labels-main-label-primary, #121E52);
19
+ color: var(--label-primary);
18
20
  margin: 0 0 16px 0;
19
21
  }
20
22
 
@@ -34,7 +36,7 @@
34
36
  font-family: var(--font-family-sans);
35
37
  font-size: 14px;
36
38
  font-weight: 500;
37
- color: var(--labels-main-label-secondary, #626A90);
39
+ color: var(--label-secondary);
38
40
  }
39
41
 
40
42
  &--desktop {
@@ -57,7 +59,7 @@
57
59
  }
58
60
 
59
61
  &__label-icon {
60
- color: var(--fills-main-fill-secondary, #626A90);
62
+ color: var(--fill-secondary);
61
63
  flex-shrink: 0;
62
64
  }
63
65
 
@@ -79,18 +81,18 @@
79
81
  font-weight: 600;
80
82
  transition: all 0.2s ease;
81
83
  cursor: pointer;
82
- background: var(--surfaces-main-surface-primary, #FFFFFF);
83
- border: 1px solid var(--borders-main-border-primary, #E8E9EF);
84
- color: var(--labels-main-label-primary, #121E52);
84
+ background: var(--surface-primary);
85
+ border: 1px solid var(--border-primary);
86
+ color: var(--label-primary);
85
87
 
86
88
  &:hover:not(&--selected) {
87
- background: var(--surfaces-main-surface-primary-hover, #F8F8FA);
89
+ background: var(--surface-primary-hover);
88
90
  }
89
91
 
90
92
  &--selected {
91
- background: var(--fills-main-fill-primary, #14215A);
93
+ background: var(--fill-primary);
92
94
  border-color: transparent;
93
- color: #FFFFFF;
95
+ color: var(--label-primary-alt);
94
96
  }
95
97
  }
96
98
 
@@ -113,7 +115,7 @@
113
115
  font-family: var(--font-family-sans);
114
116
  font-size: 14px;
115
117
  font-weight: 500;
116
- color: var(--labels-main-label-primary, #121E52);
118
+ color: var(--label-primary);
117
119
  margin-bottom: 8px;
118
120
  }
119
121
 
@@ -127,7 +129,7 @@
127
129
  &__optional {
128
130
  font-family: var(--font-family-sans);
129
131
  font-size: 14px;
130
- color: var(--labels-main-label-secondary, #626A90);
132
+ color: var(--label-secondary);
131
133
  }
132
134
 
133
135
  &__textarea {
@@ -135,39 +137,39 @@
135
137
  min-height: 100px;
136
138
  padding: 12px;
137
139
  border-radius: 8px;
138
- border: 1px solid var(--borders-main-border-primary, #E8E9EF);
139
- background: var(--surfaces-main-surface-primary, #FFFFFF);
140
+ border: 1px solid var(--border-primary);
141
+ background: var(--surface-primary);
140
142
  font-family: var(--font-family-sans);
141
143
  font-size: 14px;
142
- color: var(--labels-main-label-primary, #121E52);
144
+ color: var(--label-primary);
143
145
  resize: vertical;
144
146
  box-sizing: border-box;
145
147
 
146
148
  &::placeholder {
147
- color: var(--labels-main-label-tertiary, #9CA3AF);
149
+ color: var(--label-secondary);
148
150
  }
149
151
 
150
152
  &:focus {
151
153
  outline: none;
152
- border-color: var(--fills-main-fill-primary, #14215A);
154
+ border-color: var(--fill-primary);
153
155
  }
154
156
 
155
157
  &--error {
156
- border-color: var(--fills-main-fill-danger, #DC2626);
158
+ border-color: var(--fill-danger);
157
159
  }
158
160
  }
159
161
 
160
162
  &__hint {
161
163
  font-family: var(--font-family-sans);
162
164
  font-size: 14px;
163
- color: var(--labels-main-label-secondary, #626A90);
165
+ color: var(--label-secondary);
164
166
  margin: 4px 0 0 0;
165
167
  }
166
168
 
167
169
  &__error {
168
170
  font-family: var(--font-family-sans);
169
171
  font-size: 14px;
170
- color: var(--fills-main-fill-danger, #DC2626);
172
+ color: var(--fill-danger);
171
173
  margin: 4px 0 0 0;
172
174
  }
173
175
 
@@ -175,7 +177,7 @@
175
177
  font-family: var(--font-family-sans);
176
178
  font-size: 14px;
177
179
  font-weight: 500;
178
- color: var(--labels-main-label-action, #2563EB);
180
+ color: var(--label-action);
179
181
  text-decoration: underline;
180
182
  background: none;
181
183
  border: none;
@@ -184,17 +186,18 @@
184
186
  transition: color 0.2s ease;
185
187
 
186
188
  &:hover {
187
- color: var(--labels-main-label-action-hover, #1D4ED8);
189
+ color: var(--label-action);
188
190
  }
189
191
  }
190
192
 
191
193
  &__roles {
192
194
  display: grid;
193
195
  grid-template-columns: 1fr;
194
- gap: 12px;
196
+ gap: 8px;
195
197
 
196
198
  @media (min-width: 640px) {
197
199
  grid-template-columns: repeat(2, 1fr);
200
+ gap: 4px;
198
201
  }
199
202
 
200
203
  @media (min-width: 1024px) {
@@ -217,8 +220,8 @@
217
220
  width: 20px;
218
221
  height: 20px;
219
222
  border-radius: 50%;
220
- border: 2px solid var(--borders-main-border-primary, #E8E9EF);
221
- background: var(--surfaces-main-surface-primary, #FFFFFF);
223
+ border: 2px solid var(--border-primary);
224
+ background: var(--surface-primary);
222
225
  margin: 0;
223
226
  cursor: pointer;
224
227
  flex-shrink: 0;
@@ -234,12 +237,12 @@
234
237
  width: 10px;
235
238
  height: 10px;
236
239
  border-radius: 50%;
237
- background: var(--fills-main-fill-primary, #14215A);
240
+ background: var(--fill-primary);
238
241
  transition: transform 0.2s ease;
239
242
  }
240
243
 
241
244
  &:checked {
242
- border-color: var(--fills-main-fill-primary, #14215A);
245
+ border-color: var(--fill-primary);
243
246
 
244
247
  &::before {
245
248
  transform: translate(-50%, -50%) scale(1);
@@ -248,7 +251,7 @@
248
251
 
249
252
  &:focus {
250
253
  outline: none;
251
- box-shadow: 0 0 0 2px var(--fills-main-fill-primary-opacity, rgba(20, 33, 90, 0.2));
254
+ box-shadow: 0 0 0 2px var(--border-action);
252
255
  }
253
256
  }
254
257
 
@@ -259,33 +262,7 @@
259
262
  &__role-label {
260
263
  font-family: var(--font-family-sans);
261
264
  font-size: 14px;
262
- color: var(--labels-main-label-primary, #121E52);
263
- }
264
-
265
- &__submit {
266
- display: inline-flex;
267
- align-items: center;
268
- justify-content: center;
269
- padding: 12px 24px;
270
- border-radius: 8px;
271
- border: none;
272
- background: var(--fills-main-fill-primary, #14215A);
273
- color: #FFFFFF;
274
- font-family: var(--font-family-sans);
275
- font-size: 14px;
276
- font-weight: 600;
277
- cursor: pointer;
278
- transition: background 0.2s ease;
279
- width: fit-content;
280
-
281
- &:hover:not(:disabled) {
282
- background: var(--fills-main-fill-primary-hover, #1a2a6e);
283
- }
284
-
285
- &:disabled {
286
- opacity: 0.6;
287
- cursor: not-allowed;
288
- }
265
+ color: var(--label-primary);
289
266
  }
290
267
 
291
268
  &__success {
@@ -298,7 +275,7 @@
298
275
  }
299
276
 
300
277
  &__success-icon {
301
- color: var(--fills-main-fill-success, #10B981);
278
+ color: var(--fill-status-success);
302
279
  margin-bottom: 16px;
303
280
  }
304
281
 
@@ -306,14 +283,14 @@
306
283
  font-family: var(--font-family-sans);
307
284
  font-size: 24px;
308
285
  font-weight: 600;
309
- color: var(--labels-main-label-primary, #121E52);
286
+ color: var(--label-primary);
310
287
  margin: 0 0 8px 0;
311
288
  }
312
289
 
313
290
  &__success-message {
314
291
  font-family: var(--font-family-sans);
315
292
  font-size: 14px;
316
- color: var(--labels-main-label-secondary, #626A90);
293
+ color: var(--label-secondary);
317
294
  margin: 0;
318
295
  }
319
296
  }
@@ -1,5 +1,7 @@
1
1
  import React, { useState } from 'react'
2
2
  import './NPSScore.scss'
3
+ import { Button } from '../Button'
4
+ import { Alert } from '../Alert'
3
5
 
4
6
  export interface NPSScoreProps {
5
7
  /** User's first name for personalized greeting */
@@ -86,13 +88,12 @@ export const NPSScore: React.FC<NPSScoreProps> = ({
86
88
  if (isSubmitted) {
87
89
  return (
88
90
  <div className="nps-score">
89
- <div className="nps-score__container">
90
- <div className="nps-score__success">
91
- <IconBigSmile size={48} className="nps-score__success-icon" />
92
- <h3 className="nps-score__success-title">Thank you!</h3>
93
- <p className="nps-score__success-message">Your feedback has been submitted successfully.</p>
94
- </div>
95
- </div>
91
+ <Alert
92
+ variant="success"
93
+ title="Thank you!"
94
+ message="Your feedback has been submitted successfully."
95
+ onDismiss={onDismiss}
96
+ />
96
97
  </div>
97
98
  )
98
99
  }
@@ -192,13 +193,12 @@ export const NPSScore: React.FC<NPSScoreProps> = ({
192
193
  </div>
193
194
 
194
195
  {/* Submit button */}
195
- <button
196
+ <Button
196
197
  onClick={handleSubmit}
197
198
  disabled={isSubmitting}
198
- className="nps-score__submit"
199
199
  >
200
200
  {isSubmitting ? 'Submitting...' : 'Submit'}
201
- </button>
201
+ </Button>
202
202
  </div>
203
203
  )}
204
204
  </div>
@@ -329,6 +329,7 @@
329
329
 
330
330
  /* Labels */
331
331
  --label-primary: var(--shade-light);
332
+ --label-primary-alt: var(--tone-lighter);
332
333
  --label-secondary: var(--tone-darkest);
333
334
  --label-secondary-hover: var(--shade-lighter);
334
335
  --label-white: var(--tone-lightest);
@@ -360,6 +361,8 @@
360
361
  --surface-status-disabled: var(--disabled-lighter);
361
362
 
362
363
  /* Surface Actions */
364
+ --surface-action: var(--actions-regular);
365
+ --surface-action-hover: var(--actions-dark);
363
366
  --surface-action-soft: var(--actions-lightest);
364
367
  --surface-action-soft-hover: var(--actions-lighter);
365
368
  --surface-action-soft-pressed: var(--actions-light);
@@ -419,6 +422,7 @@
419
422
  [data-theme="dark"] {
420
423
  /* Labels */
421
424
  --label-primary: var(--tone-lighter);
425
+ --label-primary-alt: var(--shade-light);
422
426
  --label-secondary: var(--tone-darker);
423
427
  --label-secondary-hover: var(--tone-lighter);
424
428
  --label-white: var(--tone-lightest);
@@ -450,6 +454,8 @@
450
454
  --surface-status-disabled: var(--disabled-darkest);
451
455
 
452
456
  /* Surface Actions */
457
+ --surface-action: var(--actions-regular);
458
+ --surface-action-hover: var(--actions-light);
453
459
  --surface-action-soft: var(--actions-darkest);
454
460
  --surface-action-soft-hover: var(--actions-darker);
455
461
  --surface-action-soft-pressed: var(--actions-dark);