domma-js 0.53.3 → 0.55.0

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,9 +1,9 @@
1
1
  /*!
2
- * Domma Elements CSS v0.53.3
2
+ * Domma Elements CSS v0.55.0
3
3
  * Dynamic Object Manipulation & Modeling API
4
4
  * (c) 2026 Darryl Waterhouse & DCBW-IT
5
- * Built: 2026-10-20T12:35:33.426Z
6
- * Commit: f2ce209
5
+ * Built: 2026-10-24T15:07:57.510Z
6
+ * Commit: 253e259
7
7
  */
8
8
 
9
9
  /**
@@ -366,6 +366,54 @@
366
366
  padding-bottom: 0;
367
367
  }
368
368
 
369
+ /* E.card options (src/components/card.js) */
370
+ .card-collapsible .card-body,
371
+ .card-collapse-icon {
372
+ transition-duration: var(--dm-card-duration, 200ms);
373
+ }
374
+
375
+ .card-no-animation,
376
+ .card-no-animation .card-body,
377
+ .card-no-animation .card-collapse-icon {
378
+ transition: none;
379
+ }
380
+
381
+ .card-collapse-icon {
382
+ display: inline-flex;
383
+ align-items: center;
384
+ }
385
+
386
+ .card-primary .card-collapse-icon,
387
+ .card-primary.card-collapsible .card-header:hover .card-collapse-icon {
388
+ color: inherit;
389
+ }
390
+
391
+ .card-title-icon {
392
+ display: inline-flex;
393
+ vertical-align: -0.125em;
394
+ margin-right: var(--dm-space-2);
395
+ }
396
+
397
+ .card-clickable {
398
+ cursor: pointer;
399
+ }
400
+
401
+ .card-shadow-none {
402
+ box-shadow: none;
403
+ }
404
+
405
+ .card-shadow-sm {
406
+ box-shadow: var(--dm-shadow-sm);
407
+ }
408
+
409
+ .card-shadow-lg {
410
+ box-shadow: var(--dm-shadow-lg);
411
+ }
412
+
413
+ .card-square {
414
+ border-radius: 0;
415
+ }
416
+
369
417
 
370
418
  /* ============================================
371
419
  MODAL
@@ -468,6 +516,50 @@
468
516
  max-width: 1200px !important;
469
517
  }
470
518
 
519
+ /* E.modal (src/components/modal.js): the caller's element becomes the full-screen layer
520
+ that holds the dialog drawn in its shadow root. The class is doubled so it outranks
521
+ .modal / .modal-sm / .modal.active, which describe the hand-written, JS-free modal
522
+ box and would otherwise hide or shrink the layer. z-index stays settable inline. */
523
+ .dm-modal-host.dm-modal-host {
524
+ display: none;
525
+ position: fixed;
526
+ inset: 0;
527
+ top: 0;
528
+ left: 0;
529
+ right: 0;
530
+ bottom: 0;
531
+ width: auto;
532
+ max-width: none;
533
+ height: auto;
534
+ max-height: none;
535
+ margin: 0;
536
+ padding: 0;
537
+ border: 0;
538
+ border-radius: 0;
539
+ background: none;
540
+ box-shadow: none;
541
+ overflow: visible;
542
+ opacity: 1;
543
+ transform: none;
544
+ transition: none;
545
+ pointer-events: auto;
546
+ align-items: center;
547
+ justify-content: center;
548
+ }
549
+
550
+ .dm-modal-host.dm-modal-host.dm-modal-visible {
551
+ display: flex;
552
+ }
553
+
554
+ .dm-modal-host.dm-modal-host.dm-modal-no-backdrop {
555
+ pointer-events: none;
556
+ }
557
+
558
+ .dm-modal-host.dm-modal-host.dm-modal-top {
559
+ align-items: flex-start;
560
+ padding-top: 5vh;
561
+ }
562
+
471
563
 
472
564
  /* ============================================
473
565
  TABS
@@ -1446,6 +1538,57 @@ textarea:not([class])::placeholder {
1446
1538
  color: var(--dm-info-text, var(--dm-white));
1447
1539
  }
1448
1540
 
1541
+ .badge-light {
1542
+ background-color: var(--dm-background-alt);
1543
+ color: var(--dm-text);
1544
+ }
1545
+
1546
+ .badge-dark {
1547
+ background-color: var(--dm-text);
1548
+ color: var(--dm-background);
1549
+ }
1550
+
1551
+ /* E.badge options (src/components/badge.js) */
1552
+ .badge {
1553
+ gap: 0.25rem;
1554
+ }
1555
+
1556
+ .badge-sm {
1557
+ padding: 2px 6px;
1558
+ font-size: 0.625rem;
1559
+ }
1560
+
1561
+ .badge-lg {
1562
+ padding: var(--dm-space-1) var(--dm-space-3);
1563
+ font-size: var(--dm-font-size-sm);
1564
+ }
1565
+
1566
+ .badge-rounded {
1567
+ border-radius: var(--dm-radius-sm);
1568
+ }
1569
+
1570
+ .badge-pill {
1571
+ border-radius: var(--dm-radius-full);
1572
+ }
1573
+
1574
+ /* Outline badges carry .badge-outline-<variant> instead of the filled .badge-<variant>:
1575
+ the page's text on its surface, ringed in the variant colour - legible in every theme
1576
+ (variant-coloured text is not: warning on a light surface is under 2:1) */
1577
+ .badge-outline {
1578
+ background-color: var(--dm-surface);
1579
+ color: var(--dm-text);
1580
+ box-shadow: inset 0 0 0 1px var(--dm-border);
1581
+ }
1582
+
1583
+ .badge-outline-primary { box-shadow: inset 0 0 0 1px var(--dm-primary); }
1584
+ .badge-outline-secondary { box-shadow: inset 0 0 0 1px var(--dm-text-secondary); }
1585
+ .badge-outline-success { box-shadow: inset 0 0 0 1px var(--dm-success); }
1586
+ .badge-outline-danger { box-shadow: inset 0 0 0 1px var(--dm-danger); }
1587
+ .badge-outline-warning { box-shadow: inset 0 0 0 1px var(--dm-warning); }
1588
+ .badge-outline-info { box-shadow: inset 0 0 0 1px var(--dm-info); }
1589
+ .badge-outline-light { box-shadow: inset 0 0 0 1px var(--dm-border); }
1590
+ .badge-outline-dark { box-shadow: inset 0 0 0 1px var(--dm-text); }
1591
+
1449
1592
  /* Pulse animation for new content indicators */
1450
1593
  .badge-pulse {
1451
1594
  animation: badge-pulse 2s ease-in-out infinite;
@@ -1491,6 +1634,15 @@ textarea:not([class])::placeholder {
1491
1634
  background-color: var(--dm-danger);
1492
1635
  }
1493
1636
 
1637
+ /* E.numberBadge puts the counter inside its target; a target already positioned keeps its own */
1638
+ :where(.badge-counter-host) {
1639
+ position: relative;
1640
+ }
1641
+
1642
+ domma-number-badge {
1643
+ display: inline-flex;
1644
+ }
1645
+
1494
1646
  /* Wrapper for positioned counter badges */
1495
1647
  .badge-counter-wrapper {
1496
1648
  position: relative;
@@ -5491,17 +5643,22 @@ code {
5491
5643
  TOOLTIP
5492
5644
  ============================================ */
5493
5645
 
5646
+ /* E.tooltip's bubble (src/components/tooltip.js): on document.body, placed at the target.
5647
+ Inverted against the page - the text colour as its fill - in light and dark themes. */
5494
5648
  .domma-tooltip {
5495
- position: absolute;
5496
- z-index: 9999;
5497
- background-color: var(--dm-background);
5498
- color: var(--dm-text);
5649
+ --dm-tooltip-bg: var(--dm-text);
5650
+ position: fixed;
5651
+ top: 0;
5652
+ left: 0;
5653
+ z-index: 10050;
5654
+ background-color: var(--dm-text);
5655
+ color: var(--dm-background);
5499
5656
  padding: 0.5rem 0.75rem;
5500
5657
  border-radius: var(--dm-radius-md);
5501
5658
  font-size: 0.875rem;
5502
5659
  line-height: 1.4;
5503
- max-width: 200px;
5504
- word-wrap: break-word;
5660
+ max-width: 250px;
5661
+ overflow-wrap: break-word;
5505
5662
  pointer-events: none;
5506
5663
  opacity: 0;
5507
5664
  transition: opacity var(--dm-transition-fast);
@@ -5512,9 +5669,42 @@ code {
5512
5669
  opacity: 1;
5513
5670
  }
5514
5671
 
5515
- [data-mode="dark"] .domma-tooltip {
5516
- background-color: var(--dm-text);
5517
- color: var(--dm-text-inverse);
5672
+ .domma-tooltip::before {
5673
+ content: '';
5674
+ position: absolute;
5675
+ border: 5px solid transparent;
5676
+ }
5677
+
5678
+ .domma-tooltip[data-position="top"]::before {
5679
+ top: 100%;
5680
+ left: 50%;
5681
+ transform: translateX(-50%);
5682
+ border-top-color: var(--dm-tooltip-bg);
5683
+ }
5684
+
5685
+ .domma-tooltip[data-position="bottom"]::before {
5686
+ bottom: 100%;
5687
+ left: 50%;
5688
+ transform: translateX(-50%);
5689
+ border-bottom-color: var(--dm-tooltip-bg);
5690
+ }
5691
+
5692
+ .domma-tooltip[data-position="left"]::before {
5693
+ left: 100%;
5694
+ top: 50%;
5695
+ transform: translateY(-50%);
5696
+ border-left-color: var(--dm-tooltip-bg);
5697
+ }
5698
+
5699
+ .domma-tooltip[data-position="right"]::before {
5700
+ right: 100%;
5701
+ top: 50%;
5702
+ transform: translateY(-50%);
5703
+ border-right-color: var(--dm-tooltip-bg);
5704
+ }
5705
+
5706
+ domma-tooltip {
5707
+ display: inline-block;
5518
5708
  }
5519
5709
 
5520
5710
 
@@ -5736,21 +5926,36 @@ code {
5736
5926
  }
5737
5927
 
5738
5928
  /* Toast variants */
5929
+ .domma-toast {
5930
+ position: relative;
5931
+ overflow: hidden;
5932
+ align-items: flex-start;
5933
+ border: 1px solid var(--dm-border);
5934
+ transition-duration: var(--dm-toast-duration, 300ms);
5935
+ }
5936
+
5739
5937
  .domma-toast.domma-toast-success {
5740
5938
  background-color: var(--dm-success);
5939
+ color: var(--dm-success-text, var(--dm-white));
5940
+ border-color: transparent;
5741
5941
  }
5742
5942
 
5743
5943
  .domma-toast.domma-toast-error {
5744
5944
  background-color: var(--dm-danger);
5945
+ color: var(--dm-danger-text, var(--dm-white));
5946
+ border-color: transparent;
5745
5947
  }
5746
5948
 
5747
5949
  .domma-toast.domma-toast-warning {
5748
5950
  background-color: var(--dm-warning);
5749
5951
  color: var(--dm-warning-text, var(--dm-text));
5952
+ border-color: transparent;
5750
5953
  }
5751
5954
 
5752
5955
  .domma-toast.domma-toast-info {
5753
5956
  background-color: var(--dm-info);
5957
+ color: var(--dm-info-text, var(--dm-white));
5958
+ border-color: transparent;
5754
5959
  }
5755
5960
 
5756
5961
  /* Toast internal structure */
@@ -5794,6 +5999,72 @@ code {
5794
5999
  display: block;
5795
6000
  }
5796
6001
 
6002
+ .domma-toast-close {
6003
+ font-size: 1.25rem;
6004
+ line-height: 1;
6005
+ }
6006
+
6007
+ .domma-toast-icon {
6008
+ display: flex;
6009
+ align-items: center;
6010
+ }
6011
+
6012
+ .domma-toast-title[hidden],
6013
+ .domma-toast-actions[hidden] {
6014
+ display: none;
6015
+ }
6016
+
6017
+ .domma-toast-message {
6018
+ overflow-wrap: anywhere;
6019
+ }
6020
+
6021
+ .domma-toast-actions {
6022
+ display: flex;
6023
+ gap: 0.5rem;
6024
+ margin-top: 0.5rem;
6025
+ }
6026
+
6027
+ .domma-toast-action {
6028
+ padding: 0.25rem 0.75rem;
6029
+ border: 1px solid currentColor;
6030
+ border-radius: var(--dm-radius-sm);
6031
+ background: transparent;
6032
+ color: inherit;
6033
+ font: inherit;
6034
+ font-size: 0.8rem;
6035
+ font-weight: 500;
6036
+ cursor: pointer;
6037
+ }
6038
+
6039
+ .domma-toast-action.is-primary {
6040
+ background-color: var(--dm-primary);
6041
+ color: var(--dm-primary-text, var(--dm-white));
6042
+ border-color: var(--dm-primary);
6043
+ }
6044
+
6045
+ .domma-toast-progress {
6046
+ position: absolute;
6047
+ left: 0;
6048
+ right: 0;
6049
+ bottom: 0;
6050
+ height: 3px;
6051
+ background: color-mix(in srgb, currentColor 15%, transparent);
6052
+ }
6053
+
6054
+ .domma-toast-progress-bar {
6055
+ width: 100%;
6056
+ height: 100%;
6057
+ background: currentColor;
6058
+ opacity: 0.6;
6059
+ }
6060
+
6061
+ @media (prefers-reduced-motion: reduce) {
6062
+ .domma-toast,
6063
+ .domma-toast-progress-bar {
6064
+ transition: none !important;
6065
+ }
6066
+ }
6067
+
5797
6068
 
5798
6069
  /* ============================================
5799
6070
  BACK TO TOP BUTTON
@@ -5842,6 +6113,20 @@ code {
5842
6113
  box-shadow: 0 0 0 3px var(--dm-focus-ring);
5843
6114
  }
5844
6115
 
6116
+ /* E.backToTop on a button inside the container it watches: it sticks to that
6117
+ container's bottom corner instead of the viewport's */
6118
+ .dm-back-to-top.dm-back-to-top-contained {
6119
+ position: sticky;
6120
+ right: auto;
6121
+ left: auto;
6122
+ margin-left: auto;
6123
+ }
6124
+
6125
+ .dm-back-to-top.dm-back-to-top-contained.dm-back-to-top-left {
6126
+ margin-left: 0;
6127
+ margin-right: auto;
6128
+ }
6129
+
5845
6130
  /* Desktop (≥577px) - Back to Top enhancements */
5846
6131
  @media (min-width: 577px) {
5847
6132
  .dm-back-to-top {
@@ -5865,6 +6150,103 @@ code {
5865
6150
  gap: 0.75rem;
5866
6151
  }
5867
6152
 
6153
+ .dm-loader[hidden] {
6154
+ display: none !important;
6155
+ }
6156
+
6157
+ /* E.loader's indicator (src/components/loader.js); size and colour come from
6158
+ --dm-loader-size / --dm-loader-color, set from the options */
6159
+ .dm-loader-js {
6160
+ --dm-loader-size: 40px;
6161
+ --dm-loader-color: var(--dm-primary);
6162
+ }
6163
+
6164
+ /* Centred over the nearest positioned ancestor, as <domma-loader> always drew it - the
6165
+ container's own content stays where it is and the loader sits on top of it. */
6166
+ .dm-loader-js.dm-loader-centered {
6167
+ position: absolute;
6168
+ top: 50%;
6169
+ left: 50%;
6170
+ transform: translate(-50%, -50%);
6171
+ }
6172
+
6173
+ :where(.dm-loader-host) {
6174
+ position: relative;
6175
+ }
6176
+
6177
+ .dm-loader-anim {
6178
+ flex-shrink: 0;
6179
+ }
6180
+
6181
+ .dm-loader-anim-spinner {
6182
+ width: var(--dm-loader-size);
6183
+ height: var(--dm-loader-size);
6184
+ border: max(2px, calc(var(--dm-loader-size) / 10)) solid var(--dm-loader-color);
6185
+ border-top-color: transparent;
6186
+ border-radius: 50%;
6187
+ animation: dm-loader-spin 0.8s linear infinite;
6188
+ }
6189
+
6190
+ .dm-loader-anim-dots,
6191
+ .dm-loader-anim-bars {
6192
+ display: flex;
6193
+ align-items: center;
6194
+ gap: calc(var(--dm-loader-size) / 8);
6195
+ height: var(--dm-loader-size);
6196
+ }
6197
+
6198
+ .dm-loader-anim-dots span {
6199
+ /* Shapes are drawn with borders, not backgrounds: they hold no text */
6200
+ width: 0;
6201
+ height: 0;
6202
+ border: calc(var(--dm-loader-size) / 8) solid var(--dm-loader-color);
6203
+ border-radius: 50%;
6204
+ animation: dm-loader-bounce 1.4s ease-in-out infinite both;
6205
+ }
6206
+
6207
+ .dm-loader-anim-dots span:nth-child(2) { animation-delay: 0.16s; }
6208
+ .dm-loader-anim-dots span:nth-child(3) { animation-delay: 0.32s; }
6209
+
6210
+ .dm-loader-anim-pulse {
6211
+ width: 0;
6212
+ height: 0;
6213
+ border: calc(var(--dm-loader-size) / 2) solid var(--dm-loader-color);
6214
+ border-radius: 50%;
6215
+ animation: dm-loader-pulse 1.2s ease-in-out infinite;
6216
+ }
6217
+
6218
+ .dm-loader-anim-bars span {
6219
+ width: 0;
6220
+ height: 100%;
6221
+ border-left: calc(var(--dm-loader-size) / 6) solid var(--dm-loader-color);
6222
+ border-radius: 2px;
6223
+ animation: dm-loader-bars 1s ease-in-out infinite;
6224
+ }
6225
+
6226
+ .dm-loader-anim-bars span:nth-child(2) { animation-delay: 0.1s; }
6227
+ .dm-loader-anim-bars span:nth-child(3) { animation-delay: 0.2s; }
6228
+ .dm-loader-anim-bars span:nth-child(4) { animation-delay: 0.3s; }
6229
+
6230
+ .dm-loader-fullscreen {
6231
+ position: fixed;
6232
+ inset: 0;
6233
+ z-index: 9999;
6234
+ display: flex;
6235
+ align-items: center;
6236
+ justify-content: center;
6237
+ background-color: rgba(0, 0, 0, 0.7);
6238
+ }
6239
+
6240
+ .dm-loader-fullscreen .dm-loader-text {
6241
+ color: #fff;
6242
+ }
6243
+
6244
+ domma-loader,
6245
+ domma-card,
6246
+ domma-back-to-top {
6247
+ display: block;
6248
+ }
6249
+
5868
6250
  .dm-loader.dm-loader-overlay {
5869
6251
  position: absolute;
5870
6252
  top: 0;
@@ -1,9 +1,9 @@
1
1
  /*!
2
- * Domma Grid CSS v0.53.3
2
+ * Domma Grid CSS v0.55.0
3
3
  * Dynamic Object Manipulation & Modeling API
4
4
  * (c) 2026 Darryl Waterhouse & DCBW-IT
5
- * Built: 2026-10-20T12:35:33.421Z
6
- * Commit: f2ce209
5
+ * Built: 2026-10-24T15:07:57.504Z
6
+ * Commit: 253e259
7
7
  */
8
8
 
9
9
  /**
@@ -1,9 +1,9 @@
1
1
  /*!
2
- * Domma Syntax Highlighting CSS v0.53.3
2
+ * Domma Syntax Highlighting CSS v0.55.0
3
3
  * Dynamic Object Manipulation & Modeling API
4
4
  * (c) 2026 Darryl Waterhouse & DCBW-IT
5
- * Built: 2026-10-20T12:35:33.431Z
6
- * Commit: f2ce209
5
+ * Built: 2026-10-24T15:07:57.514Z
6
+ * Commit: 253e259
7
7
  */
8
8
 
9
9
  /**
@@ -1,9 +1,9 @@
1
1
  /*!
2
- * Domma Themes v0.53.3
2
+ * Domma Themes v0.55.0
3
3
  * Dynamic Object Manipulation & Modeling API
4
4
  * (c) 2026 Darryl Waterhouse & DCBW-IT
5
- * Built: 2026-10-20T12:35:33.398Z
6
- * Commit: f2ce209
5
+ * Built: 2026-10-24T15:07:57.484Z
6
+ * Commit: 253e259
7
7
  */
8
8
 
9
9
  /**