ngx-strata 0.4.3 → 0.4.5
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/assets/styles/components/input-field.scss +24 -1
- package/assets/styles/components/item.scss +13 -2
- package/assets/styles/components/modal.scss +5 -3
- package/assets/styles/components/select.scss +1 -1
- package/dist/strata/strata.css +1 -1
- package/fesm2022/ngx-strata.mjs +32 -4
- package/fesm2022/ngx-strata.mjs.map +1 -1
- package/package.json +1 -1
- package/skills/ngx-strata/components/input-field.md +1 -0
- package/types/ngx-strata.d.ts +4 -1
|
@@ -2,6 +2,8 @@ st-input-field {
|
|
|
2
2
|
--st-input-field-bg-color: var(--st-color-bg-raised);
|
|
3
3
|
--st-input-field-bg-hover-color: var(--st-color-bg-raised);
|
|
4
4
|
--st-input-field-text-color: var(--st-color-text-primary);
|
|
5
|
+
--st-input-field-border-color: var(--st-border-muted);
|
|
6
|
+
--st-input-field-opacity-disabled: 0.55;
|
|
5
7
|
--st-input-field-height: var(--st-interactive-element-height-md);
|
|
6
8
|
--st-input-field-font-size: var(--st-font-md);
|
|
7
9
|
--st-input-field-padding-x: var(--st-size-xs);
|
|
@@ -44,7 +46,7 @@ st-input-field {
|
|
|
44
46
|
height: var(--st-input-field-height);
|
|
45
47
|
min-height: var(--st-input-field-height);
|
|
46
48
|
background-color: var(--st-input-field-bg-color);
|
|
47
|
-
border: 1px solid var(--st-border-
|
|
49
|
+
border: 1px solid var(--st-input-field-border-color);
|
|
48
50
|
border-radius: var(--st-input-field-border-radius);
|
|
49
51
|
overflow: hidden;
|
|
50
52
|
transition:
|
|
@@ -127,5 +129,26 @@ st-input-field {
|
|
|
127
129
|
font-variant-numeric: tabular-nums;
|
|
128
130
|
user-select: none;
|
|
129
131
|
}
|
|
132
|
+
|
|
133
|
+
&.st-disabled,
|
|
134
|
+
&[disabled],
|
|
135
|
+
&[data-disabled='true'],
|
|
136
|
+
&:has(input:disabled),
|
|
137
|
+
&:has(textarea:disabled),
|
|
138
|
+
&:has([aria-disabled='true']) {
|
|
139
|
+
cursor: not-allowed;
|
|
140
|
+
opacity: var(--st-input-field-opacity-disabled);
|
|
141
|
+
pointer-events: none;
|
|
142
|
+
|
|
143
|
+
.st-input-wrapper {
|
|
144
|
+
&:hover {
|
|
145
|
+
background-color: var(--st-input-field-bg-color);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
&:focus-within {
|
|
149
|
+
outline: none;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}
|
|
130
153
|
}
|
|
131
154
|
|
|
@@ -4,6 +4,7 @@ st-item {
|
|
|
4
4
|
--st-item-gap: var(--st-size-xs);
|
|
5
5
|
width: 100%;
|
|
6
6
|
display: flex;
|
|
7
|
+
position: relative;
|
|
7
8
|
padding-bottom: var(--st-size-xxs);
|
|
8
9
|
padding-top: var(--st-size-xxs);
|
|
9
10
|
min-height: 32px;
|
|
@@ -72,11 +73,21 @@ st-item .item-default {
|
|
|
72
73
|
}
|
|
73
74
|
|
|
74
75
|
st-item-list {
|
|
76
|
+
--st-item-list-divider-color: var(--st-border);
|
|
77
|
+
|
|
75
78
|
width: 100%;
|
|
79
|
+
display: block;
|
|
76
80
|
|
|
77
81
|
&.with-dividers {
|
|
78
|
-
st-item:not(:last-child) {
|
|
79
|
-
|
|
82
|
+
st-item:not(:last-child)::after {
|
|
83
|
+
content: '';
|
|
84
|
+
position: absolute;
|
|
85
|
+
left: 0;
|
|
86
|
+
right: 0;
|
|
87
|
+
bottom: 0;
|
|
88
|
+
height: 1px;
|
|
89
|
+
background-color: var(--st-item-list-divider-color);
|
|
90
|
+
pointer-events: none;
|
|
80
91
|
}
|
|
81
92
|
}
|
|
82
93
|
}
|
|
@@ -32,19 +32,21 @@ st-alert-content {
|
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
st-modal-header {
|
|
35
|
+
--st-modal-header-padding: var(--st-size-xs) var(--st-size-sm);
|
|
36
|
+
--st-modal-header-border-color: var(--st-border);
|
|
37
|
+
|
|
35
38
|
display: flex;
|
|
36
39
|
flex-direction: row;
|
|
37
40
|
justify-content: space-between;
|
|
38
41
|
align-items: center;
|
|
39
|
-
border-bottom: 1px solid var(--st-border);
|
|
40
|
-
padding: var(--st-
|
|
42
|
+
border-bottom: 1px solid var(--st-modal-header-border-color);
|
|
43
|
+
padding: var(--st-modal-header-padding);
|
|
41
44
|
border-top-left-radius: var(--st-modal-border-radius);
|
|
42
45
|
border-top-right-radius: var(--st-modal-border-radius);
|
|
43
46
|
|
|
44
47
|
st-button {
|
|
45
48
|
margin-left: auto;
|
|
46
49
|
}
|
|
47
|
-
|
|
48
50
|
}
|
|
49
51
|
|
|
50
52
|
st-modal-footer {
|