@coolms/ui-react 0.1.0-alpha.29 → 0.1.0-alpha.30
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/CHANGELOG.md +10 -0
- package/design-tokens.lock.json +4 -4
- package/dist/components/FilePicker.d.ts +8 -0
- package/dist/components/Icon.d.ts +1 -1
- package/dist/components/SectionHeader.d.ts +42 -0
- package/dist/components/Workspace.d.ts +26 -4
- package/dist/index.d.ts +2 -1
- package/dist/index.js +1231 -1104
- package/kit.contract.json +1 -0
- package/package.json +1 -1
- package/src/kit.css +30 -2
package/kit.contract.json
CHANGED
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
"state": { "implementedBy": "State", "states": ["loading", "empty", "error", "denied", "page", "block", "inline", "with-action", "delayed"] },
|
|
14
14
|
"error-banner": { "implementedBy": "ErrorBanner", "states": ["default", "with-retry"] },
|
|
15
15
|
"page-header": { "implementedBy": "PageHeader", "states": ["default", "with-actions", "with-back-link"] },
|
|
16
|
+
"section-header": { "implementedBy": "SectionHeader", "states": ["default", "with-primary", "with-primary-menu", "with-more", "action-disabled", "with-context", "full-width"] },
|
|
16
17
|
"tab-strip": { "implementedBy": "TabStrip", "states": ["default", "active", "with-count"] },
|
|
17
18
|
"list": { "implementedBy": "List", "states": ["loading", "empty", "populated", "selected", "error", "pulled"] },
|
|
18
19
|
"avatar": { "implementedBy": "Avatar", "states": ["picture", "initials", "presence", "connection", "deleted"] },
|
package/package.json
CHANGED
package/src/kit.css
CHANGED
|
@@ -212,6 +212,21 @@
|
|
|
212
212
|
|
|
213
213
|
/* Page header */
|
|
214
214
|
.cms-page-header { padding: 16px 0 12px; border-bottom: 1px solid var(--cms-border-light); margin-bottom: 16px; }
|
|
215
|
+
/* section-header: row 1 the title, the primary and More; row 2 the context; no divider lines. */
|
|
216
|
+
.cms-section-header { display: flex; flex-direction: column; background: var(--cms-surface); }
|
|
217
|
+
.cms-section-header--full { padding-inline: var(--cms-space-5); }
|
|
218
|
+
.cms-section-header__row { display: flex; align-items: center; gap: var(--cms-space-2); height: var(--cms-pane-toolbar-height); min-width: 0; white-space: nowrap; }
|
|
219
|
+
.cms-section-header__row > .cms-icon { flex: none; color: var(--cms-text-secondary); }
|
|
220
|
+
.cms-section-header__title { flex: 1 1 auto; min-width: 0; margin: 0; overflow: hidden; text-overflow: ellipsis; font-size: var(--cms-font-size-title-md); font-weight: 600; color: var(--cms-text); }
|
|
221
|
+
.cms-section-header__actions { display: flex; align-items: center; gap: var(--cms-space-1); flex: none; }
|
|
222
|
+
.cms-section-header__primary { display: inline-flex; align-items: center; }
|
|
223
|
+
.cms-section-header__primary .cms-button[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
|
|
224
|
+
.cms-section-header__primary--split > .cms-button:first-child { border-start-end-radius: 0; border-end-end-radius: 0; }
|
|
225
|
+
.cms-section-header__split { border-start-start-radius: 0; border-end-start-radius: 0; margin-inline-start: 1px; padding-inline: var(--cms-space-2); }
|
|
226
|
+
.cms-section-header__more { display: inline-flex; align-items: center; justify-content: center; width: var(--cms-control-height-md); height: var(--cms-control-height-md); border: 0; border-radius: var(--cms-radius-md); background: transparent; color: var(--cms-text-muted); cursor: pointer; }
|
|
227
|
+
.cms-section-header__more:hover { background: var(--cms-btn-hover-bg); }
|
|
228
|
+
.cms-section-header__more:focus-visible { outline: 2px solid var(--cms-focus-ring); outline-offset: 1px; }
|
|
229
|
+
.cms-section-header__context { display: flex; align-items: center; min-width: 0; height: var(--cms-pane-header-height); }
|
|
215
230
|
.cms-page-header__back { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 8px; color: var(--cms-accent-text); text-decoration: none; }
|
|
216
231
|
.cms-page-header__back:hover { text-decoration: underline; }
|
|
217
232
|
.cms-page-header__row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
|
|
@@ -362,7 +377,7 @@
|
|
|
362
377
|
*/
|
|
363
378
|
.cms-icon { flex: none; }
|
|
364
379
|
.cms-icon--blank { display: inline-block; }
|
|
365
|
-
:where(.cms-shell__item, .cms-chip, .cms-mail-
|
|
380
|
+
:where(.cms-shell__item, .cms-chip, .cms-mail-row__open, .cms-mail-row__check, .cms-call-button, .cms-call-bar__icon, .cms-composer__send-round, .cms-signin-form__show):focus-visible {
|
|
366
381
|
outline: 2px solid var(--cms-focus-ring);
|
|
367
382
|
outline-offset: 2px;
|
|
368
383
|
}
|
|
@@ -492,6 +507,19 @@
|
|
|
492
507
|
cursor: pointer;
|
|
493
508
|
}
|
|
494
509
|
.cms-mail-row:hover { background: var(--cms-surface-muted); }
|
|
510
|
+
.cms-mail-row__open { display: flex; align-items: flex-start; gap: var(--cms-space-3); flex: 1; min-width: 0; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
|
|
511
|
+
.cms-mail-row__lead { position: relative; flex: none; width: 40px; height: 40px; }
|
|
512
|
+
.cms-mail-row__check {
|
|
513
|
+
appearance: none; position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; border-radius: 50%; opacity: 0; cursor: pointer;
|
|
514
|
+
background: var(--cms-surface) center / 18px 18px no-repeat; box-shadow: inset 0 0 0 2px var(--cms-border);
|
|
515
|
+
}
|
|
516
|
+
.cms-mail-row__check:checked {
|
|
517
|
+
background-color: var(--cms-accent); box-shadow: none;
|
|
518
|
+
background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27white%27 stroke-width=%273%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27m5 12 5 5 9-10%27/%3E%3C/svg%3E");
|
|
519
|
+
}
|
|
520
|
+
.cms-mail-row__check[aria-disabled="true"] { cursor: progress; }
|
|
521
|
+
.cms-mail-row:is(:hover, :focus-within, .is-selecting, .is-checked) .cms-mail-row__check { opacity: 1; }
|
|
522
|
+
.cms-mail-row:is(:hover, :focus-within, .is-selecting, .is-checked) .cms-mail-row__lead > .cms-avatar { visibility: hidden; }
|
|
495
523
|
.cms-mail-row.is-selected { background: var(--cms-row-selected); }
|
|
496
524
|
.cms-mail-row__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; line-height: 1.5; }
|
|
497
525
|
.cms-mail-row__line { display: flex; align-items: center; gap: var(--cms-space-2); min-width: 0; }
|
|
@@ -499,7 +527,7 @@
|
|
|
499
527
|
.cms-mail-row__time { color: var(--cms-text-muted); font-size: var(--cms-font-size-meta); white-space: nowrap; }
|
|
500
528
|
.cms-mail-row__subject { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--cms-text); font-size: var(--cms-font-size-meta); }
|
|
501
529
|
.cms-mail-row__preview { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--cms-text-muted); font-size: var(--cms-font-size-label); }
|
|
502
|
-
.cms-mail-row__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cms-accent); }
|
|
530
|
+
.cms-mail-row__dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--cms-accent); }
|
|
503
531
|
.cms-mail-row.is-unread .cms-mail-row__from, .cms-mail-row.is-unread .cms-mail-row__subject { font-weight: var(--cms-font-weight-semibold); }
|
|
504
532
|
.cms-mail-row .cms-icon { color: var(--cms-text-muted); }
|
|
505
533
|
|