@vaadin/aura 25.4.0-alpha1 → 25.4.0-dev.55bb86e155

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/aura.css CHANGED
@@ -4,6 +4,7 @@
4
4
  @import './src/shadow.css';
5
5
  @import './src/size.css';
6
6
  @import './src/surface.css';
7
+ @import './src/table.css';
7
8
  @import './src/typography.css';
8
9
 
9
10
  @import './src/components/overlay.css';
package/dist/aura.css CHANGED
@@ -129,7 +129,7 @@
129
129
  in oklab,
130
130
  var(--aura-surface-color-solid) calc(100% * var(--aura-surface-opacity)),
131
131
  transparent
132
- );--vaadin-background-color:var(--aura-surface-color-solid)}.aura-surface{background:var(--aura-surface-color) padding-box}.aura-surface-solid{--aura-surface-opacity:1;background:var(--aura-surface-color-solid) padding-box}.aura-accent-surface,.aura-accent-surface-solid{background:var(--aura-accent-surface) padding-box}.aura-accent-surface-solid{--aura-surface-opacity:1}@font-face{font-family:Instrument Sans;src:url(fonts/InstrumentSans/InstrumentSans.woff2) format("woff2");font-display:swap;font-style:normal;font-weight:400 700}:where(:host),:where(:root){--aura-font-family-system:system-ui, ui-sans-serif, sans-serif;--aura-font-family-instrument-sans:"Instrument Sans", var(--aura-font-family-system);--aura-font-family:var(--aura-font-family-instrument-sans);--vaadin-icon-baseline-font-family:var(--aura-font-family);--aura-base-font-size:14;--_base-font-size-m:var(--aura-base-font-size);--aura-base-line-height:1.4;--aura-font-weight-regular:400;--aura-font-weight-medium:500;--aura-font-weight-semibold:600}@media (pointer:coarse){:where(:host),:where(:root){--vaadin-input-field-value-font-size:max(16px, var(--aura-font-size-m))}}@supports (-webkit-touch-callout:none){@media (pointer:coarse){:where(:host),:where(:root){font:-apple-system-body}}}:where(:host),:where(:root),:where([theme]){--aura-font-size-xs:clamp(.625rem, round(.85 * var(--aura-font-size-m), .0625rem), .8125rem);--aura-font-size-s:round(.5 * (var(--aura-font-size-m) + var(--aura-font-size-xs)), .0625rem);--aura-font-size-m:round(.0625 * 1rem * var(--aura-base-font-size), .0625rem);--aura-font-size-l:round(1.125 * var(--aura-font-size-m), .0625rem);--aura-font-size-xl:round(1.125 * var(--aura-font-size-l), .0625rem);--_base-font-size-xs:clamp(10, round(.75 * var(--_base-font-size-m), 1), 13);--_base-font-size-s:round(.5 * (var(--_base-font-size-m) + var(--_base-font-size-xs)), 1);--_base-font-size-l:round(1.125 * var(--_base-font-size-m), 1);--_base-font-size-xl:round(1.125 * var(--_base-font-size-l), 1);--aura-line-height-xs:round(var(--aura-font-size-xs) * var(--aura-base-line-height), .125rem);--aura-line-height-s:round(var(--aura-font-size-s) * var(--aura-base-line-height), .125rem);--aura-line-height-m:round(var(--aura-font-size-m) * var(--aura-base-line-height), .125rem);--aura-line-height-l:round(var(--aura-font-size-l) * var(--aura-base-line-height), .125rem);--aura-line-height-xl:round(var(--aura-font-size-xl) * var(--aura-base-line-height), .125rem)}:where(:host),:where(body){font-family:var(--aura-font-family);font-optical-sizing:auto;font-style:normal;font-weight:var(--aura-font-weight-regular);-webkit-font-smoothing:var(--aura-font-smoothing,antialiased);-moz-osx-font-smoothing:var(--aura-font-smoothing,grayscale);-webkit-text-size-adjust:none;text-size-adjust:none}:where(:host),:where([theme]:not(html)),:where(body){font-size:var(--aura-font-size-m);line-height:var(--aura-line-height-m)}[theme~=xsmall]{--aura-base-font-size:var(--_base-font-size-xs)}[theme~=small]{--aura-base-font-size:var(--_base-font-size-s)}[theme~=medium]{--aura-base-font-size:var(--_base-font-size-m)}[theme~=large]{--aura-base-font-size:var(--_base-font-size-l)}[theme~=xlarge]{--aura-base-font-size:var(--_base-font-size-xl)}:where(h1,h2,h3,h4,h5,h6){text-wrap:balance;margin:0;font-weight:var(--aura-font-weight-semibold)}:where(h1){font-size:round(1.75 * var(--aura-font-size-xl),.0625rem);line-height:round(1.25 * var(--aura-line-height-xl),.125rem)}:where(h2){font-size:round(1.25 * var(--aura-font-size-xl),.0625rem);line-height:round(1.125 * var(--aura-line-height-xl),.125rem)}:where(h3){font-size:var(--aura-font-size-xl);line-height:var(--aura-line-height-xl)}:where(h4){font-size:var(--aura-font-size-l);line-height:var(--aura-line-height-l)}:where(h5){font-size:var(--aura-font-size-m);line-height:var(--aura-line-height-m)}:where(h6){font-size:var(--aura-font-size-s);line-height:var(--aura-line-height-s)}:where(b,strong){font-weight:var(--aura-font-weight-semibold)}:where(:host),:where(:root){--vaadin-overlay-border-width:0px;--vaadin-overlay-backdrop-background:light-dark(
132
+ );--vaadin-background-color:var(--aura-surface-color-solid)}.aura-surface{background:var(--aura-surface-color) padding-box}.aura-surface-solid{--aura-surface-opacity:1;background:var(--aura-surface-color-solid) padding-box}.aura-accent-surface,.aura-accent-surface-solid{background:var(--aura-accent-surface) padding-box}.aura-accent-surface-solid{--aura-surface-opacity:1}:where(.vaadin-themed-html table:not(.vaadin-unthemed-html),table.vaadin-themed-html){--_inner-radius:max(0px, -1px + var(--vaadin-radius-m));background:var(--vaadin-background-color);border:1px solid var(--vaadin-border-color);border-radius:var(--vaadin-radius-m);border-spacing:0;caption{padding-block-end:var(--vaadin-gap-s);color:var(--vaadin-text-color-secondary);text-align:start}:is(th,td){padding:var(--vaadin-padding-block-container) var(--vaadin-padding-inline-container);text-align:start}th{font-weight:var(--aura-font-weight-medium)}:is(thead,tfoot) :is(th,td){background:var(--vaadin-background-container)}:where(:is(thead,tbody,tfoot)~:is(tbody,tfoot) tr:first-child :is(th,td)),:where(tr:not(:first-child) :is(th,td)){border-block-start:1px solid var(--vaadin-border-color)}:where(thead:first-of-type tr:first-child :is(th,td):first-child){border-start-start-radius:var(--_inner-radius)}:where(thead:first-of-type tr:first-child :is(th,td):last-child){border-start-end-radius:var(--_inner-radius)}:where(:is(tbody,tfoot):last-of-type tr:last-child :is(th,td):first-child){border-end-start-radius:var(--_inner-radius)}:where(:is(tbody,tfoot):last-of-type tr:last-child :is(th,td):last-child){border-end-end-radius:var(--_inner-radius)}}@font-face{font-family:Instrument Sans;src:url(fonts/InstrumentSans/InstrumentSans.woff2) format("woff2");font-display:swap;font-style:normal;font-weight:400 700}:where(:host),:where(:root){--aura-font-family-system:system-ui, ui-sans-serif, sans-serif;--aura-font-family-instrument-sans:"Instrument Sans", var(--aura-font-family-system);--aura-font-family:var(--aura-font-family-instrument-sans);--vaadin-icon-baseline-font-family:var(--aura-font-family);--aura-base-font-size:14;--_base-font-size-m:var(--aura-base-font-size);--aura-base-line-height:1.4;--aura-font-weight-regular:400;--aura-font-weight-medium:500;--aura-font-weight-semibold:600}@media (pointer:coarse){:where(:host),:where(:root){--vaadin-input-field-value-font-size:max(16px, var(--aura-font-size-m))}}@supports (-webkit-touch-callout:none){@media (pointer:coarse){:where(:host),:where(:root){font:-apple-system-body}}}:where(:host),:where(:root),:where([theme]){--aura-font-size-xs:clamp(.625rem, round(.85 * var(--aura-font-size-m), .0625rem), .8125rem);--aura-font-size-s:round(.5 * (var(--aura-font-size-m) + var(--aura-font-size-xs)), .0625rem);--aura-font-size-m:round(.0625 * 1rem * var(--aura-base-font-size), .0625rem);--aura-font-size-l:round(1.125 * var(--aura-font-size-m), .0625rem);--aura-font-size-xl:round(1.125 * var(--aura-font-size-l), .0625rem);--_base-font-size-xs:clamp(10, round(.75 * var(--_base-font-size-m), 1), 13);--_base-font-size-s:round(.5 * (var(--_base-font-size-m) + var(--_base-font-size-xs)), 1);--_base-font-size-l:round(1.125 * var(--_base-font-size-m), 1);--_base-font-size-xl:round(1.125 * var(--_base-font-size-l), 1);--aura-line-height-xs:round(var(--aura-font-size-xs) * var(--aura-base-line-height), .125rem);--aura-line-height-s:round(var(--aura-font-size-s) * var(--aura-base-line-height), .125rem);--aura-line-height-m:round(var(--aura-font-size-m) * var(--aura-base-line-height), .125rem);--aura-line-height-l:round(var(--aura-font-size-l) * var(--aura-base-line-height), .125rem);--aura-line-height-xl:round(var(--aura-font-size-xl) * var(--aura-base-line-height), .125rem)}:where(:host),:where(body){font-family:var(--aura-font-family);font-optical-sizing:auto;font-style:normal;font-weight:var(--aura-font-weight-regular);-webkit-font-smoothing:var(--aura-font-smoothing,antialiased);-moz-osx-font-smoothing:var(--aura-font-smoothing,grayscale);-webkit-text-size-adjust:none;text-size-adjust:none}:where(:host),:where([theme]:not(html)),:where(body){font-size:var(--aura-font-size-m);line-height:var(--aura-line-height-m)}[theme~=xsmall]{--aura-base-font-size:var(--_base-font-size-xs)}[theme~=small]{--aura-base-font-size:var(--_base-font-size-s)}[theme~=medium]{--aura-base-font-size:var(--_base-font-size-m)}[theme~=large]{--aura-base-font-size:var(--_base-font-size-l)}[theme~=xlarge]{--aura-base-font-size:var(--_base-font-size-xl)}:where(h1,h2,h3,h4,h5,h6){text-wrap:balance;margin:0;font-weight:var(--aura-font-weight-semibold)}:where(h1){font-size:round(1.75 * var(--aura-font-size-xl),.0625rem);line-height:round(1.25 * var(--aura-line-height-xl),.125rem)}:where(h2){font-size:round(1.25 * var(--aura-font-size-xl),.0625rem);line-height:round(1.125 * var(--aura-line-height-xl),.125rem)}:where(h3){font-size:var(--aura-font-size-xl);line-height:var(--aura-line-height-xl)}:where(h4){font-size:var(--aura-font-size-l);line-height:var(--aura-line-height-l)}:where(h5){font-size:var(--aura-font-size-m);line-height:var(--aura-line-height-m)}:where(h6){font-size:var(--aura-font-size-s);line-height:var(--aura-line-height-s)}:where(b,strong){font-weight:var(--aura-font-weight-semibold)}:where(:host),:where(:root){--vaadin-overlay-border-width:0px;--vaadin-overlay-backdrop-background:light-dark(
133
133
  oklch(from var(--aura-background-color-light) calc(.5 * l) min(.05, 4 * c) h / 0.3),
134
134
  oklch(from var(--aura-background-color-dark) calc(.5 * l) min(.05, 4 * c) h / 0.3)
135
135
  );--aura-overlay-outline-color:light-dark(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vaadin/aura",
3
- "version": "25.4.0-alpha1",
3
+ "version": "25.4.0-dev.55bb86e155",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -40,5 +40,5 @@
40
40
  "postcss-import": "^17.0.0",
41
41
  "postcss-url": "^10.1.4"
42
42
  },
43
- "gitHead": "be38ec1866e96508f3f4591f95c949ef55903a34"
43
+ "gitHead": "5db8e58fb088121b067290b0ed90d12d7d4084f2"
44
44
  }
package/src/table.css ADDED
@@ -0,0 +1,56 @@
1
+ :where(.vaadin-themed-html table:not(.vaadin-unthemed-html), table.vaadin-themed-html) {
2
+ /* The corner cells have to stay inside the table's own border. */
3
+ --_inner-radius: max(0px, calc(var(--vaadin-radius-m) - 1px));
4
+
5
+ background: var(--vaadin-background-color);
6
+ border: 1px solid var(--vaadin-border-color);
7
+ border-radius: var(--vaadin-radius-m);
8
+ border-spacing: 0;
9
+
10
+ caption {
11
+ padding-block-end: var(--vaadin-gap-s);
12
+ color: var(--vaadin-text-color-secondary);
13
+ text-align: start;
14
+ }
15
+
16
+ :is(th, td) {
17
+ padding: var(--vaadin-padding-block-container) var(--vaadin-padding-inline-container);
18
+ /* The UA stylesheet centers <th>, which leaves a header out of line with
19
+ the column below it. */
20
+ text-align: start;
21
+ }
22
+
23
+ th {
24
+ font-weight: var(--aura-font-weight-medium);
25
+ }
26
+
27
+ :is(thead, tfoot) :is(th, td) {
28
+ background: var(--vaadin-background-container);
29
+ }
30
+
31
+ /* A line between every two consecutive rows, wherever the section boundary
32
+ falls. Drawing it above a row rather than below one leaves the outer
33
+ edges to the table's own border. */
34
+ :where(tr:not(:first-child) :is(th, td)),
35
+ :where(:is(thead, tbody, tfoot) ~ :is(tbody, tfoot) tr:first-child :is(th, td)) {
36
+ border-block-start: 1px solid var(--vaadin-border-color);
37
+ }
38
+
39
+ /* Round the corner cells so that a header or footer background does not
40
+ fill in the corners of the rounded border. */
41
+ :where(thead:first-of-type tr:first-child :is(th, td):first-child) {
42
+ border-start-start-radius: var(--_inner-radius);
43
+ }
44
+
45
+ :where(thead:first-of-type tr:first-child :is(th, td):last-child) {
46
+ border-start-end-radius: var(--_inner-radius);
47
+ }
48
+
49
+ :where(:is(tbody, tfoot):last-of-type tr:last-child :is(th, td):first-child) {
50
+ border-end-start-radius: var(--_inner-radius);
51
+ }
52
+
53
+ :where(:is(tbody, tfoot):last-of-type tr:last-child :is(th, td):last-child) {
54
+ border-end-end-radius: var(--_inner-radius);
55
+ }
56
+ }