@lukasmurdock/remix-ui-styles 0.4.0 → 0.5.0

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@lukasmurdock/remix-ui-styles",
3
3
  "description": "Layered CSS tokens, primitives, and component styles for Remix Frame UI.",
4
- "version": "0.4.0",
4
+ "version": "0.5.0",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",
@@ -234,6 +234,39 @@
234
234
  .rf-error {
235
235
  color: var(--rf-danger-default);
236
236
  font-size: 0.875rem;
237
+ font-weight: 600;
238
+ margin: 0;
239
+ }
240
+
241
+ .rf-form-error-summary {
242
+ border: 1px solid var(--rf-danger-default);
243
+ border-left-width: 0.35rem;
244
+ border-radius: 0.5rem;
245
+ background: color-mix(in srgb, var(--rf-danger-default) 8%, var(--rf-surface-default));
246
+ padding: 0.75rem;
247
+ margin-bottom: 0.75rem;
248
+ }
249
+
250
+ .rf-form-error-summary-title {
251
+ margin: 0;
252
+ font-size: 1rem;
253
+ }
254
+
255
+ .rf-form-error-summary-list {
256
+ margin: 0.5rem 0 0;
257
+ padding-left: 1.25rem;
258
+ display: grid;
259
+ gap: 0.3rem;
260
+ }
261
+
262
+ .rf-form-error-summary-item {
263
+ margin: 0;
264
+ }
265
+
266
+ .rf-form-error-summary-link {
267
+ color: inherit;
268
+ text-decoration-thickness: 2px;
269
+ text-underline-offset: 2px;
237
270
  }
238
271
 
239
272
  .rf-form-layout {
@@ -268,10 +301,14 @@
268
301
  .rf-form-layout-actions {
269
302
  display: flex;
270
303
  gap: 0.5rem;
271
- justify-content: flex-end;
304
+ justify-content: flex-start;
272
305
  flex-wrap: wrap;
273
306
  }
274
307
 
308
+ .rf-form-layout-actions[data-align="end"] {
309
+ justify-content: flex-end;
310
+ }
311
+
275
312
  .rf-form-fieldset {
276
313
  margin: 0;
277
314
  border: 1px solid var(--rf-border-default);
@@ -301,6 +338,13 @@
301
338
  grid-template-columns: repeat(2, minmax(0, 1fr));
302
339
  }
303
340
 
341
+ @media (max-width: 768px) {
342
+ .rf-form-layout .rf-form-layout-fields,
343
+ .rf-form-fieldset .rf-form-fieldset-fields {
344
+ grid-template-columns: minmax(0, 1fr);
345
+ }
346
+ }
347
+
304
348
  .rf-form-message {
305
349
  margin: 0;
306
350
  font-size: 0.875rem;
package/src/patterns.css CHANGED
@@ -12,4 +12,11 @@
12
12
  color: var(--rf-text-default);
13
13
  background: var(--rf-surface-default);
14
14
  }
15
+
16
+ .rf-input-base[aria-invalid="true"],
17
+ .rf-field :is(select, input, textarea)[aria-invalid="true"] {
18
+ border-color: var(--rf-danger-default);
19
+ border-width: 2px;
20
+ padding-inline: calc(0.75rem - 1px);
21
+ }
15
22
  }