cats-ui-lib 2.0.5 → 2.0.7

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/index.d.ts CHANGED
@@ -2,7 +2,6 @@ import * as i0 from '@angular/core';
2
2
  import { EventEmitter, OnInit, OnChanges, TemplateRef, ChangeDetectorRef, ElementRef, SimpleChanges, OnDestroy, Renderer2, QueryList } from '@angular/core';
3
3
  import { ControlValueAccessor, Validator, FormControl, AbstractControl, ValidationErrors } from '@angular/forms';
4
4
  import { SafeHtml, DomSanitizer } from '@angular/platform-browser';
5
- import { DatePipe } from '@angular/common';
6
5
 
7
6
  declare class CatsUiService {
8
7
  constructor();
@@ -14,18 +13,24 @@ declare class SingleSelectConfig {
14
13
  idField: string;
15
14
  textField: string;
16
15
  disabledField?: string;
16
+ colorField?: string;
17
+ iconField?: string;
17
18
  placeholder?: string;
18
19
  prefixLabel?: string;
19
20
  enableSearch?: boolean;
21
+ searchPlaceholder?: string;
20
22
  required?: boolean;
21
23
  }
22
24
  declare class MultiSelectConfig {
23
25
  idField: string;
24
26
  textField: string;
25
27
  disabledField?: string;
28
+ colorField?: string;
29
+ iconField?: string;
26
30
  placeholder?: string;
27
31
  prefixLabel?: string;
28
32
  enableSearch?: boolean;
33
+ searchPlaceholder?: string;
29
34
  chipLimit: number;
30
35
  selectAll?: boolean;
31
36
  required?: boolean;
@@ -42,6 +47,8 @@ declare class InputConfig {
42
47
  declare class AutoCompleteSingleSelectConfig {
43
48
  idField: string;
44
49
  textField: string;
50
+ colorField?: string;
51
+ iconField?: string;
45
52
  disabledField?: string;
46
53
  placeholder?: string;
47
54
  required?: boolean;
@@ -51,6 +58,8 @@ declare class AutoCompleteMultiSelectConfig {
51
58
  idField: string;
52
59
  textField: string;
53
60
  disabledField?: string;
61
+ colorField?: string;
62
+ iconField?: string;
54
63
  selectAll?: boolean;
55
64
  placeholder?: string;
56
65
  required?: boolean;
@@ -85,10 +94,6 @@ interface RadioButtonConfig {
85
94
  name: string;
86
95
  layout?: 'horizontal' | 'vertical';
87
96
  }
88
- interface DateConfig {
89
- selectionMode: 'single' | 'range';
90
- enableTime?: boolean;
91
- }
92
97
 
93
98
  declare class InputComponent implements ControlValueAccessor, Validator {
94
99
  inputConfig: InputConfig;
@@ -601,199 +606,6 @@ declare class RadioButtonComponent implements ControlValueAccessor {
601
606
  static ɵcmp: i0.ɵɵComponentDeclaration<RadioButtonComponent, "cats-ui-radio-button", never, { "config": { "alias": "config"; "required": false; }; "optionList": { "alias": "optionList"; "required": false; }; "selectedRadio": { "alias": "selectedRadio"; "required": false; }; }, { "selectionChange": "selectionChange"; }, never, never, true, never>;
602
607
  }
603
608
 
604
- interface IRange {
605
- value: Date;
606
- label: string;
607
- }
608
- declare class DateTimePickerComponent implements OnInit, OnChanges, ControlValueAccessor {
609
- private locale;
610
- private cd;
611
- private datePipe;
612
- dateTimeSelected: EventEmitter<any>;
613
- dateConfig: DateConfig;
614
- minDate?: string;
615
- maxDate?: string;
616
- preSelectedValue: any;
617
- selectedDateTime: any;
618
- currentDate: Date;
619
- currentMonth: number;
620
- currentYear: number;
621
- selectedDate: number | null;
622
- selectedTime: string | null;
623
- calendar: number[][];
624
- timeSlots: IRange[];
625
- rangeStart: number | null;
626
- rangeEnd: number | null;
627
- selectedMonth: any;
628
- selectedYear: any;
629
- control: AbstractControl<any, any>;
630
- disableControl: boolean;
631
- date: any;
632
- calendarView: string;
633
- yearRange: number[];
634
- daysInMonth: any[];
635
- selectedDay: number;
636
- selectedStartDate: any;
637
- selectedEndDate: any;
638
- isOpen: boolean;
639
- showYearSelector: boolean;
640
- monthRange: any;
641
- constructor(locale: string, cd: ChangeDetectorRef, datePipe: DatePipe);
642
- ngOnChanges(_changes: SimpleChanges): void;
643
- ngOnInit(): void;
644
- private onTouchedCallback;
645
- private onChangeCallback;
646
- writeValue(value: any): void;
647
- registerOnChange(fn: any): void;
648
- registerOnTouched(fn: any): void;
649
- setDisabledState(isDisabled: boolean): void;
650
- /**
651
- * @description Validates date time picker component
652
- * @author Shiva Kant
653
- * @param control
654
- * @returns validate
655
- */
656
- validate(control: AbstractControl): ValidationErrors | null;
657
- /**
658
- * @description method to toggleCalendar
659
- * @author Shiva Kant
660
- */
661
- toggleCalendar(): void;
662
- /**
663
- * @description Closes calendar
664
- * @author Shiva Kant
665
- */
666
- closeCalendar(): void;
667
- /**
668
- * @description Method to Gets month year
669
- * @author Shiva Kant
670
- * @returns month year
671
- */
672
- getMonthYear(): {
673
- month: string;
674
- year: string;
675
- };
676
- /**
677
- * @description Method to Updates current year month
678
- * @author Shiva Kant
679
- */
680
- updateCurrentYearMonth(): void;
681
- /**
682
- * @description Method to Selects year
683
- * @author Shiva Kant
684
- * @param year
685
- */
686
- selectYear(year: number): void;
687
- /**
688
- * @description Method to Selects month
689
- * @author Shiva Kant
690
- * @param month
691
- */
692
- selectMonth(month: any): void;
693
- /**
694
- * @description Method to Previous year range
695
- * @author Shiva Kant
696
- */
697
- previousYearRange(): void;
698
- /**
699
- * @description Method to Next year range
700
- * @author Shiva Kant
701
- */
702
- nextYearRange(): void;
703
- /**
704
- * @description Method to Toggles year selector
705
- * @author Shiva Kant
706
- */
707
- toggleYearSelector(): void;
708
- /**
709
- * @description Method to Generates year range
710
- * @author Shiva Kant
711
- */
712
- generateYearRange(): void;
713
- /**
714
- * @description Method to Determines whether date selectable is
715
- * @author Shiva Kant
716
- * @param date
717
- * @returns true if date selectable
718
- */
719
- isDateSelectable(date: Date): boolean;
720
- /**
721
- * @description Method to Determines whether day disabled is
722
- * @author Shiva Kant
723
- * @param day
724
- * @returns true if day disabled
725
- */
726
- isDayDisabled(day: number): boolean;
727
- /**
728
- * @description Method to Generates calendar
729
- * @author Shiva Kant
730
- */
731
- generateCalendar(): void;
732
- /**
733
- * @description Method to Previous month
734
- * @author Shiva Kant
735
- */
736
- previousMonth(): void;
737
- /**
738
- * @description Method to Next month
739
- * @author Shiva Kant
740
- */
741
- nextMonth(): void;
742
- /**
743
- * @description Method to Initializes calendar when preSelectedValue date
744
- * @author Shiva Kant
745
- * @returns calendar
746
- */
747
- initializeCalendar(): void;
748
- /**
749
- * @description Method to Selects date
750
- * @author Shiva Kant
751
- * @param date
752
- */
753
- selectDate(date: number): void;
754
- /**
755
- * @description Method to Selects time
756
- * @author Shiva Kant
757
- * @param time
758
- */
759
- selectTime(time: string): void;
760
- /**
761
- * @description Method to Determines whether selected date is
762
- * @author Shiva Kant
763
- * @param date
764
- * @returns
765
- */
766
- isSelectedDate(date: number, month: number, year: number): boolean;
767
- /**
768
- * @description Method to Generates time ranges
769
- * @author Shiva Kant
770
- */
771
- generateTimeRanges(): void;
772
- /**
773
- * @description Method to Formats time
774
- * @author Shiva Kant
775
- * @param date
776
- * @returns time
777
- */
778
- formatTime(date: Date): string;
779
- /**
780
- * @description Method to Formats date time
781
- * @author Shiva Kant
782
- * @param fullDate
783
- * @param selectedTime
784
- * @returns date time
785
- */
786
- formatDateTime(fullDate: Date, selectedTime: string | null): string;
787
- /**
788
- * @description Method to Emits date time
789
- * @author Shiva Kant
790
- * @returns date time
791
- */
792
- emitDateTime(): void;
793
- static ɵfac: i0.ɵɵFactoryDeclaration<DateTimePickerComponent, never>;
794
- static ɵcmp: i0.ɵɵComponentDeclaration<DateTimePickerComponent, "cats-ui-date-time-picker", never, { "dateConfig": { "alias": "dateConfig"; "required": false; }; "minDate": { "alias": "minDate"; "required": false; }; "maxDate": { "alias": "maxDate"; "required": false; }; "preSelectedValue": { "alias": "preSelectedValue"; "required": false; }; }, { "dateTimeSelected": "dateTimeSelected"; }, never, never, true, never>;
795
- }
796
-
797
609
  type DatePickerMode = 'single' | 'range' | 'dual';
798
610
  interface DatePickerConfig {
799
611
  mode?: DatePickerMode;
@@ -822,7 +634,7 @@ interface DateTimeResult {
822
634
  meridiem: 'AM' | 'PM';
823
635
  }
824
636
  type CalenderView = 'day' | 'year' | 'month';
825
- declare class CustomDatePickerComponent implements OnInit, ControlValueAccessor {
637
+ declare class CustomDatePickerComponent implements OnInit, ControlValueAccessor, OnChanges {
826
638
  private elRef;
827
639
  config: DatePickerConfig;
828
640
  label: string;
@@ -858,6 +670,7 @@ declare class CustomDatePickerComponent implements OnInit, ControlValueAccessor
858
670
  activeCalendar: 'primary' | 'secondary';
859
671
  monthNames: string[];
860
672
  constructor(elRef: ElementRef);
673
+ ngOnChanges(changes: SimpleChanges): void;
861
674
  ngOnInit(): void;
862
675
  get mode(): DatePickerMode;
863
676
  get showDateLabel(): boolean;
@@ -1007,42 +820,6 @@ declare class AccordionItemComponent {
1007
820
  static ɵcmp: i0.ɵɵComponentDeclaration<AccordionItemComponent, "cats-ui-accordion-item", never, { "title": { "alias": "title"; "required": false; }; "index": { "alias": "index"; "required": false; }; }, {}, ["contentTemplate"], never, true, never>;
1008
821
  }
1009
822
 
1010
- declare class TabContentDirective {
1011
- template: TemplateRef<any>;
1012
- constructor(template: TemplateRef<any>);
1013
- static ɵfac: i0.ɵɵFactoryDeclaration<TabContentDirective, never>;
1014
- static ɵdir: i0.ɵɵDirectiveDeclaration<TabContentDirective, "[tabContent]", never, {}, {}, never, never, true, never>;
1015
- }
1016
-
1017
- declare class TabHeadingDirective {
1018
- template: TemplateRef<any>;
1019
- constructor(template: TemplateRef<any>);
1020
- static ɵfac: i0.ɵɵFactoryDeclaration<TabHeadingDirective, never>;
1021
- static ɵdir: i0.ɵɵDirectiveDeclaration<TabHeadingDirective, "[tabHeading]", never, {}, {}, never, never, true, never>;
1022
- }
1023
-
1024
- declare class TabItemComponent {
1025
- heading: TabHeadingDirective;
1026
- content: TabContentDirective;
1027
- static ɵfac: i0.ɵɵFactoryDeclaration<TabItemComponent, never>;
1028
- static ɵcmp: i0.ɵɵComponentDeclaration<TabItemComponent, "cats-ui-tab-item", never, {}, {}, ["heading", "content"], never, true, never>;
1029
- }
1030
-
1031
- declare class TabComponent {
1032
- activeTab: number;
1033
- disabledTabs: number[];
1034
- selectTab: EventEmitter<number>;
1035
- items: QueryList<TabItemComponent>;
1036
- /**
1037
- * @description Sets active
1038
- * @author Shiva Kant
1039
- * @param index
1040
- */
1041
- setActive(index: number): void;
1042
- static ɵfac: i0.ɵɵFactoryDeclaration<TabComponent, never>;
1043
- static ɵcmp: i0.ɵɵComponentDeclaration<TabComponent, "cats-ui-tab", never, { "activeTab": { "alias": "activeTab"; "required": false; }; "disabledTabs": { "alias": "disabledTabs"; "required": false; }; }, { "selectTab": "selectTab"; }, ["items"], never, true, never>;
1044
- }
1045
-
1046
823
  declare class TabContentComponent {
1047
824
  active: boolean;
1048
825
  tabId: number;
@@ -1062,7 +839,6 @@ interface TabItem {
1062
839
  leadingIcon?: string;
1063
840
  tralingIocn?: string;
1064
841
  count?: number | string;
1065
- closable?: boolean;
1066
842
  isDisable?: boolean;
1067
843
  isHome?: boolean;
1068
844
  }
@@ -1094,8 +870,10 @@ interface TimeFilterOption {
1094
870
  children?: TimeFilterOption[];
1095
871
  default?: boolean;
1096
872
  custom?: boolean;
873
+ parentDateFormat?: 'dd MMM yyyy' | 'MM/dd/yyyy' | 'yyyy-MM-dd';
1097
874
  pickerMode?: DatePickerMode;
1098
875
  time?: boolean;
876
+ extraConfig?: Partial<DatePickerConfig>;
1099
877
  }
1100
878
  interface TimeFilterConfig {
1101
879
  title?: string;
@@ -1105,19 +883,23 @@ interface TimeFilterConfig {
1105
883
  interface TimeFilterOutput {
1106
884
  type: FilterType;
1107
885
  label?: string;
1108
- startDate?: Date;
1109
- endDate?: Date;
886
+ startDate?: string;
887
+ endDate?: string;
1110
888
  value?: number;
1111
889
  unit?: 'Hours' | 'Days';
1112
890
  key?: string;
1113
891
  }
1114
892
  declare class TimestampFilterComponent {
893
+ private cdr;
1115
894
  config: TimeFilterConfig;
1116
895
  selectionChange: EventEmitter<TimeFilterOutput>;
1117
896
  selectedValue: string | null;
1118
897
  activePicker: TimeFilterOption | null;
1119
898
  lastValue: number;
1120
- lastUnit: 'Hours' | 'Days';
899
+ lastUnit: 'seconds' | 'minutes' | 'hours' | 'days';
900
+ get normalOptions(): TimeFilterOption[];
901
+ get customOptions(): TimeFilterOption[];
902
+ constructor(cdr: ChangeDetectorRef);
1121
903
  ngOnInit(): void;
1122
904
  getPickerConfig(option: TimeFilterOption): DatePickerConfig;
1123
905
  selectOption(option: TimeFilterOption): void;
@@ -1130,10 +912,63 @@ declare class TimestampFilterComponent {
1130
912
  reset(): void;
1131
913
  private emit;
1132
914
  onDateApplied(event: any): void;
1133
- applied(dt: any): void;
915
+ onCancel(event: any): void;
1134
916
  static ɵfac: i0.ɵɵFactoryDeclaration<TimestampFilterComponent, never>;
1135
917
  static ɵcmp: i0.ɵɵComponentDeclaration<TimestampFilterComponent, "cats-ui-timestamp-filter", never, { "config": { "alias": "config"; "required": true; }; }, { "selectionChange": "selectionChange"; }, never, never, true, never>;
1136
918
  }
1137
919
 
1138
- export { AccordionComponent, AccordionItemComponent, AutoCompleteMultiSelectComponent, AutoCompleteMultiSelectConfig, AutoCompleteSingleSelectComponent, AutoCompleteSingleSelectConfig, CatsUiService, CatsUiTooltipDirective, CheckBoxConfig, CheckBoxSubtask, CheckboxButtonComponent, CustomDatePickerComponent, DROPDOWN_CONTROL_VALUE_ACCESSOR, DROPDOWN_CONTROL_VALUE_VALIDATOR, DateTimePickerComponent, InputComponent, InputConfig, MULTI_SELECT_CONTROL_VALUE_ACCESSOR, MULTI_SELECT_CONTROL_VALUE_VALIDATOR, MultiSelectComponent, MultiSelectConfig, OutsideClickDirective, RadioButtonComponent, SINGLE_SELECT_CONTROL_VALUE_ACCESSOR, SINGLE_SELECT_CONTROL_VALUE_VALIDATOR, SearchBoxComponent, SearchConfig, SingleSelectComponent, SingleSelectConfig, TabComponent, TabContentComponent, TabContentDirective, TabHeadingDirective, TabItemComponent, TabsetComponent, TimestampFilterComponent, ToggleConfig, ToogleButtonComponent };
1139
- export type { CalenderView, DateConfig, DatePickerConfig, DatePickerMode, DateRange, DateTimeResult, FilterType, RadioButtonConfig, TabConfig, TabItem, TimeFilterConfig, TimeFilterOption, TimeFilterOutput };
920
+ declare class WizardService {
921
+ private wizards;
922
+ activeStep: i0.WritableSignal<any>;
923
+ stepConfig: i0.WritableSignal<any>;
924
+ open(wizardId: string, config: any): void;
925
+ close(wizardId: string): void;
926
+ nextStep(wizardId: string): void;
927
+ previousStep(wizardId: string): void;
928
+ gotoStep(step: number, wizardId: string): void;
929
+ isOpen(wizardId: string): i0.Signal<any>;
930
+ getConfig(wizardId: string): i0.Signal<any>;
931
+ getCurrentStepIndex(wizardId: string): i0.Signal<any>;
932
+ getCurrentStep(wizardId: string): i0.Signal<any>;
933
+ getProgress(wizardId: string): i0.Signal<number>;
934
+ static ɵfac: i0.ɵɵFactoryDeclaration<WizardService, never>;
935
+ static ɵprov: i0.ɵɵInjectableDeclaration<WizardService>;
936
+ }
937
+
938
+ declare class WizardStepDirective {
939
+ templateRef: TemplateRef<any>;
940
+ constructor(templateRef: TemplateRef<any>);
941
+ static ɵfac: i0.ɵɵFactoryDeclaration<WizardStepDirective, never>;
942
+ static ɵdir: i0.ɵɵDirectiveDeclaration<WizardStepDirective, "[wizardStep]", never, {}, {}, never, never, true, never>;
943
+ }
944
+
945
+ declare class WizardComponent {
946
+ private commonService;
947
+ wizardId: string;
948
+ title: string;
949
+ closed: EventEmitter<void>;
950
+ stepTemplates: QueryList<WizardStepDirective>;
951
+ showProgressBar: boolean;
952
+ showStepBadge: boolean;
953
+ expandable: boolean;
954
+ isExpanded: boolean;
955
+ steps: any;
956
+ activeStep: any;
957
+ templates: WizardStepDirective[];
958
+ constructor(commonService: WizardService);
959
+ ngAfterContentInit(): void;
960
+ toggleExpand(): void;
961
+ onEscPressed(): void;
962
+ get currentStepIndex(): number;
963
+ get wizardSteps(): any[];
964
+ get currentTemplate(): i0.TemplateRef<any>;
965
+ get currentStepLabel(): string;
966
+ get currentStepNumber(): number;
967
+ goToStep(step: number): void;
968
+ closeModal(): void;
969
+ static ɵfac: i0.ɵɵFactoryDeclaration<WizardComponent, never>;
970
+ static ɵcmp: i0.ɵɵComponentDeclaration<WizardComponent, "cats-ui-wizard", never, { "wizardId": { "alias": "wizardId"; "required": false; }; "title": { "alias": "title"; "required": false; }; "showProgressBar": { "alias": "showProgressBar"; "required": false; }; "showStepBadge": { "alias": "showStepBadge"; "required": false; }; }, { "closed": "closed"; }, ["stepTemplates"], never, true, never>;
971
+ }
972
+
973
+ export { AccordionComponent, AccordionItemComponent, AutoCompleteMultiSelectComponent, AutoCompleteMultiSelectConfig, AutoCompleteSingleSelectComponent, AutoCompleteSingleSelectConfig, CatsUiService, CatsUiTooltipDirective, CheckBoxConfig, CheckBoxSubtask, CheckboxButtonComponent, CustomDatePickerComponent, DROPDOWN_CONTROL_VALUE_ACCESSOR, DROPDOWN_CONTROL_VALUE_VALIDATOR, InputComponent, InputConfig, MULTI_SELECT_CONTROL_VALUE_ACCESSOR, MULTI_SELECT_CONTROL_VALUE_VALIDATOR, MultiSelectComponent, MultiSelectConfig, OutsideClickDirective, RadioButtonComponent, SINGLE_SELECT_CONTROL_VALUE_ACCESSOR, SINGLE_SELECT_CONTROL_VALUE_VALIDATOR, SearchBoxComponent, SearchConfig, SingleSelectComponent, SingleSelectConfig, TabContentComponent, TabsetComponent, TimestampFilterComponent, ToggleConfig, ToogleButtonComponent, WizardComponent, WizardService, WizardStepDirective };
974
+ export type { CalenderView, DatePickerConfig, DatePickerMode, DateRange, DateTimeResult, FilterType, RadioButtonConfig, TabConfig, TabItem, TimeFilterConfig, TimeFilterOption, TimeFilterOutput };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cats-ui-lib",
3
- "version": "2.0.5",
3
+ "version": "2.0.7",
4
4
  "peerDependencies": {
5
5
  "@angular/core": ">=18 <22",
6
6
  "@angular/common": ">=18 <22"
@@ -17,7 +17,7 @@
17
17
  }
18
18
 
19
19
  // ------------------Button Styles--------------------
20
- button {
20
+ button.cats-btn {
21
21
  border: rem(1px) solid transparent;
22
22
  padding: 0 rem(28px);
23
23
  height: rem(56px);
@@ -230,7 +230,6 @@ button {
230
230
  font-weight: 600;
231
231
  }
232
232
 
233
-
234
233
  /* Padding Classes (sp prefix) */
235
234
  .sp-0 {
236
235
  padding: rem(0px);
@@ -801,6 +800,92 @@ button {
801
800
  border-radius: rem(36px);
802
801
  }
803
802
 
804
- .br-200{
803
+ .br-200 {
805
804
  border-radius: rem(200px);
806
- }
805
+ }
806
+
807
+ // ------------------Checkbox Styles--------------------
808
+ .checkbox-container,
809
+ .item, .multiitem {
810
+ @include flex(flex-start, center, rem(8px));
811
+ @include fontStyle(var(--fs-16), rem(20px), 400);
812
+ margin-bottom: rem(8px);
813
+ color: var(--text-heading-primary);
814
+ &.disabled-option{
815
+ input[type="checkbox"]:checked{
816
+ background-color: var(--surface-background-subtle);
817
+ border-color: var(--border-core-default);
818
+ &::after{
819
+ background-image: url(/images/check-disabled.svg);
820
+ }
821
+ }
822
+ &::selection{
823
+ background-color: transparent;
824
+ }
825
+ }
826
+
827
+ input[type="checkbox"] {
828
+ appearance: none;
829
+ -webkit-appearance: none;
830
+ @include box(rem(16px), rem(16px));
831
+ min-width: rem(16px);
832
+ @include border();
833
+ cursor: pointer;
834
+ background-color: var(--surface-background-canvas);
835
+ position: relative;
836
+ transition: all 0.2s ease;
837
+
838
+ // --- Default (unchecked) ---
839
+ &::after {
840
+ content: "";
841
+ display: none;
842
+ position: absolute;
843
+ @include position(rem(-1px), rem(-1px));
844
+ @include box(rem(16px), rem(16px));
845
+ background-size: auto;
846
+ background-repeat: no-repeat;
847
+ background-position: center;
848
+ }
849
+ // --- Checked State ---
850
+ &:checked {
851
+ border-color: var(--border-interaction-focus);
852
+ background-color: var(--surface-action-default);
853
+ &::after {
854
+ display: block;
855
+ background-image: url("/images/check-white.svg");
856
+ background-size: rem(8px) rem(6px);
857
+ }
858
+ }
859
+ // --- Indeterminate (minus) state ---
860
+ &:indeterminate {
861
+ border-color: var(--border-interaction-focus);
862
+ background-color: var(--surface-background-canvas);
863
+ &::after {
864
+ display: block;
865
+ top: 0;
866
+ background-image: url("/images/minus-blue.svg");
867
+ background-size: rem(7px) rem(1px);
868
+ }
869
+ }
870
+ // Disabled (unchecked)
871
+ &:disabled {
872
+ cursor: default;
873
+ background-color: var(--surface-background-default);
874
+ border-color: var(--border-core-muted);
875
+ & + span {
876
+ color: var(--text-body-muted);
877
+ }
878
+ }
879
+
880
+ // Disabled + Checked (IMPORTANT)
881
+ &:checked:disabled {
882
+ background-color: var(--surface-background-default);
883
+ border-color: var(--border-core-muted);
884
+
885
+ &::after {
886
+ display: block;
887
+ background-image: url("/images/check-disabled.svg");
888
+ }
889
+ }
890
+ }
891
+ }