@mintlify/components 0.1.43 → 0.1.45
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/README.md +1 -1
- package/build-storybook.log +66 -62
- package/dist/Card.d.ts +1 -1
- package/dist/Code/CodeBlock.d.ts +9 -0
- package/dist/Code/CodeGroup.d.ts +17 -0
- package/dist/Code/CopyToClipboardButton.d.ts +5 -0
- package/dist/Code/index.d.ts +3 -0
- package/dist/CodeBlock/CodeBlock.d.ts +9 -0
- package/dist/CodeBlock/CodeGroup.d.ts +11 -0
- package/dist/CodeBlock/CodeTabBar.d.ts +6 -0
- package/dist/CodeBlock/CopyToClipboard.d.ts +2 -0
- package/dist/CodeBlock/CopyToClipboardButton.d.ts +5 -0
- package/dist/CodeBlock/index.d.ts +3 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +1 -1
- package/dist/main.css +144 -0
- package/dist/utils/copyToClipboard.d.ts +1 -0
- package/dist/utils/getNodeText.d.ts +1 -0
- package/package.json +2 -1
package/README.md
CHANGED
package/build-storybook.log
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
info @storybook/react v6.5.
|
|
1
|
+
info @storybook/react v6.5.13
|
|
2
2
|
info
|
|
3
|
-
info => Cleaning outputDir: /var/folders/xs/h01kpl5x3xzdn3gr17jjwp2w0000gn/T/chromatic--
|
|
3
|
+
info => Cleaning outputDir: /var/folders/xs/h01kpl5x3xzdn3gr17jjwp2w0000gn/T/chromatic--4974-RM14HT9wgVSB
|
|
4
4
|
info => Loading presets
|
|
5
5
|
info => Compiling manager..
|
|
6
6
|
info => Compiling preview..
|
|
@@ -116,31 +116,35 @@ info => Using default Webpack5 setup
|
|
|
116
116
|
<s> [webpack.Progress] 9% setup compilation
|
|
117
117
|
<s> [webpack.Progress] 10% building
|
|
118
118
|
<s> [webpack.Progress] 10% building 0/1 entries 0/0 dependencies 0/0 modules
|
|
119
|
+
(node:4991) ExperimentalWarning: The Fetch API is an experimental feature. This feature could change at any time
|
|
120
|
+
(Use `node --trace-warnings ...` to show where the warning was created)
|
|
119
121
|
<s> [webpack.Progress] 10% building import loader ./node_modules/babel-loader/lib/index.js
|
|
120
122
|
<s> [webpack.Progress] 10% building 0/14 entries 13/18 dependencies 0/12 modules
|
|
121
|
-
<s> [webpack.Progress] 13% building 1/14 entries 21/
|
|
123
|
+
<s> [webpack.Progress] 13% building 1/14 entries 21/74 dependencies 2/18 modules
|
|
122
124
|
<s> [webpack.Progress] 13% building import loader ./node_modules/@storybook/source-loader/dist/cjs/index.js
|
|
123
|
-
<s> [webpack.Progress] 13% building 1/14 entries
|
|
124
|
-
<s> [webpack.Progress] 17% building 2/14 entries
|
|
125
|
+
<s> [webpack.Progress] 13% building 1/14 entries 46/75 dependencies 2/43 modules
|
|
126
|
+
<s> [webpack.Progress] 17% building 2/14 entries 191/354 dependencies 9/114 modules
|
|
127
|
+
<s> [webpack.Progress] 17% building 2/14 entries 987/1092 dependencies 40/349 modules
|
|
125
128
|
<s> [webpack.Progress] 17% building import loader ./node_modules/@storybook/addon-postcss/node_modules/style-loader/dist/cjs.js
|
|
126
129
|
<s> [webpack.Progress] 17% building import loader ./node_modules/@storybook/addon-postcss/node_modules/css-loader/dist/cjs.js
|
|
127
130
|
<s> [webpack.Progress] 17% building import loader ./node_modules/@storybook/addon-postcss/node_modules/postcss-loader/dist/cjs.js
|
|
128
|
-
<s> [webpack.Progress] 17% building 2/14 entries
|
|
129
|
-
<s> [webpack.Progress] 17% building 2/14 entries
|
|
130
|
-
<s> [webpack.Progress] 17% building 2/14 entries
|
|
131
|
-
<s> [webpack.Progress] 17% building 2/14 entries
|
|
132
|
-
<s> [webpack.Progress]
|
|
133
|
-
<s> [webpack.Progress]
|
|
134
|
-
<s> [webpack.Progress]
|
|
135
|
-
<s> [webpack.Progress]
|
|
136
|
-
<s> [webpack.Progress]
|
|
137
|
-
<s> [webpack.Progress]
|
|
138
|
-
<s> [webpack.Progress]
|
|
139
|
-
<s> [webpack.Progress]
|
|
140
|
-
<s> [webpack.Progress]
|
|
141
|
-
<s> [webpack.Progress]
|
|
142
|
-
<s> [webpack.Progress]
|
|
143
|
-
<s> [webpack.Progress]
|
|
131
|
+
<s> [webpack.Progress] 17% building 2/14 entries 1066/1117 dependencies 52/359 modules
|
|
132
|
+
<s> [webpack.Progress] 17% building 2/14 entries 1880/2000 dependencies 162/452 modules
|
|
133
|
+
<s> [webpack.Progress] 17% building 2/14 entries 3048/3100 dependencies 374/634 modules
|
|
134
|
+
<s> [webpack.Progress] 17% building 2/14 entries 3073/3200 dependencies 381/653 modules
|
|
135
|
+
<s> [webpack.Progress] 17% building 2/14 entries 4200/4349 dependencies 579/854 modules
|
|
136
|
+
<s> [webpack.Progress] 21% building 3/14 entries 5347/5372 dependencies 1020/1120 modules
|
|
137
|
+
<s> [webpack.Progress] 25% building 4/14 entries 5347/5372 dependencies 1021/1120 modules
|
|
138
|
+
<s> [webpack.Progress] 29% building 5/14 entries 5347/5372 dependencies 1021/1120 modules
|
|
139
|
+
<s> [webpack.Progress] 33% building 6/14 entries 5347/5372 dependencies 1021/1120 modules
|
|
140
|
+
<s> [webpack.Progress] 37% building 7/14 entries 5347/5372 dependencies 1021/1120 modules
|
|
141
|
+
<s> [webpack.Progress] 41% building 8/14 entries 5347/5372 dependencies 1021/1120 modules
|
|
142
|
+
<s> [webpack.Progress] 45% building 9/14 entries 5347/5372 dependencies 1021/1120 modules
|
|
143
|
+
<s> [webpack.Progress] 49% building 10/14 entries 5347/5372 dependencies 1021/1120 modules
|
|
144
|
+
<s> [webpack.Progress] 53% building 11/14 entries 5347/5372 dependencies 1021/1120 modules
|
|
145
|
+
<s> [webpack.Progress] 57% building 12/14 entries 5509/5518 dependencies 1125/1154 modules
|
|
146
|
+
<s> [webpack.Progress] 61% building 13/14 entries 5523/5523 dependencies 1147/1162 modules
|
|
147
|
+
<s> [webpack.Progress] 65% building 14/14 entries 5523/5523 dependencies 1162/1162 modules
|
|
144
148
|
<s> [webpack.Progress] 65% building
|
|
145
149
|
<s> [webpack.Progress] 69% building finish
|
|
146
150
|
<s> [webpack.Progress] 69% building finish
|
|
@@ -159,9 +163,10 @@ DeprecationWarning: 'createLiteral' has been deprecated since v4.0.0. Use `facto
|
|
|
159
163
|
DeprecationWarning: 'createBinaryExpression' has been deprecated since v4.0.0. Use the appropriate method on 'ts.factory' or the 'factory' supplied by your transformation context instead.
|
|
160
164
|
DeprecationWarning: 'createExpressionStatement' has been deprecated since v4.0.0. Use the appropriate method on 'ts.factory' or the 'factory' supplied by your transformation context instead.
|
|
161
165
|
DeprecationWarning: 'createPropertyAssignment' has been deprecated since v4.0.0. Use the appropriate method on 'ts.factory' or the 'factory' supplied by your transformation context instead.
|
|
166
|
+
DeprecationWarning: 'createNull' has been deprecated since v4.0.0. Use the appropriate method on 'ts.factory' or the 'factory' supplied by your transformation context instead.
|
|
167
|
+
DeprecationWarning: 'createTrue' has been deprecated since v4.0.0. Use the appropriate method on 'ts.factory' or the 'factory' supplied by your transformation context instead.
|
|
162
168
|
DeprecationWarning: 'createObjectLiteralExpression' has been deprecated since v4.0.0. Use the appropriate method on 'ts.factory' or the 'factory' supplied by your transformation context instead.
|
|
163
169
|
DeprecationWarning: 'createFalse' has been deprecated since v4.0.0. Use the appropriate method on 'ts.factory' or the 'factory' supplied by your transformation context instead.
|
|
164
|
-
DeprecationWarning: 'createArrayLiteralExpression' has been deprecated since v4.0.0. Use the appropriate method on 'ts.factory' or the 'factory' supplied by your transformation context instead.
|
|
165
170
|
DeprecationWarning: 'createExpressionStatement' has been deprecated since v4.0.0. Use the appropriate method on 'ts.factory' or the 'factory' supplied by your transformation context instead.
|
|
166
171
|
DeprecationWarning: 'createTypeOfExpression' has been deprecated since v4.0.0. Use the appropriate method on 'ts.factory' or the 'factory' supplied by your transformation context instead.
|
|
167
172
|
DeprecationWarning: 'createElementAccessExpression' has been deprecated since v4.0.0. Use the appropriate method on 'ts.factory' or the 'factory' supplied by your transformation context instead.
|
|
@@ -170,8 +175,7 @@ DeprecationWarning: 'createBlock' has been deprecated since v4.0.0. Use the appr
|
|
|
170
175
|
DeprecationWarning: 'createVariableDeclaration' has been deprecated since v4.0.0. Use the appropriate method on 'ts.factory' or the 'factory' supplied by your transformation context instead.
|
|
171
176
|
DeprecationWarning: 'createCatchClause' has been deprecated since v4.0.0. Use the appropriate method on 'ts.factory' or the 'factory' supplied by your transformation context instead.
|
|
172
177
|
DeprecationWarning: 'createTryStatement' has been deprecated since v4.0.0. Use the appropriate method on 'ts.factory' or the 'factory' supplied by your transformation context instead.
|
|
173
|
-
DeprecationWarning: '
|
|
174
|
-
DeprecationWarning: 'createTrue' has been deprecated since v4.0.0. Use the appropriate method on 'ts.factory' or the 'factory' supplied by your transformation context instead.
|
|
178
|
+
DeprecationWarning: 'createArrayLiteralExpression' has been deprecated since v4.0.0. Use the appropriate method on 'ts.factory' or the 'factory' supplied by your transformation context instead.
|
|
175
179
|
<s> [webpack.Progress] 70% sealing plugins WarnCaseSensitiveModulesPlugin
|
|
176
180
|
<s> [webpack.Progress] 70% sealing plugins
|
|
177
181
|
<s> [webpack.Progress] 71% sealing dependencies optimization
|
|
@@ -261,30 +265,30 @@ DeprecationWarning: 'createTrue' has been deprecated since v4.0.0. Use the appro
|
|
|
261
265
|
<s> [webpack.Progress] 92% sealing asset processing TerserPlugin
|
|
262
266
|
<s> [webpack.Progress] 92% sealing asset processing SourceMapDevToolPlugin
|
|
263
267
|
<s> [webpack.Progress] 92% sealing asset processing SourceMapDevToolPlugin
|
|
264
|
-
<s> [webpack.Progress] 92% sealing asset processing SourceMapDevToolPlugin main.
|
|
265
|
-
<s> [webpack.Progress] 92% sealing asset processing SourceMapDevToolPlugin main.
|
|
266
|
-
<s> [webpack.Progress] 92% sealing asset processing SourceMapDevToolPlugin runtime~main.
|
|
267
|
-
<s> [webpack.Progress] 92% sealing asset processing SourceMapDevToolPlugin runtime~main.
|
|
268
|
-
<s> [webpack.Progress] 92% sealing asset processing SourceMapDevToolPlugin 701.
|
|
269
|
-
<s> [webpack.Progress] 92% sealing asset processing SourceMapDevToolPlugin 701.
|
|
268
|
+
<s> [webpack.Progress] 92% sealing asset processing SourceMapDevToolPlugin main.6f70c138.iframe.bundle.js generate SourceMap
|
|
269
|
+
<s> [webpack.Progress] 92% sealing asset processing SourceMapDevToolPlugin main.6f70c138.iframe.bundle.js generated SourceMap
|
|
270
|
+
<s> [webpack.Progress] 92% sealing asset processing SourceMapDevToolPlugin runtime~main.0ce772d2.iframe.bundle.js generate SourceMap
|
|
271
|
+
<s> [webpack.Progress] 92% sealing asset processing SourceMapDevToolPlugin runtime~main.0ce772d2.iframe.bundle.js generated SourceMap
|
|
272
|
+
<s> [webpack.Progress] 92% sealing asset processing SourceMapDevToolPlugin 701.543b61db.iframe.bundle.js generate SourceMap
|
|
273
|
+
<s> [webpack.Progress] 92% sealing asset processing SourceMapDevToolPlugin 701.543b61db.iframe.bundle.js generated SourceMap
|
|
270
274
|
<s> [webpack.Progress] 92% sealing asset processing SourceMapDevToolPlugin 745.3a9ffaff.iframe.bundle.js generate SourceMap
|
|
271
275
|
<s> [webpack.Progress] 92% sealing asset processing SourceMapDevToolPlugin 745.3a9ffaff.iframe.bundle.js generated SourceMap
|
|
272
|
-
<s> [webpack.Progress] 92% sealing asset processing SourceMapDevToolPlugin
|
|
273
|
-
<s> [webpack.Progress] 92% sealing asset processing SourceMapDevToolPlugin
|
|
274
|
-
<s> [webpack.Progress] 92% sealing asset processing SourceMapDevToolPlugin 51.
|
|
275
|
-
<s> [webpack.Progress] 92% sealing asset processing SourceMapDevToolPlugin 51.
|
|
276
|
-
<s> [webpack.Progress] 92% sealing asset processing SourceMapDevToolPlugin 807.
|
|
277
|
-
<s> [webpack.Progress] 92% sealing asset processing SourceMapDevToolPlugin 807.
|
|
278
|
-
<s> [webpack.Progress] 92% sealing asset processing SourceMapDevToolPlugin 551.
|
|
279
|
-
<s> [webpack.Progress] 92% sealing asset processing SourceMapDevToolPlugin 551.
|
|
280
|
-
<s> [webpack.Progress] 92% sealing asset processing SourceMapDevToolPlugin 897.
|
|
281
|
-
<s> [webpack.Progress] 92% sealing asset processing SourceMapDevToolPlugin 897.
|
|
282
|
-
<s> [webpack.Progress] 92% sealing asset processing SourceMapDevToolPlugin 229.
|
|
283
|
-
<s> [webpack.Progress] 92% sealing asset processing SourceMapDevToolPlugin 229.
|
|
284
|
-
<s> [webpack.Progress] 92% sealing asset processing SourceMapDevToolPlugin 935.
|
|
285
|
-
<s> [webpack.Progress] 92% sealing asset processing SourceMapDevToolPlugin 935.
|
|
286
|
-
<s> [webpack.Progress] 92% sealing asset processing SourceMapDevToolPlugin
|
|
287
|
-
<s> [webpack.Progress] 92% sealing asset processing SourceMapDevToolPlugin
|
|
276
|
+
<s> [webpack.Progress] 92% sealing asset processing SourceMapDevToolPlugin 273.1683659b.iframe.bundle.js generate SourceMap
|
|
277
|
+
<s> [webpack.Progress] 92% sealing asset processing SourceMapDevToolPlugin 273.1683659b.iframe.bundle.js generated SourceMap
|
|
278
|
+
<s> [webpack.Progress] 92% sealing asset processing SourceMapDevToolPlugin 51.7a6141b0.iframe.bundle.js generate SourceMap
|
|
279
|
+
<s> [webpack.Progress] 92% sealing asset processing SourceMapDevToolPlugin 51.7a6141b0.iframe.bundle.js generated SourceMap
|
|
280
|
+
<s> [webpack.Progress] 92% sealing asset processing SourceMapDevToolPlugin 807.08a18394.iframe.bundle.js generate SourceMap
|
|
281
|
+
<s> [webpack.Progress] 92% sealing asset processing SourceMapDevToolPlugin 807.08a18394.iframe.bundle.js generated SourceMap
|
|
282
|
+
<s> [webpack.Progress] 92% sealing asset processing SourceMapDevToolPlugin 551.ce59fca0.iframe.bundle.js generate SourceMap
|
|
283
|
+
<s> [webpack.Progress] 92% sealing asset processing SourceMapDevToolPlugin 551.ce59fca0.iframe.bundle.js generated SourceMap
|
|
284
|
+
<s> [webpack.Progress] 92% sealing asset processing SourceMapDevToolPlugin 897.997410c4.iframe.bundle.js generate SourceMap
|
|
285
|
+
<s> [webpack.Progress] 92% sealing asset processing SourceMapDevToolPlugin 897.997410c4.iframe.bundle.js generated SourceMap
|
|
286
|
+
<s> [webpack.Progress] 92% sealing asset processing SourceMapDevToolPlugin 229.503fe652.iframe.bundle.js generate SourceMap
|
|
287
|
+
<s> [webpack.Progress] 92% sealing asset processing SourceMapDevToolPlugin 229.503fe652.iframe.bundle.js generated SourceMap
|
|
288
|
+
<s> [webpack.Progress] 92% sealing asset processing SourceMapDevToolPlugin 935.c7e78174.iframe.bundle.js generate SourceMap
|
|
289
|
+
<s> [webpack.Progress] 92% sealing asset processing SourceMapDevToolPlugin 935.c7e78174.iframe.bundle.js generated SourceMap
|
|
290
|
+
<s> [webpack.Progress] 92% sealing asset processing SourceMapDevToolPlugin 90.56627f39.iframe.bundle.js generate SourceMap
|
|
291
|
+
<s> [webpack.Progress] 92% sealing asset processing SourceMapDevToolPlugin 90.56627f39.iframe.bundle.js generated SourceMap
|
|
288
292
|
<s> [webpack.Progress] 92% sealing asset processing SourceMapDevToolPlugin resolve sources
|
|
289
293
|
<s> [webpack.Progress] 92% sealing asset processing SourceMapDevToolPlugin
|
|
290
294
|
<s> [webpack.Progress] 92% sealing asset processing HtmlWebpackPlugin
|
|
@@ -293,10 +297,8 @@ DeprecationWarning: 'createTrue' has been deprecated since v4.0.0. Use the appro
|
|
|
293
297
|
<s> [webpack.Progress] 92% sealing asset processing HtmlWebpackPlugin
|
|
294
298
|
<s> [webpack.Progress] 92% sealing asset processing RealContentHashPlugin
|
|
295
299
|
<s> [webpack.Progress] 92% sealing asset processing RealContentHashPlugin
|
|
296
|
-
<s> [webpack.Progress] 92% sealing asset processing RealContentHashPlugin main.
|
|
297
|
-
<s> [webpack.Progress] 92% sealing asset processing RealContentHashPlugin main.
|
|
298
|
-
<s> [webpack.Progress] 92% sealing asset processing RealContentHashPlugin runtime~main.48819736.iframe.bundle.js generate SourceMap
|
|
299
|
-
<s> [webpack.Progress] 92% sealing asset processing RealContentHashPlugin runtime~main.48819736.iframe.bundle.js generated SourceMap
|
|
300
|
+
<s> [webpack.Progress] 92% sealing asset processing RealContentHashPlugin runtime~main.268a33e9.iframe.bundle.js generate SourceMap
|
|
301
|
+
<s> [webpack.Progress] 92% sealing asset processing RealContentHashPlugin runtime~main.268a33e9.iframe.bundle.js generated SourceMap
|
|
300
302
|
<s> [webpack.Progress] 92% sealing asset processing RealContentHashPlugin 701.ec2943ad.iframe.bundle.js generate SourceMap
|
|
301
303
|
<s> [webpack.Progress] 92% sealing asset processing RealContentHashPlugin 701.ec2943ad.iframe.bundle.js generated SourceMap
|
|
302
304
|
<s> [webpack.Progress] 92% sealing asset processing RealContentHashPlugin 745.f1ddfa61.iframe.bundle.js generate SourceMap
|
|
@@ -307,16 +309,18 @@ DeprecationWarning: 'createTrue' has been deprecated since v4.0.0. Use the appro
|
|
|
307
309
|
<s> [webpack.Progress] 92% sealing asset processing RealContentHashPlugin 229.9a2a6b81.iframe.bundle.js generated SourceMap
|
|
308
310
|
<s> [webpack.Progress] 92% sealing asset processing RealContentHashPlugin 935.30d22a43.iframe.bundle.js generate SourceMap
|
|
309
311
|
<s> [webpack.Progress] 92% sealing asset processing RealContentHashPlugin 935.30d22a43.iframe.bundle.js generated SourceMap
|
|
310
|
-
<s> [webpack.Progress] 92% sealing asset processing RealContentHashPlugin
|
|
311
|
-
<s> [webpack.Progress] 92% sealing asset processing RealContentHashPlugin
|
|
312
|
+
<s> [webpack.Progress] 92% sealing asset processing RealContentHashPlugin main.d0fa14a9.iframe.bundle.js generate SourceMap
|
|
313
|
+
<s> [webpack.Progress] 92% sealing asset processing RealContentHashPlugin main.d0fa14a9.iframe.bundle.js generated SourceMap
|
|
314
|
+
<s> [webpack.Progress] 92% sealing asset processing RealContentHashPlugin 273.a4e52cb5.iframe.bundle.js generate SourceMap
|
|
315
|
+
<s> [webpack.Progress] 92% sealing asset processing RealContentHashPlugin 273.a4e52cb5.iframe.bundle.js generated SourceMap
|
|
312
316
|
<s> [webpack.Progress] 92% sealing asset processing RealContentHashPlugin 51.fa8a6e75.iframe.bundle.js generate SourceMap
|
|
313
317
|
<s> [webpack.Progress] 92% sealing asset processing RealContentHashPlugin 51.fa8a6e75.iframe.bundle.js generated SourceMap
|
|
314
318
|
<s> [webpack.Progress] 92% sealing asset processing RealContentHashPlugin 807.44fdcfe2.iframe.bundle.js generate SourceMap
|
|
315
319
|
<s> [webpack.Progress] 92% sealing asset processing RealContentHashPlugin 807.44fdcfe2.iframe.bundle.js generated SourceMap
|
|
316
320
|
<s> [webpack.Progress] 92% sealing asset processing RealContentHashPlugin 897.155874f0.iframe.bundle.js generate SourceMap
|
|
317
321
|
<s> [webpack.Progress] 92% sealing asset processing RealContentHashPlugin 897.155874f0.iframe.bundle.js generated SourceMap
|
|
318
|
-
<s> [webpack.Progress] 92% sealing asset processing RealContentHashPlugin
|
|
319
|
-
<s> [webpack.Progress] 92% sealing asset processing RealContentHashPlugin
|
|
322
|
+
<s> [webpack.Progress] 92% sealing asset processing RealContentHashPlugin 90.53702799.iframe.bundle.js generate SourceMap
|
|
323
|
+
<s> [webpack.Progress] 92% sealing asset processing RealContentHashPlugin 90.53702799.iframe.bundle.js generated SourceMap
|
|
320
324
|
<s> [webpack.Progress] 92% sealing asset processing RealContentHashPlugin resolve sources
|
|
321
325
|
<s> [webpack.Progress] 92% sealing asset processing RealContentHashPlugin
|
|
322
326
|
<s> [webpack.Progress] 92% sealing asset processing
|
|
@@ -328,6 +332,7 @@ DeprecationWarning: 'createTrue' has been deprecated since v4.0.0. Use the appro
|
|
|
328
332
|
<s> [webpack.Progress] 94% sealing after seal
|
|
329
333
|
<s> [webpack.Progress] 95% emitting emit
|
|
330
334
|
<s> [webpack.Progress] 95% emitting emit
|
|
335
|
+
info => Manager built (12 s)
|
|
331
336
|
<s> [webpack.Progress] 98% emitting after emit
|
|
332
337
|
<s> [webpack.Progress] 98% emitting after emit SizeLimitsPlugin
|
|
333
338
|
<s> [webpack.Progress] 98% emitting after emit
|
|
@@ -346,19 +351,18 @@ info => Preview built (12 s)
|
|
|
346
351
|
WARN asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
|
|
347
352
|
WARN This can impact web performance.
|
|
348
353
|
WARN Assets:
|
|
349
|
-
WARN
|
|
354
|
+
WARN 273.a4e52cb5.iframe.bundle.js (593 KiB)
|
|
350
355
|
WARN 807.44fdcfe2.iframe.bundle.js (793 KiB)
|
|
351
|
-
WARN
|
|
356
|
+
WARN 90.53702799.iframe.bundle.js (1.67 MiB)
|
|
352
357
|
WARN entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance.
|
|
353
358
|
WARN Entrypoints:
|
|
354
|
-
WARN main (1.
|
|
355
|
-
WARN runtime~main.
|
|
356
|
-
WARN
|
|
357
|
-
WARN main.
|
|
359
|
+
WARN main (1.88 MiB)
|
|
360
|
+
WARN runtime~main.268a33e9.iframe.bundle.js
|
|
361
|
+
WARN 90.53702799.iframe.bundle.js
|
|
362
|
+
WARN main.d0fa14a9.iframe.bundle.js
|
|
358
363
|
WARN
|
|
359
364
|
<s> [webpack.Progress] 99% cache shutdown
|
|
360
365
|
<s> [webpack.Progress] 99% cache shutdown
|
|
361
366
|
<s> [webpack.Progress] 100%
|
|
362
367
|
|
|
363
|
-
info =>
|
|
364
|
-
info => Output directory: /var/folders/xs/h01kpl5x3xzdn3gr17jjwp2w0000gn/T/chromatic--37282-W1E2VO0a3tR3
|
|
368
|
+
info => Output directory: /var/folders/xs/h01kpl5x3xzdn3gr17jjwp2w0000gn/T/chromatic--4974-RM14HT9wgVSB
|
package/dist/Card.d.ts
CHANGED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare function CodeBlock({ filename, filenameColor, copiedTooltipColor, children, }: {
|
|
3
|
+
filename?: string;
|
|
4
|
+
/** Color of the filename text and the border underneath it when the content is being shown */
|
|
5
|
+
filenameColor?: string;
|
|
6
|
+
/** Background color for the tooltip saying Copied when you click the clipboard */
|
|
7
|
+
copiedTooltipColor?: string;
|
|
8
|
+
children?: any;
|
|
9
|
+
}): JSX.Element;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare type CodeGroupProps = {
|
|
3
|
+
children: any;
|
|
4
|
+
/** Color of the filename text and the border underneath it when the content is being shown */
|
|
5
|
+
selectedColor?: string;
|
|
6
|
+
/** Background color for the tooltip saying Copied when you click the clipboard */
|
|
7
|
+
copiedTooltipColor?: string;
|
|
8
|
+
isSmallText?: boolean;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Group multiple code blocks into a tabbed UI.
|
|
12
|
+
* Uses CodeBlocks as children but does not render them directly. Instead,
|
|
13
|
+
* CodeGroup extracts the props and renders CodeBlock's children.
|
|
14
|
+
*
|
|
15
|
+
* @param {CodeBlock[]} props.children
|
|
16
|
+
*/
|
|
17
|
+
export declare function CodeGroup({ children, selectedColor, copiedTooltipColor, isSmallText, }: CodeGroupProps): JSX.Element | null;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare function CodeBlock({ filename, filenameColor, copiedTooltipColor, children, }: {
|
|
3
|
+
filename?: string;
|
|
4
|
+
/** Color of the filename text and the border underneath it when the content is being shown */
|
|
5
|
+
filenameColor?: string;
|
|
6
|
+
/** Background color for the tooltip saying Copied when you click the clipboard */
|
|
7
|
+
copiedTooltipColor?: string;
|
|
8
|
+
children?: any;
|
|
9
|
+
}): JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare type CodeGroupProps = {
|
|
3
|
+
children: any;
|
|
4
|
+
isSmallText?: boolean;
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* Group multiple code blocks into a tabbed UI.
|
|
8
|
+
*
|
|
9
|
+
* @param {CodeBlock[]} props.children
|
|
10
|
+
*/
|
|
11
|
+
export declare function CodeGroup({ children, isSmallText }: CodeGroupProps): JSX.Element;
|
package/dist/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { Accordion, AccordionGroup } from "./Accordion";
|
|
|
2
2
|
import { Button } from "./Button";
|
|
3
3
|
import { Card } from "./Card";
|
|
4
4
|
import { CardGroup } from "./CardGroup";
|
|
5
|
+
import { CodeBlock, CodeGroup } from "./Code";
|
|
5
6
|
import { Info, Warning, Note, Tip, Check } from "./Callouts";
|
|
6
7
|
import { Frame } from "./Frame";
|
|
7
8
|
import { Param } from "./Param";
|
|
@@ -10,4 +11,4 @@ import { Tab, Tabs } from "./Tabs";
|
|
|
10
11
|
import { Tooltip } from "./Tooltip";
|
|
11
12
|
import { Expandable } from "./Expandable";
|
|
12
13
|
import "./css/globals.css";
|
|
13
|
-
export { Accordion, AccordionGroup, Button, Card, CardGroup, Check, Expandable, Frame, Info, Warning, Note, Param, PillSelect, Tabs, Tip, Tab, Tooltip, };
|
|
14
|
+
export { Accordion, AccordionGroup, Button, Card, CardGroup, CodeBlock, CodeGroup, Check, Expandable, Frame, Info, Warning, Note, Param, PillSelect, Tabs, Tip, Tab, Tooltip, };
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! For license information please see index.js.LICENSE.txt */
|
|
2
|
-
(()=>{"use strict";var e={455:(e,t,r)=>{var n=r(258),a=Symbol.for("react.element"),o=Symbol.for("react.fragment"),l=Object.prototype.hasOwnProperty,s=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,r){var n,o={},u=null,c=null;for(n in void 0!==r&&(u=""+r),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(c=t.ref),t)l.call(t,n)&&!i.hasOwnProperty(n)&&(o[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===o[n]&&(o[n]=t[n]);return{$$typeof:a,type:e,key:u,ref:c,props:o,_owner:s.current}}t.Fragment=o,t.jsx=u,t.jsxs=u},557:(e,t,r)=>{e.exports=r(455)},258:e=>{e.exports=require("react")}},t={};function r(n){var a=t[n];if(void 0!==a)return a.exports;var o=t[n]={exports:{}};return e[n](o,o.exports,r),o.exports}r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};(()=>{r.r(n),r.d(n,{Accordion:()=>c,AccordionGroup:()=>f,Button:()=>h,Card:()=>y,CardGroup:()=>k,Check:()=>S,Expandable:()=>rt,Frame:()=>M,Info:()=>N,Note:()=>E,Param:()=>T,PillSelect:()=>We,Tab:()=>qe,Tabs:()=>Qe,Tip:()=>I,Tooltip:()=>Ke,Warning:()=>O});var e=r(557),t=r(258);function a(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=a(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}const o=function(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=a(e))&&(n&&(n+=" "),n+=t);return n};var l=function(){return l=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},l.apply(this,arguments)};function s(t){var r=t.open;return(0,e.jsx)("svg",l({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",className:"h-3 w-3",style:{fill:"currentColor",transform:r?"rotate(90deg)":void 0}},{children:(0,e.jsx)("path",{d:"M342.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L274.7 256 105.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"})}))}const i=function(t){var r=t.title,n=t.description,a=t.open,i=t.setOpen,u=t.icon,c=t.isRounded,d=t.coverClass;return(0,e.jsxs)("button",l({onClick:function(){return i(!a)},className:o("not-prose flex flex-row items-center content-center w-full",c&&"rounded-t-xl",c&&!a&&"rounded-b-xl",d),"aria-controls":r+"Children","aria-expanded":a},{children:[(0,e.jsx)(s,{open:a}),u?(0,e.jsx)("div",l({className:"h-4 w-4"},{children:u})):null,(0,e.jsxs)("div",l({className:"leading-tight text-left"},{children:[(0,e.jsx)("p",l({className:"m-0 font-medium text-slate-900 dark:text-slate-200"},{children:r})),n?(0,e.jsx)("p",l({className:"m-0 text-slate-900 dark:text-slate-200"},{children:n})):null]}))]}))};var u=function(){return u=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},u.apply(this,arguments)};const c=function(r){var n=r.title,a=r.description,l=r.defaultOpen,s=void 0!==l&&l,c=r.icon,d=r.onChange,f=r.variant,p=void 0===f?"rounded":f,m=r.children,v=(0,t.useState)(s),h=v[0],x=v[1],g=function(e){return"minimalist"===e?{parentClass:"",coverClass:"[&>div]:ml-2 py-1 text-slate-700 hover:text-slate-900 dark:text-slate-400 dark:hover:text-slate-200",contentClass:"mt-2 pt-1 mb-4 mx-[7px] px-4 border-l border-slate-100 dark:border-slate-800"}:{parentClass:"border dark:border-slate-800 rounded-xl mb-3",coverClass:"py-4 px-5 space-x-2 hover:bg-slate-100 hover:dark:bg-slate-800",contentClass:"mt-2 mb-4 mx-6"}}(p),b=g.parentClass,y=g.coverClass,w=g.contentClass;return(0,e.jsxs)("div",u({role:"listitem",className:b},{children:[(0,e.jsx)(i,{title:n,description:a,open:h,setOpen:function(e){x(e),d&&d(e)},icon:c,isRounded:"rounded"===p,coverClass:y}),(0,e.jsx)("div",u({className:o(w,!h&&"hidden")},{children:m}))]}),n)};var d=function(){return d=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},d.apply(this,arguments)};const f=function(t){var r=t.children;return(0,e.jsx)("div",d({className:"[&>div]:border-0 [&>div]:rounded-none [&>div>button]:rounded-none [&>div]:mb-0 overflow-hidden mt-0 mb-3 rounded-xl prose prose-slate dark:prose-dark divide-y divide-inherit border dark:border-slate-800",role:"list"},{children:r}))};var p=function(){return p=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},p.apply(this,arguments)},m={indigo:["bg-indigo-50 text-indigo-600 hover:bg-indigo-200 hover:text-indigo-700 focus:ring-indigo-500","text-indigo-300 group-hover:text-indigo-400"],pink:["bg-pink-50 text-pink-600 hover:bg-pink-100 hover:text-pink-700 focus:ring-pink-600","text-pink-300 group-hover:text-pink-400"],sky:["bg-sky-50 text-sky-600 hover:bg-sky-100 hover:text-sky-700 focus:ring-sky-600","text-sky-300 group-hover:text-sky-400"],blue:["bg-blue-50 text-blue-600 hover:bg-blue-100 hover:text-blue-700 focus:ring-blue-600","text-blue-300 group-hover:text-blue-400"],gray:["bg-slate-100 text-slate-700 hover:bg-slate-200 hover:text-slate-900 focus:ring-slate-500","text-slate-300 group-hover:text-slate-400"]},v=p(p({},m),{gray:["dark:bg-slate-700 dark:text-slate-100 dark:hover:bg-slate-600 dark:hover:text-white dark:focus:ring-slate-500","dark:text-slate-500 dark:group-hover:text-slate-400"],sky:["dark:bg-sky-500 dark:text-sky-50 dark:hover:bg-sky-400 dark:hover:text-white dark:focus:ring-sky-200","dark:text-sky-300 dark:group-hover:text-sky-100"]});function h(t){var r=t.href,n=t.color,a=void 0===n?"gray":n,l=t.darkColor,s=void 0===l?a:l,i=t.reverse,u=void 0!==i&&i,c=t.children,d="string"==typeof a?m[a]:a,f="string"==typeof s?v[s]||[]:s;return(0,e.jsxs)("a",p({className:o("group inline-flex items-center h-9 rounded-full text-sm font-semibold whitespace-nowrap px-3 focus:outline-none focus:ring-2",d[0],f[0],u&&"flex-row-reverse"),href:r},{children:[c,(0,e.jsx)("svg",p({className:o("overflow-visible",u?"mr-3":"ml-3",d[1],f[1]),width:"3",height:"6",viewBox:"0 0 3 6",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:(0,e.jsx)("path",{d:u?"M3 0L0 3L3 6":"M0 0L3 3L0 6"})}))]}))}const x=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,g=/^[a-zA-Z]:\\/;var b=function(){return b=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},b.apply(this,arguments)};function y(t){var r=t.title,n=t.icon,a=t.className,l=t.href,s=t.onClick,i=t.children,u=l?"a":"div",c=function(e){if("string"!=typeof e)throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return!g.test(e)&&x.test(e)}(null!=l?l:"")?{target:"_blank",rel:"noreferrer"}:{};return(0,e.jsxs)(u,b({className:o("block not-prose font-normal group relative my-2 ring-2 ring-transparent rounded-xl border border-slate-200 dark:border-slate-800 overflow-hidden px-6 py-5 w-full",l&&"cursor-pointer",a),href:l,onClick:s},c,{children:[n?(0,e.jsx)("div",b({className:"h-6 w-6"},{children:n})):null,(0,e.jsx)("h2",b({className:o("font-semibold text-base text-slate-800 dark:text-white",null!=n&&"mt-4")},{children:r})),(0,e.jsx)("span",b({className:o("mt-1 font-normal",r?"text-slate-600 dark:text-slate-400":"text-slate-700 dark:text-slate-300")},{children:i}))]}))}var w=function(){return w=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},w.apply(this,arguments)};function k(t){var r=t.children,n=t.cols,a=void 0===n?2:n;return(0,e.jsx)("div",w({className:"grid sm:grid-cols-".concat(a," gap-x-4 not-prose")},{children:r}))}var j=function(){return j=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},j.apply(this,arguments)};function C(t){var r=t.children,n=t.icon,a=t.className;return(0,e.jsx)("div",j({className:"px-4 py-4 mb-4 rounded-xl ".concat(a)},{children:(0,e.jsxs)("div",j({className:"flex items-start space-x-3"},{children:[(0,e.jsx)("div",j({className:"mt-0.5 w-4"},{children:n})),(0,e.jsx)("div",j({className:"flex-1 font-medium text-sm prose dark:text-slate-50"},{children:r}))]}))}))}function N(t){var r=t.children;return(0,e.jsx)(C,j({className:"bg-slate-100 dark:bg-slate-600",icon:(0,e.jsx)("svg",j({viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:"flex-none w-5 h-5 text-slate-400 dark:text-slate-300","aria-label":"Info"},{children:(0,e.jsx)("path",{d:"M8 0C3.58125 0 0 3.58125 0 8C0 12.4187 3.58125 16 8 16C12.4187 16 16 12.4187 16 8C16 3.58125 12.4187 0 8 0ZM8 14.5C4.41563 14.5 1.5 11.5841 1.5 8C1.5 4.41594 4.41563 1.5 8 1.5C11.5844 1.5 14.5 4.41594 14.5 8C14.5 11.5841 11.5844 14.5 8 14.5ZM9.25 10.5H8.75V7.75C8.75 7.3375 8.41563 7 8 7H7C6.5875 7 6.25 7.3375 6.25 7.75C6.25 8.1625 6.5875 8.5 7 8.5H7.25V10.5H6.75C6.3375 10.5 6 10.8375 6 11.25C6 11.6625 6.3375 12 6.75 12H9.25C9.66406 12 10 11.6641 10 11.25C10 10.8359 9.66563 10.5 9.25 10.5ZM8 6C8.55219 6 9 5.55219 9 5C9 4.44781 8.55219 4 8 4C7.44781 4 7 4.44687 7 5C7 5.55313 7.44687 6 8 6Z"})}))},{children:r}))}function O(t){var r=t.children;return(0,e.jsx)(C,j({icon:(0,e.jsx)("svg",j({className:"flex-none w-5 h-5 text-yellow-400 dark:text-yellow-300/80",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,"aria-label":"Warning"},{children:(0,e.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})})),className:"bg-amber-50 dark:bg-yellow-500/40"},{children:r}))}function E(t){var r=t.children;return(0,e.jsx)(C,j({icon:(0,e.jsx)("svg",j({width:"14",height:"14",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:"w-4 h-4 text-sky-500","aria-label":"Note"},{children:(0,e.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 1.3C10.14 1.3 12.7 3.86 12.7 7C12.7 10.14 10.14 12.7 7 12.7C5.48908 12.6974 4.0408 12.096 2.97241 11.0276C1.90403 9.9592 1.30264 8.51092 1.3 7C1.3 3.86 3.86 1.3 7 1.3ZM7 0C3.14 0 0 3.14 0 7C0 10.86 3.14 14 7 14C10.86 14 14 10.86 14 7C14 3.14 10.86 0 7 0ZM8 3H6V8H8V3ZM8 9H6V11H8V9Z"})})),className:"bg-sky-100 dark:bg-sky-900"},{children:r}))}function I(t){var r=t.children;return(0,e.jsx)(C,j({icon:(0,e.jsx)("svg",j({width:"11",height:"14",viewBox:"0 0 11 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:"text-green-600 dark:text-green-400/80 w-3.5 h-auto","aria-label":"Tip"},{children:(0,e.jsx)("path",{d:"M3.12794 12.4232C3.12794 12.5954 3.1776 12.7634 3.27244 12.907L3.74114 13.6095C3.88471 13.8248 4.21067 14 4.46964 14H6.15606C6.41415 14 6.74017 13.825 6.88373 13.6095L7.3508 12.9073C7.43114 12.7859 7.49705 12.569 7.49705 12.4232L7.50055 11.3513H3.12521L3.12794 12.4232ZM5.31288 0C2.52414 0.00875889 0.5 2.26889 0.5 4.78826C0.5 6.00188 0.949566 7.10829 1.69119 7.95492C2.14321 8.47011 2.84901 9.54727 3.11919 10.4557C3.12005 10.4625 3.12175 10.4698 3.12261 10.4771H7.50342C7.50427 10.4698 7.50598 10.463 7.50684 10.4557C7.77688 9.54727 8.48281 8.47011 8.93484 7.95492C9.67728 7.13181 10.1258 6.02703 10.1258 4.78826C10.1258 2.15486 7.9709 0.000106649 5.31288 0ZM7.94902 7.11267C7.52078 7.60079 6.99082 8.37878 6.6077 9.18794H4.02051C3.63739 8.37878 3.10743 7.60079 2.67947 7.11294C2.11997 6.47551 1.8126 5.63599 1.8126 4.78826C1.8126 3.09829 3.12794 1.31944 5.28827 1.3126C7.2435 1.3126 8.81315 2.88226 8.81315 4.78826C8.81315 5.63599 8.50688 6.47551 7.94902 7.11267ZM4.87534 2.18767C3.66939 2.18767 2.68767 3.16939 2.68767 4.37534C2.68767 4.61719 2.88336 4.81288 3.12521 4.81288C3.36705 4.81288 3.56274 4.61599 3.56274 4.37534C3.56274 3.6515 4.1515 3.06274 4.87534 3.06274C5.11719 3.06274 5.31288 2.86727 5.31288 2.62548C5.31288 2.38369 5.11599 2.18767 4.87534 2.18767Z"})})),className:"bg-green-100/80 dark:bg-green-900"},{children:r}))}function S(t){var r=t.children;return(0,e.jsx)(C,j({icon:(0,e.jsx)("svg",j({className:"text-green-600 dark:text-green-400/80 w-3.5 h-auto",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512","aria-label":"Check"},{children:(0,e.jsx)("path",{d:"M438.6 105.4C451.1 117.9 451.1 138.1 438.6 150.6L182.6 406.6C170.1 419.1 149.9 419.1 137.4 406.6L9.372 278.6C-3.124 266.1-3.124 245.9 9.372 233.4C21.87 220.9 42.13 220.9 54.63 233.4L159.1 338.7L393.4 105.4C405.9 92.88 426.1 92.88 438.6 105.4H438.6z"})})),className:"bg-green-100/80 dark:bg-green-900"},{children:r}))}var P=function(){return P=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},P.apply(this,arguments)},L={none:"",md:"p-8"};function M(t){var r=t.as,n=void 0===r?"div":r,a=t.style,l=t.className,s=t.containerClassName,i=t.html,u=t.children,c=t.hint,d=t.padding,f=void 0===d?"md":d,p=t.lightOnly,m=void 0!==p&&p,v=L[f];return(0,e.jsxs)("div",P({className:s},{children:[void 0!==c&&(0,e.jsxs)("div",P({className:"not-prose mb-4 flex items-center space-x-2"},{children:[(0,e.jsx)("svg",P({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",className:"flex-none w-4 h-4 fill-slate-400 dark:fill-slate-300"},{children:(0,e.jsx)("path",{d:"M224 320c0 17.69 14.33 32 32 32h64c17.67 0 32-14.31 32-32s-14.33-32-32-32h-64C238.3 288 224 302.3 224 320zM267.6 256H352c17.67 0 32-14.31 32-32s-14.33-32-32-32h-80v40C272 240.5 270.3 248.5 267.6 256zM272 160H480c17.67 0 32-14.31 32-32s-14.33-32-32-32h-208.8C271.5 98.66 272 101.3 272 104V160zM320 416c0-17.69-14.33-32-32-32H224c-17.67 0-32 14.31-32 32s14.33 32 32 32h64C305.7 448 320 433.7 320 416zM202.1 355.8C196 345.6 192 333.3 192 320c0-5.766 1.08-11.24 2.51-16.55C157.4 300.6 128 269.9 128 232V159.1C128 151.2 135.2 144 143.1 144S160 151.2 159.1 159.1l0 69.72C159.1 245.2 171.3 271.1 200 271.1C222.1 271.1 240 254.1 240 232v-128C240 81.91 222.1 64 200 64H136.6C103.5 64 72.03 80 52.47 106.8L26.02 143.2C9.107 166.5 0 194.5 0 223.3V312C0 387.1 60.89 448 136 448h32.88C163.4 438.6 160 427.7 160 416C160 388.1 178 364.6 202.1 355.8z"})})),(0,e.jsx)("p",P({className:"text-slate-700 text-sm font-medium dark:text-slate-200"},{children:c}))]})),(0,e.jsxs)(n,P({style:a,className:o("not-prose relative bg-slate-50 rounded-xl overflow-hidden",!m&&"dark:bg-slate-800/25")},{children:[(0,e.jsx)("div",{style:{backgroundPosition:"10px 10px"},className:o("absolute inset-0 bg-grid-slate-100 [mask-image:linear-gradient(0deg,#fff,rgba(255,255,255,0.6))]",!m&&"dark:bg-grid-slate-700/25 dark:[mask-image:linear-gradient(0deg,rgba(255,255,255,0.1),rgba(255,255,255,0.5))]")}),(0,e.jsx)("div",P({className:o("relative rounded-xl overflow-auto flex justify-center",v,l)},i?{dangerouslySetInnerHTML:{__html:i}}:{children:u})),(0,e.jsx)("div",{className:o("absolute inset-0 pointer-events-none border border-black/5 rounded-xl",!m&&"dark:border-white/5")})]}))]}))}var R=function(){return R=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},R.apply(this,arguments)};function T(t){return(0,e.jsx)(A,R({},t))}function A(t){var r=t.name,n=t.type,a=t.defaultValue,l=t.required,s=void 0!==l&&l,i=t.optional,u=void 0!==i&&i,c=t.hidden,d=void 0!==c&&c,f=t.nameClasses,p=t.children;return d?null:(0,e.jsxs)("div",R({className:o("pb-3 mb-4 border-b border-slate-100 dark:border-slate-800")},{children:[(0,e.jsxs)("div",R({className:"flex font-mono text-sm"},{children:[r&&(0,e.jsxs)("div",R({className:"py-px flex-1 space-x-2 truncate"},{children:[(0,e.jsx)("span",R({className:o("px-1 py-px rounded-md font-medium bg-slate-50 dark:bg-slate-800 border border-slate-200 dark:border-slate-700",f,f&&!f.includes("text-")||!f?"dark:text-slate-200":void 0)},{children:r})),s&&(0,e.jsx)("span",R({className:"text-slate-500 dark:text-slate-300"},{children:"Required"})),u&&(0,e.jsx)("span",R({className:"text-slate-500 dark:text-slate-300"},{children:"Optional"})),a&&(0,e.jsxs)("span",R({className:"text-slate-500 dark:text-slate-300"},{children:["Default: ",a]}))]})),n&&(0,e.jsx)("div",R({className:"text-slate-600 dark:text-slate-300"},{children:n}))]})),(0,e.jsx)("div",R({className:"mt-2 prose-sm prose-slate dark:prose-dark"},{children:p}))]}))}function F(e,t,...r){if(e in t){let n=t[e];return"function"==typeof n?n(...r):n}let n=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map((e=>`"${e}"`)).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,F),n}var D,H=((D=H||{})[D.None=0]="None",D[D.RenderStrategy=1]="RenderStrategy",D[D.Static=2]="Static",D),_=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(_||{});function U({ourProps:e,theirProps:t,slot:r,defaultTag:n,features:a,visible:o=!0,name:l}){let s=V(t,e);if(o)return B(s,r,n,l);let i=null!=a?a:0;if(2&i){let{static:e=!1,...t}=s;if(e)return B(t,r,n,l)}if(1&i){let{unmount:e=!0,...t}=s;return F(e?0:1,{0:()=>null,1:()=>B({...t,hidden:!0,style:{display:"none"}},r,n,l)})}return B(s,r,n,l)}function B(e,r={},n,a){let{as:o=n,children:l,refName:s="ref",...i}=$(e,["unmount","static"]),u=void 0!==e.ref?{[s]:e.ref}:{},c="function"==typeof l?l(r):l;i.className&&"function"==typeof i.className&&(i.className=i.className(r));let d={};if(r){let e=!1,t=[];for(let[n,a]of Object.entries(r))"boolean"==typeof a&&(e=!0),!0===a&&t.push(n);e&&(d["data-headlessui-state"]=t.join(" "))}if(o===t.Fragment&&Object.keys(W(i)).length>0){if(!(0,t.isValidElement)(c)||Array.isArray(c)&&c.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${a} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(i).map((e=>` - ${e}`)).join("\n"),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map((e=>` - ${e}`)).join("\n")].join("\n"));return(0,t.cloneElement)(c,Object.assign({},V(c.props,W($(i,["ref"]))),d,u,function(...e){return{ref:e.every((e=>null==e))?void 0:t=>{for(let r of e)null!=r&&("function"==typeof r?r(t):r.current=t)}}}(c.ref,u.ref)))}return(0,t.createElement)(o,Object.assign({},$(i,["ref"]),o!==t.Fragment&&u,o!==t.Fragment&&d),c)}function V(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},r={};for(let n of e)for(let e in n)e.startsWith("on")&&"function"==typeof n[e]?(null!=r[e]||(r[e]=[]),r[e].push(n[e])):t[e]=n[e];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(r).map((e=>[e,void 0]))));for(let e in r)Object.assign(t,{[e](t,...n){let a=r[e];for(let e of a){if((t instanceof Event||(null==t?void 0:t.nativeEvent)instanceof Event)&&t.defaultPrevented)return;e(t,...n)}}});return t}function Z(e){var r;return Object.assign((0,t.forwardRef)(e),{displayName:null!=(r=e.displayName)?r:e.name})}function W(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function $(e,t=[]){let r=Object.assign({},e);for(let e of t)e in r&&delete r[e];return r}function q(){let e=[],t=[],r={enqueue(e){t.push(e)},addEventListener:(e,t,n,a)=>(e.addEventListener(t,n,a),r.add((()=>e.removeEventListener(t,n,a)))),requestAnimationFrame(...e){let t=requestAnimationFrame(...e);return r.add((()=>cancelAnimationFrame(t)))},nextFrame:(...e)=>r.requestAnimationFrame((()=>r.requestAnimationFrame(...e))),setTimeout(...e){let t=setTimeout(...e);return r.add((()=>clearTimeout(t)))},microTask(...e){let t={current:!0};return function(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch((e=>setTimeout((()=>{throw e}))))}((()=>{t.current&&e[0]()})),r.add((()=>{t.current=!1}))},add:t=>(e.push(t),()=>{let r=e.indexOf(t);if(r>=0){let[t]=e.splice(r,1);t()}}),dispose(){for(let t of e.splice(0))t()},async workQueue(){for(let e of t.splice(0))await e()}};return r}function z(){let[e]=(0,t.useState)(q);return(0,t.useEffect)((()=>()=>e.dispose()),[e]),e}const Q="undefined"==typeof window||"undefined"==typeof document;let G=Q?t.useEffect:t.useLayoutEffect;function K(e){let r=(0,t.useRef)(e);return G((()=>{r.current=e}),[e]),r}let Y=function(e){let r=K(e);return t.useCallback(((...e)=>r.current(...e)),[r])},J=Symbol();function X(...e){let r=(0,t.useRef)(e);(0,t.useEffect)((()=>{r.current=e}),[e]);let n=Y((e=>{for(let t of r.current)null!=t&&("function"==typeof t?t(e):t.current=e)}));return e.every((e=>null==e||(null==e?void 0:e[J])))?void 0:n}let ee={serverHandoffComplete:!1};var te;let re=0;function ne(){return++re}let ae=null!=(te=t.useId)?te:function(){let e=function(){let[e,r]=(0,t.useState)(ee.serverHandoffComplete);return(0,t.useEffect)((()=>{!0!==e&&r(!0)}),[e]),(0,t.useEffect)((()=>{!1===ee.serverHandoffComplete&&(ee.serverHandoffComplete=!0)}),[]),e}(),[r,n]=t.useState(e?ne:null);return G((()=>{null===r&&n(ne())}),[r]),null!=r?""+r:void 0};var oe=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(oe||{}),le=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(le||{});function se(e){return Q?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}let ie=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map((e=>`${e}:not([tabindex='-1'])`)).join(",");var ue,ce=((ue=ce||{})[ue.First=1]="First",ue[ue.Previous=2]="Previous",ue[ue.Next=4]="Next",ue[ue.Last=8]="Last",ue[ue.WrapAround=16]="WrapAround",ue[ue.NoScroll=32]="NoScroll",ue),de=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(de||{}),fe=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(fe||{});function pe(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(ie))}var me=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(me||{});function ve(e,t=0){var r;return e!==(null==(r=se(e))?void 0:r.body)&&F(t,{0:()=>e.matches(ie),1(){let t=e;for(;null!==t;){if(t.matches(ie))return!0;t=t.parentElement}return!1}})}function he(e){let t=se(e);q().nextFrame((()=>{t&&!ve(t.activeElement,0)&&function(e){null==e||e.focus({preventScroll:!0})}(e)}))}let xe=["textarea","input"].join(",");function ge(e,t=(e=>e)){return e.slice().sort(((e,r)=>{let n=t(e),a=t(r);if(null===n||null===a)return 0;let o=n.compareDocumentPosition(a);return o&Node.DOCUMENT_POSITION_FOLLOWING?-1:o&Node.DOCUMENT_POSITION_PRECEDING?1:0}))}function be(e,t){return function(e,t,r=!0,n=null){let a=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,o=Array.isArray(e)?r?ge(e):e:pe(e);n=null!=n?n:a.activeElement;let l,s=(()=>{if(5&t)return 1;if(10&t)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),i=(()=>{if(1&t)return 0;if(2&t)return Math.max(0,o.indexOf(n))-1;if(4&t)return Math.max(0,o.indexOf(n))+1;if(8&t)return o.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),u=32&t?{preventScroll:!0}:{},c=0,d=o.length;do{if(c>=d||c+d<=0)return 0;let e=i+c;if(16&t)e=(e+d)%d;else{if(e<0)return 3;if(e>=d)return 1}l=o[e],null==l||l.focus(u),c+=s}while(l!==a.activeElement);return 6&t&&function(e){var t,r;return null!=(r=null==(t=null==e?void 0:e.matches)?void 0:t.call(e,xe))&&r}(l)&&l.select(),l.hasAttribute("tabindex")||l.setAttribute("tabindex","0"),2}(pe(),t,!0,e)}function ye(e,r,n){let a=K(r);(0,t.useEffect)((()=>{function t(e){a.current(e)}return document.addEventListener(e,t,n),()=>document.removeEventListener(e,t,n)}),[e,n])}let we=(0,t.createContext)(null);we.displayName="OpenClosedContext";var ke=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(ke||{});function je(){return(0,t.useContext)(we)}function Ce({value:e,children:r}){return t.createElement(we.Provider,{value:e},r)}function Ne(e){var t;if(e.type)return e.type;let r=null!=(t=e.as)?t:"button";return"string"==typeof r&&"button"===r.toLowerCase()?"button":void 0}function Oe(e,r){let[n,a]=(0,t.useState)((()=>Ne(e)));return G((()=>{a(Ne(e))}),[e.type,e.as]),G((()=>{n||!r.current||r.current instanceof HTMLButtonElement&&!r.current.hasAttribute("type")&&a("button")}),[n,r]),n}var Ee=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Ee||{}),Ie=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(Ie||{}),Se=(e=>(e[e.OpenMenu=0]="OpenMenu",e[e.CloseMenu=1]="CloseMenu",e[e.GoToItem=2]="GoToItem",e[e.Search=3]="Search",e[e.ClearSearch=4]="ClearSearch",e[e.RegisterItem=5]="RegisterItem",e[e.UnregisterItem=6]="UnregisterItem",e))(Se||{});function Pe(e,t=(e=>e)){let r=null!==e.activeItemIndex?e.items[e.activeItemIndex]:null,n=ge(t(e.items.slice()),(e=>e.dataRef.current.domRef.current)),a=r?n.indexOf(r):null;return-1===a&&(a=null),{items:n,activeItemIndex:a}}let Le={1:e=>1===e.menuState?e:{...e,activeItemIndex:null,menuState:1},0:e=>0===e.menuState?e:{...e,menuState:0},2:(e,t)=>{var r;let n=Pe(e),a=function(e,t){let r=t.resolveItems();if(r.length<=0)return null;let n=t.resolveActiveIndex(),a=null!=n?n:-1,o=(()=>{switch(e.focus){case 0:return r.findIndex((e=>!t.resolveDisabled(e)));case 1:{let e=r.slice().reverse().findIndex(((e,r,n)=>!(-1!==a&&n.length-r-1>=a||t.resolveDisabled(e))));return-1===e?e:r.length-1-e}case 2:return r.findIndex(((e,r)=>!(r<=a||t.resolveDisabled(e))));case 3:{let e=r.slice().reverse().findIndex((e=>!t.resolveDisabled(e)));return-1===e?e:r.length-1-e}case 4:return r.findIndex((r=>t.resolveId(r)===e.id));case 5:return null;default:!function(e){throw new Error("Unexpected object: "+e)}(e)}})();return-1===o?n:o}(t,{resolveItems:()=>n.items,resolveActiveIndex:()=>n.activeItemIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...e,...n,searchQuery:"",activeItemIndex:a,activationTrigger:null!=(r=t.trigger)?r:1}},3:(e,t)=>{let r=""!==e.searchQuery?0:1,n=e.searchQuery+t.value.toLowerCase(),a=(null!==e.activeItemIndex?e.items.slice(e.activeItemIndex+r).concat(e.items.slice(0,e.activeItemIndex+r)):e.items).find((e=>{var t;return(null==(t=e.dataRef.current.textValue)?void 0:t.startsWith(n))&&!e.dataRef.current.disabled})),o=a?e.items.indexOf(a):-1;return-1===o||o===e.activeItemIndex?{...e,searchQuery:n}:{...e,searchQuery:n,activeItemIndex:o,activationTrigger:1}},4:e=>""===e.searchQuery?e:{...e,searchQuery:"",searchActiveItemIndex:null},5:(e,t)=>{let r=Pe(e,(e=>[...e,{id:t.id,dataRef:t.dataRef}]));return{...e,...r}},6:(e,t)=>{let r=Pe(e,(e=>{let r=e.findIndex((e=>e.id===t.id));return-1!==r&&e.splice(r,1),e}));return{...e,...r,activationTrigger:1}}},Me=(0,t.createContext)(null);function Re(e){let r=(0,t.useContext)(Me);if(null===r){let t=new Error(`<${e} /> is missing a parent <Menu /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Re),t}return r}function Te(e,t){return F(t.type,Le,e,t)}Me.displayName="MenuContext";let Ae=t.Fragment,Fe=Z((function(e,r){let n=(0,t.useReducer)(Te,{menuState:1,buttonRef:(0,t.createRef)(),itemsRef:(0,t.createRef)(),items:[],searchQuery:"",activeItemIndex:null,activationTrigger:1}),[{menuState:a,itemsRef:o,buttonRef:l},s]=n,i=X(r);!function(e,r,n=!0){let a=(0,t.useRef)(!1);function o(t,n){if(!a.current||t.defaultPrevented)return;let o=function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(e),l=n(t);if(null!==l&&l.ownerDocument.documentElement.contains(l)){for(let e of o){if(null===e)continue;let t=e instanceof HTMLElement?e:e.current;if(null!=t&&t.contains(l))return}return!ve(l,me.Loose)&&-1!==l.tabIndex&&t.preventDefault(),r(t,l)}}(0,t.useEffect)((()=>{requestAnimationFrame((()=>{a.current=n}))}),[n]);let l=(0,t.useRef)(null);ye("mousedown",(e=>{var t,r;a.current&&(l.current=(null==(r=null==(t=e.composedPath)?void 0:t.call(e))?void 0:r[0])||e.target)}),!0),ye("click",(e=>{!l.current||(o(e,(()=>l.current)),l.current=null)}),!0),ye("blur",(e=>o(e,(()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null))),!0)}([l,o],((e,t)=>{var r;s({type:1}),ve(t,me.Loose)||(e.preventDefault(),null==(r=l.current)||r.focus())}),0===a);let u=(0,t.useMemo)((()=>({open:0===a})),[a]),c=e,d={ref:i};return t.createElement(Me.Provider,{value:n},t.createElement(Ce,{value:F(a,{0:ke.Open,1:ke.Closed})},U({ourProps:d,theirProps:c,slot:u,defaultTag:Ae,name:"Menu"})))})),De=Z((function(e,r){var n;let[a,o]=Re("Menu.Button"),l=X(a.buttonRef,r),s=`headlessui-menu-button-${ae()}`,i=z(),u=Y((e=>{switch(e.key){case oe.Space:case oe.Enter:case oe.ArrowDown:e.preventDefault(),e.stopPropagation(),o({type:0}),i.nextFrame((()=>o({type:2,focus:le.First})));break;case oe.ArrowUp:e.preventDefault(),e.stopPropagation(),o({type:0}),i.nextFrame((()=>o({type:2,focus:le.Last})))}})),c=Y((e=>{e.key===oe.Space&&e.preventDefault()})),d=Y((t=>{if(function(e){let t=e.parentElement,r=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(r=t),t=t.parentElement;let n=""===(null==t?void 0:t.getAttribute("disabled"));return(!n||!function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}(r))&&n}(t.currentTarget))return t.preventDefault();e.disabled||(0===a.menuState?(o({type:1}),i.nextFrame((()=>{var e;return null==(e=a.buttonRef.current)?void 0:e.focus({preventScroll:!0})}))):(t.preventDefault(),o({type:0})))})),f=(0,t.useMemo)((()=>({open:0===a.menuState})),[a]),p=e;return U({ourProps:{ref:l,id:s,type:Oe(e,a.buttonRef),"aria-haspopup":!0,"aria-controls":null==(n=a.itemsRef.current)?void 0:n.id,"aria-expanded":e.disabled?void 0:0===a.menuState,onKeyDown:u,onKeyUp:c,onClick:d},theirProps:p,slot:f,defaultTag:"button",name:"Menu.Button"})})),He=H.RenderStrategy|H.Static,_e=Z((function(e,r){var n,a;let[o,l]=Re("Menu.Items"),s=X(o.itemsRef,r),i=function(...e){return(0,t.useMemo)((()=>se(...e)),[...e])}(o.itemsRef),u=`headlessui-menu-items-${ae()}`,c=z(),d=je(),f=null!==d?d===ke.Open:0===o.menuState;(0,t.useEffect)((()=>{let e=o.itemsRef.current;!e||0===o.menuState&&e!==(null==i?void 0:i.activeElement)&&e.focus({preventScroll:!0})}),[o.menuState,o.itemsRef,i]),function({container:e,accept:r,walk:n,enabled:a=!0}){let o=(0,t.useRef)(r),l=(0,t.useRef)(n);(0,t.useEffect)((()=>{o.current=r,l.current=n}),[r,n]),G((()=>{if(!e||!a)return;let t=se(e);if(!t)return;let r=o.current,n=l.current,s=Object.assign((e=>r(e)),{acceptNode:r}),i=t.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,s,!1);for(;i.nextNode();)n(i.currentNode)}),[e,a,o,l])}({container:o.itemsRef.current,enabled:0===o.menuState,accept:e=>"menuitem"===e.getAttribute("role")?NodeFilter.FILTER_REJECT:e.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT,walk(e){e.setAttribute("role","none")}});let p=Y((e=>{var t,r;switch(c.dispose(),e.key){case oe.Space:if(""!==o.searchQuery)return e.preventDefault(),e.stopPropagation(),l({type:3,value:e.key});case oe.Enter:if(e.preventDefault(),e.stopPropagation(),l({type:1}),null!==o.activeItemIndex){let{dataRef:e}=o.items[o.activeItemIndex];null==(r=null==(t=e.current)?void 0:t.domRef.current)||r.click()}he(o.buttonRef.current);break;case oe.ArrowDown:return e.preventDefault(),e.stopPropagation(),l({type:2,focus:le.Next});case oe.ArrowUp:return e.preventDefault(),e.stopPropagation(),l({type:2,focus:le.Previous});case oe.Home:case oe.PageUp:return e.preventDefault(),e.stopPropagation(),l({type:2,focus:le.First});case oe.End:case oe.PageDown:return e.preventDefault(),e.stopPropagation(),l({type:2,focus:le.Last});case oe.Escape:e.preventDefault(),e.stopPropagation(),l({type:1}),q().nextFrame((()=>{var e;return null==(e=o.buttonRef.current)?void 0:e.focus({preventScroll:!0})}));break;case oe.Tab:e.preventDefault(),e.stopPropagation(),l({type:1}),q().nextFrame((()=>{be(o.buttonRef.current,e.shiftKey?ce.Previous:ce.Next)}));break;default:1===e.key.length&&(l({type:3,value:e.key}),c.setTimeout((()=>l({type:4})),350))}})),m=Y((e=>{e.key===oe.Space&&e.preventDefault()})),v=(0,t.useMemo)((()=>({open:0===o.menuState})),[o]),h=e;return U({ourProps:{"aria-activedescendant":null===o.activeItemIndex||null==(n=o.items[o.activeItemIndex])?void 0:n.id,"aria-labelledby":null==(a=o.buttonRef.current)?void 0:a.id,id:u,onKeyDown:p,onKeyUp:m,role:"menu",tabIndex:0,ref:s},theirProps:h,slot:v,defaultTag:"div",features:He,visible:f,name:"Menu.Items"})})),Ue=t.Fragment,Be=Z((function(e,r){let{disabled:n=!1,...a}=e,[o,l]=Re("Menu.Item"),s=`headlessui-menu-item-${ae()}`,i=null!==o.activeItemIndex&&o.items[o.activeItemIndex].id===s,u=(0,t.useRef)(null),c=X(r,u);G((()=>{if(0!==o.menuState||!i||0===o.activationTrigger)return;let e=q();return e.requestAnimationFrame((()=>{var e,t;null==(t=null==(e=u.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})})),e.dispose}),[u,i,o.menuState,o.activationTrigger,o.activeItemIndex]);let d=(0,t.useRef)({disabled:n,domRef:u});G((()=>{d.current.disabled=n}),[d,n]),G((()=>{var e,t;d.current.textValue=null==(t=null==(e=u.current)?void 0:e.textContent)?void 0:t.toLowerCase()}),[d,u]),G((()=>(l({type:5,id:s,dataRef:d}),()=>l({type:6,id:s}))),[d,s]);let f=Y((e=>{if(n)return e.preventDefault();l({type:1}),he(o.buttonRef.current)})),p=Y((()=>{if(n)return l({type:2,focus:le.Nothing});l({type:2,focus:le.Specific,id:s})})),m=Y((()=>{n||i||l({type:2,focus:le.Specific,id:s,trigger:0})})),v=Y((()=>{n||!i||l({type:2,focus:le.Nothing})})),h=(0,t.useMemo)((()=>({active:i,disabled:n})),[i,n]);return U({ourProps:{id:s,ref:c,role:"menuitem",tabIndex:!0===n?void 0:-1,"aria-disabled":!0===n||void 0,disabled:void 0,onClick:f,onFocus:p,onPointerMove:m,onMouseMove:m,onPointerLeave:v,onMouseLeave:v},theirProps:a,slot:h,defaultTag:Ue,name:"Menu.Item"})})),Ve=Object.assign(Fe,{Button:De,Items:_e,Item:Be});var Ze=function(){return Ze=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},Ze.apply(this,arguments)};function We(r){var n=r.options,a=r.onChange,l=r.defaultOption,s=r.selectedOptionClass,i=l,u=Array.isArray(n)&&n.length>0;null==l&&u&&(i=n[0]);var c=(0,t.useState)(i),d=c[0],f=c[1];return u?(0,e.jsx)("div",Ze({className:"relative"},{children:(0,e.jsxs)(Ve,{children:[(0,e.jsxs)(Ve.Button,Ze({className:"text-xs text-slate-500 dark:text-slate-400 leading-5 font-semibold !bg-slate-400/10 rounded-full py-1 px-3 flex items-center space-x-2 hover:bg-slate-400/20 dark:highlight-white/5"},{children:[d,(0,e.jsx)("svg",Ze({width:"6",height:"3",className:"ml-2 overflow-visible","aria-hidden":"true"},{children:(0,e.jsx)("path",{d:"M0 0L3 3L6 0",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})}))]})),(0,e.jsx)(Ve.Items,Ze({className:"absolute top-full mt-1 py-2 w-40 rounded-lg bg-white shadow text-sm leading-6 font-semibold text-slate-700 dark:bg-slate-800 dark:text-slate-300 dark:highlight-white/5"},{children:n.map((function(t){return(0,e.jsx)(Ve.Item,Ze({disabled:t===d},{children:function(r){var n=r.active;return(0,e.jsxs)("a",Ze({className:o("flex items-center justify-between px-3 py-1 cursor-pointer",n&&"bg-slate-50 text-slate-900 dark:bg-slate-600/30 dark:text-white",t===d&&s),onClick:function(){return function(e){f(e),a&&a(e)}(t)}},{children:[t,t===d&&(0,e.jsx)("svg",Ze({width:"24",height:"24",fill:"none","aria-hidden":"true"},{children:(0,e.jsx)("path",{d:"m7.75 12.75 2.25 2.5 6.25-6.5",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}))]}))}}),t)}))}))]})})):null}var $e=function(){return $e=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},$e.apply(this,arguments)};function qe(t){var r=t.title,n=t.isActive,a=void 0===n||n,l=t.children;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("h2",$e({className:o("flex text-sm leading-6 font-semibold whitespace-nowrap pt-3 pb-2.5 -mb-px max-w-max border-b",a?"text-primary dark:text-primary-light border-current":"text-slate-900 border-transparent hover:border-slate-300 dark:text-slate-200 dark:hover:border-slate-700")},{children:r})),l?(0,e.jsx)("div",$e({className:"prose dark:prose-dark"},{children:l})):null]})}var ze=function(){return ze=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},ze.apply(this,arguments)};function Qe(r){var n=r.children,a=(0,t.useState)(0),o=a[0],l=a[1],s=t.Children.toArray(n),i=s[o].props.children;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("ul",ze({className:"not-prose mb-6 pb-[1px] flex-none min-w-full overflow-auto border-b border-slate-200 space-x-6 flex dark:border-slate-200/10"},{children:s.map((function(t,r){return(0,e.jsx)("li",ze({className:"cursor-pointer",onClick:function(){return l(r)}},{children:(0,e.jsx)(qe,{title:t.props.title,isActive:r===o})}))}))})),(0,e.jsx)("div",ze({className:"prose dark:prose-dark"},{children:i}))]})}var Ge=function(){return Ge=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},Ge.apply(this,arguments)};function Ke(t){var r=t.tip,n=t.children;return n?(0,e.jsxs)("span",Ge({className:"group z-10 inline relative"},{children:[Ye(n),(0,e.jsx)("span",Ge({className:"hidden group-hover:flex w-fit lg:whitespace-nowrap absolute bottom-full left-1/2 mb-0.5 pb-1 -translate-x-1/2 bg-slate-800 text-center text-slate-50 text-xs px-1.5 py-1 rounded-lg border border-slate-50"},{children:r}))]})):null}function Ye(r){return(0,t.isValidElement)(r)?r:(0,e.jsx)("span",Ge({className:"underline decoration-dotted decoration-2 underline-offset-4 decoration-slate-400 dark:decoration-slate-500"},{children:r}))}var Je=function(){return Je=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},Je.apply(this,arguments)};function Xe(t){var r=t.open;return(0,e.jsx)("svg",Je({xmlns:"http://www.w3.org/2000/svg",className:o("h-3 w-3",r&&"rotate-90 -mt-1"),viewBox:"0 0 256 512",fill:"currentColor"},{children:(0,e.jsx)("path",{d:"M118.6 105.4l128 127.1C252.9 239.6 256 247.8 256 255.1s-3.125 16.38-9.375 22.63l-128 127.1c-9.156 9.156-22.91 11.9-34.88 6.943S64 396.9 64 383.1V128c0-12.94 7.781-24.62 19.75-29.58S109.5 96.23 118.6 105.4z"})}))}const et=function(t){var r=t.title,n=t.description,a=t.open,o=t.setOpen;return(0,e.jsxs)("button",Je({onClick:function(){return o(!a)},className:"not-prose mt-1.5 flex flex-row items-center content-center w-full py-1 text-slate-700 hover:text-slate-900 dark:text-slate-400 dark:hover:text-slate-200 ".concat(a?"":"rounded-b-xl"),"aria-controls":r+"Children","aria-expanded":a},{children:[(0,e.jsx)(Xe,{open:a}),(0,e.jsxs)("div",Je({className:"ml-2 leading-tight text-left"},{children:[(0,e.jsxs)("p",Je({className:"m-0"},{children:[a?"Hide":"Show"," ",r]})),n?(0,e.jsx)("p",Je({className:"m-0"},{children:n})):null]}))]}))};var tt=function(){return tt=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},tt.apply(this,arguments)};const rt=function(r){var n=r.title,a=r.description,l=r.defaultOpen,s=void 0!==l&&l,i=r.onChange,u=r.children,c=(0,t.useState)(s),d=c[0],f=c[1];return(0,e.jsxs)("div",tt({role:"listitem",className:""},{children:[(0,e.jsx)(et,{title:n,description:a,open:d,setOpen:function(e){f(e),i&&i(e)}}),(0,e.jsx)("div",tt({id:n+"Children",className:o("mt-2 pt-2 mb-4 mx-[6px] px-4 border-l border-slate-100 dark:border-slate-800",!d&&"hidden")},{children:u}))]}),n)}})(),module.exports=n})();
|
|
2
|
+
(()=>{"use strict";var e={455:(e,t,r)=>{var n=r(258),a=Symbol.for("react.element"),o=Symbol.for("react.fragment"),l=Object.prototype.hasOwnProperty,s=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,r){var n,o={},u=null,c=null;for(n in void 0!==r&&(u=""+r),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(c=t.ref),t)l.call(t,n)&&!i.hasOwnProperty(n)&&(o[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===o[n]&&(o[n]=t[n]);return{$$typeof:a,type:e,key:u,ref:c,props:o,_owner:s.current}}t.Fragment=o,t.jsx=u,t.jsxs=u},557:(e,t,r)=>{e.exports=r(455)},258:e=>{e.exports=require("react")}},t={};function r(n){var a=t[n];if(void 0!==a)return a.exports;var o=t[n]={exports:{}};return e[n](o,o.exports,r),o.exports}r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};(()=>{r.r(n),r.d(n,{Accordion:()=>c,AccordionGroup:()=>f,Button:()=>h,Card:()=>y,CardGroup:()=>C,Check:()=>Ge,CodeBlock:()=>S,CodeGroup:()=>_e,Expandable:()=>Dt,Frame:()=>Ye,Info:()=>We,Note:()=>Ze,Param:()=>Xe,PillSelect:()=>Nt,Tab:()=>Pt,Tabs:()=>Tt,Tip:()=>qe,Tooltip:()=>Et,Warning:()=>$e});var e=r(557),t=r(258);function a(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=a(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}const o=function(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=a(e))&&(n&&(n+=" "),n+=t);return n};var l=function(){return l=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},l.apply(this,arguments)};function s(t){var r=t.open;return(0,e.jsx)("svg",l({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",className:"h-3 w-3",style:{fill:"currentColor",transform:r?"rotate(90deg)":void 0}},{children:(0,e.jsx)("path",{d:"M342.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L274.7 256 105.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"})}))}const i=function(t){var r=t.title,n=t.description,a=t.open,i=t.setOpen,u=t.icon,c=t.isRounded,d=t.coverClass;return(0,e.jsxs)("button",l({onClick:function(){return i(!a)},className:o("not-prose flex flex-row items-center content-center w-full",c&&"rounded-t-xl",c&&!a&&"rounded-b-xl",d),"aria-controls":r+"Children","aria-expanded":a},{children:[(0,e.jsx)(s,{open:a}),u?(0,e.jsx)("div",l({className:"h-4 w-4 fill-slate-800 dark:fill-slate-100 text-slate-800 dark:text-slate-100"},{children:u})):null,(0,e.jsxs)("div",l({className:"leading-tight text-left"},{children:[(0,e.jsx)("p",l({className:"m-0 font-medium text-slate-900 dark:text-slate-200"},{children:r})),n?(0,e.jsx)("p",l({className:"m-0 text-slate-900 dark:text-slate-200"},{children:n})):null]}))]}))};var u=function(){return u=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},u.apply(this,arguments)};const c=function(r){var n=r.title,a=r.description,l=r.defaultOpen,s=void 0!==l&&l,c=r.icon,d=r.onChange,f=r.variant,p=void 0===f?"rounded":f,m=r.children,v=(0,t.useState)(s),h=v[0],x=v[1],b=function(e){return"minimalist"===e?{parentClass:"",coverClass:"[&>div]:ml-2 py-1 text-slate-700 hover:text-slate-900 dark:text-slate-400 dark:hover:text-slate-200",contentClass:"mt-2 pt-1 mb-4 mx-[7px] px-4 border-l border-slate-100 dark:border-slate-800"}:{parentClass:"border dark:border-slate-800 rounded-xl mb-3",coverClass:"py-4 px-5 space-x-2 hover:bg-slate-100 hover:dark:bg-slate-800",contentClass:"mt-2 mb-4 mx-6"}}(p),g=b.parentClass,y=b.coverClass,w=b.contentClass;return(0,e.jsxs)("div",u({role:"listitem",className:g},{children:[(0,e.jsx)(i,{title:n,description:a,open:h,setOpen:function(e){x(e),d&&d(e)},icon:c,isRounded:"rounded"===p,coverClass:y}),(0,e.jsx)("div",u({className:o(w,!h&&"hidden")},{children:m}))]}),n)};var d=function(){return d=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},d.apply(this,arguments)};const f=function(t){var r=t.children;return(0,e.jsx)("div",d({className:"[&>div]:border-0 [&>div]:rounded-none [&>div>button]:rounded-none [&>div]:mb-0 overflow-hidden mt-0 mb-3 rounded-xl prose prose-slate dark:prose-dark divide-y divide-inherit border dark:border-slate-800",role:"list"},{children:r}))};var p=function(){return p=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},p.apply(this,arguments)},m={indigo:["bg-indigo-50 text-indigo-600 hover:bg-indigo-200 hover:text-indigo-700 focus:ring-indigo-500","text-indigo-300 group-hover:text-indigo-400"],pink:["bg-pink-50 text-pink-600 hover:bg-pink-100 hover:text-pink-700 focus:ring-pink-600","text-pink-300 group-hover:text-pink-400"],sky:["bg-sky-50 text-sky-600 hover:bg-sky-100 hover:text-sky-700 focus:ring-sky-600","text-sky-300 group-hover:text-sky-400"],blue:["bg-blue-50 text-blue-600 hover:bg-blue-100 hover:text-blue-700 focus:ring-blue-600","text-blue-300 group-hover:text-blue-400"],gray:["bg-slate-100 text-slate-700 hover:bg-slate-200 hover:text-slate-900 focus:ring-slate-500","text-slate-300 group-hover:text-slate-400"]},v=p(p({},m),{gray:["dark:bg-slate-700 dark:text-slate-100 dark:hover:bg-slate-600 dark:hover:text-white dark:focus:ring-slate-500","dark:text-slate-500 dark:group-hover:text-slate-400"],sky:["dark:bg-sky-500 dark:text-sky-50 dark:hover:bg-sky-400 dark:hover:text-white dark:focus:ring-sky-200","dark:text-sky-300 dark:group-hover:text-sky-100"]});function h(t){var r=t.href,n=t.color,a=void 0===n?"gray":n,l=t.darkColor,s=void 0===l?a:l,i=t.reverse,u=void 0!==i&&i,c=t.children,d="string"==typeof a?m[a]:a,f="string"==typeof s?v[s]||[]:s;return(0,e.jsxs)("a",p({className:o("group inline-flex items-center h-9 rounded-full text-sm font-semibold whitespace-nowrap px-3 focus:outline-none focus:ring-2",d[0],f[0],u&&"flex-row-reverse"),href:r},{children:[c,(0,e.jsx)("svg",p({className:o("overflow-visible",u?"mr-3":"ml-3",d[1],f[1]),width:"3",height:"6",viewBox:"0 0 3 6",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:(0,e.jsx)("path",{d:u?"M3 0L0 3L3 6":"M0 0L3 3L0 6"})}))]}))}const x=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,b=/^[a-zA-Z]:\\/;var g=function(){return g=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},g.apply(this,arguments)};function y(t){var r=t.title,n=t.icon,a=t.className,l=t.href,s=t.onClick,i=t.children,u=l?"a":"div",c=function(e){if("string"!=typeof e)throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return!b.test(e)&&x.test(e)}(null!=l?l:"")?{target:"_blank",rel:"noreferrer"}:{};return(0,e.jsxs)(u,g({className:o("block not-prose font-normal group relative my-2 ring-2 ring-transparent rounded-xl border border-slate-200 dark:border-slate-800 overflow-hidden px-6 py-5 w-full",l&&"cursor-pointer",a),href:l,onClick:s},c,{children:[n?(0,e.jsx)("div",g({className:"h-6 w-6 fill-slate-800 dark:fill-slate-100 text-slate-800 dark:text-slate-100"},{children:n})):null,(0,e.jsx)("h2",g({className:o("font-semibold text-base text-slate-800 dark:text-white",null!=n&&"mt-4")},{children:r})),(0,e.jsx)("span",g({className:o("mt-1 font-normal",r?"text-slate-600 dark:text-slate-400":"text-slate-700 dark:text-slate-300")},{children:i}))]}))}var w=function(){return w=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},w.apply(this,arguments)};function C(t){var r=t.children,n=t.cols,a=void 0===n?2:n;return(0,e.jsx)("div",w({className:"not-prose grid sm:grid-cols-".concat(a," gap-x-4")},{children:r}))}function j(e){return j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},j(e)}var k=function e(t){return["string","number"].includes(j(t))?t.toString():t instanceof Array?t.map(e).join(""):"object"===j(t)&&t?e(t.props.children):""};function N(e){return t=this,r=void 0,a=function(){var t;return function(e,t){var r,n,a,o,l={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;l;)try{if(r=1,n&&(a=2&o[0]?n.return:o[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,o[1])).done)return a;switch(n=0,a&&(o=[2&o[0],a.value]),o[0]){case 0:case 1:a=o;break;case 4:return l.label++,{value:o[1],done:!1};case 5:l.label++,n=o[1],o=[0];continue;case 7:o=l.ops.pop(),l.trys.pop();continue;default:if(!((a=(a=l.trys).length>0&&a[a.length-1])||6!==o[0]&&2!==o[0])){l=0;continue}if(3===o[0]&&(!a||o[1]>a[0]&&o[1]<a[3])){l.label=o[1];break}if(6===o[0]&&l.label<a[1]){l.label=a[1],a=o;break}if(a&&l.label<a[2]){l.label=a[2],l.ops.push(o);break}a[2]&&l.ops.pop(),l.trys.pop();continue}o=t.call(e,l)}catch(e){o=[6,e],n=0}finally{r=a=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}(this,(function(r){switch(r.label){case 0:if(e||console.warn("Called copyToClipboard() with empty text"),!navigator.clipboard)return console.error("The Clipboard API was unavailable. The Clipboard API is only available client-side in browsers using HTTPS."),[2];r.label=1;case 1:return r.trys.push([1,3,,4]),[4,navigator.clipboard.writeText(e)];case 2:return r.sent(),[2,"success"];case 3:return t=r.sent(),console.error("Failed to copy: ",t),[2,"error"];case 4:return[2]}}))},new((n=void 0)||(n=Promise))((function(e,o){function l(e){try{i(a.next(e))}catch(e){o(e)}}function s(e){try{i(a.throw(e))}catch(e){o(e)}}function i(t){var r;t.done?e(t.value):(r=t.value,r instanceof n?r:new n((function(e){e(r)}))).then(l,s)}i((a=a.apply(t,r||[])).next())}));var t,r,n,a}var O=function(){return O=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},O.apply(this,arguments)};function P(r){var n=this,a=r.textToCopy,o=r.copiedTooltipColor,l=void 0===o?"#002937":o,s=(0,t.useState)(!0),i=s[0],u=s[1];return a?navigator.clipboard?(0,e.jsxs)("button",O({className:"relative",onClick:function(){return e=n,t=void 0,o=function(){return function(e,t){var r,n,a,o,l={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;l;)try{if(r=1,n&&(a=2&o[0]?n.return:o[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,o[1])).done)return a;switch(n=0,a&&(o=[2&o[0],a.value]),o[0]){case 0:case 1:a=o;break;case 4:return l.label++,{value:o[1],done:!1};case 5:l.label++,n=o[1],o=[0];continue;case 7:o=l.ops.pop(),l.trys.pop();continue;default:if(!((a=(a=l.trys).length>0&&a[a.length-1])||6!==o[0]&&2!==o[0])){l=0;continue}if(3===o[0]&&(!a||o[1]>a[0]&&o[1]<a[3])){l.label=o[1];break}if(6===o[0]&&l.label<a[1]){l.label=a[1],a=o;break}if(a&&l.label<a[2]){l.label=a[2],l.ops.push(o);break}a[2]&&l.ops.pop(),l.trys.pop();continue}o=t.call(e,l)}catch(e){o=[6,e],n=0}finally{r=a=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}(this,(function(e){switch(e.label){case 0:return[4,N(a)];case 1:return"success"===e.sent()&&(u(!1),setTimeout((function(){u(!0)}),2e3)),[2]}}))},new((r=void 0)||(r=Promise))((function(n,a){function l(e){try{i(o.next(e))}catch(e){a(e)}}function s(e){try{i(o.throw(e))}catch(e){a(e)}}function i(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(l,s)}i((o=o.apply(e,t||[])).next())}));var e,t,r,o}},{children:[(0,e.jsx)("svg",O({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",className:"top-5 h-5 fill-slate-500 hover:fill-slate-300 cursor-pointer"},{children:(0,e.jsx)("path",{d:"M320 64H280h-9.6C263 27.5 230.7 0 192 0s-71 27.5-78.4 64H104 64C28.7 64 0 92.7 0 128V448c0 35.3 28.7 64 64 64H320c35.3 0 64-28.7 64-64V128c0-35.3-28.7-64-64-64zM80 112v24c0 13.3 10.7 24 24 24h88 88c13.3 0 24-10.7 24-24V112h16c8.8 0 16 7.2 16 16V448c0 8.8-7.2 16-16 16H64c-8.8 0-16-7.2-16-16V128c0-8.8 7.2-16 16-16H80zm88-32a24 24 0 1 1 48 0 24 24 0 1 1 -48 0zM136 272a24 24 0 1 0 -48 0 24 24 0 1 0 48 0zm40-16c-8.8 0-16 7.2-16 16s7.2 16 16 16h96c8.8 0 16-7.2 16-16s-7.2-16-16-16H176zm0 96c-8.8 0-16 7.2-16 16s7.2 16 16 16h96c8.8 0 16-7.2 16-16s-7.2-16-16-16H176zm-64 40a24 24 0 1 0 0-48 24 24 0 1 0 0 48z"})})),(0,e.jsx)(I,{hidden:i,copiedTooltipColor:l})]})):(console.warn("The browser's Clipboard API is unavailable. The Clipboard API is only available on HTTPS."),null):null}function I(t){var r=t.hidden,n=t.copiedTooltipColor;return(0,e.jsx)("div",O({className:o(r&&"hidden","absolute bottom-full left-1/2 mb-3.5 pb-1 -translate-x-1/2")},{children:(0,e.jsxs)("div",O({className:"relative text-white text-xs leading-6 font-medium px-1.5 rounded-lg",style:{background:n},"data-reach-alert":"true"},{children:["Copied",(0,e.jsx)("svg",O({"aria-hidden":"true",width:"16",height:"6",viewBox:"0 0 16 6",className:"absolute top-full left-1/2 -mt-px -ml-2",style:{color:n}},{children:(0,e.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15 0H1V1.00366V1.00366V1.00371H1.01672C2.72058 1.0147 4.24225 2.74704 5.42685 4.72928C6.42941 6.40691 9.57154 6.4069 10.5741 4.72926C11.7587 2.74703 13.2803 1.0147 14.9841 1.00371H15V0Z",fill:"currentColor"})}))]}))}))}var T=function(){return T=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},T.apply(this,arguments)};function S(r){var n=r.filename,a=r.filenameColor,l=r.copiedTooltipColor,s=r.children,i=(0,t.useState)(!1),u=i[0],c=i[1];return(0,t.useEffect)((function(){c(!0)}),[]),(0,e.jsxs)("div",T({className:o("mt-5 mb-8 not-prose gray-frame",n&&"pt-2")},{children:[n?(0,e.jsx)(E,T({filename:n,filenameColor:a},{children:u?(0,e.jsx)(P,{textToCopy:k(s),copiedTooltipColor:null!=l?l:a}):void 0})):null,!n&&u&&(0,e.jsx)("div",T({className:"absolute top-5 right-5"},{children:(0,e.jsx)(P,{textToCopy:k(s),copiedTooltipColor:null!=l?l:a})})),(0,e.jsx)("div",T({className:"code-in-gray-frame children:!my-0 children:!shadow-none children:!bg-transparent",style:{fontVariantLigatures:"none"}},{children:u?s:null}))]}))}function E(t){var r=t.filename,n=t.filenameColor,a=t.children;return(0,e.jsxs)("div",T({className:"flex text-slate-400 text-xs leading-6"},{children:[(0,e.jsx)("div",T({className:"flex-none border-t border-b border-t-transparent px-4 py-1 flex items-center",style:{color:n,borderBottomColor:n}},{children:r})),(0,e.jsx)("div",T({className:"flex-auto flex items-center bg-slate-700/50 border border-slate-500/30 rounded-t"},{children:a&&(0,e.jsx)("div",T({className:"flex-auto flex items-center justify-end px-4 space-x-4"},{children:a}))}))]}))}function R(e,t,...r){if(e in t){let n=t[e];return"function"==typeof n?n(...r):n}let n=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map((e=>`"${e}"`)).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,R),n}var A,L=((A=L||{})[A.None=0]="None",A[A.RenderStrategy=1]="RenderStrategy",A[A.Static=2]="Static",A),M=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(M||{});function F({ourProps:e,theirProps:t,slot:r,defaultTag:n,features:a,visible:o=!0,name:l}){let s=H(t,e);if(o)return D(s,r,n,l);let i=null!=a?a:0;if(2&i){let{static:e=!1,...t}=s;if(e)return D(t,r,n,l)}if(1&i){let{unmount:e=!0,...t}=s;return R(e?0:1,{0:()=>null,1:()=>D({...t,hidden:!0,style:{display:"none"}},r,n,l)})}return D(s,r,n,l)}function D(e,r={},n,a){let{as:o=n,children:l,refName:s="ref",...i}=U(e,["unmount","static"]),u=void 0!==e.ref?{[s]:e.ref}:{},c="function"==typeof l?l(r):l;i.className&&"function"==typeof i.className&&(i.className=i.className(r));let d={};if(r){let e=!1,t=[];for(let[n,a]of Object.entries(r))"boolean"==typeof a&&(e=!0),!0===a&&t.push(n);e&&(d["data-headlessui-state"]=t.join(" "))}if(o===t.Fragment&&Object.keys(V(i)).length>0){if(!(0,t.isValidElement)(c)||Array.isArray(c)&&c.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${a} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(i).map((e=>` - ${e}`)).join("\n"),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map((e=>` - ${e}`)).join("\n")].join("\n"));return(0,t.cloneElement)(c,Object.assign({},H(c.props,V(U(i,["ref"]))),d,u,function(...e){return{ref:e.every((e=>null==e))?void 0:t=>{for(let r of e)null!=r&&("function"==typeof r?r(t):r.current=t)}}}(c.ref,u.ref)))}return(0,t.createElement)(o,Object.assign({},U(i,["ref"]),o!==t.Fragment&&u,o!==t.Fragment&&d),c)}function H(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},r={};for(let n of e)for(let e in n)e.startsWith("on")&&"function"==typeof n[e]?(null!=r[e]||(r[e]=[]),r[e].push(n[e])):t[e]=n[e];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(r).map((e=>[e,void 0]))));for(let e in r)Object.assign(t,{[e](t,...n){let a=r[e];for(let e of a){if((t instanceof Event||(null==t?void 0:t.nativeEvent)instanceof Event)&&t.defaultPrevented)return;e(t,...n)}}});return t}function _(e){var r;return Object.assign((0,t.forwardRef)(e),{displayName:null!=(r=e.displayName)?r:e.name})}function V(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function U(e,t=[]){let r=Object.assign({},e);for(let e of t)e in r&&delete r[e];return r}const B="undefined"==typeof window||"undefined"==typeof document;let z=B?t.useEffect:t.useLayoutEffect,W={serverHandoffComplete:!1};var $;let Z=0;function q(){return++Z}let G=null!=($=t.useId)?$:function(){let e=function(){let[e,r]=(0,t.useState)(W.serverHandoffComplete);return(0,t.useEffect)((()=>{!0!==e&&r(!0)}),[e]),(0,t.useEffect)((()=>{!1===W.serverHandoffComplete&&(W.serverHandoffComplete=!0)}),[]),e}(),[r,n]=t.useState(e?q:null);return z((()=>{null===r&&n(q())}),[r]),null!=r?""+r:void 0};var Q=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(Q||{});function K(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch((e=>setTimeout((()=>{throw e}))))}function Y(){let e=[],t=[],r={enqueue(e){t.push(e)},addEventListener:(e,t,n,a)=>(e.addEventListener(t,n,a),r.add((()=>e.removeEventListener(t,n,a)))),requestAnimationFrame(...e){let t=requestAnimationFrame(...e);return r.add((()=>cancelAnimationFrame(t)))},nextFrame:(...e)=>r.requestAnimationFrame((()=>r.requestAnimationFrame(...e))),setTimeout(...e){let t=setTimeout(...e);return r.add((()=>clearTimeout(t)))},microTask(...e){let t={current:!0};return K((()=>{t.current&&e[0]()})),r.add((()=>{t.current=!1}))},add:t=>(e.push(t),()=>{let r=e.indexOf(t);if(r>=0){let[t]=e.splice(r,1);t()}}),dispose(){for(let t of e.splice(0))t()},async workQueue(){for(let e of t.splice(0))await e()}};return r}function J(e){return B?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}let X=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map((e=>`${e}:not([tabindex='-1'])`)).join(",");var ee,te=((ee=te||{})[ee.First=1]="First",ee[ee.Previous=2]="Previous",ee[ee.Next=4]="Next",ee[ee.Last=8]="Last",ee[ee.WrapAround=16]="WrapAround",ee[ee.NoScroll=32]="NoScroll",ee),re=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(re||{}),ne=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(ne||{});function ae(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(X))}var oe=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(oe||{});function le(e,t=0){var r;return e!==(null==(r=J(e))?void 0:r.body)&&R(t,{0:()=>e.matches(X),1(){let t=e;for(;null!==t;){if(t.matches(X))return!0;t=t.parentElement}return!1}})}function se(e){let t=J(e);Y().nextFrame((()=>{t&&!le(t.activeElement,0)&&function(e){null==e||e.focus({preventScroll:!0})}(e)}))}let ie=["textarea","input"].join(",");function ue(e,t=(e=>e)){return e.slice().sort(((e,r)=>{let n=t(e),a=t(r);if(null===n||null===a)return 0;let o=n.compareDocumentPosition(a);return o&Node.DOCUMENT_POSITION_FOLLOWING?-1:o&Node.DOCUMENT_POSITION_PRECEDING?1:0}))}function ce(e,t){return de(ae(),t,!0,e)}function de(e,t,r=!0,n=null){let a=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,o=Array.isArray(e)?r?ue(e):e:ae(e);n=null!=n?n:a.activeElement;let l,s=(()=>{if(5&t)return 1;if(10&t)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),i=(()=>{if(1&t)return 0;if(2&t)return Math.max(0,o.indexOf(n))-1;if(4&t)return Math.max(0,o.indexOf(n))+1;if(8&t)return o.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),u=32&t?{preventScroll:!0}:{},c=0,d=o.length;do{if(c>=d||c+d<=0)return 0;let e=i+c;if(16&t)e=(e+d)%d;else{if(e<0)return 3;if(e>=d)return 1}l=o[e],null==l||l.focus(u),c+=s}while(l!==a.activeElement);return 6&t&&function(e){var t,r;return null!=(r=null==(t=null==e?void 0:e.matches)?void 0:t.call(e,ie))&&r}(l)&&l.select(),l.hasAttribute("tabindex")||l.setAttribute("tabindex","0"),2}function fe(e){let r=(0,t.useRef)(e);return z((()=>{r.current=e}),[e]),r}let pe=function(e){let r=fe(e);return t.useCallback(((...e)=>r.current(...e)),[r])},me=Symbol();function ve(...e){let r=(0,t.useRef)(e);(0,t.useEffect)((()=>{r.current=e}),[e]);let n=pe((e=>{for(let t of r.current)null!=t&&("function"==typeof t?t(e):t.current=e)}));return e.every((e=>null==e||(null==e?void 0:e[me])))?void 0:n}function he(e){var t;if(e.type)return e.type;let r=null!=(t=e.as)?t:"button";return"string"==typeof r&&"button"===r.toLowerCase()?"button":void 0}function xe(e,r){let[n,a]=(0,t.useState)((()=>he(e)));return z((()=>{a(he(e))}),[e.type,e.as]),z((()=>{n||!r.current||r.current instanceof HTMLButtonElement&&!r.current.hasAttribute("type")&&a("button")}),[n,r]),n}var be=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(be||{});let ge=_((function(e,t){let{features:r=1,...n}=e;return F({ourProps:{ref:t,"aria-hidden":2==(2&r)||void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...4==(4&r)&&2!=(2&r)&&{display:"none"}}},theirProps:n,slot:{},defaultTag:"div",name:"Hidden"})}));function ye({onFocus:e}){let[r,n]=(0,t.useState)(!0);return r?t.createElement(ge,{as:"button",type:"button",features:be.Focusable,onFocus:t=>{t.preventDefault();let r,a=50;r=requestAnimationFrame((function t(){if(!(a--<=0))return e()?(n(!1),void cancelAnimationFrame(r)):void(r=requestAnimationFrame(t));r&&cancelAnimationFrame(r)}))}}):null}var we=(e=>(e[e.SetSelectedIndex=0]="SetSelectedIndex",e[e.RegisterTab=1]="RegisterTab",e[e.UnregisterTab=2]="UnregisterTab",e[e.RegisterPanel=3]="RegisterPanel",e[e.UnregisterPanel=4]="UnregisterPanel",e))(we||{});let Ce={0(e,t){let r=e.tabs.filter((e=>{var t;return!(null!=(t=e.current)&&t.hasAttribute("disabled"))}));if(t.index<0)return{...e,selectedIndex:e.tabs.indexOf(r[0])};if(t.index>e.tabs.length)return{...e,selectedIndex:e.tabs.indexOf(r[r.length-1])};let n=e.tabs.slice(0,t.index),a=[...e.tabs.slice(t.index),...n].find((e=>r.includes(e)));return a?{...e,selectedIndex:e.tabs.indexOf(a)}:e},1(e,t){var r;if(e.tabs.includes(t.tab))return e;let n=e.tabs[e.selectedIndex],a=ue([...e.tabs,t.tab],(e=>e.current)),o=null!=(r=a.indexOf(n))?r:e.selectedIndex;return-1===o&&(o=e.selectedIndex),{...e,tabs:a,selectedIndex:o}},2:(e,t)=>({...e,tabs:e.tabs.filter((e=>e!==t.tab))}),3:(e,t)=>e.panels.includes(t.panel)?e:{...e,panels:ue([...e.panels,t.panel],(e=>e.current))},4:(e,t)=>({...e,panels:e.panels.filter((e=>e!==t.panel))})},je=(0,t.createContext)(null);function ke(e){let r=(0,t.useContext)(je);if(null===r){let t=new Error(`<${e} /> is missing a parent <Tab.Group /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,ke),t}return r}je.displayName="TabsSSRContext";let Ne=(0,t.createContext)(null);function Oe(e){let r=(0,t.useContext)(Ne);if(null===r){let t=new Error(`<${e} /> is missing a parent <Tab.Group /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Oe),t}return r}Ne.displayName="TabsDataContext";let Pe=(0,t.createContext)(null);function Ie(e){let r=(0,t.useContext)(Pe);if(null===r){let t=new Error(`<${e} /> is missing a parent <Tab.Group /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Ie),t}return r}function Te(e,t){return R(t.type,Ce,e,t)}Pe.displayName="TabsActionsContext";let Se=t.Fragment,Ee=_((function(e,r){let{defaultIndex:n=0,vertical:a=!1,manual:o=!1,onChange:l,selectedIndex:s=null,...i}=e;const u=a?"vertical":"horizontal",c=o?"manual":"auto";let d=null!==s,f=ve(r),[p,m]=(0,t.useReducer)(Te,{selectedIndex:null!=s?s:n,tabs:[],panels:[]}),v=(0,t.useMemo)((()=>({selectedIndex:p.selectedIndex})),[p.selectedIndex]),h=fe(l||(()=>{})),x=fe(p.tabs),b=(0,t.useMemo)((()=>({orientation:u,activation:c,...p})),[u,c,p]),g=fe(d?e.selectedIndex:p.selectedIndex),y=(0,t.useMemo)((()=>({registerTab:e=>(m({type:1,tab:e}),()=>m({type:2,tab:e})),registerPanel:e=>(m({type:3,panel:e}),()=>m({type:4,panel:e})),change(e){g.current!==e&&h.current(e),d||m({type:0,index:e})}})),[m,d]);z((()=>{m({type:0,index:null!=s?s:n})}),[s]);let w=(0,t.useRef)({tabs:[],panels:[]}),C={ref:f};return t.createElement(je.Provider,{value:w},t.createElement(Pe.Provider,{value:y},t.createElement(Ne.Provider,{value:b},b.tabs.length<=0&&t.createElement(ye,{onFocus:()=>{var e,t;for(let r of x.current)if(0===(null==(e=r.current)?void 0:e.tabIndex))return null==(t=r.current)||t.focus(),!0;return!1}}),F({ourProps:C,theirProps:i,slot:v,defaultTag:Se,name:"Tabs"}))))})),Re=_((function(e,t){let{orientation:r,selectedIndex:n}=Oe("Tab.List");return F({ourProps:{ref:ve(t),role:"tablist","aria-orientation":r},theirProps:e,slot:{selectedIndex:n},defaultTag:"div",name:"Tabs.List"})})),Ae=_((function(e,r){var n,a;let o=`headlessui-tabs-tab-${G()}`,{orientation:l,activation:s,selectedIndex:i,tabs:u,panels:c}=Oe("Tab"),d=Ie("Tab"),f=Oe("Tab"),p=ke("Tab"),m=(0,t.useRef)(null),v=ve(m,r);z((()=>d.registerTab(m)),[d,m]);let h=p.current.tabs.indexOf(o);-1===h&&(h=p.current.tabs.push(o)-1);let x=u.indexOf(m);-1===x&&(x=h);let b=x===i,g=pe((e=>{var t;let r=e();if(r===re.Success&&"auto"===s){let e=null==(t=J(m))?void 0:t.activeElement,r=f.tabs.findIndex((t=>t.current===e));-1!==r&&d.change(r)}return r})),y=pe((e=>{let t=u.map((e=>e.current)).filter(Boolean);if(e.key===Q.Space||e.key===Q.Enter)return e.preventDefault(),e.stopPropagation(),void d.change(x);switch(e.key){case Q.Home:case Q.PageUp:return e.preventDefault(),e.stopPropagation(),g((()=>de(t,te.First)));case Q.End:case Q.PageDown:return e.preventDefault(),e.stopPropagation(),g((()=>de(t,te.Last)))}return g((()=>R(l,{vertical:()=>e.key===Q.ArrowUp?de(t,te.Previous|te.WrapAround):e.key===Q.ArrowDown?de(t,te.Next|te.WrapAround):re.Error,horizontal:()=>e.key===Q.ArrowLeft?de(t,te.Previous|te.WrapAround):e.key===Q.ArrowRight?de(t,te.Next|te.WrapAround):re.Error})))===re.Success?e.preventDefault():void 0})),w=(0,t.useRef)(!1),C=pe((()=>{var e;w.current||(w.current=!0,null==(e=m.current)||e.focus(),d.change(x),K((()=>{w.current=!1})))})),j=pe((e=>{e.preventDefault()})),k=(0,t.useMemo)((()=>({selected:b})),[b]),N=e;return F({ourProps:{ref:v,onKeyDown:y,onMouseDown:j,onClick:C,id:o,role:"tab",type:xe(e,m),"aria-controls":null==(a=null==(n=c[x])?void 0:n.current)?void 0:a.id,"aria-selected":b,tabIndex:b?0:-1},theirProps:N,slot:k,defaultTag:"button",name:"Tabs.Tab"})})),Le=_((function(e,r){let{selectedIndex:n}=Oe("Tab.Panels");return F({ourProps:{ref:ve(r)},theirProps:e,slot:(0,t.useMemo)((()=>({selectedIndex:n})),[n]),defaultTag:"div",name:"Tabs.Panels"})})),Me=L.RenderStrategy|L.Static,Fe=_((function(e,r){var n,a,o,l;let{selectedIndex:s,tabs:i,panels:u}=Oe("Tab.Panel"),c=Ie("Tab.Panel"),d=ke("Tab.Panel"),f=`headlessui-tabs-panel-${G()}`,p=(0,t.useRef)(null),m=ve(p,r);z((()=>c.registerPanel(p)),[c,p]);let v=d.current.panels.indexOf(f);-1===v&&(v=d.current.panels.push(f)-1);let h=u.indexOf(p);-1===h&&(h=v);let x=h===s,b=(0,t.useMemo)((()=>({selected:x})),[x]),g=e,y={ref:m,id:f,role:"tabpanel","aria-labelledby":null==(a=null==(n=i[h])?void 0:n.current)?void 0:a.id,tabIndex:x?0:-1};return x||null!=(o=e.unmount)&&!o||null!=(l=e.static)&&l?F({ourProps:y,theirProps:g,slot:b,defaultTag:"div",features:Me,visible:x,name:"Tabs.Panel"}):t.createElement(ge,{as:"span",...y})})),De=Object.assign(Ae,{Group:Ee,List:Re,Panels:Le,Panel:Fe});var He=function(){return He=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},He.apply(this,arguments)};function _e(r){var n=r.children,a=r.selectedColor,l=r.copiedTooltipColor,s=r.isSmallText,i=(0,t.useState)(0),u=i[0],c=i[1],d=(0,t.useState)(!1),f=d[0],p=d[1];if((0,t.useEffect)((function(){p(!0)}),[]),null==n)return console.warn("CodeGroup has no children, expected at least one CodeBlock child."),null;if(Array.isArray(n)){if(0===n.length)return null}else n=[n];var m=n.filter((function(e,t){return t===u}))[0];return(0,e.jsxs)(De.Group,He({as:"div",onChange:c,className:"not-prose gray-frame"},{children:[(0,e.jsxs)("div",He({className:"flex text-xs leading-6 rounded-tl-xl pt-2"},{children:[(0,e.jsx)(De.List,He({className:"flex"},{children:n.map((function(t,r){return(0,e.jsx)(Ve,He({myIndex:r,selectedIndex:u,selectedColor:a},{children:t.props.filename}),t.props.filename+"TabItem"+r)}))})),(0,e.jsx)("div",He({className:o("flex-auto flex justify-end bg-slate-700/50 border-y border-slate-500/30 pr-4 rounded-tr",u===n.length-1?"rounded-tl border-l":"")},{children:f?(0,e.jsx)(P,{textToCopy:k(m.props.children),copiedTooltipColor:null!=l?l:a}):void 0}))]})),(0,e.jsx)(De.Panels,He({className:"flex overflow-auto"},{children:n.map((function(t){return(0,e.jsx)(De.Panel,He({className:o("flex-none code-in-gray-frame",s&&"text-xs leading-5"),style:{fontVariantLigatures:"none"}},{children:f&&t.props.children}),t.props.filename)}))}))]}))}function Ve(t){var r=t.children,n=t.selectedIndex,a=t.myIndex,l=t.selectedColor,s=void 0===l?"#CBD5E1":l,i=n===a,u=i?null:n===a-1?"capped":"normal",c=i?null:n===a+1?"capped":"normal";return(0,e.jsxs)(De,He({className:"flex items-center relative overflow-hidden px-4 py-1 text-slate-400 outline-none",style:{color:i?s:""}},{children:[(0,e.jsx)("span",He({className:"z-10"},{children:r})),!i&&(0,e.jsx)(Ue,{className:o("bg-slate-700/50 border-y border-slate-500/30","capped"===u&&"border-l rounded-tl","capped"===c&&"border-r rounded-tr")}),"normal"===c&&(0,e.jsx)(Ue,{className:"inset-y-px border-r border-slate-200/5 z-20"}),i&&(0,e.jsx)("div",{className:"pointer-events-none absolute inset-0 border-b",style:{borderColor:s}})]}))}function Ue(t){var r=t.className;return(0,e.jsx)("div",{className:o("pointer-events-none absolute inset-0",r)})}var Be=function(){return Be=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},Be.apply(this,arguments)};function ze(t){var r=t.children,n=t.icon,a=t.className;return(0,e.jsx)("div",Be({className:"px-4 py-4 mb-4 rounded-xl ".concat(a)},{children:(0,e.jsxs)("div",Be({className:"flex items-start space-x-3"},{children:[(0,e.jsx)("div",Be({className:"mt-0.5 w-4"},{children:n})),(0,e.jsx)("div",Be({className:"flex-1 font-medium text-sm prose dark:text-slate-50"},{children:r}))]}))}))}function We(t){var r=t.children;return(0,e.jsx)(ze,Be({className:"bg-slate-100 dark:bg-slate-600",icon:(0,e.jsx)("svg",Be({viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:"flex-none w-5 h-5 text-slate-400 dark:text-slate-300","aria-label":"Info"},{children:(0,e.jsx)("path",{d:"M8 0C3.58125 0 0 3.58125 0 8C0 12.4187 3.58125 16 8 16C12.4187 16 16 12.4187 16 8C16 3.58125 12.4187 0 8 0ZM8 14.5C4.41563 14.5 1.5 11.5841 1.5 8C1.5 4.41594 4.41563 1.5 8 1.5C11.5844 1.5 14.5 4.41594 14.5 8C14.5 11.5841 11.5844 14.5 8 14.5ZM9.25 10.5H8.75V7.75C8.75 7.3375 8.41563 7 8 7H7C6.5875 7 6.25 7.3375 6.25 7.75C6.25 8.1625 6.5875 8.5 7 8.5H7.25V10.5H6.75C6.3375 10.5 6 10.8375 6 11.25C6 11.6625 6.3375 12 6.75 12H9.25C9.66406 12 10 11.6641 10 11.25C10 10.8359 9.66563 10.5 9.25 10.5ZM8 6C8.55219 6 9 5.55219 9 5C9 4.44781 8.55219 4 8 4C7.44781 4 7 4.44687 7 5C7 5.55313 7.44687 6 8 6Z"})}))},{children:r}))}function $e(t){var r=t.children;return(0,e.jsx)(ze,Be({icon:(0,e.jsx)("svg",Be({className:"flex-none w-5 h-5 text-yellow-400 dark:text-yellow-300/80",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,"aria-label":"Warning"},{children:(0,e.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})})),className:"bg-amber-50 dark:bg-yellow-500/40"},{children:r}))}function Ze(t){var r=t.children;return(0,e.jsx)(ze,Be({icon:(0,e.jsx)("svg",Be({width:"14",height:"14",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:"w-4 h-4 text-sky-500","aria-label":"Note"},{children:(0,e.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 1.3C10.14 1.3 12.7 3.86 12.7 7C12.7 10.14 10.14 12.7 7 12.7C5.48908 12.6974 4.0408 12.096 2.97241 11.0276C1.90403 9.9592 1.30264 8.51092 1.3 7C1.3 3.86 3.86 1.3 7 1.3ZM7 0C3.14 0 0 3.14 0 7C0 10.86 3.14 14 7 14C10.86 14 14 10.86 14 7C14 3.14 10.86 0 7 0ZM8 3H6V8H8V3ZM8 9H6V11H8V9Z"})})),className:"bg-sky-100 dark:bg-sky-900"},{children:r}))}function qe(t){var r=t.children;return(0,e.jsx)(ze,Be({icon:(0,e.jsx)("svg",Be({width:"11",height:"14",viewBox:"0 0 11 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:"text-green-600 dark:text-green-400/80 w-3.5 h-auto","aria-label":"Tip"},{children:(0,e.jsx)("path",{d:"M3.12794 12.4232C3.12794 12.5954 3.1776 12.7634 3.27244 12.907L3.74114 13.6095C3.88471 13.8248 4.21067 14 4.46964 14H6.15606C6.41415 14 6.74017 13.825 6.88373 13.6095L7.3508 12.9073C7.43114 12.7859 7.49705 12.569 7.49705 12.4232L7.50055 11.3513H3.12521L3.12794 12.4232ZM5.31288 0C2.52414 0.00875889 0.5 2.26889 0.5 4.78826C0.5 6.00188 0.949566 7.10829 1.69119 7.95492C2.14321 8.47011 2.84901 9.54727 3.11919 10.4557C3.12005 10.4625 3.12175 10.4698 3.12261 10.4771H7.50342C7.50427 10.4698 7.50598 10.463 7.50684 10.4557C7.77688 9.54727 8.48281 8.47011 8.93484 7.95492C9.67728 7.13181 10.1258 6.02703 10.1258 4.78826C10.1258 2.15486 7.9709 0.000106649 5.31288 0ZM7.94902 7.11267C7.52078 7.60079 6.99082 8.37878 6.6077 9.18794H4.02051C3.63739 8.37878 3.10743 7.60079 2.67947 7.11294C2.11997 6.47551 1.8126 5.63599 1.8126 4.78826C1.8126 3.09829 3.12794 1.31944 5.28827 1.3126C7.2435 1.3126 8.81315 2.88226 8.81315 4.78826C8.81315 5.63599 8.50688 6.47551 7.94902 7.11267ZM4.87534 2.18767C3.66939 2.18767 2.68767 3.16939 2.68767 4.37534C2.68767 4.61719 2.88336 4.81288 3.12521 4.81288C3.36705 4.81288 3.56274 4.61599 3.56274 4.37534C3.56274 3.6515 4.1515 3.06274 4.87534 3.06274C5.11719 3.06274 5.31288 2.86727 5.31288 2.62548C5.31288 2.38369 5.11599 2.18767 4.87534 2.18767Z"})})),className:"bg-green-100/80 dark:bg-green-900"},{children:r}))}function Ge(t){var r=t.children;return(0,e.jsx)(ze,Be({icon:(0,e.jsx)("svg",Be({className:"text-green-600 dark:text-green-400/80 w-3.5 h-auto",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512","aria-label":"Check"},{children:(0,e.jsx)("path",{d:"M438.6 105.4C451.1 117.9 451.1 138.1 438.6 150.6L182.6 406.6C170.1 419.1 149.9 419.1 137.4 406.6L9.372 278.6C-3.124 266.1-3.124 245.9 9.372 233.4C21.87 220.9 42.13 220.9 54.63 233.4L159.1 338.7L393.4 105.4C405.9 92.88 426.1 92.88 438.6 105.4H438.6z"})})),className:"bg-green-100/80 dark:bg-green-900"},{children:r}))}var Qe=function(){return Qe=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},Qe.apply(this,arguments)},Ke={none:"",md:"p-8"};function Ye(t){var r=t.as,n=void 0===r?"div":r,a=t.style,l=t.className,s=t.containerClassName,i=t.html,u=t.children,c=t.hint,d=t.padding,f=void 0===d?"md":d,p=t.lightOnly,m=void 0!==p&&p,v=Ke[f];return(0,e.jsxs)("div",Qe({className:s},{children:[void 0!==c&&(0,e.jsxs)("div",Qe({className:"not-prose mb-4 flex items-center space-x-2"},{children:[(0,e.jsx)("svg",Qe({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",className:"flex-none w-4 h-4 fill-slate-400 dark:fill-slate-300"},{children:(0,e.jsx)("path",{d:"M224 320c0 17.69 14.33 32 32 32h64c17.67 0 32-14.31 32-32s-14.33-32-32-32h-64C238.3 288 224 302.3 224 320zM267.6 256H352c17.67 0 32-14.31 32-32s-14.33-32-32-32h-80v40C272 240.5 270.3 248.5 267.6 256zM272 160H480c17.67 0 32-14.31 32-32s-14.33-32-32-32h-208.8C271.5 98.66 272 101.3 272 104V160zM320 416c0-17.69-14.33-32-32-32H224c-17.67 0-32 14.31-32 32s14.33 32 32 32h64C305.7 448 320 433.7 320 416zM202.1 355.8C196 345.6 192 333.3 192 320c0-5.766 1.08-11.24 2.51-16.55C157.4 300.6 128 269.9 128 232V159.1C128 151.2 135.2 144 143.1 144S160 151.2 159.1 159.1l0 69.72C159.1 245.2 171.3 271.1 200 271.1C222.1 271.1 240 254.1 240 232v-128C240 81.91 222.1 64 200 64H136.6C103.5 64 72.03 80 52.47 106.8L26.02 143.2C9.107 166.5 0 194.5 0 223.3V312C0 387.1 60.89 448 136 448h32.88C163.4 438.6 160 427.7 160 416C160 388.1 178 364.6 202.1 355.8z"})})),(0,e.jsx)("p",Qe({className:"text-slate-700 text-sm font-medium dark:text-slate-200"},{children:c}))]})),(0,e.jsxs)(n,Qe({style:a,className:o("not-prose relative bg-slate-50 rounded-xl overflow-hidden",!m&&"dark:bg-slate-800/25")},{children:[(0,e.jsx)("div",{style:{backgroundPosition:"10px 10px"},className:o("absolute inset-0 bg-grid-slate-100 [mask-image:linear-gradient(0deg,#fff,rgba(255,255,255,0.6))]",!m&&"dark:bg-grid-slate-700/25 dark:[mask-image:linear-gradient(0deg,rgba(255,255,255,0.1),rgba(255,255,255,0.5))]")}),(0,e.jsx)("div",Qe({className:o("relative rounded-xl overflow-auto flex justify-center",v,l)},i?{dangerouslySetInnerHTML:{__html:i}}:{children:u})),(0,e.jsx)("div",{className:o("absolute inset-0 pointer-events-none border border-black/5 rounded-xl",!m&&"dark:border-white/5")})]}))]}))}var Je=function(){return Je=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},Je.apply(this,arguments)};function Xe(t){return(0,e.jsx)(et,Je({},t))}function et(t){var r=t.name,n=t.type,a=t.defaultValue,l=t.required,s=void 0!==l&&l,i=t.optional,u=void 0!==i&&i,c=t.hidden,d=void 0!==c&&c,f=t.nameClasses,p=t.children;return d?null:(0,e.jsxs)("div",Je({className:o("pb-3 mb-4 border-b border-slate-100 dark:border-slate-800")},{children:[(0,e.jsxs)("div",Je({className:"flex font-mono text-sm"},{children:[r&&(0,e.jsxs)("div",Je({className:"py-px flex-1 space-x-2 truncate"},{children:[(0,e.jsx)("span",Je({className:o("px-1 py-px rounded-md font-medium bg-slate-50 dark:bg-slate-800 border border-slate-200 dark:border-slate-700",f,f&&!f.includes("text-")||!f?"dark:text-slate-200":void 0)},{children:r})),s&&(0,e.jsx)("span",Je({className:"text-slate-500 dark:text-slate-300"},{children:"Required"})),u&&(0,e.jsx)("span",Je({className:"text-slate-500 dark:text-slate-300"},{children:"Optional"})),a&&(0,e.jsxs)("span",Je({className:"text-slate-500 dark:text-slate-300"},{children:["Default: ",a]}))]})),n&&(0,e.jsx)("div",Je({className:"text-slate-600 dark:text-slate-300"},{children:n}))]})),(0,e.jsx)("div",Je({className:"mt-2 prose-sm prose-slate dark:prose-dark"},{children:p}))]}))}function tt(){let[e]=(0,t.useState)(Y);return(0,t.useEffect)((()=>()=>e.dispose()),[e]),e}var rt=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(rt||{});function nt(e,r,n){let a=fe(r);(0,t.useEffect)((()=>{function t(e){a.current(e)}return document.addEventListener(e,t,n),()=>document.removeEventListener(e,t,n)}),[e,n])}let at=(0,t.createContext)(null);at.displayName="OpenClosedContext";var ot=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(ot||{});function lt(){return(0,t.useContext)(at)}function st({value:e,children:r}){return t.createElement(at.Provider,{value:e},r)}var it=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(it||{}),ut=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(ut||{}),ct=(e=>(e[e.OpenMenu=0]="OpenMenu",e[e.CloseMenu=1]="CloseMenu",e[e.GoToItem=2]="GoToItem",e[e.Search=3]="Search",e[e.ClearSearch=4]="ClearSearch",e[e.RegisterItem=5]="RegisterItem",e[e.UnregisterItem=6]="UnregisterItem",e))(ct||{});function dt(e,t=(e=>e)){let r=null!==e.activeItemIndex?e.items[e.activeItemIndex]:null,n=ue(t(e.items.slice()),(e=>e.dataRef.current.domRef.current)),a=r?n.indexOf(r):null;return-1===a&&(a=null),{items:n,activeItemIndex:a}}let ft={1:e=>1===e.menuState?e:{...e,activeItemIndex:null,menuState:1},0:e=>0===e.menuState?e:{...e,menuState:0},2:(e,t)=>{var r;let n=dt(e),a=function(e,t){let r=t.resolveItems();if(r.length<=0)return null;let n=t.resolveActiveIndex(),a=null!=n?n:-1,o=(()=>{switch(e.focus){case 0:return r.findIndex((e=>!t.resolveDisabled(e)));case 1:{let e=r.slice().reverse().findIndex(((e,r,n)=>!(-1!==a&&n.length-r-1>=a||t.resolveDisabled(e))));return-1===e?e:r.length-1-e}case 2:return r.findIndex(((e,r)=>!(r<=a||t.resolveDisabled(e))));case 3:{let e=r.slice().reverse().findIndex((e=>!t.resolveDisabled(e)));return-1===e?e:r.length-1-e}case 4:return r.findIndex((r=>t.resolveId(r)===e.id));case 5:return null;default:!function(e){throw new Error("Unexpected object: "+e)}(e)}})();return-1===o?n:o}(t,{resolveItems:()=>n.items,resolveActiveIndex:()=>n.activeItemIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...e,...n,searchQuery:"",activeItemIndex:a,activationTrigger:null!=(r=t.trigger)?r:1}},3:(e,t)=>{let r=""!==e.searchQuery?0:1,n=e.searchQuery+t.value.toLowerCase(),a=(null!==e.activeItemIndex?e.items.slice(e.activeItemIndex+r).concat(e.items.slice(0,e.activeItemIndex+r)):e.items).find((e=>{var t;return(null==(t=e.dataRef.current.textValue)?void 0:t.startsWith(n))&&!e.dataRef.current.disabled})),o=a?e.items.indexOf(a):-1;return-1===o||o===e.activeItemIndex?{...e,searchQuery:n}:{...e,searchQuery:n,activeItemIndex:o,activationTrigger:1}},4:e=>""===e.searchQuery?e:{...e,searchQuery:"",searchActiveItemIndex:null},5:(e,t)=>{let r=dt(e,(e=>[...e,{id:t.id,dataRef:t.dataRef}]));return{...e,...r}},6:(e,t)=>{let r=dt(e,(e=>{let r=e.findIndex((e=>e.id===t.id));return-1!==r&&e.splice(r,1),e}));return{...e,...r,activationTrigger:1}}},pt=(0,t.createContext)(null);function mt(e){let r=(0,t.useContext)(pt);if(null===r){let t=new Error(`<${e} /> is missing a parent <Menu /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,mt),t}return r}function vt(e,t){return R(t.type,ft,e,t)}pt.displayName="MenuContext";let ht=t.Fragment,xt=_((function(e,r){let n=(0,t.useReducer)(vt,{menuState:1,buttonRef:(0,t.createRef)(),itemsRef:(0,t.createRef)(),items:[],searchQuery:"",activeItemIndex:null,activationTrigger:1}),[{menuState:a,itemsRef:o,buttonRef:l},s]=n,i=ve(r);!function(e,r,n=!0){let a=(0,t.useRef)(!1);function o(t,n){if(!a.current||t.defaultPrevented)return;let o=function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(e),l=n(t);if(null!==l&&l.ownerDocument.documentElement.contains(l)){for(let e of o){if(null===e)continue;let t=e instanceof HTMLElement?e:e.current;if(null!=t&&t.contains(l))return}return!le(l,oe.Loose)&&-1!==l.tabIndex&&t.preventDefault(),r(t,l)}}(0,t.useEffect)((()=>{requestAnimationFrame((()=>{a.current=n}))}),[n]);let l=(0,t.useRef)(null);nt("mousedown",(e=>{var t,r;a.current&&(l.current=(null==(r=null==(t=e.composedPath)?void 0:t.call(e))?void 0:r[0])||e.target)}),!0),nt("click",(e=>{!l.current||(o(e,(()=>l.current)),l.current=null)}),!0),nt("blur",(e=>o(e,(()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null))),!0)}([l,o],((e,t)=>{var r;s({type:1}),le(t,oe.Loose)||(e.preventDefault(),null==(r=l.current)||r.focus())}),0===a);let u=(0,t.useMemo)((()=>({open:0===a})),[a]),c=e,d={ref:i};return t.createElement(pt.Provider,{value:n},t.createElement(st,{value:R(a,{0:ot.Open,1:ot.Closed})},F({ourProps:d,theirProps:c,slot:u,defaultTag:ht,name:"Menu"})))})),bt=_((function(e,r){var n;let[a,o]=mt("Menu.Button"),l=ve(a.buttonRef,r),s=`headlessui-menu-button-${G()}`,i=tt(),u=pe((e=>{switch(e.key){case Q.Space:case Q.Enter:case Q.ArrowDown:e.preventDefault(),e.stopPropagation(),o({type:0}),i.nextFrame((()=>o({type:2,focus:rt.First})));break;case Q.ArrowUp:e.preventDefault(),e.stopPropagation(),o({type:0}),i.nextFrame((()=>o({type:2,focus:rt.Last})))}})),c=pe((e=>{e.key===Q.Space&&e.preventDefault()})),d=pe((t=>{if(function(e){let t=e.parentElement,r=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(r=t),t=t.parentElement;let n=""===(null==t?void 0:t.getAttribute("disabled"));return(!n||!function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}(r))&&n}(t.currentTarget))return t.preventDefault();e.disabled||(0===a.menuState?(o({type:1}),i.nextFrame((()=>{var e;return null==(e=a.buttonRef.current)?void 0:e.focus({preventScroll:!0})}))):(t.preventDefault(),o({type:0})))})),f=(0,t.useMemo)((()=>({open:0===a.menuState})),[a]),p=e;return F({ourProps:{ref:l,id:s,type:xe(e,a.buttonRef),"aria-haspopup":!0,"aria-controls":null==(n=a.itemsRef.current)?void 0:n.id,"aria-expanded":e.disabled?void 0:0===a.menuState,onKeyDown:u,onKeyUp:c,onClick:d},theirProps:p,slot:f,defaultTag:"button",name:"Menu.Button"})})),gt=L.RenderStrategy|L.Static,yt=_((function(e,r){var n,a;let[o,l]=mt("Menu.Items"),s=ve(o.itemsRef,r),i=function(...e){return(0,t.useMemo)((()=>J(...e)),[...e])}(o.itemsRef),u=`headlessui-menu-items-${G()}`,c=tt(),d=lt(),f=null!==d?d===ot.Open:0===o.menuState;(0,t.useEffect)((()=>{let e=o.itemsRef.current;!e||0===o.menuState&&e!==(null==i?void 0:i.activeElement)&&e.focus({preventScroll:!0})}),[o.menuState,o.itemsRef,i]),function({container:e,accept:r,walk:n,enabled:a=!0}){let o=(0,t.useRef)(r),l=(0,t.useRef)(n);(0,t.useEffect)((()=>{o.current=r,l.current=n}),[r,n]),z((()=>{if(!e||!a)return;let t=J(e);if(!t)return;let r=o.current,n=l.current,s=Object.assign((e=>r(e)),{acceptNode:r}),i=t.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,s,!1);for(;i.nextNode();)n(i.currentNode)}),[e,a,o,l])}({container:o.itemsRef.current,enabled:0===o.menuState,accept:e=>"menuitem"===e.getAttribute("role")?NodeFilter.FILTER_REJECT:e.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT,walk(e){e.setAttribute("role","none")}});let p=pe((e=>{var t,r;switch(c.dispose(),e.key){case Q.Space:if(""!==o.searchQuery)return e.preventDefault(),e.stopPropagation(),l({type:3,value:e.key});case Q.Enter:if(e.preventDefault(),e.stopPropagation(),l({type:1}),null!==o.activeItemIndex){let{dataRef:e}=o.items[o.activeItemIndex];null==(r=null==(t=e.current)?void 0:t.domRef.current)||r.click()}se(o.buttonRef.current);break;case Q.ArrowDown:return e.preventDefault(),e.stopPropagation(),l({type:2,focus:rt.Next});case Q.ArrowUp:return e.preventDefault(),e.stopPropagation(),l({type:2,focus:rt.Previous});case Q.Home:case Q.PageUp:return e.preventDefault(),e.stopPropagation(),l({type:2,focus:rt.First});case Q.End:case Q.PageDown:return e.preventDefault(),e.stopPropagation(),l({type:2,focus:rt.Last});case Q.Escape:e.preventDefault(),e.stopPropagation(),l({type:1}),Y().nextFrame((()=>{var e;return null==(e=o.buttonRef.current)?void 0:e.focus({preventScroll:!0})}));break;case Q.Tab:e.preventDefault(),e.stopPropagation(),l({type:1}),Y().nextFrame((()=>{ce(o.buttonRef.current,e.shiftKey?te.Previous:te.Next)}));break;default:1===e.key.length&&(l({type:3,value:e.key}),c.setTimeout((()=>l({type:4})),350))}})),m=pe((e=>{e.key===Q.Space&&e.preventDefault()})),v=(0,t.useMemo)((()=>({open:0===o.menuState})),[o]),h=e;return F({ourProps:{"aria-activedescendant":null===o.activeItemIndex||null==(n=o.items[o.activeItemIndex])?void 0:n.id,"aria-labelledby":null==(a=o.buttonRef.current)?void 0:a.id,id:u,onKeyDown:p,onKeyUp:m,role:"menu",tabIndex:0,ref:s},theirProps:h,slot:v,defaultTag:"div",features:gt,visible:f,name:"Menu.Items"})})),wt=t.Fragment,Ct=_((function(e,r){let{disabled:n=!1,...a}=e,[o,l]=mt("Menu.Item"),s=`headlessui-menu-item-${G()}`,i=null!==o.activeItemIndex&&o.items[o.activeItemIndex].id===s,u=(0,t.useRef)(null),c=ve(r,u);z((()=>{if(0!==o.menuState||!i||0===o.activationTrigger)return;let e=Y();return e.requestAnimationFrame((()=>{var e,t;null==(t=null==(e=u.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})})),e.dispose}),[u,i,o.menuState,o.activationTrigger,o.activeItemIndex]);let d=(0,t.useRef)({disabled:n,domRef:u});z((()=>{d.current.disabled=n}),[d,n]),z((()=>{var e,t;d.current.textValue=null==(t=null==(e=u.current)?void 0:e.textContent)?void 0:t.toLowerCase()}),[d,u]),z((()=>(l({type:5,id:s,dataRef:d}),()=>l({type:6,id:s}))),[d,s]);let f=pe((e=>{if(n)return e.preventDefault();l({type:1}),se(o.buttonRef.current)})),p=pe((()=>{if(n)return l({type:2,focus:rt.Nothing});l({type:2,focus:rt.Specific,id:s})})),m=pe((()=>{n||i||l({type:2,focus:rt.Specific,id:s,trigger:0})})),v=pe((()=>{n||!i||l({type:2,focus:rt.Nothing})})),h=(0,t.useMemo)((()=>({active:i,disabled:n})),[i,n]);return F({ourProps:{id:s,ref:c,role:"menuitem",tabIndex:!0===n?void 0:-1,"aria-disabled":!0===n||void 0,disabled:void 0,onClick:f,onFocus:p,onPointerMove:m,onMouseMove:m,onPointerLeave:v,onMouseLeave:v},theirProps:a,slot:h,defaultTag:wt,name:"Menu.Item"})})),jt=Object.assign(xt,{Button:bt,Items:yt,Item:Ct});var kt=function(){return kt=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},kt.apply(this,arguments)};function Nt(r){var n=r.options,a=r.onChange,l=r.defaultOption,s=r.selectedOptionClass,i=l,u=Array.isArray(n)&&n.length>0;null==l&&u&&(i=n[0]);var c=(0,t.useState)(i),d=c[0],f=c[1];return u?(0,e.jsx)("div",kt({className:"relative"},{children:(0,e.jsxs)(jt,{children:[(0,e.jsxs)(jt.Button,kt({className:"text-xs text-slate-500 dark:text-slate-400 leading-5 font-semibold !bg-slate-400/10 rounded-full py-1 px-3 flex items-center space-x-2 hover:bg-slate-400/20 dark:highlight-white/5"},{children:[d,(0,e.jsx)("svg",kt({width:"6",height:"3",className:"ml-2 overflow-visible","aria-hidden":"true"},{children:(0,e.jsx)("path",{d:"M0 0L3 3L6 0",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})}))]})),(0,e.jsx)(jt.Items,kt({className:"absolute top-full mt-1 py-2 w-40 rounded-lg bg-white shadow text-sm leading-6 font-semibold text-slate-700 dark:bg-slate-800 dark:text-slate-300 dark:highlight-white/5"},{children:n.map((function(t){return(0,e.jsx)(jt.Item,kt({disabled:t===d},{children:function(r){var n=r.active;return(0,e.jsxs)("a",kt({className:o("flex items-center justify-between px-3 py-1 cursor-pointer",n&&"bg-slate-50 text-slate-900 dark:bg-slate-600/30 dark:text-white",t===d&&s),onClick:function(){return function(e){f(e),a&&a(e)}(t)}},{children:[t,t===d&&(0,e.jsx)("svg",kt({width:"24",height:"24",fill:"none","aria-hidden":"true"},{children:(0,e.jsx)("path",{d:"m7.75 12.75 2.25 2.5 6.25-6.5",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}))]}))}}),t)}))}))]})})):null}var Ot=function(){return Ot=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},Ot.apply(this,arguments)};function Pt(t){var r=t.title,n=t.isActive,a=void 0===n||n,l=t.children;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("h2",Ot({className:o("flex text-sm leading-6 font-semibold whitespace-nowrap pt-3 pb-2.5 -mb-px max-w-max border-b",a?"text-primary dark:text-primary-light border-current":"text-slate-900 border-transparent hover:border-slate-300 dark:text-slate-200 dark:hover:border-slate-700")},{children:r})),l?(0,e.jsx)("div",Ot({className:"prose dark:prose-dark"},{children:l})):null]})}var It=function(){return It=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},It.apply(this,arguments)};function Tt(r){var n=r.children,a=(0,t.useState)(0),o=a[0],l=a[1],s=t.Children.toArray(n),i=s[o].props.children;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("ul",It({className:"not-prose mb-6 pb-[1px] flex-none min-w-full overflow-auto border-b border-slate-200 space-x-6 flex dark:border-slate-200/10"},{children:s.map((function(t,r){return(0,e.jsx)("li",It({className:"cursor-pointer",onClick:function(){return l(r)}},{children:(0,e.jsx)(Pt,{title:t.props.title,isActive:r===o})}))}))})),(0,e.jsx)("div",It({className:"prose dark:prose-dark"},{children:i}))]})}var St=function(){return St=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},St.apply(this,arguments)};function Et(t){var r=t.tip,n=t.children;return n?(0,e.jsxs)("span",St({className:"group z-10 inline relative"},{children:[Rt(n),(0,e.jsx)("span",St({className:"hidden group-hover:flex w-fit lg:whitespace-nowrap absolute bottom-full left-1/2 mb-0.5 pb-1 -translate-x-1/2 bg-slate-800 text-center text-slate-50 text-xs px-1.5 py-1 rounded-lg border border-slate-50"},{children:r}))]})):null}function Rt(r){return(0,t.isValidElement)(r)?r:(0,e.jsx)("span",St({className:"underline decoration-dotted decoration-2 underline-offset-4 decoration-slate-400 dark:decoration-slate-500"},{children:r}))}var At=function(){return At=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},At.apply(this,arguments)};function Lt(t){var r=t.open;return(0,e.jsx)("svg",At({xmlns:"http://www.w3.org/2000/svg",className:o("h-3 w-3",r&&"rotate-90 -mt-1"),viewBox:"0 0 256 512",fill:"currentColor"},{children:(0,e.jsx)("path",{d:"M118.6 105.4l128 127.1C252.9 239.6 256 247.8 256 255.1s-3.125 16.38-9.375 22.63l-128 127.1c-9.156 9.156-22.91 11.9-34.88 6.943S64 396.9 64 383.1V128c0-12.94 7.781-24.62 19.75-29.58S109.5 96.23 118.6 105.4z"})}))}const Mt=function(t){var r=t.title,n=t.description,a=t.open,o=t.setOpen;return(0,e.jsxs)("button",At({onClick:function(){return o(!a)},className:"not-prose mt-1.5 flex flex-row items-center content-center w-full py-1 text-slate-700 hover:text-slate-900 dark:text-slate-400 dark:hover:text-slate-200 ".concat(a?"":"rounded-b-xl"),"aria-controls":r+"Children","aria-expanded":a},{children:[(0,e.jsx)(Lt,{open:a}),(0,e.jsxs)("div",At({className:"ml-2 leading-tight text-left"},{children:[(0,e.jsxs)("p",At({className:"m-0"},{children:[a?"Hide":"Show"," ",r]})),n?(0,e.jsx)("p",At({className:"m-0"},{children:n})):null]}))]}))};var Ft=function(){return Ft=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},Ft.apply(this,arguments)};const Dt=function(r){var n=r.title,a=r.description,l=r.defaultOpen,s=void 0!==l&&l,i=r.onChange,u=r.children,c=(0,t.useState)(s),d=c[0],f=c[1];return(0,e.jsxs)("div",Ft({role:"listitem",className:""},{children:[(0,e.jsx)(Mt,{title:n,description:a,open:d,setOpen:function(e){f(e),i&&i(e)}}),(0,e.jsx)("div",Ft({id:n+"Children",className:o("mt-2 pt-2 mb-4 mx-[6px] px-4 border-l border-slate-100 dark:border-slate-800",!d&&"hidden")},{children:u}))]}),n)}})(),module.exports=n})();
|
package/dist/main.css
CHANGED
|
@@ -1258,6 +1258,35 @@ video {
|
|
|
1258
1258
|
--tw-prose-invert-th-borders: #475569;
|
|
1259
1259
|
--tw-prose-invert-td-borders: #334155;
|
|
1260
1260
|
}
|
|
1261
|
+
.gray-frame {
|
|
1262
|
+
position: relative;
|
|
1263
|
+
border-radius: 0.75rem;
|
|
1264
|
+
--tw-bg-opacity: 1;
|
|
1265
|
+
background-color: rgba(30, 41, 59, var(--tw-bg-opacity));
|
|
1266
|
+
--tw-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
|
|
1267
|
+
--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);
|
|
1268
|
+
box-shadow: 0 0 rgba(0,0,0,0), 0 0 rgba(0,0,0,0), var(--tw-shadow);
|
|
1269
|
+
box-shadow: 0 0 rgba(0,0,0,0), 0 0 rgba(0,0,0,0), var(--tw-shadow);
|
|
1270
|
+
box-shadow: var(--tw-ring-offset-shadow, 0 0 rgba(0,0,0,0)), var(--tw-ring-shadow, 0 0 rgba(0,0,0,0)), var(--tw-shadow);
|
|
1271
|
+
}
|
|
1272
|
+
.dark .gray-frame {
|
|
1273
|
+
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
|
|
1274
|
+
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);
|
|
1275
|
+
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), 0 0 rgba(0,0,0,0);
|
|
1276
|
+
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), 0 0 rgba(0,0,0,0);
|
|
1277
|
+
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 rgba(0,0,0,0));
|
|
1278
|
+
--tw-ring-inset: inset;
|
|
1279
|
+
--tw-ring-color: rgba(255, 255, 255, 0.1);
|
|
1280
|
+
}
|
|
1281
|
+
.code-in-gray-frame {
|
|
1282
|
+
min-width: 100%;
|
|
1283
|
+
overflow-x: auto;
|
|
1284
|
+
padding: 1.25rem;
|
|
1285
|
+
font-size: 0.875rem;
|
|
1286
|
+
line-height: 1.5rem;
|
|
1287
|
+
--tw-text-opacity: 1;
|
|
1288
|
+
color: rgba(248, 250, 252, var(--tw-text-opacity));
|
|
1289
|
+
}
|
|
1261
1290
|
.pointer-events-none {
|
|
1262
1291
|
pointer-events: none;
|
|
1263
1292
|
}
|
|
@@ -1273,6 +1302,10 @@ video {
|
|
|
1273
1302
|
bottom: 0px;
|
|
1274
1303
|
left: 0px;
|
|
1275
1304
|
}
|
|
1305
|
+
.inset-y-px {
|
|
1306
|
+
top: 1px;
|
|
1307
|
+
bottom: 1px;
|
|
1308
|
+
}
|
|
1276
1309
|
.top-full {
|
|
1277
1310
|
top: 100%;
|
|
1278
1311
|
}
|
|
@@ -1282,9 +1315,18 @@ video {
|
|
|
1282
1315
|
.left-1\/2 {
|
|
1283
1316
|
left: 50%;
|
|
1284
1317
|
}
|
|
1318
|
+
.top-5 {
|
|
1319
|
+
top: 1.25rem;
|
|
1320
|
+
}
|
|
1321
|
+
.right-5 {
|
|
1322
|
+
right: 1.25rem;
|
|
1323
|
+
}
|
|
1285
1324
|
.z-10 {
|
|
1286
1325
|
z-index: 10;
|
|
1287
1326
|
}
|
|
1327
|
+
.z-20 {
|
|
1328
|
+
z-index: 20;
|
|
1329
|
+
}
|
|
1288
1330
|
.m-0 {
|
|
1289
1331
|
margin: 0px;
|
|
1290
1332
|
}
|
|
@@ -1340,6 +1382,21 @@ video {
|
|
|
1340
1382
|
.mb-3 {
|
|
1341
1383
|
margin-bottom: 0.75rem;
|
|
1342
1384
|
}
|
|
1385
|
+
.mt-5 {
|
|
1386
|
+
margin-top: 1.25rem;
|
|
1387
|
+
}
|
|
1388
|
+
.mb-8 {
|
|
1389
|
+
margin-bottom: 2rem;
|
|
1390
|
+
}
|
|
1391
|
+
.mb-3\.5 {
|
|
1392
|
+
margin-bottom: 0.875rem;
|
|
1393
|
+
}
|
|
1394
|
+
.-mt-px {
|
|
1395
|
+
margin-top: -1px;
|
|
1396
|
+
}
|
|
1397
|
+
.-ml-2 {
|
|
1398
|
+
margin-left: -0.5rem;
|
|
1399
|
+
}
|
|
1343
1400
|
.mt-1\.5 {
|
|
1344
1401
|
margin-top: 0.375rem;
|
|
1345
1402
|
}
|
|
@@ -1440,6 +1497,9 @@ video {
|
|
|
1440
1497
|
.flex-none {
|
|
1441
1498
|
flex: none;
|
|
1442
1499
|
}
|
|
1500
|
+
.flex-auto {
|
|
1501
|
+
flex: 1 1 auto;
|
|
1502
|
+
}
|
|
1443
1503
|
.-translate-x-1\/2 {
|
|
1444
1504
|
--tw-translate-x: -50%;
|
|
1445
1505
|
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
|
|
@@ -1469,6 +1529,9 @@ video {
|
|
|
1469
1529
|
.items-center {
|
|
1470
1530
|
align-items: center;
|
|
1471
1531
|
}
|
|
1532
|
+
.justify-end {
|
|
1533
|
+
justify-content: flex-end;
|
|
1534
|
+
}
|
|
1472
1535
|
.justify-center {
|
|
1473
1536
|
justify-content: center;
|
|
1474
1537
|
}
|
|
@@ -1491,6 +1554,12 @@ video {
|
|
|
1491
1554
|
margin-left: calc(0.5rem * (1 - var(--tw-space-x-reverse)));
|
|
1492
1555
|
margin-left: calc(0.5rem * calc(1 - var(--tw-space-x-reverse)));
|
|
1493
1556
|
}
|
|
1557
|
+
.space-x-4 > :not([hidden]) ~ :not([hidden]) {
|
|
1558
|
+
--tw-space-x-reverse: 0;
|
|
1559
|
+
margin-right: calc(1rem * var(--tw-space-x-reverse));
|
|
1560
|
+
margin-left: calc(1rem * (1 - var(--tw-space-x-reverse)));
|
|
1561
|
+
margin-left: calc(1rem * calc(1 - var(--tw-space-x-reverse)));
|
|
1562
|
+
}
|
|
1494
1563
|
.space-x-6 > :not([hidden]) ~ :not([hidden]) {
|
|
1495
1564
|
--tw-space-x-reverse: 0;
|
|
1496
1565
|
margin-right: calc(1.5rem * var(--tw-space-x-reverse));
|
|
@@ -1546,18 +1615,41 @@ video {
|
|
|
1546
1615
|
border-bottom-right-radius: 0.75rem;
|
|
1547
1616
|
border-bottom-left-radius: 0.75rem;
|
|
1548
1617
|
}
|
|
1618
|
+
.rounded-t {
|
|
1619
|
+
border-top-left-radius: 0.25rem;
|
|
1620
|
+
border-top-right-radius: 0.25rem;
|
|
1621
|
+
}
|
|
1622
|
+
.rounded-tl-xl {
|
|
1623
|
+
border-top-left-radius: 0.75rem;
|
|
1624
|
+
}
|
|
1625
|
+
.rounded-tr {
|
|
1626
|
+
border-top-right-radius: 0.25rem;
|
|
1627
|
+
}
|
|
1628
|
+
.rounded-tl {
|
|
1629
|
+
border-top-left-radius: 0.25rem;
|
|
1630
|
+
}
|
|
1549
1631
|
.border {
|
|
1550
1632
|
border-width: 1px;
|
|
1551
1633
|
}
|
|
1552
1634
|
.border-0 {
|
|
1553
1635
|
border-width: 0px;
|
|
1554
1636
|
}
|
|
1637
|
+
.border-y {
|
|
1638
|
+
border-top-width: 1px;
|
|
1639
|
+
border-bottom-width: 1px;
|
|
1640
|
+
}
|
|
1555
1641
|
.border-b {
|
|
1556
1642
|
border-bottom-width: 1px;
|
|
1557
1643
|
}
|
|
1558
1644
|
.border-l {
|
|
1559
1645
|
border-left-width: 1px;
|
|
1560
1646
|
}
|
|
1647
|
+
.border-t {
|
|
1648
|
+
border-top-width: 1px;
|
|
1649
|
+
}
|
|
1650
|
+
.border-r {
|
|
1651
|
+
border-right-width: 1px;
|
|
1652
|
+
}
|
|
1561
1653
|
.border-none {
|
|
1562
1654
|
border-style: none;
|
|
1563
1655
|
}
|
|
@@ -1576,6 +1668,12 @@ video {
|
|
|
1576
1668
|
--tw-border-opacity: 1;
|
|
1577
1669
|
border-color: rgba(248, 250, 252, var(--tw-border-opacity));
|
|
1578
1670
|
}
|
|
1671
|
+
.border-slate-500\/30 {
|
|
1672
|
+
border-color: rgba(100, 116, 139, 0.3);
|
|
1673
|
+
}
|
|
1674
|
+
.border-slate-200\/5 {
|
|
1675
|
+
border-color: rgba(226, 232, 240, 0.05);
|
|
1676
|
+
}
|
|
1579
1677
|
.border-current {
|
|
1580
1678
|
border-color: currentColor;
|
|
1581
1679
|
}
|
|
@@ -1586,6 +1684,9 @@ video {
|
|
|
1586
1684
|
--tw-border-opacity: 1;
|
|
1587
1685
|
border-color: rgba(254, 202, 202, var(--tw-border-opacity));
|
|
1588
1686
|
}
|
|
1687
|
+
.border-t-transparent {
|
|
1688
|
+
border-top-color: transparent;
|
|
1689
|
+
}
|
|
1589
1690
|
.bg-indigo-50 {
|
|
1590
1691
|
--tw-bg-opacity: 1;
|
|
1591
1692
|
background-color: rgba(238, 242, 255, var(--tw-bg-opacity));
|
|
@@ -1632,13 +1733,22 @@ video {
|
|
|
1632
1733
|
--tw-bg-opacity: 1;
|
|
1633
1734
|
background-color: rgba(30, 41, 59, var(--tw-bg-opacity));
|
|
1634
1735
|
}
|
|
1736
|
+
.bg-slate-700\/50 {
|
|
1737
|
+
background-color: rgba(51, 65, 85, 0.5);
|
|
1738
|
+
}
|
|
1635
1739
|
.bg-red-100 {
|
|
1636
1740
|
--tw-bg-opacity: 1;
|
|
1637
1741
|
background-color: rgba(254, 226, 226, var(--tw-bg-opacity));
|
|
1638
1742
|
}
|
|
1743
|
+
.fill-slate-800 {
|
|
1744
|
+
fill: #1e293b;
|
|
1745
|
+
}
|
|
1639
1746
|
.fill-slate-400 {
|
|
1640
1747
|
fill: #94a3b8;
|
|
1641
1748
|
}
|
|
1749
|
+
.fill-slate-500 {
|
|
1750
|
+
fill: #64748b;
|
|
1751
|
+
}
|
|
1642
1752
|
.p-8 {
|
|
1643
1753
|
padding: 2rem;
|
|
1644
1754
|
}
|
|
@@ -1698,6 +1808,9 @@ video {
|
|
|
1698
1808
|
.pt-2 {
|
|
1699
1809
|
padding-top: 0.5rem;
|
|
1700
1810
|
}
|
|
1811
|
+
.pr-4 {
|
|
1812
|
+
padding-right: 1rem;
|
|
1813
|
+
}
|
|
1701
1814
|
.pt-3 {
|
|
1702
1815
|
padding-top: 0.75rem;
|
|
1703
1816
|
}
|
|
@@ -1825,6 +1938,10 @@ video {
|
|
|
1825
1938
|
--tw-text-opacity: 1;
|
|
1826
1939
|
color: rgba(248, 250, 252, var(--tw-text-opacity));
|
|
1827
1940
|
}
|
|
1941
|
+
.text-white {
|
|
1942
|
+
--tw-text-opacity: 1;
|
|
1943
|
+
color: rgba(255, 255, 255, var(--tw-text-opacity));
|
|
1944
|
+
}
|
|
1828
1945
|
.text-pink-700 {
|
|
1829
1946
|
--tw-text-opacity: 1;
|
|
1830
1947
|
color: rgba(190, 24, 93, var(--tw-text-opacity));
|
|
@@ -1854,6 +1971,10 @@ video {
|
|
|
1854
1971
|
box-shadow: 0 0 rgba(0,0,0,0), 0 0 rgba(0,0,0,0), var(--tw-shadow);
|
|
1855
1972
|
box-shadow: var(--tw-ring-offset-shadow, 0 0 rgba(0,0,0,0)), var(--tw-ring-shadow, 0 0 rgba(0,0,0,0)), var(--tw-shadow);
|
|
1856
1973
|
}
|
|
1974
|
+
.outline-none {
|
|
1975
|
+
outline: 2px solid transparent;
|
|
1976
|
+
outline-offset: 2px;
|
|
1977
|
+
}
|
|
1857
1978
|
.ring-2 {
|
|
1858
1979
|
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
|
|
1859
1980
|
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
|
|
@@ -1864,6 +1985,9 @@ video {
|
|
|
1864
1985
|
.ring-transparent {
|
|
1865
1986
|
--tw-ring-color: transparent;
|
|
1866
1987
|
}
|
|
1988
|
+
.filter {
|
|
1989
|
+
filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
|
|
1990
|
+
}
|
|
1867
1991
|
.bg-grid-slate-100 {
|
|
1868
1992
|
background-image: url("data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 32 32%27 width=%2732%27 height=%2732%27 fill=%27none%27 stroke=%27%23f1f5f9%27%3e%3cpath d=%27M0 .5H31.5V32%27/%3e%3c/svg%3e");
|
|
1869
1993
|
}
|
|
@@ -1906,6 +2030,9 @@ video {
|
|
|
1906
2030
|
--tw-bg-opacity: 1;
|
|
1907
2031
|
background-color: rgba(241, 245, 249, var(--tw-bg-opacity));
|
|
1908
2032
|
}
|
|
2033
|
+
.hover\:fill-slate-300:hover {
|
|
2034
|
+
fill: #cbd5e1;
|
|
2035
|
+
}
|
|
1909
2036
|
.hover\:text-indigo-700:hover {
|
|
1910
2037
|
--tw-text-opacity: 1;
|
|
1911
2038
|
color: rgba(67, 56, 202, var(--tw-text-opacity));
|
|
@@ -1980,6 +2107,20 @@ video {
|
|
|
1980
2107
|
--tw-text-opacity: 1;
|
|
1981
2108
|
color: rgba(148, 163, 184, var(--tw-text-opacity));
|
|
1982
2109
|
}
|
|
2110
|
+
:where(.children\:\!my-0) > :where(:not(.not-children)) {
|
|
2111
|
+
margin-top: 0px !important;
|
|
2112
|
+
margin-bottom: 0px !important;
|
|
2113
|
+
}
|
|
2114
|
+
:where(.children\:\!bg-transparent) > :where(:not(.not-children)) {
|
|
2115
|
+
background-color: transparent !important;
|
|
2116
|
+
}
|
|
2117
|
+
:where(.children\:\!shadow-none) > :where(:not(.not-children)) {
|
|
2118
|
+
--tw-shadow: 0 0 rgba(0,0,0,0) !important;
|
|
2119
|
+
--tw-shadow-colored: 0 0 rgba(0,0,0,0) !important;
|
|
2120
|
+
box-shadow: 0 0 rgba(0,0,0,0), 0 0 rgba(0,0,0,0), var(--tw-shadow) !important;
|
|
2121
|
+
box-shadow: 0 0 rgba(0,0,0,0), 0 0 rgba(0,0,0,0), var(--tw-shadow) !important;
|
|
2122
|
+
box-shadow: var(--tw-ring-offset-shadow, 0 0 rgba(0,0,0,0)), var(--tw-ring-shadow, 0 0 rgba(0,0,0,0)), var(--tw-shadow) !important;
|
|
2123
|
+
}
|
|
1983
2124
|
.dark .dark\:prose-dark {
|
|
1984
2125
|
color: #94a3b8;
|
|
1985
2126
|
}
|
|
@@ -2071,6 +2212,9 @@ video {
|
|
|
2071
2212
|
.dark .dark\:bg-slate-600\/30 {
|
|
2072
2213
|
background-color: rgba(71, 85, 105, 0.3);
|
|
2073
2214
|
}
|
|
2215
|
+
.dark .dark\:fill-slate-100 {
|
|
2216
|
+
fill: #f1f5f9;
|
|
2217
|
+
}
|
|
2074
2218
|
.dark .dark\:fill-slate-300 {
|
|
2075
2219
|
fill: #cbd5e1;
|
|
2076
2220
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function copyToClipboard(text: string): Promise<"success" | "error" | undefined>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getNodeText: (node: any) => string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mintlify/components",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.45",
|
|
4
4
|
"description": "Open-source library of UI components made with React and TailwindCSS.",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -59,6 +59,7 @@
|
|
|
59
59
|
"source-map-loader": "^4.0.0",
|
|
60
60
|
"storybook-addon-themes": "^6.1.0",
|
|
61
61
|
"style-loader": "^3.3.1",
|
|
62
|
+
"tailwind-children": "^0.5.0",
|
|
62
63
|
"tailwindcss": "^3.1.8",
|
|
63
64
|
"trim": "^1.0.1",
|
|
64
65
|
"trim-newlines": "^4.0.2",
|