@nicorp/nui 0.11.1 → 0.11.3
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/index.cjs.js +16 -10
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +46 -11
- package/dist/index.es.js +6321 -5715
- package/dist/index.es.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -99,7 +99,7 @@ declare interface AppShellProps extends React_2.HTMLAttributes<HTMLDivElement> {
|
|
|
99
99
|
|
|
100
100
|
export declare const AspectRatio: ForwardRefExoticComponent<AspectRatioPrimitive.AspectRatioProps & RefAttributes<HTMLDivElement>>;
|
|
101
101
|
|
|
102
|
-
export declare
|
|
102
|
+
export declare const AudioPlayer: React_2.ForwardRefExoticComponent<AudioPlayerProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
103
103
|
|
|
104
104
|
export declare interface AudioPlayerProps extends VariantProps<typeof audioPlayerVariants> {
|
|
105
105
|
src: string;
|
|
@@ -120,12 +120,13 @@ export declare interface AudioPlayerProps extends VariantProps<typeof audioPlaye
|
|
|
120
120
|
}
|
|
121
121
|
|
|
122
122
|
export declare const audioPlayerVariants: (props?: ({
|
|
123
|
+
variant?: "default" | "ghost" | "minimal" | null | undefined;
|
|
123
124
|
size?: "default" | "sm" | "lg" | null | undefined;
|
|
124
125
|
} & ClassProp) | undefined) => string;
|
|
125
126
|
|
|
126
|
-
export declare
|
|
127
|
+
export declare const AudioPlaylist: React_2.ForwardRefExoticComponent<AudioPlaylistProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
127
128
|
|
|
128
|
-
export declare interface AudioPlaylistProps {
|
|
129
|
+
export declare interface AudioPlaylistProps extends VariantProps<typeof audioPlaylistVariants> {
|
|
129
130
|
tracks: AudioTrack[];
|
|
130
131
|
showWaveform?: boolean;
|
|
131
132
|
defaultRepeatMode?: RepeatMode;
|
|
@@ -136,9 +137,13 @@ export declare interface AudioPlaylistProps {
|
|
|
136
137
|
className?: string;
|
|
137
138
|
}
|
|
138
139
|
|
|
139
|
-
export declare
|
|
140
|
+
export declare const audioPlaylistVariants: (props?: ({
|
|
141
|
+
variant?: "default" | "compact" | null | undefined;
|
|
142
|
+
} & ClassProp) | undefined) => string;
|
|
143
|
+
|
|
144
|
+
export declare const AudioRecorder: React_2.ForwardRefExoticComponent<AudioRecorderProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
140
145
|
|
|
141
|
-
export declare interface AudioRecorderProps {
|
|
146
|
+
export declare interface AudioRecorderProps extends VariantProps<typeof audioRecorderVariants> {
|
|
142
147
|
mimeType?: string;
|
|
143
148
|
maxDuration?: number;
|
|
144
149
|
showWaveform?: boolean;
|
|
@@ -148,6 +153,10 @@ export declare interface AudioRecorderProps {
|
|
|
148
153
|
className?: string;
|
|
149
154
|
}
|
|
150
155
|
|
|
156
|
+
export declare const audioRecorderVariants: (props?: ({
|
|
157
|
+
size?: "default" | "sm" | "lg" | null | undefined;
|
|
158
|
+
} & ClassProp) | undefined) => string;
|
|
159
|
+
|
|
151
160
|
export declare interface AudioTrack {
|
|
152
161
|
id: string;
|
|
153
162
|
src: string;
|
|
@@ -1053,7 +1062,7 @@ export declare interface ImageCompareProps extends React_2.HTMLAttributes<HTMLDi
|
|
|
1053
1062
|
onPositionChange?: (position: number) => void;
|
|
1054
1063
|
}
|
|
1055
1064
|
|
|
1056
|
-
export declare
|
|
1065
|
+
export declare const ImageCropper: React_2.ForwardRefExoticComponent<ImageCropperProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
1057
1066
|
|
|
1058
1067
|
export declare interface ImageCropperProps {
|
|
1059
1068
|
src: string;
|
|
@@ -1109,7 +1118,11 @@ export declare function Lead({ className, ...props }: LeadProps): JSX_2.Element;
|
|
|
1109
1118
|
export declare interface LeadProps extends React_2.HTMLAttributes<HTMLParagraphElement> {
|
|
1110
1119
|
}
|
|
1111
1120
|
|
|
1112
|
-
export declare function Lightbox({ images, open: controlledOpen, defaultIndex, onClose, onIndexChange, enableZoom, enableKeyboard, showCounter, showThumbnails, className, children, }: LightboxProps): JSX_2.Element | null;
|
|
1121
|
+
export declare function Lightbox({ images, open: controlledOpen, defaultIndex, onClose, onIndexChange, enableZoom, enableKeyboard, enableDownload, showCounter, showThumbnails, className, children, }: LightboxProps): JSX_2.Element | null;
|
|
1122
|
+
|
|
1123
|
+
export declare namespace Lightbox {
|
|
1124
|
+
var displayName: string;
|
|
1125
|
+
}
|
|
1113
1126
|
|
|
1114
1127
|
export declare interface LightboxImage {
|
|
1115
1128
|
src: string;
|
|
@@ -1126,9 +1139,9 @@ export declare interface LightboxProps {
|
|
|
1126
1139
|
onIndexChange?: (index: number) => void;
|
|
1127
1140
|
enableZoom?: boolean;
|
|
1128
1141
|
enableKeyboard?: boolean;
|
|
1142
|
+
enableDownload?: boolean;
|
|
1129
1143
|
showCounter?: boolean;
|
|
1130
1144
|
showThumbnails?: boolean;
|
|
1131
|
-
animationDuration?: number;
|
|
1132
1145
|
className?: string;
|
|
1133
1146
|
children?: React_2.ReactNode;
|
|
1134
1147
|
}
|
|
@@ -1365,12 +1378,15 @@ export declare interface NUILocale {
|
|
|
1365
1378
|
audioPlayer_seek: string;
|
|
1366
1379
|
audioPlayer_volume: string;
|
|
1367
1380
|
audioPlayer_error: string;
|
|
1381
|
+
audioPlayer_loading: string;
|
|
1368
1382
|
audioRecorder_startRecording: string;
|
|
1369
1383
|
audioRecorder_stopRecording: string;
|
|
1370
1384
|
audioRecorder_pauseRecording: string;
|
|
1371
1385
|
audioRecorder_resumeRecording: string;
|
|
1372
1386
|
audioRecorder_reRecord: string;
|
|
1373
1387
|
audioRecorder_microphoneAccess: string;
|
|
1388
|
+
audioRecorder_error: string;
|
|
1389
|
+
audioRecorder_permissionDenied: string;
|
|
1374
1390
|
audioWaveform_label: string;
|
|
1375
1391
|
audioWaveform_error: string;
|
|
1376
1392
|
audioPlaylist_shuffle: string;
|
|
@@ -1393,7 +1409,13 @@ export declare interface NUILocale {
|
|
|
1393
1409
|
videoPlayer_pictureInPicture: string;
|
|
1394
1410
|
videoPlayer_playbackSpeed: string;
|
|
1395
1411
|
videoPlayer_subtitles: string;
|
|
1412
|
+
videoPlayer_subtitlesOff: string;
|
|
1396
1413
|
videoPlayer_label: string;
|
|
1414
|
+
videoPlayer_loading: string;
|
|
1415
|
+
videoPlayer_error: string;
|
|
1416
|
+
videoPlayer_chapter: string;
|
|
1417
|
+
videoPlayer_skipForward: string;
|
|
1418
|
+
videoPlayer_skipBackward: string;
|
|
1397
1419
|
videoRecorder_startCamera: string;
|
|
1398
1420
|
videoRecorder_shareScreen: string;
|
|
1399
1421
|
videoRecorder_startRecording: string;
|
|
@@ -1403,6 +1425,8 @@ export declare interface NUILocale {
|
|
|
1403
1425
|
videoRecorder_reRecord: string;
|
|
1404
1426
|
videoRecorder_cameraPreview: string;
|
|
1405
1427
|
videoRecorder_screenPreview: string;
|
|
1428
|
+
videoRecorder_error: string;
|
|
1429
|
+
videoRecorder_permissionDenied: string;
|
|
1406
1430
|
/** Use {title} placeholder */
|
|
1407
1431
|
videoThumbnail_play: string;
|
|
1408
1432
|
videoGallery_label: string;
|
|
@@ -1414,6 +1438,7 @@ export declare interface NUILocale {
|
|
|
1414
1438
|
lightbox_zoomOut: string;
|
|
1415
1439
|
/** Use {current} and {total} placeholders */
|
|
1416
1440
|
lightbox_imageOf: string;
|
|
1441
|
+
lightbox_download: string;
|
|
1417
1442
|
imageCropper_label: string;
|
|
1418
1443
|
imageCropper_crop: string;
|
|
1419
1444
|
imageCropper_reset: string;
|
|
@@ -1908,6 +1933,11 @@ declare function useTranslate(): NUILocale;
|
|
|
1908
1933
|
export { useTranslate as useNUILocale }
|
|
1909
1934
|
export { useTranslate }
|
|
1910
1935
|
|
|
1936
|
+
export declare interface VideoChapter {
|
|
1937
|
+
time: number;
|
|
1938
|
+
title: string;
|
|
1939
|
+
}
|
|
1940
|
+
|
|
1911
1941
|
export declare const VideoGallery: React_2.ForwardRefExoticComponent<VideoGalleryProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
1912
1942
|
|
|
1913
1943
|
export declare interface VideoGalleryItem {
|
|
@@ -1933,9 +1963,9 @@ export declare interface VideoGalleryProps extends React_2.HTMLAttributes<HTMLDi
|
|
|
1933
1963
|
onVideoSelect?: (video: VideoGalleryItem, index: number) => void;
|
|
1934
1964
|
}
|
|
1935
1965
|
|
|
1936
|
-
export declare
|
|
1966
|
+
export declare const VideoPlayer: React_2.ForwardRefExoticComponent<VideoPlayerProps & React_2.RefAttributes<HTMLVideoElement>>;
|
|
1937
1967
|
|
|
1938
|
-
export declare interface VideoPlayerProps {
|
|
1968
|
+
export declare interface VideoPlayerProps extends VariantProps<typeof videoPlayerVariants> {
|
|
1939
1969
|
src: string;
|
|
1940
1970
|
poster?: string;
|
|
1941
1971
|
showControls?: boolean;
|
|
@@ -1945,6 +1975,7 @@ export declare interface VideoPlayerProps {
|
|
|
1945
1975
|
enablePlaybackRate?: boolean;
|
|
1946
1976
|
playbackRates?: number[];
|
|
1947
1977
|
tracks?: VideoTrack[];
|
|
1978
|
+
chapters?: VideoChapter[];
|
|
1948
1979
|
aspectRatio?: string;
|
|
1949
1980
|
autoPlay?: boolean;
|
|
1950
1981
|
loop?: boolean;
|
|
@@ -1958,7 +1989,11 @@ export declare interface VideoPlayerProps {
|
|
|
1958
1989
|
className?: string;
|
|
1959
1990
|
}
|
|
1960
1991
|
|
|
1961
|
-
export declare
|
|
1992
|
+
export declare const videoPlayerVariants: (props?: ({
|
|
1993
|
+
size?: "default" | "sm" | "lg" | null | undefined;
|
|
1994
|
+
} & ClassProp) | undefined) => string;
|
|
1995
|
+
|
|
1996
|
+
export declare const VideoRecorder: React_2.ForwardRefExoticComponent<VideoRecorderProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
1962
1997
|
|
|
1963
1998
|
export declare interface VideoRecorderProps {
|
|
1964
1999
|
source?: "camera" | "screen";
|