ms-design-system 0.0.28 → 0.0.29

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ms-design-system",
3
- "version": "0.0.28",
3
+ "version": "0.0.29",
4
4
  "style": "src/styles.scss",
5
5
  "dependencies": {
6
6
  "ng-inline-svg": "^13.1.1",
package/src/styles.scss CHANGED
@@ -1796,25 +1796,30 @@ ms-button .ms-btn-default {
1796
1796
  }
1797
1797
 
1798
1798
  &:hover:not(.disabled) .ms-toggle-track {
1799
- background: #1F242826; // light blue hover
1799
+ background: #0084FF1A; // light blue hover
1800
+ background: var(--semantics-fill-status-info-secondary-disabled, #0084FF1A);
1801
+
1800
1802
  }
1801
-
1803
+
1802
1804
  .ms-radio-circle:focus {
1803
1805
  // outline: 2px solid #B7DCFF;
1804
1806
  box-shadow: 0px 0px 0px 0.91px var(--primitivesbrandblue-100);
1805
1807
  border: 0.91px solid var(--semantics-border-brand-default, #0084FF);
1806
1808
  outline-offset: 2px;
1807
1809
  }
1808
-
1810
+
1809
1811
  &.invalid {
1810
1812
  .ms-toggle-track {
1811
1813
  border: 1px solid red;
1812
1814
  }
1813
1815
  }
1814
-
1816
+
1815
1817
  &.disabled {
1816
1818
  cursor: not-allowed;
1817
1819
  opacity: 0.6;
1820
+ .ms-toggle input:checked {
1821
+ background: #0084FF; // darker blue on hover
1822
+ }
1818
1823
 
1819
1824
  .ms-label {
1820
1825
  color: #999;
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { OnChanges, OnInit, EventEmitter, ElementRef, SimpleChanges, ChangeDetectorRef, EnvironmentProviders } from '@angular/core';
2
+ import { OnChanges, OnInit, EventEmitter, ElementRef, SimpleChanges, ChangeDetectorRef, ViewContainerRef, ComponentFactoryResolver, EnvironmentProviders } from '@angular/core';
3
3
  import { ControlValueAccessor, Validator, AbstractControl, ValidationErrors } from '@angular/forms';
4
4
  import * as i1 from 'ng-inline-svg';
5
5
 
@@ -498,9 +498,16 @@ declare class MsSpinner {
498
498
  static ɵcmp: i0.ɵɵComponentDeclaration<MsSpinner, "ms-spinner", never, { "color": { "alias": "color"; "required": false; }; "size": { "alias": "size"; "required": false; }; "text": { "alias": "text"; "required": false; }; }, { "htmlChange": "htmlChange"; }, never, never, true, never>;
499
499
  }
500
500
 
501
+ type TooltipPosition = 'top' | 'bottom' | 'left' | 'right' | 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
501
502
  declare class MsTooltip {
503
+ text: string;
504
+ position: TooltipPosition;
505
+ bgColor: string;
506
+ showArrow: boolean;
507
+ get title(): string;
508
+ get paragraphLines(): string[];
502
509
  static ɵfac: i0.ɵɵFactoryDeclaration<MsTooltip, never>;
503
- static ɵcmp: i0.ɵɵComponentDeclaration<MsTooltip, "ms-tooltip", never, {}, {}, never, never, true, never>;
510
+ static ɵcmp: i0.ɵɵComponentDeclaration<MsTooltip, "ms-tooltip", never, { "text": { "alias": "text"; "required": false; }; "position": { "alias": "position"; "required": false; }; "bgColor": { "alias": "bgColor"; "required": false; }; "showArrow": { "alias": "showArrow"; "required": false; }; }, {}, never, never, true, never>;
504
511
  }
505
512
 
506
513
  declare class MsFileUploader {
@@ -545,12 +552,29 @@ declare class MsFileUploader {
545
552
  static ɵcmp: i0.ɵɵComponentDeclaration<MsFileUploader, "ms-file-uploader", never, { "label": { "alias": "label"; "required": false; }; "required": { "alias": "required"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "accept": { "alias": "accept"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "maxFileSize": { "alias": "maxFileSize"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; "skeleton": { "alias": "skeleton"; "required": false; }; }, {}, never, never, true, never>;
546
553
  }
547
554
 
555
+ declare class MsTooltipDirective {
556
+ private el;
557
+ private vcr;
558
+ private cfr;
559
+ msTooltip: string;
560
+ position: 'top' | 'bottom' | 'left' | 'right' | 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
561
+ bgColor: string;
562
+ showArrow: boolean;
563
+ private tooltipRef;
564
+ constructor(el: ElementRef, vcr: ViewContainerRef, cfr: ComponentFactoryResolver);
565
+ onMouseEnter(): void;
566
+ onMouseLeave(): void;
567
+ static ɵfac: i0.ɵɵFactoryDeclaration<MsTooltipDirective, never>;
568
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MsTooltipDirective, "[msTooltip]", never, { "msTooltip": { "alias": "msTooltip"; "required": false; }; "position": { "alias": "position"; "required": false; }; "bgColor": { "alias": "bgColor"; "required": false; }; "showArrow": { "alias": "showArrow"; "required": false; }; }, {}, never, never, true, never>;
569
+ }
570
+
548
571
  declare class MsDesignSystemModule {
549
572
  static ɵfac: i0.ɵɵFactoryDeclaration<MsDesignSystemModule, never>;
550
- static ɵmod: i0.ɵɵNgModuleDeclaration<MsDesignSystemModule, never, [typeof i1.InlineSVGModule, typeof MsButton, typeof MsDropdown, typeof MsCheckbox, typeof MsBadge, typeof MsToggle, typeof MsRadioButton, typeof MsInputField, typeof MsTextArea, typeof MsAvatar, typeof MsSidebar, typeof MsTooltip, typeof MsPagination, typeof MsSpinner, typeof MsFileUploader], [typeof i1.InlineSVGModule, typeof MsButton, typeof MsDropdown, typeof MsCheckbox, typeof MsBadge, typeof MsToggle, typeof MsRadioButton, typeof MsInputField, typeof MsTextArea, typeof MsAvatar, typeof MsSidebar, typeof MsTooltip, typeof MsPagination, typeof MsSpinner, typeof MsFileUploader]>;
573
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MsDesignSystemModule, never, [typeof i1.InlineSVGModule, typeof MsButton, typeof MsDropdown, typeof MsCheckbox, typeof MsBadge, typeof MsToggle, typeof MsRadioButton, typeof MsInputField, typeof MsTextArea, typeof MsAvatar, typeof MsSidebar, typeof MsTooltip, typeof MsPagination, typeof MsSpinner, typeof MsFileUploader, typeof MsTooltipDirective], [typeof i1.InlineSVGModule, typeof MsButton, typeof MsDropdown, typeof MsCheckbox, typeof MsBadge, typeof MsToggle, typeof MsRadioButton, typeof MsInputField, typeof MsTextArea, typeof MsAvatar, typeof MsSidebar, typeof MsTooltip, typeof MsPagination, typeof MsSpinner, typeof MsFileUploader]>;
551
574
  static ɵinj: i0.ɵɵInjectorDeclaration<MsDesignSystemModule>;
552
575
  }
553
576
 
554
577
  declare function provideMsDesignSystem(): EnvironmentProviders;
555
578
 
556
- export { MS_SVG_PATH, MsAvatar, MsBadge, MsButton, MsCheckbox, MsDesignSystemModule, MsDropdown, MsFileUploader, MsInputField, MsPagination, MsRadioButton, MsSidebar, MsSpinner, MsTextArea, MsToggle, MsTooltip, provideMsDesignSystem };
579
+ export { MS_SVG_PATH, MsAvatar, MsBadge, MsButton, MsCheckbox, MsDesignSystemModule, MsDropdown, MsFileUploader, MsInputField, MsPagination, MsRadioButton, MsSidebar, MsSpinner, MsTextArea, MsToggle, MsTooltip, MsTooltipDirective, provideMsDesignSystem };
580
+ export type { TooltipPosition };