mis-crystal-design-system 2.9.7-v14 → 2.9.7-v14-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.
- package/button/button.directive.scss +13 -17
- package/esm2020/action-list/action-list.component.mjs +2 -2
- package/esm2020/async-search-dropdown/async-dropdown.component.mjs +2 -2
- package/esm2020/button/button.component.mjs +2 -2
- package/esm2020/checkbox/checkbox.component.mjs +2 -2
- package/esm2020/chip/chip.component.mjs +2 -2
- package/esm2020/datepicker_v2/tz-dp-container/tz-dp-container.component.mjs +2 -2
- package/esm2020/daterangepicker_v2/tz-drp-container/tz-drp-container.component.mjs +2 -2
- package/esm2020/dropdown/dropdown.component.mjs +2 -2
- package/esm2020/fab/fab.component.mjs +3 -3
- package/esm2020/input/mis-input.component.mjs +2 -2
- package/esm2020/loader/loader.component.mjs +2 -2
- package/esm2020/multi-select-dropdown/multi-select-dropdown.component.mjs +2 -2
- package/esm2020/nested-multi-select-dropdown/nested-multi-select-dropdown.component.mjs +2 -2
- package/esm2020/radio-button/radio-button.component.mjs +2 -2
- package/esm2020/switch/switch.component.mjs +2 -2
- package/esm2020/table/filter/filter.component.mjs +3 -3
- package/esm2020/table/sub-table/sub-table.component.mjs +3 -3
- package/esm2020/table/table.component.mjs +3 -3
- package/esm2020/toast/toast.component.mjs +3 -3
- package/esm2020/tooltip/tooltip-container/tooltip.component.mjs +2 -2
- package/fesm2015/mis-crystal-design-system-action-list.mjs +2 -2
- package/fesm2015/mis-crystal-design-system-action-list.mjs.map +1 -1
- package/fesm2015/mis-crystal-design-system-async-search-dropdown.mjs +2 -2
- package/fesm2015/mis-crystal-design-system-async-search-dropdown.mjs.map +1 -1
- package/fesm2015/mis-crystal-design-system-button.mjs +2 -2
- package/fesm2015/mis-crystal-design-system-button.mjs.map +1 -1
- package/fesm2015/mis-crystal-design-system-checkbox.mjs +2 -2
- package/fesm2015/mis-crystal-design-system-checkbox.mjs.map +1 -1
- package/fesm2015/mis-crystal-design-system-chip.mjs +2 -2
- package/fesm2015/mis-crystal-design-system-chip.mjs.map +1 -1
- package/fesm2015/mis-crystal-design-system-datepicker_v2.mjs +2 -2
- package/fesm2015/mis-crystal-design-system-datepicker_v2.mjs.map +1 -1
- package/fesm2015/mis-crystal-design-system-daterangepicker_v2.mjs +2 -2
- package/fesm2015/mis-crystal-design-system-daterangepicker_v2.mjs.map +1 -1
- package/fesm2015/mis-crystal-design-system-dropdown.mjs +2 -2
- package/fesm2015/mis-crystal-design-system-dropdown.mjs.map +1 -1
- package/fesm2015/mis-crystal-design-system-fab.mjs +2 -2
- package/fesm2015/mis-crystal-design-system-fab.mjs.map +1 -1
- package/fesm2015/mis-crystal-design-system-input.mjs +2 -2
- package/fesm2015/mis-crystal-design-system-input.mjs.map +1 -1
- package/fesm2015/mis-crystal-design-system-loader.mjs +2 -2
- package/fesm2015/mis-crystal-design-system-loader.mjs.map +1 -1
- package/fesm2015/mis-crystal-design-system-multi-select-dropdown.mjs +2 -2
- package/fesm2015/mis-crystal-design-system-multi-select-dropdown.mjs.map +1 -1
- package/fesm2015/mis-crystal-design-system-nested-multi-select-dropdown.mjs +2 -2
- package/fesm2015/mis-crystal-design-system-nested-multi-select-dropdown.mjs.map +1 -1
- package/fesm2015/mis-crystal-design-system-radio-button.mjs +2 -2
- package/fesm2015/mis-crystal-design-system-radio-button.mjs.map +1 -1
- package/fesm2015/mis-crystal-design-system-switch.mjs +2 -2
- package/fesm2015/mis-crystal-design-system-switch.mjs.map +1 -1
- package/fesm2015/mis-crystal-design-system-table.mjs +6 -6
- package/fesm2015/mis-crystal-design-system-table.mjs.map +1 -1
- package/fesm2015/mis-crystal-design-system-toast.mjs +2 -2
- package/fesm2015/mis-crystal-design-system-toast.mjs.map +1 -1
- package/fesm2015/mis-crystal-design-system-tooltip.mjs +2 -2
- package/fesm2015/mis-crystal-design-system-tooltip.mjs.map +1 -1
- package/fesm2020/mis-crystal-design-system-action-list.mjs +2 -2
- package/fesm2020/mis-crystal-design-system-action-list.mjs.map +1 -1
- package/fesm2020/mis-crystal-design-system-async-search-dropdown.mjs +2 -2
- package/fesm2020/mis-crystal-design-system-async-search-dropdown.mjs.map +1 -1
- package/fesm2020/mis-crystal-design-system-button.mjs +2 -2
- package/fesm2020/mis-crystal-design-system-button.mjs.map +1 -1
- package/fesm2020/mis-crystal-design-system-checkbox.mjs +2 -2
- package/fesm2020/mis-crystal-design-system-checkbox.mjs.map +1 -1
- package/fesm2020/mis-crystal-design-system-chip.mjs +2 -2
- package/fesm2020/mis-crystal-design-system-chip.mjs.map +1 -1
- package/fesm2020/mis-crystal-design-system-datepicker_v2.mjs +2 -2
- package/fesm2020/mis-crystal-design-system-datepicker_v2.mjs.map +1 -1
- package/fesm2020/mis-crystal-design-system-daterangepicker_v2.mjs +2 -2
- package/fesm2020/mis-crystal-design-system-daterangepicker_v2.mjs.map +1 -1
- package/fesm2020/mis-crystal-design-system-dropdown.mjs +2 -2
- package/fesm2020/mis-crystal-design-system-dropdown.mjs.map +1 -1
- package/fesm2020/mis-crystal-design-system-fab.mjs +2 -2
- package/fesm2020/mis-crystal-design-system-fab.mjs.map +1 -1
- package/fesm2020/mis-crystal-design-system-input.mjs +2 -2
- package/fesm2020/mis-crystal-design-system-input.mjs.map +1 -1
- package/fesm2020/mis-crystal-design-system-loader.mjs +2 -2
- package/fesm2020/mis-crystal-design-system-loader.mjs.map +1 -1
- package/fesm2020/mis-crystal-design-system-multi-select-dropdown.mjs +2 -2
- package/fesm2020/mis-crystal-design-system-multi-select-dropdown.mjs.map +1 -1
- package/fesm2020/mis-crystal-design-system-nested-multi-select-dropdown.mjs +2 -2
- package/fesm2020/mis-crystal-design-system-nested-multi-select-dropdown.mjs.map +1 -1
- package/fesm2020/mis-crystal-design-system-radio-button.mjs +2 -2
- package/fesm2020/mis-crystal-design-system-radio-button.mjs.map +1 -1
- package/fesm2020/mis-crystal-design-system-switch.mjs +2 -2
- package/fesm2020/mis-crystal-design-system-switch.mjs.map +1 -1
- package/fesm2020/mis-crystal-design-system-table.mjs +6 -6
- package/fesm2020/mis-crystal-design-system-table.mjs.map +1 -1
- package/fesm2020/mis-crystal-design-system-toast.mjs +2 -2
- package/fesm2020/mis-crystal-design-system-toast.mjs.map +1 -1
- package/fesm2020/mis-crystal-design-system-tooltip.mjs +2 -2
- package/fesm2020/mis-crystal-design-system-tooltip.mjs.map +1 -1
- package/input/mis-input.component.scss +18 -20
- package/package.json +1 -1
- package/styles/mis-fonts.scss +47 -37
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mis-crystal-design-system-tooltip.mjs","sources":["../../../projects/mis-components/tooltip/tooltip-container/tooltip.component.ts","../../../projects/mis-components/tooltip/tooltip-container/tooltip.component.html","../../../projects/mis-components/tooltip/tooltip.directive.ts","../../../projects/mis-components/tooltip/tooltip.module.ts","../../../projects/mis-components/tooltip/mis-crystal-design-system-tooltip.ts"],"sourcesContent":["import { AfterViewInit, Component, ElementRef, Inject, OnInit, ViewChild } from \"@angular/core\";\nimport { ITooltipPositions } from \"../models/tooltip.model\";\n\n@Component({\n selector: \"mis-tooltip\",\n templateUrl: \"./tooltip.component.html\",\n styleUrls: [\"./tooltip.component.scss\"]\n})\nexport class ToolTipComponent implements OnInit, AfterViewInit {\n public toolTipText: string = \"\";\n public toolTipPosition: ITooltipPositions = \"bottom\";\n\n @ViewChild(\"container\") container: ElementRef;\n\n constructor() {}\n ngOnInit() {}\n ngAfterViewInit() {\n if (!this.container?.nativeElement) return;\n if (this.toolTipPosition === \"top\" || this.toolTipPosition === \"bottom\") {\n const eleWidth = this.container.nativeElement.getBoundingClientRect();\n this.container.nativeElement.style.left = eleWidth.width / -2 + \"px\";\n return;\n }\n if (this.toolTipPosition === \"left\") {\n const eleWidth = this.container.nativeElement.getBoundingClientRect();\n this.container.nativeElement.style.left = -eleWidth.width + \"px\";\n }\n }\n}\n","<div id=\"tooltip-container\" *ngIf=\"toolTipText.length > 0\" #container>\n <div id=\"tooltip\">\n <div id=\"tooltip-text\">{{ toolTipText }}</div>\n <span\n id=\"arrow\"\n [ngClass]=\"{\n 'arrow-left': toolTipPosition === 'left',\n 'arrow-right': toolTipPosition === 'right',\n 'arrow-top': toolTipPosition === 'top',\n 'arrow-bottom': toolTipPosition === 'bottom'\n }\"\n ></span>\n </div>\n</div>\n","import { AfterViewInit, Directive, ElementRef, HostListener, Input, OnInit, ViewContainerRef } from \"@angular/core\";\nimport { Overlay, OverlayConfig, OverlayRef } from \"@angular/cdk/overlay\";\nimport { take } from \"rxjs/operators\";\nimport { ComponentPortal } from \"@angular/cdk/portal\";\nimport { ToolTipComponent } from \"./tooltip-container/tooltip.component\";\nimport { genPositionPairs } from \"mis-crystal-design-system/utils\";\nimport { ITooltipPositions } from \"./models/tooltip.model\";\n\n@Directive({\n selector: \"[misToolTip]\"\n})\nexport class ToolTipDirective implements OnInit, AfterViewInit {\n public isToolTipDisplayed: boolean = false;\n public toolTipText: string = \"\";\n public toolTipPosition: ITooltipPositions = \"bottom\";\n private overlayRef: OverlayRef;\n\n @Input() showOnHover: boolean = true;\n @Input() set showToolTip(value: boolean) {\n this.isToolTipDisplayed = value;\n if (value) this.displayToolTip();\n else this.hideToolTip();\n }\n @Input() set text(value: string) {\n this.toolTipText = value;\n }\n @Input() set position(value: ITooltipPositions) {\n this.toolTipPosition = value;\n }\n\n @HostListener(\"mouseenter\") onMouseEnter() {\n if (this.showOnHover) this.displayToolTip();\n }\n @HostListener(\"mouseleave\") onMouseLeave() {\n if (this.showOnHover) this.hideToolTip();\n }\n\n constructor(private element: ElementRef, private overlay: Overlay, private viewContainerRef: ViewContainerRef) {}\n\n ngOnInit() {}\n ngAfterViewInit() {\n if (this.isToolTipDisplayed) this.displayToolTip();\n else this.hideToolTip();\n }\n\n displayToolTip() {\n const positionStrategy = this.overlay\n .position()\n .flexibleConnectedTo(this.element)\n .withPositions(\n genPositionPairs(\n {\n positionX: \"center\",\n positionY: this.toolTipPosition === \"top\" ? \"top\" : \"center\",\n offsetX: this.positionTooltip(\"OFFSET_X\"),\n offsetY: this.positionTooltip(\"OFFSET_Y\")\n },\n false\n )\n )\n .withPush(true);\n const config = new OverlayConfig({\n hasBackdrop: false,\n positionStrategy,\n scrollStrategy: this.overlay.scrollStrategies.reposition()\n });\n this.overlayRef = this.overlay.create(config);\n const tempRef = new ComponentPortal(ToolTipComponent, this.viewContainerRef);\n const tooltipRef = this.overlayRef.attach(tempRef);\n tooltipRef.instance.toolTipText = this.toolTipText;\n tooltipRef.instance.toolTipPosition = this.toolTipPosition;\n this.overlayRef\n .backdropClick()\n .pipe(take(1))\n .subscribe(() => {\n this.hideToolTip();\n });\n }\n\n positionTooltip(type: \"OFFSET_X\" | \"OFFSET_Y\") {\n if (type === \"OFFSET_X\") {\n return this.toolTipPosition === \"right\"\n ? this.element.nativeElement.offsetWidth / 2 + 8\n : this.toolTipPosition === \"left\"\n ? (this.element.nativeElement.offsetWidth / 2 + 8) * -1\n : this.toolTipPosition === \"top\" || this.toolTipPosition === \"bottom\"\n ? 0\n : 8;\n }\n if (type !== \"OFFSET_Y\") return;\n return this.toolTipPosition === \"right\" || this.toolTipPosition === \"left\"\n ? -18\n : this.toolTipPosition === \"top\"\n ? -44\n : this.toolTipPosition === \"bottom\"\n ? this.element.nativeElement.offsetHeight / 2 + 8\n : 8;\n }\n\n hideToolTip() {\n this.overlayRef?.detach();\n this.overlayRef?.dispose();\n }\n}\n","import { NgModule, ModuleWithProviders } from \"@angular/core\";\nimport { CommonModule } from \"@angular/common\";\nimport { OverlayModule } from \"@angular/cdk/overlay\";\nimport { ToolTipDirective } from \"./tooltip.directive\";\nimport { ToolTipComponent } from \"./tooltip-container/tooltip.component\";\n\n@NgModule({\n declarations: [ToolTipDirective, ToolTipComponent],\n imports: [CommonModule, OverlayModule],\n exports: [ToolTipDirective, ToolTipComponent]\n})\nexport class ToolTipModule {\n static forRoot(): ModuleWithProviders<ToolTipModule> {\n return { ngModule: ToolTipModule, providers: [] };\n }\n}\n","/**\n * Generated bundle index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,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;4GAAb,aAAa,EAAA,YAAA,EAAA,CAJP,gBAAgB,EAAE,gBAAgB,CAAA,EAAA,OAAA,EAAA,CACvC,YAAY,EAAE,aAAa,CAAA,EAAA,OAAA,EAAA,CAC3B,gBAAgB,EAAE,gBAAgB,CAAA,EAAA,CAAA,CAAA;4GAEnC,aAAa,EAAA,OAAA,EAAA,CAHZ,YAAY,EAAE,aAAa,CAAA,EAAA,CAAA,CAAA;4FAG5B,aAAa,EAAA,UAAA,EAAA,CAAA;kBALzB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,YAAY,EAAE,CAAC,gBAAgB,EAAE,gBAAgB,CAAC;AAClD,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,aAAa,CAAC;AACtC,oBAAA,OAAO,EAAE,CAAC,gBAAgB,EAAE,gBAAgB,CAAC;AAChD,iBAAA,CAAA;;;ACVD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"mis-crystal-design-system-tooltip.mjs","sources":["../../../projects/mis-components/tooltip/tooltip-container/tooltip.component.ts","../../../projects/mis-components/tooltip/tooltip-container/tooltip.component.html","../../../projects/mis-components/tooltip/tooltip.directive.ts","../../../projects/mis-components/tooltip/tooltip.module.ts","../../../projects/mis-components/tooltip/mis-crystal-design-system-tooltip.ts"],"sourcesContent":["import { AfterViewInit, Component, ElementRef, Inject, OnInit, ViewChild } from \"@angular/core\";\nimport { ITooltipPositions } from \"../models/tooltip.model\";\n\n@Component({\n selector: \"mis-tooltip\",\n templateUrl: \"./tooltip.component.html\",\n styleUrls: [\"./tooltip.component.scss\"]\n})\nexport class ToolTipComponent implements OnInit, AfterViewInit {\n public toolTipText: string = \"\";\n public toolTipPosition: ITooltipPositions = \"bottom\";\n\n @ViewChild(\"container\") container: ElementRef;\n\n constructor() {}\n ngOnInit() {}\n ngAfterViewInit() {\n if (!this.container?.nativeElement) return;\n if (this.toolTipPosition === \"top\" || this.toolTipPosition === \"bottom\") {\n const eleWidth = this.container.nativeElement.getBoundingClientRect();\n this.container.nativeElement.style.left = eleWidth.width / -2 + \"px\";\n return;\n }\n if (this.toolTipPosition === \"left\") {\n const eleWidth = this.container.nativeElement.getBoundingClientRect();\n this.container.nativeElement.style.left = -eleWidth.width + \"px\";\n }\n }\n}\n","<div id=\"tooltip-container\" *ngIf=\"toolTipText.length > 0\" #container>\n <div id=\"tooltip\">\n <div id=\"tooltip-text\">{{ toolTipText }}</div>\n <span\n id=\"arrow\"\n [ngClass]=\"{\n 'arrow-left': toolTipPosition === 'left',\n 'arrow-right': toolTipPosition === 'right',\n 'arrow-top': toolTipPosition === 'top',\n 'arrow-bottom': toolTipPosition === 'bottom'\n }\"\n ></span>\n </div>\n</div>\n","import { AfterViewInit, Directive, ElementRef, HostListener, Input, OnInit, ViewContainerRef } from \"@angular/core\";\nimport { Overlay, OverlayConfig, OverlayRef } from \"@angular/cdk/overlay\";\nimport { take } from \"rxjs/operators\";\nimport { ComponentPortal } from \"@angular/cdk/portal\";\nimport { ToolTipComponent } from \"./tooltip-container/tooltip.component\";\nimport { genPositionPairs } from \"mis-crystal-design-system/utils\";\nimport { ITooltipPositions } from \"./models/tooltip.model\";\n\n@Directive({\n selector: \"[misToolTip]\"\n})\nexport class ToolTipDirective implements OnInit, AfterViewInit {\n public isToolTipDisplayed: boolean = false;\n public toolTipText: string = \"\";\n public toolTipPosition: ITooltipPositions = \"bottom\";\n private overlayRef: OverlayRef;\n\n @Input() showOnHover: boolean = true;\n @Input() set showToolTip(value: boolean) {\n this.isToolTipDisplayed = value;\n if (value) this.displayToolTip();\n else this.hideToolTip();\n }\n @Input() set text(value: string) {\n this.toolTipText = value;\n }\n @Input() set position(value: ITooltipPositions) {\n this.toolTipPosition = value;\n }\n\n @HostListener(\"mouseenter\") onMouseEnter() {\n if (this.showOnHover) this.displayToolTip();\n }\n @HostListener(\"mouseleave\") onMouseLeave() {\n if (this.showOnHover) this.hideToolTip();\n }\n\n constructor(private element: ElementRef, private overlay: Overlay, private viewContainerRef: ViewContainerRef) {}\n\n ngOnInit() {}\n ngAfterViewInit() {\n if (this.isToolTipDisplayed) this.displayToolTip();\n else this.hideToolTip();\n }\n\n displayToolTip() {\n const positionStrategy = this.overlay\n .position()\n .flexibleConnectedTo(this.element)\n .withPositions(\n genPositionPairs(\n {\n positionX: \"center\",\n positionY: this.toolTipPosition === \"top\" ? \"top\" : \"center\",\n offsetX: this.positionTooltip(\"OFFSET_X\"),\n offsetY: this.positionTooltip(\"OFFSET_Y\")\n },\n false\n )\n )\n .withPush(true);\n const config = new OverlayConfig({\n hasBackdrop: false,\n positionStrategy,\n scrollStrategy: this.overlay.scrollStrategies.reposition()\n });\n this.overlayRef = this.overlay.create(config);\n const tempRef = new ComponentPortal(ToolTipComponent, this.viewContainerRef);\n const tooltipRef = this.overlayRef.attach(tempRef);\n tooltipRef.instance.toolTipText = this.toolTipText;\n tooltipRef.instance.toolTipPosition = this.toolTipPosition;\n this.overlayRef\n .backdropClick()\n .pipe(take(1))\n .subscribe(() => {\n this.hideToolTip();\n });\n }\n\n positionTooltip(type: \"OFFSET_X\" | \"OFFSET_Y\") {\n if (type === \"OFFSET_X\") {\n return this.toolTipPosition === \"right\"\n ? this.element.nativeElement.offsetWidth / 2 + 8\n : this.toolTipPosition === \"left\"\n ? (this.element.nativeElement.offsetWidth / 2 + 8) * -1\n : this.toolTipPosition === \"top\" || this.toolTipPosition === \"bottom\"\n ? 0\n : 8;\n }\n if (type !== \"OFFSET_Y\") return;\n return this.toolTipPosition === \"right\" || this.toolTipPosition === \"left\"\n ? -18\n : this.toolTipPosition === \"top\"\n ? -44\n : this.toolTipPosition === \"bottom\"\n ? this.element.nativeElement.offsetHeight / 2 + 8\n : 8;\n }\n\n hideToolTip() {\n this.overlayRef?.detach();\n this.overlayRef?.dispose();\n }\n}\n","import { NgModule, ModuleWithProviders } from \"@angular/core\";\nimport { CommonModule } from \"@angular/common\";\nimport { OverlayModule } from \"@angular/cdk/overlay\";\nimport { ToolTipDirective } from \"./tooltip.directive\";\nimport { ToolTipComponent } from \"./tooltip-container/tooltip.component\";\n\n@NgModule({\n declarations: [ToolTipDirective, ToolTipComponent],\n imports: [CommonModule, OverlayModule],\n exports: [ToolTipDirective, ToolTipComponent]\n})\nexport class ToolTipModule {\n static forRoot(): ModuleWithProviders<ToolTipModule> {\n return { ngModule: ToolTipModule, providers: [] };\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1"],"mappings":";;;;;;;;;;MAQa,gBAAgB,CAAA;AAM3B,IAAA,WAAA,GAAA;QALO,IAAW,CAAA,WAAA,GAAW,EAAE,CAAC;QACzB,IAAe,CAAA,eAAA,GAAsB,QAAQ,CAAC;KAIrC;AAChB,IAAA,QAAQ,MAAK;IACb,eAAe,GAAA;AACb,QAAA,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,aAAa;YAAE,OAAO;QAC3C,IAAI,IAAI,CAAC,eAAe,KAAK,KAAK,IAAI,IAAI,CAAC,eAAe,KAAK,QAAQ,EAAE;YACvE,MAAM,QAAQ,GAAG,IAAI,CAAC,SAAS,CAAC,aAAa,CAAC,qBAAqB,EAAE,CAAC;AACtE,YAAA,IAAI,CAAC,SAAS,CAAC,aAAa,CAAC,KAAK,CAAC,IAAI,GAAG,QAAQ,CAAC,KAAK,GAAG,CAAC,CAAC,GAAG,IAAI,CAAC;YACrE,OAAO;AACR,SAAA;AACD,QAAA,IAAI,IAAI,CAAC,eAAe,KAAK,MAAM,EAAE;YACnC,MAAM,QAAQ,GAAG,IAAI,CAAC,SAAS,CAAC,aAAa,CAAC,qBAAqB,EAAE,CAAC;AACtE,YAAA,IAAI,CAAC,SAAS,CAAC,aAAa,CAAC,KAAK,CAAC,IAAI,GAAG,CAAC,QAAQ,CAAC,KAAK,GAAG,IAAI,CAAC;AAClE,SAAA;KACF;;8GAnBU,gBAAgB,E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AK;gBAGO,QAAQ,EAAA,CAAA;sBAApB,KAAK;gBAIsB,YAAY,EAAA,CAAA;sBAAvC,YAAY;uBAAC,YAAY,CAAA;gBAGE,YAAY,EAAA,CAAA;sBAAvC,YAAY;uBAAC,YAAY,CAAA;;;MCtBf,aAAa,CAAA;AACxB,IAAA,OAAO,OAAO,GAAA;QACZ,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC;KACnD;;2GAHU,aAAa,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;4GAAb,aAAa,EAAA,YAAA,EAAA,CAJP,gBAAgB,EAAE,gBAAgB,CAAA,EAAA,OAAA,EAAA,CACvC,YAAY,EAAE,aAAa,CAAA,EAAA,OAAA,EAAA,CAC3B,gBAAgB,EAAE,gBAAgB,CAAA,EAAA,CAAA,CAAA;4GAEnC,aAAa,EAAA,OAAA,EAAA,CAHZ,YAAY,EAAE,aAAa,CAAA,EAAA,CAAA,CAAA;4FAG5B,aAAa,EAAA,UAAA,EAAA,CAAA;kBALzB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,YAAY,EAAE,CAAC,gBAAgB,EAAE,gBAAgB,CAAC;AAClD,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,aAAa,CAAC;AACtC,oBAAA,OAAO,EAAE,CAAC,gBAAgB,EAAE,gBAAgB,CAAC;AAChD,iBAAA,CAAA;;;ACVD;;AAEG;;;;"}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
@import "../styles/mis-color-constants.scss";
|
|
2
|
-
@import '../styles/mis-fonts.scss';
|
|
3
|
-
@import '../styles/mis-icons.scss';
|
|
4
2
|
|
|
5
3
|
.input-container {
|
|
6
4
|
position: relative;
|
|
@@ -17,7 +15,7 @@
|
|
|
17
15
|
flex-direction: row;
|
|
18
16
|
flex-wrap: nowrap;
|
|
19
17
|
transition: all ease-in 60ms;
|
|
20
|
-
background-color:
|
|
18
|
+
background-color: #ffffff;
|
|
21
19
|
padding: 3px 16px; // DONE CHANGE
|
|
22
20
|
gap: 16px;
|
|
23
21
|
.mis-input {
|
|
@@ -38,7 +36,7 @@
|
|
|
38
36
|
font-weight: normal;
|
|
39
37
|
font-size: 16px;
|
|
40
38
|
height: 24px;
|
|
41
|
-
color:
|
|
39
|
+
color: #181f33;
|
|
42
40
|
background-color: transparent;
|
|
43
41
|
width: 100%;
|
|
44
42
|
vertical-align: middle;
|
|
@@ -56,13 +54,13 @@
|
|
|
56
54
|
font-weight: normal;
|
|
57
55
|
font-size: 16px;
|
|
58
56
|
line-height: 24px;
|
|
59
|
-
color:
|
|
57
|
+
color: #6a737d;
|
|
60
58
|
z-index: -1;
|
|
61
59
|
transition: all ease-in 150ms;
|
|
62
60
|
}
|
|
63
61
|
|
|
64
62
|
&:focus-within {
|
|
65
|
-
background-color:
|
|
63
|
+
background-color: #f5f5f5;
|
|
66
64
|
}
|
|
67
65
|
&:focus-within {
|
|
68
66
|
border: 1px solid $pmry_500;
|
|
@@ -71,7 +69,7 @@
|
|
|
71
69
|
[mis-input-icon] {
|
|
72
70
|
width: 18px;
|
|
73
71
|
height: 18px;
|
|
74
|
-
color:
|
|
72
|
+
color: #6a737d;
|
|
75
73
|
font-size: 24px;
|
|
76
74
|
line-height: 18px;
|
|
77
75
|
}
|
|
@@ -103,19 +101,19 @@
|
|
|
103
101
|
}
|
|
104
102
|
.input-wrapper {
|
|
105
103
|
border-radius: 4px;
|
|
106
|
-
border: 1px solid
|
|
104
|
+
border: 1px solid #e0e0e0;
|
|
107
105
|
padding: 0;
|
|
108
106
|
// input:not(:disabled) {
|
|
109
107
|
// &:hover,
|
|
110
108
|
// &:focus {
|
|
111
|
-
// background-color:
|
|
109
|
+
// background-color: #f5f5f5;
|
|
112
110
|
// }
|
|
113
111
|
// }
|
|
114
112
|
&:hover {
|
|
115
|
-
background-color:
|
|
113
|
+
background-color: #f5f5f5;
|
|
116
114
|
}
|
|
117
115
|
&:focus-within {
|
|
118
|
-
border: 1px solid
|
|
116
|
+
border: 1px solid #0937b2;
|
|
119
117
|
}
|
|
120
118
|
input:not(:placeholder-shown) + .mis-placeholder {
|
|
121
119
|
color: transparent !important;
|
|
@@ -127,7 +125,7 @@
|
|
|
127
125
|
}
|
|
128
126
|
&.has-error {
|
|
129
127
|
.input-wrapper {
|
|
130
|
-
border: 1px solid
|
|
128
|
+
border: 1px solid #b00020 !important;
|
|
131
129
|
}
|
|
132
130
|
}
|
|
133
131
|
}
|
|
@@ -135,9 +133,9 @@
|
|
|
135
133
|
.input-wrapper {
|
|
136
134
|
padding-top: 24px;
|
|
137
135
|
padding-bottom: 7px; // DONE CHANGE
|
|
138
|
-
border-bottom: 1px solid
|
|
136
|
+
border-bottom: 1px solid #e0e0e0;
|
|
139
137
|
input:focus + .mis-placeholder {
|
|
140
|
-
color:
|
|
138
|
+
color: #0937b2 !important;
|
|
141
139
|
}
|
|
142
140
|
input:not(:placeholder-shown) + .mis-placeholder,
|
|
143
141
|
input:focus + .mis-placeholder {
|
|
@@ -147,9 +145,9 @@
|
|
|
147
145
|
}
|
|
148
146
|
&:focus-within {
|
|
149
147
|
border: none;
|
|
150
|
-
border-bottom: 1px solid
|
|
148
|
+
border-bottom: 1px solid #0937b2;
|
|
151
149
|
input::placeholder {
|
|
152
|
-
color:
|
|
150
|
+
color: #6a737d;
|
|
153
151
|
opacity: 1;
|
|
154
152
|
font-size: 16px;
|
|
155
153
|
}
|
|
@@ -157,9 +155,9 @@
|
|
|
157
155
|
}
|
|
158
156
|
&.has-error {
|
|
159
157
|
.input-wrapper {
|
|
160
|
-
border-bottom: 1px solid
|
|
158
|
+
border-bottom: 1px solid #b00020 !important;
|
|
161
159
|
.mis-placeholder {
|
|
162
|
-
color:
|
|
160
|
+
color: #b00020 !important;
|
|
163
161
|
}
|
|
164
162
|
}
|
|
165
163
|
}
|
|
@@ -173,10 +171,10 @@
|
|
|
173
171
|
line-height: 24px;
|
|
174
172
|
height: 24px;
|
|
175
173
|
font-size: 12px;
|
|
176
|
-
color:
|
|
174
|
+
color: #6a737d;
|
|
177
175
|
letter-spacing: 0.2px;
|
|
178
176
|
}
|
|
179
177
|
[mis-input-error] {
|
|
180
|
-
color:
|
|
178
|
+
color: #b00020;
|
|
181
179
|
}
|
|
182
180
|
}
|
package/package.json
CHANGED
package/styles/mis-fonts.scss
CHANGED
|
@@ -1,114 +1,124 @@
|
|
|
1
|
-
@mixin hFont ($font-size, $line-height) {
|
|
2
|
-
font-size: $font-size;
|
|
3
|
-
line-height: $line-height;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
1
|
.h1 {
|
|
7
|
-
|
|
8
|
-
font-weight:
|
|
2
|
+
font-size: 40px;
|
|
3
|
+
font-weight: 400;
|
|
9
4
|
letter-spacing: 0px;
|
|
5
|
+
line-height: 48px;
|
|
10
6
|
}
|
|
11
7
|
.h2 {
|
|
12
|
-
|
|
8
|
+
font-size: 32px;
|
|
13
9
|
font-weight: 400;
|
|
14
10
|
letter-spacing: 0px;
|
|
11
|
+
line-height: 40px;
|
|
15
12
|
}
|
|
16
13
|
.h3 {
|
|
17
|
-
|
|
14
|
+
font-size: 28px;
|
|
18
15
|
font-weight: 400;
|
|
19
16
|
letter-spacing: 0px;
|
|
17
|
+
line-height: 36px;
|
|
20
18
|
}
|
|
21
19
|
.h4 {
|
|
22
|
-
|
|
20
|
+
font-size: 24px;
|
|
23
21
|
font-weight: 400;
|
|
24
22
|
letter-spacing: 0px;
|
|
23
|
+
line-height: 32px;
|
|
25
24
|
}
|
|
26
|
-
|
|
27
|
-
|
|
28
25
|
.h5-b {
|
|
26
|
+
font-size: 20px;
|
|
29
27
|
font-weight: 700;
|
|
30
28
|
letter-spacing: 0.25px;
|
|
31
|
-
|
|
29
|
+
line-height: 28px;
|
|
32
30
|
}
|
|
33
31
|
.h5 {
|
|
32
|
+
font-size: 20px;
|
|
34
33
|
font-weight: 400;
|
|
35
34
|
letter-spacing: 0.15px;
|
|
36
|
-
|
|
35
|
+
line-height: 28px;
|
|
37
36
|
}
|
|
38
37
|
.h6-b{
|
|
39
|
-
font-
|
|
38
|
+
font-size: 16px;
|
|
39
|
+
font-weight: 700;
|
|
40
40
|
letter-spacing: 0px;
|
|
41
|
-
|
|
41
|
+
line-height: 24px;
|
|
42
42
|
}
|
|
43
43
|
.h6{
|
|
44
|
-
|
|
45
|
-
font-weight: 400;
|
|
44
|
+
font-size: 16px;
|
|
45
|
+
font-weight: 400;
|
|
46
46
|
letter-spacing: 0px;
|
|
47
|
+
line-height: 24px;
|
|
47
48
|
}
|
|
48
49
|
.p {
|
|
49
|
-
|
|
50
|
-
font-weight: 400;
|
|
50
|
+
font-size: 16px;
|
|
51
|
+
font-weight: 400;
|
|
51
52
|
letter-spacing: 0px;
|
|
53
|
+
line-height: 180%;
|
|
52
54
|
}
|
|
53
55
|
.h7-b {
|
|
54
|
-
font-
|
|
56
|
+
font-size: 14px;
|
|
57
|
+
font-weight: 700;
|
|
55
58
|
letter-spacing: 0.25px;
|
|
56
|
-
|
|
57
|
-
|
|
59
|
+
line-height: 20px;
|
|
58
60
|
}
|
|
59
|
-
|
|
60
61
|
.h7 {
|
|
62
|
+
font-size: 14px;
|
|
61
63
|
font-weight: 400;
|
|
62
64
|
letter-spacing: 0.2px;
|
|
63
|
-
|
|
65
|
+
line-height: 20px;
|
|
64
66
|
}
|
|
65
67
|
|
|
66
68
|
.h8-b {
|
|
67
|
-
font-
|
|
69
|
+
font-size: 12px;
|
|
70
|
+
font-weight: 700;
|
|
68
71
|
letter-spacing: 0.25px;
|
|
69
|
-
|
|
72
|
+
line-height: 18px;
|
|
70
73
|
}
|
|
71
74
|
.h8 {
|
|
75
|
+
font-size: 12px;
|
|
72
76
|
font-weight: 400;
|
|
73
77
|
letter-spacing: 0.2px;
|
|
74
|
-
|
|
75
|
-
|
|
78
|
+
line-height: 18px;
|
|
76
79
|
}
|
|
77
80
|
.h9 {
|
|
78
|
-
|
|
79
|
-
font-weight: 400;
|
|
81
|
+
font-size: 10px;
|
|
82
|
+
font-weight: 400;
|
|
80
83
|
letter-spacing: 0px;
|
|
84
|
+
line-height: 15px;
|
|
81
85
|
}
|
|
82
86
|
|
|
83
87
|
//button fonts ------------------------------------------------------------------
|
|
84
88
|
|
|
85
89
|
.btn-lg-b {
|
|
86
|
-
|
|
90
|
+
font-size: 16px;
|
|
87
91
|
font-weight: 700;
|
|
88
92
|
letter-spacing: 0.5px;
|
|
93
|
+
line-height: 24px;
|
|
89
94
|
}
|
|
90
95
|
.btn-lg {
|
|
96
|
+
font-size: 16px;
|
|
91
97
|
font-weight: 400;
|
|
92
98
|
letter-spacing: 0.2px;
|
|
93
|
-
|
|
99
|
+
line-height: 24px;
|
|
94
100
|
}
|
|
95
101
|
.btn-sm {
|
|
102
|
+
font-size: 14px;
|
|
96
103
|
font-weight: 400;
|
|
97
104
|
letter-spacing: 0.25px;
|
|
98
|
-
|
|
105
|
+
line-height: 20px;
|
|
99
106
|
}
|
|
100
107
|
.btn-link {
|
|
101
108
|
font-size: 16px;
|
|
109
|
+
font-weight: 400;
|
|
110
|
+
letter-spacing: 0px;
|
|
102
111
|
line-height: 24px;
|
|
103
|
-
@include hFont(16px, 24px);
|
|
104
112
|
}
|
|
105
113
|
.display-1 {
|
|
114
|
+
font-size: 48px;
|
|
106
115
|
font-weight: 400;
|
|
107
116
|
letter-spacing: 0px;
|
|
108
|
-
|
|
117
|
+
line-height: 56px;
|
|
109
118
|
}
|
|
110
119
|
.display-2 {
|
|
120
|
+
font-size: 14px;
|
|
111
121
|
font-weight: 400;
|
|
112
122
|
letter-spacing: 0.5px;
|
|
113
|
-
|
|
123
|
+
line-height: 20px;
|
|
114
124
|
}
|