@innovaccer/design-system 4.18.0 → 4.19.0

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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,44 @@
1
+ ## 4.19.0 (2025-01-07)
2
+
3
+ ### Highlights
4
+
5
+ - feat(segmentedControl): add new segmented control component (847a58fa)
6
+ - feat(selectTrigger): add minWidth maxWidth support (9931c6e9)
7
+ - feat(table): replace dropdown with select in table and grid (d0b33355)
8
+
9
+ ### Breaking changes
10
+
11
+ NA
12
+
13
+ ### Migration guide
14
+
15
+ NA
16
+
17
+ ### Deprecations
18
+
19
+ NA
20
+
21
+ ### Features
22
+
23
+ - feat(segmentedControl): add new segmented control component (847a58fa)
24
+ - feat(selectTrigger): add minWidth maxWidth support (9931c6e9)
25
+ - feat(table): replace dropdown with select in table and grid (d0b33355)
26
+
27
+ ### Fixes
28
+
29
+ - fix(segmentedControl): fix size issue and restrict first render animation (27b86d1c)
30
+
31
+ ### Improvements
32
+
33
+ NA
34
+
35
+ ### Documentation
36
+
37
+ - docs(segmentedControl): add docs of the new component segmented control (3cf558d6)
38
+ - docs(segmentedControl): update interaction tab content and basic button content (389a8a11)
39
+
40
+ ---
41
+
1
42
  ## 4.18.0 (2025-12-29)
2
43
 
3
44
  ### Highlights
@@ -7649,6 +7649,277 @@ body {
7649
7649
  box-shadow: none;
7650
7650
  }
7651
7651
 
7652
+ .SegmentedControl {
7653
+ display: inline-flex;
7654
+ align-items: stretch;
7655
+ position: relative;
7656
+ border-radius: var(--border-radius-10);
7657
+ max-width: 100%;
7658
+ box-sizing: border-box;
7659
+ box-shadow: inset 0 0 0 var(--border-width-2-5) var(--secondary);
7660
+ overflow: visible;
7661
+ }
7662
+
7663
+ .SegmentedControl--expanded {
7664
+ width: 100%;
7665
+ display: flex;
7666
+ }
7667
+
7668
+ .SegmentedControl-segment--expanded {
7669
+ flex: 1 1 0;
7670
+ min-width: 0;
7671
+ width: 0;
7672
+ }
7673
+
7674
+ .SegmentedControl-segment--equalWidth {
7675
+ width: var(--segment-equal-width, -moz-max-content);
7676
+ width: var(--segment-equal-width, max-content);
7677
+ flex: 0 0 auto;
7678
+ min-width: var(--segment-equal-width, -moz-max-content);
7679
+ min-width: var(--segment-equal-width, max-content);
7680
+ }
7681
+
7682
+ .SegmentedControl-segment--equalWidth .SegmentedControl-segmentLabel {
7683
+ overflow: visible;
7684
+ text-overflow: clip;
7685
+ }
7686
+
7687
+ .SegmentedControl-segmentLabel--constrained {
7688
+ overflow: hidden !important;
7689
+ text-overflow: ellipsis !important;
7690
+ }
7691
+
7692
+ .SegmentedControl--disabled {
7693
+ opacity: var(--opacity-16);
7694
+ cursor: not-allowed;
7695
+ }
7696
+
7697
+ .SegmentedControl-indicator {
7698
+ position: absolute;
7699
+ left: 0;
7700
+ box-sizing: border-box;
7701
+ background-color: var(--primary-ultra-light);
7702
+ border: var(--border-width-2-5) solid var(--primary-lighter);
7703
+ border-radius: var(--border-radius-10);
7704
+ pointer-events: none;
7705
+ z-index: 2;
7706
+ transition: transform var(--duration--moderate-02) var(--standard-productive-curve),
7707
+ width var(--duration--moderate-02) var(--standard-productive-curve),
7708
+ top var(--duration--moderate-02) var(--standard-productive-curve),
7709
+ height var(--duration--moderate-02) var(--standard-productive-curve);
7710
+ }
7711
+
7712
+ .SegmentedControl-segment {
7713
+ -webkit-appearance: none;
7714
+ -moz-appearance: none;
7715
+ appearance: none;
7716
+ border: var(--border-width-2-5) solid transparent;
7717
+ background-clip: padding-box;
7718
+ border-radius: 0;
7719
+ background-color: transparent;
7720
+ position: relative;
7721
+ color: var(--text);
7722
+ display: inline-flex;
7723
+ align-items: center;
7724
+ justify-content: center;
7725
+ padding: var(--spacing-15) var(--spacing-30);
7726
+ cursor: pointer;
7727
+ font-family: inherit;
7728
+ font-size: var(--font-size);
7729
+ line-height: var(--font-height);
7730
+ font-weight: var(--font-weight-normal);
7731
+ text-decoration: none;
7732
+ max-width: var(--segment-max-width, none);
7733
+ min-width: 0;
7734
+ z-index: 3;
7735
+ transition: color var(--duration--moderate-02) var(--standard-productive-curve),
7736
+ background-color var(--duration--moderate-02) var(--standard-productive-curve),
7737
+ box-shadow var(--duration--moderate-02) var(--standard-productive-curve),
7738
+ font-weight var(--duration--moderate-02) var(--standard-productive-curve);
7739
+ }
7740
+
7741
+ .SegmentedControl-segment:nth-of-type(1) {
7742
+ border-top-left-radius: var(--border-radius-10);
7743
+ border-bottom-left-radius: var(--border-radius-10);
7744
+ }
7745
+
7746
+ .SegmentedControl-segment:last-child {
7747
+ border-top-right-radius: var(--border-radius-10);
7748
+ border-bottom-right-radius: var(--border-radius-10);
7749
+ }
7750
+
7751
+ .SegmentedControl-segment:focus {
7752
+ outline: none;
7753
+ }
7754
+
7755
+ .SegmentedControl-segment:focus-visible:not(.SegmentedControl-segment--selected) {
7756
+ border-color: var(--primary);
7757
+ border-radius: var(--border-radius-10);
7758
+ box-shadow: var(--shadow-spread) var(--primary-shadow);
7759
+ z-index: 100;
7760
+ position: relative;
7761
+ }
7762
+
7763
+ .SegmentedControl-segment:hover:not(.SegmentedControl-segment--disabled):not(.SegmentedControl-segment--selected) {
7764
+ background-color: var(--secondary-lighter);
7765
+ }
7766
+
7767
+ .SegmentedControl-segment:active:not(.SegmentedControl-segment--disabled):not(.SegmentedControl-segment--selected) {
7768
+ color: var(--primary-dark);
7769
+ }
7770
+
7771
+ .SegmentedControl-segment--selected {
7772
+ color: var(--primary-dark);
7773
+ cursor: default;
7774
+ }
7775
+
7776
+ .SegmentedControl-segment--selected.SegmentedControl-segment--disabled {
7777
+ color: var(--primary-dark);
7778
+ cursor: not-allowed;
7779
+ }
7780
+
7781
+ .SegmentedControl-segment--selected.SegmentedControl-segment--disabled::after {
7782
+ content: '';
7783
+ position: absolute;
7784
+ top: var(--border-width-2-5);
7785
+ left: var(--border-width-2-5);
7786
+ right: var(--border-width-2-5);
7787
+ bottom: var(--border-width-2-5);
7788
+ background-color: var(--white);
7789
+ opacity: var(--opacity-12);
7790
+ border-radius: calc(var(--border-radius-10) - var(--border-width-2-5));
7791
+ pointer-events: none;
7792
+ z-index: 1;
7793
+ }
7794
+
7795
+ .SegmentedControl:has(.SegmentedControl-segment--selected.SegmentedControl-segment--disabled)
7796
+ .SegmentedControl-indicator {
7797
+ opacity: calc(1 - var(--opacity-12));
7798
+ }
7799
+
7800
+ .SegmentedControl-segment--twoSegmentsSelected {
7801
+ cursor: pointer;
7802
+ }
7803
+
7804
+ .SegmentedControl-segment--small {
7805
+ padding: var(--spacing-10) var(--spacing-20);
7806
+ height: var(--spacing-60);
7807
+ font-size: var(--font-size-s);
7808
+ line-height: var(--font-height-s);
7809
+ font-weight: var(--font-weight-medium);
7810
+ }
7811
+
7812
+ .SegmentedControl-segment--regular {
7813
+ padding: var(--spacing-15) var(--spacing-30);
7814
+ height: var(--spacing-80);
7815
+ line-height: var(--font-height);
7816
+ }
7817
+
7818
+ .SegmentedControl-segment--large {
7819
+ padding: var(--spacing-20) var(--spacing-40);
7820
+ height: 40px;
7821
+ font-size: var(--font-size-m);
7822
+ line-height: var(--font-height-m);
7823
+ }
7824
+
7825
+ .SegmentedControl-segment--customContent {
7826
+ height: auto;
7827
+ }
7828
+
7829
+ .SegmentedControl-segment--disabled {
7830
+ cursor: not-allowed;
7831
+ color: var(--text-disabled);
7832
+ background-color: transparent;
7833
+ }
7834
+
7835
+ .SegmentedControl-segment--iconOnly {
7836
+ height: var(--spacing-80);
7837
+ width: var(--spacing-80);
7838
+ padding: var(--spacing-15) var(--spacing-20);
7839
+ box-sizing: border-box;
7840
+ }
7841
+
7842
+ .SegmentedControl-segment--smallIconOnly {
7843
+ height: var(--spacing-60);
7844
+ width: var(--spacing-60);
7845
+ padding: var(--spacing-10) var(--spacing-15);
7846
+ box-sizing: border-box;
7847
+ }
7848
+
7849
+ .SegmentedControl-segment--largeIconOnly {
7850
+ height: 40px;
7851
+ width: 40px;
7852
+ padding: var(--spacing-20) var(--spacing-30);
7853
+ box-sizing: border-box;
7854
+ }
7855
+
7856
+ .SegmentedControl-segmentIcon {
7857
+ display: inline-flex;
7858
+ align-items: center;
7859
+ justify-content: center;
7860
+ margin: 0;
7861
+ transition: color var(--duration--moderate-02) var(--standard-productive-curve);
7862
+ }
7863
+
7864
+ .SegmentedControl-segmentIcon--only {
7865
+ margin: 0;
7866
+ }
7867
+
7868
+ .SegmentedControl-segmentIcon--small {
7869
+ margin-right: var(--spacing-10);
7870
+ }
7871
+
7872
+ .SegmentedControl-segmentIcon--regular {
7873
+ margin-right: var(--spacing-15);
7874
+ }
7875
+
7876
+ .SegmentedControl-segmentIcon--large {
7877
+ margin-right: var(--spacing-20);
7878
+ }
7879
+
7880
+ .SegmentedControl-segmentLabel {
7881
+ white-space: nowrap;
7882
+ overflow: hidden;
7883
+ text-overflow: ellipsis;
7884
+ transition: color var(--duration--moderate-02) var(--standard-productive-curve);
7885
+ }
7886
+
7887
+ .SegmentedControl-divider {
7888
+ width: var(--border-width-2-5);
7889
+ background-color: var(--secondary);
7890
+ align-self: center;
7891
+ flex-shrink: 0;
7892
+ transition: opacity var(--duration--moderate-02) var(--standard-productive-curve);
7893
+ }
7894
+
7895
+ .SegmentedControl-divider--hidden {
7896
+ opacity: 0;
7897
+ pointer-events: none;
7898
+ }
7899
+
7900
+ .SegmentedControl-divider--small {
7901
+ height: 10px;
7902
+ }
7903
+
7904
+ .SegmentedControl-divider--regular {
7905
+ height: var(--spacing-30);
7906
+ }
7907
+
7908
+ .SegmentedControl-divider--large {
7909
+ height: 14px;
7910
+ }
7911
+
7912
+ @media (prefers-contrast: high) {
7913
+ .SegmentedControl-segment:focus-visible {
7914
+ outline-width: var(--border-width-10);
7915
+ outline-offset: var(--spacing-05);
7916
+ }
7917
+
7918
+ .SegmentedControl-segment--selected {
7919
+ border-color: var(--primary);
7920
+ }
7921
+ }
7922
+
7652
7923
  .Select-input {
7653
7924
  min-width: unset !important;
7654
7925
  background: transparent;