@oicl/openbridge-webcomponents 0.0.15-dev-20241113182547 → 0.0.15-dev-20241119201940

Sign up to get free protection for your applications and to get access to all the features.
Files changed (63) hide show
  1. package/.storybook/main.ts +2 -1
  2. package/.storybook/manager.ts +16 -0
  3. package/.storybook/preview.ts +0 -1
  4. package/__snapshots__/building-blocks-poi-graphic-line--primary.png +0 -0
  5. package/__snapshots__/building-blocks-poi-line--primary.png +0 -0
  6. package/__snapshots__/navigation-instruments-azimuth-thruster--active-at-setpoint.png +0 -0
  7. package/__snapshots__/navigation-instruments-azimuth-thruster--active-no-setpoint.png +0 -0
  8. package/__snapshots__/navigation-instruments-azimuth-thruster--active.png +0 -0
  9. package/__snapshots__/navigation-instruments-azimuth-thruster--in-command-at-setpoint-disable-auto-setpoint.png +0 -0
  10. package/__snapshots__/navigation-instruments-azimuth-thruster--in-command-at-setpoint.png +0 -0
  11. package/__snapshots__/navigation-instruments-azimuth-thruster--in-command.png +0 -0
  12. package/__snapshots__/navigation-instruments-azimuth-thruster--loading.png +0 -0
  13. package/__snapshots__/navigation-instruments-azimuth-thruster--off.png +0 -0
  14. package/__snapshots__/navigation-instruments-azimuth-thruster--pod.png +0 -0
  15. package/__snapshots__/navigation-instruments-azimuth-thruster--single-direction-with-propeller.png +0 -0
  16. package/__snapshots__/navigation-instruments-azimuth-thruster--single-direction.png +0 -0
  17. package/__snapshots__/navigation-instruments-azimuth-thruster-labeled--large.png +0 -0
  18. package/__snapshots__/navigation-instruments-azimuth-thruster-labeled--medium.png +0 -0
  19. package/__snapshots__/navigation-instruments-azimuth-thruster-labeled--no-command.png +0 -0
  20. package/__snapshots__/navigation-instruments-compass--primary.png +0 -0
  21. package/__snapshots__/navigation-instruments-compass-flat--primary.png +0 -0
  22. package/__snapshots__/navigation-instruments-compass-flat--with-fov-indicator.png +0 -0
  23. package/__snapshots__/navigation-instruments-main-engine--active.png +0 -0
  24. package/__snapshots__/navigation-instruments-main-engine--in-command.png +0 -0
  25. package/__snapshots__/navigation-instruments-main-engine--off.png +0 -0
  26. package/__snapshots__/navigation-instruments-poi-target--primary.png +0 -0
  27. package/__snapshots__/navigation-instruments-rudder--primary.png +0 -0
  28. package/__snapshots__/navigation-instruments-thruster--active-at-setpoint.png +0 -0
  29. package/__snapshots__/navigation-instruments-thruster--active.png +0 -0
  30. package/__snapshots__/navigation-instruments-thruster--in-command-at-setpoint-manual.png +0 -0
  31. package/__snapshots__/navigation-instruments-thruster--in-command-at-setpoint.png +0 -0
  32. package/__snapshots__/navigation-instruments-thruster--in-command-touching.png +0 -0
  33. package/__snapshots__/navigation-instruments-thruster--in-command.png +0 -0
  34. package/__snapshots__/navigation-instruments-thruster--loading.png +0 -0
  35. package/__snapshots__/navigation-instruments-thruster--no-setpoint.png +0 -0
  36. package/__snapshots__/navigation-instruments-thruster--off.png +0 -0
  37. package/__snapshots__/navigation-instruments-thruster--pulling-pod.png +0 -0
  38. package/__snapshots__/navigation-instruments-thruster--pushing-pod.png +0 -0
  39. package/__snapshots__/navigation-instruments-thruster--single-direction-single-sided-with-advice.png +0 -0
  40. package/__snapshots__/navigation-instruments-thruster--single-direction.png +0 -0
  41. package/__snapshots__/navigation-instruments-thruster--single-sided-with-advice.png +0 -0
  42. package/__snapshots__/navigation-instruments-thruster--single-sided.png +0 -0
  43. package/__snapshots__/navigation-instruments-thruster--tunnel.png +0 -0
  44. package/custom-elements.json +0 -25
  45. package/dist/storybook-util.d.ts +0 -1
  46. package/dist/storybook-util.d.ts.map +1 -1
  47. package/dist/storybook-util.js +0 -27
  48. package/dist/storybook-util.js.map +1 -1
  49. package/package.json +14 -13
  50. package/src/automation/automation-button/automation-button.stories.ts +4 -0
  51. package/src/components/top-bar/top-bar.stories.ts +1 -0
  52. package/src/icons.stories.ts +3 -0
  53. package/src/navigation-instruments/azimuth-thruster/azimuth-thruster.stories.ts +3 -3
  54. package/src/navigation-instruments/azimuth-thruster-labeled/azimuth-thruster-labeled.stories.ts +3 -3
  55. package/src/navigation-instruments/compass/compass.stories.ts +3 -3
  56. package/src/navigation-instruments/compass-flat/compass-flat.stories.ts +3 -3
  57. package/src/navigation-instruments/main-engine/main-engine.stories.ts +3 -3
  58. package/src/navigation-instruments/poi-graphic-line/poi-graphic-line.stories.ts +2 -3
  59. package/src/navigation-instruments/poi-line/poi-line.stories.ts +1 -4
  60. package/src/navigation-instruments/poi-target/poi-target.stories.ts +1 -3
  61. package/src/navigation-instruments/rudder/rudder.stories.ts +3 -3
  62. package/src/navigation-instruments/thruster/thruster.stories.ts +3 -3
  63. package/src/storybook-util.ts +0 -27
@@ -10,7 +10,8 @@ const config: StorybookConfig = {
10
10
  getAbsolutePath('@storybook/addon-themes'),
11
11
  getAbsolutePath('@storybook/addon-interactions'),
12
12
  getAbsolutePath('@storybook/addon-storysource'),
13
- '@chromatic-com/storybook',
13
+ getAbsolutePath('storybook-addon-tag-badges'),
14
+ getAbsolutePath('@chromatic-com/storybook'),
14
15
  ],
15
16
 
16
17
  framework: {
@@ -3,4 +3,20 @@ import obTheme from './openbridgeTheme';
3
3
 
4
4
  addons.setConfig({
5
5
  theme: obTheme,
6
+ tagBadges: [
7
+ // Add an entry that matches 'frog' and displays a cool badge in the sidebar only
8
+ {
9
+ tags: '6.0',
10
+ badge: {
11
+ text: '6.0 Beta',
12
+ bgColor: '#0070d6',
13
+ fgColor: '#fff',
14
+ tooltip: 'OpenBridge 6.0 Beta',
15
+ },
16
+ display: {
17
+ sidebar: ['component'],
18
+ toolbar: true,
19
+ },
20
+ },
21
+ ],
6
22
  });
@@ -1,5 +1,4 @@
1
1
  import type {Preview} from '@storybook/web-components';
2
- import {BadgesConfig} from '@geometricpanda/storybook-addon-badges';
3
2
 
4
3
  import '../src/palettes/variables.css';
5
4
  import {setCustomElementsManifest} from '@storybook/web-components';
@@ -88,23 +88,6 @@
88
88
  }
89
89
  }
90
90
  ]
91
- },
92
- {
93
- "kind": "function",
94
- "name": "beta6Decorator",
95
- "return": {
96
- "type": {
97
- "text": "HTMLTemplateResult"
98
- }
99
- },
100
- "parameters": [
101
- {
102
- "name": "story",
103
- "type": {
104
- "text": "() => unknown"
105
- }
106
- }
107
- ]
108
91
  }
109
92
  ],
110
93
  "exports": [
@@ -139,14 +122,6 @@
139
122
  "name": "widthDecorator",
140
123
  "module": "src/storybook-util.ts"
141
124
  }
142
- },
143
- {
144
- "kind": "js",
145
- "name": "beta6Decorator",
146
- "declaration": {
147
- "name": "beta6Decorator",
148
- "module": "src/storybook-util.ts"
149
- }
150
125
  }
151
126
  ]
152
127
  },
@@ -15,5 +15,4 @@ export declare function widthDecorator(story: () => unknown, context: {
15
15
  height?: number;
16
16
  };
17
17
  }): HTMLTemplateResult;
18
- export declare function beta6Decorator(story: () => unknown): HTMLTemplateResult;
19
18
  //# sourceMappingURL=storybook-util.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"storybook-util.d.ts","sourceRoot":"","sources":["../src/storybook-util.ts"],"names":[],"mappings":"AAAA,OAAO,6BAA6B,CAAC;AACrC,OAAO,wBAAwB,CAAC;AAChC,OAAO,uBAAuB,CAAC;AAC/B,OAAO,qBAAqB,CAAC;AAC7B,OAAO,gCAAgC,CAAC;AACxC,OAAO,iCAAiC,CAAC;AACzC,OAAO,sBAAsB,CAAC;AAC9B,OAAO,EAAC,kBAAkB,EAAE,cAAc,EAAO,MAAM,KAAK,CAAC;AAG7D,eAAO,MAAM,OAAO,UAQZ,CAAC;AAET,wBAAgB,gBAAgB,CAC9B,EAAE,EAAE,MAAM,EACV,UAAU,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAM,GACtC,cAAc,CAyBhB;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,OAAO,GAAG,kBAAkB,CAsCvE;AAED,wBAAgB,cAAc,CAC5B,KAAK,EAAE,MAAM,OAAO,EACpB,OAAO,EAAE;IAAC,IAAI,EAAE;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAC,CAAA;CAAC,GAChD,kBAAkB,CASpB;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,OAAO,GAAG,kBAAkB,CAyBvE"}
1
+ {"version":3,"file":"storybook-util.d.ts","sourceRoot":"","sources":["../src/storybook-util.ts"],"names":[],"mappings":"AAAA,OAAO,6BAA6B,CAAC;AACrC,OAAO,wBAAwB,CAAC;AAChC,OAAO,uBAAuB,CAAC;AAC/B,OAAO,qBAAqB,CAAC;AAC7B,OAAO,gCAAgC,CAAC;AACxC,OAAO,iCAAiC,CAAC;AACzC,OAAO,sBAAsB,CAAC;AAC9B,OAAO,EAAC,kBAAkB,EAAE,cAAc,EAAO,MAAM,KAAK,CAAC;AAG7D,eAAO,MAAM,OAAO,UAQZ,CAAC;AAET,wBAAgB,gBAAgB,CAC9B,EAAE,EAAE,MAAM,EACV,UAAU,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAM,GACtC,cAAc,CAyBhB;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,OAAO,GAAG,kBAAkB,CAsCvE;AAED,wBAAgB,cAAc,CAC5B,KAAK,EAAE,MAAM,OAAO,EACpB,OAAO,EAAE;IAAC,IAAI,EAAE;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAC,CAAA;CAAC,GAChD,kBAAkB,CASpB"}
@@ -91,34 +91,7 @@ function widthDecorator(story, context) {
91
91
  ${story()}
92
92
  </div>`;
93
93
  }
94
- function beta6Decorator(story) {
95
- return html`
96
- <div
97
- style="
98
- border-radius: 100px;
99
- background-color: var(--instrument-enhanced-primary-color);
100
- color: var(--instrument-frame-primary-color);
101
- height: 32px;
102
- padding: 0 24px;
103
- box-sizing: border-box;
104
- width: fit-content;
105
- display: grid;
106
- place-content: center;
107
- font-family: 'Noto Sans';
108
- font-size: 16px;
109
- font-style: normal;
110
- font-weight: 570;
111
- line-height: 24px; /* 150% */
112
- margin-bottom: 64px;
113
- "
114
- >
115
- Beta 6.0
116
- </div>
117
- ${story()}
118
- `;
119
- }
120
94
  export {
121
- beta6Decorator,
122
95
  crossDecorator,
123
96
  iconIdToIconHtml,
124
97
  iconIds,
@@ -1 +1 @@
1
- {"version":3,"file":"storybook-util.js","sources":["../src/storybook-util.ts"],"sourcesContent":["import './icons/icon-01-placeholder';\nimport './icons/icon-01-search';\nimport './icons/icon-06-radar';\nimport './icons/icon-04-day';\nimport './icons/icon-04-brilliance-low';\nimport './icons/icon-04-brilliance-high';\nimport './icons/icon-06-ship';\nimport {HTMLTemplateResult, TemplateResult, html} from 'lit';\nimport {spread} from '@open-wc/lit-helpers';\n\nexport const iconIds = [\n '01-placeholder',\n '01-search',\n '04-brilliance-low',\n '04-brilliance-high',\n '06-radar',\n '04-day',\n '06-ship',\n].sort();\n\nexport function iconIdToIconHtml(\n id: string,\n attributes: Record<string, string> = {}\n): TemplateResult {\n switch (id) {\n case '01-placeholder':\n return html`<obi-01-placeholder\n ${spread(attributes)}\n ></obi-01-placeholder>`;\n case '01-search':\n return html`<obi-01-search ${spread(attributes)}></obi-01-search>`;\n case '04-day':\n return html`<obi-04-day ${spread(attributes)}></obi-04-day>`;\n case '04-brilliance-low':\n return html`<obi-04-brilliance-low\n ${spread(attributes)}\n ></obi-04-brilliance-low>`;\n case '04-brilliance-high':\n return html`<obi-04-brilliance-high\n ${spread(attributes)}\n ></obi-04-brilliance-high>`;\n case '06-radar':\n return html`<obi-06-radar ${spread(attributes)}></obi-06-radar>`;\n case '06-ship':\n return html`<obi-06-ship ${spread(attributes)}></obi-06-ship>`;\n default:\n throw new Error(`Unknown icon id: ${id}`);\n }\n}\n\nexport function crossDecorator(story: () => unknown): HTMLTemplateResult {\n return html` <style>\n .wrapper {\n width: 100%;\n height: 100vh;\n position: relative;\n }\n\n .wrapper > * {\n position: absolute;\n top: 50%;\n left: 50%;\n }\n\n .wrapper::before {\n content: '';\n display: block;\n position: absolute;\n top: 0;\n bottom: 0;\n width: 1px;\n left: calc(50% - 0.5px);\n background-color: rgb(0, 0, 0, 0.3);\n }\n\n .wrapper::after {\n content: '';\n display: block;\n position: absolute;\n left: 0;\n right: 0;\n height: 1px;\n top: calc(50% - 0.5px);\n background-color: rgb(0, 0, 0, 0.3);\n z-index: -100;\n }\n </style>\n <div class=\"wrapper\">${story()}</div>`;\n}\n\nexport function widthDecorator(\n story: () => unknown,\n context: {args: {width: number; height?: number}}\n): HTMLTemplateResult {\n const width = context.args.width;\n const height = context.args.height ?? width;\n return html` <div\n class=\"wrapper\"\n style=\"width: ${width}px; height: ${height}px\"\n >\n ${story()}\n </div>`;\n}\n\nexport function beta6Decorator(story: () => unknown): HTMLTemplateResult {\n return html`\n <div\n style=\"\n border-radius: 100px; \n background-color: var(--instrument-enhanced-primary-color); \n color: var(--instrument-frame-primary-color); \n height: 32px; \n padding: 0 24px; \n box-sizing: border-box; \n width: fit-content; \n display: grid; \n place-content: center;\n font-family: 'Noto Sans';\n font-size: 16px;\n font-style: normal;\n font-weight: 570;\n line-height: 24px; /* 150% */\n margin-bottom: 64px;\n\"\n >\n Beta 6.0\n </div>\n ${story()}\n `;\n}\n"],"names":[],"mappings":";;;;;;;;;AAUO,MAAM,UAAU;AAAA,EACrB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,EAAE,KAAK;AAEA,SAAS,iBACd,IACA,aAAqC,IACrB;AAChB,UAAQ,IAAI;AAAA,IACV,KAAK;AACI,aAAA;AAAA,UACH,OAAO,UAAU,CAAC;AAAA;AAAA,IAExB,KAAK;AACI,aAAA,sBAAsB,OAAO,UAAU,CAAC;AAAA,IACjD,KAAK;AACI,aAAA,mBAAmB,OAAO,UAAU,CAAC;AAAA,IAC9C,KAAK;AACI,aAAA;AAAA,UACH,OAAO,UAAU,CAAC;AAAA;AAAA,IAExB,KAAK;AACI,aAAA;AAAA,UACH,OAAO,UAAU,CAAC;AAAA;AAAA,IAExB,KAAK;AACI,aAAA,qBAAqB,OAAO,UAAU,CAAC;AAAA,IAChD,KAAK;AACI,aAAA,oBAAoB,OAAO,UAAU,CAAC;AAAA,IAC/C;AACE,YAAM,IAAI,MAAM,oBAAoB,EAAE,EAAE;AAAA,EAC5C;AACF;AAEO,SAAS,eAAe,OAA0C;AAChE,SAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,2BAoCkB,OAAO;AAClC;AAEgB,SAAA,eACd,OACA,SACoB;AACd,QAAA,QAAQ,QAAQ,KAAK;AACrB,QAAA,SAAS,QAAQ,KAAK,UAAU;AAC/B,SAAA;AAAA;AAAA,oBAEW,KAAK,eAAe,MAAM;AAAA;AAAA,MAExC,OAAO;AAAA;AAEb;AAEO,SAAS,eAAe,OAA0C;AAChE,SAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,MAsBH,OAAO;AAAA;AAEb;"}
1
+ {"version":3,"file":"storybook-util.js","sources":["../src/storybook-util.ts"],"sourcesContent":["import './icons/icon-01-placeholder';\nimport './icons/icon-01-search';\nimport './icons/icon-06-radar';\nimport './icons/icon-04-day';\nimport './icons/icon-04-brilliance-low';\nimport './icons/icon-04-brilliance-high';\nimport './icons/icon-06-ship';\nimport {HTMLTemplateResult, TemplateResult, html} from 'lit';\nimport {spread} from '@open-wc/lit-helpers';\n\nexport const iconIds = [\n '01-placeholder',\n '01-search',\n '04-brilliance-low',\n '04-brilliance-high',\n '06-radar',\n '04-day',\n '06-ship',\n].sort();\n\nexport function iconIdToIconHtml(\n id: string,\n attributes: Record<string, string> = {}\n): TemplateResult {\n switch (id) {\n case '01-placeholder':\n return html`<obi-01-placeholder\n ${spread(attributes)}\n ></obi-01-placeholder>`;\n case '01-search':\n return html`<obi-01-search ${spread(attributes)}></obi-01-search>`;\n case '04-day':\n return html`<obi-04-day ${spread(attributes)}></obi-04-day>`;\n case '04-brilliance-low':\n return html`<obi-04-brilliance-low\n ${spread(attributes)}\n ></obi-04-brilliance-low>`;\n case '04-brilliance-high':\n return html`<obi-04-brilliance-high\n ${spread(attributes)}\n ></obi-04-brilliance-high>`;\n case '06-radar':\n return html`<obi-06-radar ${spread(attributes)}></obi-06-radar>`;\n case '06-ship':\n return html`<obi-06-ship ${spread(attributes)}></obi-06-ship>`;\n default:\n throw new Error(`Unknown icon id: ${id}`);\n }\n}\n\nexport function crossDecorator(story: () => unknown): HTMLTemplateResult {\n return html` <style>\n .wrapper {\n width: 100%;\n height: 100vh;\n position: relative;\n }\n\n .wrapper > * {\n position: absolute;\n top: 50%;\n left: 50%;\n }\n\n .wrapper::before {\n content: '';\n display: block;\n position: absolute;\n top: 0;\n bottom: 0;\n width: 1px;\n left: calc(50% - 0.5px);\n background-color: rgb(0, 0, 0, 0.3);\n }\n\n .wrapper::after {\n content: '';\n display: block;\n position: absolute;\n left: 0;\n right: 0;\n height: 1px;\n top: calc(50% - 0.5px);\n background-color: rgb(0, 0, 0, 0.3);\n z-index: -100;\n }\n </style>\n <div class=\"wrapper\">${story()}</div>`;\n}\n\nexport function widthDecorator(\n story: () => unknown,\n context: {args: {width: number; height?: number}}\n): HTMLTemplateResult {\n const width = context.args.width;\n const height = context.args.height ?? width;\n return html` <div\n class=\"wrapper\"\n style=\"width: ${width}px; height: ${height}px\"\n >\n ${story()}\n </div>`;\n}\n"],"names":[],"mappings":";;;;;;;;;AAUO,MAAM,UAAU;AAAA,EACrB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,EAAE,KAAK;AAEA,SAAS,iBACd,IACA,aAAqC,IACrB;AAChB,UAAQ,IAAI;AAAA,IACV,KAAK;AACI,aAAA;AAAA,UACH,OAAO,UAAU,CAAC;AAAA;AAAA,IAExB,KAAK;AACI,aAAA,sBAAsB,OAAO,UAAU,CAAC;AAAA,IACjD,KAAK;AACI,aAAA,mBAAmB,OAAO,UAAU,CAAC;AAAA,IAC9C,KAAK;AACI,aAAA;AAAA,UACH,OAAO,UAAU,CAAC;AAAA;AAAA,IAExB,KAAK;AACI,aAAA;AAAA,UACH,OAAO,UAAU,CAAC;AAAA;AAAA,IAExB,KAAK;AACI,aAAA,qBAAqB,OAAO,UAAU,CAAC;AAAA,IAChD,KAAK;AACI,aAAA,oBAAoB,OAAO,UAAU,CAAC;AAAA,IAC/C;AACE,YAAM,IAAI,MAAM,oBAAoB,EAAE,EAAE;AAAA,EAC5C;AACF;AAEO,SAAS,eAAe,OAA0C;AAChE,SAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,2BAoCkB,OAAO;AAClC;AAEgB,SAAA,eACd,OACA,SACoB;AACd,QAAA,QAAQ,QAAQ,KAAK;AACrB,QAAA,SAAS,QAAQ,KAAK,UAAU;AAC/B,SAAA;AAAA;AAAA,oBAEW,KAAK,eAAe,MAAM;AAAA;AAAA,MAExC,OAAO;AAAA;AAEb;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oicl/openbridge-webcomponents",
3
- "version": "0.0.15-dev-20241113182547",
3
+ "version": "0.0.15-dev-20241119201940",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",
@@ -42,18 +42,18 @@
42
42
  "@lit-labs/gen-wrapper-vue": "^0.3.3",
43
43
  "@open-wc/lit-helpers": "^0.7.0",
44
44
  "@playwright/test": "^1.46.1",
45
- "@storybook/addon-essentials": "^8.2.9",
46
- "@storybook/addon-interactions": "^8.2.9",
47
- "@storybook/addon-links": "^8.2.9",
48
- "@storybook/addon-storysource": "^8.2.9",
49
- "@storybook/addon-themes": "^8.2.9",
50
- "@storybook/blocks": "^8.2.9",
51
- "@storybook/manager-api": "^8.2.9",
52
- "@storybook/test": "^8.2.9",
45
+ "@storybook/addon-essentials": "^8.4.4",
46
+ "@storybook/addon-interactions": "^8.4.4",
47
+ "@storybook/addon-links": "^8.4.4",
48
+ "@storybook/addon-storysource": "^8.4.4",
49
+ "@storybook/addon-themes": "^8.4.4",
50
+ "@storybook/blocks": "^8.4.4",
51
+ "@storybook/manager-api": "^8.4.4",
52
+ "@storybook/test": "^8.4.4",
53
53
  "@storybook/test-runner": "^0.17.0",
54
- "@storybook/theming": "^8.2.9",
55
- "@storybook/web-components": "^8.2.9",
56
- "@storybook/web-components-vite": "^8.2.9",
54
+ "@storybook/theming": "^8.4.4",
55
+ "@storybook/web-components": "^8.4.4",
56
+ "@storybook/web-components-vite": "^8.4.4",
57
57
  "@topcli/prompts": "^1.8.0",
58
58
  "@types/jest-image-snapshot": "^6",
59
59
  "@types/node": "^22.4.1",
@@ -72,7 +72,8 @@
72
72
  "prettier": "^3.1.1",
73
73
  "release-it": "^17.1.1",
74
74
  "rollup-plugin-postcss-lit": "^2.1.0",
75
- "storybook": "^8.2.9",
75
+ "storybook": "^8.4.4",
76
+ "storybook-addon-tag-badges": "^1.2.0",
76
77
  "tsx": "^4.7.1",
77
78
  "typescript": "^5.3.3",
78
79
  "vite": "^5.2.7",
@@ -70,6 +70,10 @@ const meta: Meta<typeof ObcAutomationButton> = {
70
70
  labelSize: 'regular',
71
71
  labelStyle: 'regular',
72
72
  },
73
+ parameters: {
74
+ // Overrides the default behavior and pauses the animation at the first frame at the component level for all stories.
75
+ chromatic: {pauseAnimationAtEnd: false},
76
+ },
73
77
  } satisfies Meta<ObcAutomationButton>;
74
78
 
75
79
  export default meta;
@@ -16,6 +16,7 @@ const meta: Meta<typeof ObcTopBar> = {
16
16
  component: 'obc-top-bar',
17
17
  parameters: {
18
18
  layout: 'fullscreen',
19
+ chromatic: {pauseAnimationAtEnd: false},
19
20
  },
20
21
  args: {
21
22
  showAppsButton: true,
@@ -51,6 +51,9 @@ export const List: Story = {
51
51
  </div>
52
52
  `;
53
53
  },
54
+ parameters: {
55
+ chromatic: {disableSnapshot: true},
56
+ },
54
57
  };
55
58
 
56
59
  export const UseFontColor: Story = {
@@ -2,13 +2,13 @@ import type {Meta, StoryObj} from '@storybook/web-components';
2
2
  import {ObcAzimuthThruster} from './azimuth-thruster';
3
3
  import './azimuth-thruster';
4
4
  import {InstrumentState, Size} from '../types';
5
- import {beta6Decorator, widthDecorator} from '../../storybook-util';
5
+ import {widthDecorator} from '../../storybook-util';
6
6
  import {AdviceType} from '../watch/advice';
7
7
  import {PropellerType} from '../thruster/propeller';
8
8
 
9
9
  const meta: Meta<typeof ObcAzimuthThruster> = {
10
10
  title: 'Navigation instruments/Azimuth thruster',
11
- tags: ['autodocs'],
11
+ tags: ['autodocs', '6.0'],
12
12
  component: 'obc-azimuth-thruster',
13
13
  argTypes: {
14
14
  thrust: {control: {type: 'range', min: -100, max: 100, step: 1}},
@@ -32,7 +32,7 @@ const meta: Meta<typeof ObcAzimuthThruster> = {
32
32
  autoAtAngleSetpointDeadband: 2,
33
33
  thrustSetpointAtZeroDeadband: 0.1,
34
34
  },
35
- decorators: [widthDecorator, beta6Decorator],
35
+ decorators: [widthDecorator],
36
36
  } satisfies Meta<ObcAzimuthThruster>;
37
37
 
38
38
  export default meta;
@@ -6,12 +6,12 @@ import {
6
6
  import './azimuth-thruster-labeled';
7
7
  import {CommandStatus} from '../badge-command/badge-command';
8
8
  import {AdviceType} from '../watch/advice';
9
- import {beta6Decorator, widthDecorator} from '../../storybook-util';
9
+ import {widthDecorator} from '../../storybook-util';
10
10
  import {PropellerType} from '../thruster/propeller';
11
11
 
12
12
  const meta: Meta<typeof ObcAzimuthThrusterLabeled> = {
13
13
  title: 'Navigation instruments/Azimuth thruster labeled',
14
- tags: ['autodocs'],
14
+ tags: ['autodocs', '6.0'],
15
15
  component: 'obc-azimuth-thruster-labeled',
16
16
  args: {
17
17
  angle: 30,
@@ -29,7 +29,7 @@ const meta: Meta<typeof ObcAzimuthThrusterLabeled> = {
29
29
  {min: -100, max: -75, type: AdviceType.caution, hinted: true},
30
30
  ],
31
31
  },
32
- decorators: [widthDecorator, beta6Decorator],
32
+ decorators: [widthDecorator],
33
33
  argTypes: {
34
34
  commandStatus: {
35
35
  options: Object.values(CommandStatus),
@@ -1,12 +1,12 @@
1
1
  import type {Meta, StoryObj} from '@storybook/web-components';
2
2
  import {ObcCompass} from './compass';
3
3
  import './compass';
4
- import {beta6Decorator, widthDecorator} from '../../storybook-util';
4
+ import {widthDecorator} from '../../storybook-util';
5
5
  import {AdviceType} from '../watch/advice';
6
6
 
7
7
  const meta: Meta<typeof ObcCompass> = {
8
8
  title: 'Navigation Instruments/Compass',
9
- tags: ['autodocs'],
9
+ tags: ['autodocs', '6.0'],
10
10
  component: 'obc-compass',
11
11
  args: {
12
12
  width: 512,
@@ -26,7 +26,7 @@ const meta: Meta<typeof ObcCompass> = {
26
26
  heading: {control: {type: 'range', min: 0, max: 360, step: 1}},
27
27
  courseOverGround: {control: {type: 'range', min: 0, max: 360, step: 1}},
28
28
  },
29
- decorators: [widthDecorator, beta6Decorator],
29
+ decorators: [widthDecorator],
30
30
  } satisfies Meta<ObcCompass>;
31
31
 
32
32
  export default meta;
@@ -1,11 +1,11 @@
1
1
  import type {Meta, StoryObj} from '@storybook/web-components';
2
2
  import {ObcCompassFlat} from './compass-flat';
3
3
  import './compass-flat';
4
- import {beta6Decorator, widthDecorator} from '../../storybook-util';
4
+ import {widthDecorator} from '../../storybook-util';
5
5
 
6
6
  const meta: Meta<typeof ObcCompassFlat> = {
7
7
  title: 'Navigation Instruments/Compass flat',
8
- tags: ['autodocs'],
8
+ tags: ['autodocs', '6.0'],
9
9
  component: 'obc-compass-flat',
10
10
  args: {
11
11
  width: 512,
@@ -21,7 +21,7 @@ const meta: Meta<typeof ObcCompassFlat> = {
21
21
  heading: {control: {type: 'range', min: 0, max: 360, step: 1}},
22
22
  courseOverGround: {control: {type: 'range', min: 0, max: 360, step: 1}},
23
23
  },
24
- decorators: [widthDecorator, beta6Decorator],
24
+ decorators: [widthDecorator],
25
25
  } satisfies Meta<ObcCompassFlat>;
26
26
 
27
27
  export default meta;
@@ -1,12 +1,12 @@
1
1
  import type {Meta, StoryObj} from '@storybook/web-components';
2
2
  import {ObcMainEngine} from './main-engine';
3
3
  import './main-engine';
4
- import {beta6Decorator, widthDecorator} from '../../storybook-util';
4
+ import {widthDecorator} from '../../storybook-util';
5
5
  import {InstrumentState} from '../types';
6
6
 
7
7
  const meta: Meta<typeof ObcMainEngine> = {
8
8
  title: 'Navigation instruments/Main Engine',
9
- tags: ['autodocs'],
9
+ tags: ['autodocs', '6.0'],
10
10
  component: 'obc-main-engine',
11
11
  args: {
12
12
  width: 352,
@@ -25,7 +25,7 @@ const meta: Meta<typeof ObcMainEngine> = {
25
25
  options: Object.values(InstrumentState),
26
26
  },
27
27
  },
28
- decorators: [widthDecorator, beta6Decorator],
28
+ decorators: [widthDecorator],
29
29
  } satisfies Meta<ObcMainEngine>;
30
30
 
31
31
  export default meta;
@@ -2,11 +2,10 @@ import type {Meta, StoryObj} from '@storybook/web-components';
2
2
  import {ObcPoiGraphicLine} from './poi-graphic-line';
3
3
  import './poi-graphic-line';
4
4
  import {POIStyle} from './poi-config';
5
- import {beta6Decorator} from '../../storybook-util';
6
5
 
7
6
  const meta: Meta<typeof ObcPoiGraphicLine> = {
8
7
  title: 'Building blocks/POI Graphic Line',
9
- tags: ['autodocs'],
8
+ tags: ['autodocs', '6.0'],
10
9
  component: 'obc-poi-graphic-line',
11
10
  argTypes: {
12
11
  lineStyle: {
@@ -22,7 +21,7 @@ const meta: Meta<typeof ObcPoiGraphicLine> = {
22
21
  height: 100,
23
22
  lineStyle: POIStyle.Enhanced,
24
23
  },
25
- decorators: [beta6Decorator],
24
+ decorators: [],
26
25
  } satisfies Meta<ObcPoiGraphicLine>;
27
26
 
28
27
  export default meta;
@@ -2,11 +2,10 @@ import type {Meta, StoryObj} from '@storybook/web-components';
2
2
  import {ObcPoiLine} from './poi-line';
3
3
  import './poi-line';
4
4
  import {POIStyle} from '../poi-graphic-line/poi-config';
5
- import {beta6Decorator} from '../../storybook-util';
6
5
 
7
6
  const meta: Meta<typeof ObcPoiLine> = {
8
7
  title: 'Building blocks/POI Line',
9
- tags: ['autodocs'],
8
+ tags: ['autodocs', '6.0'],
10
9
  component: 'obc-poi-line',
11
10
  argTypes: {
12
11
  lineStyle: {
@@ -19,8 +18,6 @@ const meta: Meta<typeof ObcPoiLine> = {
19
18
  lineStyle: POIStyle.Enhanced,
20
19
  height: 100,
21
20
  },
22
-
23
- decorators: [beta6Decorator],
24
21
  } satisfies Meta<ObcPoiLine>;
25
22
 
26
23
  export default meta;
@@ -1,11 +1,10 @@
1
1
  import type {Meta, StoryObj} from '@storybook/web-components';
2
2
  import {ObcPoiTarget, Pointer} from './poi-target';
3
3
  import './poi-target';
4
- import {beta6Decorator} from '../../storybook-util';
5
4
 
6
5
  const meta: Meta<typeof ObcPoiTarget> = {
7
6
  title: 'Navigation Instruments/POI Target',
8
- tags: ['autodocs'],
7
+ tags: ['autodocs', '6.0'],
9
8
  component: 'obc-poi-target',
10
9
  args: {
11
10
  height: 188,
@@ -32,7 +31,6 @@ const meta: Meta<typeof ObcPoiTarget> = {
32
31
  control: {type: 'range', min: 0, max: 360},
33
32
  },
34
33
  },
35
- decorators: [beta6Decorator],
36
34
  } satisfies Meta<ObcPoiTarget>;
37
35
 
38
36
  export default meta;
@@ -1,11 +1,11 @@
1
1
  import type {Meta, StoryObj} from '@storybook/web-components';
2
2
  import {ObcRudder} from './rudder';
3
3
  import './rudder';
4
- import {beta6Decorator, widthDecorator} from '../../storybook-util';
4
+ import {widthDecorator} from '../../storybook-util';
5
5
 
6
6
  const meta: Meta<typeof ObcRudder> = {
7
7
  title: 'Navigation Instruments/Rudder',
8
- tags: ['autodocs'],
8
+ tags: ['autodocs', '6.0'],
9
9
  component: 'obc-rudder',
10
10
  args: {
11
11
  width: 512,
@@ -19,7 +19,7 @@ const meta: Meta<typeof ObcRudder> = {
19
19
  maxAngle: {control: {type: 'range', min: 1, max: 90, step: 1}},
20
20
  setpoint: {control: {type: 'range', min: -90, max: 90, step: 1}},
21
21
  },
22
- decorators: [widthDecorator, beta6Decorator],
22
+ decorators: [widthDecorator],
23
23
  } satisfies Meta<ObcRudder>;
24
24
 
25
25
  export default meta;
@@ -2,13 +2,13 @@ import type {Meta, StoryObj} from '@storybook/web-components';
2
2
  import {ObcThruster} from './thruster';
3
3
  import './thruster';
4
4
  import {InstrumentState} from '../types';
5
- import {beta6Decorator, widthDecorator} from '../../storybook-util';
5
+ import {widthDecorator} from '../../storybook-util';
6
6
  import {AdviceType} from '../watch/advice';
7
7
  import {PropellerType} from './propeller';
8
8
 
9
9
  const meta: Meta<typeof ObcThruster> = {
10
10
  title: 'Navigation instruments/Thruster',
11
- tags: ['autodocs'],
11
+ tags: ['autodocs', '6.0'],
12
12
  component: 'obc-thruster',
13
13
  args: {width: 320},
14
14
  argTypes: {
@@ -25,7 +25,7 @@ const meta: Meta<typeof ObcThruster> = {
25
25
  options: Object.values(PropellerType),
26
26
  },
27
27
  },
28
- decorators: [widthDecorator, beta6Decorator],
28
+ decorators: [widthDecorator],
29
29
  } satisfies Meta<ObcThruster>;
30
30
 
31
31
  export default meta;
@@ -101,30 +101,3 @@ export function widthDecorator(
101
101
  ${story()}
102
102
  </div>`;
103
103
  }
104
-
105
- export function beta6Decorator(story: () => unknown): HTMLTemplateResult {
106
- return html`
107
- <div
108
- style="
109
- border-radius: 100px;
110
- background-color: var(--instrument-enhanced-primary-color);
111
- color: var(--instrument-frame-primary-color);
112
- height: 32px;
113
- padding: 0 24px;
114
- box-sizing: border-box;
115
- width: fit-content;
116
- display: grid;
117
- place-content: center;
118
- font-family: 'Noto Sans';
119
- font-size: 16px;
120
- font-style: normal;
121
- font-weight: 570;
122
- line-height: 24px; /* 150% */
123
- margin-bottom: 64px;
124
- "
125
- >
126
- Beta 6.0
127
- </div>
128
- ${story()}
129
- `;
130
- }