domma-js 0.3.0-alpha.0 → 0.5.0-alpha

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.3.0a
2
+ * Domma Elements CSS v0.5.0-alpha
3
3
  * Dynamic Object Manipulation & Modeling API
4
- * (c) 2025 Darryl Waterhouse & DCBW-IT
5
- * Built: 2025-12-30T10:50:46.799Z
6
- * Commit: 8a467f0
4
+ * (c) 2026 Darryl Waterhouse & DCBW-IT
5
+ * Built: 2026-01-06T00:30:49.181Z
6
+ * Commit: 72b7845
7
7
  */
8
8
 
9
9
  /**
@@ -258,6 +258,40 @@
258
258
  text-decoration: none;
259
259
  }
260
260
 
261
+ /* Collapsible card styles */
262
+ .card-collapsible .card-header {
263
+ cursor: pointer;
264
+ display: flex;
265
+ align-items: center;
266
+ justify-content: space-between;
267
+ user-select: none;
268
+ }
269
+
270
+ .card-header-content {
271
+ flex: 1;
272
+ }
273
+
274
+ .card-collapse-icon {
275
+ transition: transform var(--dm-transition-normal);
276
+ flex-shrink: 0;
277
+ margin-left: var(--dm-space-2);
278
+ }
279
+
280
+ .card-collapsed .card-collapse-icon {
281
+ transform: rotate(-90deg);
282
+ }
283
+
284
+ .card-collapsible .card-body {
285
+ overflow: hidden;
286
+ transition: height var(--dm-transition-normal);
287
+ }
288
+
289
+ .card-collapsed .card-body {
290
+ height: 0 !important;
291
+ padding-top: 0;
292
+ padding-bottom: 0;
293
+ }
294
+
261
295
 
262
296
  /* ============================================
263
297
  MODAL
@@ -4796,3 +4830,515 @@ code {
4796
4830
  [data-theme="dark"] .dm-editor-context-item:hover {
4797
4831
  background: var(--dm-slate-700);
4798
4832
  }
4833
+
4834
+ /* ============================================
4835
+ TIMELINE
4836
+ ============================================ */
4837
+
4838
+ /* Base Timeline Styles */
4839
+ .dm-timeline {
4840
+ position: relative;
4841
+ max-width: 800px;
4842
+ margin: 0 auto;
4843
+ padding: var(--dm-space-8) 0;
4844
+ }
4845
+
4846
+ .dm-timeline-item {
4847
+ position: relative;
4848
+ display: flex;
4849
+ margin-bottom: var(--dm-space-8);
4850
+ align-items: flex-start;
4851
+ }
4852
+
4853
+ .dm-timeline-year {
4854
+ flex-shrink: 0;
4855
+ width: 120px;
4856
+ padding: var(--dm-space-2) var(--dm-space-3);
4857
+ background: var(--dm-primary);
4858
+ color: var(--dm-white);
4859
+ border-radius: var(--dm-radius-md);
4860
+ text-align: center;
4861
+ font-weight: 600;
4862
+ font-size: var(--dm-font-size-sm);
4863
+ margin-right: var(--dm-space-6);
4864
+ }
4865
+
4866
+ .dm-timeline-content {
4867
+ flex: 1;
4868
+ background: var(--dm-white);
4869
+ padding: var(--dm-space-6);
4870
+ border-radius: var(--dm-radius-lg);
4871
+ box-shadow: var(--dm-shadow);
4872
+ border: 1px solid var(--dm-gray-200);
4873
+ transition: all var(--dm-transition-normal);
4874
+ }
4875
+
4876
+ .dm-timeline-content:hover {
4877
+ box-shadow: var(--dm-shadow-md);
4878
+ transform: translateY(-2px);
4879
+ }
4880
+
4881
+ .dm-timeline-title {
4882
+ margin: 0 0 var(--dm-space-3) 0;
4883
+ font-size: var(--dm-font-size-lg);
4884
+ font-weight: 600;
4885
+ color: var(--dm-gray-900);
4886
+ }
4887
+
4888
+ .dm-timeline-description {
4889
+ margin: 0;
4890
+ color: var(--dm-gray-700);
4891
+ line-height: 1.6;
4892
+ }
4893
+
4894
+ /* Vertical Layout (Default) */
4895
+ .dm-timeline-vertical {
4896
+ /* Default styles already applied above */
4897
+ }
4898
+
4899
+ /* Centered Layout */
4900
+ .dm-timeline-centered::before {
4901
+ content: '';
4902
+ position: absolute;
4903
+ left: 50%;
4904
+ top: 0;
4905
+ bottom: 0;
4906
+ width: 2px;
4907
+ background: var(--dm-gray-300);
4908
+ transform: translateX(-50%);
4909
+ }
4910
+
4911
+ .dm-timeline-centered .dm-timeline-item {
4912
+ width: 50%;
4913
+ padding-right: var(--dm-space-8);
4914
+ justify-content: flex-end;
4915
+ }
4916
+
4917
+ .dm-timeline-centered .dm-timeline-item:nth-child(even) {
4918
+ left: 50%;
4919
+ padding-left: var(--dm-space-8);
4920
+ padding-right: 0;
4921
+ justify-content: flex-start;
4922
+ }
4923
+
4924
+ .dm-timeline-centered .dm-timeline-year {
4925
+ order: 2;
4926
+ margin-left: var(--dm-space-6);
4927
+ margin-right: 0;
4928
+ }
4929
+
4930
+ .dm-timeline-centered .dm-timeline-item:nth-child(even) .dm-timeline-year {
4931
+ order: 0;
4932
+ margin-left: 0;
4933
+ margin-right: var(--dm-space-6);
4934
+ }
4935
+
4936
+ /* Horizontal Layout */
4937
+ .dm-timeline-horizontal {
4938
+ display: flex;
4939
+ overflow-x: auto;
4940
+ padding-bottom: var(--dm-space-4);
4941
+ max-width: 100%;
4942
+ gap: var(--dm-space-6);
4943
+ }
4944
+
4945
+ .dm-timeline-horizontal .dm-timeline-item {
4946
+ flex-direction: column;
4947
+ margin-bottom: 0;
4948
+ min-width: 250px;
4949
+ flex-shrink: 0;
4950
+ }
4951
+
4952
+ .dm-timeline-horizontal .dm-timeline-year {
4953
+ width: auto;
4954
+ margin-right: 0;
4955
+ margin-bottom: var(--dm-space-4);
4956
+ }
4957
+
4958
+ /* Theme Variants */
4959
+ .dm-timeline-minimal .dm-timeline-content {
4960
+ box-shadow: none;
4961
+ border: 1px solid var(--dm-gray-200);
4962
+ background: var(--dm-gray-50);
4963
+ }
4964
+
4965
+ .dm-timeline-minimal .dm-timeline-year {
4966
+ background: var(--dm-gray-600);
4967
+ }
4968
+
4969
+ .dm-timeline-corporate .dm-timeline-year {
4970
+ background: var(--dm-slate-700);
4971
+ font-size: var(--dm-font-size-xs);
4972
+ text-transform: uppercase;
4973
+ letter-spacing: 0.05em;
4974
+ }
4975
+
4976
+ .dm-timeline-corporate .dm-timeline-content {
4977
+ background: var(--dm-slate-50);
4978
+ border-color: var(--dm-slate-200);
4979
+ }
4980
+
4981
+ /* Responsive Design */
4982
+ @media (max-width: 768px) {
4983
+ .dm-timeline-centered {
4984
+ /* Switch to vertical layout on mobile */
4985
+ }
4986
+
4987
+ .dm-timeline-centered::before {
4988
+ left: 30px;
4989
+ transform: none;
4990
+ }
4991
+
4992
+ .dm-timeline-centered .dm-timeline-item,
4993
+ .dm-timeline-centered .dm-timeline-item:nth-child(even) {
4994
+ width: 100%;
4995
+ left: 0;
4996
+ padding-left: var(--dm-space-16);
4997
+ padding-right: 0;
4998
+ justify-content: flex-start;
4999
+ }
5000
+
5001
+ .dm-timeline-centered .dm-timeline-year,
5002
+ .dm-timeline-centered .dm-timeline-item:nth-child(even) .dm-timeline-year {
5003
+ order: 0;
5004
+ margin-right: var(--dm-space-6);
5005
+ margin-left: 0;
5006
+ position: absolute;
5007
+ left: 0;
5008
+ width: 80px;
5009
+ }
5010
+
5011
+ .dm-timeline-horizontal {
5012
+ flex-direction: column;
5013
+ }
5014
+
5015
+ .dm-timeline-horizontal .dm-timeline-item {
5016
+ flex-direction: row;
5017
+ min-width: auto;
5018
+ margin-bottom: var(--dm-space-6);
5019
+ }
5020
+
5021
+ .dm-timeline-horizontal .dm-timeline-year {
5022
+ margin-bottom: 0;
5023
+ margin-right: var(--dm-space-4);
5024
+ width: 100px;
5025
+ }
5026
+ }
5027
+
5028
+ /* Dark Theme Support */
5029
+ [data-theme="dark"] .dm-timeline-content {
5030
+ background: var(--dm-slate-800);
5031
+ border-color: var(--dm-slate-700);
5032
+ color: var(--dm-slate-200);
5033
+ }
5034
+
5035
+ [data-theme="dark"] .dm-timeline-title {
5036
+ color: var(--dm-white);
5037
+ }
5038
+
5039
+ [data-theme="dark"] .dm-timeline-description {
5040
+ color: var(--dm-slate-300);
5041
+ }
5042
+
5043
+ [data-theme="dark"] .dm-timeline-minimal .dm-timeline-content {
5044
+ background: var(--dm-slate-900);
5045
+ border-color: var(--dm-slate-700);
5046
+ }
5047
+
5048
+ [data-theme="dark"] .dm-timeline-corporate .dm-timeline-content {
5049
+ background: var(--dm-slate-800);
5050
+ border-color: var(--dm-slate-600);
5051
+ }
5052
+
5053
+ /* ==============================================
5054
+ Cookie Consent Component
5055
+ ============================================== */
5056
+
5057
+ .dm-cookie-consent {
5058
+ position: fixed;
5059
+ z-index: 9999;
5060
+ font-size: 14px;
5061
+ line-height: 1.5;
5062
+ }
5063
+
5064
+ /* Position variants */
5065
+ .dm-cookie-consent-bottom {
5066
+ bottom: 0;
5067
+ left: 0;
5068
+ right: 0;
5069
+ }
5070
+
5071
+ .dm-cookie-consent-top {
5072
+ top: 0;
5073
+ left: 0;
5074
+ right: 0;
5075
+ }
5076
+
5077
+ .dm-cookie-consent-bottom-left {
5078
+ bottom: 20px;
5079
+ left: 20px;
5080
+ max-width: 400px;
5081
+ }
5082
+
5083
+ .dm-cookie-consent-bottom-right {
5084
+ bottom: 20px;
5085
+ right: 20px;
5086
+ max-width: 400px;
5087
+ }
5088
+
5089
+ .dm-cookie-consent-center-modal {
5090
+ top: 50%;
5091
+ left: 50%;
5092
+ transform: translate(-50%, -50%);
5093
+ max-width: 600px;
5094
+ width: 90%;
5095
+ }
5096
+
5097
+ /* Layout variants */
5098
+ .dm-cookie-consent-bar .dm-cookie-consent-content {
5099
+ display: flex;
5100
+ align-items: center;
5101
+ justify-content: space-between;
5102
+ padding: 16px 20px;
5103
+ gap: 20px;
5104
+ }
5105
+
5106
+ .dm-cookie-consent-box .dm-cookie-consent-content {
5107
+ padding: 24px;
5108
+ border-radius: 8px;
5109
+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
5110
+ }
5111
+
5112
+ .dm-cookie-consent-modal .dm-cookie-consent-content {
5113
+ padding: 32px;
5114
+ border-radius: 12px;
5115
+ box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
5116
+ }
5117
+
5118
+ /* Theme variants */
5119
+ .dm-cookie-consent-light .dm-cookie-consent-content {
5120
+ background: white;
5121
+ color: #333;
5122
+ border: 1px solid #e5e5e5;
5123
+ }
5124
+
5125
+ .dm-cookie-consent-light a {
5126
+ color: var(--dm-primary);
5127
+ }
5128
+
5129
+ .dm-cookie-consent-dark .dm-cookie-consent-content {
5130
+ background: #1f2937;
5131
+ color: #f3f4f6;
5132
+ border: 1px solid #374151;
5133
+ }
5134
+
5135
+ .dm-cookie-consent-dark a {
5136
+ color: #60a5fa;
5137
+ }
5138
+
5139
+ /* Message styles */
5140
+ .dm-cookie-consent-message {
5141
+ flex: 1;
5142
+ margin-right: 20px;
5143
+ }
5144
+
5145
+ .dm-cookie-consent-message a {
5146
+ text-decoration: underline;
5147
+ margin: 0 4px;
5148
+ }
5149
+
5150
+ .dm-cookie-consent-message a:hover {
5151
+ opacity: 0.8;
5152
+ }
5153
+
5154
+ /* Button styles */
5155
+ .dm-cookie-consent-buttons {
5156
+ display: flex;
5157
+ gap: 12px;
5158
+ flex-shrink: 0;
5159
+ }
5160
+
5161
+ /* Animation */
5162
+ .dm-cookie-consent-animated {
5163
+ transition: all 0.3s ease;
5164
+ }
5165
+
5166
+ .dm-cookie-consent-bottom.dm-cookie-consent-animated:not(.dm-cookie-consent-visible) {
5167
+ transform: translateY(100%);
5168
+ }
5169
+
5170
+ .dm-cookie-consent-top.dm-cookie-consent-animated:not(.dm-cookie-consent-visible) {
5171
+ transform: translateY(-100%);
5172
+ }
5173
+
5174
+ .dm-cookie-consent-bottom-left.dm-cookie-consent-animated:not(.dm-cookie-consent-visible),
5175
+ .dm-cookie-consent-bottom-right.dm-cookie-consent-animated:not(.dm-cookie-consent-visible) {
5176
+ transform: translateY(20px);
5177
+ opacity: 0;
5178
+ }
5179
+
5180
+ .dm-cookie-consent-center-modal.dm-cookie-consent-animated:not(.dm-cookie-consent-visible) {
5181
+ transform: translate(-50%, -50%) scale(0.95);
5182
+ opacity: 0;
5183
+ }
5184
+
5185
+ /* Backdrop */
5186
+ .dm-cookie-consent-backdrop {
5187
+ position: fixed;
5188
+ top: 0;
5189
+ left: 0;
5190
+ right: 0;
5191
+ bottom: 0;
5192
+ background: rgba(0, 0, 0, 0.5);
5193
+ z-index: -1;
5194
+ }
5195
+
5196
+ /* Customize Modal */
5197
+ .dm-cookie-consent-modal {
5198
+ display: none;
5199
+ position: fixed;
5200
+ top: 0;
5201
+ left: 0;
5202
+ right: 0;
5203
+ bottom: 0;
5204
+ z-index: 10000;
5205
+ align-items: center;
5206
+ justify-content: center;
5207
+ }
5208
+
5209
+ .dm-cookie-consent-modal-backdrop {
5210
+ position: absolute;
5211
+ top: 0;
5212
+ left: 0;
5213
+ right: 0;
5214
+ bottom: 0;
5215
+ background: rgba(0, 0, 0, 0.5);
5216
+ }
5217
+
5218
+ .dm-cookie-consent-modal-content {
5219
+ position: relative;
5220
+ background: white;
5221
+ border-radius: 12px;
5222
+ max-width: 600px;
5223
+ width: 90%;
5224
+ max-height: 80vh;
5225
+ overflow: auto;
5226
+ box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
5227
+ }
5228
+
5229
+ .dm-cookie-consent-modal-header {
5230
+ padding: 24px;
5231
+ border-bottom: 1px solid #e5e5e5;
5232
+ display: flex;
5233
+ justify-content: space-between;
5234
+ align-items: center;
5235
+ }
5236
+
5237
+ .dm-cookie-consent-modal-header h3 {
5238
+ margin: 0;
5239
+ font-size: 20px;
5240
+ font-weight: 600;
5241
+ }
5242
+
5243
+ .dm-cookie-consent-modal-close {
5244
+ background: none;
5245
+ border: none;
5246
+ font-size: 24px;
5247
+ cursor: pointer;
5248
+ color: #666;
5249
+ padding: 0;
5250
+ width: 32px;
5251
+ height: 32px;
5252
+ display: flex;
5253
+ align-items: center;
5254
+ justify-content: center;
5255
+ border-radius: 4px;
5256
+ transition: all 0.2s;
5257
+ }
5258
+
5259
+ .dm-cookie-consent-modal-close:hover {
5260
+ background: #f5f5f5;
5261
+ }
5262
+
5263
+ .dm-cookie-consent-modal-body {
5264
+ padding: 24px;
5265
+ }
5266
+
5267
+ .dm-cookie-consent-category {
5268
+ margin-bottom: 20px;
5269
+ padding-bottom: 20px;
5270
+ border-bottom: 1px solid #e5e5e5;
5271
+ }
5272
+
5273
+ .dm-cookie-consent-category:last-child {
5274
+ border-bottom: none;
5275
+ margin-bottom: 0;
5276
+ padding-bottom: 0;
5277
+ }
5278
+
5279
+ .dm-cookie-consent-category-label {
5280
+ display: flex;
5281
+ align-items: flex-start;
5282
+ cursor: pointer;
5283
+ }
5284
+
5285
+ .dm-cookie-consent-category-toggle {
5286
+ margin-right: 12px;
5287
+ margin-top: 2px;
5288
+ }
5289
+
5290
+ .dm-cookie-consent-category-toggle:disabled {
5291
+ cursor: not-allowed;
5292
+ opacity: 0.5;
5293
+ }
5294
+
5295
+ .dm-cookie-consent-category-info {
5296
+ flex: 1;
5297
+ }
5298
+
5299
+ .dm-cookie-consent-category-name {
5300
+ font-weight: 500;
5301
+ margin-bottom: 4px;
5302
+ }
5303
+
5304
+ .dm-cookie-consent-required {
5305
+ color: #666;
5306
+ font-size: 12px;
5307
+ }
5308
+
5309
+ .dm-cookie-consent-category-description {
5310
+ color: #666;
5311
+ font-size: 13px;
5312
+ }
5313
+
5314
+ .dm-cookie-consent-modal-footer {
5315
+ padding: 24px;
5316
+ border-top: 1px solid #e5e5e5;
5317
+ display: flex;
5318
+ justify-content: flex-end;
5319
+ gap: 12px;
5320
+ }
5321
+
5322
+ /* Responsive */
5323
+ @media (max-width: 640px) {
5324
+ .dm-cookie-consent-bar .dm-cookie-consent-content {
5325
+ flex-direction: column;
5326
+ align-items: stretch;
5327
+ }
5328
+
5329
+ .dm-cookie-consent-message {
5330
+ margin-right: 0;
5331
+ margin-bottom: 16px;
5332
+ }
5333
+
5334
+ .dm-cookie-consent-buttons {
5335
+ flex-direction: column;
5336
+ }
5337
+
5338
+ .dm-cookie-consent-bottom-left,
5339
+ .dm-cookie-consent-bottom-right {
5340
+ left: 10px;
5341
+ right: 10px;
5342
+ max-width: none;
5343
+ }
5344
+ }
@@ -1,9 +1,9 @@
1
1
  /*!
2
- * Domma Grid CSS v0.3.0a
2
+ * Domma Grid CSS v0.5.0-alpha
3
3
  * Dynamic Object Manipulation & Modeling API
4
- * (c) 2025 Darryl Waterhouse & DCBW-IT
5
- * Built: 2025-12-30T10:50:46.793Z
6
- * Commit: 8a467f0
4
+ * (c) 2026 Darryl Waterhouse & DCBW-IT
5
+ * Built: 2026-01-06T00:30:49.174Z
6
+ * Commit: 72b7845
7
7
  */
8
8
 
9
9
  /**
@@ -1,9 +1,9 @@
1
1
  /*!
2
- * Domma Syntax Highlighting CSS v0.3.0a
2
+ * Domma Syntax Highlighting CSS v0.5.0-alpha
3
3
  * Dynamic Object Manipulation & Modeling API
4
- * (c) 2025 Darryl Waterhouse & DCBW-IT
5
- * Built: 2025-12-30T10:50:46.807Z
6
- * Commit: 8a467f0
4
+ * (c) 2026 Darryl Waterhouse & DCBW-IT
5
+ * Built: 2026-01-06T00:30:49.191Z
6
+ * Commit: 72b7845
7
7
  */
8
8
 
9
9
  /**
@@ -1,9 +1,9 @@
1
1
  /*!
2
- * Domma Themes v0.3.0a
2
+ * Domma Themes v0.5.0-alpha
3
3
  * Dynamic Object Manipulation & Modeling API
4
- * (c) 2025 Darryl Waterhouse & DCBW-IT
5
- * Built: 2025-12-30T10:50:46.760Z
6
- * Commit: 8a467f0
4
+ * (c) 2026 Darryl Waterhouse & DCBW-IT
5
+ * Built: 2026-01-06T00:30:49.133Z
6
+ * Commit: 72b7845
7
7
  */
8
8
 
9
9
  /**
@@ -2687,7 +2687,7 @@
2687
2687
  --dm-surface-overlay: #f8f9fa;
2688
2688
 
2689
2689
  /* Text - Dark colors for readability on light */
2690
- --dm-text: #212529;
2690
+ --dm-text: #1a1a1a; /* Even darker for better contrast */
2691
2691
  --dm-text-secondary: #495057;
2692
2692
  --dm-text-muted: #6c757d;
2693
2693
  --dm-text-disabled: #adb5bd;
@@ -2700,8 +2700,8 @@
2700
2700
 
2701
2701
 
2702
2702
  --dm-primary: #78909c;
2703
- --dm-primary-hover: #8a9fa9;
2704
- --dm-primary-active: #9caeb6;
2703
+ --dm-primary-hover: #546e7a;
2704
+ --dm-primary-active: #455a64;
2705
2705
  --dm-primary-light: rgba(120, 144, 156, 0.15);
2706
2706
  --dm-primary-dark: #607d8b;
2707
2707