@revikornmann/muka-ui 0.9.0 → 0.9.1

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.
@@ -2108,6 +2108,8 @@ body {
2108
2108
  --segmentgroup-container-radius: 999rem;
2109
2109
  --segmentgroup-container-padding: 0.25rem;
2110
2110
  --segmentgroup-container-shadow: inset 0px 0px 1px 0px rgba(0, 0, 0, 0.090), inset 0px 2px 4px 0px rgba(0, 0, 0, 0.090);
2111
+ --segmentgroup-segment-fontWeight: 400;
2112
+ --segmentgroup-segment-gap: 0.25rem;
2111
2113
  --segmentgroup-segment-color-selected-background: #fdfcfd;
2112
2114
  --segmentgroup-segment-color-selected-foreground: #211f26;
2113
2115
  --segmentgroup-segment-color-unselected-background: transparent;
@@ -5064,7 +5066,7 @@ body {
5064
5066
  background-color: var(--segmentgroup-container-background);
5065
5067
  border-radius: var(--segmentgroup-container-radius);
5066
5068
  position: relative;
5067
- transition: all 0.2s ease;
5069
+ transition: background-color 0.2s ease, box-shadow 0.2s ease;
5068
5070
  }
5069
5071
 
5070
5072
  /* Inset shadow on container */
@@ -5105,17 +5107,18 @@ body {
5105
5107
  display: inline-flex;
5106
5108
  align-items: center;
5107
5109
  justify-content: center;
5110
+ gap: var(--segmentgroup-segment-gap);
5108
5111
  border: none;
5109
5112
  background-color: var(--segmentgroup-segment-color-unselected-background);
5110
5113
  color: var(--segmentgroup-segment-color-unselected-foreground);
5111
5114
  border-radius: var(--segmentgroup-segment-radius);
5112
5115
  cursor: pointer;
5113
- transition: all 0.2s ease;
5116
+ transition: background-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
5114
5117
  position: relative;
5115
5118
  outline: none;
5116
5119
  box-shadow: var(--segmentgroup-segment-shadow-unselected);
5117
5120
  font-family: var(--alias-font-plain-family);
5118
- font-weight: var(--alias-font-plain-weight-regular);
5121
+ font-weight: var(--segmentgroup-segment-fontWeight);
5119
5122
  z-index: 1; /* Keep above pill */
5120
5123
  }
5121
5124
 
@@ -5208,7 +5211,6 @@ body {
5208
5211
  background-color: transparent;
5209
5212
  box-shadow: none;
5210
5213
  color: var(--segmentgroup-segment-color-selected-foreground);
5211
- font-weight: var(--alias-font-plain-weight-semibold);
5212
5214
  z-index: 2; /* Highlight pill when focused is tested below */
5213
5215
  }
5214
5216
 
@@ -5935,6 +5937,53 @@ body {
5935
5937
  }
5936
5938
 
5937
5939
 
5940
+ /* PullToRefresh */
5941
+ /* PullToRefresh Component Styles */
5942
+
5943
+ .muka-pull-to-refresh {
5944
+ position: relative;
5945
+ display: flex;
5946
+ flex-direction: column;
5947
+ width: 100%;
5948
+ height: 100%;
5949
+ overflow: hidden;
5950
+ }
5951
+
5952
+ .muka-pull-to-refresh__indicator {
5953
+ position: absolute;
5954
+ top: 0;
5955
+ left: 0;
5956
+ right: 0;
5957
+ display: flex;
5958
+ align-items: flex-end;
5959
+ justify-content: center;
5960
+ padding-bottom: var(--spacing-2);
5961
+ color: var(--color-text-subtle-default);
5962
+ overflow: hidden;
5963
+ pointer-events: none;
5964
+ z-index: 1;
5965
+ }
5966
+
5967
+ .muka-pull-to-refresh__chevron {
5968
+ display: inline-flex;
5969
+ align-items: center;
5970
+ justify-content: center;
5971
+ transition: transform 0.16s ease;
5972
+ }
5973
+
5974
+ .muka-pull-to-refresh__scroller {
5975
+ flex: 1 1 auto;
5976
+ min-height: 0;
5977
+ width: 100%;
5978
+ overflow-x: clip;
5979
+ overflow-y: auto;
5980
+ -webkit-overflow-scrolling: touch;
5981
+ overscroll-behavior-y: contain;
5982
+ touch-action: pan-y;
5983
+ will-change: transform;
5984
+ }
5985
+
5986
+
5938
5987
  /* ProgressTracker */
5939
5988
  /* ProgressTracker Component Styles — Using Muka Design Tokens */
5940
5989
 
@@ -6341,53 +6390,6 @@ body {
6341
6390
  }
6342
6391
 
6343
6392
 
6344
- /* PullToRefresh */
6345
- /* PullToRefresh Component Styles */
6346
-
6347
- .muka-pull-to-refresh {
6348
- position: relative;
6349
- display: flex;
6350
- flex-direction: column;
6351
- width: 100%;
6352
- height: 100%;
6353
- overflow: hidden;
6354
- }
6355
-
6356
- .muka-pull-to-refresh__indicator {
6357
- position: absolute;
6358
- top: 0;
6359
- left: 0;
6360
- right: 0;
6361
- display: flex;
6362
- align-items: flex-end;
6363
- justify-content: center;
6364
- padding-bottom: var(--spacing-2);
6365
- color: var(--color-text-subtle-default);
6366
- overflow: hidden;
6367
- pointer-events: none;
6368
- z-index: 1;
6369
- }
6370
-
6371
- .muka-pull-to-refresh__chevron {
6372
- display: inline-flex;
6373
- align-items: center;
6374
- justify-content: center;
6375
- transition: transform 0.16s ease;
6376
- }
6377
-
6378
- .muka-pull-to-refresh__scroller {
6379
- flex: 1 1 auto;
6380
- min-height: 0;
6381
- width: 100%;
6382
- overflow-x: clip;
6383
- overflow-y: auto;
6384
- -webkit-overflow-scrolling: touch;
6385
- overscroll-behavior-y: contain;
6386
- touch-action: pan-y;
6387
- will-change: transform;
6388
- }
6389
-
6390
-
6391
6393
  /* Progress */
6392
6394
  /* Progress Component Styles - Using Muka Design Tokens */
6393
6395
 
@@ -6560,6 +6562,77 @@ body {
6560
6562
  }
6561
6563
 
6562
6564
 
6565
+ /* ProfileBadge */
6566
+ /* ProfileBadge Component Styles - Using Muka Design Tokens */
6567
+
6568
+ .muka-profile-badge {
6569
+ display: inline-flex;
6570
+ align-items: center;
6571
+ font-family: var(--text-body-base-regular-fontFamily);
6572
+ }
6573
+
6574
+ /* Size variants */
6575
+ .muka-profile-badge--lg {
6576
+ gap: var(--spacing-4); /* 16px */
6577
+ }
6578
+
6579
+ .muka-profile-badge--md {
6580
+ gap: var(--spacing-3); /* 12px */
6581
+ }
6582
+
6583
+ .muka-profile-badge__avatar {
6584
+ flex-shrink: 0;
6585
+ }
6586
+
6587
+ /* Text stack */
6588
+ .muka-profile-badge__text {
6589
+ display: flex;
6590
+ flex-direction: column;
6591
+ align-items: flex-start;
6592
+ min-width: 0;
6593
+ }
6594
+
6595
+ .muka-profile-badge__name {
6596
+ font-family: var(--text-body-base-regular-fontFamily);
6597
+ font-size: var(--text-body-base-regular-fontSize);
6598
+ font-weight: var(--text-body-base-regular-fontWeight);
6599
+ line-height: var(--text-body-base-regular-lineHeight);
6600
+ color: var(--color-text-default-default);
6601
+ }
6602
+
6603
+ .muka-profile-badge__email {
6604
+ font-family: var(--text-body-xs-regular-fontFamily);
6605
+ font-size: var(--text-body-xs-regular-fontSize);
6606
+ font-weight: var(--text-body-xs-regular-fontWeight);
6607
+ line-height: var(--text-body-xs-regular-lineHeight);
6608
+ color: var(--color-text-subtle-default);
6609
+ }
6610
+
6611
+ /* Clickable state */
6612
+ .muka-profile-badge--clickable {
6613
+ cursor: pointer;
6614
+ border: none;
6615
+ background: none;
6616
+ padding: 0;
6617
+ text-align: left;
6618
+ border-radius: var(--radius-md);
6619
+ transition: opacity 0.2s ease;
6620
+ }
6621
+
6622
+ .muka-profile-badge--clickable:hover {
6623
+ opacity: 0.9;
6624
+ }
6625
+
6626
+ .muka-profile-badge--clickable:active {
6627
+ opacity: 0.8;
6628
+ }
6629
+
6630
+ .muka-profile-badge--clickable:focus-visible {
6631
+ outline: 2px solid var(--color-border-focus);
6632
+ outline-offset: 2px;
6633
+ }
6634
+
6635
+
6563
6636
  /* PriceTag */
6564
6637
  /* PriceTag Component Styles - Using Muka Design Tokens */
6565
6638
 
@@ -6688,77 +6761,6 @@ body {
6688
6761
  }
6689
6762
 
6690
6763
 
6691
- /* ProfileBadge */
6692
- /* ProfileBadge Component Styles - Using Muka Design Tokens */
6693
-
6694
- .muka-profile-badge {
6695
- display: inline-flex;
6696
- align-items: center;
6697
- font-family: var(--text-body-base-regular-fontFamily);
6698
- }
6699
-
6700
- /* Size variants */
6701
- .muka-profile-badge--lg {
6702
- gap: var(--spacing-4); /* 16px */
6703
- }
6704
-
6705
- .muka-profile-badge--md {
6706
- gap: var(--spacing-3); /* 12px */
6707
- }
6708
-
6709
- .muka-profile-badge__avatar {
6710
- flex-shrink: 0;
6711
- }
6712
-
6713
- /* Text stack */
6714
- .muka-profile-badge__text {
6715
- display: flex;
6716
- flex-direction: column;
6717
- align-items: flex-start;
6718
- min-width: 0;
6719
- }
6720
-
6721
- .muka-profile-badge__name {
6722
- font-family: var(--text-body-base-regular-fontFamily);
6723
- font-size: var(--text-body-base-regular-fontSize);
6724
- font-weight: var(--text-body-base-regular-fontWeight);
6725
- line-height: var(--text-body-base-regular-lineHeight);
6726
- color: var(--color-text-default-default);
6727
- }
6728
-
6729
- .muka-profile-badge__email {
6730
- font-family: var(--text-body-xs-regular-fontFamily);
6731
- font-size: var(--text-body-xs-regular-fontSize);
6732
- font-weight: var(--text-body-xs-regular-fontWeight);
6733
- line-height: var(--text-body-xs-regular-lineHeight);
6734
- color: var(--color-text-subtle-default);
6735
- }
6736
-
6737
- /* Clickable state */
6738
- .muka-profile-badge--clickable {
6739
- cursor: pointer;
6740
- border: none;
6741
- background: none;
6742
- padding: 0;
6743
- text-align: left;
6744
- border-radius: var(--radius-md);
6745
- transition: opacity 0.2s ease;
6746
- }
6747
-
6748
- .muka-profile-badge--clickable:hover {
6749
- opacity: 0.9;
6750
- }
6751
-
6752
- .muka-profile-badge--clickable:active {
6753
- opacity: 0.8;
6754
- }
6755
-
6756
- .muka-profile-badge--clickable:focus-visible {
6757
- outline: 2px solid var(--color-border-focus);
6758
- outline-offset: 2px;
6759
- }
6760
-
6761
-
6762
6764
  /* PieChart */
6763
6765
  /* PieChart Component Styles - Using Muka Design Tokens */
6764
6766
 
@@ -8071,6 +8073,60 @@ li.muka-listitem {
8071
8073
  }
8072
8074
 
8073
8075
 
8076
+ /* Icon */
8077
+ /* Icon Component Styles - Using Muka Design Tokens */
8078
+
8079
+ .muka-icon {
8080
+ display: inline-flex;
8081
+ align-items: center;
8082
+ justify-content: center;
8083
+ flex-shrink: 0;
8084
+ color: var(--color-icon-default-default, currentColor);
8085
+ }
8086
+
8087
+ /* Icons inside buttons should inherit from button's foreground color */
8088
+ .muka-button .muka-icon {
8089
+ color: inherit;
8090
+ }
8091
+
8092
+ .muka-icon--subtle {
8093
+ color: var(--color-icon-subtle-default);
8094
+ }
8095
+
8096
+ .muka-icon--muted {
8097
+ color: var(--color-icon-muted-default);
8098
+ }
8099
+
8100
+ .muka-icon--inverse {
8101
+ color: var(--color-icon-default-inverse);
8102
+ }
8103
+
8104
+ .muka-icon--xs {
8105
+ width: var(--icon-size-xs);
8106
+ height: var(--icon-size-xs);
8107
+ }
8108
+
8109
+ .muka-icon--sm {
8110
+ width: var(--icon-size-sm);
8111
+ height: var(--icon-size-sm);
8112
+ }
8113
+
8114
+ .muka-icon--md {
8115
+ width: var(--icon-size-default);
8116
+ height: var(--icon-size-default);
8117
+ }
8118
+
8119
+ .muka-icon--lg {
8120
+ width: var(--icon-size-lg);
8121
+ height: var(--icon-size-lg);
8122
+ }
8123
+
8124
+ .muka-icon svg {
8125
+ width: 100%;
8126
+ height: 100%;
8127
+ }
8128
+
8129
+
8074
8130
  /* Form */
8075
8131
  .muka-form {
8076
8132
  display: flex;
@@ -8494,60 +8550,6 @@ li.muka-listitem {
8494
8550
  }
8495
8551
 
8496
8552
 
8497
- /* Icon */
8498
- /* Icon Component Styles - Using Muka Design Tokens */
8499
-
8500
- .muka-icon {
8501
- display: inline-flex;
8502
- align-items: center;
8503
- justify-content: center;
8504
- flex-shrink: 0;
8505
- color: var(--color-icon-default-default, currentColor);
8506
- }
8507
-
8508
- /* Icons inside buttons should inherit from button's foreground color */
8509
- .muka-button .muka-icon {
8510
- color: inherit;
8511
- }
8512
-
8513
- .muka-icon--subtle {
8514
- color: var(--color-icon-subtle-default);
8515
- }
8516
-
8517
- .muka-icon--muted {
8518
- color: var(--color-icon-muted-default);
8519
- }
8520
-
8521
- .muka-icon--inverse {
8522
- color: var(--color-icon-default-inverse);
8523
- }
8524
-
8525
- .muka-icon--xs {
8526
- width: var(--icon-size-xs);
8527
- height: var(--icon-size-xs);
8528
- }
8529
-
8530
- .muka-icon--sm {
8531
- width: var(--icon-size-sm);
8532
- height: var(--icon-size-sm);
8533
- }
8534
-
8535
- .muka-icon--md {
8536
- width: var(--icon-size-default);
8537
- height: var(--icon-size-default);
8538
- }
8539
-
8540
- .muka-icon--lg {
8541
- width: var(--icon-size-lg);
8542
- height: var(--icon-size-lg);
8543
- }
8544
-
8545
- .muka-icon svg {
8546
- width: 100%;
8547
- height: 100%;
8548
- }
8549
-
8550
-
8551
8553
  /* EmptyState */
8552
8554
  /* EmptyState Component Styles - Using Muka Design Tokens */
8553
8555
 
@@ -9124,6 +9126,33 @@ li.muka-listitem {
9124
9126
  }
9125
9127
 
9126
9128
 
9129
+ /* Divider */
9130
+ /* Divider Component Styles - Using Muka Design Tokens */
9131
+
9132
+ .muka-divider {
9133
+ flex-shrink: 0;
9134
+ }
9135
+
9136
+ .muka-divider--horizontal {
9137
+ width: 100%;
9138
+ height: var(--separator-width);
9139
+ }
9140
+
9141
+ .muka-divider--vertical {
9142
+ height: 100%;
9143
+ width: var(--separator-width);
9144
+ align-self: stretch;
9145
+ }
9146
+
9147
+ .muka-divider--default {
9148
+ background-color: var(--separator-color-default);
9149
+ }
9150
+
9151
+ .muka-divider--contrast {
9152
+ background-color: var(--separator-color-contrast);
9153
+ }
9154
+
9155
+
9127
9156
  /* Dialog */
9128
9157
  /* Dialog Component Styles */
9129
9158
 
@@ -9391,33 +9420,6 @@ li.muka-listitem {
9391
9420
  }
9392
9421
 
9393
9422
 
9394
- /* Divider */
9395
- /* Divider Component Styles - Using Muka Design Tokens */
9396
-
9397
- .muka-divider {
9398
- flex-shrink: 0;
9399
- }
9400
-
9401
- .muka-divider--horizontal {
9402
- width: 100%;
9403
- height: var(--separator-width);
9404
- }
9405
-
9406
- .muka-divider--vertical {
9407
- height: 100%;
9408
- width: var(--separator-width);
9409
- align-self: stretch;
9410
- }
9411
-
9412
- .muka-divider--default {
9413
- background-color: var(--separator-color-default);
9414
- }
9415
-
9416
- .muka-divider--contrast {
9417
- background-color: var(--separator-color-contrast);
9418
- }
9419
-
9420
-
9421
9423
  /* DatePicker */
9422
9424
  /* DatePicker — compact native date field. */
9423
9425
  /* Field/label/helper styling is inherited from ../Input/Input.css. */