@revikornmann/muka-ui 0.2.1 → 0.2.3

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.
@@ -5819,37 +5819,6 @@ body {
5819
5819
  }
5820
5820
 
5821
5821
 
5822
- /* Popover */
5823
- /* Popover Component Styles */
5824
-
5825
- .muka-popover__content {
5826
- background-color: var(--color-surface-level3);
5827
- border: var(--border-width-regular) solid var(--color-border-default);
5828
- border-radius: var(--radius-md);
5829
- padding: var(--spacing-4);
5830
- box-shadow: var(--shadow-level3);
5831
- max-width: 20rem;
5832
- z-index: 50;
5833
- animation: muka-popover-fade-in 150ms ease;
5834
- }
5835
-
5836
- @keyframes muka-popover-fade-in {
5837
- from {
5838
- opacity: 0;
5839
- transform: scale(0.96);
5840
- }
5841
- to {
5842
- opacity: 1;
5843
- transform: scale(1);
5844
- }
5845
- }
5846
-
5847
- /* Arrow */
5848
- .muka-popover__arrow {
5849
- fill: var(--color-surface-level3);
5850
- }
5851
-
5852
-
5853
5822
  /* PieChart */
5854
5823
  /* PieChart Component Styles - Using Muka Design Tokens */
5855
5824
 
@@ -6049,6 +6018,37 @@ body {
6049
6018
  }
6050
6019
 
6051
6020
 
6021
+ /* Popover */
6022
+ /* Popover Component Styles */
6023
+
6024
+ .muka-popover__content {
6025
+ background-color: var(--color-surface-level3);
6026
+ border: var(--border-width-regular) solid var(--color-border-default);
6027
+ border-radius: var(--radius-md);
6028
+ padding: var(--spacing-4);
6029
+ box-shadow: var(--shadow-level3);
6030
+ max-width: 20rem;
6031
+ z-index: 50;
6032
+ animation: muka-popover-fade-in 150ms ease;
6033
+ }
6034
+
6035
+ @keyframes muka-popover-fade-in {
6036
+ from {
6037
+ opacity: 0;
6038
+ transform: scale(0.96);
6039
+ }
6040
+ to {
6041
+ opacity: 1;
6042
+ transform: scale(1);
6043
+ }
6044
+ }
6045
+
6046
+ /* Arrow */
6047
+ .muka-popover__arrow {
6048
+ fill: var(--color-surface-level3);
6049
+ }
6050
+
6051
+
6052
6052
  /* NumberInput */
6053
6053
  /* NumberInput — reuses Input field styles (../Input/Input.css). */
6054
6054
  /* Only the prefix/suffix affixes are NumberInput-specific. */
@@ -6107,6 +6107,194 @@ body {
6107
6107
  .muka-nav-transition__view--top { z-index: 2; }
6108
6108
 
6109
6109
 
6110
+ /* ListItem */
6111
+ /* ListItem Component Styles - Using Muka Design Tokens */
6112
+
6113
+ /* Base list item styles */
6114
+ .muka-listitem {
6115
+ /* Layout */
6116
+ display: flex;
6117
+ align-items: flex-start;
6118
+ gap: var(--spacing-4);
6119
+ padding: var(--spacing-5) var(--spacing-4);
6120
+
6121
+ /* Background - using semantic tokens */
6122
+ background-color: var(--color-surface-level3);
6123
+
6124
+ /* Typography */
6125
+ font-family: var(--alias-font-brand-family);
6126
+
6127
+ /* Border and spacing */
6128
+ border: none;
6129
+ position: relative;
6130
+
6131
+ /* Interaction - only apply if interactive */
6132
+ transition: background-color 0.2s ease;
6133
+ }
6134
+
6135
+ /* Interactive state */
6136
+ .muka-listitem--interactive {
6137
+ cursor: pointer;
6138
+ }
6139
+
6140
+ .muka-listitem--interactive:hover:not(:disabled):not(.muka-listitem--disabled) {
6141
+ background-color: var(--color-surface-hover);
6142
+ }
6143
+
6144
+ .muka-listitem--interactive:active:not(:disabled):not(.muka-listitem--disabled),
6145
+ .muka-listitem--interactive.muka-listitem--pressed:not(:disabled):not(.muka-listitem--disabled) {
6146
+ background-color: var(--color-surface-pressed);
6147
+ }
6148
+
6149
+ /* Focus styles for accessibility */
6150
+ .muka-listitem:focus-visible {
6151
+ outline: 2px solid var(--color-border-focus);
6152
+ outline-offset: -2px;
6153
+ }
6154
+
6155
+ /* Disabled state */
6156
+ .muka-listitem--disabled {
6157
+ opacity: 0.5;
6158
+ cursor: not-allowed;
6159
+ pointer-events: none;
6160
+ }
6161
+
6162
+ .muka-listitem--disabled:hover {
6163
+ background-color: var(--color-surface-level3);
6164
+ }
6165
+
6166
+ /* Selected state */
6167
+ .muka-listitem--selected {
6168
+ background-color: var(--color-surface-level2);
6169
+ }
6170
+
6171
+ .muka-listitem--selected:hover {
6172
+ background-color: var(--color-surface-hover);
6173
+ }
6174
+
6175
+ /* No divider modifier */
6176
+ .muka-listitem--no-divider .muka-listitem__divider {
6177
+ display: none;
6178
+ }
6179
+
6180
+ /* Center content vertically when no caption */
6181
+ .muka-listitem--no-caption {
6182
+ align-items: center;
6183
+ }
6184
+
6185
+ /* Leading content (icon or image) */
6186
+ .muka-listitem__leading {
6187
+ display: flex;
6188
+ align-items: center;
6189
+ justify-content: center;
6190
+ flex-shrink: 0;
6191
+ width: 48px;
6192
+ height: 48px;
6193
+ }
6194
+
6195
+ .muka-listitem__icon {
6196
+ display: inline-flex;
6197
+ align-items: center;
6198
+ justify-content: center;
6199
+ width: 32px;
6200
+ height: 32px;
6201
+ color: var(--color-text-default-default);
6202
+ }
6203
+
6204
+ .muka-listitem__image {
6205
+ width: 48px;
6206
+ height: 48px;
6207
+ border-radius: var(--radius-md);
6208
+ object-fit: cover;
6209
+ }
6210
+
6211
+ /* Main content area */
6212
+ .muka-listitem__content {
6213
+ flex: 1;
6214
+ display: flex;
6215
+ align-items: center;
6216
+ gap: var(--spacing-4);
6217
+ min-width: 0;
6218
+ }
6219
+
6220
+ .muka-listitem__text {
6221
+ flex: 1;
6222
+ display: flex;
6223
+ flex-direction: column;
6224
+ gap: var(--spacing-1);
6225
+ min-width: 0;
6226
+ }
6227
+
6228
+ /* Label text */
6229
+ .muka-listitem__label {
6230
+ margin: 0;
6231
+ padding: 0;
6232
+
6233
+ /* Typography - using semantic tokens */
6234
+ font-family: var(--alias-font-plain-family);
6235
+ font-weight: var(--alias-font-plain-weight-semibold, 600);
6236
+ font-size: var(--text-label-md-fontSize);
6237
+ line-height: var(--text-label-md-lineHeight);
6238
+ color: var(--color-text-default-default);
6239
+
6240
+ /* Text handling */
6241
+ overflow: hidden;
6242
+ text-overflow: ellipsis;
6243
+ white-space: nowrap;
6244
+ }
6245
+
6246
+ /* Caption text */
6247
+ .muka-listitem__caption {
6248
+ margin: 0;
6249
+ padding: 0;
6250
+
6251
+ /* Typography - using semantic tokens */
6252
+ font-family: var(--alias-font-plain-family);
6253
+ font-weight: var(--alias-font-plain-weight-regular, 400);
6254
+ font-size: var(--text-body-sm-fontSize);
6255
+ line-height: var(--text-body-sm-lineHeight);
6256
+ color: var(--color-text-subtle-default);
6257
+
6258
+ /* Text handling */
6259
+ overflow: hidden;
6260
+ text-overflow: ellipsis;
6261
+ white-space: nowrap;
6262
+ }
6263
+
6264
+ /* Trailing chevron */
6265
+ .muka-listitem__chevron {
6266
+ display: inline-flex;
6267
+ align-items: center;
6268
+ justify-content: center;
6269
+ flex-shrink: 0;
6270
+ width: 24px;
6271
+ height: 24px;
6272
+ color: var(--color-text-subtle-default);
6273
+ }
6274
+
6275
+ /* Bottom divider */
6276
+ .muka-listitem__divider {
6277
+ position: absolute;
6278
+ bottom: 0;
6279
+ left: 0;
6280
+ right: 0;
6281
+ height: 1px;
6282
+ background-color: var(--color-border-default);
6283
+ }
6284
+
6285
+ /* Button and anchor specific styles */
6286
+ button.muka-listitem,
6287
+ a.muka-listitem {
6288
+ text-align: left;
6289
+ width: 100%;
6290
+ }
6291
+
6292
+ /* List item specific styles */
6293
+ li.muka-listitem {
6294
+ list-style: none;
6295
+ }
6296
+
6297
+
6110
6298
  /* Menu */
6111
6299
  /* Menu Component Styles */
6112
6300
 
@@ -6390,194 +6578,6 @@ body {
6390
6578
  }
6391
6579
 
6392
6580
 
6393
- /* ListItem */
6394
- /* ListItem Component Styles - Using Muka Design Tokens */
6395
-
6396
- /* Base list item styles */
6397
- .muka-listitem {
6398
- /* Layout */
6399
- display: flex;
6400
- align-items: flex-start;
6401
- gap: var(--spacing-4);
6402
- padding: var(--spacing-5) var(--spacing-4);
6403
-
6404
- /* Background - using semantic tokens */
6405
- background-color: var(--color-surface-level3);
6406
-
6407
- /* Typography */
6408
- font-family: var(--alias-font-brand-family);
6409
-
6410
- /* Border and spacing */
6411
- border: none;
6412
- position: relative;
6413
-
6414
- /* Interaction - only apply if interactive */
6415
- transition: background-color 0.2s ease;
6416
- }
6417
-
6418
- /* Interactive state */
6419
- .muka-listitem--interactive {
6420
- cursor: pointer;
6421
- }
6422
-
6423
- .muka-listitem--interactive:hover:not(:disabled):not(.muka-listitem--disabled) {
6424
- background-color: var(--color-surface-hover);
6425
- }
6426
-
6427
- .muka-listitem--interactive:active:not(:disabled):not(.muka-listitem--disabled),
6428
- .muka-listitem--interactive.muka-listitem--pressed:not(:disabled):not(.muka-listitem--disabled) {
6429
- background-color: var(--color-surface-pressed);
6430
- }
6431
-
6432
- /* Focus styles for accessibility */
6433
- .muka-listitem:focus-visible {
6434
- outline: 2px solid var(--color-border-focus);
6435
- outline-offset: -2px;
6436
- }
6437
-
6438
- /* Disabled state */
6439
- .muka-listitem--disabled {
6440
- opacity: 0.5;
6441
- cursor: not-allowed;
6442
- pointer-events: none;
6443
- }
6444
-
6445
- .muka-listitem--disabled:hover {
6446
- background-color: var(--color-surface-level3);
6447
- }
6448
-
6449
- /* Selected state */
6450
- .muka-listitem--selected {
6451
- background-color: var(--color-surface-level2);
6452
- }
6453
-
6454
- .muka-listitem--selected:hover {
6455
- background-color: var(--color-surface-hover);
6456
- }
6457
-
6458
- /* No divider modifier */
6459
- .muka-listitem--no-divider .muka-listitem__divider {
6460
- display: none;
6461
- }
6462
-
6463
- /* Center content vertically when no caption */
6464
- .muka-listitem--no-caption {
6465
- align-items: center;
6466
- }
6467
-
6468
- /* Leading content (icon or image) */
6469
- .muka-listitem__leading {
6470
- display: flex;
6471
- align-items: center;
6472
- justify-content: center;
6473
- flex-shrink: 0;
6474
- width: 48px;
6475
- height: 48px;
6476
- }
6477
-
6478
- .muka-listitem__icon {
6479
- display: inline-flex;
6480
- align-items: center;
6481
- justify-content: center;
6482
- width: 32px;
6483
- height: 32px;
6484
- color: var(--color-text-default-default);
6485
- }
6486
-
6487
- .muka-listitem__image {
6488
- width: 48px;
6489
- height: 48px;
6490
- border-radius: var(--radius-md);
6491
- object-fit: cover;
6492
- }
6493
-
6494
- /* Main content area */
6495
- .muka-listitem__content {
6496
- flex: 1;
6497
- display: flex;
6498
- align-items: center;
6499
- gap: var(--spacing-4);
6500
- min-width: 0;
6501
- }
6502
-
6503
- .muka-listitem__text {
6504
- flex: 1;
6505
- display: flex;
6506
- flex-direction: column;
6507
- gap: var(--spacing-1);
6508
- min-width: 0;
6509
- }
6510
-
6511
- /* Label text */
6512
- .muka-listitem__label {
6513
- margin: 0;
6514
- padding: 0;
6515
-
6516
- /* Typography - using semantic tokens */
6517
- font-family: var(--alias-font-plain-family);
6518
- font-weight: var(--alias-font-plain-weight-semibold, 600);
6519
- font-size: var(--text-label-md-fontSize);
6520
- line-height: var(--text-label-md-lineHeight);
6521
- color: var(--color-text-default-default);
6522
-
6523
- /* Text handling */
6524
- overflow: hidden;
6525
- text-overflow: ellipsis;
6526
- white-space: nowrap;
6527
- }
6528
-
6529
- /* Caption text */
6530
- .muka-listitem__caption {
6531
- margin: 0;
6532
- padding: 0;
6533
-
6534
- /* Typography - using semantic tokens */
6535
- font-family: var(--alias-font-plain-family);
6536
- font-weight: var(--alias-font-plain-weight-regular, 400);
6537
- font-size: var(--text-body-sm-fontSize);
6538
- line-height: var(--text-body-sm-lineHeight);
6539
- color: var(--color-text-subtle-default);
6540
-
6541
- /* Text handling */
6542
- overflow: hidden;
6543
- text-overflow: ellipsis;
6544
- white-space: nowrap;
6545
- }
6546
-
6547
- /* Trailing chevron */
6548
- .muka-listitem__chevron {
6549
- display: inline-flex;
6550
- align-items: center;
6551
- justify-content: center;
6552
- flex-shrink: 0;
6553
- width: 24px;
6554
- height: 24px;
6555
- color: var(--color-text-subtle-default);
6556
- }
6557
-
6558
- /* Bottom divider */
6559
- .muka-listitem__divider {
6560
- position: absolute;
6561
- bottom: 0;
6562
- left: 0;
6563
- right: 0;
6564
- height: 1px;
6565
- background-color: var(--color-border-default);
6566
- }
6567
-
6568
- /* Button and anchor specific styles */
6569
- button.muka-listitem,
6570
- a.muka-listitem {
6571
- text-align: left;
6572
- width: 100%;
6573
- }
6574
-
6575
- /* List item specific styles */
6576
- li.muka-listitem {
6577
- list-style: none;
6578
- }
6579
-
6580
-
6581
6581
  /* LicensePlateInput */
6582
6582
  /* LicensePlateInput — Dutch RDW-style plate input
6583
6583
  *
@@ -8221,6 +8221,33 @@ li.muka-listitem {
8221
8221
  }
8222
8222
 
8223
8223
 
8224
+ /* Divider */
8225
+ /* Divider Component Styles - Using Muka Design Tokens */
8226
+
8227
+ .muka-divider {
8228
+ flex-shrink: 0;
8229
+ }
8230
+
8231
+ .muka-divider--horizontal {
8232
+ width: 100%;
8233
+ height: var(--separator-width);
8234
+ }
8235
+
8236
+ .muka-divider--vertical {
8237
+ height: 100%;
8238
+ width: var(--separator-width);
8239
+ align-self: stretch;
8240
+ }
8241
+
8242
+ .muka-divider--default {
8243
+ background-color: var(--separator-color-default);
8244
+ }
8245
+
8246
+ .muka-divider--contrast {
8247
+ background-color: var(--separator-color-contrast);
8248
+ }
8249
+
8250
+
8224
8251
  /* Dialog */
8225
8252
  /* Dialog Component Styles */
8226
8253
 
@@ -8520,33 +8547,6 @@ li.muka-listitem {
8520
8547
  }
8521
8548
 
8522
8549
 
8523
- /* Divider */
8524
- /* Divider Component Styles - Using Muka Design Tokens */
8525
-
8526
- .muka-divider {
8527
- flex-shrink: 0;
8528
- }
8529
-
8530
- .muka-divider--horizontal {
8531
- width: 100%;
8532
- height: var(--separator-width);
8533
- }
8534
-
8535
- .muka-divider--vertical {
8536
- height: 100%;
8537
- width: var(--separator-width);
8538
- align-self: stretch;
8539
- }
8540
-
8541
- .muka-divider--default {
8542
- background-color: var(--separator-color-default);
8543
- }
8544
-
8545
- .muka-divider--contrast {
8546
- background-color: var(--separator-color-contrast);
8547
- }
8548
-
8549
-
8550
8550
  /* DataTable */
8551
8551
  /* DataTable Component Styles - Using Muka Design Tokens */
8552
8552