@vmscloud/moz-ui-components-core 0.1.60 → 0.1.62
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/components/notification/index.d.ts +20 -0
- package/dist/components/notification/notification-card.core.d.ts +81 -0
- package/dist/components/notification/notification-item.core.d.ts +33 -0
- package/dist/components/notification/useNotification.d.ts +44 -0
- package/dist/index.cjs +747 -682
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +3181 -2898
- package/dist/index.js.map +1 -1
- package/dist/locale/types.d.ts +6 -0
- package/dist/styles/default/index.css +242 -0
- package/dist/styles/default/notification.css +314 -0
- package/package.json +1 -1
package/dist/locale/types.d.ts
CHANGED
|
@@ -11,6 +11,12 @@ export interface MozLocaleMessages {
|
|
|
11
11
|
/** 안내 블록 닫기 버튼의 접근 이름 — `dismissLabel` 미지정 시 (ITSM-2026-002670) */
|
|
12
12
|
dismiss: string;
|
|
13
13
|
};
|
|
14
|
+
Notification: {
|
|
15
|
+
/** 알림 카드 닫기 버튼의 접근 이름 — `closeLabel` 미지정 시 (ITSM-2026-003295) */
|
|
16
|
+
close: string;
|
|
17
|
+
/** 알림 목록 항목의 안 읽음 표시를 읽어 주는 숨김 텍스트 (ITSM-2026-003295) */
|
|
18
|
+
unread: string;
|
|
19
|
+
};
|
|
14
20
|
Popup: {
|
|
15
21
|
title: string;
|
|
16
22
|
save: string;
|
|
@@ -4295,3 +4295,245 @@
|
|
|
4295
4295
|
box-shadow: 0 0 0 3px var(--moz-color-accent-ring);
|
|
4296
4296
|
}
|
|
4297
4297
|
}
|
|
4298
|
+
/**
|
|
4299
|
+
* Notification 스타일 — 떠 있는 알림 카드·스택 컨테이너·알림 목록 항목 (ITSM-2026-003295).
|
|
4300
|
+
*
|
|
4301
|
+
* 디자인 참고: APS `Notification.vue`(아이콘 + 제목 줄, 들여 쓴 본문)와
|
|
4302
|
+
* `NotificationPanel.vue`(제목 + 안 읽음 점, 본문, 시각). 값은 MOZ 토큰으로 옮겼다 — 카드 곡률은
|
|
4303
|
+
* `--moz-radius-panel`(소비자가 16px 로 매핑), 색은 전부 `--moz-color-*` 라 다크모드는 소비자 테마를 따른다.
|
|
4304
|
+
*
|
|
4305
|
+
* 유형(tone)은 상태 아이콘 색으로만 나타낸다. APS 의 좌측 유형 바는 두지 않는다 — 아이콘과 같은 정보를
|
|
4306
|
+
* 두 번 보여 주고, 16px 곡률에서는 바 끝이 휘어 보였다(ITSM-2026-003335).
|
|
4307
|
+
*
|
|
4308
|
+
* 마크업
|
|
4309
|
+
* - 스택: `div.moz-notification-stack.moz-notification-stack--<position>[data-position]`
|
|
4310
|
+
* - 카드: `div.moz-notification-card[data-tone](.is-selectable)` + `.moz-notification-card-icon` +
|
|
4311
|
+
* `.moz-notification-card-main`(`.moz-notification-card-content` → heading·description·time,
|
|
4312
|
+
* `.moz-notification-card-actions`) + `.moz-notification-card-close`
|
|
4313
|
+
* - 목록 항목: `(button|div).moz-notification-item[data-unread]` + header(heading·unread·meta) +
|
|
4314
|
+
* description + time
|
|
4315
|
+
*/
|
|
4316
|
+
@layer moz {
|
|
4317
|
+
.moz-notification-stack {
|
|
4318
|
+
position: fixed;
|
|
4319
|
+
inset: 0;
|
|
4320
|
+
display: flex;
|
|
4321
|
+
gap: 8px;
|
|
4322
|
+
padding: 20px;
|
|
4323
|
+
overflow: hidden;
|
|
4324
|
+
z-index: var(--moz-notification-z, 2000);
|
|
4325
|
+
pointer-events: none;
|
|
4326
|
+
}
|
|
4327
|
+
.moz-notification-stack > .moz-overlay-portal {
|
|
4328
|
+
display: contents;
|
|
4329
|
+
}
|
|
4330
|
+
.moz-notification-stack--top, .moz-notification-stack--top-right, .moz-notification-stack--top-left {
|
|
4331
|
+
flex-direction: column;
|
|
4332
|
+
}
|
|
4333
|
+
.moz-notification-stack--bottom, .moz-notification-stack--bottom-right, .moz-notification-stack--bottom-left {
|
|
4334
|
+
flex-direction: column-reverse;
|
|
4335
|
+
}
|
|
4336
|
+
.moz-notification-stack--top, .moz-notification-stack--bottom {
|
|
4337
|
+
align-items: center;
|
|
4338
|
+
}
|
|
4339
|
+
.moz-notification-stack--top-right, .moz-notification-stack--bottom-right {
|
|
4340
|
+
align-items: flex-end;
|
|
4341
|
+
}
|
|
4342
|
+
.moz-notification-stack--top-left, .moz-notification-stack--bottom-left {
|
|
4343
|
+
align-items: flex-start;
|
|
4344
|
+
}
|
|
4345
|
+
.moz-notification-card {
|
|
4346
|
+
position: relative;
|
|
4347
|
+
display: flex;
|
|
4348
|
+
align-items: flex-start;
|
|
4349
|
+
gap: 10px;
|
|
4350
|
+
box-sizing: border-box;
|
|
4351
|
+
width: 360px;
|
|
4352
|
+
max-width: 100%;
|
|
4353
|
+
padding: 12px;
|
|
4354
|
+
border: 1px solid var(--moz-color-border-subtle);
|
|
4355
|
+
border-radius: var(--moz-radius-panel);
|
|
4356
|
+
background-color: var(--moz-color-surface);
|
|
4357
|
+
box-shadow: 0 8px 24px var(--moz-color-shadow);
|
|
4358
|
+
color: var(--moz-color-text);
|
|
4359
|
+
pointer-events: auto;
|
|
4360
|
+
--_notification-solid: var(--moz-color-info);
|
|
4361
|
+
}
|
|
4362
|
+
.moz-notification-card[data-tone=success] {
|
|
4363
|
+
--_notification-solid: var(--moz-color-success);
|
|
4364
|
+
}
|
|
4365
|
+
.moz-notification-card[data-tone=warning] {
|
|
4366
|
+
--_notification-solid: var(--moz-color-warning);
|
|
4367
|
+
}
|
|
4368
|
+
.moz-notification-card[data-tone=danger] {
|
|
4369
|
+
--_notification-solid: var(--moz-color-danger);
|
|
4370
|
+
}
|
|
4371
|
+
.moz-notification-card[data-tone=neutral] {
|
|
4372
|
+
--_notification-solid: var(--moz-color-text-secondary);
|
|
4373
|
+
}
|
|
4374
|
+
.moz-notification-card-icon {
|
|
4375
|
+
display: inline-flex;
|
|
4376
|
+
flex-shrink: 0;
|
|
4377
|
+
align-items: center;
|
|
4378
|
+
justify-content: center;
|
|
4379
|
+
min-width: 20px;
|
|
4380
|
+
min-height: 20px;
|
|
4381
|
+
color: var(--_notification-solid);
|
|
4382
|
+
}
|
|
4383
|
+
.moz-notification-card-icon > svg {
|
|
4384
|
+
width: 20px;
|
|
4385
|
+
height: 20px;
|
|
4386
|
+
}
|
|
4387
|
+
.moz-notification-card-main {
|
|
4388
|
+
display: flex;
|
|
4389
|
+
flex: 1;
|
|
4390
|
+
flex-direction: column;
|
|
4391
|
+
gap: 8px;
|
|
4392
|
+
min-width: 0;
|
|
4393
|
+
}
|
|
4394
|
+
.moz-notification-card-content {
|
|
4395
|
+
display: flex;
|
|
4396
|
+
flex-direction: column;
|
|
4397
|
+
gap: 2px;
|
|
4398
|
+
min-width: 0;
|
|
4399
|
+
border-radius: var(--moz-radius-control);
|
|
4400
|
+
}
|
|
4401
|
+
.moz-notification-card.is-selectable .moz-notification-card-content {
|
|
4402
|
+
cursor: pointer;
|
|
4403
|
+
}
|
|
4404
|
+
.moz-notification-card-content[role=button]:focus-visible {
|
|
4405
|
+
outline: none;
|
|
4406
|
+
box-shadow: 0 0 0 3px var(--moz-color-accent-ring);
|
|
4407
|
+
}
|
|
4408
|
+
.moz-notification-card-heading {
|
|
4409
|
+
color: var(--moz-color-text);
|
|
4410
|
+
font-size: 14px;
|
|
4411
|
+
font-weight: 600;
|
|
4412
|
+
line-height: 1.4;
|
|
4413
|
+
overflow-wrap: anywhere;
|
|
4414
|
+
}
|
|
4415
|
+
.moz-notification-card-description {
|
|
4416
|
+
color: var(--moz-color-text-secondary);
|
|
4417
|
+
font-size: 13px;
|
|
4418
|
+
line-height: 1.5;
|
|
4419
|
+
overflow-wrap: anywhere;
|
|
4420
|
+
}
|
|
4421
|
+
.moz-notification-card-time {
|
|
4422
|
+
margin-top: 2px;
|
|
4423
|
+
color: var(--moz-color-text-subtle);
|
|
4424
|
+
font-size: 12px;
|
|
4425
|
+
line-height: 1.4;
|
|
4426
|
+
}
|
|
4427
|
+
.moz-notification-card-actions {
|
|
4428
|
+
display: flex;
|
|
4429
|
+
flex-wrap: wrap;
|
|
4430
|
+
gap: 8px;
|
|
4431
|
+
}
|
|
4432
|
+
.moz-notification-card-close {
|
|
4433
|
+
display: inline-flex;
|
|
4434
|
+
flex-shrink: 0;
|
|
4435
|
+
align-items: center;
|
|
4436
|
+
justify-content: center;
|
|
4437
|
+
width: 24px;
|
|
4438
|
+
height: 24px;
|
|
4439
|
+
padding: 0;
|
|
4440
|
+
margin: -2px -2px 0 0;
|
|
4441
|
+
border: 0;
|
|
4442
|
+
border-radius: var(--moz-radius-control);
|
|
4443
|
+
background: transparent;
|
|
4444
|
+
color: var(--moz-color-text-subtle);
|
|
4445
|
+
cursor: pointer;
|
|
4446
|
+
}
|
|
4447
|
+
.moz-notification-card-close:hover {
|
|
4448
|
+
background-color: var(--moz-color-surface-muted);
|
|
4449
|
+
color: var(--moz-color-text-secondary);
|
|
4450
|
+
}
|
|
4451
|
+
.moz-notification-card-close:focus-visible {
|
|
4452
|
+
outline: none;
|
|
4453
|
+
box-shadow: 0 0 0 3px var(--moz-color-accent-ring);
|
|
4454
|
+
}
|
|
4455
|
+
.moz-notification-item {
|
|
4456
|
+
display: flex;
|
|
4457
|
+
flex-direction: column;
|
|
4458
|
+
gap: 4px;
|
|
4459
|
+
box-sizing: border-box;
|
|
4460
|
+
width: 100%;
|
|
4461
|
+
margin: 0;
|
|
4462
|
+
padding: 12px 16px;
|
|
4463
|
+
border: 0;
|
|
4464
|
+
border-radius: 0;
|
|
4465
|
+
background: transparent;
|
|
4466
|
+
color: var(--moz-color-text);
|
|
4467
|
+
font: inherit;
|
|
4468
|
+
text-align: left;
|
|
4469
|
+
}
|
|
4470
|
+
button.moz-notification-item {
|
|
4471
|
+
cursor: pointer;
|
|
4472
|
+
}
|
|
4473
|
+
button.moz-notification-item:hover {
|
|
4474
|
+
background-color: var(--moz-color-surface-muted);
|
|
4475
|
+
}
|
|
4476
|
+
button.moz-notification-item:focus-visible {
|
|
4477
|
+
outline: none;
|
|
4478
|
+
box-shadow: inset 0 0 0 2px var(--moz-color-accent-ring);
|
|
4479
|
+
}
|
|
4480
|
+
.moz-notification-item-header {
|
|
4481
|
+
display: flex;
|
|
4482
|
+
align-items: center;
|
|
4483
|
+
gap: 6px;
|
|
4484
|
+
min-width: 0;
|
|
4485
|
+
}
|
|
4486
|
+
.moz-notification-item-heading {
|
|
4487
|
+
min-width: 0;
|
|
4488
|
+
color: var(--moz-color-text-secondary);
|
|
4489
|
+
font-size: 13px;
|
|
4490
|
+
font-weight: 500;
|
|
4491
|
+
line-height: 1.4;
|
|
4492
|
+
overflow-wrap: anywhere;
|
|
4493
|
+
}
|
|
4494
|
+
.moz-notification-item.is-unread .moz-notification-item-heading {
|
|
4495
|
+
color: var(--moz-color-text);
|
|
4496
|
+
font-weight: 600;
|
|
4497
|
+
}
|
|
4498
|
+
.moz-notification-item-unread {
|
|
4499
|
+
display: inline-flex;
|
|
4500
|
+
flex-shrink: 0;
|
|
4501
|
+
}
|
|
4502
|
+
.moz-notification-item-dot {
|
|
4503
|
+
width: 6px;
|
|
4504
|
+
height: 6px;
|
|
4505
|
+
border-radius: var(--moz-radius-circle);
|
|
4506
|
+
background-color: var(--moz-color-danger);
|
|
4507
|
+
}
|
|
4508
|
+
.moz-notification-item-sr {
|
|
4509
|
+
position: absolute;
|
|
4510
|
+
width: 1px;
|
|
4511
|
+
height: 1px;
|
|
4512
|
+
padding: 0;
|
|
4513
|
+
margin: -1px;
|
|
4514
|
+
overflow: hidden;
|
|
4515
|
+
clip: rect(0, 0, 0, 0);
|
|
4516
|
+
white-space: nowrap;
|
|
4517
|
+
border: 0;
|
|
4518
|
+
}
|
|
4519
|
+
.moz-notification-item-meta {
|
|
4520
|
+
display: inline-flex;
|
|
4521
|
+
flex-shrink: 0;
|
|
4522
|
+
align-items: center;
|
|
4523
|
+
gap: 4px;
|
|
4524
|
+
margin-left: auto;
|
|
4525
|
+
color: var(--moz-color-text-subtle);
|
|
4526
|
+
font-size: 12px;
|
|
4527
|
+
}
|
|
4528
|
+
.moz-notification-item-description {
|
|
4529
|
+
color: var(--moz-color-text-secondary);
|
|
4530
|
+
font-size: 13px;
|
|
4531
|
+
line-height: 1.5;
|
|
4532
|
+
overflow-wrap: anywhere;
|
|
4533
|
+
}
|
|
4534
|
+
.moz-notification-item-time {
|
|
4535
|
+
color: var(--moz-color-text-subtle);
|
|
4536
|
+
font-size: 12px;
|
|
4537
|
+
line-height: 1.4;
|
|
4538
|
+
}
|
|
4539
|
+
}
|
|
@@ -0,0 +1,314 @@
|
|
|
1
|
+
@charset "UTF-8";
|
|
2
|
+
/* moz color tokens — override in :root */
|
|
3
|
+
@layer moz {
|
|
4
|
+
:root {
|
|
5
|
+
/* ── 기본 팔레트 ── */
|
|
6
|
+
--moz-color-accent: #4568e0;
|
|
7
|
+
--moz-color-accent-strong: #3e5dc9;
|
|
8
|
+
--moz-color-accent-subtle: #e2e7fa;
|
|
9
|
+
--moz-color-danger: #dc5a5a;
|
|
10
|
+
--moz-color-warning: #fa9e23;
|
|
11
|
+
--moz-color-success: #357e63;
|
|
12
|
+
--moz-color-info: #2f86d6;
|
|
13
|
+
--moz-color-surface: #ffffff;
|
|
14
|
+
--moz-color-on-accent: #ffffff;
|
|
15
|
+
--moz-color-on-status: #ffffff;
|
|
16
|
+
--moz-color-on-warning: var(--moz-color-text);
|
|
17
|
+
--moz-color-surface-subtle: #f4f4f9;
|
|
18
|
+
--moz-color-surface-muted: #f8f8fd;
|
|
19
|
+
--moz-color-border: #bac6d4;
|
|
20
|
+
--moz-color-border-subtle: #e1e3f0;
|
|
21
|
+
--moz-color-text: #28364e;
|
|
22
|
+
--moz-color-text-secondary: #6a7184;
|
|
23
|
+
--moz-color-text-subtle: #96a5be;
|
|
24
|
+
--moz-color-text-muted: #a7b1bc;
|
|
25
|
+
--moz-color-disabled: #e0e1ec;
|
|
26
|
+
/* 반전 표면 — 툴팁처럼 본문과 배경/전경이 뒤집힌 떠 있는 조각 */
|
|
27
|
+
--moz-color-inverse-surface: var(--moz-color-text);
|
|
28
|
+
--moz-color-inverse-text: var(--moz-color-surface);
|
|
29
|
+
/* ── 파생(알파) — 위 solid 토큰을 따라간다 ── */
|
|
30
|
+
--moz-color-accent-ring: color-mix(in srgb, var(--moz-color-accent) 20%, transparent);
|
|
31
|
+
--moz-color-accent-ring-strong: color-mix(in srgb, var(--moz-color-accent) 30%, transparent);
|
|
32
|
+
--moz-color-accent-soft: color-mix(in srgb, var(--moz-color-accent) 16%, transparent);
|
|
33
|
+
--moz-color-accent-ghost: color-mix(in srgb, var(--moz-color-accent) 9%, transparent);
|
|
34
|
+
--moz-color-danger-ring: color-mix(in srgb, var(--moz-color-danger) 20%, transparent);
|
|
35
|
+
--moz-color-danger-ghost: color-mix(in srgb, var(--moz-color-danger) 13%, transparent);
|
|
36
|
+
--moz-color-muted-soft: color-mix(in srgb, var(--moz-color-text-subtle) 16%, transparent);
|
|
37
|
+
--moz-color-info-soft: color-mix(in srgb, var(--moz-color-info) 16%, transparent);
|
|
38
|
+
--moz-color-success-soft: color-mix(in srgb, var(--moz-color-success) 16%, transparent);
|
|
39
|
+
--moz-color-warning-soft: color-mix(in srgb, var(--moz-color-warning) 16%, transparent);
|
|
40
|
+
--moz-color-danger-soft: color-mix(in srgb, var(--moz-color-danger) 16%, transparent);
|
|
41
|
+
--moz-color-accent-edge: color-mix(in srgb, var(--moz-color-accent) 32%, transparent);
|
|
42
|
+
--moz-color-info-edge: color-mix(in srgb, var(--moz-color-info) 32%, transparent);
|
|
43
|
+
--moz-color-success-edge: color-mix(in srgb, var(--moz-color-success) 32%, transparent);
|
|
44
|
+
--moz-color-warning-edge: color-mix(in srgb, var(--moz-color-warning) 32%, transparent);
|
|
45
|
+
--moz-color-danger-edge: color-mix(in srgb, var(--moz-color-danger) 32%, transparent);
|
|
46
|
+
/* ── 그림자·스크림 ── */
|
|
47
|
+
--moz-color-shadow: rgb(57 55 122 / 0.1);
|
|
48
|
+
--moz-color-shadow-weak: rgb(0 0 0 / 0.05);
|
|
49
|
+
--moz-color-scrim: rgb(0 0 0 / 0.3);
|
|
50
|
+
--moz-color-scrim-strong: rgb(66 72 83 / 0.5);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
/* moz radius tokens — override in :root */
|
|
54
|
+
@layer moz {
|
|
55
|
+
:root {
|
|
56
|
+
/* 소형 마커 — 체크박스, 칩 내부 요소 */
|
|
57
|
+
--moz-radius-xs: 2px;
|
|
58
|
+
/* 컨트롤 박스 — 버튼·입력·셀렉트·탭·브레드크럼 (가장 많이 쓰이는 값) */
|
|
59
|
+
--moz-radius-control: 4px;
|
|
60
|
+
/* 보조 표면 — 캘린더 컨테이너, 슬라이더 트랙, 세그먼트 그룹 */
|
|
61
|
+
--moz-radius-surface: 6px;
|
|
62
|
+
/* 떠 있는 패널 — 팝업·대화상자 */
|
|
63
|
+
--moz-radius-panel: 10px;
|
|
64
|
+
/* 칩 — 태그 아이템처럼 컨트롤보다 작은 조각 (panel 과 기본값은 같지만 역할이 다르다:
|
|
65
|
+
소비자가 panel 을 카드값으로 올려도 태그까지 알약이 되지 않도록 분리해 둔다) */
|
|
66
|
+
--moz-radius-chip: 10px;
|
|
67
|
+
/* 알약 — 토글, 토스트, 라디오 도트, 슬라이더 핸들 */
|
|
68
|
+
--moz-radius-pill: 999px;
|
|
69
|
+
/* 원 — 아바타 */
|
|
70
|
+
--moz-radius-circle: 50%;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Notification 스타일 — 떠 있는 알림 카드·스택 컨테이너·알림 목록 항목 (ITSM-2026-003295).
|
|
75
|
+
*
|
|
76
|
+
* 디자인 참고: APS `Notification.vue`(아이콘 + 제목 줄, 들여 쓴 본문)와
|
|
77
|
+
* `NotificationPanel.vue`(제목 + 안 읽음 점, 본문, 시각). 값은 MOZ 토큰으로 옮겼다 — 카드 곡률은
|
|
78
|
+
* `--moz-radius-panel`(소비자가 16px 로 매핑), 색은 전부 `--moz-color-*` 라 다크모드는 소비자 테마를 따른다.
|
|
79
|
+
*
|
|
80
|
+
* 유형(tone)은 상태 아이콘 색으로만 나타낸다. APS 의 좌측 유형 바는 두지 않는다 — 아이콘과 같은 정보를
|
|
81
|
+
* 두 번 보여 주고, 16px 곡률에서는 바 끝이 휘어 보였다(ITSM-2026-003335).
|
|
82
|
+
*
|
|
83
|
+
* 마크업
|
|
84
|
+
* - 스택: `div.moz-notification-stack.moz-notification-stack--<position>[data-position]`
|
|
85
|
+
* - 카드: `div.moz-notification-card[data-tone](.is-selectable)` + `.moz-notification-card-icon` +
|
|
86
|
+
* `.moz-notification-card-main`(`.moz-notification-card-content` → heading·description·time,
|
|
87
|
+
* `.moz-notification-card-actions`) + `.moz-notification-card-close`
|
|
88
|
+
* - 목록 항목: `(button|div).moz-notification-item[data-unread]` + header(heading·unread·meta) +
|
|
89
|
+
* description + time
|
|
90
|
+
*/
|
|
91
|
+
@layer moz {
|
|
92
|
+
.moz-notification-stack {
|
|
93
|
+
position: fixed;
|
|
94
|
+
inset: 0;
|
|
95
|
+
display: flex;
|
|
96
|
+
gap: 8px;
|
|
97
|
+
padding: 20px;
|
|
98
|
+
overflow: hidden;
|
|
99
|
+
z-index: var(--moz-notification-z, 2000);
|
|
100
|
+
pointer-events: none;
|
|
101
|
+
}
|
|
102
|
+
.moz-notification-stack > .moz-overlay-portal {
|
|
103
|
+
display: contents;
|
|
104
|
+
}
|
|
105
|
+
.moz-notification-stack--top, .moz-notification-stack--top-right, .moz-notification-stack--top-left {
|
|
106
|
+
flex-direction: column;
|
|
107
|
+
}
|
|
108
|
+
.moz-notification-stack--bottom, .moz-notification-stack--bottom-right, .moz-notification-stack--bottom-left {
|
|
109
|
+
flex-direction: column-reverse;
|
|
110
|
+
}
|
|
111
|
+
.moz-notification-stack--top, .moz-notification-stack--bottom {
|
|
112
|
+
align-items: center;
|
|
113
|
+
}
|
|
114
|
+
.moz-notification-stack--top-right, .moz-notification-stack--bottom-right {
|
|
115
|
+
align-items: flex-end;
|
|
116
|
+
}
|
|
117
|
+
.moz-notification-stack--top-left, .moz-notification-stack--bottom-left {
|
|
118
|
+
align-items: flex-start;
|
|
119
|
+
}
|
|
120
|
+
.moz-notification-card {
|
|
121
|
+
position: relative;
|
|
122
|
+
display: flex;
|
|
123
|
+
align-items: flex-start;
|
|
124
|
+
gap: 10px;
|
|
125
|
+
box-sizing: border-box;
|
|
126
|
+
width: 360px;
|
|
127
|
+
max-width: 100%;
|
|
128
|
+
padding: 12px;
|
|
129
|
+
border: 1px solid var(--moz-color-border-subtle);
|
|
130
|
+
border-radius: var(--moz-radius-panel);
|
|
131
|
+
background-color: var(--moz-color-surface);
|
|
132
|
+
box-shadow: 0 8px 24px var(--moz-color-shadow);
|
|
133
|
+
color: var(--moz-color-text);
|
|
134
|
+
pointer-events: auto;
|
|
135
|
+
--_notification-solid: var(--moz-color-info);
|
|
136
|
+
}
|
|
137
|
+
.moz-notification-card[data-tone=success] {
|
|
138
|
+
--_notification-solid: var(--moz-color-success);
|
|
139
|
+
}
|
|
140
|
+
.moz-notification-card[data-tone=warning] {
|
|
141
|
+
--_notification-solid: var(--moz-color-warning);
|
|
142
|
+
}
|
|
143
|
+
.moz-notification-card[data-tone=danger] {
|
|
144
|
+
--_notification-solid: var(--moz-color-danger);
|
|
145
|
+
}
|
|
146
|
+
.moz-notification-card[data-tone=neutral] {
|
|
147
|
+
--_notification-solid: var(--moz-color-text-secondary);
|
|
148
|
+
}
|
|
149
|
+
.moz-notification-card-icon {
|
|
150
|
+
display: inline-flex;
|
|
151
|
+
flex-shrink: 0;
|
|
152
|
+
align-items: center;
|
|
153
|
+
justify-content: center;
|
|
154
|
+
min-width: 20px;
|
|
155
|
+
min-height: 20px;
|
|
156
|
+
color: var(--_notification-solid);
|
|
157
|
+
}
|
|
158
|
+
.moz-notification-card-icon > svg {
|
|
159
|
+
width: 20px;
|
|
160
|
+
height: 20px;
|
|
161
|
+
}
|
|
162
|
+
.moz-notification-card-main {
|
|
163
|
+
display: flex;
|
|
164
|
+
flex: 1;
|
|
165
|
+
flex-direction: column;
|
|
166
|
+
gap: 8px;
|
|
167
|
+
min-width: 0;
|
|
168
|
+
}
|
|
169
|
+
.moz-notification-card-content {
|
|
170
|
+
display: flex;
|
|
171
|
+
flex-direction: column;
|
|
172
|
+
gap: 2px;
|
|
173
|
+
min-width: 0;
|
|
174
|
+
border-radius: var(--moz-radius-control);
|
|
175
|
+
}
|
|
176
|
+
.moz-notification-card.is-selectable .moz-notification-card-content {
|
|
177
|
+
cursor: pointer;
|
|
178
|
+
}
|
|
179
|
+
.moz-notification-card-content[role=button]:focus-visible {
|
|
180
|
+
outline: none;
|
|
181
|
+
box-shadow: 0 0 0 3px var(--moz-color-accent-ring);
|
|
182
|
+
}
|
|
183
|
+
.moz-notification-card-heading {
|
|
184
|
+
color: var(--moz-color-text);
|
|
185
|
+
font-size: 14px;
|
|
186
|
+
font-weight: 600;
|
|
187
|
+
line-height: 1.4;
|
|
188
|
+
overflow-wrap: anywhere;
|
|
189
|
+
}
|
|
190
|
+
.moz-notification-card-description {
|
|
191
|
+
color: var(--moz-color-text-secondary);
|
|
192
|
+
font-size: 13px;
|
|
193
|
+
line-height: 1.5;
|
|
194
|
+
overflow-wrap: anywhere;
|
|
195
|
+
}
|
|
196
|
+
.moz-notification-card-time {
|
|
197
|
+
margin-top: 2px;
|
|
198
|
+
color: var(--moz-color-text-subtle);
|
|
199
|
+
font-size: 12px;
|
|
200
|
+
line-height: 1.4;
|
|
201
|
+
}
|
|
202
|
+
.moz-notification-card-actions {
|
|
203
|
+
display: flex;
|
|
204
|
+
flex-wrap: wrap;
|
|
205
|
+
gap: 8px;
|
|
206
|
+
}
|
|
207
|
+
.moz-notification-card-close {
|
|
208
|
+
display: inline-flex;
|
|
209
|
+
flex-shrink: 0;
|
|
210
|
+
align-items: center;
|
|
211
|
+
justify-content: center;
|
|
212
|
+
width: 24px;
|
|
213
|
+
height: 24px;
|
|
214
|
+
padding: 0;
|
|
215
|
+
margin: -2px -2px 0 0;
|
|
216
|
+
border: 0;
|
|
217
|
+
border-radius: var(--moz-radius-control);
|
|
218
|
+
background: transparent;
|
|
219
|
+
color: var(--moz-color-text-subtle);
|
|
220
|
+
cursor: pointer;
|
|
221
|
+
}
|
|
222
|
+
.moz-notification-card-close:hover {
|
|
223
|
+
background-color: var(--moz-color-surface-muted);
|
|
224
|
+
color: var(--moz-color-text-secondary);
|
|
225
|
+
}
|
|
226
|
+
.moz-notification-card-close:focus-visible {
|
|
227
|
+
outline: none;
|
|
228
|
+
box-shadow: 0 0 0 3px var(--moz-color-accent-ring);
|
|
229
|
+
}
|
|
230
|
+
.moz-notification-item {
|
|
231
|
+
display: flex;
|
|
232
|
+
flex-direction: column;
|
|
233
|
+
gap: 4px;
|
|
234
|
+
box-sizing: border-box;
|
|
235
|
+
width: 100%;
|
|
236
|
+
margin: 0;
|
|
237
|
+
padding: 12px 16px;
|
|
238
|
+
border: 0;
|
|
239
|
+
border-radius: 0;
|
|
240
|
+
background: transparent;
|
|
241
|
+
color: var(--moz-color-text);
|
|
242
|
+
font: inherit;
|
|
243
|
+
text-align: left;
|
|
244
|
+
}
|
|
245
|
+
button.moz-notification-item {
|
|
246
|
+
cursor: pointer;
|
|
247
|
+
}
|
|
248
|
+
button.moz-notification-item:hover {
|
|
249
|
+
background-color: var(--moz-color-surface-muted);
|
|
250
|
+
}
|
|
251
|
+
button.moz-notification-item:focus-visible {
|
|
252
|
+
outline: none;
|
|
253
|
+
box-shadow: inset 0 0 0 2px var(--moz-color-accent-ring);
|
|
254
|
+
}
|
|
255
|
+
.moz-notification-item-header {
|
|
256
|
+
display: flex;
|
|
257
|
+
align-items: center;
|
|
258
|
+
gap: 6px;
|
|
259
|
+
min-width: 0;
|
|
260
|
+
}
|
|
261
|
+
.moz-notification-item-heading {
|
|
262
|
+
min-width: 0;
|
|
263
|
+
color: var(--moz-color-text-secondary);
|
|
264
|
+
font-size: 13px;
|
|
265
|
+
font-weight: 500;
|
|
266
|
+
line-height: 1.4;
|
|
267
|
+
overflow-wrap: anywhere;
|
|
268
|
+
}
|
|
269
|
+
.moz-notification-item.is-unread .moz-notification-item-heading {
|
|
270
|
+
color: var(--moz-color-text);
|
|
271
|
+
font-weight: 600;
|
|
272
|
+
}
|
|
273
|
+
.moz-notification-item-unread {
|
|
274
|
+
display: inline-flex;
|
|
275
|
+
flex-shrink: 0;
|
|
276
|
+
}
|
|
277
|
+
.moz-notification-item-dot {
|
|
278
|
+
width: 6px;
|
|
279
|
+
height: 6px;
|
|
280
|
+
border-radius: var(--moz-radius-circle);
|
|
281
|
+
background-color: var(--moz-color-danger);
|
|
282
|
+
}
|
|
283
|
+
.moz-notification-item-sr {
|
|
284
|
+
position: absolute;
|
|
285
|
+
width: 1px;
|
|
286
|
+
height: 1px;
|
|
287
|
+
padding: 0;
|
|
288
|
+
margin: -1px;
|
|
289
|
+
overflow: hidden;
|
|
290
|
+
clip: rect(0, 0, 0, 0);
|
|
291
|
+
white-space: nowrap;
|
|
292
|
+
border: 0;
|
|
293
|
+
}
|
|
294
|
+
.moz-notification-item-meta {
|
|
295
|
+
display: inline-flex;
|
|
296
|
+
flex-shrink: 0;
|
|
297
|
+
align-items: center;
|
|
298
|
+
gap: 4px;
|
|
299
|
+
margin-left: auto;
|
|
300
|
+
color: var(--moz-color-text-subtle);
|
|
301
|
+
font-size: 12px;
|
|
302
|
+
}
|
|
303
|
+
.moz-notification-item-description {
|
|
304
|
+
color: var(--moz-color-text-secondary);
|
|
305
|
+
font-size: 13px;
|
|
306
|
+
line-height: 1.5;
|
|
307
|
+
overflow-wrap: anywhere;
|
|
308
|
+
}
|
|
309
|
+
.moz-notification-item-time {
|
|
310
|
+
color: var(--moz-color-text-subtle);
|
|
311
|
+
font-size: 12px;
|
|
312
|
+
line-height: 1.4;
|
|
313
|
+
}
|
|
314
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vmscloud/moz-ui-components-core",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.62",
|
|
4
4
|
"description": "Framework-agnostic headless UI primitives (lit-html) for @vmscloud/moz-ui-components — mount-function factory core. References the moz-ui-grid runtime pattern but has ZERO dependency on any grid package.",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"type": "module",
|