@supersoniks/concorde 3.0.12 → 3.1.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.
Files changed (108) hide show
  1. package/build-infos.json +1 -1
  2. package/concorde-core.bundle.js +129 -124
  3. package/concorde-core.es.js +1117 -1101
  4. package/dist/concorde-core.bundle.js +129 -124
  5. package/dist/concorde-core.es.js +1117 -1101
  6. package/dist/fonts/ClashGrotesk-Bold.eot +0 -0
  7. package/dist/fonts/ClashGrotesk-Bold.ttf +0 -0
  8. package/dist/fonts/ClashGrotesk-Bold.woff +0 -0
  9. package/dist/fonts/ClashGrotesk-Bold.woff2 +0 -0
  10. package/dist/fonts/ClashGrotesk-Extralight.eot +0 -0
  11. package/dist/fonts/ClashGrotesk-Extralight.ttf +0 -0
  12. package/dist/fonts/ClashGrotesk-Extralight.woff +0 -0
  13. package/dist/fonts/ClashGrotesk-Extralight.woff2 +0 -0
  14. package/dist/fonts/ClashGrotesk-Light.eot +0 -0
  15. package/dist/fonts/ClashGrotesk-Light.ttf +0 -0
  16. package/dist/fonts/ClashGrotesk-Light.woff +0 -0
  17. package/dist/fonts/ClashGrotesk-Light.woff2 +0 -0
  18. package/dist/fonts/ClashGrotesk-Medium.eot +0 -0
  19. package/dist/fonts/ClashGrotesk-Medium.ttf +0 -0
  20. package/dist/fonts/ClashGrotesk-Medium.woff +0 -0
  21. package/dist/fonts/ClashGrotesk-Medium.woff2 +0 -0
  22. package/dist/fonts/ClashGrotesk-Regular.eot +0 -0
  23. package/dist/fonts/ClashGrotesk-Regular.ttf +0 -0
  24. package/dist/fonts/ClashGrotesk-Regular.woff +0 -0
  25. package/dist/fonts/ClashGrotesk-Regular.woff2 +0 -0
  26. package/dist/fonts/ClashGrotesk-Semibold.eot +0 -0
  27. package/dist/fonts/ClashGrotesk-Semibold.ttf +0 -0
  28. package/dist/fonts/ClashGrotesk-Semibold.woff +0 -0
  29. package/dist/fonts/ClashGrotesk-Semibold.woff2 +0 -0
  30. package/dist/fonts/ClashGrotesk-Variable.eot +0 -0
  31. package/dist/fonts/ClashGrotesk-Variable.ttf +0 -0
  32. package/dist/fonts/ClashGrotesk-Variable.woff +0 -0
  33. package/dist/fonts/ClashGrotesk-Variable.woff2 +0 -0
  34. package/dist/img/concorde-icon.svg +5 -0
  35. package/dist/img/concorde_seuil.png.webp +0 -0
  36. package/dist/img/concorde_seuil_invert.png +0 -0
  37. package/index.html +67 -108
  38. package/package.json +2 -2
  39. package/public/fonts/ClashGrotesk-Bold.eot +0 -0
  40. package/public/fonts/ClashGrotesk-Bold.ttf +0 -0
  41. package/public/fonts/ClashGrotesk-Bold.woff +0 -0
  42. package/public/fonts/ClashGrotesk-Bold.woff2 +0 -0
  43. package/public/fonts/ClashGrotesk-Extralight.eot +0 -0
  44. package/public/fonts/ClashGrotesk-Extralight.ttf +0 -0
  45. package/public/fonts/ClashGrotesk-Extralight.woff +0 -0
  46. package/public/fonts/ClashGrotesk-Extralight.woff2 +0 -0
  47. package/public/fonts/ClashGrotesk-Light.eot +0 -0
  48. package/public/fonts/ClashGrotesk-Light.ttf +0 -0
  49. package/public/fonts/ClashGrotesk-Light.woff +0 -0
  50. package/public/fonts/ClashGrotesk-Light.woff2 +0 -0
  51. package/public/fonts/ClashGrotesk-Medium.eot +0 -0
  52. package/public/fonts/ClashGrotesk-Medium.ttf +0 -0
  53. package/public/fonts/ClashGrotesk-Medium.woff +0 -0
  54. package/public/fonts/ClashGrotesk-Medium.woff2 +0 -0
  55. package/public/fonts/ClashGrotesk-Regular.eot +0 -0
  56. package/public/fonts/ClashGrotesk-Regular.ttf +0 -0
  57. package/public/fonts/ClashGrotesk-Regular.woff +0 -0
  58. package/public/fonts/ClashGrotesk-Regular.woff2 +0 -0
  59. package/public/fonts/ClashGrotesk-Semibold.eot +0 -0
  60. package/public/fonts/ClashGrotesk-Semibold.ttf +0 -0
  61. package/public/fonts/ClashGrotesk-Semibold.woff +0 -0
  62. package/public/fonts/ClashGrotesk-Semibold.woff2 +0 -0
  63. package/public/fonts/ClashGrotesk-Variable.eot +0 -0
  64. package/public/fonts/ClashGrotesk-Variable.ttf +0 -0
  65. package/public/fonts/ClashGrotesk-Variable.woff +0 -0
  66. package/public/fonts/ClashGrotesk-Variable.woff2 +0 -0
  67. package/public/img/concorde-icon.svg +5 -0
  68. package/public/img/concorde_seuil.png.webp +0 -0
  69. package/public/img/concorde_seuil_invert.png +0 -0
  70. package/public/img/paul_metrand.jpg +0 -0
  71. package/public/img/paul_metrand_xs.jpg +0 -0
  72. package/src/core/components/functional/list/list.md +8 -3
  73. package/src/core/components/ui/_css/scroll.ts +3 -2
  74. package/src/core/components/ui/_css/size.ts +5 -1
  75. package/src/core/components/ui/form/checkbox/checkbox.ts +31 -21
  76. package/src/core/components/ui/form/input/input.ts +70 -36
  77. package/src/core/components/ui/form/select/select.ts +1 -0
  78. package/src/core/components/ui/form/textarea/textarea.md +2 -3
  79. package/src/core/components/ui/form/textarea/textarea.ts +51 -24
  80. package/src/core/components/ui/menu/menu-item.ts +3 -3
  81. package/src/core/components/ui/pop/pop.ts +54 -19
  82. package/src/core/components/ui/progress/progress.md +4 -6
  83. package/src/core/components/ui/progress/progress.ts +28 -13
  84. package/src/core/components/ui/table/table.md +15 -27
  85. package/src/core/components/ui/table/table.ts +26 -15
  86. package/src/core/components/ui/theme/theme-collection/core-variables.ts +20 -12
  87. package/src/core/components/ui/theme/theme.ts +28 -22
  88. package/src/core/components/ui/toast/toast.ts +1 -3
  89. package/src/core/components/ui/tooltip/tooltip.md +45 -0
  90. package/src/core/components/ui/tooltip/tooltip.ts +63 -18
  91. package/src/core/mixins/FormElement.ts +50 -24
  92. package/src/core/utils/PublisherProxy.ts +15 -11
  93. package/src/docs/_core-concept/subscriber.md +1 -1
  94. package/src/docs/_getting-started/concorde-outside.md +12 -10
  95. package/src/docs/_getting-started/create-a-component.md +1 -1
  96. package/src/docs/_getting-started/my-first-subscriber.md +174 -0
  97. package/src/docs/_getting-started/pubsub.md +1 -1
  98. package/src/docs/_getting-started/start.md +19 -17
  99. package/src/docs/docs.ts +1 -0
  100. package/src/docs/example/users.ts +43 -48
  101. package/src/docs/header/header.ts +217 -0
  102. package/src/docs/navigation/navigation.ts +123 -51
  103. package/src/docs/search/docs-search.json +223 -103
  104. package/src/docs/search/page.ts +4 -5
  105. package/src/docs/search/search.ts +20 -3
  106. package/src/docs/tailwind/css/tailwind.css +146 -0
  107. package/tailwind.config.js +19 -24
  108. package/vite/config.js +19 -1
@@ -0,0 +1,217 @@
1
+ import { html, LitElement, nothing } from "lit";
2
+ import { customElement, state } from "lit/decorators.js";
3
+ import Subscriber from "@supersoniks/concorde/core/mixins/Subscriber";
4
+ import { tailwind } from "../tailwind";
5
+ import { animate } from "@lit-labs/motion";
6
+ import { Theme } from "@supersoniks/concorde/core/components/ui/theme/theme";
7
+ const tagName = "sonic-docs-header"; // For Astro.build
8
+ @customElement(tagName)
9
+ export class SonicComponent extends Subscriber(LitElement) {
10
+ static styles = [tailwind];
11
+
12
+ @state() theme: "dark" | "light" = "light";
13
+ @state() searchVisible = false;
14
+
15
+ connectedCallback() {
16
+ this.handleColorScheme();
17
+ super.connectedCallback();
18
+
19
+ // if escape key is pressed and search is visible, hide search
20
+ document.addEventListener("keydown", (e) => {
21
+ if (e.key === "Escape" && this.searchVisible) {
22
+ this.hideSearch();
23
+ }
24
+ });
25
+
26
+ // ctrl + k to toggle search
27
+ document.addEventListener("keydown", (e) => {
28
+ if (e.ctrlKey && e.key === "k") {
29
+ this.toggleSearch();
30
+ e.preventDefault();
31
+ }
32
+ // command + k to toggle search
33
+ if (e.metaKey && e.key === "k") {
34
+ this.toggleSearch();
35
+ e.preventDefault();
36
+ }
37
+ });
38
+
39
+ // on hash change, hide search
40
+ window.addEventListener("hashchange", () => {
41
+ this.hideSearch();
42
+ });
43
+ }
44
+
45
+ handleColorScheme() {
46
+ const themeComponent = document.querySelector("sonic-theme") as Theme;
47
+ if (
48
+ localStorage.sonicTheme === "dark" ||
49
+ (!("sonicTheme" in localStorage) &&
50
+ window.matchMedia("(prefers-color-scheme: dark)").matches)
51
+ ) {
52
+ document.documentElement.setAttribute("data-concorde-theme", "dark");
53
+ document.documentElement.classList.add("dark");
54
+ this.theme = "dark";
55
+ themeComponent.theme = "dark";
56
+ } else {
57
+ document.documentElement.classList.remove("dark");
58
+ document.documentElement.setAttribute("data-concorde-theme", "light");
59
+ this.theme = "light";
60
+ themeComponent.theme = "light";
61
+ }
62
+ }
63
+
64
+ setMode(theme: "dark" | "light") {
65
+ localStorage.sonicTheme = theme;
66
+ this.handleColorScheme();
67
+ }
68
+
69
+ hideSearch() {
70
+ this.searchVisible = false;
71
+ }
72
+ toggleSearch() {
73
+ this.searchVisible = !this.searchVisible;
74
+ }
75
+
76
+ render() {
77
+ return html`<div
78
+ class="flex items-center gap-4 border-b-[.18rem] text-content border-current py-3 sticky top-0 z-40 bg-neutral-0"
79
+ >
80
+ <div class="">
81
+ <sonic-link href="/" class="flex items-end gap-x-1">
82
+ <svg
83
+ class="size-[2.4rem] inline-block rotate-[55deg] "
84
+ viewBox="0 0 66 66"
85
+ fill="none"
86
+ xmlns="http://www.w3.org/2000/svg"
87
+
88
+ >
89
+ <circle cx="33" cy="33" r="30" fill="var(--sc-base-content)" />
90
+ <path
91
+ d="M33.2499 62.03C33.8799 59.24 34.26 56.17 34.39 53.08C34.57 52.78 34.9099 52.6 35.2599 52.64H35.39C35.48 52.64 35.5799 52.64 35.6899 52.64H35.7599C35.7599 52.64 35.7999 52.64 35.8299 52.64C36.2499 52.62 36.6799 52.58 36.9099 52.56C36.9399 52.56 36.9599 52.56 36.9799 52.56C37.0099 52.56 37.0299 52.56 37.0499 52.56H37.0899L37.2099 51.93H37.4799L37.5799 52.4L37.6899 52.49H39.2699L39.39 52.38L39.5099 51.93H39.7899L39.8399 52.21L39.9999 52.29L45.2099 51.86L46.2799 51.29C46.2799 51.29 46.2799 50.85 46.2399 50.25V50.18C46.2399 50.18 46.2399 50.13 46.2399 50.11C46.2099 49.62 46.1399 49.13 46.0399 48.65C45.7899 47.45 45.29 46 42.2 41.58C39.11 37.16 38.04 35.52 35.89 27.63C35.85 27.48 35.8199 27.35 35.7899 27.2C35.1399 24.53 34.6899 22.95 34.5199 22.38V10.89C34.4999 9.60996 34.3999 8.33996 34.2099 7.07996C34.0499 5.97996 33.6099 4.89996 33.3499 3.95996H32.6299C32.3599 4.89996 31.9299 5.97996 31.7699 7.06996C31.5799 8.33996 31.4799 9.60996 31.4599 10.89V22.38C31.2899 22.95 30.8299 24.52 30.1899 27.2C30.1599 27.35 30.1199 27.49 30.0899 27.63C27.9499 35.52 26.8699 37.16 23.7799 41.58C20.6899 46 20.1899 47.45 19.9399 48.65C19.8399 49.13 19.7799 49.62 19.7399 50.11C19.7399 50.13 19.7399 50.16 19.7399 50.18V50.25C19.6999 50.85 19.7 51.29 19.7 51.29L20.7699 51.86L25.9799 52.29L26.14 52.21L26.1899 51.93H26.4799L26.5999 52.38L26.7299 52.49H28.2999L28.4099 52.4L28.5099 51.93H28.7699L28.89 52.56H28.9399C28.9399 52.56 28.9799 52.56 29.0099 52.56C29.0299 52.56 29.0499 52.56 29.0799 52.56C29.3099 52.58 29.7499 52.63 30.1599 52.64C30.1799 52.64 30.2099 52.64 30.2299 52.64H30.2999C30.4099 52.64 30.5099 52.64 30.5999 52.64H30.7299C31.0799 52.6 31.4299 52.77 31.6099 53.08C31.7299 56.17 32.1099 59.24 32.7399 62.03H33.2499Z"
92
+ fill="var(--sc-base)"
93
+ />
94
+ </svg>
95
+
96
+ <span class="font-headings text-4xl leading-none inline-block italic font-medium"
97
+ >concorde</span
98
+ >
99
+ </sonic-link>
100
+ </div>
101
+
102
+ <div class="ml-auto flex gap-x-3 ">
103
+ <sonic-button
104
+ @click=${() => (this.searchVisible = !this.searchVisible)}
105
+ class="lg:min-w-[19rem]"
106
+ align="left"
107
+ >
108
+ Quick search...
109
+ <sonic-icon
110
+ name="magnifying-glass"
111
+ library="custom"
112
+ slot="prefix"
113
+ ></sonic-icon>
114
+ </sonic-button>
115
+
116
+ <sonic-pop>
117
+ <sonic-button shape="circle" variant="ghost" icon>
118
+ ${
119
+ this.theme == "light"
120
+ ? html`<sonic-icon name="sun" library="custom"></sonic-icon>`
121
+ : html`<sonic-icon name="moon" library="custom"></sonic-icon>`
122
+ }
123
+ </sonic-button>
124
+
125
+ <sonic-menu slot="content">
126
+ <sonic-menu-item
127
+ ?active="${this.theme == "light"}"
128
+ @click=${() => this.setMode("light")}
129
+ >
130
+ <sonic-icon
131
+ name="sun"
132
+ library="custom"
133
+ slot="prefix"
134
+ ></sonic-icon>
135
+ light
136
+ </sonic-menu-item>
137
+ <sonic-menu-item
138
+ ?active="${this.theme == "dark"}"
139
+ @click=${() => this.setMode("dark")}
140
+ >
141
+ <sonic-icon
142
+ name="moon"
143
+ library="custom"
144
+ slot="prefix"
145
+ ></sonic-icon>
146
+ dark
147
+ </sonic-menu-item>
148
+ </sonic-menu>
149
+ </sonic-pop>
150
+ </div>
151
+ </div>
152
+
153
+
154
+
155
+ ${
156
+ this.searchVisible
157
+ ? html`
158
+ <div
159
+ ${animate({
160
+ keyframeOptions: {
161
+ duration: 250,
162
+ },
163
+ in: [
164
+ {
165
+ opacity: 0,
166
+ },
167
+ ],
168
+ out: [
169
+ {
170
+ opacity: 0,
171
+ },
172
+ ],
173
+ stabilizeOut: true,
174
+ })}
175
+ class="fixed top-0 w-full left-0 z-[3000] pt-[20vh] flex items-center justify-center "
176
+ >
177
+ <div
178
+ @click=${() => this.hideSearch()}
179
+ class="bg-neutral-0 dark:bg-neutral-300 opacity-90 fixed top-0 left-0 w-full h-full "
180
+ ></div>
181
+
182
+ <div
183
+ ${animate({
184
+ keyframeOptions: {
185
+ duration: 250,
186
+ easing: `cubic-bezier(0.250, 0.250, 0.420, 1.225)`,
187
+ },
188
+ in: [
189
+ {
190
+ transform: "translateY(1rem) scale(1.05)",
191
+ opacity: 0,
192
+ },
193
+ ],
194
+ out: [
195
+ {
196
+ transform: "scale(.90) ",
197
+ opacity: 0,
198
+ duration: 3000,
199
+ easing: `ease-in-out`,
200
+ },
201
+ ],
202
+ stabilizeOut: true,
203
+ })}
204
+ class="relative z-20 w-full max-w-[40rem] w-full block "
205
+ >
206
+ <docs-search setFocus class="max-w-[40rem] w-full block">
207
+ </docs-search>
208
+ </div>
209
+ </div>
210
+ `
211
+ : nothing
212
+ }
213
+ </div>
214
+
215
+ </div> `;
216
+ }
217
+ }
@@ -1,67 +1,129 @@
1
- import {html, LitElement, PropertyValues} from "lit";
2
- import {customElement, property} from "lit/decorators.js";
1
+ import { html, LitElement, PropertyValues } from "lit";
2
+ import { customElement, property } from "lit/decorators.js";
3
3
  const tagName = "docs-navigation"; // For Astro.build
4
4
  @customElement(tagName)
5
5
  export class DocsNavigation extends LitElement {
6
6
  @property() navigation = [
7
- {label: "Introduction", href: "#docs/_getting-started/start.md/start"},
7
+ { label: "Introduction", href: "#docs/_getting-started/start.md/start" },
8
8
  "Getting Started",
9
- {label: "Installation", href: "#docs/_getting-started/concorde-outside.md/concorde-outside"},
10
- {label: "Creating components", href: "#docs/_getting-started/create-a-component.md/create-a-component"},
11
- {label: "Adding styles", href: "#docs/_getting-started/theming.md/theming"},
12
- {label: "Sharing data", href: "#docs/_getting-started/pubsub.md/pubsub"},
9
+ {
10
+ label: "Installation",
11
+ href: "#docs/_getting-started/concorde-outside.md/concorde-outside",
12
+ },
13
+ {
14
+ label: "My first subscriber",
15
+ href: "#docs/_getting-started/my-first-subscriber.md/my-first-subscriber",
16
+ },
17
+ {
18
+ label: "Adding styles",
19
+ href: "#docs/_getting-started/theming.md/theming",
20
+ },
21
+ { label: "Sharing data", href: "#docs/_getting-started/pubsub.md/pubsub" },
13
22
  "Core concept",
14
- {label: "Lit + Tailwind + Vite", href: "#docs/_core-concept/overview.md/overview"},
15
- {label: "The subscriber mixin", href: "#docs/_core-concept/subscriber.md/subscriber"},
23
+ {
24
+ label: "Lit + Tailwind + Vite",
25
+ href: "#docs/_core-concept/overview.md/overview",
26
+ },
27
+ {
28
+ label: "The subscriber mixin",
29
+ href: "#docs/_core-concept/subscriber.md/subscriber",
30
+ },
16
31
  // "Standalone attributes",
17
32
  // {label: "Data-bind", href: "#"},
18
33
  // {label: "FormDataProvider", href: "#"},
19
34
  "Functionnal components",
20
- {label: "Date", href: "#core/components/functional/date/date.md/date"},
21
- {label: "Fetch", href: "#core/components/functional/fetch/fetch.md/fetch"},
22
- {label: "If", href: "#core/components/functional/if/if.md/if"},
23
- {label: "List", href: "#core/components/functional/list/list.md/list"},
24
- {label: "Mix", href: "#core/components/functional/mix/mix.md/mix"},
25
- {label: "Queue", href: "#core/components/functional/queue/queue.md/queue"},
26
- {label: "Router", href: "#core/components/functional/router/router.md/router"},
27
- {label: "SDUI", href: "#core/components/functional/sdui/sdui.md/sdui"},
28
- {label: "States", href: "#core/components/functional/states/states.md/states"},
29
- {label: "Submit", href: "#core/components/functional/submit/submit.md/submit"},
35
+ { label: "Date", href: "#core/components/functional/date/date.md/date" },
36
+ {
37
+ label: "Fetch",
38
+ href: "#core/components/functional/fetch/fetch.md/fetch",
39
+ },
40
+ { label: "If", href: "#core/components/functional/if/if.md/if" },
41
+ { label: "List", href: "#core/components/functional/list/list.md/list" },
42
+ { label: "Mix", href: "#core/components/functional/mix/mix.md/mix" },
43
+ {
44
+ label: "Queue",
45
+ href: "#core/components/functional/queue/queue.md/queue",
46
+ },
47
+ {
48
+ label: "Router",
49
+ href: "#core/components/functional/router/router.md/router",
50
+ },
51
+ { label: "SDUI", href: "#core/components/functional/sdui/sdui.md/sdui" },
52
+ {
53
+ label: "States",
54
+ href: "#core/components/functional/states/states.md/states",
55
+ },
56
+ {
57
+ label: "Submit",
58
+ href: "#core/components/functional/submit/submit.md/submit",
59
+ },
30
60
  //{label: "Subscriber", href: "#core/components/functional/subscriber/subscriber.md/subscriber"},
31
- {label: "Value", href: "#core/components/functional/value/value.md/value"},
61
+ {
62
+ label: "Value",
63
+ href: "#core/components/functional/value/value.md/value",
64
+ },
32
65
  "UI components",
33
- {label: "Alert", href: "#core/components/ui/alert/alert.md/alert"},
34
- {label: "Badge", href: "#core/components/ui/badge/badge.md/badge"},
35
- {label: "Button", href: "#core/components/ui/button/button.md/button"},
36
- {label: "Captcha", href: "#core/components/ui/captcha/captcha.md/captcha"},
37
- {label: "Card", href: "#core/components/ui/card/card.md/card"},
38
- {label: "Checkbox", href: "#core/components/ui/form/checkbox/checkbox.md/checkbox"},
39
- {label: "Divider", href: "#core/components/ui/divider/divider.md/divider"},
40
- {label: "Fieldset", href: "#core/components/ui/form/fieldset/fieldset.md/fieldset"},
41
- {label: "Form actions", href: "#core/components/ui/form/form-actions/form-actions.md/form-actions"},
42
- {label: "Form layout", href: "#core/components/ui/form/form-layout/form-layout.md/form-layout"},
43
- {label: "Group", href: "#core/components/ui/group/group.md/group"},
44
- {label: "Icon", href: "#core/components/ui/icon/icon.md/icon"},
45
- {label: "Image", href: "#core/components/ui/image/image.md/image"},
46
- {label: "Input", href: "#core/components/ui/form/input/input.md/input"},
66
+ { label: "Alert", href: "#core/components/ui/alert/alert.md/alert" },
67
+ { label: "Badge", href: "#core/components/ui/badge/badge.md/badge" },
68
+ { label: "Button", href: "#core/components/ui/button/button.md/button" },
69
+ {
70
+ label: "Captcha",
71
+ href: "#core/components/ui/captcha/captcha.md/captcha",
72
+ },
73
+ { label: "Card", href: "#core/components/ui/card/card.md/card" },
74
+ {
75
+ label: "Checkbox",
76
+ href: "#core/components/ui/form/checkbox/checkbox.md/checkbox",
77
+ },
78
+ {
79
+ label: "Divider",
80
+ href: "#core/components/ui/divider/divider.md/divider",
81
+ },
82
+ {
83
+ label: "Fieldset",
84
+ href: "#core/components/ui/form/fieldset/fieldset.md/fieldset",
85
+ },
86
+ {
87
+ label: "Form actions",
88
+ href: "#core/components/ui/form/form-actions/form-actions.md/form-actions",
89
+ },
90
+ {
91
+ label: "Form layout",
92
+ href: "#core/components/ui/form/form-layout/form-layout.md/form-layout",
93
+ },
94
+ { label: "Group", href: "#core/components/ui/group/group.md/group" },
95
+ { label: "Icon", href: "#core/components/ui/icon/icon.md/icon" },
96
+ { label: "Image", href: "#core/components/ui/image/image.md/image" },
97
+ { label: "Input", href: "#core/components/ui/form/input/input.md/input" },
47
98
  {
48
99
  label: "Input autocomplete",
49
100
  href: "#core/components/ui/form/input-autocomplete/input-autocomplete.md/input-autocomplete",
50
101
  },
51
- {label: "Link", href: "#core/components/ui/link/link.md/link"},
52
- {label: "Loader", href: "#core/components/ui/loader/loader.md/loader"},
53
- {label: "Menu", href: "#core/components/ui/menu/menu.md/menu"},
54
- {label: "Modal", href: "#core/components/ui/modal/modal.md/modal"},
55
- {label: "Pop", href: "#core/components/ui/pop/pop.md/pop"},
56
- {label: "Progress", href: "#core/components/ui/progress/progress.md/progress"},
57
- {label: "Radio", href: "#core/components/ui/form/radio/radio.md/radio"},
58
- {label: "Select", href: "#core/components/ui/form/select/select.md/select"},
59
- {label: "Table", href: "#core/components/ui/table/table.md/table"},
60
- {label: "Taxonomy", href: "#la-billetterie/components/event/atoms/taxonomy/taxonomy.md/taxonomy"},
61
- {label: "Textarea", href: "#core/components/ui/form/textarea/textarea.md/textarea"},
62
- {label: "Theme", href: "#"},
63
- {label: "Toast", href: "#"},
64
- {label: "Tooltip", href: "#core/components/ui/tooltip/tooltip.md/tooltip"},
102
+ { label: "Link", href: "#core/components/ui/link/link.md/link" },
103
+ { label: "Loader", href: "#core/components/ui/loader/loader.md/loader" },
104
+ { label: "Menu", href: "#core/components/ui/menu/menu.md/menu" },
105
+ { label: "Modal", href: "#core/components/ui/modal/modal.md/modal" },
106
+ { label: "Pop", href: "#core/components/ui/pop/pop.md/pop" },
107
+ {
108
+ label: "Progress",
109
+ href: "#core/components/ui/progress/progress.md/progress",
110
+ },
111
+ { label: "Radio", href: "#core/components/ui/form/radio/radio.md/radio" },
112
+ {
113
+ label: "Select",
114
+ href: "#core/components/ui/form/select/select.md/select",
115
+ },
116
+ { label: "Table", href: "#core/components/ui/table/table.md/table" },
117
+ {
118
+ label: "Textarea",
119
+ href: "#core/components/ui/form/textarea/textarea.md/textarea",
120
+ },
121
+ { label: "Theme", href: "#" },
122
+ { label: "Toast", href: "#" },
123
+ {
124
+ label: "Tooltip",
125
+ href: "#core/components/ui/tooltip/tooltip.md/tooltip",
126
+ },
65
127
  ];
66
128
 
67
129
  /**
@@ -77,7 +139,9 @@ export class DocsNavigation extends LitElement {
77
139
  */
78
140
  firstUpdated(properties: PropertyValues) {
79
141
  super.firstUpdated(properties);
80
- const activeItem = this.shadowRoot?.querySelector('sonic-menu-item[active]:not([href="#"])');
142
+ const activeItem = this.shadowRoot?.querySelector(
143
+ 'sonic-menu-item[active]:not([href="#"])'
144
+ );
81
145
  if (activeItem) {
82
146
  window.queueMicrotask(() => {
83
147
  this.scrollTop = DocsNavigation.lastScroll;
@@ -91,9 +155,17 @@ export class DocsNavigation extends LitElement {
91
155
  <sonic-menu>
92
156
  ${this.navigation.map((item) => {
93
157
  if (typeof item === "string") {
94
- return html`<sonic-divider class="uppercase" align="left">${item}</sonic-divider>`;
158
+ return html`<sonic-divider class="uppercase" align="left"
159
+ >${item}</sonic-divider
160
+ >`;
95
161
  }
96
- return html`<sonic-menu-item pushstate size="sm" href="${item.href}">${item.label}</sonic-menu-item>`;
162
+ return html`<sonic-menu-item
163
+ pushstate
164
+ type="neutral"
165
+ size="sm"
166
+ href="${item.href}"
167
+ >${item.label}</sonic-menu-item
168
+ >`;
97
169
  })}
98
170
  </sonic-menu>
99
171
  `;