@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.
@@ -11455,6 +11455,277 @@ body {
11455
11455
  background: var(--success);
11456
11456
  }
11457
11457
 
11458
+ .SegmentedControl {
11459
+ display: inline-flex;
11460
+ align-items: stretch;
11461
+ position: relative;
11462
+ border-radius: var(--border-radius-10);
11463
+ max-width: 100%;
11464
+ box-sizing: border-box;
11465
+ box-shadow: inset 0 0 0 var(--border-width-2-5) var(--secondary);
11466
+ overflow: visible;
11467
+ }
11468
+
11469
+ .SegmentedControl--expanded {
11470
+ width: 100%;
11471
+ display: flex;
11472
+ }
11473
+
11474
+ .SegmentedControl-segment--expanded {
11475
+ flex: 1 1 0;
11476
+ min-width: 0;
11477
+ width: 0;
11478
+ }
11479
+
11480
+ .SegmentedControl-segment--equalWidth {
11481
+ width: var(--segment-equal-width, -moz-max-content);
11482
+ width: var(--segment-equal-width, max-content);
11483
+ flex: 0 0 auto;
11484
+ min-width: var(--segment-equal-width, -moz-max-content);
11485
+ min-width: var(--segment-equal-width, max-content);
11486
+ }
11487
+
11488
+ .SegmentedControl-segment--equalWidth .SegmentedControl-segmentLabel {
11489
+ overflow: visible;
11490
+ text-overflow: clip;
11491
+ }
11492
+
11493
+ .SegmentedControl-segmentLabel--constrained {
11494
+ overflow: hidden !important;
11495
+ text-overflow: ellipsis !important;
11496
+ }
11497
+
11498
+ .SegmentedControl--disabled {
11499
+ opacity: var(--opacity-16);
11500
+ cursor: not-allowed;
11501
+ }
11502
+
11503
+ .SegmentedControl-indicator {
11504
+ position: absolute;
11505
+ left: 0;
11506
+ box-sizing: border-box;
11507
+ background-color: var(--primary-ultra-light);
11508
+ border: var(--border-width-2-5) solid var(--primary-lighter);
11509
+ border-radius: var(--border-radius-10);
11510
+ pointer-events: none;
11511
+ z-index: 2;
11512
+ transition: transform var(--duration--moderate-02) var(--standard-productive-curve),
11513
+ width var(--duration--moderate-02) var(--standard-productive-curve),
11514
+ top var(--duration--moderate-02) var(--standard-productive-curve),
11515
+ height var(--duration--moderate-02) var(--standard-productive-curve);
11516
+ }
11517
+
11518
+ .SegmentedControl-segment {
11519
+ -webkit-appearance: none;
11520
+ -moz-appearance: none;
11521
+ appearance: none;
11522
+ border: var(--border-width-2-5) solid transparent;
11523
+ background-clip: padding-box;
11524
+ border-radius: 0;
11525
+ background-color: transparent;
11526
+ position: relative;
11527
+ color: var(--text);
11528
+ display: inline-flex;
11529
+ align-items: center;
11530
+ justify-content: center;
11531
+ padding: var(--spacing-15) var(--spacing-30);
11532
+ cursor: pointer;
11533
+ font-family: inherit;
11534
+ font-size: var(--font-size);
11535
+ line-height: var(--font-height);
11536
+ font-weight: var(--font-weight-normal);
11537
+ text-decoration: none;
11538
+ max-width: var(--segment-max-width, none);
11539
+ min-width: 0;
11540
+ z-index: 3;
11541
+ transition: color var(--duration--moderate-02) var(--standard-productive-curve),
11542
+ background-color var(--duration--moderate-02) var(--standard-productive-curve),
11543
+ box-shadow var(--duration--moderate-02) var(--standard-productive-curve),
11544
+ font-weight var(--duration--moderate-02) var(--standard-productive-curve);
11545
+ }
11546
+
11547
+ .SegmentedControl-segment:nth-of-type(1) {
11548
+ border-top-left-radius: var(--border-radius-10);
11549
+ border-bottom-left-radius: var(--border-radius-10);
11550
+ }
11551
+
11552
+ .SegmentedControl-segment:last-child {
11553
+ border-top-right-radius: var(--border-radius-10);
11554
+ border-bottom-right-radius: var(--border-radius-10);
11555
+ }
11556
+
11557
+ .SegmentedControl-segment:focus {
11558
+ outline: none;
11559
+ }
11560
+
11561
+ .SegmentedControl-segment:focus-visible:not(.SegmentedControl-segment--selected) {
11562
+ border-color: var(--primary);
11563
+ border-radius: var(--border-radius-10);
11564
+ box-shadow: var(--shadow-spread) var(--primary-shadow);
11565
+ z-index: 100;
11566
+ position: relative;
11567
+ }
11568
+
11569
+ .SegmentedControl-segment:hover:not(.SegmentedControl-segment--disabled):not(.SegmentedControl-segment--selected) {
11570
+ background-color: var(--secondary-lighter);
11571
+ }
11572
+
11573
+ .SegmentedControl-segment:active:not(.SegmentedControl-segment--disabled):not(.SegmentedControl-segment--selected) {
11574
+ color: var(--primary-dark);
11575
+ }
11576
+
11577
+ .SegmentedControl-segment--selected {
11578
+ color: var(--primary-dark);
11579
+ cursor: default;
11580
+ }
11581
+
11582
+ .SegmentedControl-segment--selected.SegmentedControl-segment--disabled {
11583
+ color: var(--primary-dark);
11584
+ cursor: not-allowed;
11585
+ }
11586
+
11587
+ .SegmentedControl-segment--selected.SegmentedControl-segment--disabled::after {
11588
+ content: '';
11589
+ position: absolute;
11590
+ top: var(--border-width-2-5);
11591
+ left: var(--border-width-2-5);
11592
+ right: var(--border-width-2-5);
11593
+ bottom: var(--border-width-2-5);
11594
+ background-color: var(--white);
11595
+ opacity: var(--opacity-12);
11596
+ border-radius: calc(var(--border-radius-10) - var(--border-width-2-5));
11597
+ pointer-events: none;
11598
+ z-index: 1;
11599
+ }
11600
+
11601
+ .SegmentedControl:has(.SegmentedControl-segment--selected.SegmentedControl-segment--disabled)
11602
+ .SegmentedControl-indicator {
11603
+ opacity: calc(1 - var(--opacity-12));
11604
+ }
11605
+
11606
+ .SegmentedControl-segment--twoSegmentsSelected {
11607
+ cursor: pointer;
11608
+ }
11609
+
11610
+ .SegmentedControl-segment--small {
11611
+ padding: var(--spacing-10) var(--spacing-20);
11612
+ height: var(--spacing-60);
11613
+ font-size: var(--font-size-s);
11614
+ line-height: var(--font-height-s);
11615
+ font-weight: var(--font-weight-medium);
11616
+ }
11617
+
11618
+ .SegmentedControl-segment--regular {
11619
+ padding: var(--spacing-15) var(--spacing-30);
11620
+ height: var(--spacing-80);
11621
+ line-height: var(--font-height);
11622
+ }
11623
+
11624
+ .SegmentedControl-segment--large {
11625
+ padding: var(--spacing-20) var(--spacing-40);
11626
+ height: 40px;
11627
+ font-size: var(--font-size-m);
11628
+ line-height: var(--font-height-m);
11629
+ }
11630
+
11631
+ .SegmentedControl-segment--customContent {
11632
+ height: auto;
11633
+ }
11634
+
11635
+ .SegmentedControl-segment--disabled {
11636
+ cursor: not-allowed;
11637
+ color: var(--text-disabled);
11638
+ background-color: transparent;
11639
+ }
11640
+
11641
+ .SegmentedControl-segment--iconOnly {
11642
+ height: var(--spacing-80);
11643
+ width: var(--spacing-80);
11644
+ padding: var(--spacing-15) var(--spacing-20);
11645
+ box-sizing: border-box;
11646
+ }
11647
+
11648
+ .SegmentedControl-segment--smallIconOnly {
11649
+ height: var(--spacing-60);
11650
+ width: var(--spacing-60);
11651
+ padding: var(--spacing-10) var(--spacing-15);
11652
+ box-sizing: border-box;
11653
+ }
11654
+
11655
+ .SegmentedControl-segment--largeIconOnly {
11656
+ height: 40px;
11657
+ width: 40px;
11658
+ padding: var(--spacing-20) var(--spacing-30);
11659
+ box-sizing: border-box;
11660
+ }
11661
+
11662
+ .SegmentedControl-segmentIcon {
11663
+ display: inline-flex;
11664
+ align-items: center;
11665
+ justify-content: center;
11666
+ margin: 0;
11667
+ transition: color var(--duration--moderate-02) var(--standard-productive-curve);
11668
+ }
11669
+
11670
+ .SegmentedControl-segmentIcon--only {
11671
+ margin: 0;
11672
+ }
11673
+
11674
+ .SegmentedControl-segmentIcon--small {
11675
+ margin-right: var(--spacing-10);
11676
+ }
11677
+
11678
+ .SegmentedControl-segmentIcon--regular {
11679
+ margin-right: var(--spacing-15);
11680
+ }
11681
+
11682
+ .SegmentedControl-segmentIcon--large {
11683
+ margin-right: var(--spacing-20);
11684
+ }
11685
+
11686
+ .SegmentedControl-segmentLabel {
11687
+ white-space: nowrap;
11688
+ overflow: hidden;
11689
+ text-overflow: ellipsis;
11690
+ transition: color var(--duration--moderate-02) var(--standard-productive-curve);
11691
+ }
11692
+
11693
+ .SegmentedControl-divider {
11694
+ width: var(--border-width-2-5);
11695
+ background-color: var(--secondary);
11696
+ align-self: center;
11697
+ flex-shrink: 0;
11698
+ transition: opacity var(--duration--moderate-02) var(--standard-productive-curve);
11699
+ }
11700
+
11701
+ .SegmentedControl-divider--hidden {
11702
+ opacity: 0;
11703
+ pointer-events: none;
11704
+ }
11705
+
11706
+ .SegmentedControl-divider--small {
11707
+ height: 10px;
11708
+ }
11709
+
11710
+ .SegmentedControl-divider--regular {
11711
+ height: var(--spacing-30);
11712
+ }
11713
+
11714
+ .SegmentedControl-divider--large {
11715
+ height: 14px;
11716
+ }
11717
+
11718
+ @media (prefers-contrast: high) {
11719
+ .SegmentedControl-segment:focus-visible {
11720
+ outline-width: var(--border-width-10);
11721
+ outline-offset: var(--spacing-05);
11722
+ }
11723
+
11724
+ .SegmentedControl-segment--selected {
11725
+ border-color: var(--primary);
11726
+ }
11727
+ }
11728
+
11458
11729
  .AIButton {
11459
11730
  padding: var(--spacing-20) var(--spacing-30);
11460
11731
  border-radius: var(--border-radius-10);