@ttoss/ui 1.30.7 → 1.30.9

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/dist/esm/index.js CHANGED
@@ -211,23 +211,23 @@ var coreFonts = {
211
211
  monospace: '"Inconsolata", sans-serif'
212
212
  };
213
213
  var brandColors = {
214
- complimentary: "#f5f5f5",
215
- main: "#292c2a",
216
- darkNeutral: "#515389",
217
- accent: "#0000ff",
218
- lightNeutral: "#e3e3e3"
214
+ complimentary: "#f4f3f3",
215
+ main: "#292C2a",
216
+ darkNeutral: "#325C82",
217
+ accent: "#0469E3",
218
+ lightNeutral: "#F8F8F8"
219
219
  };
220
220
  var coreColors = {
221
221
  ...brandColors,
222
- gray100: "#f0f1f3",
223
- gray200: "#ced1d7",
224
- gray300: "#acb1ba",
225
- gray400: "#8b919e",
226
- gray500: "#6b7280",
227
- gray600: "#535863",
228
- gray700: "#3b3f46",
229
- gray800: "#23252a",
230
- gray900: "#0b0b0d",
222
+ gray100: "#f9f9f9",
223
+ gray200: "#dedede",
224
+ gray300: "#c4c4c4",
225
+ gray400: "#ababab",
226
+ gray500: "#929292",
227
+ gray600: "#7a7a7a",
228
+ gray700: "#626262",
229
+ gray800: "#4c4c4c",
230
+ gray900: "#323232",
231
231
  black: "#000000",
232
232
  red100: "#ffebeb",
233
233
  red200: "#fdbfbf",
@@ -236,7 +236,9 @@ var coreColors = {
236
236
  red500: "#ef4444",
237
237
  red600: "#e42828",
238
238
  red700: "#c62121",
239
- white: "#ffffff"
239
+ white: "#ffffff",
240
+ amber600: "#d97706",
241
+ teal600: "#0d9488"
240
242
  };
241
243
  var coreBorders = {
242
244
  none: "0px solid",
@@ -264,20 +266,30 @@ var BruttalTheme = {
264
266
  letterSpacings,
265
267
  space,
266
268
  colors: {
267
- background: coreColors.lightNeutral,
268
- text: coreColors.gray900,
269
+ background: coreColors.white,
270
+ text: coreColors.black,
269
271
  muted: coreColors.gray200,
270
- outline: coreColors.gray200,
272
+ onMuted: coreColors.gray500,
273
+ mutedOutline: coreColors.gray300,
274
+ danger: coreColors.red700,
275
+ onDanger: coreColors.white,
276
+ notice: coreColors.amber600,
277
+ positive: coreColors.teal600,
278
+ surface: coreColors.white,
279
+ contentHeader: coreColors.gray200,
280
+ onContentHeader: coreColors.black,
281
+ outline: coreColors.gray500,
271
282
  primary: coreColors.main,
272
283
  onPrimary: coreColors.white,
273
284
  secondary: coreColors.gray500,
274
- onSecondary: coreColors.white,
285
+ onSecondary: coreColors.complimentary,
275
286
  highlight: coreColors.darkNeutral,
276
- onHighlight: coreColors.white,
287
+ onHighlight: coreColors.complimentary,
277
288
  accent: coreColors.accent,
278
289
  onAccent: coreColors.white,
279
- neutral: coreColors.white,
280
- onNeutral: coreColors.gray900
290
+ neutral: coreColors.darkNeutral,
291
+ onNeutral: coreColors.lightNeutral,
292
+ underemphasize: coreColors.gray300
281
293
  },
282
294
  fonts: {
283
295
  h1: coreFonts.contrast,
@@ -404,8 +416,34 @@ var BruttalTheme = {
404
416
  }
405
417
  },
406
418
  forms: {
419
+ label: {
420
+ "&:has(+ div > input:invalid)": {
421
+ "span > iconify-icon": {
422
+ color: "danger"
423
+ }
424
+ }
425
+ },
407
426
  input: {
408
- fontFamily: "body"
427
+ fontFamily: "body",
428
+ color: "text",
429
+ paddingY: "md",
430
+ paddingX: "lg",
431
+ "::placeholder": {
432
+ color: "underemphasize"
433
+ },
434
+ ":focus-within": {
435
+ outlineColor: "neutral"
436
+ },
437
+ ":disabled": {
438
+ backgroundColor: "onMuted",
439
+ borderColor: "muted"
440
+ },
441
+ "&.error": {
442
+ borderColor: "danger"
443
+ },
444
+ "&.error+span>iconify-icon": {
445
+ color: "danger"
446
+ }
409
447
  }
410
448
  },
411
449
  text: {
@@ -418,6 +456,11 @@ var BruttalTheme = {
418
456
  fontSize: 4,
419
457
  lineSpace: "3.5"
420
458
  },
459
+ error: {
460
+ '&[role="alert"]': {
461
+ color: "danger"
462
+ }
463
+ },
421
464
  h1: {
422
465
  fontFamily: "heading",
423
466
  fontSize: "6xl",
package/dist/index.js CHANGED
@@ -249,23 +249,23 @@ var coreFonts = {
249
249
  monospace: '"Inconsolata", sans-serif'
250
250
  };
251
251
  var brandColors = {
252
- complimentary: "#f5f5f5",
253
- main: "#292c2a",
254
- darkNeutral: "#515389",
255
- accent: "#0000ff",
256
- lightNeutral: "#e3e3e3"
252
+ complimentary: "#f4f3f3",
253
+ main: "#292C2a",
254
+ darkNeutral: "#325C82",
255
+ accent: "#0469E3",
256
+ lightNeutral: "#F8F8F8"
257
257
  };
258
258
  var coreColors = {
259
259
  ...brandColors,
260
- gray100: "#f0f1f3",
261
- gray200: "#ced1d7",
262
- gray300: "#acb1ba",
263
- gray400: "#8b919e",
264
- gray500: "#6b7280",
265
- gray600: "#535863",
266
- gray700: "#3b3f46",
267
- gray800: "#23252a",
268
- gray900: "#0b0b0d",
260
+ gray100: "#f9f9f9",
261
+ gray200: "#dedede",
262
+ gray300: "#c4c4c4",
263
+ gray400: "#ababab",
264
+ gray500: "#929292",
265
+ gray600: "#7a7a7a",
266
+ gray700: "#626262",
267
+ gray800: "#4c4c4c",
268
+ gray900: "#323232",
269
269
  black: "#000000",
270
270
  red100: "#ffebeb",
271
271
  red200: "#fdbfbf",
@@ -274,7 +274,9 @@ var coreColors = {
274
274
  red500: "#ef4444",
275
275
  red600: "#e42828",
276
276
  red700: "#c62121",
277
- white: "#ffffff"
277
+ white: "#ffffff",
278
+ amber600: "#d97706",
279
+ teal600: "#0d9488"
278
280
  };
279
281
  var coreBorders = {
280
282
  none: "0px solid",
@@ -302,20 +304,30 @@ var BruttalTheme = {
302
304
  letterSpacings,
303
305
  space,
304
306
  colors: {
305
- background: coreColors.lightNeutral,
306
- text: coreColors.gray900,
307
+ background: coreColors.white,
308
+ text: coreColors.black,
307
309
  muted: coreColors.gray200,
308
- outline: coreColors.gray200,
310
+ onMuted: coreColors.gray500,
311
+ mutedOutline: coreColors.gray300,
312
+ danger: coreColors.red700,
313
+ onDanger: coreColors.white,
314
+ notice: coreColors.amber600,
315
+ positive: coreColors.teal600,
316
+ surface: coreColors.white,
317
+ contentHeader: coreColors.gray200,
318
+ onContentHeader: coreColors.black,
319
+ outline: coreColors.gray500,
309
320
  primary: coreColors.main,
310
321
  onPrimary: coreColors.white,
311
322
  secondary: coreColors.gray500,
312
- onSecondary: coreColors.white,
323
+ onSecondary: coreColors.complimentary,
313
324
  highlight: coreColors.darkNeutral,
314
- onHighlight: coreColors.white,
325
+ onHighlight: coreColors.complimentary,
315
326
  accent: coreColors.accent,
316
327
  onAccent: coreColors.white,
317
- neutral: coreColors.white,
318
- onNeutral: coreColors.gray900
328
+ neutral: coreColors.darkNeutral,
329
+ onNeutral: coreColors.lightNeutral,
330
+ underemphasize: coreColors.gray300
319
331
  },
320
332
  fonts: {
321
333
  h1: coreFonts.contrast,
@@ -442,8 +454,34 @@ var BruttalTheme = {
442
454
  }
443
455
  },
444
456
  forms: {
457
+ label: {
458
+ "&:has(+ div > input:invalid)": {
459
+ "span > iconify-icon": {
460
+ color: "danger"
461
+ }
462
+ }
463
+ },
445
464
  input: {
446
- fontFamily: "body"
465
+ fontFamily: "body",
466
+ color: "text",
467
+ paddingY: "md",
468
+ paddingX: "lg",
469
+ "::placeholder": {
470
+ color: "underemphasize"
471
+ },
472
+ ":focus-within": {
473
+ outlineColor: "neutral"
474
+ },
475
+ ":disabled": {
476
+ backgroundColor: "onMuted",
477
+ borderColor: "muted"
478
+ },
479
+ "&.error": {
480
+ borderColor: "danger"
481
+ },
482
+ "&.error+span>iconify-icon": {
483
+ color: "danger"
484
+ }
447
485
  }
448
486
  },
449
487
  text: {
@@ -456,6 +494,11 @@ var BruttalTheme = {
456
494
  fontSize: 4,
457
495
  lineSpace: "3.5"
458
496
  },
497
+ error: {
498
+ '&[role="alert"]': {
499
+ color: "danger"
500
+ }
501
+ },
459
502
  h1: {
460
503
  fontFamily: "heading",
461
504
  fontSize: "6xl",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ttoss/ui",
3
- "version": "1.30.7",
3
+ "version": "1.30.9",
4
4
  "description": "Primitive layout, typographic, and other components for styling applications.",
5
5
  "license": "UNLICENSED",
6
6
  "author": "ttoss",
@@ -32,7 +32,7 @@
32
32
  "@iconify-icon/react": "^1.0.5",
33
33
  "@ttoss/config": "^1.28.3",
34
34
  "@ttoss/test-utils": "^1.20.5",
35
- "@ttoss/theme": "^1.2.6",
35
+ "@ttoss/theme": "^1.2.8",
36
36
  "@types/jest": "^29.4.0",
37
37
  "jest": "^29.5.0",
38
38
  "tsup": "^6.6.3"
@@ -45,5 +45,5 @@
45
45
  "publishConfig": {
46
46
  "access": "public"
47
47
  },
48
- "gitHead": "56e8cfde36a962deaa5514453618280699824b4f"
48
+ "gitHead": "fb122458378a96e09d1da7fbad0bf12e72e8d04d"
49
49
  }