mis-crystal-design-system 18.1.10-test-2 → 18.1.11
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 +71 -0
- package/drawer/drawer.scss +20 -0
- package/input/mis-input.component.scss +195 -0
- package/modal/modal.scss +9 -0
- package/package.json +7 -7
- package/styles/fonts/icomoon.eot +0 -0
- package/styles/fonts/icomoon.svg +315 -0
- package/styles/fonts/icomoon.ttf +0 -0
- package/styles/fonts/icomoon.woff +0 -0
- package/styles/mis-borders-backgrounds.scss +764 -0
- package/styles/mis-color-constants.scss +353 -0
- package/styles/mis-flex.scss +321 -0
- package/styles/mis-fonts.scss +124 -0
- package/styles/mis-icons.scss +1054 -0
- package/styles/mis-mixins.scss +46 -0
- package/styles/mis-old-icon-styles.scss +498 -0
- package/styles/mis-spacing-sizing.scss +2590 -0
- package/styles/mis-typography.scss +462 -0
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
@import '../styles/mis-color-constants.scss';
|
|
2
|
+
|
|
3
|
+
.mis-btn {
|
|
4
|
+
background: none;
|
|
5
|
+
outline: none;
|
|
6
|
+
border: none;
|
|
7
|
+
cursor: pointer;
|
|
8
|
+
border-radius: 4px;
|
|
9
|
+
vertical-align: middle;
|
|
10
|
+
text-align: center;
|
|
11
|
+
box-sizing: border-box;
|
|
12
|
+
display: flex;
|
|
13
|
+
align-items: center;
|
|
14
|
+
text-decoration: none;
|
|
15
|
+
justify-content: center;
|
|
16
|
+
|
|
17
|
+
span,
|
|
18
|
+
img {
|
|
19
|
+
margin-right: 8px;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
padding: 10px 16px;
|
|
23
|
+
font-size: 16px;
|
|
24
|
+
line-height: 24px;
|
|
25
|
+
&.mis-btn-lg {
|
|
26
|
+
padding: 16px;
|
|
27
|
+
font-weight: bold;
|
|
28
|
+
}
|
|
29
|
+
&.mis-btn-sm {
|
|
30
|
+
padding: 6px 12px;
|
|
31
|
+
font-size: 14px;
|
|
32
|
+
line-height: 20px;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
background-color: transparent;
|
|
36
|
+
color: var(--brand-primary, $pmry_500);
|
|
37
|
+
&:hover {
|
|
38
|
+
background-color: var(--brand-primary-hover, $tr_hover);
|
|
39
|
+
}
|
|
40
|
+
&:focus {
|
|
41
|
+
background-color: var(--brand-primary-active, $tr_pressed);
|
|
42
|
+
}
|
|
43
|
+
&:disabled {
|
|
44
|
+
color: var(--text-tertiary, $text-disabled);
|
|
45
|
+
pointer-events: none;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&.mis-outline {
|
|
49
|
+
border: 1px solid var(--brand-primary, $pmry_500);
|
|
50
|
+
|
|
51
|
+
&:disabled {
|
|
52
|
+
color: var(--text-tertiary, $text-disabled);
|
|
53
|
+
border-color: var(--text-tertiary, $text-disabled);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
&.mis-primary {
|
|
58
|
+
background-color: var(--brand-primary, $pmry_500);
|
|
59
|
+
color: var(--bg-primary, $text_white);
|
|
60
|
+
&:hover {
|
|
61
|
+
background-color: var(--brand-primary-dark, $pmry_600);
|
|
62
|
+
}
|
|
63
|
+
&:focus {
|
|
64
|
+
background-color: var(--brand-primary-darker, $pmry_700);
|
|
65
|
+
}
|
|
66
|
+
&:disabled {
|
|
67
|
+
background-color: var(--border-primary, $grey_seperators);
|
|
68
|
+
color: var(--text-tertiary, $text-disabled);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
.mis-drawer {
|
|
2
|
+
display: block;
|
|
3
|
+
transition: all 300ms ease-out;
|
|
4
|
+
}
|
|
5
|
+
.mis-drawer-overlay {
|
|
6
|
+
background: var(--bg-overlay-light, rgba(0, 0, 0, 0.12));
|
|
7
|
+
}
|
|
8
|
+
mis-datepicker-container {
|
|
9
|
+
z-index: 2100;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
mis-loader {
|
|
13
|
+
z-index: 3000;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
@keyframes slideOut {
|
|
17
|
+
to {
|
|
18
|
+
transform: translateX(100%);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
@import "../styles/mis-color-constants.scss";
|
|
2
|
+
|
|
3
|
+
.input-container {
|
|
4
|
+
position: relative;
|
|
5
|
+
padding-bottom: 24px;
|
|
6
|
+
&.mis-disabled {
|
|
7
|
+
.input-wrapper {
|
|
8
|
+
pointer-events: none !important;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
// Only hide native placeholder when we're using a custom one
|
|
12
|
+
&.has-custom-placeholder .input-wrapper input::placeholder {
|
|
13
|
+
transition: all ease-in 100ms;
|
|
14
|
+
opacity: 0;
|
|
15
|
+
transform-origin: left center;
|
|
16
|
+
color: transparent;
|
|
17
|
+
}
|
|
18
|
+
.input-wrapper {
|
|
19
|
+
box-sizing: border-box;
|
|
20
|
+
display: flex;
|
|
21
|
+
align-items: center;
|
|
22
|
+
flex-direction: row;
|
|
23
|
+
flex-wrap: nowrap;
|
|
24
|
+
transition: all ease-in 60ms;
|
|
25
|
+
background-color: var(--bg-primary, $text_white);
|
|
26
|
+
padding: 3px 16px; // DONE CHANGE
|
|
27
|
+
gap: 16px;
|
|
28
|
+
.mis-input {
|
|
29
|
+
flex: 1 1 auto;
|
|
30
|
+
z-index: 0; // Ensures a new stacking context
|
|
31
|
+
position: relative;
|
|
32
|
+
display: flex;
|
|
33
|
+
align-items: center;
|
|
34
|
+
}
|
|
35
|
+
input {
|
|
36
|
+
flex: 1 1 auto;
|
|
37
|
+
border: none;
|
|
38
|
+
outline: none;
|
|
39
|
+
height: 100%;
|
|
40
|
+
padding: 0;
|
|
41
|
+
font-family: Lato;
|
|
42
|
+
font-style: normal;
|
|
43
|
+
font-weight: normal;
|
|
44
|
+
font-size: 16px;
|
|
45
|
+
height: 24px;
|
|
46
|
+
color: var(--text-primary, $text_black);
|
|
47
|
+
background-color: transparent;
|
|
48
|
+
width: 100%;
|
|
49
|
+
vertical-align: middle;
|
|
50
|
+
position: relative;
|
|
51
|
+
}
|
|
52
|
+
.mis-placeholder {
|
|
53
|
+
position: absolute;
|
|
54
|
+
font-family: Lato;
|
|
55
|
+
font-style: normal;
|
|
56
|
+
font-weight: normal;
|
|
57
|
+
font-size: 16px;
|
|
58
|
+
line-height: 24px;
|
|
59
|
+
color: var(--text-secondary, $text_muted);
|
|
60
|
+
transition: all ease-in 150ms;
|
|
61
|
+
pointer-events: none;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&:focus-within {
|
|
65
|
+
background-color: var(--bg-tertiary, $grey_bg);
|
|
66
|
+
}
|
|
67
|
+
&:focus-within {
|
|
68
|
+
border: 1px solid $pmry_500;
|
|
69
|
+
}
|
|
70
|
+
[mis-input-act],
|
|
71
|
+
[mis-input-icon] {
|
|
72
|
+
width: 18px;
|
|
73
|
+
height: 18px;
|
|
74
|
+
color: var(--text-secondary, $text_muted);
|
|
75
|
+
font-size: 24px;
|
|
76
|
+
line-height: 18px;
|
|
77
|
+
}
|
|
78
|
+
[mis-input-act] {
|
|
79
|
+
cursor: pointer;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
&.no-hint {
|
|
83
|
+
padding-bottom: 0px;
|
|
84
|
+
}
|
|
85
|
+
// Hide custom placeholder when input has value (using CSS :placeholder-shown)
|
|
86
|
+
// This works without JavaScript listeners - pure CSS solution
|
|
87
|
+
&.has-custom-placeholder {
|
|
88
|
+
input:not(:placeholder-shown) + .mis-placeholder {
|
|
89
|
+
opacity: 0;
|
|
90
|
+
pointer-events: none;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
// For inputs with FormControl, also use has-value class as fallback
|
|
95
|
+
&.has-value {
|
|
96
|
+
.mis-input .mis-placeholder {
|
|
97
|
+
color: transparent !important;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
&.rounded {
|
|
102
|
+
input {
|
|
103
|
+
box-sizing: initial;
|
|
104
|
+
}
|
|
105
|
+
&.sm {
|
|
106
|
+
input {
|
|
107
|
+
padding: 3px 16px;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
&.md {
|
|
111
|
+
input {
|
|
112
|
+
padding: 9px 16px;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
&.lg {
|
|
116
|
+
input {
|
|
117
|
+
padding: 15px 16px;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
.input-wrapper {
|
|
121
|
+
border-radius: 4px;
|
|
122
|
+
border: 1px solid var(--border-primary, $grey_seperators);
|
|
123
|
+
padding: 0;
|
|
124
|
+
// input:not(:disabled) {
|
|
125
|
+
// &:hover,
|
|
126
|
+
// &:focus {
|
|
127
|
+
// background-color: $grey_bg;
|
|
128
|
+
// }
|
|
129
|
+
// }
|
|
130
|
+
&:hover {
|
|
131
|
+
background-color: var(--bg-tertiary, $grey_bg);
|
|
132
|
+
}
|
|
133
|
+
&:focus-within {
|
|
134
|
+
border: 1px solid var(--brand-primary, $pmry_500);
|
|
135
|
+
}
|
|
136
|
+
.mis-placeholder {
|
|
137
|
+
margin-left: 16px;
|
|
138
|
+
transition-duration: 50ms;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
&.has-error {
|
|
142
|
+
.input-wrapper {
|
|
143
|
+
border: 1px solid var(--brand-error, $sem_error) !important;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
&.floating {
|
|
148
|
+
.input-wrapper {
|
|
149
|
+
padding-top: 24px;
|
|
150
|
+
padding-bottom: 7px; // DONE CHANGE
|
|
151
|
+
border-bottom: 1px solid var(--border-primary, $grey_seperators);
|
|
152
|
+
input:focus + .mis-placeholder {
|
|
153
|
+
color: var(--brand-primary, $pmry_500) !important;
|
|
154
|
+
}
|
|
155
|
+
input:not(:placeholder-shown) + .mis-placeholder,
|
|
156
|
+
input:focus + .mis-placeholder {
|
|
157
|
+
transform: translateY(calc(-100% + 6px)) !important;
|
|
158
|
+
font-size: 12px !important;
|
|
159
|
+
letter-spacing: 0.2px !important;
|
|
160
|
+
}
|
|
161
|
+
&:focus-within {
|
|
162
|
+
border: none;
|
|
163
|
+
border-bottom: 1px solid var(--brand-primary, $pmry_500);
|
|
164
|
+
input::placeholder {
|
|
165
|
+
color: var(--text-secondary, $text_muted);
|
|
166
|
+
opacity: 1;
|
|
167
|
+
font-size: 16px;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
&.has-error {
|
|
172
|
+
.input-wrapper {
|
|
173
|
+
border-bottom: 1px solid var(--brand-error, $sem_error) !important;
|
|
174
|
+
.mis-placeholder {
|
|
175
|
+
color: var(--brand-error, $sem_error) !important;
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
[mis-input-hint],
|
|
181
|
+
[mis-input-error] {
|
|
182
|
+
position: absolute;
|
|
183
|
+
left: 0;
|
|
184
|
+
right: 0px;
|
|
185
|
+
bottom: 0px;
|
|
186
|
+
line-height: 24px;
|
|
187
|
+
height: 24px;
|
|
188
|
+
font-size: 12px;
|
|
189
|
+
color: var(--text-secondary, $text_muted);
|
|
190
|
+
letter-spacing: 0.2px;
|
|
191
|
+
}
|
|
192
|
+
[mis-input-error] {
|
|
193
|
+
color: var(--brand-error, $sem_error);
|
|
194
|
+
}
|
|
195
|
+
}
|
package/modal/modal.scss
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mis-crystal-design-system",
|
|
3
|
-
"version": "18.1.
|
|
3
|
+
"version": "18.1.11",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": "*",
|
|
6
6
|
"@angular/core": "*",
|
|
@@ -34,12 +34,6 @@
|
|
|
34
34
|
"esm": "./esm2022/analytics/mis-crystal-design-system-analytics.mjs",
|
|
35
35
|
"default": "./fesm2022/mis-crystal-design-system-analytics.mjs"
|
|
36
36
|
},
|
|
37
|
-
"./button": {
|
|
38
|
-
"types": "./button/index.d.ts",
|
|
39
|
-
"esm2022": "./esm2022/button/mis-crystal-design-system-button.mjs",
|
|
40
|
-
"esm": "./esm2022/button/mis-crystal-design-system-button.mjs",
|
|
41
|
-
"default": "./fesm2022/mis-crystal-design-system-button.mjs"
|
|
42
|
-
},
|
|
43
37
|
"./async-search-dropdown": {
|
|
44
38
|
"types": "./async-search-dropdown/index.d.ts",
|
|
45
39
|
"esm2022": "./esm2022/async-search-dropdown/mis-crystal-design-system-async-search-dropdown.mjs",
|
|
@@ -52,6 +46,12 @@
|
|
|
52
46
|
"esm": "./esm2022/checkbox/mis-crystal-design-system-checkbox.mjs",
|
|
53
47
|
"default": "./fesm2022/mis-crystal-design-system-checkbox.mjs"
|
|
54
48
|
},
|
|
49
|
+
"./button": {
|
|
50
|
+
"types": "./button/index.d.ts",
|
|
51
|
+
"esm2022": "./esm2022/button/mis-crystal-design-system-button.mjs",
|
|
52
|
+
"esm": "./esm2022/button/mis-crystal-design-system-button.mjs",
|
|
53
|
+
"default": "./fesm2022/mis-crystal-design-system-button.mjs"
|
|
54
|
+
},
|
|
55
55
|
"./chip": {
|
|
56
56
|
"types": "./chip/index.d.ts",
|
|
57
57
|
"esm2022": "./esm2022/chip/mis-crystal-design-system-chip.mjs",
|
|
Binary file
|