@muziehdesign/components 18.2.0-next.2053 → 18.2.0-next.2087
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/design/_form.scss +55 -110
- package/design/_mixins.scss +17 -0
- package/design/_utilities.scss +13 -0
- package/package.json +1 -1
- package/design/_typography.scss +0 -5
package/design/_form.scss
CHANGED
@@ -1,3 +1,45 @@
|
|
1
|
+
@use "mixins" as *;
|
2
|
+
|
3
|
+
|
4
|
+
.form-input, .form-textarea, .form-select {
|
5
|
+
@include field-control();
|
6
|
+
|
7
|
+
&:focus {
|
8
|
+
@include field-control-focused();
|
9
|
+
}
|
10
|
+
}
|
11
|
+
|
12
|
+
.input-group {
|
13
|
+
@apply flex gap-2 items-center;
|
14
|
+
@include field-control();
|
15
|
+
|
16
|
+
&:focus-within {
|
17
|
+
@include field-control-focused();
|
18
|
+
}
|
19
|
+
|
20
|
+
.form-input {
|
21
|
+
@apply grow;
|
22
|
+
}
|
23
|
+
|
24
|
+
.form-input, .form-input:focus, .form-select, .form-select:focus, .button, .button:focus {
|
25
|
+
border-color: transparent;
|
26
|
+
--tw-ring-color: transparent;
|
27
|
+
--tw-ring-offset-width: 0px;
|
28
|
+
}
|
29
|
+
|
30
|
+
& > *:first-child {
|
31
|
+
@apply pl-3;
|
32
|
+
}
|
33
|
+
|
34
|
+
& > *:last-child {
|
35
|
+
@apply pr-3;
|
36
|
+
}
|
37
|
+
}
|
38
|
+
|
39
|
+
.checkbox-label {
|
40
|
+
@apply ml-2 text-base;
|
41
|
+
}
|
42
|
+
|
1
43
|
.form {
|
2
44
|
@apply max-w-md;
|
3
45
|
|
@@ -16,7 +58,7 @@
|
|
16
58
|
}
|
17
59
|
|
18
60
|
.description {
|
19
|
-
@apply text-
|
61
|
+
@apply text-subtler text-sm;
|
20
62
|
}
|
21
63
|
|
22
64
|
.footer {
|
@@ -25,45 +67,36 @@
|
|
25
67
|
}
|
26
68
|
|
27
69
|
.field {
|
28
|
-
@apply block py-
|
70
|
+
@apply block py-3 text-sm;
|
29
71
|
|
30
72
|
.help-text {
|
31
|
-
@apply text-
|
73
|
+
@apply text-subtler block mt-1;
|
32
74
|
}
|
33
75
|
}
|
34
76
|
|
35
|
-
.
|
36
|
-
@apply
|
77
|
+
.option-list .field {
|
78
|
+
@apply py-1;
|
37
79
|
}
|
38
80
|
|
39
|
-
.field-
|
40
|
-
@apply
|
41
|
-
|
42
|
-
.field-label {
|
43
|
-
@apply text-current font-normal pl-2 text-base;
|
44
|
-
}
|
81
|
+
.field-label {
|
82
|
+
@apply text-subtle font-medium block mb-1;
|
45
83
|
}
|
46
84
|
|
47
|
-
.
|
48
|
-
|
85
|
+
.form-input,
|
86
|
+
.form-select,
|
87
|
+
.form-textarea {
|
88
|
+
@apply w-full;
|
49
89
|
}
|
50
90
|
|
51
91
|
.fieldset {
|
52
92
|
@apply mt-6;
|
53
93
|
|
54
94
|
legend {
|
55
|
-
@apply text-
|
56
|
-
}
|
57
|
-
}
|
58
|
-
|
59
|
-
.option-list {
|
60
|
-
@apply block py-1;
|
61
|
-
|
62
|
-
legend {
|
63
|
-
@apply text-gray-600 text-sm font-medium;
|
95
|
+
@apply text-subtle tracking-wide uppercase font-medium text-sm;
|
64
96
|
}
|
65
97
|
}
|
66
98
|
|
99
|
+
// code below needs to be validated again
|
67
100
|
.form-message {
|
68
101
|
@apply p-1 block;
|
69
102
|
|
@@ -89,91 +122,3 @@
|
|
89
122
|
@apply border-danger;
|
90
123
|
}
|
91
124
|
}
|
92
|
-
|
93
|
-
/*
|
94
|
-
.field-control-addon {
|
95
|
-
@apply px-3 inline-flex flex-col flex-shrink-0 items-center justify-center text-secondary;
|
96
|
-
|
97
|
-
&.field-control {
|
98
|
-
@apply w-full;
|
99
|
-
}
|
100
|
-
|
101
|
-
.button {
|
102
|
-
@apply py-1 h-full -ml-2.5 -mr-3;
|
103
|
-
}
|
104
|
-
}
|
105
|
-
|
106
|
-
.field-control-group {
|
107
|
-
@apply flex items-stretch h-full border border-gray-500 shadow;
|
108
|
-
|
109
|
-
.field-control {
|
110
|
-
@apply grow m-0 border-transparent outline-0;
|
111
|
-
}
|
112
|
-
|
113
|
-
/*
|
114
|
-
.field-control:focus {
|
115
|
-
@apply border border-primary;
|
116
|
-
}
|
117
|
-
|
118
|
-
&:focus-within {
|
119
|
-
@apply border-primary outline-2 outline outline-offset-2;
|
120
|
-
}
|
121
|
-
|
122
|
-
&.invalid {
|
123
|
-
@apply border-danger;
|
124
|
-
}
|
125
|
-
|
126
|
-
.ng-submitted .field-control.ng-invalid, .field-control.ng-touched.ng-invalid {
|
127
|
-
@apply border-0;
|
128
|
-
}
|
129
|
-
}*/
|
130
|
-
|
131
|
-
|
132
|
-
.field-control-addon {
|
133
|
-
@apply inline-flex flex-col flex-shrink-0 items-center justify-center text-secondary px-3;
|
134
|
-
|
135
|
-
&.field-control {
|
136
|
-
@apply w-full;
|
137
|
-
}
|
138
|
-
|
139
|
-
.button {
|
140
|
-
@apply py-1 h-full -mr-3;
|
141
|
-
}
|
142
|
-
}
|
143
|
-
|
144
|
-
.field-control-group {
|
145
|
-
@apply flex items-stretch h-full border border-gray-500 shadow;
|
146
|
-
|
147
|
-
.field-control {
|
148
|
-
box-shadow: none;
|
149
|
-
@apply grow m-0 border-0 outline-0;
|
150
|
-
}
|
151
|
-
|
152
|
-
&:focus-within {
|
153
|
-
@apply outline outline-1 outline-primary;
|
154
|
-
}
|
155
|
-
|
156
|
-
&.invalid:not(:focus-within) {
|
157
|
-
@apply border-danger;
|
158
|
-
}
|
159
|
-
|
160
|
-
> *:not(:first-child).field-control-addon {
|
161
|
-
@apply pl-0;
|
162
|
-
}
|
163
|
-
|
164
|
-
> *:not(:last-child).field-control-addon {
|
165
|
-
@apply pr-0;
|
166
|
-
}
|
167
|
-
}
|
168
|
-
|
169
|
-
.field-control-combo {
|
170
|
-
@apply flex items-stretch;
|
171
|
-
|
172
|
-
.field-control {
|
173
|
-
@apply grow border;
|
174
|
-
}
|
175
|
-
|
176
|
-
.button {
|
177
|
-
@apply -mx-2 mt-1;
|
178
|
-
}
|
179
|
-
}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
@mixin field-control() {
|
2
|
+
border-radius: var(--input-border-radius, 0px);
|
3
|
+
border: 1px solid var(--input-border-color, --color-neutral-500);
|
4
|
+
}
|
5
|
+
|
6
|
+
@mixin field-control-focused() {
|
7
|
+
outline: 2px solid transparent;
|
8
|
+
outline-offset: 2px;
|
9
|
+
--tw-ring-inset: var(--tw-empty, /*!*/ /*!*/);
|
10
|
+
--tw-ring-offset-width: 0px;
|
11
|
+
--tw-ring-offset-color: #fff;
|
12
|
+
--tw-ring-color: var(--color-primary);
|
13
|
+
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
|
14
|
+
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);
|
15
|
+
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
16
|
+
border-color: var(--color-primary);
|
17
|
+
}
|
package/package.json
CHANGED