@coolms/ui-react 0.1.0-alpha.37 → 0.1.0-alpha.39
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 +18 -0
- package/dist/components/Call.d.ts +3 -1
- package/dist/components/ScreenShell.d.ts +7 -1
- package/dist/components/SectionHeader.d.ts +5 -0
- package/dist/components/Structure.d.ts +6 -1
- package/dist/components/Workspace.d.ts +6 -1
- package/dist/components/tipDismissal.d.ts +14 -0
- package/dist/index.js +1466 -1370
- package/package.json +1 -1
- package/src/kit.css +21 -3
package/package.json
CHANGED
package/src/kit.css
CHANGED
|
@@ -227,7 +227,9 @@
|
|
|
227
227
|
.cms-section-header__actions { display: flex; align-items: center; gap: var(--cms-space-1); flex: none; margin-inline-start: auto; }
|
|
228
228
|
.cms-section-header__secondary { gap: var(--cms-space-1); }
|
|
229
229
|
.cms-section-header__secondary--bare, .cms-section-header__primary--bare { padding-inline: var(--cms-space-2); }
|
|
230
|
-
|
|
230
|
+
/* Its contents fade, not the button: the reason drawn inside it keeps its full contrast. */
|
|
231
|
+
.cms-section-header__secondary[aria-disabled="true"] { cursor: not-allowed; }
|
|
232
|
+
.cms-section-header__secondary[aria-disabled="true"] > :not(.cms-section-header__tip) { opacity: .55; }
|
|
231
233
|
/* The parts measured out of sight, in a box of no size: each keeps its own width, and the page none of it. */
|
|
232
234
|
.cms-section-header__measure { position: absolute; top: 0; left: 0; display: flex; width: 0; height: 0; overflow: hidden; visibility: hidden; pointer-events: none; }
|
|
233
235
|
.cms-section-header__measure > span { flex: none; display: inline-flex; }
|
|
@@ -237,6 +239,12 @@
|
|
|
237
239
|
.cms-section-header__secondary--bare, .cms-section-header__primary--bare, .cms-section-header__more { min-width: var(--cms-touch-target-min, 44px); min-height: var(--cms-touch-target-min, 44px); }
|
|
238
240
|
}
|
|
239
241
|
.cms-section-header__primary { display: inline-flex; align-items: center; }
|
|
242
|
+
/* A refused action's reason, drawn under the row at its end (the row is its box, so it never leaves the column, however
|
|
243
|
+
narrow): shown on hover, on keyboard focus and after a press. */
|
|
244
|
+
.cms-section-header__tip { position: absolute; top: calc(100% + var(--cms-space-1)); inset-inline-end: 0; z-index: 20; display: none; width: max-content; max-width: min(18rem, 100%); padding: var(--cms-space-1) var(--cms-space-2); border-radius: var(--cms-radius-sm); background: var(--cms-text); color: var(--cms-bg-surface); font-size: var(--cms-font-size-meta); font-weight: 400; line-height: 1.4; text-align: start; white-space: normal; pointer-events: none; }
|
|
245
|
+
/* Escape hides it, whichever showed it, until the pointer and the focus have left (data-tip-dismissed). */
|
|
246
|
+
.cms-section-header__secondary:not([data-tip-dismissed]):focus-visible > .cms-section-header__tip, .cms-section-header__secondary:not([data-tip-dismissed])[data-reason-shown] > .cms-section-header__tip,
|
|
247
|
+
.cms-section-header__primary > .cms-button:not([data-tip-dismissed]):focus-visible ~ .cms-section-header__tip, .cms-section-header__primary > .cms-button:not([data-tip-dismissed])[data-reason-shown] ~ .cms-section-header__tip { display: block; }
|
|
240
248
|
.cms-section-header__primary .cms-button[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
|
|
241
249
|
.cms-section-header__primary--split > .cms-button:first-child { border-start-end-radius: 0; border-end-end-radius: 0; }
|
|
242
250
|
.cms-section-header__split { border-start-start-radius: 0; border-end-start-radius: 0; margin-inline-start: 1px; padding-inline: var(--cms-space-2); }
|
|
@@ -327,6 +335,14 @@
|
|
|
327
335
|
.cms-icon-button.cms-screen__icon.cms-screen__icon--active { background: var(--cms-accent-light); color: var(--cms-accent-text); }
|
|
328
336
|
.cms-screen__content { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior-y: contain; }
|
|
329
337
|
.cms-screen__primary { position: absolute; right: var(--cms-space-4); bottom: var(--cms-space-4); z-index: 2; width: calc(var(--cms-control-height-lg) + var(--cms-space-3)); height: calc(var(--cms-control-height-lg) + var(--cms-space-3)); min-height: 0; padding: 0; border-radius: 50%; justify-content: center; box-shadow: var(--cms-shadow-md); }
|
|
338
|
+
/* A refused primary stays, greyed as a whole, as the header's does: a wash of the surface over the button and its icon,
|
|
339
|
+
under the reason drawn above it, which keeps its full contrast (an opacity on the button would fade the reason too). */
|
|
340
|
+
.cms-screen__primary[aria-disabled="true"] { cursor: not-allowed; }
|
|
341
|
+
.cms-screen__primary[aria-disabled="true"]::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; background: var(--cms-surface); opacity: .45; pointer-events: none; }
|
|
342
|
+
/* Its reason, above the button at its end, never wider than the screen: shown on keyboard focus and after a press (on
|
|
343
|
+
hover too, below), until Escape. */
|
|
344
|
+
.cms-screen__tip { position: absolute; bottom: calc(100% + var(--cms-space-2)); inset-inline-end: 0; z-index: 20; display: none; width: max-content; max-width: min(18rem, calc(100vw - 2 * var(--cms-space-4))); padding: var(--cms-space-1) var(--cms-space-2); border-radius: var(--cms-radius-sm); background: var(--cms-text); color: var(--cms-bg-surface); font-size: var(--cms-font-size-meta); font-weight: 400; line-height: 1.4; text-align: start; white-space: normal; pointer-events: none; }
|
|
345
|
+
.cms-screen__primary:not([data-tip-dismissed]):focus-visible > .cms-screen__tip, .cms-screen__primary:not([data-tip-dismissed])[data-reason-shown] > .cms-screen__tip { display: block; }
|
|
330
346
|
/* bar-hidden: the bar steps out of view, collapsed rather than removed, so focus can still reach it
|
|
331
347
|
(and brings it back). */
|
|
332
348
|
.cms-screen[data-bar-hidden] > .cms-screen__bar { height: 0; min-height: 0; padding-top: 0; padding-bottom: 0; border-bottom-width: 0; overflow: hidden; }
|
|
@@ -575,7 +591,8 @@
|
|
|
575
591
|
.cms-filter-menu:not(.cms-filter-menu--active):hover { background: var(--cms-hover-bg); color: var(--cms-text); }
|
|
576
592
|
.cms-pane-toolbar__action:hover:not([aria-disabled='true']) { background: var(--cms-btn-hover-bg); }
|
|
577
593
|
.cms-pane-toolbar__more:hover { background: var(--cms-btn-hover-bg); }
|
|
578
|
-
.cms-pane-toolbar__action:hover > .cms-pane-toolbar__tip { display: block; }
|
|
594
|
+
.cms-pane-toolbar__action:not([data-tip-dismissed]):hover > .cms-pane-toolbar__tip { display: block; }
|
|
595
|
+
.cms-screen__primary:not([data-tip-dismissed]):hover > .cms-screen__tip, .cms-section-header__secondary:not([data-tip-dismissed]):hover > .cms-section-header__tip, .cms-section-header__primary > .cms-button:not([data-tip-dismissed]):hover ~ .cms-section-header__tip { display: block; }
|
|
579
596
|
.cms-pane-toolbar:has(.cms-pane-toolbar__action:hover > .cms-pane-toolbar__tip) { overflow: visible; }
|
|
580
597
|
}
|
|
581
598
|
.cms-mail-row.is-selected { background: var(--cms-row-selected); }
|
|
@@ -849,7 +866,8 @@
|
|
|
849
866
|
.cms-pane-toolbar__status { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; text-align: end; color: var(--cms-text-muted); font-size: var(--cms-font-size-meta); }
|
|
850
867
|
/* A label hidden: its tooltip on hover and on keyboard focus, never the action's only name. */
|
|
851
868
|
.cms-pane-toolbar__tip { position: absolute; top: calc(100% + var(--cms-space-1)); left: 50%; z-index: 20; display: none; padding: var(--cms-space-1) var(--cms-space-2); border-radius: var(--cms-radius-sm); background: var(--cms-text); color: var(--cms-bg-surface); font-size: var(--cms-font-size-meta); transform: translateX(-50%); pointer-events: none; }
|
|
852
|
-
|
|
869
|
+
/* Escape hides it, whichever showed it, until the pointer and the focus have left (data-tip-dismissed). */
|
|
870
|
+
.cms-pane-toolbar__action:not([data-tip-dismissed]):focus-visible > .cms-pane-toolbar__tip, .cms-pane-toolbar__action:not([data-tip-dismissed])[data-reason-shown] > .cms-pane-toolbar__tip { display: block; }
|
|
853
871
|
/* The row's tooltips overflow the row: the row clips only its own line, so the tooltip is drawn by a row that lets it. */
|
|
854
872
|
.cms-pane-toolbar:has(.cms-pane-toolbar__action:focus-visible > .cms-pane-toolbar__tip), .cms-pane-toolbar:has(.cms-pane-toolbar__action[data-reason-shown] > .cms-pane-toolbar__tip) { overflow: visible; }
|
|
855
873
|
.cms-pane-toolbar__measure { position: absolute; top: 0; left: 0; display: flex; visibility: hidden; pointer-events: none; }
|