ngwr 0.0.3 → 0.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.
Files changed (197) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +35 -0
  3. package/_core/components/base.component.d.ts +11 -0
  4. package/_core/constants/style-prefix.d.ts +1 -0
  5. package/_core/index.d.ts +5 -0
  6. package/_core/types/boolean-input.d.ts +1 -0
  7. package/_core/types/safe-any.d.ts +1 -0
  8. package/_core/util/convert.d.ts +19 -0
  9. package/button/button.component.d.ts +27 -0
  10. package/button/button.module.d.ts +9 -0
  11. package/button/{index.ts → index.d.ts} +0 -0
  12. package/divider/divider.component.d.ts +6 -0
  13. package/divider/divider.module.d.ts +7 -0
  14. package/divider/{index.ts → index.d.ts} +0 -0
  15. package/esm2020/_core/components/base.component.mjs +23 -0
  16. package/esm2020/_core/constants/style-prefix.mjs +2 -0
  17. package/esm2020/_core/index.mjs +10 -0
  18. package/esm2020/_core/types/boolean-input.mjs +2 -0
  19. package/esm2020/_core/types/safe-any.mjs +2 -0
  20. package/esm2020/_core/util/convert.mjs +51 -0
  21. package/esm2020/button/button.component.mjs +132 -0
  22. package/esm2020/button/button.module.mjs +19 -0
  23. package/esm2020/button/index.mjs +3 -0
  24. package/esm2020/divider/divider.component.mjs +23 -0
  25. package/esm2020/divider/divider.module.mjs +16 -0
  26. package/esm2020/divider/index.mjs +3 -0
  27. package/esm2020/extended-input/extended-input.component.mjs +68 -0
  28. package/esm2020/extended-input/extended-input.module.mjs +20 -0
  29. package/esm2020/extended-input/index.mjs +3 -0
  30. package/esm2020/form/form-error.component.mjs +23 -0
  31. package/esm2020/form/form-item.component.mjs +48 -0
  32. package/esm2020/form/form.module.mjs +19 -0
  33. package/esm2020/form/index.mjs +4 -0
  34. package/esm2020/icon/index.mjs +5 -0
  35. package/esm2020/icon/wr-icon.component.mjs +51 -0
  36. package/esm2020/icon/wr-icon.module.mjs +21 -0
  37. package/esm2020/icon/wr-icon.service.mjs +30 -0
  38. package/esm2020/icon/wr-icons.mjs +244 -0
  39. package/esm2020/input/index.mjs +3 -0
  40. package/esm2020/input/input.directive.mjs +61 -0
  41. package/esm2020/input/input.module.mjs +19 -0
  42. package/esm2020/ngwr.mjs +5 -0
  43. package/esm2020/password-input/index.mjs +3 -0
  44. package/esm2020/password-input/password-input.component.mjs +58 -0
  45. package/esm2020/password-input/password-input.module.mjs +21 -0
  46. package/esm2020/public-api.mjs +11 -0
  47. package/esm2020/skeleton/index.mjs +3 -0
  48. package/esm2020/skeleton/skeleton.component.mjs +31 -0
  49. package/esm2020/skeleton/skeleton.module.mjs +19 -0
  50. package/esm2020/spinner/index.mjs +3 -0
  51. package/esm2020/spinner/spinner.component.mjs +23 -0
  52. package/esm2020/spinner/spinner.module.mjs +16 -0
  53. package/esm2020/tag/index.mjs +3 -0
  54. package/esm2020/tag/tag.component.mjs +84 -0
  55. package/esm2020/tag/tag.module.mjs +19 -0
  56. package/extended-input/extended-input.component.d.ts +26 -0
  57. package/extended-input/extended-input.module.d.ts +10 -0
  58. package/extended-input/{index.ts → index.d.ts} +0 -0
  59. package/fesm2015/ngwr.mjs +1062 -0
  60. package/fesm2015/ngwr.mjs.map +1 -0
  61. package/fesm2020/ngwr.mjs +1052 -0
  62. package/fesm2020/ngwr.mjs.map +1 -0
  63. package/form/form-error.component.d.ts +6 -0
  64. package/form/form-item.component.d.ts +16 -0
  65. package/form/form.module.d.ts +9 -0
  66. package/form/{index.ts → index.d.ts} +0 -0
  67. package/icon/{index.ts → index.d.ts} +0 -0
  68. package/icon/wr-icon.component.d.ts +17 -0
  69. package/icon/wr-icon.module.d.ts +9 -0
  70. package/icon/wr-icon.service.d.ts +17 -0
  71. package/icon/wr-icons.d.ts +343 -0
  72. package/index.d.ts +5 -0
  73. package/input/{index.ts → index.d.ts} +0 -0
  74. package/input/input.directive.d.ts +18 -0
  75. package/input/input.module.d.ts +9 -0
  76. package/logo.svg +1 -0
  77. package/ngwr.min.css +8 -0
  78. package/package.json +34 -11
  79. package/password-input/{index.ts → index.d.ts} +0 -0
  80. package/password-input/password-input.component.d.ts +22 -0
  81. package/password-input/password-input.module.d.ts +11 -0
  82. package/{public-api.ts → public-api.d.ts} +0 -0
  83. package/skeleton/{index.ts → index.d.ts} +0 -0
  84. package/skeleton/skeleton.component.d.ts +11 -0
  85. package/skeleton/skeleton.module.d.ts +9 -0
  86. package/spinner/{index.ts → index.d.ts} +0 -0
  87. package/spinner/spinner.component.d.ts +6 -0
  88. package/spinner/spinner.module.d.ts +7 -0
  89. package/tag/{index.ts → index.d.ts} +0 -0
  90. package/tag/tag.component.d.ts +22 -0
  91. package/tag/tag.module.d.ts +9 -0
  92. package/button/button.component.ts +0 -132
  93. package/button/button.module.ts +0 -11
  94. package/core/types/convert-input.ts +0 -2
  95. package/core/types/index.ts +0 -3
  96. package/core/types/indexable.ts +0 -3
  97. package/core/types/ng-class.ts +0 -11
  98. package/core/util/convert.ts +0 -63
  99. package/core/util/index.ts +0 -1
  100. package/divider/divider.component.ts +0 -13
  101. package/divider/divider.module.ts +0 -10
  102. package/extended-input/extended-input.component.html +0 -13
  103. package/extended-input/extended-input.component.ts +0 -77
  104. package/extended-input/extended-input.module.ts +0 -17
  105. package/form/form-error.component.ts +0 -20
  106. package/form/form-item.component.ts +0 -60
  107. package/form/form.module.ts +0 -17
  108. package/icon/svg/aab.svg +0 -1
  109. package/icon/svg/add.svg +0 -1
  110. package/icon/svg/alert.svg +0 -1
  111. package/icon/svg/apk.svg +0 -1
  112. package/icon/svg/arrow-back.svg +0 -1
  113. package/icon/svg/bug.svg +0 -1
  114. package/icon/svg/caret-back.svg +0 -1
  115. package/icon/svg/caret-forward.svg +0 -1
  116. package/icon/svg/checkmark-circle.svg +0 -1
  117. package/icon/svg/chevron-down.svg +0 -1
  118. package/icon/svg/chevron-up.svg +0 -1
  119. package/icon/svg/clock.svg +0 -1
  120. package/icon/svg/close-circle.svg +0 -1
  121. package/icon/svg/copy.svg +0 -1
  122. package/icon/svg/document.svg +0 -1
  123. package/icon/svg/dots-horizontal.svg +0 -1
  124. package/icon/svg/dots-vertical.svg +0 -1
  125. package/icon/svg/download.svg +0 -1
  126. package/icon/svg/eye-off.svg +0 -1
  127. package/icon/svg/eye.svg +0 -1
  128. package/icon/svg/flash.svg +0 -1
  129. package/icon/svg/folder.svg +0 -1
  130. package/icon/svg/help.svg +0 -1
  131. package/icon/svg/info-circle-outline.svg +0 -1
  132. package/icon/svg/ipa.svg +0 -1
  133. package/icon/svg/logo-android.svg +0 -1
  134. package/icon/svg/logo-apple.svg +0 -1
  135. package/icon/svg/logo-appscreener.svg +0 -1
  136. package/icon/svg/logo-oversecured.svg +0 -1
  137. package/icon/svg/logo-stingray.svg +0 -1
  138. package/icon/svg/modules.svg +0 -1
  139. package/icon/svg/play-back.svg +0 -1
  140. package/icon/svg/play-circle.svg +0 -1
  141. package/icon/svg/play-forward.svg +0 -1
  142. package/icon/svg/play.svg +0 -1
  143. package/icon/svg/reader.svg +0 -1
  144. package/icon/svg/repeat.svg +0 -1
  145. package/icon/svg/search.svg +0 -1
  146. package/icon/svg/stop-circle.svg +0 -1
  147. package/icon/svg/stop.svg +0 -1
  148. package/icon/svg/trash.svg +0 -1
  149. package/icon/svg/user.svg +0 -1
  150. package/icon/svg/warning.svg +0 -1
  151. package/icon/svg/zip.svg +0 -1
  152. package/icon/wr-icon.component.ts +0 -52
  153. package/icon/wr-icon.module.ts +0 -14
  154. package/icon/wr-icon.service.ts +0 -28
  155. package/icon/wr-icons.ts +0 -405
  156. package/index.ts +0 -1
  157. package/input/input.directive.ts +0 -65
  158. package/input/input.module.ts +0 -16
  159. package/ng-package.json +0 -11
  160. package/password-input/password-input.component.html +0 -10
  161. package/password-input/password-input.component.ts +0 -56
  162. package/password-input/password-input.module.ts +0 -23
  163. package/skeleton/skeleton.component.ts +0 -38
  164. package/skeleton/skeleton.module.ts +0 -11
  165. package/spinner/spinner.component.ts +0 -11
  166. package/spinner/spinner.module.ts +0 -10
  167. package/styles/components/_index.scss +0 -15
  168. package/styles/components/alert.scss +0 -28
  169. package/styles/components/button.scss +0 -115
  170. package/styles/components/card.scss +0 -41
  171. package/styles/components/divider.scss +0 -19
  172. package/styles/components/dropdown.scss +0 -128
  173. package/styles/components/extended-input.scss +0 -64
  174. package/styles/components/form.scss +0 -85
  175. package/styles/components/heading.scss +0 -25
  176. package/styles/components/icon.scss +0 -32
  177. package/styles/components/input.scss +0 -43
  178. package/styles/components/password-input.scss +0 -31
  179. package/styles/components/skeleton.scss +0 -58
  180. package/styles/components/spinner.scss +0 -44
  181. package/styles/components/tag.scss +0 -70
  182. package/styles/components/tooltip.scss +0 -60
  183. package/styles/functions.scss +0 -184
  184. package/styles/grid.scss +0 -177
  185. package/styles/index.scss +0 -165
  186. package/styles/mixins/_index.scss +0 -22
  187. package/styles/mixins/alert.scss +0 -7
  188. package/styles/mixins/button.scss +0 -56
  189. package/styles/mixins/reset-component.scss +0 -13
  190. package/styles/mixins/tag.scss +0 -68
  191. package/styles/reset.scss +0 -104
  192. package/styles/root.scss +0 -31
  193. package/styles/vars.scss +0 -1075
  194. package/tag/tag.component.ts +0 -92
  195. package/tag/tag.module.ts +0 -11
  196. package/tsconfig.lib.json +0 -15
  197. package/tsconfig.lib.prod.json +0 -10
package/ng-package.json DELETED
@@ -1,11 +0,0 @@
1
- {
2
- "$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
3
- "dest": "../../dist",
4
- "deleteDestPath": true,
5
- "assets": [
6
- "./styles/**/**/*.scss"
7
- ],
8
- "lib": {
9
- "entryFile": "public-api.ts"
10
- }
11
- }
@@ -1,10 +0,0 @@
1
- <input
2
- wr-input
3
- [disabled]="disabled"
4
- [type]="type"
5
- [value]="value"
6
- (focusout)="onFocusOut()"
7
- (input)="onInput($event)"
8
- >
9
- <wr-icon class="wr-password-input-icon" *ngIf="type === 'input'" name="eye" (click)="onVisibilityClick($event)"></wr-icon>
10
- <wr-icon class="wr-password-input-icon" *ngIf="type === 'password'" name="eye-off" (click)="onVisibilityClick($event)"></wr-icon>
@@ -1,56 +0,0 @@
1
- import { Component, HostBinding, Optional, Self, ViewEncapsulation } from '@angular/core';
2
- import { ControlValueAccessor, NgControl } from '@angular/forms';
3
-
4
- @Component({
5
- selector: 'wr-password-input',
6
- templateUrl: './password-input.component.html',
7
- encapsulation: ViewEncapsulation.None
8
- })
9
- export class WalrusPasswordInputComponent implements ControlValueAccessor {
10
- @HostBinding() class = 'wr-password-input';
11
-
12
- public type: 'input' | 'password' = 'password';
13
- public disabled: boolean = false;
14
- public value: string | null = null;
15
- public touched = false;
16
-
17
- constructor(
18
- @Optional() @Self() public ngControl: NgControl
19
- ) {
20
- if (ngControl !== null) {
21
- ngControl.valueAccessor = this;
22
- }
23
- }
24
-
25
- onVisibilityClick($event: any): void {
26
- $event.stopPropagation();
27
- this.type === 'password' ? this.type = 'input' : this.type = 'password';
28
- }
29
-
30
- onInput($event: any): void {
31
- this.value = $event.currentTarget.value;
32
- this.touched = true;
33
- this.onChange(this.value);
34
- }
35
-
36
- onChange = (value: any) => { };
37
-
38
- onTouched = () => {};
39
-
40
- onFocusOut(): void {
41
- this.touched = true;
42
- this.onTouched();
43
- }
44
-
45
- registerOnChange(fn: any) {
46
- this.onChange = fn;
47
- }
48
-
49
- registerOnTouched(fn: any) {
50
- this.onTouched = fn;
51
- }
52
-
53
- writeValue(obj: any): void {
54
- this.value = obj;
55
- }
56
- }
@@ -1,23 +0,0 @@
1
- import { PlatformModule } from '@angular/cdk/platform';
2
- import { CommonModule } from '@angular/common';
3
- import { NgModule } from '@angular/core';
4
-
5
- import { WalrusPasswordInputComponent } from './password-input.component';
6
- import { WalrusInputModule } from '../input';
7
- import { WrIconModule } from '../icon';
8
-
9
- @NgModule({
10
- imports: [
11
- CommonModule,
12
- PlatformModule,
13
- WalrusInputModule,
14
- WrIconModule.withIcons()
15
- ],
16
- declarations: [
17
- WalrusPasswordInputComponent,
18
- ],
19
- exports: [
20
- WalrusPasswordInputComponent,
21
- ]
22
- })
23
- export class WalrusPasswordInputModule {}
@@ -1,38 +0,0 @@
1
- import {
2
- AfterViewInit,
3
- ChangeDetectionStrategy,
4
- Component,
5
- ElementRef,
6
- HostBinding,
7
- Input,
8
- OnDestroy,
9
- ViewEncapsulation
10
- } from '@angular/core';
11
- import { Subject } from 'rxjs';
12
-
13
- @Component({
14
- selector: 'wr-skeleton',
15
- exportAs: 'wrSkeleton',
16
- preserveWhitespaces: false,
17
- template: '<span>&nbsp;</span>',
18
- changeDetection: ChangeDetectionStrategy.OnPush,
19
- encapsulation: ViewEncapsulation.None
20
- })
21
- export class WalrusSkeletonComponent implements AfterViewInit, OnDestroy {
22
- @Input() color: 'light' | 'dark' = 'dark';
23
- @HostBinding('class') classes = `wr-skeleton`;
24
-
25
- private destroy$ = new Subject<void>();
26
-
27
- constructor(private readonly el: ElementRef) {}
28
-
29
- ngAfterViewInit() {
30
- const style = this.color === 'light' ? 'var(--color-white-rgb)' : 'var(--color-dark-rgb)';
31
- this.el.nativeElement.style.setProperty('--skeleton-style', style);
32
- }
33
-
34
- ngOnDestroy(): void {
35
- this.destroy$.next();
36
- this.destroy$.complete();
37
- }
38
- }
@@ -1,11 +0,0 @@
1
- import { CommonModule } from '@angular/common';
2
- import { NgModule } from '@angular/core';
3
- import { WalrusSkeletonComponent } from './skeleton.component';
4
- import { WalrusSpinnerModule } from '../spinner';
5
-
6
- @NgModule({
7
- imports: [CommonModule, WalrusSpinnerModule],
8
- declarations: [WalrusSkeletonComponent],
9
- exports: [WalrusSkeletonComponent]
10
- })
11
- export class WalrusSkeletonModule {}
@@ -1,11 +0,0 @@
1
- import { ChangeDetectionStrategy, Component, HostBinding, ViewEncapsulation } from '@angular/core';
2
-
3
- @Component({
4
- selector: 'wr-spin',
5
- template: '<svg viewBox="0 0 50 50"><circle class="path" cx="25" cy="25" r="20" fill="none" stroke-width="5"></circle></svg>',
6
- encapsulation: ViewEncapsulation.None,
7
- changeDetection: ChangeDetectionStrategy.OnPush
8
- })
9
- export class WalrusSpinnerComponent {
10
- @HostBinding('class') class = 'wr-spin';
11
- }
@@ -1,10 +0,0 @@
1
- import { CommonModule } from '@angular/common';
2
- import { NgModule } from '@angular/core';
3
- import { WalrusSpinnerComponent } from './spinner.component';
4
-
5
- @NgModule({
6
- imports: [CommonModule],
7
- declarations: [WalrusSpinnerComponent],
8
- exports: [WalrusSpinnerComponent]
9
- })
10
- export class WalrusSpinnerModule {}
@@ -1,15 +0,0 @@
1
- @import 'alert';
2
- @import 'button';
3
- @import 'card';
4
- @import 'divider';
5
- @import 'dropdown';
6
- @import 'extended-input';
7
- @import 'form';
8
- @import 'heading';
9
- @import 'icon';
10
- @import 'input';
11
- @import 'password-input';
12
- @import 'skeleton';
13
- @import 'spinner';
14
- @import 'tag';
15
- @import 'tooltip';
@@ -1,28 +0,0 @@
1
- @import '../vars';
2
- @import '../mixins';
3
-
4
- $alert-prefix: #{$prefix}-alert;
5
-
6
- .#{$alert-prefix} {
7
- display: flex;
8
- align-items: center;
9
- width: 100%;
10
-
11
- margin-bottom: 0.5rem;
12
-
13
- word-wrap: break-word;
14
- font-size: $font-size-base;
15
- font-weight: $font-weight-base;
16
- line-height: $line-height-base;
17
-
18
- padding: 0.5rem 0.75rem;
19
- border-radius: 0.375rem;
20
-
21
- user-select: none;
22
-
23
- @each $color, $value in $theme-colors {
24
- &.#{$alert-prefix}-#{$color} {
25
- @include alert-colors-generate($value);
26
- }
27
- }
28
- }
@@ -1,115 +0,0 @@
1
- @import '../vars';
2
- @import '../mixins';
3
-
4
- $btn-prefix: #{$prefix}-btn;
5
-
6
- .#{$btn-prefix} {
7
- display: inline-flex;
8
- align-items: center;
9
- justify-content: center;
10
- height: auto;
11
-
12
- padding: calc(#{$btn-padding-y} + 1px) $btn-padding-x;
13
- border-radius: $btn-border-radius;
14
-
15
- font-family: $font-family;
16
- //line-height: $btn-line-height;
17
- text-align: center;
18
- vertical-align: middle;
19
-
20
- cursor: pointer;
21
- user-select: none;
22
-
23
- position: relative;
24
-
25
- transition: $transition-primary;
26
-
27
- &__text {
28
- font-size: $btn-font-size;
29
- font-weight: $btn-font-weight;
30
- }
31
-
32
- &--block {
33
- width: 100%;
34
- }
35
-
36
- &--rounded {
37
- border-radius: $btn-round-border-radius;
38
- padding: $btn-round-padding-y $btn-round-padding-x;
39
- }
40
-
41
- & > wr-icon {
42
- width: 1rem;
43
- height: 1rem;
44
- margin-right: 0.375rem;
45
- }
46
-
47
- & > wr-spin {
48
- position: absolute;
49
- z-index: 1;
50
- top: 50%;
51
- transform: translateY(-50%);
52
- margin-left: auto;
53
- margin-right: auto;
54
- }
55
-
56
- &--small {
57
- padding: 0.25rem 0.5rem;
58
-
59
- .#{$btn-prefix} {
60
- &__text {
61
- font-size: $btn-font-size / 1.25;
62
- }
63
- }
64
-
65
- & > wr-icon {
66
- width: 0.75rem;
67
- height: 0.75rem;
68
- margin-right: 0.25rem;
69
- }
70
- }
71
-
72
- &--loading {
73
- pointer-events: none;
74
-
75
- .#{$btn-prefix} {
76
- &__text {
77
- opacity: 0;
78
- }
79
- }
80
-
81
- & > wr-icon {
82
- opacity: 0;
83
- }
84
- }
85
- }
86
-
87
- @each $color, $value in $theme-colors {
88
- .#{$btn-prefix}-#{$color} {
89
- @include button-variant($value);
90
-
91
- &:disabled,
92
- &.#{$btn-prefix}--disabled {
93
- color: var(--color-medium);
94
- background-color: var(--color-light);
95
- box-shadow: none;
96
- pointer-events: none;
97
- }
98
- }
99
- }
100
-
101
- @each $color, $value in $theme-colors {
102
- .#{$btn-prefix}-#{$color} {
103
- &.#{$btn-prefix}--outlined {
104
- @include button-outline-variant($value);
105
-
106
- &:disabled,
107
- &.#{$btn-prefix}--disabled {
108
- color: var(--color-medium);
109
- background-color: transparent;
110
- box-shadow: inset 0 0 0 1px var(--color-light);
111
- pointer-events: none;
112
- }
113
- }
114
- }
115
- }
@@ -1,41 +0,0 @@
1
- @import '../vars';
2
- @import '../mixins';
3
-
4
- $card-prefix: #{$prefix}-card;
5
-
6
- .#{$card-prefix} {
7
- display: flex;
8
- flex-direction: column;
9
- align-content: baseline;
10
- justify-content: center;
11
-
12
- background: $color-white;
13
- border-radius: 0.75rem;
14
-
15
- padding: 1.5rem 1.25rem;
16
- box-shadow: $shadow-1-down;
17
-
18
- &--hoverable {
19
- transition: $transition-base;
20
-
21
- &:hover {
22
- cursor: pointer;
23
- box-shadow: $box-shadow-base;
24
-
25
- .#{$card-prefix}__title {
26
- color: $color-secondary;
27
- }
28
- }
29
- }
30
-
31
- &__title {
32
- color: $color-dark;
33
- font-size: 1.125rem;
34
- font-weight: 500;
35
- line-height: 1;
36
-
37
- margin-bottom: 0.5rem;
38
-
39
- transition: $transition-base;
40
- }
41
- }
@@ -1,19 +0,0 @@
1
- @import '../vars';
2
- @import '../mixins';
3
-
4
- $divider-prefix: #{$prefix}-divider;
5
-
6
- .#{$divider-prefix} {
7
- display: block;
8
-
9
- width: 100%;
10
- height: 1px;
11
-
12
- margin-top: 4px;
13
- margin-bottom: 4px;
14
-
15
- background: $color-light;
16
-
17
- user-select: none;
18
- pointer-events: none;
19
- }
@@ -1,128 +0,0 @@
1
- @import '../vars';
2
- @import '../mixins';
3
-
4
- $dropdown-prefix: #{$prefix}-dropdown;
5
-
6
- .#{$dropdown-prefix} {
7
- @include reset-component();
8
-
9
- position: absolute;
10
- top: -9999px;
11
- left: -9999px;
12
- z-index: $zindex-dropdown;
13
- display: block;
14
-
15
- &::before {
16
- position: absolute;
17
- top: -$popover-distance + $popover-arrow-width;
18
- right: 0;
19
- bottom: -$popover-distance + $popover-arrow-width;
20
- left: -7px;
21
- z-index: -9999;
22
- opacity: 0.0001;
23
- content: ' ';
24
- }
25
-
26
- &-trigger {
27
- &:hover {
28
- cursor: pointer;
29
- }
30
- }
31
-
32
- &-wrap {
33
- position: relative;
34
- }
35
-
36
- &-hidden,
37
- &-menu-hidden,
38
- &-menu-submenu-hidden {
39
- display: none;
40
- }
41
-
42
- &-menu {
43
- display: flex;
44
- flex-direction: column;
45
- align-items: baseline;
46
- position: relative;
47
- margin: 0;
48
- padding: 1rem;
49
- text-align: left;
50
- list-style-type: none;
51
- background-color: $dropdown-menu-bg;
52
- background-clip: padding-box;
53
- border-radius: $border-radius-base;
54
- outline: none;
55
- box-shadow: $box-shadow-base;
56
-
57
- &-submenu-popup {
58
- position: absolute;
59
- z-index: $zindex-dropdown;
60
- background: transparent;
61
- box-shadow: none;
62
- transform-origin: 0 0;
63
-
64
- ul,
65
- li {
66
- list-style: none;
67
- }
68
-
69
- ul {
70
- margin-right: 0.3em;
71
- margin-left: 0.3em;
72
- }
73
- }
74
-
75
- // ======================= Item Content =======================
76
- &-item {
77
- position: relative;
78
- display: flex;
79
- align-items: center;
80
- color: $color-dark;
81
- transition: all 0.15s linear;
82
-
83
- &:hover {
84
- color: $color-secondary;
85
- }
86
- }
87
-
88
- &-item,
89
- &-submenu-title {
90
- clear: both;
91
- font-weight: normal;
92
- white-space: nowrap;
93
- cursor: pointer;
94
- margin: 0 0 1rem;
95
-
96
- &:last-child {
97
- margin-bottom: 0;
98
- }
99
-
100
- }
101
- }
102
-
103
- &.#{$dropdown-prefix}-slide-down-enter,
104
- &.#{$dropdown-prefix}-slide-down-appear,
105
- &.#{$dropdown-prefix}-slide-down-enter,
106
- &.#{$dropdown-prefix}-slide-down-appear,
107
- &.#{$dropdown-prefix}-slide-down-enter,
108
- &.#{$dropdown-prefix}-slide-down-appear {
109
- animation-name: antSlideUpIn;
110
- }
111
- }
112
-
113
- .wr-dropdown-menu {
114
- & > ul {
115
- list-style: inherit;
116
- margin: 0;
117
- padding: 0;
118
- }
119
- }
120
-
121
- .wr-dropdown {
122
- top: 0;
123
- left: 0;
124
- position: relative;
125
- width: 100%;
126
- margin-top: 6px;
127
- margin-bottom: 6px;
128
- }
@@ -1,64 +0,0 @@
1
- @import '../vars';
2
- @import '../mixins';
3
-
4
- $extended-input-prefix: #{$prefix}-extended-input;
5
-
6
- .#{$extended-input-prefix} {
7
- display: flex;
8
- align-items: center;
9
-
10
- overflow: hidden;
11
-
12
- transition: $transition-primary;
13
- width: 100%;
14
-
15
- &--has-suffix {
16
- & > .wr-input {
17
- border-top-right-radius: 0;
18
- border-bottom-right-radius: 0;
19
- }
20
- }
21
-
22
- &--has-prefix {
23
- & > .wr-input {
24
- border-top-left-radius: 0;
25
- border-bottom-left-radius: 0;
26
- }
27
- }
28
-
29
- &-suffix,
30
- &-prefix {
31
- display: inline-flex;
32
- align-items: center;
33
- background: rgba($color-light, 0.5);
34
- border: 1px solid $color-light;
35
-
36
- padding-left: $input-padding-y;
37
- padding-right: $input-padding-y;
38
-
39
- height: 100%;
40
- max-width: 50%;
41
-
42
- user-select: none;
43
- pointer-events: none;
44
-
45
- &__text {
46
- color: $color-medium;
47
- overflow: hidden;
48
- text-overflow: ellipsis;
49
- white-space: nowrap;
50
- }
51
- }
52
-
53
- &-suffix {
54
- border-top-right-radius: $input-border-radius;
55
- border-bottom-right-radius: $input-border-radius;
56
- border-left: 0;
57
- }
58
-
59
- &-prefix {
60
- border-top-left-radius: $input-border-radius;
61
- border-bottom-left-radius: $input-border-radius;
62
- border-right: 0;
63
- }
64
- }
@@ -1,85 +0,0 @@
1
- @import '../vars';
2
- @import '../mixins';
3
-
4
- $form-prefix: #{$prefix}-form;
5
- $input-prefix: #{$prefix}-input;
6
- $password-input-prefix: #{$prefix}-password-input;
7
- $extended-input-prefix: #{$prefix}-extended-input;
8
-
9
- .#{$form-prefix} {
10
- &-item {
11
- @include column;
12
- margin-bottom: 1rem;
13
-
14
- & > * {
15
- width: 100%;
16
- }
17
-
18
- & > label {
19
- display: inline-flex;
20
- align-items: center;
21
- color: $color-medium;
22
- font-size: 0.875rem;
23
- font-weight: 400;
24
- line-height: 1;
25
- margin-bottom: 0.5rem;
26
- transition: $transition-base;
27
-
28
- & > nz-switch {
29
- margin-left: 0.5rem;
30
- }
31
-
32
- & > nz-radio-group {
33
- margin-left: 0.5rem;
34
-
35
- .ant-radio-button-wrapper {
36
- font-size: 0.625rem;
37
- height: 0.825rem !important;
38
- line-height: calc(1rem - 4px) !important;
39
-
40
- &:first-child {
41
- border-top-left-radius: 50rem;
42
- border-bottom-left-radius: 50rem;
43
- }
44
- &:last-child {
45
- border-top-right-radius: 50rem;
46
- border-bottom-right-radius: 50rem;
47
- }
48
- }
49
- }
50
- }
51
-
52
- &--has-error {
53
- & > label {
54
- color: $color-danger;
55
- }
56
- & .#{$input-prefix} {
57
- box-shadow: inset 0 0 0 1px $color-danger;
58
- }
59
- & .#{$extended-input-prefix} {
60
- &-suffix,
61
- &-prefix {
62
- border-color: $color-danger;
63
- background: rgba($color-danger, 0.25);
64
-
65
- &__text {
66
- color: $color-danger;
67
- }
68
- }
69
- }
70
-
71
- & > nz-select {
72
- .ant-select-selector {
73
- box-shadow: inset 0 0 0 1px $color-danger;
74
- }
75
- }
76
- }
77
- }
78
-
79
- &-error {
80
- color: $color-danger;
81
- font-size: 0.75rem;
82
- opacity: 0.75;
83
- margin-top: 0.25rem;
84
- }
85
- }
@@ -1,25 +0,0 @@
1
- @import '../vars';
2
-
3
- small {
4
- font-size: 0.75rem;
5
- color: inherit;
6
- opacity: 0.75;
7
- }
8
-
9
- .h1,.h2,.h3,.h4,.h5,.h6 {
10
- color: $heading-color;
11
- font-family: $headings-font-family;
12
- font-style: $headings-font-style;
13
- font-weight: $headings-font-weight;
14
- line-height: $headings-line-height;
15
- }
16
-
17
- @each $heading, $font-size in $heading-sizes {
18
- .h#{$heading} {
19
- font-size: $font-size;
20
- }
21
-
22
- h#{$heading} {
23
- @extend .h#{$heading};
24
- }
25
- }