@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.
@@ -2075,6 +2075,8 @@ body {
2075
2075
  --segmentgroup-container-radius: 999rem;
2076
2076
  --segmentgroup-container-padding: 0.25rem;
2077
2077
  --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);
2078
+ --segmentgroup-segment-fontWeight: 400;
2079
+ --segmentgroup-segment-gap: 0.25rem;
2078
2080
  --segmentgroup-segment-color-selected-background: #fcfcfc;
2079
2081
  --segmentgroup-segment-color-selected-foreground: #202020;
2080
2082
  --segmentgroup-segment-color-unselected-background: transparent;
@@ -5031,7 +5033,7 @@ body {
5031
5033
  background-color: var(--segmentgroup-container-background);
5032
5034
  border-radius: var(--segmentgroup-container-radius);
5033
5035
  position: relative;
5034
- transition: all 0.2s ease;
5036
+ transition: background-color 0.2s ease, box-shadow 0.2s ease;
5035
5037
  }
5036
5038
 
5037
5039
  /* Inset shadow on container */
@@ -5072,17 +5074,18 @@ body {
5072
5074
  display: inline-flex;
5073
5075
  align-items: center;
5074
5076
  justify-content: center;
5077
+ gap: var(--segmentgroup-segment-gap);
5075
5078
  border: none;
5076
5079
  background-color: var(--segmentgroup-segment-color-unselected-background);
5077
5080
  color: var(--segmentgroup-segment-color-unselected-foreground);
5078
5081
  border-radius: var(--segmentgroup-segment-radius);
5079
5082
  cursor: pointer;
5080
- transition: all 0.2s ease;
5083
+ transition: background-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
5081
5084
  position: relative;
5082
5085
  outline: none;
5083
5086
  box-shadow: var(--segmentgroup-segment-shadow-unselected);
5084
5087
  font-family: var(--alias-font-plain-family);
5085
- font-weight: var(--alias-font-plain-weight-regular);
5088
+ font-weight: var(--segmentgroup-segment-fontWeight);
5086
5089
  z-index: 1; /* Keep above pill */
5087
5090
  }
5088
5091
 
@@ -5175,7 +5178,6 @@ body {
5175
5178
  background-color: transparent;
5176
5179
  box-shadow: none;
5177
5180
  color: var(--segmentgroup-segment-color-selected-foreground);
5178
- font-weight: var(--alias-font-plain-weight-semibold);
5179
5181
  z-index: 2; /* Highlight pill when focused is tested below */
5180
5182
  }
5181
5183
 
@@ -5902,6 +5904,53 @@ body {
5902
5904
  }
5903
5905
 
5904
5906
 
5907
+ /* PullToRefresh */
5908
+ /* PullToRefresh Component Styles */
5909
+
5910
+ .muka-pull-to-refresh {
5911
+ position: relative;
5912
+ display: flex;
5913
+ flex-direction: column;
5914
+ width: 100%;
5915
+ height: 100%;
5916
+ overflow: hidden;
5917
+ }
5918
+
5919
+ .muka-pull-to-refresh__indicator {
5920
+ position: absolute;
5921
+ top: 0;
5922
+ left: 0;
5923
+ right: 0;
5924
+ display: flex;
5925
+ align-items: flex-end;
5926
+ justify-content: center;
5927
+ padding-bottom: var(--spacing-2);
5928
+ color: var(--color-text-subtle-default);
5929
+ overflow: hidden;
5930
+ pointer-events: none;
5931
+ z-index: 1;
5932
+ }
5933
+
5934
+ .muka-pull-to-refresh__chevron {
5935
+ display: inline-flex;
5936
+ align-items: center;
5937
+ justify-content: center;
5938
+ transition: transform 0.16s ease;
5939
+ }
5940
+
5941
+ .muka-pull-to-refresh__scroller {
5942
+ flex: 1 1 auto;
5943
+ min-height: 0;
5944
+ width: 100%;
5945
+ overflow-x: clip;
5946
+ overflow-y: auto;
5947
+ -webkit-overflow-scrolling: touch;
5948
+ overscroll-behavior-y: contain;
5949
+ touch-action: pan-y;
5950
+ will-change: transform;
5951
+ }
5952
+
5953
+
5905
5954
  /* ProgressTracker */
5906
5955
  /* ProgressTracker Component Styles — Using Muka Design Tokens */
5907
5956
 
@@ -6308,53 +6357,6 @@ body {
6308
6357
  }
6309
6358
 
6310
6359
 
6311
- /* PullToRefresh */
6312
- /* PullToRefresh Component Styles */
6313
-
6314
- .muka-pull-to-refresh {
6315
- position: relative;
6316
- display: flex;
6317
- flex-direction: column;
6318
- width: 100%;
6319
- height: 100%;
6320
- overflow: hidden;
6321
- }
6322
-
6323
- .muka-pull-to-refresh__indicator {
6324
- position: absolute;
6325
- top: 0;
6326
- left: 0;
6327
- right: 0;
6328
- display: flex;
6329
- align-items: flex-end;
6330
- justify-content: center;
6331
- padding-bottom: var(--spacing-2);
6332
- color: var(--color-text-subtle-default);
6333
- overflow: hidden;
6334
- pointer-events: none;
6335
- z-index: 1;
6336
- }
6337
-
6338
- .muka-pull-to-refresh__chevron {
6339
- display: inline-flex;
6340
- align-items: center;
6341
- justify-content: center;
6342
- transition: transform 0.16s ease;
6343
- }
6344
-
6345
- .muka-pull-to-refresh__scroller {
6346
- flex: 1 1 auto;
6347
- min-height: 0;
6348
- width: 100%;
6349
- overflow-x: clip;
6350
- overflow-y: auto;
6351
- -webkit-overflow-scrolling: touch;
6352
- overscroll-behavior-y: contain;
6353
- touch-action: pan-y;
6354
- will-change: transform;
6355
- }
6356
-
6357
-
6358
6360
  /* Progress */
6359
6361
  /* Progress Component Styles - Using Muka Design Tokens */
6360
6362
 
@@ -6527,6 +6529,77 @@ body {
6527
6529
  }
6528
6530
 
6529
6531
 
6532
+ /* ProfileBadge */
6533
+ /* ProfileBadge Component Styles - Using Muka Design Tokens */
6534
+
6535
+ .muka-profile-badge {
6536
+ display: inline-flex;
6537
+ align-items: center;
6538
+ font-family: var(--text-body-base-regular-fontFamily);
6539
+ }
6540
+
6541
+ /* Size variants */
6542
+ .muka-profile-badge--lg {
6543
+ gap: var(--spacing-4); /* 16px */
6544
+ }
6545
+
6546
+ .muka-profile-badge--md {
6547
+ gap: var(--spacing-3); /* 12px */
6548
+ }
6549
+
6550
+ .muka-profile-badge__avatar {
6551
+ flex-shrink: 0;
6552
+ }
6553
+
6554
+ /* Text stack */
6555
+ .muka-profile-badge__text {
6556
+ display: flex;
6557
+ flex-direction: column;
6558
+ align-items: flex-start;
6559
+ min-width: 0;
6560
+ }
6561
+
6562
+ .muka-profile-badge__name {
6563
+ font-family: var(--text-body-base-regular-fontFamily);
6564
+ font-size: var(--text-body-base-regular-fontSize);
6565
+ font-weight: var(--text-body-base-regular-fontWeight);
6566
+ line-height: var(--text-body-base-regular-lineHeight);
6567
+ color: var(--color-text-default-default);
6568
+ }
6569
+
6570
+ .muka-profile-badge__email {
6571
+ font-family: var(--text-body-xs-regular-fontFamily);
6572
+ font-size: var(--text-body-xs-regular-fontSize);
6573
+ font-weight: var(--text-body-xs-regular-fontWeight);
6574
+ line-height: var(--text-body-xs-regular-lineHeight);
6575
+ color: var(--color-text-subtle-default);
6576
+ }
6577
+
6578
+ /* Clickable state */
6579
+ .muka-profile-badge--clickable {
6580
+ cursor: pointer;
6581
+ border: none;
6582
+ background: none;
6583
+ padding: 0;
6584
+ text-align: left;
6585
+ border-radius: var(--radius-md);
6586
+ transition: opacity 0.2s ease;
6587
+ }
6588
+
6589
+ .muka-profile-badge--clickable:hover {
6590
+ opacity: 0.9;
6591
+ }
6592
+
6593
+ .muka-profile-badge--clickable:active {
6594
+ opacity: 0.8;
6595
+ }
6596
+
6597
+ .muka-profile-badge--clickable:focus-visible {
6598
+ outline: 2px solid var(--color-border-focus);
6599
+ outline-offset: 2px;
6600
+ }
6601
+
6602
+
6530
6603
  /* PriceTag */
6531
6604
  /* PriceTag Component Styles - Using Muka Design Tokens */
6532
6605
 
@@ -6655,77 +6728,6 @@ body {
6655
6728
  }
6656
6729
 
6657
6730
 
6658
- /* ProfileBadge */
6659
- /* ProfileBadge Component Styles - Using Muka Design Tokens */
6660
-
6661
- .muka-profile-badge {
6662
- display: inline-flex;
6663
- align-items: center;
6664
- font-family: var(--text-body-base-regular-fontFamily);
6665
- }
6666
-
6667
- /* Size variants */
6668
- .muka-profile-badge--lg {
6669
- gap: var(--spacing-4); /* 16px */
6670
- }
6671
-
6672
- .muka-profile-badge--md {
6673
- gap: var(--spacing-3); /* 12px */
6674
- }
6675
-
6676
- .muka-profile-badge__avatar {
6677
- flex-shrink: 0;
6678
- }
6679
-
6680
- /* Text stack */
6681
- .muka-profile-badge__text {
6682
- display: flex;
6683
- flex-direction: column;
6684
- align-items: flex-start;
6685
- min-width: 0;
6686
- }
6687
-
6688
- .muka-profile-badge__name {
6689
- font-family: var(--text-body-base-regular-fontFamily);
6690
- font-size: var(--text-body-base-regular-fontSize);
6691
- font-weight: var(--text-body-base-regular-fontWeight);
6692
- line-height: var(--text-body-base-regular-lineHeight);
6693
- color: var(--color-text-default-default);
6694
- }
6695
-
6696
- .muka-profile-badge__email {
6697
- font-family: var(--text-body-xs-regular-fontFamily);
6698
- font-size: var(--text-body-xs-regular-fontSize);
6699
- font-weight: var(--text-body-xs-regular-fontWeight);
6700
- line-height: var(--text-body-xs-regular-lineHeight);
6701
- color: var(--color-text-subtle-default);
6702
- }
6703
-
6704
- /* Clickable state */
6705
- .muka-profile-badge--clickable {
6706
- cursor: pointer;
6707
- border: none;
6708
- background: none;
6709
- padding: 0;
6710
- text-align: left;
6711
- border-radius: var(--radius-md);
6712
- transition: opacity 0.2s ease;
6713
- }
6714
-
6715
- .muka-profile-badge--clickable:hover {
6716
- opacity: 0.9;
6717
- }
6718
-
6719
- .muka-profile-badge--clickable:active {
6720
- opacity: 0.8;
6721
- }
6722
-
6723
- .muka-profile-badge--clickable:focus-visible {
6724
- outline: 2px solid var(--color-border-focus);
6725
- outline-offset: 2px;
6726
- }
6727
-
6728
-
6729
6731
  /* PieChart */
6730
6732
  /* PieChart Component Styles - Using Muka Design Tokens */
6731
6733
 
@@ -8038,6 +8040,60 @@ li.muka-listitem {
8038
8040
  }
8039
8041
 
8040
8042
 
8043
+ /* Icon */
8044
+ /* Icon Component Styles - Using Muka Design Tokens */
8045
+
8046
+ .muka-icon {
8047
+ display: inline-flex;
8048
+ align-items: center;
8049
+ justify-content: center;
8050
+ flex-shrink: 0;
8051
+ color: var(--color-icon-default-default, currentColor);
8052
+ }
8053
+
8054
+ /* Icons inside buttons should inherit from button's foreground color */
8055
+ .muka-button .muka-icon {
8056
+ color: inherit;
8057
+ }
8058
+
8059
+ .muka-icon--subtle {
8060
+ color: var(--color-icon-subtle-default);
8061
+ }
8062
+
8063
+ .muka-icon--muted {
8064
+ color: var(--color-icon-muted-default);
8065
+ }
8066
+
8067
+ .muka-icon--inverse {
8068
+ color: var(--color-icon-default-inverse);
8069
+ }
8070
+
8071
+ .muka-icon--xs {
8072
+ width: var(--icon-size-xs);
8073
+ height: var(--icon-size-xs);
8074
+ }
8075
+
8076
+ .muka-icon--sm {
8077
+ width: var(--icon-size-sm);
8078
+ height: var(--icon-size-sm);
8079
+ }
8080
+
8081
+ .muka-icon--md {
8082
+ width: var(--icon-size-default);
8083
+ height: var(--icon-size-default);
8084
+ }
8085
+
8086
+ .muka-icon--lg {
8087
+ width: var(--icon-size-lg);
8088
+ height: var(--icon-size-lg);
8089
+ }
8090
+
8091
+ .muka-icon svg {
8092
+ width: 100%;
8093
+ height: 100%;
8094
+ }
8095
+
8096
+
8041
8097
  /* Form */
8042
8098
  .muka-form {
8043
8099
  display: flex;
@@ -8461,60 +8517,6 @@ li.muka-listitem {
8461
8517
  }
8462
8518
 
8463
8519
 
8464
- /* Icon */
8465
- /* Icon Component Styles - Using Muka Design Tokens */
8466
-
8467
- .muka-icon {
8468
- display: inline-flex;
8469
- align-items: center;
8470
- justify-content: center;
8471
- flex-shrink: 0;
8472
- color: var(--color-icon-default-default, currentColor);
8473
- }
8474
-
8475
- /* Icons inside buttons should inherit from button's foreground color */
8476
- .muka-button .muka-icon {
8477
- color: inherit;
8478
- }
8479
-
8480
- .muka-icon--subtle {
8481
- color: var(--color-icon-subtle-default);
8482
- }
8483
-
8484
- .muka-icon--muted {
8485
- color: var(--color-icon-muted-default);
8486
- }
8487
-
8488
- .muka-icon--inverse {
8489
- color: var(--color-icon-default-inverse);
8490
- }
8491
-
8492
- .muka-icon--xs {
8493
- width: var(--icon-size-xs);
8494
- height: var(--icon-size-xs);
8495
- }
8496
-
8497
- .muka-icon--sm {
8498
- width: var(--icon-size-sm);
8499
- height: var(--icon-size-sm);
8500
- }
8501
-
8502
- .muka-icon--md {
8503
- width: var(--icon-size-default);
8504
- height: var(--icon-size-default);
8505
- }
8506
-
8507
- .muka-icon--lg {
8508
- width: var(--icon-size-lg);
8509
- height: var(--icon-size-lg);
8510
- }
8511
-
8512
- .muka-icon svg {
8513
- width: 100%;
8514
- height: 100%;
8515
- }
8516
-
8517
-
8518
8520
  /* EmptyState */
8519
8521
  /* EmptyState Component Styles - Using Muka Design Tokens */
8520
8522
 
@@ -9091,6 +9093,33 @@ li.muka-listitem {
9091
9093
  }
9092
9094
 
9093
9095
 
9096
+ /* Divider */
9097
+ /* Divider Component Styles - Using Muka Design Tokens */
9098
+
9099
+ .muka-divider {
9100
+ flex-shrink: 0;
9101
+ }
9102
+
9103
+ .muka-divider--horizontal {
9104
+ width: 100%;
9105
+ height: var(--separator-width);
9106
+ }
9107
+
9108
+ .muka-divider--vertical {
9109
+ height: 100%;
9110
+ width: var(--separator-width);
9111
+ align-self: stretch;
9112
+ }
9113
+
9114
+ .muka-divider--default {
9115
+ background-color: var(--separator-color-default);
9116
+ }
9117
+
9118
+ .muka-divider--contrast {
9119
+ background-color: var(--separator-color-contrast);
9120
+ }
9121
+
9122
+
9094
9123
  /* Dialog */
9095
9124
  /* Dialog Component Styles */
9096
9125
 
@@ -9358,33 +9387,6 @@ li.muka-listitem {
9358
9387
  }
9359
9388
 
9360
9389
 
9361
- /* Divider */
9362
- /* Divider Component Styles - Using Muka Design Tokens */
9363
-
9364
- .muka-divider {
9365
- flex-shrink: 0;
9366
- }
9367
-
9368
- .muka-divider--horizontal {
9369
- width: 100%;
9370
- height: var(--separator-width);
9371
- }
9372
-
9373
- .muka-divider--vertical {
9374
- height: 100%;
9375
- width: var(--separator-width);
9376
- align-self: stretch;
9377
- }
9378
-
9379
- .muka-divider--default {
9380
- background-color: var(--separator-color-default);
9381
- }
9382
-
9383
- .muka-divider--contrast {
9384
- background-color: var(--separator-color-contrast);
9385
- }
9386
-
9387
-
9388
9390
  /* DatePicker */
9389
9391
  /* DatePicker — compact native date field. */
9390
9392
  /* Field/label/helper styling is inherited from ../Input/Input.css. */
@@ -29,6 +29,10 @@ export interface SegmentGroupProps {
29
29
  disabled?: boolean;
30
30
  /** Render only icons without labels */
31
31
  iconOnly?: boolean;
32
+ /** Accessible name for the group */
33
+ 'aria-label'?: string;
34
+ /** ID of an element that labels the group */
35
+ 'aria-labelledby'?: string;
32
36
  }
33
37
  /**
34
38
  * SegmentGroup Component
@@ -1 +1 @@
1
- {"version":3,"file":"SegmentGroup.d.ts","sourceRoot":"","sources":["../../../../components/SegmentGroup/SegmentGroup.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAmD,MAAM,OAAO,CAAC;AACxE,OAAO,oBAAoB,CAAC;AAE5B,MAAM,WAAW,aAAa;IAC5B,oCAAoC;IACpC,KAAK,EAAE,MAAM,CAAC;IACd,oBAAoB;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,0BAA0B;IAC1B,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,qBAAqB;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,iBAAiB;IAChC,+BAA+B;IAC/B,OAAO,EAAE,aAAa,EAAE,CAAC;IAEzB,4CAA4C;IAC5C,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,4CAA4C;IAC5C,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,qBAAqB;IACrB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAEnC,mBAAmB;IACnB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAE1B,6BAA6B;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,iBAAiB;IACjB,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB,sCAAsC;IACtC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,uCAA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,CAAC;CAC5B;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAuJpD,CAAC;AAEF,eAAe,YAAY,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@revikornmann/muka-ui",
3
- "version": "0.9.0",
3
+ "version": "0.9.1",
4
4
  "description": "Muka Design System - Multi-brand design tokens and React components",
5
5
  "main": "dist/cjs/components/index.js",
6
6
  "module": "dist/esm/components/index.js",
@@ -23,6 +23,14 @@
23
23
  }
24
24
  },
25
25
  "segment": {
26
+ "fontWeight": {
27
+ "$type": "fontWeights",
28
+ "$value": "400"
29
+ },
30
+ "gap": {
31
+ "$type": "dimension",
32
+ "$value": "{spacing.1}"
33
+ },
26
34
  "color": {
27
35
  "selected": {
28
36
  "background": {