@oscarpalmer/oui 0.17.0 → 0.19.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.
Files changed (72) hide show
  1. package/dist/css/badge.css +13 -13
  2. package/dist/css/button.css +9 -9
  3. package/dist/css/color.css +99 -99
  4. package/dist/css/content.css +10 -12
  5. package/dist/css/flex.css +39 -39
  6. package/dist/css/form.css +47 -60
  7. package/dist/css/message.css +10 -6
  8. package/dist/css/reset.css +178 -57
  9. package/dist/css/table.css +4 -4
  10. package/dist/css/tooltip.css +26 -1
  11. package/dist/js/attributable.full.js +36 -0
  12. package/dist/js/attributable.js +30 -45
  13. package/dist/js/floatable.full.js +398 -0
  14. package/dist/js/floatable.js +254 -169
  15. package/dist/js/focus-trap/embedded.full.js +408 -0
  16. package/dist/js/focus-trap/embedded.js +131 -131
  17. package/dist/js/focus-trap/standalone.full.js +447 -0
  18. package/dist/js/focus-trap/standalone.js +4 -4
  19. package/dist/js/index.js +3 -4
  20. package/dist/js/oui.full.js +1573 -0
  21. package/dist/js/popover.full.js +760 -0
  22. package/dist/js/popover.js +84 -163
  23. package/dist/js/splitter.full.js +769 -0
  24. package/dist/js/splitter.js +264 -246
  25. package/dist/js/tooltip.full.js +613 -0
  26. package/dist/js/tooltip.js +160 -151
  27. package/package.json +35 -63
  28. package/src/css/a11y.scss +1 -1
  29. package/src/css/badge.scss +23 -19
  30. package/src/css/button.scss +9 -9
  31. package/src/css/color.scss +99 -99
  32. package/src/css/content.scss +6 -9
  33. package/src/css/flex.scss +21 -20
  34. package/src/css/form.scss +47 -62
  35. package/src/css/message.scss +11 -12
  36. package/src/css/mixins.scss +16 -10
  37. package/src/css/popover.scss +2 -2
  38. package/src/css/reset.scss +181 -55
  39. package/src/css/splitter.scss +15 -13
  40. package/src/css/table.scss +11 -11
  41. package/src/css/tooltip.scss +31 -2
  42. package/src/js/attributable.ts +3 -10
  43. package/src/js/floatable.ts +370 -141
  44. package/src/js/focus-trap/embedded.ts +141 -74
  45. package/src/js/focus-trap/standalone.ts +4 -4
  46. package/src/js/index.ts +1 -0
  47. package/src/js/popover.ts +52 -122
  48. package/src/js/splitter.ts +248 -131
  49. package/src/js/tooltip.ts +143 -68
  50. package/types/floatable.d.ts +17 -10
  51. package/types/focus-trap/embedded.d.ts +18 -5
  52. package/types/index.d.ts +1 -0
  53. package/types/popover.d.ts +2 -0
  54. package/types/splitter.d.ts +13 -1
  55. package/types/tooltip.d.ts +2 -1
  56. package/dist/css/value.css +0 -1
  57. package/dist/js/attributable.cjs +0 -51
  58. package/dist/js/floatable.cjs +0 -176
  59. package/dist/js/focus-trap/embedded.cjs +0 -150
  60. package/dist/js/focus-trap/standalone.cjs +0 -8
  61. package/dist/js/index.cjs +0 -6
  62. package/dist/js/popover.cjs +0 -166
  63. package/dist/js/splitter.cjs +0 -272
  64. package/dist/js/tooltip.cjs +0 -166
  65. package/types/attributable.d.cts +0 -5
  66. package/types/floatable.d.cts +0 -20
  67. package/types/focus-trap/embedded.d.cts +0 -15
  68. package/types/focus-trap/standalone.d.cts +0 -3
  69. package/types/index.d.cts +0 -14
  70. package/types/popover.d.cts +0 -14
  71. package/types/splitter.d.cts +0 -10
  72. package/types/tooltip.d.cts +0 -3
@@ -5,111 +5,111 @@
5
5
  :root {
6
6
  --oui-absolute: light-dark(white, black);
7
7
 
8
- --oui-blue-0: light-dark(oklch(0.99 0.01 260), oklch(0.2 0.08 250));
9
- --oui-blue-1: light-dark(oklch(0.98 0.02 259), oklch(0.25 0.09 251));
10
- --oui-blue-2: light-dark(oklch(0.95 0.03 258), oklch(0.32 0.1 252));
11
- --oui-blue-3: light-dark(oklch(0.90 0.04 257), oklch(0.40 0.09 253));
12
- --oui-blue-4: light-dark(oklch(0.80 0.06 256), oklch(0.5 0.08 254));
13
- --oui-blue-5: light-dark(oklch(0.70 0.08 255), oklch(0.6 0.07 255));
14
- --oui-blue-6: light-dark(oklch(0.60 0.1 254), oklch(0.7 0.06 256));
15
- --oui-blue-7: light-dark(oklch(0.50 0.12 253), oklch(0.8 0.05 257));
16
- --oui-blue-8: light-dark(oklch(0.42 0.11 252), oklch(0.85 0.04 258));
17
- --oui-blue-9: light-dark(oklch(0.35 0.1 251), oklch(0.9 0.03 259));
18
- --oui-blue-10: light-dark(oklch(0.3 0.09 250), oklch(0.95 0.02 260));
8
+ --oui-blue-0: light-dark(oklch(99% 0.01 260deg), oklch(20% 0.08 250deg));
9
+ --oui-blue-1: light-dark(oklch(98% 0.02 259deg), oklch(25% 0.09 251deg));
10
+ --oui-blue-2: light-dark(oklch(95% 0.03 258deg), oklch(32% 0.1 252deg));
11
+ --oui-blue-3: light-dark(oklch(90% 0.04 257deg), oklch(40% 0.09 253deg));
12
+ --oui-blue-4: light-dark(oklch(80% 0.06 256deg), oklch(50% 0.08 254deg));
13
+ --oui-blue-5: light-dark(oklch(70% 0.08 255deg), oklch(60% 0.07 255deg));
14
+ --oui-blue-6: light-dark(oklch(60% 0.1 254deg), oklch(70% 0.06 256deg));
15
+ --oui-blue-7: light-dark(oklch(50% 0.12 253deg), oklch(80% 0.05 257deg));
16
+ --oui-blue-8: light-dark(oklch(42% 0.11 252deg), oklch(85% 0.04 258deg));
17
+ --oui-blue-9: light-dark(oklch(35% 0.1 251deg), oklch(90% 0.03 259deg));
18
+ --oui-blue-10: light-dark(oklch(30% 0.09 250deg), oklch(95% 0.02 260deg));
19
19
 
20
- --oui-green-0: light-dark(oklch(0.99 0.01 150), oklch(0.2 0.08 140));
21
- --oui-green-1: light-dark(oklch(0.98 0.02 149), oklch(0.25 0.09 141));
22
- --oui-green-2: light-dark(oklch(0.95 0.03 148), oklch(0.32 0.1 142));
23
- --oui-green-3: light-dark(oklch(0.90 0.04 147), oklch(0.4 0.09 143));
24
- --oui-green-4: light-dark(oklch(0.80 0.06 146), oklch(0.5 0.08 144));
25
- --oui-green-5: light-dark(oklch(0.70 0.08 145), oklch(0.6 0.07 145));
26
- --oui-green-6: light-dark(oklch(0.60 0.1 144), oklch(0.7 0.06 146));
27
- --oui-green-7: light-dark(oklch(0.50 0.12 143), oklch(0.8 0.05 147));
28
- --oui-green-8: light-dark(oklch(0.42 0.11 142), oklch(0.85 0.04 148));
29
- --oui-green-9: light-dark(oklch(0.35 0.1 141), oklch(0.9 0.03 149));
30
- --oui-green-10: light-dark(oklch(0.3 0.09 140), oklch(0.95 0.02 150));
20
+ --oui-green-0: light-dark(oklch(99% 0.01 150deg), oklch(20% 0.08 140deg));
21
+ --oui-green-1: light-dark(oklch(98% 0.02 149deg), oklch(25% 0.09 141deg));
22
+ --oui-green-2: light-dark(oklch(95% 0.03 148deg), oklch(32% 0.1 142deg));
23
+ --oui-green-3: light-dark(oklch(90% 0.04 147deg), oklch(40% 0.09 143deg));
24
+ --oui-green-4: light-dark(oklch(80% 0.06 146deg), oklch(50% 0.08 144deg));
25
+ --oui-green-5: light-dark(oklch(70% 0.08 145deg), oklch(60% 0.07 145deg));
26
+ --oui-green-6: light-dark(oklch(60% 0.1 144deg), oklch(70% 0.06 146deg));
27
+ --oui-green-7: light-dark(oklch(50% 0.12 143deg), oklch(80% 0.05 147deg));
28
+ --oui-green-8: light-dark(oklch(42% 0.11 142deg), oklch(85% 0.04 148deg));
29
+ --oui-green-9: light-dark(oklch(35% 0.1 141deg), oklch(90% 0.03 149deg));
30
+ --oui-green-10: light-dark(oklch(30% 0.09 140deg), oklch(95% 0.02 150deg));
31
31
 
32
- --oui-orange-0: light-dark(oklch(0.99 0.02 60), oklch(0.2 0.08 50));
33
- --oui-orange-1: light-dark(oklch(0.985 0.035 59), oklch(0.25 0.09 51));
34
- --oui-orange-2: light-dark(oklch(0.97 0.05 58), oklch(0.32 0.1 52));
35
- --oui-orange-3: light-dark(oklch(0.93 0.07 57), oklch(0.4 0.09 53));
36
- --oui-orange-4: light-dark(oklch(0.87 0.1 56), oklch(0.5 0.08 54));
37
- --oui-orange-5: light-dark(oklch(0.76 0.11 55), oklch(0.6 0.07 55));
38
- --oui-orange-6: light-dark(oklch(0.65 0.12 54), oklch(0.7 0.06 56));
39
- --oui-orange-7: light-dark(oklch(0.55 0.14 53), oklch(0.8 0.05 57));
40
- --oui-orange-8: light-dark(oklch(0.45 0.12 52), oklch(0.85 0.04 58));
41
- --oui-orange-9: light-dark(oklch(0.375 0.11 51), oklch(0.9 0.03 59));
42
- --oui-orange-10: light-dark(oklch(0.3 0.09 50), oklch(0.95 0.02 60));
32
+ --oui-orange-0: light-dark(oklch(99% 0.02 60deg), oklch(20% 0.08 50deg));
33
+ --oui-orange-1: light-dark(oklch(98.5% 0.035 59deg), oklch(25% 0.09 51deg));
34
+ --oui-orange-2: light-dark(oklch(97% 0.05 58deg), oklch(32% 0.1 52deg));
35
+ --oui-orange-3: light-dark(oklch(93% 0.07 57deg), oklch(40% 0.09 53deg));
36
+ --oui-orange-4: light-dark(oklch(87% 0.1 56deg), oklch(50% 0.08 54deg));
37
+ --oui-orange-5: light-dark(oklch(76% 0.11 55deg), oklch(60% 0.07 55deg));
38
+ --oui-orange-6: light-dark(oklch(65% 0.12 54deg), oklch(70% 0.06 56deg));
39
+ --oui-orange-7: light-dark(oklch(55% 0.14 53deg), oklch(80% 0.05 57deg));
40
+ --oui-orange-8: light-dark(oklch(45% 0.12 52deg), oklch(85% 0.04 58deg));
41
+ --oui-orange-9: light-dark(oklch(37.5% 0.11 51deg), oklch(90% 0.03 59deg));
42
+ --oui-orange-10: light-dark(oklch(30% 0.09 50deg), oklch(95% 0.02 60deg));
43
43
 
44
- --oui-purple-0: light-dark(oklch(0.99 0.02 300), oklch(0.2 0.08 290));
45
- --oui-purple-1: light-dark(oklch(0.98 0.035 299), oklch(0.25 0.09 291));
46
- --oui-purple-2: light-dark(oklch(0.95 0.05 298), oklch(0.32 0.1 292));
47
- --oui-purple-3: light-dark(oklch(0.90 0.07 297), oklch(0.4 0.09 293));
48
- --oui-purple-4: light-dark(oklch(0.80 0.1 296), oklch(0.5 0.08 294));
49
- --oui-purple-5: light-dark(oklch(0.70 0.11 295), oklch(0.6 0.07 295));
50
- --oui-purple-6: light-dark(oklch(0.60 0.12 294), oklch(0.7 0.06 296));
51
- --oui-purple-7: light-dark(oklch(0.50 0.14 293), oklch(0.8 0.05 297));
52
- --oui-purple-8: light-dark(oklch(0.42 0.12 292), oklch(0.85 0.04 298));
53
- --oui-purple-9: light-dark(oklch(0.35 0.11 291), oklch(0.9 0.03 299));
54
- --oui-purple-10: light-dark(oklch(0.3 0.09 290), oklch(0.95 0.02 300));
44
+ --oui-purple-0: light-dark(oklch(99% 0.02 300deg), oklch(20% 0.08 290deg));
45
+ --oui-purple-1: light-dark(oklch(98% 0.035 299deg), oklch(25% 0.09 291deg));
46
+ --oui-purple-2: light-dark(oklch(95% 0.05 298deg), oklch(32% 0.1 292deg));
47
+ --oui-purple-3: light-dark(oklch(90% 0.07 297deg), oklch(40% 0.09 293deg));
48
+ --oui-purple-4: light-dark(oklch(80% 0.1 296deg), oklch(50% 0.08 294deg));
49
+ --oui-purple-5: light-dark(oklch(70% 0.11 295deg), oklch(60% 0.07 295deg));
50
+ --oui-purple-6: light-dark(oklch(60% 0.12 294deg), oklch(70% 0.06 296deg));
51
+ --oui-purple-7: light-dark(oklch(50% 0.14 293deg), oklch(80% 0.05 297deg));
52
+ --oui-purple-8: light-dark(oklch(42% 0.12 292deg), oklch(85% 0.04 298deg));
53
+ --oui-purple-9: light-dark(oklch(35% 0.11 291deg), oklch(90% 0.03 299deg));
54
+ --oui-purple-10: light-dark(oklch(30% 0.09 290deg), oklch(95% 0.02 300deg));
55
55
 
56
- --oui-red-0: light-dark(oklch(0.99 0.024 25), oklch(0.2 0.08 25));
57
- --oui-red-1: light-dark(oklch(0.985 0.032 24), oklch(0.25 0.09 24));
58
- --oui-red-2: light-dark(oklch(0.97 0.05 23), oklch(0.32 0.1 23));
59
- --oui-red-3: light-dark(oklch(0.93 0.07 22), oklch(0.4 0.09 22));
60
- --oui-red-4: light-dark(oklch(0.87 0.1 21), oklch(0.5 0.08 21));
61
- --oui-red-5: light-dark(oklch(0.76 0.11 20), oklch(0.6 0.07 20));
62
- --oui-red-6: light-dark(oklch(0.65 0.12 19), oklch(0.7 0.06 19));
63
- --oui-red-7: light-dark(oklch(0.55 0.14 18), oklch(0.8 0.05 18));
64
- --oui-red-8: light-dark(oklch(0.45 0.12 17), oklch(0.85 0.04 17));
65
- --oui-red-9: light-dark(oklch(0.375 0.11 16), oklch(0.9 0.03 16));
66
- --oui-red-10: light-dark(oklch(0.3 0.09 15), oklch(0.95 0.02 15));
56
+ --oui-red-0: light-dark(oklch(99% 0.024 25deg), oklch(20% 0.08 25deg));
57
+ --oui-red-1: light-dark(oklch(98.5% 0.032 24deg), oklch(25% 0.09 24deg));
58
+ --oui-red-2: light-dark(oklch(97% 0.05 23deg), oklch(32% 0.1 23deg));
59
+ --oui-red-3: light-dark(oklch(93% 0.07 22deg), oklch(40% 0.09 22deg));
60
+ --oui-red-4: light-dark(oklch(87% 0.1 21deg), oklch(50% 0.08 21deg));
61
+ --oui-red-5: light-dark(oklch(76% 0.11 20deg), oklch(60% 0.07 20deg));
62
+ --oui-red-6: light-dark(oklch(65% 0.12 19deg), oklch(70% 0.06 19deg));
63
+ --oui-red-7: light-dark(oklch(55% 0.14 18deg), oklch(80% 0.05 18deg));
64
+ --oui-red-8: light-dark(oklch(45% 0.12 17deg), oklch(85% 0.04 17deg));
65
+ --oui-red-9: light-dark(oklch(37.5% 0.11 16deg), oklch(90% 0.03 16deg));
66
+ --oui-red-10: light-dark(oklch(30% 0.09 15deg), oklch(95% 0.02 15deg));
67
67
 
68
- --oui-yellow-0: light-dark(oklch(0.99 0.02 100), oklch(0.2 0.08 90));
69
- --oui-yellow-1: light-dark(oklch(0.985 0.035 99), oklch(0.25 0.09 91));
70
- --oui-yellow-2: light-dark(oklch(0.97 0.05 98), oklch(0.33 0.1 92));
71
- --oui-yellow-3: light-dark(oklch(0.93 0.07 97), oklch(0.4 0.09 93));
72
- --oui-yellow-4: light-dark(oklch(0.87 0.1 96), oklch(0.5 0.08 94));
73
- --oui-yellow-5: light-dark(oklch(.78 0.11 95), oklch(0.6 0.07 95));
74
- --oui-yellow-6: light-dark(oklch(0.65 0.12 94), oklch(0.7 0.06 96));
75
- --oui-yellow-7: light-dark(oklch(0.55 0.14 93), oklch(0.8 0.05 97));
76
- --oui-yellow-8: light-dark(oklch(0.45 0.12 92), oklch(0.85 0.04 98));
77
- --oui-yellow-9: light-dark(oklch(0.375 0.11 91), oklch(0.9 0.03 99));
78
- --oui-yellow-10: light-dark(oklch(0.3 0.09 90), oklch(0.95 0.02 100));
68
+ --oui-yellow-0: light-dark(oklch(99% 0.02 100deg), oklch(20% 0.08 90deg));
69
+ --oui-yellow-1: light-dark(oklch(98.5% 0.035 99deg), oklch(25% 0.09 91deg));
70
+ --oui-yellow-2: light-dark(oklch(97% 0.05 98deg), oklch(32% 0.1 92deg));
71
+ --oui-yellow-3: light-dark(oklch(93% 0.07 97deg), oklch(40% 0.09 93deg));
72
+ --oui-yellow-4: light-dark(oklch(87% 0.1 96deg), oklch(50% 0.08 94deg));
73
+ --oui-yellow-5: light-dark(oklch(78% 0.11 95deg), oklch(60% 0.07 95deg));
74
+ --oui-yellow-6: light-dark(oklch(65% 0.12 94deg), oklch(70% 0.06 96deg));
75
+ --oui-yellow-7: light-dark(oklch(55% 0.14 93deg), oklch(80% 0.05 97deg));
76
+ --oui-yellow-8: light-dark(oklch(45% 0.12 92deg), oklch(85% 0.04 98deg));
77
+ --oui-yellow-9: light-dark(oklch(37.5% 0.11 91deg), oklch(90% 0.03 99deg));
78
+ --oui-yellow-10: light-dark(oklch(30% 0.09 90deg), oklch(95% 0.02 100deg));
79
79
 
80
- --oui-gray-0: light-dark(oklch(0.98 0 0), oklch(0.22 0 0));
81
- --oui-gray-1: light-dark(oklch(0.98 0 0), oklch(0.26 0 0));
82
- --oui-gray-2: light-dark(oklch(0.95 0 0), oklch(0.32 0 0));
83
- --oui-gray-3: light-dark(oklch(0.90 0 0), oklch(0.4 0 0));
84
- --oui-gray-4: light-dark(oklch(0.80 0 0), oklch(0.5 0 0));
85
- --oui-gray-5: light-dark(oklch(0.70 0 0), oklch(0.6 0 0));
86
- --oui-gray-6: light-dark(oklch(0.60 0 0), oklch(0.7 0 0));
87
- --oui-gray-7: light-dark(oklch(0.50 0 0), oklch(0.8 0 0));
88
- --oui-gray-8: light-dark(oklch(0.42 0 0), oklch(0.85 0 0));
89
- --oui-gray-9: light-dark(oklch(0.35 0 0), oklch(0.9 0 0));
90
- --oui-gray-10: light-dark(oklch(0.3 0 0), oklch(0.95 0 0));
80
+ --oui-gray-0: light-dark(oklch(98% 0 0deg), oklch(22% 0 0deg));
81
+ --oui-gray-1: light-dark(oklch(98% 0 0deg), oklch(26% 0 0deg));
82
+ --oui-gray-2: light-dark(oklch(95% 0 0deg), oklch(32% 0 0deg));
83
+ --oui-gray-3: light-dark(oklch(90% 0 0deg), oklch(40% 0 0deg));
84
+ --oui-gray-4: light-dark(oklch(80% 0 0deg), oklch(50% 0 0deg));
85
+ --oui-gray-5: light-dark(oklch(70% 0 0deg), oklch(60% 0 0deg));
86
+ --oui-gray-6: light-dark(oklch(60% 0 0deg), oklch(70% 0 0deg));
87
+ --oui-gray-7: light-dark(oklch(50% 0 0deg), oklch(80% 0 0deg));
88
+ --oui-gray-8: light-dark(oklch(42% 0 0deg), oklch(85% 0 0deg));
89
+ --oui-gray-9: light-dark(oklch(35% 0 0deg), oklch(90% 0 0deg));
90
+ --oui-gray-10: light-dark(oklch(30% 0 0deg), oklch(95% 0 0deg));
91
91
 
92
- --oui-slate-0: light-dark(oklch(0.99 0.0025 255), oklch(0.22 0.005 255));
93
- --oui-slate-1: light-dark(oklch(0.98 0.005 255), oklch(0.26 0.0075 255));
94
- --oui-slate-2: light-dark(oklch(0.95 0.0075 255), oklch(0.32 0.01 255));
95
- --oui-slate-3: light-dark(oklch(0.90 0.01 255), oklch(0.4 0.0125 255));
96
- --oui-slate-4: light-dark(oklch(0.80 0.015 255), oklch(0.5 0.015 255));
97
- --oui-slate-5: light-dark(oklch(0.70 0.02 255), oklch(0.6 0.02 255));
98
- --oui-slate-6: light-dark(oklch(0.60 0.015 255), oklch(0.7 0.015 255));
99
- --oui-slate-7: light-dark(oklch(0.50 0.0125 255), oklch(0.8 0.0125 255));
100
- --oui-slate-8: light-dark(oklch(0.42 0.01 255), oklch(0.85 0.01 255));
101
- --oui-slate-9: light-dark(oklch(0.35 0.0075 255), oklch(0.9 0.0075 255));
102
- --oui-slate-10: light-dark(oklch(0.3 0.005 255), oklch(0.95 0.005 255));
92
+ --oui-slate-0: light-dark(oklch(99% 0.0025 255deg), oklch(22% 0.005 255deg));
93
+ --oui-slate-1: light-dark(oklch(98% 0.005 255deg), oklch(26% 0.0075 255deg));
94
+ --oui-slate-2: light-dark(oklch(95% 0.0075 255deg), oklch(32% 0.01 255deg));
95
+ --oui-slate-3: light-dark(oklch(90% 0.01 255deg), oklch(40% 0.0125 255deg));
96
+ --oui-slate-4: light-dark(oklch(80% 0.015 255deg), oklch(50% 0.015 255deg));
97
+ --oui-slate-5: light-dark(oklch(70% 0.02 255deg), oklch(60% 0.02 255deg));
98
+ --oui-slate-6: light-dark(oklch(60% 0.015 255deg), oklch(70% 0.015 255deg));
99
+ --oui-slate-7: light-dark(oklch(50% 0.0125 255deg), oklch(80% 0.0125 255deg));
100
+ --oui-slate-8: light-dark(oklch(42% 0.01 255deg), oklch(85% 0.01 255deg));
101
+ --oui-slate-9: light-dark(oklch(35% 0.0075 255deg), oklch(90% 0.0075 255deg));
102
+ --oui-slate-10: light-dark(oklch(30% 0.005 255deg), oklch(95% 0.005 255deg));
103
103
 
104
- --oui-stone-0: light-dark(oklch(0.99 0.0033 95), oklch(0.22 0.005 95));
105
- --oui-stone-1: light-dark(oklch(0.98 0.0067 95), oklch(0.26 0.0075 95));
106
- --oui-stone-2: light-dark(oklch(0.95 0.01 95), oklch(0.32 0.01 95));
107
- --oui-stone-3: light-dark(oklch(0.90 0.0125 95), oklch(0.4 0.0125 95));
108
- --oui-stone-4: light-dark(oklch(0.80 0.015 95), oklch(0.5 0.015 95));
109
- --oui-stone-5: light-dark(oklch(0.70 0.02 95), oklch(0.6 0.02 95));
110
- --oui-stone-6: light-dark(oklch(0.60 0.015 95), oklch(0.7 0.015 95));
111
- --oui-stone-7: light-dark(oklch(0.50 0.0125 95), oklch(0.8 0.0125 95));
112
- --oui-stone-8: light-dark(oklch(0.42 0.01 95), oklch(0.85 0.01 95));
113
- --oui-stone-9: light-dark(oklch(0.35 0.0075 95), oklch(0.9 0.0075 95));
114
- --oui-stone-10: light-dark(oklch(0.3 0.005 95), oklch(0.95 0.005 95));
104
+ --oui-stone-0: light-dark(oklch(99% 0.0033 95deg), oklch(22% 0.005 95deg));
105
+ --oui-stone-1: light-dark(oklch(98% 0.0067 95deg), oklch(26% 0.0075 95deg));
106
+ --oui-stone-2: light-dark(oklch(95% 0.01 95deg), oklch(32% 0.01 95deg));
107
+ --oui-stone-3: light-dark(oklch(90% 0.0125 95deg), oklch(40% 0.0125 95deg));
108
+ --oui-stone-4: light-dark(oklch(80% 0.015 95deg), oklch(50% 0.015 95deg));
109
+ --oui-stone-5: light-dark(oklch(70% 0.02 95deg), oklch(60% 0.02 95deg));
110
+ --oui-stone-6: light-dark(oklch(60% 0.015 95deg), oklch(70% 0.015 95deg));
111
+ --oui-stone-7: light-dark(oklch(50% 0.0125 95deg), oklch(80% 0.0125 95deg));
112
+ --oui-stone-8: light-dark(oklch(42% 0.01 95deg), oklch(85% 0.01 95deg));
113
+ --oui-stone-9: light-dark(oklch(35% 0.0075 95deg), oklch(90% 0.0075 95deg));
114
+ --oui-stone-10: light-dark(oklch(30% 0.005 95deg), oklch(95% 0.005 95deg));
115
115
  }
@@ -3,7 +3,7 @@
3
3
  @use './mixins' as mixins;
4
4
 
5
5
  @mixin thumb($background, $shadow) {
6
- @include mixins.shadow(
6
+ @include mixins.shadow-small(
7
7
  color-mix(in oklab, $shadow, transparent 33%),
8
8
  color-mix(in oklab, white, transparent 82.5%)
9
9
  );
@@ -24,7 +24,6 @@
24
24
  background-image: none;
25
25
  border: 1px solid var(--oui-gray-3);
26
26
  border-radius: 0.375em;
27
- box-shadow: inset 0 1px 2px 0 var(--oui-gray-3);
28
27
  }
29
28
 
30
29
  .oui-card {
@@ -39,14 +38,12 @@
39
38
  align-items: center;
40
39
  list-style: none;
41
40
  outline: 4px solid
42
- color-mix(
43
- in oklab,
44
- var(--oui-blue-6),
45
- transparent var(--oui-outline-percentage, 100%)
46
- );
41
+ color-mix(in oklab, var(--oui-blue-6), transparent var(--oui-outline-percentage, 100%));
47
42
  outline-offset: 0.25em;
48
43
  border-radius: 0.125em;
49
- transition: 0.125s ease-in-out, margin 0s;
44
+ transition:
45
+ 0.125s ease-in-out,
46
+ margin 0s;
50
47
  cursor: pointer;
51
48
 
52
49
  &::before {
@@ -54,7 +51,7 @@
54
51
  width: 1em;
55
52
  height: 1em;
56
53
  margin: 0 0.5em 0 0;
57
- background-color: currentColor;
54
+ background-color: currentcolor;
58
55
  mask: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='4'%3E%3Cpath d='M4 0h6L7 4'/%3E%3C/svg%3E");
59
56
  mask-size: contain;
60
57
  mask-position: center;
package/src/css/flex.scss CHANGED
@@ -15,19 +15,19 @@
15
15
  }
16
16
 
17
17
  .flow {
18
- :where(&-large) {
18
+ :where(&-large, &--large) {
19
19
  gap: var(--flow-gap-large, calc(2 * var(--flow-gap, 1rem)));
20
20
  }
21
21
 
22
- :where(&-nowrap) {
22
+ :where(&-nowrap, &--nowrap) {
23
23
  flex-wrap: nowrap;
24
24
  }
25
25
 
26
- :where(&-small) {
26
+ :where(&-small, &--small) {
27
27
  gap: var(--flow-gap-small, calc(0.5 * var(--flow-gap, 1rem)));
28
28
  }
29
29
 
30
- :where(&-text) {
30
+ :where(&-text, &--text) {
31
31
  gap: var(--flow-gap-text, 1em);
32
32
  }
33
33
  }
@@ -38,21 +38,22 @@
38
38
  }
39
39
 
40
40
  .stack {
41
- :where(&-large) {
41
+ :where(&-large, &--large) {
42
42
  gap: var(--stack-gap-large, calc(2 * var(--stack-gap, 1rem)));
43
43
  }
44
44
 
45
- :where(&-small) {
45
+ :where(&-small, &--small) {
46
46
  gap: var(--stack-gap-small, calc(0.5 * var(--stack-gap, 1rem)));
47
47
  }
48
48
 
49
- :where(&-text) {
49
+ :where(&-text, &--text) {
50
50
  gap: var(--stack-gap-text, 1em);
51
51
  }
52
52
  }
53
53
 
54
54
  .flex {
55
- &-reverse {
55
+ &-reverse,
56
+ &--reverse {
56
57
  :where(&[class^='flow' i], &[class*=' flow' i]) {
57
58
  flex-direction: row-reverse;
58
59
  }
@@ -63,20 +64,20 @@
63
64
  }
64
65
  }
65
66
 
66
- $alignmentOrigins: (
67
+ $alignment-origins: (
67
68
  c: 'content',
68
69
  i: 'items',
69
70
  s: 'self',
70
71
  );
71
72
 
72
- $alignmentValues: (
73
+ $alignment-values: (
73
74
  c: 'center',
74
75
  fe: 'flex-end',
75
76
  fs: 'flex-start',
76
77
  s: 'stretch',
77
78
  );
78
79
 
79
- $justificationValues: (
80
+ $justification-values: (
80
81
  sa: 'space-around',
81
82
  sb: 'space-between',
82
83
  se: 'space-evenly',
@@ -87,20 +88,20 @@ $types: (
87
88
  j: 'justify',
88
89
  );
89
90
 
90
- @each $typeKey, $typeValue in $types {
91
- @each $alignmentOriginKey, $alignmentOriginValue in $alignmentOrigins {
92
- .flex-#{$typeKey}#{$alignmentOriginKey} {
93
- @each $alignmentValueKey, $alignmentValueValue in $alignmentValues {
94
- :where(&-#{$alignmentValueKey}) {
95
- #{$typeValue}-#{$alignmentOriginValue}: #{$alignmentValueValue};
91
+ @each $type-key, $type-value in $types {
92
+ @each $alignment-origin-key, $alignment-origin-value in $alignment-origins {
93
+ .flex-#{$type-key}#{$alignment-origin-key} {
94
+ @each $alignment-value-key, $alignment-value-value in $alignment-values {
95
+ :where(&-#{$alignment-value-key}, &--#{$alignment-value-key}) {
96
+ #{$type-value}-#{$alignment-origin-value}: #{$alignment-value-value};
96
97
  }
97
98
  }
98
99
  }
99
100
  }
100
101
 
101
- @each $justificationKey, $justificationValue in $justificationValues {
102
- :where(.flex-#{$typeKey}c-#{$justificationKey}) {
103
- #{$typeValue}-content: #{$justificationValue};
102
+ @each $justification-key, $justification-value in $justification-values {
103
+ :where(.flex-#{$type-key}c-#{$justification-key}, .flex-#{$type-key}c--#{$justification-key}) {
104
+ #{$type-value}-content: #{$justification-value};
104
105
  }
105
106
  }
106
107
  }
package/src/css/form.scss CHANGED
@@ -54,11 +54,7 @@
54
54
  --oui-outline-value: var(--oui-blue-6);
55
55
 
56
56
  outline: 4px solid
57
- color-mix(
58
- in oklab,
59
- var(--oui-outline-value),
60
- transparent var(--oui-outline-percentage)
61
- );
57
+ color-mix(in oklab, var(--oui-outline-value), transparent var(--oui-outline-percentage));
62
58
  outline-offset: 0;
63
59
  transition: 0.125s ease-in-out;
64
60
  }
@@ -77,9 +73,11 @@
77
73
  }
78
74
 
79
75
  .oui-input {
80
- :where(&:not([type='range' i])) {
76
+ :where(&) {
81
77
  --oui-background-value: var(--oui-absolute);
78
+ }
82
79
 
80
+ :where(&:not([type='range' i])) {
83
81
  @include input;
84
82
 
85
83
  padding: 0.5em 0.75em;
@@ -103,17 +101,17 @@
103
101
  }
104
102
 
105
103
  :where(
106
- &:is(
107
- [type='date' i],
108
- [type='datetime-local' i],
109
- [type='month' i],
110
- [type='number' i],
111
- [type='tel' i],
112
- [type='time' i],
113
- [type='url' i],
114
- [type='week' i]
115
- )
116
- ) {
104
+ &:is(
105
+ [type='date' i],
106
+ [type='datetime-local' i],
107
+ [type='month' i],
108
+ [type='number' i],
109
+ [type='tel' i],
110
+ [type='time' i],
111
+ [type='url' i],
112
+ [type='week' i]
113
+ )
114
+ ) {
117
115
  font-variant-numeric: tabular-nums;
118
116
  }
119
117
 
@@ -160,9 +158,9 @@
160
158
  var(--oui-background-value),
161
159
  transparent var(--oui-background-percentage)
162
160
  );
163
- border: 2px solid var(--oui-absolute);
161
+ border: 1px solid var(--oui-absolute);
164
162
  border-radius: 1.25em;
165
- box-shadow: 0 1px 2px 2px rgba(0, 0, 0, 0.125);
163
+ box-shadow: 0 1px 2px 2px rgb(0 0 0 / 12.5%);
166
164
  cursor: pointer;
167
165
  }
168
166
 
@@ -174,15 +172,11 @@
174
172
  }
175
173
 
176
174
  :where(
177
- &.oui-validatable:not(
178
- [disabled],
179
- [readonly],
180
- [aria-disabled='true' i]
181
- ):is(
182
- :user-invalid:not([aria-invalid='false' i]),
183
- [aria-invalid='true' i]
184
- )
185
- ) {
175
+ &.oui-validate:not([disabled], [readonly], [aria-disabled='true' i]):is(
176
+ :user-invalid:not([aria-invalid='false' i]),
177
+ [aria-invalid='true' i]
178
+ )
179
+ ) {
186
180
  @include invalid;
187
181
 
188
182
  &::file-selector-button {
@@ -206,12 +200,11 @@
206
200
  }
207
201
 
208
202
  :where(
209
- &.oui-validatable:not(
210
- [disabled],
211
- [readonly],
212
- [aria-disabled='true' i]
213
- ):is(:user-valid:not([aria-invalid='true' i]), [aria-invalid='false' i])
214
- ) {
203
+ &.oui-validate:not([disabled], [readonly], [aria-disabled='true' i]):is(
204
+ :user-valid:not([aria-invalid='true' i]),
205
+ [aria-invalid='false' i]
206
+ )
207
+ ) {
215
208
  @include valid;
216
209
 
217
210
  &::file-selector-button {
@@ -244,11 +237,7 @@
244
237
 
245
238
  @media (hover: hover) {
246
239
  &:hover {
247
- outline-color: color-mix(
248
- in oklab,
249
- var(--oui-blue-6),
250
- transparent 75%
251
- );
240
+ outline-color: color-mix(in oklab, var(--oui-blue-6), transparent 75%);
252
241
  }
253
242
  }
254
243
 
@@ -276,7 +265,7 @@
276
265
  &::range-thumb {
277
266
  --oui-background-value: var(--oui-blue-6);
278
267
 
279
- box-shadow: 0 1px 2px 2px rgba(0, 0, 0, 0.25);
268
+ box-shadow: 0 1px 2px 2px rgb(0 0 0 / 25%);
280
269
  }
281
270
  }
282
271
 
@@ -310,6 +299,12 @@
310
299
 
311
300
  cursor: default;
312
301
  }
302
+
303
+ &::range-thumb {
304
+ --oui-background-value: var(--oui-gray-2);
305
+
306
+ cursor: default;
307
+ }
313
308
  }
314
309
 
315
310
  :where(&:is([disabled], [readonly], [aria-disabled='true' i]):focus) {
@@ -378,7 +373,9 @@ select.oui-input:is([multiple]) {
378
373
  :where(textarea.oui-input) {
379
374
  min-height: 4em;
380
375
  resize: vertical;
381
- transition: all 0.125s ease-in-out, height 0s;
376
+ transition:
377
+ all 0.125s ease-in-out,
378
+ height 0s;
382
379
  }
383
380
 
384
381
  :where(.oui-label, .oui-legend) {
@@ -433,19 +430,11 @@ select.oui-input:is([multiple]) {
433
430
  transparent var(--oui-background-percentage)
434
431
  );
435
432
  outline: 4px solid
436
- color-mix(
437
- in oklab,
438
- var(--oui-outline-value),
439
- transparent var(--oui-outline-percentage)
440
- );
433
+ color-mix(in oklab, var(--oui-outline-value), transparent var(--oui-outline-percentage));
441
434
  outline-offset: 0;
442
435
  border: 1px solid var(--oui-border-value);
443
436
  box-shadow: inset 0 1px 2px 0
444
- color-mix(
445
- in oklab,
446
- var(--oui-shadow-value),
447
- transparent var(--oui-shadow-percentage)
448
- );
437
+ color-mix(in oklab, var(--oui-shadow-value), transparent var(--oui-shadow-percentage));
449
438
  }
450
439
 
451
440
  &::after {
@@ -475,7 +464,7 @@ select.oui-input:is([multiple]) {
475
464
  height: 1.5em;
476
465
  background-color: var(--oui-absolute);
477
466
  border-radius: 1.5em;
478
- box-shadow: 0 1px 2px 1px rgba(0, 0, 0, 0.125);
467
+ box-shadow: 0 1px 2px 1px rgb(0 0 0 / 12.5%);
479
468
  font-size: 0.75em;
480
469
  font-weight: bold;
481
470
  line-height: 1.5em;
@@ -491,7 +480,7 @@ select.oui-input:is([multiple]) {
491
480
 
492
481
  &::after {
493
482
  content: attr(oui-on, '\2713');
494
- box-shadow: 0 1px 2px 1px rgba(0, 0, 0, 0.25);
483
+ box-shadow: 0 1px 2px 1px rgb(0 0 0 / 25%);
495
484
  right: 0.25em;
496
485
  }
497
486
  }
@@ -528,7 +517,7 @@ select.oui-input:is([multiple]) {
528
517
  content: attr(oui-on, '\2713');
529
518
  width: 1.5em;
530
519
  height: 1.5em;
531
- text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
520
+ text-shadow: 0 1px 2px rgb(0 0 0 / 50%);
532
521
  font-weight: bold;
533
522
  line-height: 1.5em;
534
523
  text-align: center;
@@ -549,7 +538,7 @@ select.oui-input:is([multiple]) {
549
538
  width: 0.75em;
550
539
  height: 0.75em;
551
540
  background-color: var(--oui-absolute);
552
- box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
541
+ box-shadow: 0 1px 2px 0 rgb(0 0 0 / 50%);
553
542
  inset: 0.375em auto auto 0.375em;
554
543
  }
555
544
  }
@@ -591,11 +580,7 @@ select.oui-input:is([multiple]) {
591
580
  color: var(--oui-blue-8);
592
581
  }
593
582
 
594
- :where(
595
- &:has(
596
- input:not([disabled], [aria-disabled='true' i]):is(:checked)
597
- ):hover
598
- ) {
583
+ :where(&:has(input:not([disabled], [aria-disabled='true' i]):is(:checked)):hover) {
599
584
  --oui-background-percentage: 50%;
600
585
  --oui-background-value: var(--oui-blue-6);
601
586
  }
@@ -606,7 +591,7 @@ select.oui-input:is([multiple]) {
606
591
  --oui-background-value: var(--oui-gray-0);
607
592
  --oui-border-value: var(--oui-gray-3);
608
593
  --oui-foreground-percentage: 25%;
609
- --oui-foreground-value: currentColor;
594
+ --oui-foreground-value: currentcolor;
610
595
 
611
596
  color: color-mix(
612
597
  in oklab,
@@ -634,5 +619,5 @@ select.oui-input:is([multiple]) {
634
619
  }
635
620
 
636
621
  :where(.oui-switch input, .oui-toggle input) {
637
- @include mixins.visuallyHidden;
622
+ @include mixins.visually-hidden;
638
623
  }