@fusion.dev/helix 0.19.0 → 0.19.1

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.
@@ -1040,6 +1040,10 @@
1040
1040
  "description": "Full width and flat, with the severity carried by a tinted fill and a\nhairline beneath rather than by a border on four sides: an announcement is a\nband across the top of the page, not a box that happens to be wide.",
1041
1041
  "name": "HelixAnnouncement",
1042
1042
  "cssProperties": [
1043
+ {
1044
+ "description": "How tall the band is at its shortest, so adding a control to it does not move the page down. A floor, not a cap: a message long enough to wrap still gets the room.",
1045
+ "name": "--announcement-block-size"
1046
+ },
1043
1047
  {
1044
1048
  "description": "Inline padding, matched to the page.",
1045
1049
  "name": "--announcement-inset"
@@ -16,6 +16,11 @@ font-size: var(--helix-text-sm);
16
16
 
17
17
  font-weight: var(--helix-weight-medium);
18
18
  inline-size: 100%;
19
+
20
+ min-block-size: var(
21
+ --announcement-block-size,
22
+ calc(var(--helix-size-control) + var(--helix-space-xs) * 2)
23
+ );
19
24
  padding-block: var(--helix-space-xs);
20
25
  padding-inline: var(--announcement-inset, var(--helix-space-lg));
21
26
 
@@ -14,6 +14,7 @@ import type { CSSResultGroup } from 'lit';
14
14
  * @aliases Banner, Notification bar, Alert bar
15
15
  * @documentation https://helix.fusion.dev/components/announcement
16
16
  *
17
+ * @cssproperty --announcement-block-size - How tall the band is at its shortest, so adding a control to it does not move the page down. A floor, not a cap: a message long enough to wrap still gets the room.
17
18
  * @cssproperty --announcement-inset - Inline padding, matched to the page.
18
19
  */
19
20
  export declare class HelixAnnouncement extends HelixHeadlessAnnouncement {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fusion.dev/helix",
3
3
  "description": "Styled component tier. Extends the headless tier with token-driven presentation.",
4
- "version": "0.19.0",
4
+ "version": "0.19.1",
5
5
  "license": "MIT",
6
6
  "author": "Ross Sheppard <ross.sheppard@fusion.dev>",
7
7
  "repository": {
@@ -46,14 +46,14 @@
46
46
  },
47
47
  "bugs": "https://github.com/project-fusion/fusion/issues",
48
48
  "dependencies": {
49
- "@fusion.dev/helix-core": "0.19.0",
50
- "@fusion.dev/helix-headless": "0.19.0",
51
- "@fusion.dev/helix-styles": "0.19.0"
49
+ "@fusion.dev/helix-core": "0.19.1",
50
+ "@fusion.dev/helix-headless": "0.19.1",
51
+ "@fusion.dev/helix-styles": "0.19.1"
52
52
  },
53
53
  "devDependencies": {
54
54
  "@custom-elements-manifest/analyzer": "^0.11.0",
55
- "@fusion.dev/helix-cem": "0.19.0",
56
- "@fusion.dev/helix-testing": "0.19.0",
55
+ "@fusion.dev/helix-cem": "0.19.1",
56
+ "@fusion.dev/helix-testing": "0.19.1",
57
57
  "@fusion.dev/scripts": "0.0.0-dev",
58
58
  "@happy-dom/global-registrator": "^20.0.0",
59
59
  "@lit-labs/ssr": "^3.3.0",
package/types/jsx.d.ts CHANGED
@@ -18559,6 +18559,7 @@ export type CustomElements = {
18559
18559
  *
18560
18560
  * CSS variables available for styling the component.
18561
18561
  *
18562
+ * - `--announcement-block-size`: How tall the band is at its shortest, so adding a control to it does not move the page down. A floor, not a cap: a message long enough to wrap still gets the room. (default: `undefined`)
18562
18563
  * - `--announcement-inset`: Inline padding, matched to the page. (default: `undefined`)
18563
18564
  *
18564
18565
  * ## CSS Parts
@@ -34513,6 +34514,7 @@ export type CustomElementsSolidJs = {
34513
34514
  *
34514
34515
  * CSS variables available for styling the component.
34515
34516
  *
34517
+ * - `--announcement-block-size`: How tall the band is at its shortest, so adding a control to it does not move the page down. A floor, not a cap: a message long enough to wrap still gets the room. (default: `undefined`)
34516
34518
  * - `--announcement-inset`: Inline padding, matched to the page. (default: `undefined`)
34517
34519
  *
34518
34520
  * ## CSS Parts
@@ -50589,6 +50591,8 @@ export type CustomCssProperties = {
50589
50591
  "--accordion-gap"?: (string) | undefined;
50590
50592
  /** Corner radius of each item, when outlined. */
50591
50593
  "--accordion-radius"?: (string) | undefined;
50594
+ /** How tall the band is at its shortest, so adding a control to it does not move the page down. A floor, not a cap: a message long enough to wrap still gets the room. */
50595
+ "--announcement-block-size"?: (string) | undefined;
50592
50596
  /** Inline padding, matched to the page. */
50593
50597
  "--announcement-inset"?: (string) | undefined;
50594
50598
  /** The filter behind it. `none` to pair it with a panel. */
package/types/vue.d.ts CHANGED
@@ -9367,6 +9367,8 @@ export type CustomCssProperties = {
9367
9367
  "--accordion-gap"?: (string) | undefined;
9368
9368
  /** Corner radius of each item, when outlined. */
9369
9369
  "--accordion-radius"?: (string) | undefined;
9370
+ /** How tall the band is at its shortest, so adding a control to it does not move the page down. A floor, not a cap: a message long enough to wrap still gets the room. */
9371
+ "--announcement-block-size"?: (string) | undefined;
9370
9372
  /** Inline padding, matched to the page. */
9371
9373
  "--announcement-inset"?: (string) | undefined;
9372
9374
  /** The filter behind it. `none` to pair it with a panel. */