ngwr 0.0.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.
Files changed (74) hide show
  1. package/button/button.component.ts +132 -0
  2. package/button/button.module.ts +11 -0
  3. package/button/index.ts +2 -0
  4. package/core/types/convert-input.ts +2 -0
  5. package/core/types/index.ts +3 -0
  6. package/core/types/indexable.ts +3 -0
  7. package/core/types/ng-class.ts +11 -0
  8. package/core/util/convert.ts +63 -0
  9. package/core/util/index.ts +1 -0
  10. package/divider/divider.component.ts +13 -0
  11. package/divider/divider.module.ts +10 -0
  12. package/divider/index.ts +2 -0
  13. package/extended-input/extended-input.component.html +13 -0
  14. package/extended-input/extended-input.component.ts +77 -0
  15. package/extended-input/extended-input.module.ts +17 -0
  16. package/extended-input/index.ts +2 -0
  17. package/form/form-error.component.ts +20 -0
  18. package/form/form-item.component.ts +60 -0
  19. package/form/form.module.ts +17 -0
  20. package/form/index.ts +3 -0
  21. package/icon/icon.component.ts +45 -0
  22. package/icon/icons.ts +229 -0
  23. package/icon/index.ts +3 -0
  24. package/icon/walrus-icons-registry.service.ts +20 -0
  25. package/icon/walrus-icons.module.ts +8 -0
  26. package/index.ts +1 -0
  27. package/input/index.ts +2 -0
  28. package/input/input.directive.ts +65 -0
  29. package/input/input.module.ts +16 -0
  30. package/ng-package.json +11 -0
  31. package/package.json +27 -0
  32. package/password-input/index.ts +2 -0
  33. package/password-input/password-input.component.html +10 -0
  34. package/password-input/password-input.component.ts +56 -0
  35. package/password-input/password-input.module.ts +28 -0
  36. package/public-api.ts +10 -0
  37. package/skeleton/index.ts +2 -0
  38. package/skeleton/skeleton.component.ts +38 -0
  39. package/skeleton/skeleton.module.ts +11 -0
  40. package/spinner/index.ts +2 -0
  41. package/spinner/spinner.component.ts +11 -0
  42. package/spinner/spinner.module.ts +10 -0
  43. package/styles/components/_index.scss +15 -0
  44. package/styles/components/alert.scss +28 -0
  45. package/styles/components/button.scss +115 -0
  46. package/styles/components/card.scss +41 -0
  47. package/styles/components/divider.scss +19 -0
  48. package/styles/components/dropdown.scss +128 -0
  49. package/styles/components/extended-input.scss +64 -0
  50. package/styles/components/form.scss +85 -0
  51. package/styles/components/heading.scss +25 -0
  52. package/styles/components/icon.scss +32 -0
  53. package/styles/components/input.scss +43 -0
  54. package/styles/components/password-input.scss +31 -0
  55. package/styles/components/skeleton.scss +58 -0
  56. package/styles/components/spinner.scss +44 -0
  57. package/styles/components/tag.scss +70 -0
  58. package/styles/components/tooltip.scss +60 -0
  59. package/styles/functions.scss +184 -0
  60. package/styles/grid.scss +177 -0
  61. package/styles/index.scss +165 -0
  62. package/styles/mixins/_index.scss +22 -0
  63. package/styles/mixins/alert.scss +7 -0
  64. package/styles/mixins/button.scss +56 -0
  65. package/styles/mixins/reset-component.scss +13 -0
  66. package/styles/mixins/tag.scss +68 -0
  67. package/styles/reset.scss +104 -0
  68. package/styles/root.scss +31 -0
  69. package/styles/vars.scss +1075 -0
  70. package/tag/index.ts +2 -0
  71. package/tag/tag.component.ts +92 -0
  72. package/tag/tag.module.ts +11 -0
  73. package/tsconfig.lib.json +15 -0
  74. package/tsconfig.lib.prod.json +10 -0
@@ -0,0 +1,7 @@
1
+ @import '../functions';
2
+
3
+ @mixin alert-colors-generate($color) {
4
+ color: mix(#000, $color);
5
+ box-shadow: inset 0 0 0 1px rgba($color, 0.25);
6
+ background-color: rgba($color, 0.125);
7
+ }
@@ -0,0 +1,56 @@
1
+ @import '../functions';
2
+
3
+ @mixin button-outline-variant($color) {
4
+ color: $color;
5
+ background-color: transparent;
6
+ box-shadow: inset 0 0 0 1.25px rgba($color, 0.3);
7
+
8
+ & > wr-spin {
9
+ color: $color;
10
+ }
11
+
12
+ &:hover {
13
+ color: color-contrast($color);
14
+ background-color: $color;
15
+ box-shadow: none;
16
+
17
+ & > wr-spin {
18
+ color: color-contrast($color);
19
+ }
20
+ }
21
+
22
+ .btn-check:checked + &,
23
+ .btn-check:active + &,
24
+ &:active,
25
+ &.active,
26
+ &.dropdown-toggle.show {
27
+ color: mix(color-contrast($color), darken($color, 20%), 70%);
28
+ background-color: darken($color, 20%);
29
+ box-shadow: none;
30
+ }
31
+ }
32
+
33
+ @mixin button-variant($color) {
34
+ color: color-contrast($color);
35
+ background-color: $color;
36
+ box-shadow: rgba($color, 0.2) 0 3px 5px -1px, rgba($color, 0.14) 0 6px 10px 0,rgba($color, 0.12) 0 1px 18px 0;
37
+
38
+ &:hover {
39
+ color: color-contrast($color);
40
+ background-color: saturate(lighten($color, 15%), 20%);
41
+ box-shadow: rgba($color, 0.2) 0 3px 5px -1px, rgba($color, 0.14) 0 6px 10px 0,rgba($color, 0.12) 0 1px 18px 0;
42
+ }
43
+
44
+ .btn-check:checked + &,
45
+ .btn-check:active + &,
46
+ &:active,
47
+ &.active,{
48
+ color: mix(color-contrast($color), darken($color, 20%), 70%);
49
+ background-color: darken($color, 20%);
50
+ box-shadow: none;
51
+ }
52
+
53
+ & > wr-spin {
54
+ color: color-contrast($color);
55
+ }
56
+ }
@@ -0,0 +1,13 @@
1
+ @import '../vars';
2
+
3
+ @mixin reset-component() {
4
+ box-sizing: border-box;
5
+ margin: 0;
6
+ padding: 0;
7
+ color: $text-color;
8
+ font-size: $font-size-base;
9
+ font-variant: $font-variant-base;
10
+ line-height: $line-height-base;
11
+ list-style: none;
12
+ font-feature-settings: $font-feature-settings-base;
13
+ }
@@ -0,0 +1,68 @@
1
+ @import '../functions';
2
+
3
+ @mixin tag-colors-generate($color) {
4
+ color: color-contrast($color);
5
+ background-color: $color;
6
+
7
+ &:hover {
8
+ color: color-contrast($color);
9
+ background-color: saturate(lighten($color, 15%), 20%);
10
+ }
11
+
12
+ &:active,
13
+ &.active,{
14
+ color: mix(color-contrast($color), darken($color, 20%), 70%);
15
+ background-color: darken($color, 20%);
16
+ }
17
+
18
+ & > wr-icon {
19
+ color: mix(color-contrast($color), $color);
20
+ }
21
+ }
22
+
23
+ @mixin tag-transparent-colors-generate($color) {
24
+ color: $color;
25
+ background-color: rgba($color, 0.125);
26
+ box-shadow: inset 0 0 0 1px rgba($color, 0.125);
27
+
28
+ &:hover {
29
+ color: color-contrast($color);
30
+ background-color: $color;
31
+
32
+ & > wr-icon {
33
+ color: rgba(color-contrast($color), 0.5);
34
+ }
35
+ }
36
+
37
+ &:active,
38
+ &.active,{
39
+ color: mix(color-contrast($color), darken($color, 20%), 70%);
40
+ background-color: darken($color, 20%);
41
+ }
42
+
43
+ & > wr-icon {
44
+ color: $color;
45
+ }
46
+ }
47
+
48
+ @mixin tag-outline-colors-generate($color) {
49
+ color: $color;
50
+ background-color: transparent;
51
+ box-shadow: inset 0 0 0 1px lighten($color, 30%);
52
+
53
+ &:hover {
54
+ color: lighten($color, 20%);
55
+ box-shadow: inset 0 0 0 1px lighten($color, 35%);
56
+ }
57
+
58
+ &:active,
59
+ &.active {
60
+ color: mix(color-contrast($color), darken($color, 20%), 70%);
61
+ background-color: darken($color, 20%);
62
+ box-shadow: none;
63
+ }
64
+
65
+ & > wr-icon {
66
+ color: lighten($color, 10%);
67
+ }
68
+ }
@@ -0,0 +1,104 @@
1
+ @import './vars';
2
+
3
+ *,
4
+ *::before,
5
+ *::after {
6
+ box-sizing: border-box;
7
+ margin: 0;
8
+ padding: 0;
9
+ border: 0;
10
+ font-size: 100%;
11
+ vertical-align: baseline;
12
+ }
13
+
14
+ :root {
15
+ font-size: 1rem;
16
+ scroll-behavior: smooth;
17
+ }
18
+
19
+ html,
20
+ body {
21
+ background-color: $body-background;
22
+ height: 100%;
23
+ width: 100%;
24
+ font-family: $font-family;
25
+ font-size: $font-size-base;
26
+ font-weight: $font-weight-base;
27
+ line-height: $line-height-base;
28
+ letter-spacing: $letter-spacing-base;
29
+ color: $color-dark;
30
+ text-align: left;
31
+ direction: ltr;
32
+ -webkit-text-size-adjust: 100%;
33
+ -webkit-tap-highlight-color: rgba(0,0,0,0);
34
+ -webkit-font-smoothing: antialiased;
35
+ -moz-osx-font-smoothing: grayscale;
36
+ -ms-text-size-adjust: 100%;
37
+ }
38
+
39
+ :focus {
40
+ outline: 0;
41
+ }
42
+
43
+ article, aside, details, figcaption, figure,
44
+ footer, header, hgroup, menu, nav, section {
45
+ display: block;
46
+ }
47
+
48
+ a {
49
+ text-decoration: none;
50
+ }
51
+
52
+ ol, ul {
53
+ list-style: none;
54
+ }
55
+
56
+ blockquote, q {
57
+ quotes: none;
58
+
59
+ &:before,
60
+ &:after {
61
+ content: '';
62
+ content: none;
63
+ }
64
+ }
65
+
66
+ table {
67
+ border-collapse: collapse;
68
+ border-spacing: 0;
69
+ }
70
+
71
+ input[type=search]::-webkit-search-cancel-button,
72
+ input[type=search]::-webkit-search-decoration,
73
+ input[type=search]::-webkit-search-results-button,
74
+ input[type=search]::-webkit-search-results-decoration {
75
+ -webkit-appearance: none;
76
+ -moz-appearance: none;
77
+ }
78
+
79
+ input[type=search] {
80
+ -webkit-appearance: none;
81
+ -moz-appearance: none;
82
+ -webkit-box-sizing: content-box;
83
+ -moz-box-sizing: content-box;
84
+ box-sizing: content-box;
85
+ }
86
+
87
+ textarea {
88
+ overflow: auto;
89
+ vertical-align: top;
90
+ resize: vertical;
91
+ }
92
+
93
+ audio:not([controls]) {
94
+ display: none;
95
+ height: 0;
96
+ }
97
+
98
+ [hidden] {
99
+ display: none;
100
+ }
101
+
102
+ img {
103
+ border: none;
104
+ }
@@ -0,0 +1,31 @@
1
+ @import 'vars';
2
+
3
+ :root {
4
+ @each $color, $value in $theme-colors {
5
+ --color-#{$color}: #{$value};
6
+ }
7
+
8
+ @each $color, $value in $theme-colors-rgb {
9
+ --color-#{$color}-rgb: #{$value};
10
+ }
11
+
12
+ --color-white: #{$color-white};
13
+ --color-black: #{$color-black};
14
+
15
+ --color-white-rgb: #{to-rgb($color-white)};
16
+ --color-black-rgb: #{to-rgb($color-black)};
17
+
18
+ --font-family-base: #{$font-family};
19
+ --font-family-code: #{$code-family};
20
+ --font-size-base: #{$font-size-base};
21
+ --font-weight-base: #{$font-size-base};
22
+
23
+ --transition-base: #{$transition-base};
24
+
25
+ --radius-base: 0.625rem;
26
+
27
+ --shadow-base: inset 0 0 0 1px rgba(var(--color-dark-rgb), 0.125);
28
+ //, 0px 2px 4px -2px rgba(var(--color-dark-rgb), 0.125
29
+ --shadow-base-hover: inset 0 0 0 1px rgba(var(--color-dark-rgb), 0.125), 0px 25px 50px -12px rgba(var(--color-dark-rgb), 0.125);
30
+
31
+ }