@coolms/ui-react 0.1.0-alpha.37 → 0.1.0-alpha.38
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 +9 -0
- package/dist/components/SectionHeader.d.ts +5 -0
- package/dist/components/tipDismissal.d.ts +14 -0
- package/dist/index.js +1447 -1371
- package/package.json +1 -1
- package/src/kit.css +13 -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); }
|
|
@@ -575,7 +583,8 @@
|
|
|
575
583
|
.cms-filter-menu:not(.cms-filter-menu--active):hover { background: var(--cms-hover-bg); color: var(--cms-text); }
|
|
576
584
|
.cms-pane-toolbar__action:hover:not([aria-disabled='true']) { background: var(--cms-btn-hover-bg); }
|
|
577
585
|
.cms-pane-toolbar__more:hover { background: var(--cms-btn-hover-bg); }
|
|
578
|
-
.cms-pane-toolbar__action:hover > .cms-pane-toolbar__tip { display: block; }
|
|
586
|
+
.cms-pane-toolbar__action:not([data-tip-dismissed]):hover > .cms-pane-toolbar__tip { display: block; }
|
|
587
|
+
.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
588
|
.cms-pane-toolbar:has(.cms-pane-toolbar__action:hover > .cms-pane-toolbar__tip) { overflow: visible; }
|
|
580
589
|
}
|
|
581
590
|
.cms-mail-row.is-selected { background: var(--cms-row-selected); }
|
|
@@ -849,7 +858,8 @@
|
|
|
849
858
|
.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
859
|
/* A label hidden: its tooltip on hover and on keyboard focus, never the action's only name. */
|
|
851
860
|
.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
|
-
|
|
861
|
+
/* Escape hides it, whichever showed it, until the pointer and the focus have left (data-tip-dismissed). */
|
|
862
|
+
.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
863
|
/* 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
864
|
.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
865
|
.cms-pane-toolbar__measure { position: absolute; top: 0; left: 0; display: flex; visibility: hidden; pointer-events: none; }
|