manolis-ui 0.0.9 → 0.0.11
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.
- package/.github/workflows/deploy_and_publish.yml +113 -0
- package/.storybook/main.ts +34 -0
- package/.storybook/preview.ts +17 -0
- package/.vscode/extensions.json +3 -0
- package/dist/manolis-ui.css +1 -1
- package/dist/manolis-ui.js +4 -4
- package/dist/manolis-ui.umd.cjs +1 -1
- package/dist/style.css +48 -0
- package/index.html +13 -0
- package/package.json +1 -5
- package/postcss.config.js +2 -0
- package/public/vite.svg +1 -0
- package/src/App.vue +19 -0
- package/src/assets/vue.svg +1 -0
- package/src/components/data-input/datetimePicker.vue +3 -10
- package/src/composables/useLocalStorage.ts +24 -0
- package/src/index.ts +30 -0
- package/src/main.ts +5 -0
- package/src/stories/actions/Button.stories.ts +47 -0
- package/src/stories/actions/Dropdown.stories.ts +70 -0
- package/src/stories/actions/Modal.stories.ts +56 -0
- package/src/stories/actions/Swap.stories.ts +56 -0
- package/src/stories/actions/ThemeSwitcher.stories.ts +41 -0
- package/src/stories/data-display/accordion.stories.ts +49 -0
- package/src/stories/data-display/avatar.stories.ts +75 -0
- package/src/stories/data-display/badge.stories.ts +76 -0
- package/src/stories/data-display/card.stories.ts +79 -0
- package/src/stories/data-input/rating.stories.ts +73 -0
- package/src/stories/feedback/Loader.stories.ts +34 -0
- package/src/stories/layout/footer.stories.ts +63 -0
- package/src/style.css +57 -0
- package/src/vite-env.d.ts +1 -0
- package/storybook-static/assets/Button.stories-B5Gg7Ski.js +6 -0
- package/storybook-static/assets/Color-YHDXOIA2-Cy_mA6cn.js +1 -0
- package/storybook-static/assets/DocsRenderer-CFRXHY34-wSGN0bIp.js +610 -0
- package/storybook-static/assets/Dropdown.stories-Bth3_21L.js +32 -0
- package/storybook-static/assets/Loader.stories-BnqtyQP_.js +5 -0
- package/storybook-static/assets/Modal.stories-CxOA4msz.js +46 -0
- package/storybook-static/assets/Swap.stories-Cpc9q_kE.js +54 -0
- package/storybook-static/assets/ThemeSwitcher.stories-BwHcHihM.js +45 -0
- package/storybook-static/assets/accordion.stories-B6yDsDXk.js +7 -0
- package/storybook-static/assets/avatar.stories-BDN93iYh.js +39 -0
- package/storybook-static/assets/badge.stories-CXQpnu0e.js +39 -0
- package/storybook-static/assets/card.stories-1gVWO2fs.js +48 -0
- package/storybook-static/assets/entry-preview-Cfvj9hgI.js +1 -0
- package/storybook-static/assets/entry-preview-docs-BJQT5BWv.js +16 -0
- package/storybook-static/assets/footer.stories-DPXqApht.js +23 -0
- package/storybook-static/assets/iframe-BNdG_Qtn.js +211 -0
- package/storybook-static/assets/index-Bx-go_-4.js +8 -0
- package/storybook-static/assets/index-CiNYFPF0.js +1 -0
- package/storybook-static/assets/index-DrFu-skq.js +6 -0
- package/storybook-static/assets/preview-4lzcCKUM.css +1 -0
- package/storybook-static/assets/preview-B8lJiyuQ.js +34 -0
- package/storybook-static/assets/preview-BBWR9nbA.js +1 -0
- package/storybook-static/assets/preview-BWzBA1C2.js +396 -0
- package/storybook-static/assets/preview-CvbIS5ZJ.js +1 -0
- package/storybook-static/assets/preview-DD_OYowb.js +1 -0
- package/storybook-static/assets/preview-DGUiP6tS.js +7 -0
- package/storybook-static/assets/preview-DHQbi4pV.js +1 -0
- package/storybook-static/assets/preview-DMNI4LCC.js +15 -0
- package/storybook-static/assets/preview-DnqJFqn_.js +2 -0
- package/storybook-static/assets/preview-Dsq_8SDT.js +240 -0
- package/storybook-static/assets/preview-hHK5u5_Q.js +1 -0
- package/storybook-static/assets/rating.stories-BX0Pzp5i.js +27 -0
- package/storybook-static/assets/vue.esm-bundler-C-YazFc_.js +36 -0
- package/storybook-static/favicon.svg +1 -0
- package/storybook-static/iframe.html +666 -0
- package/storybook-static/index.html +181 -0
- package/storybook-static/index.json +1 -0
- package/storybook-static/nunito-sans-bold-italic.woff2 +0 -0
- package/storybook-static/nunito-sans-bold.woff2 +0 -0
- package/storybook-static/nunito-sans-italic.woff2 +0 -0
- package/storybook-static/nunito-sans-regular.woff2 +0 -0
- package/storybook-static/project.json +1 -0
- package/storybook-static/sb-addons/chromatic-com-storybook-9/manager-bundle.js +331 -0
- package/storybook-static/sb-addons/chromatic-com-storybook-9/manager-bundle.js.LEGAL.txt +51 -0
- package/storybook-static/sb-addons/essentials-actions-2/manager-bundle.js +3 -0
- package/storybook-static/sb-addons/essentials-backgrounds-4/manager-bundle.js +12 -0
- package/storybook-static/sb-addons/essentials-controls-1/manager-bundle.js +402 -0
- package/storybook-static/sb-addons/essentials-docs-3/manager-bundle.js +242 -0
- package/storybook-static/sb-addons/essentials-measure-7/manager-bundle.js +3 -0
- package/storybook-static/sb-addons/essentials-outline-8/manager-bundle.js +3 -0
- package/storybook-static/sb-addons/essentials-toolbars-6/manager-bundle.js +3 -0
- package/storybook-static/sb-addons/essentials-viewport-5/manager-bundle.js +3 -0
- package/storybook-static/sb-addons/interactions-10/manager-bundle.js +222 -0
- package/storybook-static/sb-addons/links-11/manager-bundle.js +3 -0
- package/storybook-static/sb-addons/storybook-core-core-server-presets-0/common-manager-bundle.js +3 -0
- package/storybook-static/sb-common-assets/favicon.svg +1 -0
- package/storybook-static/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
- package/storybook-static/sb-common-assets/nunito-sans-bold.woff2 +0 -0
- package/storybook-static/sb-common-assets/nunito-sans-italic.woff2 +0 -0
- package/storybook-static/sb-common-assets/nunito-sans-regular.woff2 +0 -0
- package/storybook-static/sb-manager/globals-module-info.js +1046 -0
- package/storybook-static/sb-manager/globals-runtime.js +41239 -0
- package/storybook-static/sb-manager/globals.js +48 -0
- package/storybook-static/sb-manager/runtime.js +12048 -0
- package/storybook-static/vite.svg +1 -0
- package/tsconfig.app.json +27 -0
- package/tsconfig.build.json +3 -0
- package/tsconfig.json +7 -0
- package/tsconfig.node.json +25 -0
- package/vite.config.ts +43 -0
|
@@ -0,0 +1,396 @@
|
|
|
1
|
+
import{d as $}from"./index-DrFu-skq.js";const{useMemo:x,useEffect:f}=__STORYBOOK_MODULE_PREVIEW_API__,{global:p}=__STORYBOOK_MODULE_GLOBAL__;var m="outline",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)}};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()},h=[e],g={[m]:!1};export{h as decorators,g as initialGlobals};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var o="viewport",a={[o]:{value:void 0,isRotated:!1}},t={viewport:"reset",viewportRotated:!1},e,l=(e=globalThis.FEATURES)!=null&&e.viewportStoryGlobals?a:t;export{l as initialGlobals};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
let p;const S=new Uint8Array(16);function A(){if(!p&&(p=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!p))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return p(S)}const o=[];for(let e=0;e<256;++e)o.push((e+256).toString(16).slice(1));function D(e,t=0){return o[e[t+0]]+o[e[t+1]]+o[e[t+2]]+o[e[t+3]]+"-"+o[e[t+4]]+o[e[t+5]]+"-"+o[e[t+6]]+o[e[t+7]]+"-"+o[e[t+8]]+o[e[t+9]]+"-"+o[e[t+10]]+o[e[t+11]]+o[e[t+12]]+o[e[t+13]]+o[e[t+14]]+o[e[t+15]]}const I=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),h={randomUUID:I};function f(e,t,r){if(h.randomUUID&&!e)return h.randomUUID();e=e||{};const n=e.random||(e.rng||A)();return n[6]=n[6]&15|64,n[8]=n[8]&63|128,D(n)}const{addons:v}=__STORYBOOK_MODULE_PREVIEW_API__,{ImplicitActionsDuringRendering:U}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__,{global:d}=__STORYBOOK_MODULE_GLOBAL__;var w="storybook/actions",j=`${w}/action-event`,V={depth:10,clearOnStoryChange:!0,limit:50},E=(e,t)=>{let r=Object.getPrototypeOf(e);return!r||t(r)?r:E(r,t)},C=e=>!!(typeof e=="object"&&e&&E(e,t=>/^Synthetic(?:Base)?Event$/.test(t.constructor.name))&&typeof e.persist=="function"),K=e=>{if(C(e)){let t=Object.create(e.constructor.prototype,Object.getOwnPropertyDescriptors(e));t.persist();let r=Object.getOwnPropertyDescriptor(t,"view"),n=r==null?void 0:r.value;return typeof n=="object"&&(n==null?void 0:n.constructor.name)==="Window"&&Object.defineProperty(t,"view",{...r,value:Object.create(n.constructor.prototype)}),t}return e},L=()=>typeof crypto=="object"&&typeof crypto.getRandomValues=="function"?f():Date.now().toString(36)+Math.random().toString(36).substring(2);function _(e,t={}){let r={...V,...t},n=function(...s){var g,O;if(t.implicit){let y=(g="__STORYBOOK_PREVIEW__"in d?d.__STORYBOOK_PREVIEW__:void 0)==null?void 0:g.storyRenders.find(l=>l.phase==="playing"||l.phase==="rendering");if(y){let l=!((O=globalThis==null?void 0:globalThis.FEATURES)!=null&&O.disallowImplicitActionsInRenderV8),R=new U({phase:y.phase,name:e,deprecated:l});if(l)console.warn(R);else throw R}}let i=v.getChannel(),c=L(),a=5,u=s.map(K),b=s.length>1?u:u[0],x={id:c,count:0,data:{name:e,args:b},options:{...r,maxDepth:a+(r.depth||3),allowFunction:r.allowFunction||!1}};i.emit(j,x)};return n.isAction=!0,n.implicit=t.implicit,n}var T=(e,t)=>typeof t[e]>"u"&&!(e in t),B=e=>{let{initialArgs:t,argTypes:r,id:n,parameters:{actions:s}}=e;if(!s||s.disable||!s.argTypesRegex||!r)return{};let i=new RegExp(s.argTypesRegex);return Object.entries(r).filter(([c])=>!!i.test(c)).reduce((c,[a,u])=>(T(a,t)&&(c[a]=_(a,{implicit:!0,id:n})),c),{})},M=e=>{let{initialArgs:t,argTypes:r,parameters:{actions:n}}=e;return n!=null&&n.disable||!r?{}:Object.entries(r).filter(([s,i])=>!!i.action).reduce((s,[i,c])=>(T(i,t)&&(s[i]=_(typeof c.action=="string"?c.action:i)),s),{})},Y=[M,B],m=!1,P=e=>{let{parameters:{actions:t}}=e;if(!(t!=null&&t.disable)&&!m&&"__STORYBOOK_TEST_ON_MOCK_CALL__"in d&&typeof d.__STORYBOOK_TEST_ON_MOCK_CALL__=="function"){let r=d.__STORYBOOK_TEST_ON_MOCK_CALL__;r((n,s)=>{let i=n.getMockName();i!=="spy"&&(!/^next\/.*::/.test(i)||["next/router::useRouter()","next/navigation::useRouter()","next/navigation::redirect","next/cache::","next/headers::cookies().set","next/headers::cookies().delete","next/headers::headers().set","next/headers::headers().delete"].some(c=>i.startsWith(c)))&&_(i)(s)}),m=!0}},N=[P];export{Y as argsEnhancers,N as loaders};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
const{STORY_CHANGED:r}=__STORYBOOK_MODULE_CORE_EVENTS__,{addons:s}=__STORYBOOK_MODULE_PREVIEW_API__,{global:O}=__STORYBOOK_MODULE_GLOBAL__;var d="storybook/highlight",i="storybookHighlight",g=`${d}/add`,E=`${d}/reset`,{document:l}=O,H=(e="#FF4785",t="dashed")=>`
|
|
2
|
+
outline: 2px ${t} ${e};
|
|
3
|
+
outline-offset: 2px;
|
|
4
|
+
box-shadow: 0 0 0 6px rgba(255,255,255,0.6);
|
|
5
|
+
`,h=s.getChannel(),T=e=>{let t=i;n();let o=Array.from(new Set(e.elements)),_=l.createElement("style");_.setAttribute("id",t),_.innerHTML=o.map(a=>`${a}{
|
|
6
|
+
${H(e.color,e.style)}
|
|
7
|
+
}`).join(" "),l.head.appendChild(_)},n=()=>{var o;let e=i,t=l.getElementById(e);t&&((o=t.parentNode)==null||o.removeChild(t))};h.on(r,n);h.on(E,n);h.on(g,T);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const{makeDecorator:O,addons:_}=__STORYBOOK_MODULE_PREVIEW_API__,{STORY_CHANGED:l,SELECT_STORY:E}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:L}=__STORYBOOK_MODULE_GLOBAL__;var c="links",{document:s,HTMLElement:v}=L,d=e=>_.getChannel().emit(E,e),i=e=>{let{target:t}=e;if(!(t instanceof v))return;let o=t,{sbKind:a,sbStory:r}=o.dataset;(a||r)&&(e.preventDefault(),d({kind:a,story:r}))},n=!1,m=()=>{n||(n=!0,s.addEventListener("click",i))},k=()=>{n&&(n=!1,s.removeEventListener("click",i))},R=O({name:"withLinks",parameterName:c,wrapper:(e,t)=>(m(),_.getChannel().once(l,k),e(t))}),S=[R];export{S as decorators};
|