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