@zanichelli/albe-web-components 16.3.1 → 16.3.3

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 (90) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/web-components-library.cjs.js +1 -1
  4. package/dist/cjs/z-app-header_12.cjs.entry.js +72 -19
  5. package/dist/cjs/z-app-header_12.cjs.entry.js.map +1 -1
  6. package/dist/cjs/z-menu-section.cjs.entry.js +28 -13
  7. package/dist/cjs/z-menu-section.cjs.entry.js.map +1 -1
  8. package/dist/cjs/z-menu.cjs.entry.js +96 -49
  9. package/dist/cjs/z-menu.cjs.entry.js.map +1 -1
  10. package/dist/cjs/z-navigation-tabs.cjs.entry.js +9 -5
  11. package/dist/cjs/z-navigation-tabs.cjs.entry.js.map +1 -1
  12. package/dist/collection/components/z-app-header/index.js +77 -15
  13. package/dist/collection/components/z-app-header/index.js.map +1 -1
  14. package/dist/collection/components/z-app-header/index.stories.js +50 -116
  15. package/dist/collection/components/z-app-header/index.stories.js.map +1 -1
  16. package/dist/collection/components/z-app-header/styles.css +39 -27
  17. package/dist/collection/components/z-menu/index.js +100 -48
  18. package/dist/collection/components/z-menu/index.js.map +1 -1
  19. package/dist/collection/components/z-menu/styles.css +40 -52
  20. package/dist/collection/components/z-menu-section/index.js +31 -16
  21. package/dist/collection/components/z-menu-section/index.js.map +1 -1
  22. package/dist/collection/components/z-menu-section/styles.css +8 -0
  23. package/dist/collection/components/z-navigation-tabs/index.js +9 -5
  24. package/dist/collection/components/z-navigation-tabs/index.js.map +1 -1
  25. package/dist/collection/components/z-offcanvas/styles.css +4 -4
  26. package/dist/collection/components/z-searchbar/index.js +14 -5
  27. package/dist/collection/components/z-searchbar/index.js.map +1 -1
  28. package/dist/components/index21.js +1 -1
  29. package/dist/components/index21.js.map +1 -1
  30. package/dist/components/index23.js +14 -5
  31. package/dist/components/index23.js.map +1 -1
  32. package/dist/components/z-app-header.js +61 -16
  33. package/dist/components/z-app-header.js.map +1 -1
  34. package/dist/components/z-menu-section.js +30 -15
  35. package/dist/components/z-menu-section.js.map +1 -1
  36. package/dist/components/z-menu.js +96 -50
  37. package/dist/components/z-menu.js.map +1 -1
  38. package/dist/components/z-navigation-tabs.js +9 -5
  39. package/dist/components/z-navigation-tabs.js.map +1 -1
  40. package/dist/esm/loader.js +1 -1
  41. package/dist/esm/web-components-library.js +1 -1
  42. package/dist/esm/z-app-header_12.entry.js +72 -19
  43. package/dist/esm/z-app-header_12.entry.js.map +1 -1
  44. package/dist/esm/z-menu-section.entry.js +28 -13
  45. package/dist/esm/z-menu-section.entry.js.map +1 -1
  46. package/dist/esm/z-menu.entry.js +96 -49
  47. package/dist/esm/z-menu.entry.js.map +1 -1
  48. package/dist/esm/z-navigation-tabs.entry.js +9 -5
  49. package/dist/esm/z-navigation-tabs.entry.js.map +1 -1
  50. package/dist/types/components/z-app-header/index.d.ts +8 -7
  51. package/dist/types/components/z-menu/index.d.ts +10 -2
  52. package/dist/types/components/z-menu-section/index.d.ts +4 -2
  53. package/dist/types/components/z-searchbar/index.d.ts +1 -0
  54. package/dist/types/components.d.ts +8 -0
  55. package/dist/web-components-library/p-02418303.entry.js +2 -0
  56. package/dist/web-components-library/p-02418303.entry.js.map +1 -0
  57. package/dist/web-components-library/p-587aa850.entry.js +2 -0
  58. package/dist/web-components-library/p-587aa850.entry.js.map +1 -0
  59. package/dist/web-components-library/p-8e5f1ae0.entry.js +2 -0
  60. package/dist/web-components-library/p-8e5f1ae0.entry.js.map +1 -0
  61. package/dist/web-components-library/{p-6db2fd46.entry.js → p-f9aa2d11.entry.js} +2 -2
  62. package/dist/web-components-library/{p-6db2fd46.entry.js.map → p-f9aa2d11.entry.js.map} +1 -1
  63. package/dist/web-components-library/web-components-library.esm.js +1 -1
  64. package/dist/web-components-library/web-components-library.esm.js.map +1 -1
  65. package/package.json +1 -1
  66. package/www/build/p-02418303.entry.js +2 -0
  67. package/www/build/p-02418303.entry.js.map +1 -0
  68. package/www/build/p-587aa850.entry.js +2 -0
  69. package/www/build/p-587aa850.entry.js.map +1 -0
  70. package/www/build/p-8e5f1ae0.entry.js +2 -0
  71. package/www/build/p-8e5f1ae0.entry.js.map +1 -0
  72. package/www/build/p-f7420b16.js +2 -0
  73. package/www/build/{p-6db2fd46.entry.js → p-f9aa2d11.entry.js} +2 -2
  74. package/www/build/{p-6db2fd46.entry.js.map → p-f9aa2d11.entry.js.map} +1 -1
  75. package/www/build/web-components-library.esm.js +1 -1
  76. package/www/build/web-components-library.esm.js.map +1 -1
  77. package/www/index.html +1 -1
  78. package/dist/web-components-library/p-04c39e8a.entry.js +0 -2
  79. package/dist/web-components-library/p-04c39e8a.entry.js.map +0 -1
  80. package/dist/web-components-library/p-0542a3c9.entry.js +0 -2
  81. package/dist/web-components-library/p-0542a3c9.entry.js.map +0 -1
  82. package/dist/web-components-library/p-16d625b3.entry.js +0 -2
  83. package/dist/web-components-library/p-16d625b3.entry.js.map +0 -1
  84. package/www/build/p-04c39e8a.entry.js +0 -2
  85. package/www/build/p-04c39e8a.entry.js.map +0 -1
  86. package/www/build/p-0542a3c9.entry.js +0 -2
  87. package/www/build/p-0542a3c9.entry.js.map +0 -1
  88. package/www/build/p-16d625b3.entry.js +0 -2
  89. package/www/build/p-16d625b3.entry.js.map +0 -1
  90. package/www/build/p-ae5cec65.js +0 -2
@@ -22,142 +22,76 @@ const StoryMeta = {
22
22
  },
23
23
  };
24
24
  export default StoryMeta;
25
- const menuTemplate = () => {
26
- return html `
27
- <z-menu slot="menu">
28
- <h3>Menu label 1</h3>
25
+ const menuItemsTemplate = () => {
26
+ return html `<a
27
+ href=""
28
+ slot="item"
29
+ >Item 1</a
30
+ >
31
+ <z-menu-section slot="item">
32
+ <h3>Item 2</h3>
29
33
  <a
30
34
  href=""
31
- slot="item"
32
- >Item 1</a
35
+ slot="section"
36
+ >Item 2.1</a
33
37
  >
34
38
  <a
35
39
  href=""
36
- slot="item"
37
- >Item 2</a
40
+ slot="section"
41
+ >Item 2.2</a
38
42
  >
39
- <z-menu-section slot="item">
40
- <h3>Item 3</h3>
41
- <a
42
- href=""
43
- slot="section"
44
- >Item 3.1</a
45
- >
46
- <a
47
- href=""
48
- slot="section"
49
- >Item 3.2</a
50
- >
51
- </z-menu-section>
52
- <z-menu-section slot="item">
53
- <h3>Item 4</h3>
54
- <a
55
- href=""
56
- slot="section"
57
- >Item 4.1</a
58
- >
59
- <a
60
- href=""
61
- slot="section"
62
- >Item 4.2</a
63
- >
64
- </z-menu-section>
43
+ </z-menu-section>
44
+ <z-menu-section slot="item">
45
+ <h3>Item 3</h3>
65
46
  <a
66
47
  href=""
67
- slot="item"
68
- >Item 5</a
48
+ slot="section"
49
+ >Item 3.1</a
69
50
  >
70
- </z-menu>
71
- <z-menu slot="menu">
72
- <a href>Menu label 2</a>
73
- </z-menu>
74
- <z-menu slot="menu">
75
- <h3>Menu label 3</h3>
76
51
  <a
77
52
  href=""
78
- slot="item"
79
- >Item 1</a
53
+ slot="section"
54
+ >Item 3.2</a
80
55
  >
56
+ </z-menu-section>
57
+ <a
58
+ href=""
59
+ slot="item"
60
+ >Item 4</a
61
+ >
62
+ <z-menu-section slot="item">
63
+ <h3>Item 5</h3>
81
64
  <a
82
65
  href=""
83
- slot="item"
84
- >Item 2</a
66
+ slot="section"
67
+ >Item 5.1</a
85
68
  >
86
- <z-menu-section slot="item">
87
- <h3>Item 3</h3>
88
- <a
89
- href=""
90
- slot="section"
91
- >Item 3.1</a
92
- >
93
- <a
94
- href=""
95
- slot="section"
96
- >Item 3.2</a
97
- >
98
- </z-menu-section>
99
- <z-menu-section slot="item">
100
- <h3>Item 4</h3>
101
- <a
102
- href=""
103
- slot="section"
104
- >Item 4.1</a
105
- >
106
- <a
107
- href=""
108
- slot="section"
109
- >Item 4.2</a
110
- >
111
- </z-menu-section>
112
69
  <a
113
70
  href=""
114
- slot="item"
115
- >Item 5</a
71
+ slot="section"
72
+ >Item 5.2</a
116
73
  >
74
+ </z-menu-section>`;
75
+ };
76
+ const menuTemplate = () => {
77
+ return html `
78
+ <z-menu slot="menu">
79
+ <h3>Menu label 1</h3>
80
+ ${menuItemsTemplate()}
117
81
  </z-menu>
82
+
83
+ <z-menu slot="menu">
84
+ <a href>Menu label 2</a>
85
+ </z-menu>
86
+
87
+ <z-menu slot="menu">
88
+ <h3>Menu label 3</h3>
89
+ ${menuItemsTemplate()}
90
+ </z-menu>
91
+
118
92
  <z-menu slot="menu">
119
93
  <h3>Menu label 4</h3>
120
- <a
121
- href=""
122
- slot="item"
123
- >Item 1</a
124
- >
125
- <a
126
- href=""
127
- slot="item"
128
- >Item 2</a
129
- >
130
- <z-menu-section slot="item">
131
- <h3>Item 3</h3>
132
- <a
133
- href=""
134
- slot="section"
135
- >Item 3.1</a
136
- >
137
- <a
138
- href=""
139
- slot="section"
140
- >Item 3.2</a
141
- >
142
- </z-menu-section>
143
- <z-menu-section slot="item">
144
- <h3>Item 4</h3>
145
- <a
146
- href=""
147
- slot="section"
148
- >Item 4.1</a
149
- >
150
- <a
151
- href=""
152
- slot="section"
153
- >Item 4.2</a
154
- >
155
- </z-menu-section>
156
- <a
157
- href=""
158
- slot="item"
159
- >Item 5</a
160
- >
94
+ ${menuItemsTemplate()}
161
95
  </z-menu>
162
96
  `;
163
97
  };
@@ -173,7 +107,7 @@ export const Title = {
173
107
  .enableZLogo=${args.enableZLogo}
174
108
  style="--app-header-content-max-width: ${args["--app-header-content-max-width"]}"
175
109
  >
176
- <h1 slot="title">Applicazione</h1>
110
+ <a href="zanichelli.it" slot="title">Applicazione</h1>
177
111
  </z-app-header>`,
178
112
  };
179
113
  export const ProductLogo = {
@@ -1 +1 @@
1
- {"version":3,"file":"index.stories.js","sourceRoot":"","sources":["../../../src/components/z-app-header/index.stories.ts"],"names":[],"mappings":"AACA,OAAO,EAAiB,IAAI,EAAC,MAAM,KAAK,CAAC;AAGzC,OAAO,yBAAyB,CAAC;AACjC,OA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AAI,CAAC,WAAW;+CACU,IAAI,CAAC,gCAAgC,CAAC;;;QAG7E,YAAY,EAAE;oBACF;CACH,CAAC;AAElB,MAAM,CAAC,MAAM,KAAK,GAAG;IACnB,UAAU,EAAE;QACV,CAAC,KAAK,EAAE,EAAE,CAAC,IAAI,CAAA;;mCAEgB,KAAK,EAAE;KACrC;KACF;IACD,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,aAAa,EAAE,KAAK;YACpB,YAAY,EAAE,OAAO;SACtB;QACD,QAAQ,EAAE;YACR,OAAO,EAAE,CAAC,iBAAiB,CAAC;SAC7B;KACF;IACD,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE,CACf,IAAI,CAAA;;qBAEa,IAAI,CAAC,WAAW;sBACf,IAAI,CAAC,YAAY;uBAChB,IAAI,CAAC,aAAa;+CACM,IAAI,CAAC,gCAAgC,CAAC;;;QAG7E,YAAY,EAAE;oBACF;CACH,CAAC;AAElB,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,UAAU,EAAE;QACV,QAAQ,EAAE;YACR,OAAO,EAAE,CAAC,eAAe,EAAE,cAAc,EAAE,iBAAiB,CAAC;SAC9D;KACF;IACD,UAAU,EAAE;QACV,CAAC,KAAK,EAAE,EAAE,CAAC,IAAI,CAAA;;;;QAIX,KAAK,EAAE;KACV;KACF;IACD,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE,CACf,IAAI,CAAA;;qBAEa,IAAI,CAAC,WAAW;;+CAEU,IAAI,CAAC,gCAAgC,CAAC;;;;QAI7E,YAAY,EAAE;oBACF;CACH,CAAC","sourcesContent":["import {Meta} from \"@storybook/web-components\";\nimport {TemplateResult, html} from \"lit\";\nimport {ZAppHeader} from \".\";\nimport {CSSVarsArguments} from \"../../utils/storybook-utils\";\nimport \"../z-menu-section/index\";\nimport \"../z-menu/index\";\nimport \"./index\";\nimport \"./index.stories.css\";\n\ntype ZAppHeaderStoriesArgs = ZAppHeader & CSSVarsArguments<\"app-header-content-max-width\">;\n\nconst StoryMeta = {\n title: \"ZAppHeader\",\n component: \"z-app-header\",\n parameters: {\n layout: \"fullscreen\",\n },\n subcomponents: {\n ZMenu: \"z-menu\",\n ZMenuSection: \"z-menu-section\",\n },\n args: {\n \"--app-header-content-max-width\": \"100%\",\n \"enableSearch\": false,\n \"searchPageUrl\": \"\",\n \"enableZLogo\": false,\n \"enableOffcanvas\": false,\n },\n} satisfies Meta<ZAppHeaderStoriesArgs>;\n\nexport default StoryMeta;\n\nconst menuTemplate = (): TemplateResult => {\n return html`\n <z-menu slot=\"menu\">\n <h3>Menu label 1</h3>\n <a\n href=\"\"\n slot=\"item\"\n >Item 1</a\n >\n <a\n href=\"\"\n slot=\"item\"\n >Item 2</a\n >\n <z-menu-section slot=\"item\">\n <h3>Item 3</h3>\n <a\n href=\"\"\n slot=\"section\"\n >Item 3.1</a\n >\n <a\n href=\"\"\n slot=\"section\"\n >Item 3.2</a\n >\n </z-menu-section>\n <z-menu-section slot=\"item\">\n <h3>Item 4</h3>\n <a\n href=\"\"\n slot=\"section\"\n >Item 4.1</a\n >\n <a\n href=\"\"\n slot=\"section\"\n >Item 4.2</a\n >\n </z-menu-section>\n <a\n href=\"\"\n slot=\"item\"\n >Item 5</a\n >\n </z-menu>\n <z-menu slot=\"menu\">\n <a href>Menu label 2</a>\n </z-menu>\n <z-menu slot=\"menu\">\n <h3>Menu label 3</h3>\n <a\n href=\"\"\n slot=\"item\"\n >Item 1</a\n >\n <a\n href=\"\"\n slot=\"item\"\n >Item 2</a\n >\n <z-menu-section slot=\"item\">\n <h3>Item 3</h3>\n <a\n href=\"\"\n slot=\"section\"\n >Item 3.1</a\n >\n <a\n href=\"\"\n slot=\"section\"\n >Item 3.2</a\n >\n </z-menu-section>\n <z-menu-section slot=\"item\">\n <h3>Item 4</h3>\n <a\n href=\"\"\n slot=\"section\"\n >Item 4.1</a\n >\n <a\n href=\"\"\n slot=\"section\"\n >Item 4.2</a\n >\n </z-menu-section>\n <a\n href=\"\"\n slot=\"item\"\n >Item 5</a\n >\n </z-menu>\n <z-menu slot=\"menu\">\n <h3>Menu label 4</h3>\n <a\n href=\"\"\n slot=\"item\"\n >Item 1</a\n >\n <a\n href=\"\"\n slot=\"item\"\n >Item 2</a\n >\n <z-menu-section slot=\"item\">\n <h3>Item 3</h3>\n <a\n href=\"\"\n slot=\"section\"\n >Item 3.1</a\n >\n <a\n href=\"\"\n slot=\"section\"\n >Item 3.2</a\n >\n </z-menu-section>\n <z-menu-section slot=\"item\">\n <h3>Item 4</h3>\n <a\n href=\"\"\n slot=\"section\"\n >Item 4.1</a\n >\n <a\n href=\"\"\n slot=\"section\"\n >Item 4.2</a\n >\n </z-menu-section>\n <a\n href=\"\"\n slot=\"item\"\n >Item 5</a\n >\n </z-menu>\n `;\n};\n\ntype Story = Meta<ZAppHeaderStoriesArgs>;\n\nexport const Title = {\n parameters: {\n controls: {\n exclude: [\"enableOffcanvas\"],\n },\n },\n render: (args) =>\n html`<z-app-header\n .enableSearch=${args.enableSearch}\n .searchPageUrl=${args.searchPageUrl}\n .enableZLogo=${args.enableZLogo}\n style=\"--app-header-content-max-width: ${args[\"--app-header-content-max-width\"]}\"\n >\n <h1 slot=\"title\">Applicazione</h1>\n </z-app-header>`,\n} satisfies Story;\n\nexport const ProductLogo = {\n parameters: {\n controls: {\n exclude: [\"enableOffcanvas\"],\n },\n },\n render: (args) =>\n html`<z-app-header\n .enableSearch=${args.enableSearch}\n .searchPageUrl=${args.searchPageUrl}\n .enableZLogo=${args.enableZLogo}\n style=\"--app-header-content-max-width: ${args[\"--app-header-content-max-width\"]}\"\n >\n <h1 slot=\"title\">Applicazione</h1>\n <div\n class=\"story-product-logo\"\n slot=\"product-logo\"\n ></div>\n </z-app-header>`,\n} satisfies Story;\n\nexport const TopTitle = {\n parameters: {\n controls: {\n exclude: [\"enableOffcanvas\", \"enableZLogo\"],\n },\n },\n render: (args) =>\n html`<z-app-header\n .enableSearch=${args.enableSearch}\n .searchPageUrl=${args.searchPageUrl}\n style=\"--app-header-content-max-width: ${args[\"--app-header-content-max-width\"]}\"\n >\n <h2 slot=\"top-subtitle\">Payoff dell'applicazione</h2>\n <h1 slot=\"title\">Applicazione</h1>\n </z-app-header>`,\n} satisfies Story;\n\nexport const MenuWithTopTitle = {\n parameters: {\n controls: {\n exclude: [\"enableZLogo\"],\n },\n },\n render: (args) =>\n html`<z-app-header\n .enableOffcanvas=${args.enableOffcanvas}\n .enableSearch=${args.enableSearch}\n .searchPageUrl=${args.searchPageUrl}\n style=\"--app-header-content-max-width: ${args[\"--app-header-content-max-width\"]}\"\n >\n <h2 slot=\"top-subtitle\">Payoff dell'applicazione</h2>\n <h1 slot=\"title\">Applicazione</h1>\n ${menuTemplate()}\n </z-app-header>`,\n} satisfies Story;\n\nexport const LongTitle = {\n parameters: {\n controls: {\n exclude: [\"enableOffcanvas\", \"enableZLogo\", \"enableSearch\", \"searchPageUrl\"],\n },\n },\n render: (args) =>\n html`<z-app-header style=\"--app-header-content-max-width: ${args[\"--app-header-content-max-width\"]}\">\n <h1 slot=\"title\">Fondamenti di fisica 8e - Meccanica, Onde, Termodinamica, Elettromagnetismo, Ottica</h1>\n <h2 slot=\"top-subtitle\">Jearl Walker, David Halliday, Robert Resnick</h2>\n ${menuTemplate()}\n </z-app-header>`,\n} satisfies Story;\n\nexport const OffcanvasMenu = {\n args: {\n enableOffcanvas: true,\n },\n render: (args) =>\n html`<z-app-header\n .enableOffcanvas=${args.enableOffcanvas}\n .enableSearch=${args.enableSearch}\n .searchPageUrl=${args.searchPageUrl}\n .enableZLogo=${args.enableZLogo}\n style=\"--app-header-content-max-width: ${args[\"--app-header-content-max-width\"]}\"\n >\n <h1 slot=\"title\">Applicazione</h1>\n ${menuTemplate()}\n </z-app-header>`,\n} satisfies Story;\n\nexport const Stuck = {\n decorators: [\n (Story) => html`\n <div style=\"padding: 16px var(--grid-margin)\">Scroll to see <code>stuck</code> prop in action.</div>\n <div style=\"height: 200vh\">${Story()}</div>\n `,\n ],\n parameters: {\n docs: {\n inlineStories: false,\n iframeHeight: \"400px\",\n },\n controls: {\n exclude: [\"enableOffcanvas\"],\n },\n },\n render: (args) =>\n html`<z-app-header\n stuck\n .enableZLogo=${args.enableZLogo}\n .enableSearch=${args.enableSearch}\n .searchPageUrl=${args.searchPageUrl}\n style=\"--app-header-content-max-width: ${args[\"--app-header-content-max-width\"]}; --app-header-top-offset: 0\"\n >\n <h1 slot=\"title\">Fondamenti di fisica 8e - Meccanica, Onde, Termodinamica, Elettromagnetismo, Ottica</h1>\n ${menuTemplate()}\n </z-app-header>`,\n} satisfies Story;\n\nexport const SearchPageButton = {\n parameters: {\n controls: {\n exclude: [\"searchPageUrl\", \"enableSearch\", \"enableOffcanvas\"],\n },\n },\n decorators: [\n (Story) => html`\n <div style=\"padding: 16px var(--grid-margin)\">\n The prop <code>searchPageUrl</code> only affects the component in tablet and mobile viewports.\n </div>\n ${Story()}\n `,\n ],\n render: (args) =>\n html`<z-app-header\n enable-search\n .enableZLogo=${args.enableZLogo}\n search-page-url=\"https://www.zanichelli.it\"\n style=\"--app-header-content-max-width: ${args[\"--app-header-content-max-width\"]}\"\n >\n <h1 slot=\"title\">Applicazione</h1>\n <h2 slot=\"subtitle\">Payoff dell'applicazione</h2>\n ${menuTemplate()}\n </z-app-header>`,\n} satisfies Story;\n"]}
1
+ {"version":3,"file":"index.stories.js","sourceRoot":"","sources":["../../../src/components/z-app-header/index.stories.ts"],"names":[],"mappings":"AACA,OAAO,EAAiB,IAAI,EAAC,MAAM,KAAK,CAAC;AAGzC,OAAO,yBAAyB,CAAC;AACjC,OAAO,iBAAiB,CAAC;AACzB,OAAO,SAAS,CAAC;AACjB,OAAO,qBAAqB,CAAC;AAI7B,MAAM,SAAS,GAAG;IAChB,KAAK,EAAE,YAAY;IACnB,SAAS,EAAE,cAAc;IACzB,UAAU,EAAE;QACV,MAAM,EAAE,YAAY;KACrB;IACD,aAAa,EAAE;QACb,KAAK,EAAE,QAAQ;QACf,YAAY,EAAE,gB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AAI,CAAA;;mCAEgB,KAAK,EAAE;KACrC;KACF;IACD,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,aAAa,EAAE,KAAK;YACpB,YAAY,EAAE,OAAO;SACtB;QACD,QAAQ,EAAE;YACR,OAAO,EAAE,CAAC,iBAAiB,CAAC;SAC7B;KACF;IACD,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE,CACf,IAAI,CAAA;;qBAEa,IAAI,CAAC,WAAW;sBACf,IAAI,CAAC,YAAY;uBAChB,IAAI,CAAC,aAAa;+CACM,IAAI,CAAC,gCAAgC,CAAC;;;QAG7E,YAAY,EAAE;oBACF;CACH,CAAC;AAElB,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,UAAU,EAAE;QACV,QAAQ,EAAE;YACR,OAAO,EAAE,CAAC,eAAe,EAAE,cAAc,EAAE,iBAAiB,CAAC;SAC9D;KACF;IACD,UAAU,EAAE;QACV,CAAC,KAAK,EAAE,EAAE,CAAC,IAAI,CAAA;;;;QAIX,KAAK,EAAE;KACV;KACF;IACD,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE,CACf,IAAI,CAAA;;qBAEa,IAAI,CAAC,WAAW;;+CAEU,IAAI,CAAC,gCAAgC,CAAC;;;;QAI7E,YAAY,EAAE;oBACF;CACH,CAAC","sourcesContent":["import {Meta} from \"@storybook/web-components\";\nimport {TemplateResult, html} from \"lit\";\nimport {ZAppHeader} from \".\";\nimport {CSSVarsArguments} from \"../../utils/storybook-utils\";\nimport \"../z-menu-section/index\";\nimport \"../z-menu/index\";\nimport \"./index\";\nimport \"./index.stories.css\";\n\ntype ZAppHeaderStoriesArgs = ZAppHeader & CSSVarsArguments<\"app-header-content-max-width\">;\n\nconst StoryMeta = {\n title: \"ZAppHeader\",\n component: \"z-app-header\",\n parameters: {\n layout: \"fullscreen\",\n },\n subcomponents: {\n ZMenu: \"z-menu\",\n ZMenuSection: \"z-menu-section\",\n },\n args: {\n \"--app-header-content-max-width\": \"100%\",\n \"enableSearch\": false,\n \"searchPageUrl\": \"\",\n \"enableZLogo\": false,\n \"enableOffcanvas\": false,\n },\n} satisfies Meta<ZAppHeaderStoriesArgs>;\n\nexport default StoryMeta;\n\nconst menuItemsTemplate = (): TemplateResult => {\n return html`<a\n href=\"\"\n slot=\"item\"\n >Item 1</a\n >\n <z-menu-section slot=\"item\">\n <h3>Item 2</h3>\n <a\n href=\"\"\n slot=\"section\"\n >Item 2.1</a\n >\n <a\n href=\"\"\n slot=\"section\"\n >Item 2.2</a\n >\n </z-menu-section>\n <z-menu-section slot=\"item\">\n <h3>Item 3</h3>\n <a\n href=\"\"\n slot=\"section\"\n >Item 3.1</a\n >\n <a\n href=\"\"\n slot=\"section\"\n >Item 3.2</a\n >\n </z-menu-section>\n <a\n href=\"\"\n slot=\"item\"\n >Item 4</a\n >\n <z-menu-section slot=\"item\">\n <h3>Item 5</h3>\n <a\n href=\"\"\n slot=\"section\"\n >Item 5.1</a\n >\n <a\n href=\"\"\n slot=\"section\"\n >Item 5.2</a\n >\n </z-menu-section>`;\n};\n\nconst menuTemplate = (): TemplateResult => {\n return html`\n <z-menu slot=\"menu\">\n <h3>Menu label 1</h3>\n ${menuItemsTemplate()}\n </z-menu>\n\n <z-menu slot=\"menu\">\n <a href>Menu label 2</a>\n </z-menu>\n\n <z-menu slot=\"menu\">\n <h3>Menu label 3</h3>\n ${menuItemsTemplate()}\n </z-menu>\n\n <z-menu slot=\"menu\">\n <h3>Menu label 4</h3>\n ${menuItemsTemplate()}\n </z-menu>\n `;\n};\n\ntype Story = Meta<ZAppHeaderStoriesArgs>;\n\nexport const Title = {\n parameters: {\n controls: {\n exclude: [\"enableOffcanvas\"],\n },\n },\n render: (args) =>\n html`<z-app-header\n .enableSearch=${args.enableSearch}\n .searchPageUrl=${args.searchPageUrl}\n .enableZLogo=${args.enableZLogo}\n style=\"--app-header-content-max-width: ${args[\"--app-header-content-max-width\"]}\"\n >\n <a href=\"zanichelli.it\" slot=\"title\">Applicazione</h1>\n </z-app-header>`,\n} satisfies Story;\n\nexport const ProductLogo = {\n parameters: {\n controls: {\n exclude: [\"enableOffcanvas\"],\n },\n },\n render: (args) =>\n html`<z-app-header\n .enableSearch=${args.enableSearch}\n .searchPageUrl=${args.searchPageUrl}\n .enableZLogo=${args.enableZLogo}\n style=\"--app-header-content-max-width: ${args[\"--app-header-content-max-width\"]}\"\n >\n <h1 slot=\"title\">Applicazione</h1>\n <div\n class=\"story-product-logo\"\n slot=\"product-logo\"\n ></div>\n </z-app-header>`,\n} satisfies Story;\n\nexport const TopTitle = {\n parameters: {\n controls: {\n exclude: [\"enableOffcanvas\", \"enableZLogo\"],\n },\n },\n render: (args) =>\n html`<z-app-header\n .enableSearch=${args.enableSearch}\n .searchPageUrl=${args.searchPageUrl}\n style=\"--app-header-content-max-width: ${args[\"--app-header-content-max-width\"]}\"\n >\n <h2 slot=\"top-subtitle\">Payoff dell'applicazione</h2>\n <h1 slot=\"title\">Applicazione</h1>\n </z-app-header>`,\n} satisfies Story;\n\nexport const MenuWithTopTitle = {\n parameters: {\n controls: {\n exclude: [\"enableZLogo\"],\n },\n },\n render: (args) =>\n html`<z-app-header\n .enableOffcanvas=${args.enableOffcanvas}\n .enableSearch=${args.enableSearch}\n .searchPageUrl=${args.searchPageUrl}\n style=\"--app-header-content-max-width: ${args[\"--app-header-content-max-width\"]}\"\n >\n <h2 slot=\"top-subtitle\">Payoff dell'applicazione</h2>\n <h1 slot=\"title\">Applicazione</h1>\n ${menuTemplate()}\n </z-app-header>`,\n} satisfies Story;\n\nexport const LongTitle = {\n parameters: {\n controls: {\n exclude: [\"enableOffcanvas\", \"enableZLogo\", \"enableSearch\", \"searchPageUrl\"],\n },\n },\n render: (args) =>\n html`<z-app-header style=\"--app-header-content-max-width: ${args[\"--app-header-content-max-width\"]}\">\n <h1 slot=\"title\">Fondamenti di fisica 8e - Meccanica, Onde, Termodinamica, Elettromagnetismo, Ottica</h1>\n <h2 slot=\"top-subtitle\">Jearl Walker, David Halliday, Robert Resnick</h2>\n ${menuTemplate()}\n </z-app-header>`,\n} satisfies Story;\n\nexport const OffcanvasMenu = {\n args: {\n enableOffcanvas: true,\n },\n render: (args) =>\n html`<z-app-header\n .enableOffcanvas=${args.enableOffcanvas}\n .enableSearch=${args.enableSearch}\n .searchPageUrl=${args.searchPageUrl}\n .enableZLogo=${args.enableZLogo}\n style=\"--app-header-content-max-width: ${args[\"--app-header-content-max-width\"]}\"\n >\n <h1 slot=\"title\">Applicazione</h1>\n ${menuTemplate()}\n </z-app-header>`,\n} satisfies Story;\n\nexport const Stuck = {\n decorators: [\n (Story) => html`\n <div style=\"padding: 16px var(--grid-margin)\">Scroll to see <code>stuck</code> prop in action.</div>\n <div style=\"height: 200vh\">${Story()}</div>\n `,\n ],\n parameters: {\n docs: {\n inlineStories: false,\n iframeHeight: \"400px\",\n },\n controls: {\n exclude: [\"enableOffcanvas\"],\n },\n },\n render: (args) =>\n html`<z-app-header\n stuck\n .enableZLogo=${args.enableZLogo}\n .enableSearch=${args.enableSearch}\n .searchPageUrl=${args.searchPageUrl}\n style=\"--app-header-content-max-width: ${args[\"--app-header-content-max-width\"]}; --app-header-top-offset: 0\"\n >\n <h1 slot=\"title\">Fondamenti di fisica 8e - Meccanica, Onde, Termodinamica, Elettromagnetismo, Ottica</h1>\n ${menuTemplate()}\n </z-app-header>`,\n} satisfies Story;\n\nexport const SearchPageButton = {\n parameters: {\n controls: {\n exclude: [\"searchPageUrl\", \"enableSearch\", \"enableOffcanvas\"],\n },\n },\n decorators: [\n (Story) => html`\n <div style=\"padding: 16px var(--grid-margin)\">\n The prop <code>searchPageUrl</code> only affects the component in tablet and mobile viewports.\n </div>\n ${Story()}\n `,\n ],\n render: (args) =>\n html`<z-app-header\n enable-search\n .enableZLogo=${args.enableZLogo}\n search-page-url=\"https://www.zanichelli.it\"\n style=\"--app-header-content-max-width: ${args[\"--app-header-content-max-width\"]}\"\n >\n <h1 slot=\"title\">Applicazione</h1>\n <h2 slot=\"subtitle\">Payoff dell'applicazione</h2>\n ${menuTemplate()}\n </z-app-header>`,\n} satisfies Story;\n"]}
@@ -42,7 +42,7 @@
42
42
  align-items: baseline;
43
43
  padding: calc(var(--space-unit) * 2);
44
44
  margin: 0 auto;
45
- background: var(--app-header-bg);
45
+ background: var(--app-header-bg, var(--color-surface01));
46
46
  }
47
47
 
48
48
  :host(:empty) .heading-panel {
@@ -83,7 +83,12 @@
83
83
  align-items: flex-start;
84
84
  }
85
85
 
86
- .z-logo {
86
+ .heading-title:not(:last-child) {
87
+ margin-right: var(--space-unit);
88
+ }
89
+
90
+ .z-logo,
91
+ .search-page-button {
87
92
  display: flex;
88
93
  height: calc(var(--title-font-size) * var(--title-line-height));
89
94
  align-items: center;
@@ -103,14 +108,19 @@
103
108
  width: 32px;
104
109
  height: 32px;
105
110
  margin-right: var(--space-unit);
106
- border-radius: 50%;
111
+ }
112
+
113
+ .product-logo ::slotted([slot="product-logo"]) img {
114
+ width: 100%;
115
+ height: 100%;
116
+ object-fit: cover;
107
117
  }
108
118
 
109
119
  ::slotted([slot="title"]),
110
120
  ::slotted([slot="stucked-title"]),
111
121
  .stucked-title {
112
122
  margin: 0;
113
- color: var(--app-header-text-color, var(--gray950));
123
+ color: var(--app-header-text-color, var(--color-default-text));
114
124
  font-family: var(--font-family-serif);
115
125
  font-weight: var(--font-sb);
116
126
  }
@@ -118,7 +128,6 @@
118
128
  ::slotted([slot="title"]) {
119
129
  display: -webkit-box;
120
130
  overflow: hidden;
121
- flex-grow: 1;
122
131
  -webkit-box-orient: vertical;
123
132
  font-size: var(--title-font-size);
124
133
  -webkit-line-clamp: 2;
@@ -127,6 +136,10 @@
127
136
  text-overflow: ellipsis;
128
137
  }
129
138
 
139
+ ::slotted(a:is([slot="title"], [slot="stucked-title"])) {
140
+ text-decoration: none;
141
+ }
142
+
130
143
  :host([enable-search]) ::slotted([slot="title"]) + * {
131
144
  margin-left: calc(var(--space-unit) * 2);
132
145
  }
@@ -150,6 +163,10 @@
150
163
  line-clamp: 2;
151
164
  }
152
165
 
166
+ .search-page-button {
167
+ margin-left: auto;
168
+ }
169
+
153
170
  .menu-container {
154
171
  display: flex;
155
172
  flex: 1 auto;
@@ -186,7 +203,6 @@ z-searchbar {
186
203
  display: flex;
187
204
  width: 100%;
188
205
  align-items: center;
189
- padding-top: calc(var(--space-unit) * 2);
190
206
  }
191
207
 
192
208
  .heading-stuck {
@@ -218,10 +234,6 @@ z-searchbar {
218
234
  align-items: center;
219
235
  }
220
236
 
221
- .heading-stuck .heading-title:not(:last-child) {
222
- margin-right: calc(var(--space-unit) * 2);
223
- }
224
-
225
237
  .heading-stuck .stucked-title {
226
238
  overflow: hidden;
227
239
  font-size: var(--title-font-size);
@@ -230,10 +242,6 @@ z-searchbar {
230
242
  white-space: nowrap;
231
243
  }
232
244
 
233
- .heading-stuck-content z-button.search-page-button {
234
- margin-left: auto;
235
- }
236
-
237
245
  .drawer-trigger {
238
246
  display: flex;
239
247
  height: calc(var(--title-font-size) * var(--title-line-height));
@@ -257,17 +265,17 @@ z-searchbar {
257
265
  --z-icon-width: calc(var(--space-unit) * 4);
258
266
  --z-icon-height: calc(var(--space-unit) * 4);
259
267
 
260
- fill: currentcolor;
261
- }
262
-
263
- .heading-container z-button.search-page-button {
264
- margin-left: auto;
268
+ fill: var(--color-default-icon);
265
269
  }
266
270
 
267
271
  .drawer-content {
268
272
  display: none;
269
273
  }
270
274
 
275
+ z-offcanvas {
276
+ --z-offcanvas--top-space: var(--app-header-top-offset);
277
+ }
278
+
271
279
  z-offcanvas[open] .drawer-content {
272
280
  display: flex;
273
281
  width: 100%;
@@ -290,14 +298,23 @@ z-offcanvas[open] .drawer-content ::slotted(z-menu) {
290
298
  background: transparent;
291
299
  border-radius: 0;
292
300
  cursor: pointer;
293
- fill: currentcolor;
294
301
  outline: none;
295
302
  }
296
303
 
297
- .drawer-close:focus-visible {
304
+ .drawer-close z-icon {
305
+ fill: var(--color-default-icon);
306
+ }
307
+
308
+ .drawer-close:focus:focus-visible {
298
309
  box-shadow: var(--shadow-focus-primary);
299
310
  }
300
311
 
312
+ @media (max-width: 767px) {
313
+ :host([enable-search]) .heading-panel .heading-container {
314
+ row-gap: calc(var(--space-unit) * 1.5);
315
+ }
316
+ }
317
+
301
318
  /* Tablet breakpoint */
302
319
  @media (min-width: 768px) {
303
320
  .heading-panel {
@@ -325,14 +342,10 @@ z-offcanvas[open] .drawer-content ::slotted(z-menu) {
325
342
  align-items: center;
326
343
  }
327
344
 
328
- :host([enable-search]:not([search-page-url])) .heading-container .heading-title {
329
- flex-wrap: nowrap;
330
- }
331
-
332
345
  z-searchbar {
333
346
  width: 30%;
334
347
  height: calc(var(--title-font-size) * var(--title-line-height));
335
- padding-top: 0;
348
+ margin-left: auto;
336
349
  }
337
350
 
338
351
  .menu-container {
@@ -369,7 +382,6 @@ z-offcanvas[open] .drawer-content ::slotted(z-menu) {
369
382
  @media (min-width: 1152px) {
370
383
  z-searchbar {
371
384
  min-width: calc(var(--space-unit) * 45);
372
- flex: initial;
373
385
  }
374
386
  }
375
387