qstd 0.1.4 → 0.1.6
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/dist/react/index.cjs +2 -3
- package/dist/react/index.d.cts +179 -235
- package/dist/react/index.d.ts +179 -235
- package/dist/react/index.js +1 -1
- package/package.json +1 -1
package/dist/react/index.cjs
CHANGED
|
@@ -11,7 +11,6 @@ var reactSpinners = require('react-spinners');
|
|
|
11
11
|
var reactLoaderSpinner = require('react-loader-spinner');
|
|
12
12
|
var jsxRuntime = require('react/jsx-runtime');
|
|
13
13
|
var nanoid = require('nanoid');
|
|
14
|
-
var mmb = require('music-metadata-browser');
|
|
15
14
|
var reactFontawesome = require('@fortawesome/react-fontawesome');
|
|
16
15
|
var fontawesomeSvgCore = require('@fortawesome/fontawesome-svg-core');
|
|
17
16
|
var freeRegularSvgIcons = require('@fortawesome/free-regular-svg-icons');
|
|
@@ -38,7 +37,6 @@ function _interopNamespace(e) {
|
|
|
38
37
|
}
|
|
39
38
|
|
|
40
39
|
var React11__namespace = /*#__PURE__*/_interopNamespace(React11);
|
|
41
|
-
var mmb__namespace = /*#__PURE__*/_interopNamespace(mmb);
|
|
42
40
|
|
|
43
41
|
// src/react/index.ts
|
|
44
42
|
|
|
@@ -907,7 +905,8 @@ var extractImageMetadata = (f) => {
|
|
|
907
905
|
});
|
|
908
906
|
};
|
|
909
907
|
var extractAudioMetadata = async (f) => {
|
|
910
|
-
const
|
|
908
|
+
const mmb = await import('music-metadata-browser');
|
|
909
|
+
const meta = await mmb.parseBlob(f, { duration: true });
|
|
911
910
|
return new Promise((res, rej) => {
|
|
912
911
|
if (!f) rej("No audio file provided.");
|
|
913
912
|
const ext = f.name.split(".").pop();
|
package/dist/react/index.d.cts
CHANGED
|
@@ -1,17 +1,15 @@
|
|
|
1
|
-
import * as React
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import React__default, { ElementType, ComponentType, Component, JSX, ComponentPropsWithRef } from 'react';
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
|
-
import { IAudioMetadata } from 'music-metadata-browser';
|
|
5
|
-
import * as framer_motion from 'framer-motion';
|
|
6
|
-
import { VariantLabels, Transition } from 'framer-motion';
|
|
7
4
|
import { IconName, SizeProp } from '@fortawesome/fontawesome-svg-core';
|
|
8
5
|
import { IconDefinition } from '@fortawesome/free-solid-svg-icons';
|
|
9
|
-
import { TargetAndTransition } from 'motion-dom';
|
|
10
6
|
import { Placement as Placement$1 } from '@floating-ui/react';
|
|
11
7
|
import { IconType } from 'react-icons/lib';
|
|
12
8
|
import * as Panda from '@pandacss/dev';
|
|
13
9
|
import * as react_loader_spinner from 'react-loader-spinner';
|
|
14
10
|
import { BeatLoader } from 'react-spinners';
|
|
11
|
+
import * as framer_motion from 'framer-motion';
|
|
12
|
+
import { Transition } from 'framer-motion';
|
|
15
13
|
|
|
16
14
|
/* eslint-disable */
|
|
17
15
|
interface ConditionOptions {
|
|
@@ -19989,9 +19987,9 @@ interface PatchedHTMLProps {
|
|
|
19989
19987
|
htmlContent?: string
|
|
19990
19988
|
}
|
|
19991
19989
|
|
|
19992
|
-
type OmittedHTMLProps = 'color' | 'translate' | 'transition' | 'width' | 'height' | 'content'
|
|
19990
|
+
type OmittedHTMLProps$1 = 'color' | 'translate' | 'transition' | 'width' | 'height' | 'content'
|
|
19993
19991
|
|
|
19994
|
-
type WithHTMLProps<T> = DistributiveOmit<T, OmittedHTMLProps> & PatchedHTMLProps
|
|
19992
|
+
type WithHTMLProps<T> = DistributiveOmit<T, OmittedHTMLProps$1> & PatchedHTMLProps
|
|
19995
19993
|
|
|
19996
19994
|
type JsxHTMLProps<T extends Record<string, any>, P extends Record<string, any> = {}> = Assign<
|
|
19997
19995
|
WithHTMLProps<T>,
|
|
@@ -20121,38 +20119,6 @@ type SlotRecipeConfig<
|
|
|
20121
20119
|
T extends SlotRecipeVariantRecord<S> = SlotRecipeVariantRecord<S>,
|
|
20122
20120
|
> = SlotRecipeDefinition<S, T> & RecipeConfigMeta
|
|
20123
20121
|
|
|
20124
|
-
/* eslint-disable */
|
|
20125
|
-
|
|
20126
|
-
|
|
20127
|
-
interface Dict {
|
|
20128
|
-
[k: string]: unknown
|
|
20129
|
-
}
|
|
20130
|
-
|
|
20131
|
-
interface UnstyledProps {
|
|
20132
|
-
/**
|
|
20133
|
-
* Whether to remove recipe styles
|
|
20134
|
-
*/
|
|
20135
|
-
unstyled?: boolean | undefined
|
|
20136
|
-
}
|
|
20137
|
-
|
|
20138
|
-
interface AsProps {
|
|
20139
|
-
/**
|
|
20140
|
-
* The element to render as
|
|
20141
|
-
*/
|
|
20142
|
-
as?: ElementType | undefined
|
|
20143
|
-
}
|
|
20144
|
-
|
|
20145
|
-
type ComponentProps<T extends ElementType> = T extends ComponentType<infer P> | Component<infer P>
|
|
20146
|
-
? JSX.LibraryManagedAttributes<T, P>
|
|
20147
|
-
: ComponentPropsWithRef<T>
|
|
20148
|
-
|
|
20149
|
-
interface StyledComponent<T extends ElementType, P extends Dict = {}> {
|
|
20150
|
-
(props: JsxHTMLProps<ComponentProps<T> & UnstyledProps & AsProps, Assign<JsxStyleProps, P>>): JSX.Element
|
|
20151
|
-
displayName?: string | undefined
|
|
20152
|
-
}
|
|
20153
|
-
|
|
20154
|
-
type HTMLStyledProps<T extends ElementType> = JsxHTMLProps<ComponentProps<T> & UnstyledProps & AsProps, JsxStyleProps>
|
|
20155
|
-
|
|
20156
20122
|
/* eslint-disable */
|
|
20157
20123
|
interface Part {
|
|
20158
20124
|
selector: string
|
|
@@ -20481,130 +20447,75 @@ declare module '@pandacss/dev' {
|
|
|
20481
20447
|
export function defineParts<T extends Parts>(parts: T): (config: Partial<Record<keyof T, SystemStyleObject>>) => Partial<Record<keyof T, SystemStyleObject>>
|
|
20482
20448
|
}
|
|
20483
20449
|
|
|
20484
|
-
|
|
20485
|
-
|
|
20486
|
-
|
|
20487
|
-
|
|
20488
|
-
|
|
20489
|
-
|
|
20490
|
-
|
|
20491
|
-
|
|
20492
|
-
|
|
20493
|
-
|
|
20494
|
-
|
|
20495
|
-
|
|
20496
|
-
|
|
20497
|
-
|
|
20498
|
-
|
|
20499
|
-
|
|
20500
|
-
|
|
20501
|
-
|
|
20502
|
-
|
|
20503
|
-
|
|
20504
|
-
|
|
20505
|
-
|
|
20506
|
-
|
|
20507
|
-
|
|
20508
|
-
|
|
20509
|
-
|
|
20510
|
-
|
|
20511
|
-
|
|
20512
|
-
|
|
20513
|
-
|
|
20514
|
-
readonly sub: StyledComponent<"sub", {}>;
|
|
20515
|
-
readonly sup: StyledComponent<"sup", {}>;
|
|
20516
|
-
readonly u: StyledComponent<"u", {}>;
|
|
20517
|
-
readonly var: StyledComponent<"var", {}>;
|
|
20518
|
-
readonly input: StyledComponent<"input", {}>;
|
|
20519
|
-
readonly label: StyledComponent<"label", {}>;
|
|
20520
|
-
readonly legend: StyledComponent<"legend", {}>;
|
|
20521
|
-
readonly p: StyledComponent<"p", {}>;
|
|
20522
|
-
readonly select: StyledComponent<"select", {}>;
|
|
20523
|
-
readonly span: StyledComponent<"span", {}>;
|
|
20524
|
-
readonly svg: StyledComponent<"svg", {}>;
|
|
20525
|
-
readonly textarea: StyledComponent<"textarea", {}>;
|
|
20526
|
-
readonly table: StyledComponent<"table", {}>;
|
|
20527
|
-
readonly tr: StyledComponent<"tr", {}>;
|
|
20528
|
-
readonly th: StyledComponent<"th", {}>;
|
|
20529
|
-
readonly td: StyledComponent<"td", {}>;
|
|
20530
|
-
readonly tbody: StyledComponent<"tbody", {}>;
|
|
20531
|
-
readonly thead: StyledComponent<"thead", {}>;
|
|
20532
|
-
readonly tfoot: StyledComponent<"tfoot", {}>;
|
|
20533
|
-
readonly progress: StyledComponent<"progress", {}>;
|
|
20534
|
-
readonly ol: StyledComponent<"ol", {}>;
|
|
20535
|
-
readonly ul: StyledComponent<"ul", {}>;
|
|
20536
|
-
readonly li: StyledComponent<"li", {}>;
|
|
20537
|
-
readonly blockquote: StyledComponent<"blockquote", {}>;
|
|
20538
|
-
readonly pre: StyledComponent<"pre", {}>;
|
|
20539
|
-
};
|
|
20540
|
-
declare const motionTags: {
|
|
20541
|
-
readonly div: StyledComponent<framer_motion.ForwardRefComponent<HTMLDivElement, framer_motion.HTMLMotionProps<"div">>, {}>;
|
|
20542
|
-
readonly a: StyledComponent<framer_motion.ForwardRefComponent<HTMLAnchorElement, framer_motion.HTMLMotionProps<"a">>, {}>;
|
|
20543
|
-
readonly br: StyledComponent<framer_motion.ForwardRefComponent<HTMLBRElement, framer_motion.HTMLMotionProps<"br">>, {}>;
|
|
20544
|
-
readonly button: StyledComponent<framer_motion.ForwardRefComponent<HTMLButtonElement, framer_motion.HTMLMotionProps<"button">>, {}>;
|
|
20545
|
-
readonly canvas: StyledComponent<framer_motion.ForwardRefComponent<HTMLCanvasElement, framer_motion.HTMLMotionProps<"canvas">>, {}>;
|
|
20546
|
-
readonly form: StyledComponent<framer_motion.ForwardRefComponent<HTMLFormElement, framer_motion.HTMLMotionProps<"form">>, {}>;
|
|
20547
|
-
readonly h1: StyledComponent<framer_motion.ForwardRefComponent<HTMLHeadingElement, framer_motion.HTMLMotionProps<"h1">>, {}>;
|
|
20548
|
-
readonly h2: StyledComponent<framer_motion.ForwardRefComponent<HTMLHeadingElement, framer_motion.HTMLMotionProps<"h2">>, {}>;
|
|
20549
|
-
readonly h3: StyledComponent<framer_motion.ForwardRefComponent<HTMLHeadingElement, framer_motion.HTMLMotionProps<"h3">>, {}>;
|
|
20550
|
-
readonly hr: StyledComponent<framer_motion.ForwardRefComponent<HTMLHRElement, framer_motion.HTMLMotionProps<"hr">>, {}>;
|
|
20551
|
-
readonly nav: StyledComponent<framer_motion.ForwardRefComponent<HTMLElement, framer_motion.HTMLMotionProps<"nav">>, {}>;
|
|
20552
|
-
readonly main: StyledComponent<framer_motion.ForwardRefComponent<HTMLElement, framer_motion.HTMLMotionProps<"main">>, {}>;
|
|
20553
|
-
readonly aside: StyledComponent<framer_motion.ForwardRefComponent<HTMLElement, framer_motion.HTMLMotionProps<"aside">>, {}>;
|
|
20554
|
-
readonly article: StyledComponent<framer_motion.ForwardRefComponent<HTMLElement, framer_motion.HTMLMotionProps<"article">>, {}>;
|
|
20555
|
-
readonly section: StyledComponent<framer_motion.ForwardRefComponent<HTMLElement, framer_motion.HTMLMotionProps<"section">>, {}>;
|
|
20556
|
-
readonly details: StyledComponent<framer_motion.ForwardRefComponent<HTMLDetailsElement, framer_motion.HTMLMotionProps<"details">>, {}>;
|
|
20557
|
-
readonly header: StyledComponent<framer_motion.ForwardRefComponent<HTMLElement, framer_motion.HTMLMotionProps<"header">>, {}>;
|
|
20558
|
-
readonly footer: StyledComponent<framer_motion.ForwardRefComponent<HTMLElement, framer_motion.HTMLMotionProps<"footer">>, {}>;
|
|
20559
|
-
readonly strong: StyledComponent<framer_motion.ForwardRefComponent<HTMLElement, framer_motion.HTMLMotionProps<"strong">>, {}>;
|
|
20560
|
-
readonly em: StyledComponent<framer_motion.ForwardRefComponent<HTMLElement, framer_motion.HTMLMotionProps<"em">>, {}>;
|
|
20561
|
-
readonly img: StyledComponent<framer_motion.ForwardRefComponent<HTMLImageElement, framer_motion.HTMLMotionProps<"img">>, {}>;
|
|
20562
|
-
readonly del: StyledComponent<framer_motion.ForwardRefComponent<HTMLModElement, framer_motion.HTMLMotionProps<"del">>, {}>;
|
|
20563
|
-
readonly ins: StyledComponent<framer_motion.ForwardRefComponent<HTMLModElement, framer_motion.HTMLMotionProps<"ins">>, {}>;
|
|
20564
|
-
readonly kbd: StyledComponent<framer_motion.ForwardRefComponent<HTMLElement, framer_motion.HTMLMotionProps<"kbd">>, {}>;
|
|
20565
|
-
readonly code: StyledComponent<framer_motion.ForwardRefComponent<HTMLElement, framer_motion.HTMLMotionProps<"code">>, {}>;
|
|
20566
|
-
readonly mark: StyledComponent<framer_motion.ForwardRefComponent<HTMLElement, framer_motion.HTMLMotionProps<"mark">>, {}>;
|
|
20567
|
-
readonly samp: StyledComponent<framer_motion.ForwardRefComponent<HTMLElement, framer_motion.HTMLMotionProps<"samp">>, {}>;
|
|
20568
|
-
readonly small: StyledComponent<framer_motion.ForwardRefComponent<HTMLElement, framer_motion.HTMLMotionProps<"small">>, {}>;
|
|
20569
|
-
readonly sub: StyledComponent<framer_motion.ForwardRefComponent<HTMLElement, framer_motion.HTMLMotionProps<"sub">>, {}>;
|
|
20570
|
-
readonly sup: StyledComponent<framer_motion.ForwardRefComponent<HTMLElement, framer_motion.HTMLMotionProps<"sup">>, {}>;
|
|
20571
|
-
readonly u: StyledComponent<framer_motion.ForwardRefComponent<HTMLElement, framer_motion.HTMLMotionProps<"u">>, {}>;
|
|
20572
|
-
readonly var: StyledComponent<framer_motion.ForwardRefComponent<HTMLElement, framer_motion.HTMLMotionProps<"var">>, {}>;
|
|
20573
|
-
readonly input: StyledComponent<framer_motion.ForwardRefComponent<HTMLInputElement, framer_motion.HTMLMotionProps<"input">>, {}>;
|
|
20574
|
-
readonly label: StyledComponent<framer_motion.ForwardRefComponent<HTMLLabelElement, framer_motion.HTMLMotionProps<"label">>, {}>;
|
|
20575
|
-
readonly legend: StyledComponent<framer_motion.ForwardRefComponent<HTMLLegendElement, framer_motion.HTMLMotionProps<"legend">>, {}>;
|
|
20576
|
-
readonly p: StyledComponent<framer_motion.ForwardRefComponent<HTMLParagraphElement, framer_motion.HTMLMotionProps<"p">>, {}>;
|
|
20577
|
-
readonly select: StyledComponent<framer_motion.ForwardRefComponent<HTMLSelectElement, framer_motion.HTMLMotionProps<"select">>, {}>;
|
|
20578
|
-
readonly span: StyledComponent<framer_motion.ForwardRefComponent<HTMLSpanElement, framer_motion.HTMLMotionProps<"span">>, {}>;
|
|
20579
|
-
readonly svg: StyledComponent<framer_motion.ForwardRefComponent<SVGSVGElement, framer_motion.SVGMotionProps<SVGSVGElement>>, {}>;
|
|
20580
|
-
readonly textarea: StyledComponent<framer_motion.ForwardRefComponent<HTMLTextAreaElement, framer_motion.HTMLMotionProps<"textarea">>, {}>;
|
|
20581
|
-
readonly table: StyledComponent<framer_motion.ForwardRefComponent<HTMLTableElement, framer_motion.HTMLMotionProps<"table">>, {}>;
|
|
20582
|
-
readonly tr: StyledComponent<framer_motion.ForwardRefComponent<HTMLTableRowElement, framer_motion.HTMLMotionProps<"tr">>, {}>;
|
|
20583
|
-
readonly th: StyledComponent<framer_motion.ForwardRefComponent<HTMLTableHeaderCellElement, framer_motion.HTMLMotionProps<"th">>, {}>;
|
|
20584
|
-
readonly td: StyledComponent<framer_motion.ForwardRefComponent<HTMLTableDataCellElement, framer_motion.HTMLMotionProps<"td">>, {}>;
|
|
20585
|
-
readonly tbody: StyledComponent<framer_motion.ForwardRefComponent<HTMLTableSectionElement, framer_motion.HTMLMotionProps<"tbody">>, {}>;
|
|
20586
|
-
readonly thead: StyledComponent<framer_motion.ForwardRefComponent<HTMLTableSectionElement, framer_motion.HTMLMotionProps<"thead">>, {}>;
|
|
20587
|
-
readonly tfoot: StyledComponent<framer_motion.ForwardRefComponent<HTMLTableSectionElement, framer_motion.HTMLMotionProps<"tfoot">>, {}>;
|
|
20588
|
-
readonly progress: StyledComponent<framer_motion.ForwardRefComponent<HTMLProgressElement, framer_motion.HTMLMotionProps<"progress">>, {}>;
|
|
20589
|
-
readonly ol: StyledComponent<framer_motion.ForwardRefComponent<HTMLOListElement, framer_motion.HTMLMotionProps<"ol">>, {}>;
|
|
20590
|
-
readonly ul: StyledComponent<framer_motion.ForwardRefComponent<HTMLUListElement, framer_motion.HTMLMotionProps<"ul">>, {}>;
|
|
20591
|
-
readonly li: StyledComponent<framer_motion.ForwardRefComponent<HTMLLIElement, framer_motion.HTMLMotionProps<"li">>, {}>;
|
|
20592
|
-
readonly blockquote: StyledComponent<framer_motion.ForwardRefComponent<HTMLQuoteElement, framer_motion.HTMLMotionProps<"blockquote">>, {}>;
|
|
20593
|
-
readonly pre: StyledComponent<framer_motion.ForwardRefComponent<HTMLPreElement, framer_motion.HTMLMotionProps<"pre">>, {}>;
|
|
20594
|
-
};
|
|
20450
|
+
/* eslint-disable */
|
|
20451
|
+
|
|
20452
|
+
|
|
20453
|
+
interface Dict {
|
|
20454
|
+
[k: string]: unknown
|
|
20455
|
+
}
|
|
20456
|
+
|
|
20457
|
+
interface UnstyledProps {
|
|
20458
|
+
/**
|
|
20459
|
+
* Whether to remove recipe styles
|
|
20460
|
+
*/
|
|
20461
|
+
unstyled?: boolean | undefined
|
|
20462
|
+
}
|
|
20463
|
+
|
|
20464
|
+
interface AsProps {
|
|
20465
|
+
/**
|
|
20466
|
+
* The element to render as
|
|
20467
|
+
*/
|
|
20468
|
+
as?: ElementType | undefined
|
|
20469
|
+
}
|
|
20470
|
+
|
|
20471
|
+
type ComponentProps<T extends ElementType> = T extends ComponentType<infer P> | Component<infer P>
|
|
20472
|
+
? JSX.LibraryManagedAttributes<T, P>
|
|
20473
|
+
: ComponentPropsWithRef<T>
|
|
20474
|
+
|
|
20475
|
+
interface StyledComponent<T extends ElementType, P extends Dict = {}> {
|
|
20476
|
+
(props: JsxHTMLProps<ComponentProps<T> & UnstyledProps & AsProps, Assign<JsxStyleProps, P>>): JSX.Element
|
|
20477
|
+
displayName?: string | undefined
|
|
20478
|
+
}
|
|
20479
|
+
|
|
20595
20480
|
declare const loadingIconsMap: {
|
|
20596
|
-
readonly rotatingLines: React
|
|
20597
|
-
readonly spinner: React
|
|
20481
|
+
readonly rotatingLines: React.FunctionComponent<react_loader_spinner._Props3>;
|
|
20482
|
+
readonly spinner: React.FunctionComponent<react_loader_spinner.TailSpinProps>;
|
|
20598
20483
|
readonly beat: typeof BeatLoader;
|
|
20599
|
-
readonly dots: React
|
|
20600
|
-
readonly oval: React
|
|
20484
|
+
readonly dots: React.FunctionComponent<react_loader_spinner.ThreeDotsProps>;
|
|
20485
|
+
readonly oval: React.FunctionComponent<react_loader_spinner.OvalProps>;
|
|
20601
20486
|
};
|
|
20602
20487
|
|
|
20603
|
-
|
|
20604
|
-
|
|
20605
|
-
|
|
20606
|
-
|
|
20607
|
-
|
|
20488
|
+
interface AudioMetadataSource {
|
|
20489
|
+
format: {
|
|
20490
|
+
container?: string;
|
|
20491
|
+
codec?: string;
|
|
20492
|
+
sampleRate?: number;
|
|
20493
|
+
numberOfChannels?: number;
|
|
20494
|
+
bitrate?: number;
|
|
20495
|
+
duration?: number;
|
|
20496
|
+
};
|
|
20497
|
+
common: {
|
|
20498
|
+
track?: {
|
|
20499
|
+
no: number | null;
|
|
20500
|
+
of: number | null;
|
|
20501
|
+
};
|
|
20502
|
+
disk?: {
|
|
20503
|
+
no: number | null;
|
|
20504
|
+
of: number | null;
|
|
20505
|
+
};
|
|
20506
|
+
year?: number;
|
|
20507
|
+
title?: string;
|
|
20508
|
+
artist?: string;
|
|
20509
|
+
artists?: string[];
|
|
20510
|
+
albumartist?: string;
|
|
20511
|
+
album?: string;
|
|
20512
|
+
genre?: string[];
|
|
20513
|
+
picture?: {
|
|
20514
|
+
format: string;
|
|
20515
|
+
data: Uint8Array;
|
|
20516
|
+
}[];
|
|
20517
|
+
};
|
|
20518
|
+
}
|
|
20608
20519
|
declare global {
|
|
20609
20520
|
interface File {
|
|
20610
20521
|
preview?: string;
|
|
@@ -20627,13 +20538,12 @@ declare global {
|
|
|
20627
20538
|
interface AudioFile extends File {
|
|
20628
20539
|
id: string;
|
|
20629
20540
|
preview: string;
|
|
20630
|
-
source:
|
|
20541
|
+
source: AudioMetadataSource["common"] & AudioMetadataSource["format"];
|
|
20631
20542
|
}
|
|
20632
20543
|
type MediaFile = File | ImageFile | AudioFile;
|
|
20633
20544
|
}
|
|
20634
|
-
type PropsFor<K extends keyof typeof tags> = React.ComponentProps<(typeof tags)[K]>;
|
|
20635
20545
|
type Icon = null | IconName | IconType | IconDefinition | React.ReactElement | (() => React.ReactElement);
|
|
20636
|
-
|
|
20546
|
+
interface IconProps {
|
|
20637
20547
|
iconPrefix?: "solid" | "regular" | "brands";
|
|
20638
20548
|
className?: string;
|
|
20639
20549
|
startIcon?: Icon;
|
|
@@ -20642,7 +20552,7 @@ type IconProps = {
|
|
|
20642
20552
|
iconSize?: SizeProp;
|
|
20643
20553
|
pulse?: boolean;
|
|
20644
20554
|
spin?: boolean;
|
|
20645
|
-
}
|
|
20555
|
+
}
|
|
20646
20556
|
type LoadingIcon = keyof typeof loadingIconsMap;
|
|
20647
20557
|
type Icons = Icon | LoadingIcon;
|
|
20648
20558
|
type LoadingProps = {
|
|
@@ -20652,47 +20562,54 @@ type LoadingProps = {
|
|
|
20652
20562
|
isLoading?: boolean;
|
|
20653
20563
|
};
|
|
20654
20564
|
type BlockMotionProps = {
|
|
20655
|
-
initial?:
|
|
20656
|
-
animate?:
|
|
20657
|
-
exit?:
|
|
20658
|
-
variants?:
|
|
20659
|
-
|
|
20660
|
-
|
|
20661
|
-
|
|
20662
|
-
|
|
20663
|
-
|
|
20664
|
-
layout?: boolean | "position" | "size" | "preserve-aspect";
|
|
20665
|
-
_motion?: Transition;
|
|
20565
|
+
initial?: any;
|
|
20566
|
+
animate?: any;
|
|
20567
|
+
exit?: any;
|
|
20568
|
+
variants?: any;
|
|
20569
|
+
whileHover?: any;
|
|
20570
|
+
whileTap?: any;
|
|
20571
|
+
whileFocus?: any;
|
|
20572
|
+
layout?: any;
|
|
20573
|
+
_motion?: any;
|
|
20666
20574
|
};
|
|
20667
|
-
|
|
20668
|
-
is?: undefined;
|
|
20669
|
-
as?: keyof typeof tags;
|
|
20575
|
+
interface SharedBlockProps extends JsxStyleProps, BlockMotionProps, IconProps {
|
|
20670
20576
|
tooltip?: boolean | React.ReactNode | string;
|
|
20671
20577
|
portalContainer?: Element | DocumentFragment;
|
|
20672
20578
|
filepicker?: boolean;
|
|
20673
20579
|
portal?: boolean;
|
|
20580
|
+
as?: React.ElementType;
|
|
20581
|
+
className?: string;
|
|
20582
|
+
style?: React.CSSProperties;
|
|
20583
|
+
}
|
|
20584
|
+
type OmittedHTMLProps = "color" | "width" | "height" | "translate" | "content" | "as" | "onAnimationStart" | "onAnimationEnd" | "onAnimationIteration" | "onDrag" | "onDragStart" | "onDragEnd" | "onDragOver" | "onDragEnter" | "onDragLeave" | "onDrop";
|
|
20585
|
+
type HTMLProps<T extends React.ElementType> = Omit<React.ComponentProps<T>, OmittedHTMLProps>;
|
|
20586
|
+
type BaseBlockProps = SharedBlockProps & HTMLProps<"div"> & {
|
|
20587
|
+
is?: undefined;
|
|
20674
20588
|
};
|
|
20675
|
-
type TxtBlockProps =
|
|
20589
|
+
type TxtBlockProps = SharedBlockProps & HTMLProps<"div"> & {
|
|
20676
20590
|
is: "txt";
|
|
20677
20591
|
as?: "p" | "span" | "h1" | "h2" | "h3" | "em" | "strong";
|
|
20678
20592
|
};
|
|
20679
|
-
type HrBlockProps =
|
|
20593
|
+
type HrBlockProps = SharedBlockProps & HTMLProps<"hr"> & {
|
|
20680
20594
|
is: "hr";
|
|
20681
|
-
}
|
|
20682
|
-
type SkeletonBlockProps =
|
|
20595
|
+
};
|
|
20596
|
+
type SkeletonBlockProps = SharedBlockProps & HTMLProps<"div"> & {
|
|
20683
20597
|
is: "skeleton";
|
|
20684
20598
|
as: "block";
|
|
20599
|
+
size?: any;
|
|
20600
|
+
br?: any;
|
|
20685
20601
|
};
|
|
20686
|
-
type SkeletonCircleProps =
|
|
20602
|
+
type SkeletonCircleProps = SharedBlockProps & HTMLProps<"div"> & {
|
|
20687
20603
|
is: "skeleton";
|
|
20688
20604
|
as: "circle";
|
|
20605
|
+
size?: any;
|
|
20606
|
+
br?: any;
|
|
20689
20607
|
};
|
|
20690
|
-
type BtnBlockPropsBase = Omit<
|
|
20608
|
+
type BtnBlockPropsBase = SharedBlockProps & Omit<HTMLProps<"button">, "onChange"> & LoadingProps & {
|
|
20691
20609
|
is: "btn";
|
|
20692
20610
|
disabled?: boolean;
|
|
20693
20611
|
type?: "button" | "submit" | "reset";
|
|
20694
20612
|
onClick?: React.MouseEventHandler;
|
|
20695
|
-
tooltip?: boolean | React.ReactNode | string;
|
|
20696
20613
|
};
|
|
20697
20614
|
type BtnFilepickerProps = BtnBlockPropsBase & {
|
|
20698
20615
|
filepicker: true;
|
|
@@ -20710,11 +20627,12 @@ type BtnBlockProps = BtnBlockPropsBase & {
|
|
|
20710
20627
|
accept?: string;
|
|
20711
20628
|
onChange?: any;
|
|
20712
20629
|
};
|
|
20713
|
-
type InputBlockProps =
|
|
20630
|
+
type InputBlockProps = SharedBlockProps & Omit<HTMLProps<"input">, "children"> & {
|
|
20714
20631
|
is: "input";
|
|
20715
20632
|
error?: string;
|
|
20716
|
-
|
|
20717
|
-
|
|
20633
|
+
children?: React.ReactNode;
|
|
20634
|
+
};
|
|
20635
|
+
type TextareaBlockProps = SharedBlockProps & Omit<HTMLProps<"textarea">, "children"> & {
|
|
20718
20636
|
is: "textarea";
|
|
20719
20637
|
error?: string;
|
|
20720
20638
|
/** Maximum number of rows the textarea can expand to */
|
|
@@ -20725,24 +20643,27 @@ type TextareaBlockProps = HTMLStyledProps<typeof tags.textarea> & BlockMotionPro
|
|
|
20725
20643
|
onHeightChange?: (height: number, meta: {
|
|
20726
20644
|
rowHeight: number;
|
|
20727
20645
|
}) => void;
|
|
20728
|
-
|
|
20729
|
-
|
|
20646
|
+
children?: React.ReactNode;
|
|
20647
|
+
};
|
|
20648
|
+
type CheckboxBlockProps = SharedBlockProps & HTMLProps<"div"> & {
|
|
20730
20649
|
is: "checkbox";
|
|
20731
20650
|
onChecked?: (value: boolean) => void;
|
|
20732
20651
|
indeterminate?: boolean;
|
|
20733
20652
|
checked?: boolean;
|
|
20734
20653
|
};
|
|
20735
|
-
type ProgressBlockProps =
|
|
20654
|
+
type ProgressBlockProps = SharedBlockProps & HTMLProps<"progress"> & {
|
|
20736
20655
|
is: "progress";
|
|
20737
20656
|
value: number;
|
|
20738
20657
|
max?: number;
|
|
20739
20658
|
steps?: number;
|
|
20740
|
-
}
|
|
20741
|
-
type SwitchBlockProps = Omit<
|
|
20659
|
+
};
|
|
20660
|
+
type SwitchBlockProps = SharedBlockProps & Omit<HTMLProps<"button">, "onChange"> & {
|
|
20742
20661
|
is: "switch";
|
|
20743
20662
|
thumbSize?: number;
|
|
20744
20663
|
onChange?: (checked: boolean) => void;
|
|
20745
|
-
|
|
20664
|
+
checked?: boolean;
|
|
20665
|
+
defaultChecked?: boolean;
|
|
20666
|
+
};
|
|
20746
20667
|
type AccordionBlockProps = {
|
|
20747
20668
|
is: "accordion";
|
|
20748
20669
|
allowToggle?: boolean;
|
|
@@ -20750,7 +20671,7 @@ type AccordionBlockProps = {
|
|
|
20750
20671
|
defaultOpenIdx?: number[];
|
|
20751
20672
|
children: React.ReactElement | React.ReactElement[];
|
|
20752
20673
|
};
|
|
20753
|
-
type DrawerBlockProps =
|
|
20674
|
+
type DrawerBlockProps = SharedBlockProps & HTMLProps<"div"> & {
|
|
20754
20675
|
is: "drawer";
|
|
20755
20676
|
open: boolean;
|
|
20756
20677
|
hideHandle?: boolean;
|
|
@@ -20766,7 +20687,7 @@ type RadioOption = {
|
|
|
20766
20687
|
value: string;
|
|
20767
20688
|
disabled?: boolean;
|
|
20768
20689
|
};
|
|
20769
|
-
type RadioBlockProps = Omit<
|
|
20690
|
+
type RadioBlockProps = SharedBlockProps & Omit<HTMLProps<"div">, "onChange" | "children"> & {
|
|
20770
20691
|
is: "radio";
|
|
20771
20692
|
/** Controlled value for single-select radio group */
|
|
20772
20693
|
value?: string | null;
|
|
@@ -20785,7 +20706,7 @@ type RadioBlockProps = Omit<HTMLStyledProps<typeof base>, "onChange" | "children
|
|
|
20785
20706
|
/** Disallow children for the radio container */
|
|
20786
20707
|
children?: never;
|
|
20787
20708
|
};
|
|
20788
|
-
type MenuBlockProps =
|
|
20709
|
+
type MenuBlockProps = SharedBlockProps & HTMLProps<"div"> & {
|
|
20789
20710
|
is: "menu";
|
|
20790
20711
|
trigger?: React.ReactNode;
|
|
20791
20712
|
variant: "click" | "hover";
|
|
@@ -20800,96 +20721,120 @@ type MenuBlockProps = HTMLStyledProps<typeof base> & BlockMotionProps & {
|
|
|
20800
20721
|
isOpen?: boolean;
|
|
20801
20722
|
width?: string | number;
|
|
20802
20723
|
};
|
|
20803
|
-
type LinkBlockProps =
|
|
20724
|
+
type LinkBlockProps = SharedBlockProps & HTMLProps<"div"> & {
|
|
20804
20725
|
is: "link";
|
|
20805
20726
|
href?: string;
|
|
20806
20727
|
to?: string;
|
|
20807
20728
|
target?: "_self" | "_blank";
|
|
20808
20729
|
rel?: string;
|
|
20809
20730
|
};
|
|
20810
|
-
type ImgBlockProps =
|
|
20731
|
+
type ImgBlockProps = SharedBlockProps & HTMLProps<"img"> & {
|
|
20811
20732
|
is: "img";
|
|
20812
20733
|
src: string;
|
|
20813
20734
|
alt: string;
|
|
20814
20735
|
};
|
|
20815
|
-
type SelectBlockProps =
|
|
20736
|
+
type SelectBlockProps = SharedBlockProps & HTMLProps<"select"> & {
|
|
20816
20737
|
is: "select";
|
|
20817
|
-
}
|
|
20818
|
-
type BlockquoteBlockProps =
|
|
20738
|
+
};
|
|
20739
|
+
type BlockquoteBlockProps = SharedBlockProps & HTMLProps<"blockquote"> & {
|
|
20819
20740
|
is: "blockquote";
|
|
20820
|
-
}
|
|
20821
|
-
type PreBlockProps =
|
|
20741
|
+
};
|
|
20742
|
+
type PreBlockProps = SharedBlockProps & HTMLProps<"pre"> & {
|
|
20822
20743
|
is: "pre";
|
|
20823
|
-
}
|
|
20824
|
-
type FormBlockProps =
|
|
20744
|
+
};
|
|
20745
|
+
type FormBlockProps = SharedBlockProps & HTMLProps<"form"> & (({
|
|
20825
20746
|
is: "form";
|
|
20826
20747
|
as?: undefined;
|
|
20827
|
-
}
|
|
20748
|
+
}) | ({
|
|
20828
20749
|
is: "form";
|
|
20829
20750
|
as: "label";
|
|
20830
|
-
} &
|
|
20751
|
+
} & HTMLProps<"label">) | ({
|
|
20831
20752
|
is: "form";
|
|
20832
20753
|
as: "legend";
|
|
20833
|
-
} &
|
|
20834
|
-
type TableBlockProps =
|
|
20754
|
+
} & HTMLProps<"legend">));
|
|
20755
|
+
type TableBlockProps = SharedBlockProps & HTMLProps<"table"> & (({
|
|
20835
20756
|
is: "table";
|
|
20836
20757
|
as?: undefined;
|
|
20837
|
-
}
|
|
20758
|
+
}) | ({
|
|
20838
20759
|
is: "table";
|
|
20839
20760
|
as: "tr";
|
|
20840
|
-
} &
|
|
20761
|
+
} & HTMLProps<"tr">) | ({
|
|
20841
20762
|
is: "table";
|
|
20842
20763
|
as: "td";
|
|
20843
|
-
} &
|
|
20764
|
+
} & HTMLProps<"td">) | ({
|
|
20844
20765
|
is: "table";
|
|
20845
20766
|
as: "th";
|
|
20846
|
-
} &
|
|
20767
|
+
} & HTMLProps<"th">) | ({
|
|
20847
20768
|
is: "table";
|
|
20848
20769
|
as: "tbody";
|
|
20849
|
-
} &
|
|
20770
|
+
} & HTMLProps<"tbody">) | ({
|
|
20850
20771
|
is: "table";
|
|
20851
20772
|
as: "thead";
|
|
20852
|
-
} &
|
|
20773
|
+
} & HTMLProps<"thead">) | ({
|
|
20853
20774
|
is: "table";
|
|
20854
20775
|
as: "tfoot";
|
|
20855
|
-
} &
|
|
20856
|
-
type ListBlockProps =
|
|
20776
|
+
} & HTMLProps<"tfoot">));
|
|
20777
|
+
type ListBlockProps = SharedBlockProps & HTMLProps<"div"> & (({
|
|
20857
20778
|
is: "list";
|
|
20858
20779
|
as: "ul";
|
|
20859
|
-
} &
|
|
20780
|
+
} & HTMLProps<"ul">) | ({
|
|
20860
20781
|
is: "list";
|
|
20861
20782
|
as: "ol";
|
|
20862
|
-
} &
|
|
20783
|
+
} & HTMLProps<"ol">) | ({
|
|
20863
20784
|
is: "list";
|
|
20864
20785
|
as: "li";
|
|
20865
|
-
} &
|
|
20866
|
-
type SeoBlockProps =
|
|
20786
|
+
} & HTMLProps<"li">));
|
|
20787
|
+
type SeoBlockProps = SharedBlockProps & HTMLProps<"div"> & (({
|
|
20867
20788
|
is: "seo";
|
|
20868
20789
|
as: "nav";
|
|
20869
|
-
} &
|
|
20790
|
+
} & HTMLProps<"nav">) | ({
|
|
20870
20791
|
is: "seo";
|
|
20871
20792
|
as: "main";
|
|
20872
|
-
} &
|
|
20793
|
+
} & HTMLProps<"main">) | ({
|
|
20873
20794
|
is: "seo";
|
|
20874
20795
|
as: "aside";
|
|
20875
|
-
} &
|
|
20796
|
+
} & HTMLProps<"aside">) | ({
|
|
20876
20797
|
is: "seo";
|
|
20877
20798
|
as: "article";
|
|
20878
|
-
} &
|
|
20799
|
+
} & HTMLProps<"article">) | ({
|
|
20879
20800
|
is: "seo";
|
|
20880
20801
|
as: "section";
|
|
20881
|
-
} &
|
|
20802
|
+
} & HTMLProps<"section">) | ({
|
|
20882
20803
|
is: "seo";
|
|
20883
20804
|
as: "details";
|
|
20884
|
-
} &
|
|
20805
|
+
} & HTMLProps<"details">) | ({
|
|
20885
20806
|
is: "seo";
|
|
20886
20807
|
as: "header";
|
|
20887
|
-
} &
|
|
20808
|
+
} & HTMLProps<"header">) | ({
|
|
20888
20809
|
is: "seo";
|
|
20889
20810
|
as: "footer";
|
|
20890
|
-
} &
|
|
20891
|
-
type
|
|
20892
|
-
|
|
20811
|
+
} & HTMLProps<"footer">));
|
|
20812
|
+
type BlockPropsMap = {
|
|
20813
|
+
hr: HrBlockProps;
|
|
20814
|
+
txt: TxtBlockProps;
|
|
20815
|
+
btn: BtnFilepickerProps | BtnStandardProps;
|
|
20816
|
+
input: InputBlockProps;
|
|
20817
|
+
textarea: TextareaBlockProps;
|
|
20818
|
+
checkbox: CheckboxBlockProps;
|
|
20819
|
+
accordion: AccordionBlockProps;
|
|
20820
|
+
progress: ProgressBlockProps;
|
|
20821
|
+
switch: SwitchBlockProps;
|
|
20822
|
+
drawer: DrawerBlockProps;
|
|
20823
|
+
radio: RadioBlockProps;
|
|
20824
|
+
menu: MenuBlockProps;
|
|
20825
|
+
link: LinkBlockProps;
|
|
20826
|
+
img: ImgBlockProps;
|
|
20827
|
+
select: SelectBlockProps;
|
|
20828
|
+
skeleton: SkeletonBlockProps | SkeletonCircleProps;
|
|
20829
|
+
blockquote: BlockquoteBlockProps;
|
|
20830
|
+
pre: PreBlockProps;
|
|
20831
|
+
form: FormBlockProps;
|
|
20832
|
+
table: TableBlockProps;
|
|
20833
|
+
list: ListBlockProps;
|
|
20834
|
+
seo: SeoBlockProps;
|
|
20835
|
+
};
|
|
20836
|
+
type Is = keyof BlockPropsMap;
|
|
20837
|
+
type BlockProps<T extends Is | undefined = undefined> = T extends undefined ? BaseBlockProps : T extends Is ? BlockPropsMap[T] : never;
|
|
20893
20838
|
|
|
20894
20839
|
declare function MenuContainer(props: BaseBlockProps): react_jsx_runtime.JSX.Element;
|
|
20895
20840
|
|
|
@@ -20995,11 +20940,10 @@ declare namespace TrackFill {
|
|
|
20995
20940
|
var displayName: string;
|
|
20996
20941
|
}
|
|
20997
20942
|
|
|
20998
|
-
declare function Block(props:
|
|
20999
|
-
declare function Block(props:
|
|
21000
|
-
declare function Block(props: BlockProps): React$1.ReactElement;
|
|
20943
|
+
declare function Block<T extends Is>(props: BlockProps<T>): React.ReactElement;
|
|
20944
|
+
declare function Block(props: BaseBlockProps): React.ReactElement;
|
|
21001
20945
|
declare const TooltipNamespace: {
|
|
21002
|
-
readonly Container: React
|
|
20946
|
+
readonly Container: React.ForwardRefExoticComponent<Omit<BaseBlockProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
21003
20947
|
};
|
|
21004
20948
|
declare const MenuNamespace: {
|
|
21005
20949
|
readonly Container: typeof MenuContainer;
|
package/dist/react/index.d.ts
CHANGED
|
@@ -1,17 +1,15 @@
|
|
|
1
|
-
import * as React
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import React__default, { ElementType, ComponentType, Component, JSX, ComponentPropsWithRef } from 'react';
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
|
-
import { IAudioMetadata } from 'music-metadata-browser';
|
|
5
|
-
import * as framer_motion from 'framer-motion';
|
|
6
|
-
import { VariantLabels, Transition } from 'framer-motion';
|
|
7
4
|
import { IconName, SizeProp } from '@fortawesome/fontawesome-svg-core';
|
|
8
5
|
import { IconDefinition } from '@fortawesome/free-solid-svg-icons';
|
|
9
|
-
import { TargetAndTransition } from 'motion-dom';
|
|
10
6
|
import { Placement as Placement$1 } from '@floating-ui/react';
|
|
11
7
|
import { IconType } from 'react-icons/lib';
|
|
12
8
|
import * as Panda from '@pandacss/dev';
|
|
13
9
|
import * as react_loader_spinner from 'react-loader-spinner';
|
|
14
10
|
import { BeatLoader } from 'react-spinners';
|
|
11
|
+
import * as framer_motion from 'framer-motion';
|
|
12
|
+
import { Transition } from 'framer-motion';
|
|
15
13
|
|
|
16
14
|
/* eslint-disable */
|
|
17
15
|
interface ConditionOptions {
|
|
@@ -19989,9 +19987,9 @@ interface PatchedHTMLProps {
|
|
|
19989
19987
|
htmlContent?: string
|
|
19990
19988
|
}
|
|
19991
19989
|
|
|
19992
|
-
type OmittedHTMLProps = 'color' | 'translate' | 'transition' | 'width' | 'height' | 'content'
|
|
19990
|
+
type OmittedHTMLProps$1 = 'color' | 'translate' | 'transition' | 'width' | 'height' | 'content'
|
|
19993
19991
|
|
|
19994
|
-
type WithHTMLProps<T> = DistributiveOmit<T, OmittedHTMLProps> & PatchedHTMLProps
|
|
19992
|
+
type WithHTMLProps<T> = DistributiveOmit<T, OmittedHTMLProps$1> & PatchedHTMLProps
|
|
19995
19993
|
|
|
19996
19994
|
type JsxHTMLProps<T extends Record<string, any>, P extends Record<string, any> = {}> = Assign<
|
|
19997
19995
|
WithHTMLProps<T>,
|
|
@@ -20121,38 +20119,6 @@ type SlotRecipeConfig<
|
|
|
20121
20119
|
T extends SlotRecipeVariantRecord<S> = SlotRecipeVariantRecord<S>,
|
|
20122
20120
|
> = SlotRecipeDefinition<S, T> & RecipeConfigMeta
|
|
20123
20121
|
|
|
20124
|
-
/* eslint-disable */
|
|
20125
|
-
|
|
20126
|
-
|
|
20127
|
-
interface Dict {
|
|
20128
|
-
[k: string]: unknown
|
|
20129
|
-
}
|
|
20130
|
-
|
|
20131
|
-
interface UnstyledProps {
|
|
20132
|
-
/**
|
|
20133
|
-
* Whether to remove recipe styles
|
|
20134
|
-
*/
|
|
20135
|
-
unstyled?: boolean | undefined
|
|
20136
|
-
}
|
|
20137
|
-
|
|
20138
|
-
interface AsProps {
|
|
20139
|
-
/**
|
|
20140
|
-
* The element to render as
|
|
20141
|
-
*/
|
|
20142
|
-
as?: ElementType | undefined
|
|
20143
|
-
}
|
|
20144
|
-
|
|
20145
|
-
type ComponentProps<T extends ElementType> = T extends ComponentType<infer P> | Component<infer P>
|
|
20146
|
-
? JSX.LibraryManagedAttributes<T, P>
|
|
20147
|
-
: ComponentPropsWithRef<T>
|
|
20148
|
-
|
|
20149
|
-
interface StyledComponent<T extends ElementType, P extends Dict = {}> {
|
|
20150
|
-
(props: JsxHTMLProps<ComponentProps<T> & UnstyledProps & AsProps, Assign<JsxStyleProps, P>>): JSX.Element
|
|
20151
|
-
displayName?: string | undefined
|
|
20152
|
-
}
|
|
20153
|
-
|
|
20154
|
-
type HTMLStyledProps<T extends ElementType> = JsxHTMLProps<ComponentProps<T> & UnstyledProps & AsProps, JsxStyleProps>
|
|
20155
|
-
|
|
20156
20122
|
/* eslint-disable */
|
|
20157
20123
|
interface Part {
|
|
20158
20124
|
selector: string
|
|
@@ -20481,130 +20447,75 @@ declare module '@pandacss/dev' {
|
|
|
20481
20447
|
export function defineParts<T extends Parts>(parts: T): (config: Partial<Record<keyof T, SystemStyleObject>>) => Partial<Record<keyof T, SystemStyleObject>>
|
|
20482
20448
|
}
|
|
20483
20449
|
|
|
20484
|
-
|
|
20485
|
-
|
|
20486
|
-
|
|
20487
|
-
|
|
20488
|
-
|
|
20489
|
-
|
|
20490
|
-
|
|
20491
|
-
|
|
20492
|
-
|
|
20493
|
-
|
|
20494
|
-
|
|
20495
|
-
|
|
20496
|
-
|
|
20497
|
-
|
|
20498
|
-
|
|
20499
|
-
|
|
20500
|
-
|
|
20501
|
-
|
|
20502
|
-
|
|
20503
|
-
|
|
20504
|
-
|
|
20505
|
-
|
|
20506
|
-
|
|
20507
|
-
|
|
20508
|
-
|
|
20509
|
-
|
|
20510
|
-
|
|
20511
|
-
|
|
20512
|
-
|
|
20513
|
-
|
|
20514
|
-
readonly sub: StyledComponent<"sub", {}>;
|
|
20515
|
-
readonly sup: StyledComponent<"sup", {}>;
|
|
20516
|
-
readonly u: StyledComponent<"u", {}>;
|
|
20517
|
-
readonly var: StyledComponent<"var", {}>;
|
|
20518
|
-
readonly input: StyledComponent<"input", {}>;
|
|
20519
|
-
readonly label: StyledComponent<"label", {}>;
|
|
20520
|
-
readonly legend: StyledComponent<"legend", {}>;
|
|
20521
|
-
readonly p: StyledComponent<"p", {}>;
|
|
20522
|
-
readonly select: StyledComponent<"select", {}>;
|
|
20523
|
-
readonly span: StyledComponent<"span", {}>;
|
|
20524
|
-
readonly svg: StyledComponent<"svg", {}>;
|
|
20525
|
-
readonly textarea: StyledComponent<"textarea", {}>;
|
|
20526
|
-
readonly table: StyledComponent<"table", {}>;
|
|
20527
|
-
readonly tr: StyledComponent<"tr", {}>;
|
|
20528
|
-
readonly th: StyledComponent<"th", {}>;
|
|
20529
|
-
readonly td: StyledComponent<"td", {}>;
|
|
20530
|
-
readonly tbody: StyledComponent<"tbody", {}>;
|
|
20531
|
-
readonly thead: StyledComponent<"thead", {}>;
|
|
20532
|
-
readonly tfoot: StyledComponent<"tfoot", {}>;
|
|
20533
|
-
readonly progress: StyledComponent<"progress", {}>;
|
|
20534
|
-
readonly ol: StyledComponent<"ol", {}>;
|
|
20535
|
-
readonly ul: StyledComponent<"ul", {}>;
|
|
20536
|
-
readonly li: StyledComponent<"li", {}>;
|
|
20537
|
-
readonly blockquote: StyledComponent<"blockquote", {}>;
|
|
20538
|
-
readonly pre: StyledComponent<"pre", {}>;
|
|
20539
|
-
};
|
|
20540
|
-
declare const motionTags: {
|
|
20541
|
-
readonly div: StyledComponent<framer_motion.ForwardRefComponent<HTMLDivElement, framer_motion.HTMLMotionProps<"div">>, {}>;
|
|
20542
|
-
readonly a: StyledComponent<framer_motion.ForwardRefComponent<HTMLAnchorElement, framer_motion.HTMLMotionProps<"a">>, {}>;
|
|
20543
|
-
readonly br: StyledComponent<framer_motion.ForwardRefComponent<HTMLBRElement, framer_motion.HTMLMotionProps<"br">>, {}>;
|
|
20544
|
-
readonly button: StyledComponent<framer_motion.ForwardRefComponent<HTMLButtonElement, framer_motion.HTMLMotionProps<"button">>, {}>;
|
|
20545
|
-
readonly canvas: StyledComponent<framer_motion.ForwardRefComponent<HTMLCanvasElement, framer_motion.HTMLMotionProps<"canvas">>, {}>;
|
|
20546
|
-
readonly form: StyledComponent<framer_motion.ForwardRefComponent<HTMLFormElement, framer_motion.HTMLMotionProps<"form">>, {}>;
|
|
20547
|
-
readonly h1: StyledComponent<framer_motion.ForwardRefComponent<HTMLHeadingElement, framer_motion.HTMLMotionProps<"h1">>, {}>;
|
|
20548
|
-
readonly h2: StyledComponent<framer_motion.ForwardRefComponent<HTMLHeadingElement, framer_motion.HTMLMotionProps<"h2">>, {}>;
|
|
20549
|
-
readonly h3: StyledComponent<framer_motion.ForwardRefComponent<HTMLHeadingElement, framer_motion.HTMLMotionProps<"h3">>, {}>;
|
|
20550
|
-
readonly hr: StyledComponent<framer_motion.ForwardRefComponent<HTMLHRElement, framer_motion.HTMLMotionProps<"hr">>, {}>;
|
|
20551
|
-
readonly nav: StyledComponent<framer_motion.ForwardRefComponent<HTMLElement, framer_motion.HTMLMotionProps<"nav">>, {}>;
|
|
20552
|
-
readonly main: StyledComponent<framer_motion.ForwardRefComponent<HTMLElement, framer_motion.HTMLMotionProps<"main">>, {}>;
|
|
20553
|
-
readonly aside: StyledComponent<framer_motion.ForwardRefComponent<HTMLElement, framer_motion.HTMLMotionProps<"aside">>, {}>;
|
|
20554
|
-
readonly article: StyledComponent<framer_motion.ForwardRefComponent<HTMLElement, framer_motion.HTMLMotionProps<"article">>, {}>;
|
|
20555
|
-
readonly section: StyledComponent<framer_motion.ForwardRefComponent<HTMLElement, framer_motion.HTMLMotionProps<"section">>, {}>;
|
|
20556
|
-
readonly details: StyledComponent<framer_motion.ForwardRefComponent<HTMLDetailsElement, framer_motion.HTMLMotionProps<"details">>, {}>;
|
|
20557
|
-
readonly header: StyledComponent<framer_motion.ForwardRefComponent<HTMLElement, framer_motion.HTMLMotionProps<"header">>, {}>;
|
|
20558
|
-
readonly footer: StyledComponent<framer_motion.ForwardRefComponent<HTMLElement, framer_motion.HTMLMotionProps<"footer">>, {}>;
|
|
20559
|
-
readonly strong: StyledComponent<framer_motion.ForwardRefComponent<HTMLElement, framer_motion.HTMLMotionProps<"strong">>, {}>;
|
|
20560
|
-
readonly em: StyledComponent<framer_motion.ForwardRefComponent<HTMLElement, framer_motion.HTMLMotionProps<"em">>, {}>;
|
|
20561
|
-
readonly img: StyledComponent<framer_motion.ForwardRefComponent<HTMLImageElement, framer_motion.HTMLMotionProps<"img">>, {}>;
|
|
20562
|
-
readonly del: StyledComponent<framer_motion.ForwardRefComponent<HTMLModElement, framer_motion.HTMLMotionProps<"del">>, {}>;
|
|
20563
|
-
readonly ins: StyledComponent<framer_motion.ForwardRefComponent<HTMLModElement, framer_motion.HTMLMotionProps<"ins">>, {}>;
|
|
20564
|
-
readonly kbd: StyledComponent<framer_motion.ForwardRefComponent<HTMLElement, framer_motion.HTMLMotionProps<"kbd">>, {}>;
|
|
20565
|
-
readonly code: StyledComponent<framer_motion.ForwardRefComponent<HTMLElement, framer_motion.HTMLMotionProps<"code">>, {}>;
|
|
20566
|
-
readonly mark: StyledComponent<framer_motion.ForwardRefComponent<HTMLElement, framer_motion.HTMLMotionProps<"mark">>, {}>;
|
|
20567
|
-
readonly samp: StyledComponent<framer_motion.ForwardRefComponent<HTMLElement, framer_motion.HTMLMotionProps<"samp">>, {}>;
|
|
20568
|
-
readonly small: StyledComponent<framer_motion.ForwardRefComponent<HTMLElement, framer_motion.HTMLMotionProps<"small">>, {}>;
|
|
20569
|
-
readonly sub: StyledComponent<framer_motion.ForwardRefComponent<HTMLElement, framer_motion.HTMLMotionProps<"sub">>, {}>;
|
|
20570
|
-
readonly sup: StyledComponent<framer_motion.ForwardRefComponent<HTMLElement, framer_motion.HTMLMotionProps<"sup">>, {}>;
|
|
20571
|
-
readonly u: StyledComponent<framer_motion.ForwardRefComponent<HTMLElement, framer_motion.HTMLMotionProps<"u">>, {}>;
|
|
20572
|
-
readonly var: StyledComponent<framer_motion.ForwardRefComponent<HTMLElement, framer_motion.HTMLMotionProps<"var">>, {}>;
|
|
20573
|
-
readonly input: StyledComponent<framer_motion.ForwardRefComponent<HTMLInputElement, framer_motion.HTMLMotionProps<"input">>, {}>;
|
|
20574
|
-
readonly label: StyledComponent<framer_motion.ForwardRefComponent<HTMLLabelElement, framer_motion.HTMLMotionProps<"label">>, {}>;
|
|
20575
|
-
readonly legend: StyledComponent<framer_motion.ForwardRefComponent<HTMLLegendElement, framer_motion.HTMLMotionProps<"legend">>, {}>;
|
|
20576
|
-
readonly p: StyledComponent<framer_motion.ForwardRefComponent<HTMLParagraphElement, framer_motion.HTMLMotionProps<"p">>, {}>;
|
|
20577
|
-
readonly select: StyledComponent<framer_motion.ForwardRefComponent<HTMLSelectElement, framer_motion.HTMLMotionProps<"select">>, {}>;
|
|
20578
|
-
readonly span: StyledComponent<framer_motion.ForwardRefComponent<HTMLSpanElement, framer_motion.HTMLMotionProps<"span">>, {}>;
|
|
20579
|
-
readonly svg: StyledComponent<framer_motion.ForwardRefComponent<SVGSVGElement, framer_motion.SVGMotionProps<SVGSVGElement>>, {}>;
|
|
20580
|
-
readonly textarea: StyledComponent<framer_motion.ForwardRefComponent<HTMLTextAreaElement, framer_motion.HTMLMotionProps<"textarea">>, {}>;
|
|
20581
|
-
readonly table: StyledComponent<framer_motion.ForwardRefComponent<HTMLTableElement, framer_motion.HTMLMotionProps<"table">>, {}>;
|
|
20582
|
-
readonly tr: StyledComponent<framer_motion.ForwardRefComponent<HTMLTableRowElement, framer_motion.HTMLMotionProps<"tr">>, {}>;
|
|
20583
|
-
readonly th: StyledComponent<framer_motion.ForwardRefComponent<HTMLTableHeaderCellElement, framer_motion.HTMLMotionProps<"th">>, {}>;
|
|
20584
|
-
readonly td: StyledComponent<framer_motion.ForwardRefComponent<HTMLTableDataCellElement, framer_motion.HTMLMotionProps<"td">>, {}>;
|
|
20585
|
-
readonly tbody: StyledComponent<framer_motion.ForwardRefComponent<HTMLTableSectionElement, framer_motion.HTMLMotionProps<"tbody">>, {}>;
|
|
20586
|
-
readonly thead: StyledComponent<framer_motion.ForwardRefComponent<HTMLTableSectionElement, framer_motion.HTMLMotionProps<"thead">>, {}>;
|
|
20587
|
-
readonly tfoot: StyledComponent<framer_motion.ForwardRefComponent<HTMLTableSectionElement, framer_motion.HTMLMotionProps<"tfoot">>, {}>;
|
|
20588
|
-
readonly progress: StyledComponent<framer_motion.ForwardRefComponent<HTMLProgressElement, framer_motion.HTMLMotionProps<"progress">>, {}>;
|
|
20589
|
-
readonly ol: StyledComponent<framer_motion.ForwardRefComponent<HTMLOListElement, framer_motion.HTMLMotionProps<"ol">>, {}>;
|
|
20590
|
-
readonly ul: StyledComponent<framer_motion.ForwardRefComponent<HTMLUListElement, framer_motion.HTMLMotionProps<"ul">>, {}>;
|
|
20591
|
-
readonly li: StyledComponent<framer_motion.ForwardRefComponent<HTMLLIElement, framer_motion.HTMLMotionProps<"li">>, {}>;
|
|
20592
|
-
readonly blockquote: StyledComponent<framer_motion.ForwardRefComponent<HTMLQuoteElement, framer_motion.HTMLMotionProps<"blockquote">>, {}>;
|
|
20593
|
-
readonly pre: StyledComponent<framer_motion.ForwardRefComponent<HTMLPreElement, framer_motion.HTMLMotionProps<"pre">>, {}>;
|
|
20594
|
-
};
|
|
20450
|
+
/* eslint-disable */
|
|
20451
|
+
|
|
20452
|
+
|
|
20453
|
+
interface Dict {
|
|
20454
|
+
[k: string]: unknown
|
|
20455
|
+
}
|
|
20456
|
+
|
|
20457
|
+
interface UnstyledProps {
|
|
20458
|
+
/**
|
|
20459
|
+
* Whether to remove recipe styles
|
|
20460
|
+
*/
|
|
20461
|
+
unstyled?: boolean | undefined
|
|
20462
|
+
}
|
|
20463
|
+
|
|
20464
|
+
interface AsProps {
|
|
20465
|
+
/**
|
|
20466
|
+
* The element to render as
|
|
20467
|
+
*/
|
|
20468
|
+
as?: ElementType | undefined
|
|
20469
|
+
}
|
|
20470
|
+
|
|
20471
|
+
type ComponentProps<T extends ElementType> = T extends ComponentType<infer P> | Component<infer P>
|
|
20472
|
+
? JSX.LibraryManagedAttributes<T, P>
|
|
20473
|
+
: ComponentPropsWithRef<T>
|
|
20474
|
+
|
|
20475
|
+
interface StyledComponent<T extends ElementType, P extends Dict = {}> {
|
|
20476
|
+
(props: JsxHTMLProps<ComponentProps<T> & UnstyledProps & AsProps, Assign<JsxStyleProps, P>>): JSX.Element
|
|
20477
|
+
displayName?: string | undefined
|
|
20478
|
+
}
|
|
20479
|
+
|
|
20595
20480
|
declare const loadingIconsMap: {
|
|
20596
|
-
readonly rotatingLines: React
|
|
20597
|
-
readonly spinner: React
|
|
20481
|
+
readonly rotatingLines: React.FunctionComponent<react_loader_spinner._Props3>;
|
|
20482
|
+
readonly spinner: React.FunctionComponent<react_loader_spinner.TailSpinProps>;
|
|
20598
20483
|
readonly beat: typeof BeatLoader;
|
|
20599
|
-
readonly dots: React
|
|
20600
|
-
readonly oval: React
|
|
20484
|
+
readonly dots: React.FunctionComponent<react_loader_spinner.ThreeDotsProps>;
|
|
20485
|
+
readonly oval: React.FunctionComponent<react_loader_spinner.OvalProps>;
|
|
20601
20486
|
};
|
|
20602
20487
|
|
|
20603
|
-
|
|
20604
|
-
|
|
20605
|
-
|
|
20606
|
-
|
|
20607
|
-
|
|
20488
|
+
interface AudioMetadataSource {
|
|
20489
|
+
format: {
|
|
20490
|
+
container?: string;
|
|
20491
|
+
codec?: string;
|
|
20492
|
+
sampleRate?: number;
|
|
20493
|
+
numberOfChannels?: number;
|
|
20494
|
+
bitrate?: number;
|
|
20495
|
+
duration?: number;
|
|
20496
|
+
};
|
|
20497
|
+
common: {
|
|
20498
|
+
track?: {
|
|
20499
|
+
no: number | null;
|
|
20500
|
+
of: number | null;
|
|
20501
|
+
};
|
|
20502
|
+
disk?: {
|
|
20503
|
+
no: number | null;
|
|
20504
|
+
of: number | null;
|
|
20505
|
+
};
|
|
20506
|
+
year?: number;
|
|
20507
|
+
title?: string;
|
|
20508
|
+
artist?: string;
|
|
20509
|
+
artists?: string[];
|
|
20510
|
+
albumartist?: string;
|
|
20511
|
+
album?: string;
|
|
20512
|
+
genre?: string[];
|
|
20513
|
+
picture?: {
|
|
20514
|
+
format: string;
|
|
20515
|
+
data: Uint8Array;
|
|
20516
|
+
}[];
|
|
20517
|
+
};
|
|
20518
|
+
}
|
|
20608
20519
|
declare global {
|
|
20609
20520
|
interface File {
|
|
20610
20521
|
preview?: string;
|
|
@@ -20627,13 +20538,12 @@ declare global {
|
|
|
20627
20538
|
interface AudioFile extends File {
|
|
20628
20539
|
id: string;
|
|
20629
20540
|
preview: string;
|
|
20630
|
-
source:
|
|
20541
|
+
source: AudioMetadataSource["common"] & AudioMetadataSource["format"];
|
|
20631
20542
|
}
|
|
20632
20543
|
type MediaFile = File | ImageFile | AudioFile;
|
|
20633
20544
|
}
|
|
20634
|
-
type PropsFor<K extends keyof typeof tags> = React.ComponentProps<(typeof tags)[K]>;
|
|
20635
20545
|
type Icon = null | IconName | IconType | IconDefinition | React.ReactElement | (() => React.ReactElement);
|
|
20636
|
-
|
|
20546
|
+
interface IconProps {
|
|
20637
20547
|
iconPrefix?: "solid" | "regular" | "brands";
|
|
20638
20548
|
className?: string;
|
|
20639
20549
|
startIcon?: Icon;
|
|
@@ -20642,7 +20552,7 @@ type IconProps = {
|
|
|
20642
20552
|
iconSize?: SizeProp;
|
|
20643
20553
|
pulse?: boolean;
|
|
20644
20554
|
spin?: boolean;
|
|
20645
|
-
}
|
|
20555
|
+
}
|
|
20646
20556
|
type LoadingIcon = keyof typeof loadingIconsMap;
|
|
20647
20557
|
type Icons = Icon | LoadingIcon;
|
|
20648
20558
|
type LoadingProps = {
|
|
@@ -20652,47 +20562,54 @@ type LoadingProps = {
|
|
|
20652
20562
|
isLoading?: boolean;
|
|
20653
20563
|
};
|
|
20654
20564
|
type BlockMotionProps = {
|
|
20655
|
-
initial?:
|
|
20656
|
-
animate?:
|
|
20657
|
-
exit?:
|
|
20658
|
-
variants?:
|
|
20659
|
-
|
|
20660
|
-
|
|
20661
|
-
|
|
20662
|
-
|
|
20663
|
-
|
|
20664
|
-
layout?: boolean | "position" | "size" | "preserve-aspect";
|
|
20665
|
-
_motion?: Transition;
|
|
20565
|
+
initial?: any;
|
|
20566
|
+
animate?: any;
|
|
20567
|
+
exit?: any;
|
|
20568
|
+
variants?: any;
|
|
20569
|
+
whileHover?: any;
|
|
20570
|
+
whileTap?: any;
|
|
20571
|
+
whileFocus?: any;
|
|
20572
|
+
layout?: any;
|
|
20573
|
+
_motion?: any;
|
|
20666
20574
|
};
|
|
20667
|
-
|
|
20668
|
-
is?: undefined;
|
|
20669
|
-
as?: keyof typeof tags;
|
|
20575
|
+
interface SharedBlockProps extends JsxStyleProps, BlockMotionProps, IconProps {
|
|
20670
20576
|
tooltip?: boolean | React.ReactNode | string;
|
|
20671
20577
|
portalContainer?: Element | DocumentFragment;
|
|
20672
20578
|
filepicker?: boolean;
|
|
20673
20579
|
portal?: boolean;
|
|
20580
|
+
as?: React.ElementType;
|
|
20581
|
+
className?: string;
|
|
20582
|
+
style?: React.CSSProperties;
|
|
20583
|
+
}
|
|
20584
|
+
type OmittedHTMLProps = "color" | "width" | "height" | "translate" | "content" | "as" | "onAnimationStart" | "onAnimationEnd" | "onAnimationIteration" | "onDrag" | "onDragStart" | "onDragEnd" | "onDragOver" | "onDragEnter" | "onDragLeave" | "onDrop";
|
|
20585
|
+
type HTMLProps<T extends React.ElementType> = Omit<React.ComponentProps<T>, OmittedHTMLProps>;
|
|
20586
|
+
type BaseBlockProps = SharedBlockProps & HTMLProps<"div"> & {
|
|
20587
|
+
is?: undefined;
|
|
20674
20588
|
};
|
|
20675
|
-
type TxtBlockProps =
|
|
20589
|
+
type TxtBlockProps = SharedBlockProps & HTMLProps<"div"> & {
|
|
20676
20590
|
is: "txt";
|
|
20677
20591
|
as?: "p" | "span" | "h1" | "h2" | "h3" | "em" | "strong";
|
|
20678
20592
|
};
|
|
20679
|
-
type HrBlockProps =
|
|
20593
|
+
type HrBlockProps = SharedBlockProps & HTMLProps<"hr"> & {
|
|
20680
20594
|
is: "hr";
|
|
20681
|
-
}
|
|
20682
|
-
type SkeletonBlockProps =
|
|
20595
|
+
};
|
|
20596
|
+
type SkeletonBlockProps = SharedBlockProps & HTMLProps<"div"> & {
|
|
20683
20597
|
is: "skeleton";
|
|
20684
20598
|
as: "block";
|
|
20599
|
+
size?: any;
|
|
20600
|
+
br?: any;
|
|
20685
20601
|
};
|
|
20686
|
-
type SkeletonCircleProps =
|
|
20602
|
+
type SkeletonCircleProps = SharedBlockProps & HTMLProps<"div"> & {
|
|
20687
20603
|
is: "skeleton";
|
|
20688
20604
|
as: "circle";
|
|
20605
|
+
size?: any;
|
|
20606
|
+
br?: any;
|
|
20689
20607
|
};
|
|
20690
|
-
type BtnBlockPropsBase = Omit<
|
|
20608
|
+
type BtnBlockPropsBase = SharedBlockProps & Omit<HTMLProps<"button">, "onChange"> & LoadingProps & {
|
|
20691
20609
|
is: "btn";
|
|
20692
20610
|
disabled?: boolean;
|
|
20693
20611
|
type?: "button" | "submit" | "reset";
|
|
20694
20612
|
onClick?: React.MouseEventHandler;
|
|
20695
|
-
tooltip?: boolean | React.ReactNode | string;
|
|
20696
20613
|
};
|
|
20697
20614
|
type BtnFilepickerProps = BtnBlockPropsBase & {
|
|
20698
20615
|
filepicker: true;
|
|
@@ -20710,11 +20627,12 @@ type BtnBlockProps = BtnBlockPropsBase & {
|
|
|
20710
20627
|
accept?: string;
|
|
20711
20628
|
onChange?: any;
|
|
20712
20629
|
};
|
|
20713
|
-
type InputBlockProps =
|
|
20630
|
+
type InputBlockProps = SharedBlockProps & Omit<HTMLProps<"input">, "children"> & {
|
|
20714
20631
|
is: "input";
|
|
20715
20632
|
error?: string;
|
|
20716
|
-
|
|
20717
|
-
|
|
20633
|
+
children?: React.ReactNode;
|
|
20634
|
+
};
|
|
20635
|
+
type TextareaBlockProps = SharedBlockProps & Omit<HTMLProps<"textarea">, "children"> & {
|
|
20718
20636
|
is: "textarea";
|
|
20719
20637
|
error?: string;
|
|
20720
20638
|
/** Maximum number of rows the textarea can expand to */
|
|
@@ -20725,24 +20643,27 @@ type TextareaBlockProps = HTMLStyledProps<typeof tags.textarea> & BlockMotionPro
|
|
|
20725
20643
|
onHeightChange?: (height: number, meta: {
|
|
20726
20644
|
rowHeight: number;
|
|
20727
20645
|
}) => void;
|
|
20728
|
-
|
|
20729
|
-
|
|
20646
|
+
children?: React.ReactNode;
|
|
20647
|
+
};
|
|
20648
|
+
type CheckboxBlockProps = SharedBlockProps & HTMLProps<"div"> & {
|
|
20730
20649
|
is: "checkbox";
|
|
20731
20650
|
onChecked?: (value: boolean) => void;
|
|
20732
20651
|
indeterminate?: boolean;
|
|
20733
20652
|
checked?: boolean;
|
|
20734
20653
|
};
|
|
20735
|
-
type ProgressBlockProps =
|
|
20654
|
+
type ProgressBlockProps = SharedBlockProps & HTMLProps<"progress"> & {
|
|
20736
20655
|
is: "progress";
|
|
20737
20656
|
value: number;
|
|
20738
20657
|
max?: number;
|
|
20739
20658
|
steps?: number;
|
|
20740
|
-
}
|
|
20741
|
-
type SwitchBlockProps = Omit<
|
|
20659
|
+
};
|
|
20660
|
+
type SwitchBlockProps = SharedBlockProps & Omit<HTMLProps<"button">, "onChange"> & {
|
|
20742
20661
|
is: "switch";
|
|
20743
20662
|
thumbSize?: number;
|
|
20744
20663
|
onChange?: (checked: boolean) => void;
|
|
20745
|
-
|
|
20664
|
+
checked?: boolean;
|
|
20665
|
+
defaultChecked?: boolean;
|
|
20666
|
+
};
|
|
20746
20667
|
type AccordionBlockProps = {
|
|
20747
20668
|
is: "accordion";
|
|
20748
20669
|
allowToggle?: boolean;
|
|
@@ -20750,7 +20671,7 @@ type AccordionBlockProps = {
|
|
|
20750
20671
|
defaultOpenIdx?: number[];
|
|
20751
20672
|
children: React.ReactElement | React.ReactElement[];
|
|
20752
20673
|
};
|
|
20753
|
-
type DrawerBlockProps =
|
|
20674
|
+
type DrawerBlockProps = SharedBlockProps & HTMLProps<"div"> & {
|
|
20754
20675
|
is: "drawer";
|
|
20755
20676
|
open: boolean;
|
|
20756
20677
|
hideHandle?: boolean;
|
|
@@ -20766,7 +20687,7 @@ type RadioOption = {
|
|
|
20766
20687
|
value: string;
|
|
20767
20688
|
disabled?: boolean;
|
|
20768
20689
|
};
|
|
20769
|
-
type RadioBlockProps = Omit<
|
|
20690
|
+
type RadioBlockProps = SharedBlockProps & Omit<HTMLProps<"div">, "onChange" | "children"> & {
|
|
20770
20691
|
is: "radio";
|
|
20771
20692
|
/** Controlled value for single-select radio group */
|
|
20772
20693
|
value?: string | null;
|
|
@@ -20785,7 +20706,7 @@ type RadioBlockProps = Omit<HTMLStyledProps<typeof base>, "onChange" | "children
|
|
|
20785
20706
|
/** Disallow children for the radio container */
|
|
20786
20707
|
children?: never;
|
|
20787
20708
|
};
|
|
20788
|
-
type MenuBlockProps =
|
|
20709
|
+
type MenuBlockProps = SharedBlockProps & HTMLProps<"div"> & {
|
|
20789
20710
|
is: "menu";
|
|
20790
20711
|
trigger?: React.ReactNode;
|
|
20791
20712
|
variant: "click" | "hover";
|
|
@@ -20800,96 +20721,120 @@ type MenuBlockProps = HTMLStyledProps<typeof base> & BlockMotionProps & {
|
|
|
20800
20721
|
isOpen?: boolean;
|
|
20801
20722
|
width?: string | number;
|
|
20802
20723
|
};
|
|
20803
|
-
type LinkBlockProps =
|
|
20724
|
+
type LinkBlockProps = SharedBlockProps & HTMLProps<"div"> & {
|
|
20804
20725
|
is: "link";
|
|
20805
20726
|
href?: string;
|
|
20806
20727
|
to?: string;
|
|
20807
20728
|
target?: "_self" | "_blank";
|
|
20808
20729
|
rel?: string;
|
|
20809
20730
|
};
|
|
20810
|
-
type ImgBlockProps =
|
|
20731
|
+
type ImgBlockProps = SharedBlockProps & HTMLProps<"img"> & {
|
|
20811
20732
|
is: "img";
|
|
20812
20733
|
src: string;
|
|
20813
20734
|
alt: string;
|
|
20814
20735
|
};
|
|
20815
|
-
type SelectBlockProps =
|
|
20736
|
+
type SelectBlockProps = SharedBlockProps & HTMLProps<"select"> & {
|
|
20816
20737
|
is: "select";
|
|
20817
|
-
}
|
|
20818
|
-
type BlockquoteBlockProps =
|
|
20738
|
+
};
|
|
20739
|
+
type BlockquoteBlockProps = SharedBlockProps & HTMLProps<"blockquote"> & {
|
|
20819
20740
|
is: "blockquote";
|
|
20820
|
-
}
|
|
20821
|
-
type PreBlockProps =
|
|
20741
|
+
};
|
|
20742
|
+
type PreBlockProps = SharedBlockProps & HTMLProps<"pre"> & {
|
|
20822
20743
|
is: "pre";
|
|
20823
|
-
}
|
|
20824
|
-
type FormBlockProps =
|
|
20744
|
+
};
|
|
20745
|
+
type FormBlockProps = SharedBlockProps & HTMLProps<"form"> & (({
|
|
20825
20746
|
is: "form";
|
|
20826
20747
|
as?: undefined;
|
|
20827
|
-
}
|
|
20748
|
+
}) | ({
|
|
20828
20749
|
is: "form";
|
|
20829
20750
|
as: "label";
|
|
20830
|
-
} &
|
|
20751
|
+
} & HTMLProps<"label">) | ({
|
|
20831
20752
|
is: "form";
|
|
20832
20753
|
as: "legend";
|
|
20833
|
-
} &
|
|
20834
|
-
type TableBlockProps =
|
|
20754
|
+
} & HTMLProps<"legend">));
|
|
20755
|
+
type TableBlockProps = SharedBlockProps & HTMLProps<"table"> & (({
|
|
20835
20756
|
is: "table";
|
|
20836
20757
|
as?: undefined;
|
|
20837
|
-
}
|
|
20758
|
+
}) | ({
|
|
20838
20759
|
is: "table";
|
|
20839
20760
|
as: "tr";
|
|
20840
|
-
} &
|
|
20761
|
+
} & HTMLProps<"tr">) | ({
|
|
20841
20762
|
is: "table";
|
|
20842
20763
|
as: "td";
|
|
20843
|
-
} &
|
|
20764
|
+
} & HTMLProps<"td">) | ({
|
|
20844
20765
|
is: "table";
|
|
20845
20766
|
as: "th";
|
|
20846
|
-
} &
|
|
20767
|
+
} & HTMLProps<"th">) | ({
|
|
20847
20768
|
is: "table";
|
|
20848
20769
|
as: "tbody";
|
|
20849
|
-
} &
|
|
20770
|
+
} & HTMLProps<"tbody">) | ({
|
|
20850
20771
|
is: "table";
|
|
20851
20772
|
as: "thead";
|
|
20852
|
-
} &
|
|
20773
|
+
} & HTMLProps<"thead">) | ({
|
|
20853
20774
|
is: "table";
|
|
20854
20775
|
as: "tfoot";
|
|
20855
|
-
} &
|
|
20856
|
-
type ListBlockProps =
|
|
20776
|
+
} & HTMLProps<"tfoot">));
|
|
20777
|
+
type ListBlockProps = SharedBlockProps & HTMLProps<"div"> & (({
|
|
20857
20778
|
is: "list";
|
|
20858
20779
|
as: "ul";
|
|
20859
|
-
} &
|
|
20780
|
+
} & HTMLProps<"ul">) | ({
|
|
20860
20781
|
is: "list";
|
|
20861
20782
|
as: "ol";
|
|
20862
|
-
} &
|
|
20783
|
+
} & HTMLProps<"ol">) | ({
|
|
20863
20784
|
is: "list";
|
|
20864
20785
|
as: "li";
|
|
20865
|
-
} &
|
|
20866
|
-
type SeoBlockProps =
|
|
20786
|
+
} & HTMLProps<"li">));
|
|
20787
|
+
type SeoBlockProps = SharedBlockProps & HTMLProps<"div"> & (({
|
|
20867
20788
|
is: "seo";
|
|
20868
20789
|
as: "nav";
|
|
20869
|
-
} &
|
|
20790
|
+
} & HTMLProps<"nav">) | ({
|
|
20870
20791
|
is: "seo";
|
|
20871
20792
|
as: "main";
|
|
20872
|
-
} &
|
|
20793
|
+
} & HTMLProps<"main">) | ({
|
|
20873
20794
|
is: "seo";
|
|
20874
20795
|
as: "aside";
|
|
20875
|
-
} &
|
|
20796
|
+
} & HTMLProps<"aside">) | ({
|
|
20876
20797
|
is: "seo";
|
|
20877
20798
|
as: "article";
|
|
20878
|
-
} &
|
|
20799
|
+
} & HTMLProps<"article">) | ({
|
|
20879
20800
|
is: "seo";
|
|
20880
20801
|
as: "section";
|
|
20881
|
-
} &
|
|
20802
|
+
} & HTMLProps<"section">) | ({
|
|
20882
20803
|
is: "seo";
|
|
20883
20804
|
as: "details";
|
|
20884
|
-
} &
|
|
20805
|
+
} & HTMLProps<"details">) | ({
|
|
20885
20806
|
is: "seo";
|
|
20886
20807
|
as: "header";
|
|
20887
|
-
} &
|
|
20808
|
+
} & HTMLProps<"header">) | ({
|
|
20888
20809
|
is: "seo";
|
|
20889
20810
|
as: "footer";
|
|
20890
|
-
} &
|
|
20891
|
-
type
|
|
20892
|
-
|
|
20811
|
+
} & HTMLProps<"footer">));
|
|
20812
|
+
type BlockPropsMap = {
|
|
20813
|
+
hr: HrBlockProps;
|
|
20814
|
+
txt: TxtBlockProps;
|
|
20815
|
+
btn: BtnFilepickerProps | BtnStandardProps;
|
|
20816
|
+
input: InputBlockProps;
|
|
20817
|
+
textarea: TextareaBlockProps;
|
|
20818
|
+
checkbox: CheckboxBlockProps;
|
|
20819
|
+
accordion: AccordionBlockProps;
|
|
20820
|
+
progress: ProgressBlockProps;
|
|
20821
|
+
switch: SwitchBlockProps;
|
|
20822
|
+
drawer: DrawerBlockProps;
|
|
20823
|
+
radio: RadioBlockProps;
|
|
20824
|
+
menu: MenuBlockProps;
|
|
20825
|
+
link: LinkBlockProps;
|
|
20826
|
+
img: ImgBlockProps;
|
|
20827
|
+
select: SelectBlockProps;
|
|
20828
|
+
skeleton: SkeletonBlockProps | SkeletonCircleProps;
|
|
20829
|
+
blockquote: BlockquoteBlockProps;
|
|
20830
|
+
pre: PreBlockProps;
|
|
20831
|
+
form: FormBlockProps;
|
|
20832
|
+
table: TableBlockProps;
|
|
20833
|
+
list: ListBlockProps;
|
|
20834
|
+
seo: SeoBlockProps;
|
|
20835
|
+
};
|
|
20836
|
+
type Is = keyof BlockPropsMap;
|
|
20837
|
+
type BlockProps<T extends Is | undefined = undefined> = T extends undefined ? BaseBlockProps : T extends Is ? BlockPropsMap[T] : never;
|
|
20893
20838
|
|
|
20894
20839
|
declare function MenuContainer(props: BaseBlockProps): react_jsx_runtime.JSX.Element;
|
|
20895
20840
|
|
|
@@ -20995,11 +20940,10 @@ declare namespace TrackFill {
|
|
|
20995
20940
|
var displayName: string;
|
|
20996
20941
|
}
|
|
20997
20942
|
|
|
20998
|
-
declare function Block(props:
|
|
20999
|
-
declare function Block(props:
|
|
21000
|
-
declare function Block(props: BlockProps): React$1.ReactElement;
|
|
20943
|
+
declare function Block<T extends Is>(props: BlockProps<T>): React.ReactElement;
|
|
20944
|
+
declare function Block(props: BaseBlockProps): React.ReactElement;
|
|
21001
20945
|
declare const TooltipNamespace: {
|
|
21002
|
-
readonly Container: React
|
|
20946
|
+
readonly Container: React.ForwardRefExoticComponent<Omit<BaseBlockProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
21003
20947
|
};
|
|
21004
20948
|
declare const MenuNamespace: {
|
|
21005
20949
|
readonly Container: typeof MenuContainer;
|
package/dist/react/index.js
CHANGED
|
@@ -8,7 +8,6 @@ import { BeatLoader } from 'react-spinners';
|
|
|
8
8
|
import { Oval, ThreeDots, TailSpin, RotatingLines } from 'react-loader-spinner';
|
|
9
9
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
10
10
|
import { nanoid } from 'nanoid';
|
|
11
|
-
import * as mmb from 'music-metadata-browser';
|
|
12
11
|
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
|
13
12
|
import { library } from '@fortawesome/fontawesome-svg-core';
|
|
14
13
|
import { far } from '@fortawesome/free-regular-svg-icons';
|
|
@@ -883,6 +882,7 @@ var extractImageMetadata = (f) => {
|
|
|
883
882
|
});
|
|
884
883
|
};
|
|
885
884
|
var extractAudioMetadata = async (f) => {
|
|
885
|
+
const mmb = await import('music-metadata-browser');
|
|
886
886
|
const meta = await mmb.parseBlob(f, { duration: true });
|
|
887
887
|
return new Promise((res, rej) => {
|
|
888
888
|
if (!f) rej("No audio file provided.");
|