@cencomalls/cencob2b-storybook 1.0.0 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (133) hide show
  1. package/build.js +12 -0
  2. package/package.json +23 -27
  3. package/src/index.tsx +9 -0
  4. package/tsconfig.json +13 -0
  5. package/.github/workflows/chromatic.yml +0 -28
  6. package/.github/workflows/publish.yml +0 -22
  7. package/.github/workflows/release.yml +0 -29
  8. package/.storybook/main.js +0 -25
  9. package/.storybook/preview.js +0 -13
  10. package/.yarn/install-state.gz +0 -0
  11. package/.yarn/releases/yarn-4.1.1.cjs +0 -893
  12. package/.yarnrc.yml +0 -3
  13. package/stories/Button.jsx +0 -50
  14. package/stories/Button.stories.js +0 -48
  15. package/stories/Configure.mdx +0 -364
  16. package/stories/Header.jsx +0 -59
  17. package/stories/Header.stories.js +0 -28
  18. package/stories/Page.jsx +0 -69
  19. package/stories/Page.stories.js +0 -28
  20. package/stories/assets/accessibility.png +0 -0
  21. package/stories/assets/accessibility.svg +0 -5
  22. package/stories/assets/addon-library.png +0 -0
  23. package/stories/assets/assets.png +0 -0
  24. package/stories/assets/avif-test-image.avif +0 -0
  25. package/stories/assets/context.png +0 -0
  26. package/stories/assets/discord.svg +0 -15
  27. package/stories/assets/docs.png +0 -0
  28. package/stories/assets/figma-plugin.png +0 -0
  29. package/stories/assets/github.svg +0 -3
  30. package/stories/assets/share.png +0 -0
  31. package/stories/assets/styling.png +0 -0
  32. package/stories/assets/testing.png +0 -0
  33. package/stories/assets/theming.png +0 -0
  34. package/stories/assets/tutorials.svg +0 -12
  35. package/stories/assets/youtube.svg +0 -4
  36. package/stories/button.css +0 -30
  37. package/stories/header.css +0 -32
  38. package/stories/page.css +0 -69
  39. package/storybook-static/assets/Button-B7GXpXHZ.js +0 -203
  40. package/storybook-static/assets/Button-BfyGbg8N.css +0 -1
  41. package/storybook-static/assets/Button.stories-Cz4ZTIw_.js +0 -20
  42. package/storybook-static/assets/Color-RQJUDNI5-r4zJMVcU.js +0 -1
  43. package/storybook-static/assets/Configure-CZVeek8t.js +0 -173
  44. package/storybook-static/assets/DocsRenderer-K4EAMTCU-Do6HWQxO.js +0 -7
  45. package/storybook-static/assets/Header-Be6lOWYO.js +0 -1
  46. package/storybook-static/assets/Header-BjLH3naM.css +0 -1
  47. package/storybook-static/assets/Header.stories-D9E6awjx.js +0 -7
  48. package/storybook-static/assets/Page-B9ntr4df.css +0 -1
  49. package/storybook-static/assets/Page.stories-DTRxRE07.js +0 -17
  50. package/storybook-static/assets/WithTooltip-Y7J54OF7-U9kDFlyj.js +0 -1
  51. package/storybook-static/assets/accessibility-W_h2acOZ.png +0 -0
  52. package/storybook-static/assets/addon-library-BWUCAmyN.png +0 -0
  53. package/storybook-static/assets/context-C0qIqeS4.png +0 -0
  54. package/storybook-static/assets/docs---vsFbMi.png +0 -0
  55. package/storybook-static/assets/entry-preview-docs-1v-OicRc.js +0 -54
  56. package/storybook-static/assets/entry-preview-kGuIN3g4.js +0 -1
  57. package/storybook-static/assets/figma-plugin-CH2hELiO.png +0 -0
  58. package/storybook-static/assets/formatter-B5HCVTEV-IqGtHqtT.js +0 -58
  59. package/storybook-static/assets/iframe-Da46mUfp.js +0 -7
  60. package/storybook-static/assets/index-BBkUAzwr.js +0 -9
  61. package/storybook-static/assets/index-BjkNUVMH.js +0 -505
  62. package/storybook-static/assets/index-Bw8VTzHM.js +0 -1
  63. package/storybook-static/assets/index-DboEQVPH.js +0 -3
  64. package/storybook-static/assets/index-DrFu-skq.js +0 -6
  65. package/storybook-static/assets/index-PqR-_bA4.js +0 -24
  66. package/storybook-static/assets/index-YMbfICiA.js +0 -1
  67. package/storybook-static/assets/index-z5U8iC57.js +0 -1
  68. package/storybook-static/assets/preview-B4GcaC1c.js +0 -1
  69. package/storybook-static/assets/preview-BAz7FMXc.js +0 -396
  70. package/storybook-static/assets/preview-BQoJvzIs.js +0 -7
  71. package/storybook-static/assets/preview-B_0crF9I.js +0 -1
  72. package/storybook-static/assets/preview-BjivwLRH.js +0 -203
  73. package/storybook-static/assets/preview-CIRcjyVj.js +0 -1
  74. package/storybook-static/assets/preview-Cv3rAi2i.js +0 -7
  75. package/storybook-static/assets/preview-CwqMn10d.js +0 -20
  76. package/storybook-static/assets/preview-Db4Idchh.js +0 -1
  77. package/storybook-static/assets/preview-DbT1mggi.js +0 -1
  78. package/storybook-static/assets/react-18-B-OKcmzb.js +0 -1
  79. package/storybook-static/assets/share-DGA-UcQf.png +0 -0
  80. package/storybook-static/assets/styling-Bk6zjRzU.png +0 -0
  81. package/storybook-static/assets/syntaxhighlighter-JOJW2KGS-Cy7bkou7.js +0 -1
  82. package/storybook-static/assets/testing-cbzR9l9r.png +0 -0
  83. package/storybook-static/assets/theming-D6WJLNoW.png +0 -0
  84. package/storybook-static/favicon.svg +0 -7
  85. package/storybook-static/iframe.html +0 -492
  86. package/storybook-static/index.html +0 -167
  87. package/storybook-static/index.json +0 -1
  88. package/storybook-static/project.json +0 -1
  89. package/storybook-static/sb-addons/chromatic-com-storybook-10/manager-bundle.js +0 -323
  90. package/storybook-static/sb-addons/chromatic-com-storybook-10/manager-bundle.js.LEGAL.txt +0 -40
  91. package/storybook-static/sb-addons/essentials-actions-4/manager-bundle.js +0 -3
  92. package/storybook-static/sb-addons/essentials-actions-4/manager-bundle.js.LEGAL.txt +0 -0
  93. package/storybook-static/sb-addons/essentials-backgrounds-5/manager-bundle.js +0 -12
  94. package/storybook-static/sb-addons/essentials-backgrounds-5/manager-bundle.js.LEGAL.txt +0 -0
  95. package/storybook-static/sb-addons/essentials-controls-3/manager-bundle.js +0 -79
  96. package/storybook-static/sb-addons/essentials-controls-3/manager-bundle.js.LEGAL.txt +0 -28
  97. package/storybook-static/sb-addons/essentials-measure-8/manager-bundle.js +0 -3
  98. package/storybook-static/sb-addons/essentials-measure-8/manager-bundle.js.LEGAL.txt +0 -0
  99. package/storybook-static/sb-addons/essentials-outline-9/manager-bundle.js +0 -3
  100. package/storybook-static/sb-addons/essentials-outline-9/manager-bundle.js.LEGAL.txt +0 -0
  101. package/storybook-static/sb-addons/essentials-toolbars-7/manager-bundle.js +0 -3
  102. package/storybook-static/sb-addons/essentials-toolbars-7/manager-bundle.js.LEGAL.txt +0 -0
  103. package/storybook-static/sb-addons/essentials-viewport-6/manager-bundle.js +0 -3
  104. package/storybook-static/sb-addons/essentials-viewport-6/manager-bundle.js.LEGAL.txt +0 -0
  105. package/storybook-static/sb-addons/interactions-11/manager-bundle.js +0 -12
  106. package/storybook-static/sb-addons/interactions-11/manager-bundle.js.LEGAL.txt +0 -0
  107. package/storybook-static/sb-addons/links-2/manager-bundle.js +0 -3
  108. package/storybook-static/sb-addons/links-2/manager-bundle.js.LEGAL.txt +0 -0
  109. package/storybook-static/sb-addons/onboarding-1/manager-bundle.js +0 -502
  110. package/storybook-static/sb-addons/onboarding-1/manager-bundle.js.LEGAL.txt +0 -0
  111. package/storybook-static/sb-addons/storybook-core-server-presets-0/common-manager-bundle.js +0 -3
  112. package/storybook-static/sb-addons/storybook-core-server-presets-0/common-manager-bundle.js.LEGAL.txt +0 -0
  113. package/storybook-static/sb-common-assets/fonts.css +0 -31
  114. package/storybook-static/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
  115. package/storybook-static/sb-common-assets/nunito-sans-bold.woff2 +0 -0
  116. package/storybook-static/sb-common-assets/nunito-sans-italic.woff2 +0 -0
  117. package/storybook-static/sb-common-assets/nunito-sans-regular.woff2 +0 -0
  118. package/storybook-static/sb-manager/WithTooltip-Y7J54OF7-KHQOWZXS.js +0 -1
  119. package/storybook-static/sb-manager/chunk-3F3RRPB3.js +0 -347
  120. package/storybook-static/sb-manager/chunk-62YMTM65.js +0 -6
  121. package/storybook-static/sb-manager/chunk-AQBE2B7B.js +0 -183
  122. package/storybook-static/sb-manager/chunk-Q3RBXCN3.js +0 -231
  123. package/storybook-static/sb-manager/chunk-XP3HGWTR.js +0 -1
  124. package/storybook-static/sb-manager/chunk-YME6VNXZ.js +0 -9
  125. package/storybook-static/sb-manager/formatter-B5HCVTEV-7DCBOGO6.js +0 -58
  126. package/storybook-static/sb-manager/globals-module-info.js +0 -1
  127. package/storybook-static/sb-manager/globals-runtime.js +0 -1
  128. package/storybook-static/sb-manager/globals.js +0 -1
  129. package/storybook-static/sb-manager/index.js +0 -1
  130. package/storybook-static/sb-manager/runtime.js +0 -1
  131. package/storybook-static/sb-manager/syntaxhighlighter-JOJW2KGS-WAFIMSO6.js +0 -1
  132. package/storybook-static/sb-preview/globals.js +0 -1
  133. package/storybook-static/sb-preview/runtime.js +0 -128
@@ -1 +0,0 @@
1
- import{g as c}from"./index-BBkUAzwr.js";var p={exports:{}},i="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",y=i,m=y;function n(){}function a(){}a.resetWarningCache=n;var T=function(){function e(f,h,l,P,g,s){if(s!==m){var o=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw o.name="Invariant Violation",o}}e.isRequired=e;function r(){return e}var t={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:r,element:e,elementType:e,instanceOf:r,node:e,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:a,resetWarningCache:n};return t.PropTypes=t,t};p.exports=T();var u=p.exports;const R=c(u);export{R as P};
@@ -1 +0,0 @@
1
- import{R as e}from"./index-BBkUAzwr.js";const o={},c=e.createContext(o);function u(n){const t=e.useContext(c);return e.useMemo(function(){return typeof n=="function"?n(t):{...t,...n}},[t,n])}function m(n){let t;return n.disableParentContext?t=typeof n.components=="function"?n.components(o):n.components||o:t=u(n.components),e.createElement(c.Provider,{value:t},n.children)}export{m as MDXProvider,u as useMDXComponents};
@@ -1 +0,0 @@
1
- var e={viewport:"reset",viewportRotated:!1};export{e as globals};
@@ -1,396 +0,0 @@
1
- import{d as $}from"./index-DrFu-skq.js";const{useMemo:x,useEffect:f}=__STORYBOOK_MODULE_PREVIEW_API__,{global:p}=__STORYBOOK_MODULE_GLOBAL__;var u=i=>{(Array.isArray(i)?i:[i]).forEach(r)},r=i=>{let t=typeof i=="string"?i:i.join(""),o=p.document.getElementById(t);o&&o.parentElement&&o.parentElement.removeChild(o)},b=(i,t)=>{let o=p.document.getElementById(i);if(o)o.innerHTML!==t&&(o.innerHTML=t);else{let n=p.document.createElement("style");n.setAttribute("id",i),n.innerHTML=t,p.document.head.appendChild(n)}},m="outline";function s(i){return $`
2
- ${i} body {
3
- outline: 1px solid #2980b9 !important;
4
- }
5
-
6
- ${i} article {
7
- outline: 1px solid #3498db !important;
8
- }
9
-
10
- ${i} nav {
11
- outline: 1px solid #0088c3 !important;
12
- }
13
-
14
- ${i} aside {
15
- outline: 1px solid #33a0ce !important;
16
- }
17
-
18
- ${i} section {
19
- outline: 1px solid #66b8da !important;
20
- }
21
-
22
- ${i} header {
23
- outline: 1px solid #99cfe7 !important;
24
- }
25
-
26
- ${i} footer {
27
- outline: 1px solid #cce7f3 !important;
28
- }
29
-
30
- ${i} h1 {
31
- outline: 1px solid #162544 !important;
32
- }
33
-
34
- ${i} h2 {
35
- outline: 1px solid #314e6e !important;
36
- }
37
-
38
- ${i} h3 {
39
- outline: 1px solid #3e5e85 !important;
40
- }
41
-
42
- ${i} h4 {
43
- outline: 1px solid #449baf !important;
44
- }
45
-
46
- ${i} h5 {
47
- outline: 1px solid #c7d1cb !important;
48
- }
49
-
50
- ${i} h6 {
51
- outline: 1px solid #4371d0 !important;
52
- }
53
-
54
- ${i} main {
55
- outline: 1px solid #2f4f90 !important;
56
- }
57
-
58
- ${i} address {
59
- outline: 1px solid #1a2c51 !important;
60
- }
61
-
62
- ${i} div {
63
- outline: 1px solid #036cdb !important;
64
- }
65
-
66
- ${i} p {
67
- outline: 1px solid #ac050b !important;
68
- }
69
-
70
- ${i} hr {
71
- outline: 1px solid #ff063f !important;
72
- }
73
-
74
- ${i} pre {
75
- outline: 1px solid #850440 !important;
76
- }
77
-
78
- ${i} blockquote {
79
- outline: 1px solid #f1b8e7 !important;
80
- }
81
-
82
- ${i} ol {
83
- outline: 1px solid #ff050c !important;
84
- }
85
-
86
- ${i} ul {
87
- outline: 1px solid #d90416 !important;
88
- }
89
-
90
- ${i} li {
91
- outline: 1px solid #d90416 !important;
92
- }
93
-
94
- ${i} dl {
95
- outline: 1px solid #fd3427 !important;
96
- }
97
-
98
- ${i} dt {
99
- outline: 1px solid #ff0043 !important;
100
- }
101
-
102
- ${i} dd {
103
- outline: 1px solid #e80174 !important;
104
- }
105
-
106
- ${i} figure {
107
- outline: 1px solid #ff00bb !important;
108
- }
109
-
110
- ${i} figcaption {
111
- outline: 1px solid #bf0032 !important;
112
- }
113
-
114
- ${i} table {
115
- outline: 1px solid #00cc99 !important;
116
- }
117
-
118
- ${i} caption {
119
- outline: 1px solid #37ffc4 !important;
120
- }
121
-
122
- ${i} thead {
123
- outline: 1px solid #98daca !important;
124
- }
125
-
126
- ${i} tbody {
127
- outline: 1px solid #64a7a0 !important;
128
- }
129
-
130
- ${i} tfoot {
131
- outline: 1px solid #22746b !important;
132
- }
133
-
134
- ${i} tr {
135
- outline: 1px solid #86c0b2 !important;
136
- }
137
-
138
- ${i} th {
139
- outline: 1px solid #a1e7d6 !important;
140
- }
141
-
142
- ${i} td {
143
- outline: 1px solid #3f5a54 !important;
144
- }
145
-
146
- ${i} col {
147
- outline: 1px solid #6c9a8f !important;
148
- }
149
-
150
- ${i} colgroup {
151
- outline: 1px solid #6c9a9d !important;
152
- }
153
-
154
- ${i} button {
155
- outline: 1px solid #da8301 !important;
156
- }
157
-
158
- ${i} datalist {
159
- outline: 1px solid #c06000 !important;
160
- }
161
-
162
- ${i} fieldset {
163
- outline: 1px solid #d95100 !important;
164
- }
165
-
166
- ${i} form {
167
- outline: 1px solid #d23600 !important;
168
- }
169
-
170
- ${i} input {
171
- outline: 1px solid #fca600 !important;
172
- }
173
-
174
- ${i} keygen {
175
- outline: 1px solid #b31e00 !important;
176
- }
177
-
178
- ${i} label {
179
- outline: 1px solid #ee8900 !important;
180
- }
181
-
182
- ${i} legend {
183
- outline: 1px solid #de6d00 !important;
184
- }
185
-
186
- ${i} meter {
187
- outline: 1px solid #e8630c !important;
188
- }
189
-
190
- ${i} optgroup {
191
- outline: 1px solid #b33600 !important;
192
- }
193
-
194
- ${i} option {
195
- outline: 1px solid #ff8a00 !important;
196
- }
197
-
198
- ${i} output {
199
- outline: 1px solid #ff9619 !important;
200
- }
201
-
202
- ${i} progress {
203
- outline: 1px solid #e57c00 !important;
204
- }
205
-
206
- ${i} select {
207
- outline: 1px solid #e26e0f !important;
208
- }
209
-
210
- ${i} textarea {
211
- outline: 1px solid #cc5400 !important;
212
- }
213
-
214
- ${i} details {
215
- outline: 1px solid #33848f !important;
216
- }
217
-
218
- ${i} summary {
219
- outline: 1px solid #60a1a6 !important;
220
- }
221
-
222
- ${i} command {
223
- outline: 1px solid #438da1 !important;
224
- }
225
-
226
- ${i} menu {
227
- outline: 1px solid #449da6 !important;
228
- }
229
-
230
- ${i} del {
231
- outline: 1px solid #bf0000 !important;
232
- }
233
-
234
- ${i} ins {
235
- outline: 1px solid #400000 !important;
236
- }
237
-
238
- ${i} img {
239
- outline: 1px solid #22746b !important;
240
- }
241
-
242
- ${i} iframe {
243
- outline: 1px solid #64a7a0 !important;
244
- }
245
-
246
- ${i} embed {
247
- outline: 1px solid #98daca !important;
248
- }
249
-
250
- ${i} object {
251
- outline: 1px solid #00cc99 !important;
252
- }
253
-
254
- ${i} param {
255
- outline: 1px solid #37ffc4 !important;
256
- }
257
-
258
- ${i} video {
259
- outline: 1px solid #6ee866 !important;
260
- }
261
-
262
- ${i} audio {
263
- outline: 1px solid #027353 !important;
264
- }
265
-
266
- ${i} source {
267
- outline: 1px solid #012426 !important;
268
- }
269
-
270
- ${i} canvas {
271
- outline: 1px solid #a2f570 !important;
272
- }
273
-
274
- ${i} track {
275
- outline: 1px solid #59a600 !important;
276
- }
277
-
278
- ${i} map {
279
- outline: 1px solid #7be500 !important;
280
- }
281
-
282
- ${i} area {
283
- outline: 1px solid #305900 !important;
284
- }
285
-
286
- ${i} a {
287
- outline: 1px solid #ff62ab !important;
288
- }
289
-
290
- ${i} em {
291
- outline: 1px solid #800b41 !important;
292
- }
293
-
294
- ${i} strong {
295
- outline: 1px solid #ff1583 !important;
296
- }
297
-
298
- ${i} i {
299
- outline: 1px solid #803156 !important;
300
- }
301
-
302
- ${i} b {
303
- outline: 1px solid #cc1169 !important;
304
- }
305
-
306
- ${i} u {
307
- outline: 1px solid #ff0430 !important;
308
- }
309
-
310
- ${i} s {
311
- outline: 1px solid #f805e3 !important;
312
- }
313
-
314
- ${i} small {
315
- outline: 1px solid #d107b2 !important;
316
- }
317
-
318
- ${i} abbr {
319
- outline: 1px solid #4a0263 !important;
320
- }
321
-
322
- ${i} q {
323
- outline: 1px solid #240018 !important;
324
- }
325
-
326
- ${i} cite {
327
- outline: 1px solid #64003c !important;
328
- }
329
-
330
- ${i} dfn {
331
- outline: 1px solid #b4005a !important;
332
- }
333
-
334
- ${i} sub {
335
- outline: 1px solid #dba0c8 !important;
336
- }
337
-
338
- ${i} sup {
339
- outline: 1px solid #cc0256 !important;
340
- }
341
-
342
- ${i} time {
343
- outline: 1px solid #d6606d !important;
344
- }
345
-
346
- ${i} code {
347
- outline: 1px solid #e04251 !important;
348
- }
349
-
350
- ${i} kbd {
351
- outline: 1px solid #5e001f !important;
352
- }
353
-
354
- ${i} samp {
355
- outline: 1px solid #9c0033 !important;
356
- }
357
-
358
- ${i} var {
359
- outline: 1px solid #d90047 !important;
360
- }
361
-
362
- ${i} mark {
363
- outline: 1px solid #ff0053 !important;
364
- }
365
-
366
- ${i} bdi {
367
- outline: 1px solid #bf3668 !important;
368
- }
369
-
370
- ${i} bdo {
371
- outline: 1px solid #6f1400 !important;
372
- }
373
-
374
- ${i} ruby {
375
- outline: 1px solid #ff7b93 !important;
376
- }
377
-
378
- ${i} rt {
379
- outline: 1px solid #ff2f54 !important;
380
- }
381
-
382
- ${i} rp {
383
- outline: 1px solid #803e49 !important;
384
- }
385
-
386
- ${i} span {
387
- outline: 1px solid #cc2643 !important;
388
- }
389
-
390
- ${i} br {
391
- outline: 1px solid #db687d !important;
392
- }
393
-
394
- ${i} wbr {
395
- outline: 1px solid #db175b !important;
396
- }`}var e=(i,t)=>{let{globals:o}=t,n=[!0,"true"].includes(o[m]),d=t.viewMode==="docs",l=x(()=>s(d?'[data-story-block="true"]':".sb-show-main"),[t]);return f(()=>{let a=d?`addon-outline-docs-${t.id}`:"addon-outline";return n?b(a,l):u(a),()=>{u(a)}},[n,l,t]),i()},g=[e],h={[m]:!1};export{g as decorators,h as globals};
@@ -1,7 +0,0 @@
1
- function __vite__mapDeps(indexes) {
2
- if (!__vite__mapDeps.viteFileDeps) {
3
- __vite__mapDeps.viteFileDeps = ["./DocsRenderer-K4EAMTCU-Do6HWQxO.js","./iframe-Da46mUfp.js","./index-BBkUAzwr.js","./react-18-B-OKcmzb.js","./index-PqR-_bA4.js","./index-BjkNUVMH.js","./index-Bw8VTzHM.js","./index-DboEQVPH.js","./index-DrFu-skq.js"]
4
- }
5
- return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
6
- }
7
- import{_ as a}from"./iframe-Da46mUfp.js";import"../sb-preview/runtime.js";const{global:s}=__STORYBOOK_MODULE_GLOBAL__;var _=Object.entries(s.TAGS_OPTIONS??{}).reduce((e,r)=>{let[t,o]=r;return o.excludeFromDocsStories&&(e[t]=!0),e},{}),d={docs:{renderer:async()=>{let{DocsRenderer:e}=await a(()=>import("./DocsRenderer-K4EAMTCU-Do6HWQxO.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8]),import.meta.url);return new e},stories:{filter:e=>{var r;return(e.tags||[]).filter(t=>_[t]).length===0&&!((r=e.parameters.docs)!=null&&r.disable)}}}};export{d as parameters};
@@ -1 +0,0 @@
1
- import"./index-Bw8VTzHM.js";const{global:O}=__STORYBOOK_MODULE_GLOBAL__,{makeDecorator:E,addons:_}=__STORYBOOK_MODULE_PREVIEW_API__,{STORY_CHANGED:l,SELECT_STORY:L}=__STORYBOOK_MODULE_CORE_EVENTS__;var c="links",{document:i,HTMLElement:m}=O,v=e=>_.getChannel().emit(L,e),o=e=>{let{target:t}=e;if(!(t instanceof m))return;let s=t,{sbKind:a,sbStory:r}=s.dataset;(a||r)&&(e.preventDefault(),v({kind:a,story:r}))},n=!1,d=()=>{n||(n=!0,i.addEventListener("click",o))},k=()=>{n&&(n=!1,i.removeEventListener("click",o))},R=E({name:"withLinks",parameterName:c,wrapper:(e,t)=>(d(),_.getChannel().once(l,k),e(t))}),T=[R];export{T as decorators};