@northlight/ui 2.17.0 → 2.18.1
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/es/northlight.d.ts +10 -6
- package/dist/es/northlight.js +2051 -1832
- package/dist/es/northlight.js.map +1 -1
- package/dist/umd/northlight.cjs +2051 -1832
- package/dist/umd/northlight.cjs.map +1 -1
- package/dist/umd/northlight.min.cjs +3 -3
- package/dist/umd/northlight.min.cjs.map +1 -1
- package/package.json +3 -3
package/dist/es/northlight.d.ts
CHANGED
|
@@ -483,7 +483,7 @@ type ButtonProps = Omit<ButtonProps$1, 'as' | 'size'> & {
|
|
|
483
483
|
* @example (Example)
|
|
484
484
|
* (?
|
|
485
485
|
* +
|
|
486
|
-
* const variants = ['link', 'success', 'default', 'danger', 'brand', 'ghost']
|
|
486
|
+
* const variants = ['link', 'success', 'default', 'danger', 'brand', 'ghost', 'ai']
|
|
487
487
|
*
|
|
488
488
|
* const ExampleButton = () => {
|
|
489
489
|
* const [currentVariant, setCurrentVariant ] = useState(0)
|
|
@@ -492,7 +492,7 @@ type ButtonProps = Omit<ButtonProps$1, 'as' | 'size'> & {
|
|
|
492
492
|
* const handleClick = () => {
|
|
493
493
|
* setIsLoading(true)
|
|
494
494
|
* setTimeout(() => {
|
|
495
|
-
* setCurrentVariant((prev) => prev ===
|
|
495
|
+
* setCurrentVariant((prev) => prev === variants.length - 1 ? 0 : prev + 1)
|
|
496
496
|
* setIsLoading(false)
|
|
497
497
|
* }, 300)
|
|
498
498
|
*
|
|
@@ -1031,6 +1031,7 @@ interface IntentButtonProps {
|
|
|
1031
1031
|
onTimeout?: () => void;
|
|
1032
1032
|
tooltipText?: string;
|
|
1033
1033
|
'aria-label'?: string;
|
|
1034
|
+
ringColor?: string;
|
|
1034
1035
|
}
|
|
1035
1036
|
|
|
1036
1037
|
/**
|
|
@@ -1062,7 +1063,7 @@ interface IntentButtonProps {
|
|
|
1062
1063
|
*?)
|
|
1063
1064
|
*
|
|
1064
1065
|
*/
|
|
1065
|
-
declare const IntentButton: ({ icon, timeout, onTimeout, tooltipText, "aria-label": ariaLabel, }: IntentButtonProps) => JSX.Element;
|
|
1066
|
+
declare const IntentButton: ({ icon, timeout, ringColor, onTimeout, tooltipText, "aria-label": ariaLabel, }: IntentButtonProps) => JSX.Element;
|
|
1066
1067
|
|
|
1067
1068
|
interface ToolboxProps extends Omit<FlexProps, 'direction'> {
|
|
1068
1069
|
isResizable?: boolean;
|
|
@@ -2106,6 +2107,7 @@ interface FilePickerProps {
|
|
|
2106
2107
|
maxFileSize?: number;
|
|
2107
2108
|
value?: string | null;
|
|
2108
2109
|
loadWithSpinner?: boolean;
|
|
2110
|
+
variant?: 'ai';
|
|
2109
2111
|
/** Will upon a popup modal for the user to click another button to triggr delte callback */
|
|
2110
2112
|
confirmDelete?: boolean;
|
|
2111
2113
|
editFileOptions?: EditFileOptionsType;
|
|
@@ -2131,9 +2133,11 @@ interface MultiFilePickerProps<T extends FileFormat> extends Omit<FilePickerProp
|
|
|
2131
2133
|
enablePreLoad?: boolean;
|
|
2132
2134
|
enableSmartLoad?: boolean;
|
|
2133
2135
|
confirmDelete?: boolean;
|
|
2136
|
+
variant?: 'ai';
|
|
2134
2137
|
}
|
|
2135
2138
|
interface MultiFileUploaderProps<T extends FileFormat> {
|
|
2136
2139
|
/** Ex: acceptFormat="'acceptFormat="video/*, .jpg" */
|
|
2140
|
+
variant?: 'ai';
|
|
2137
2141
|
acceptFormat?: string;
|
|
2138
2142
|
compression?: CompressionType;
|
|
2139
2143
|
maxFileSize?: number;
|
|
@@ -2191,7 +2195,7 @@ interface FileIconButtonProps extends Omit<IconButtonProps$1, 'icon' | 'ButtonVa
|
|
|
2191
2195
|
*
|
|
2192
2196
|
*
|
|
2193
2197
|
*/
|
|
2194
|
-
declare const FilePicker: ({ acceptFormat, onChange, compression, uploaded: uploadedInitial, maxFileSize, showProgress, value, loadWithSpinner, confirmDelete, editFileOptions, }: FilePickerProps) => JSX.Element;
|
|
2198
|
+
declare const FilePicker: ({ acceptFormat, onChange, compression, uploaded: uploadedInitial, maxFileSize, showProgress, value, loadWithSpinner, confirmDelete, editFileOptions, ...rest }: FilePickerProps) => JSX.Element;
|
|
2195
2199
|
|
|
2196
2200
|
/**
|
|
2197
2201
|
* The file picker component wrapped in a <Field />
|
|
@@ -2249,7 +2253,7 @@ declare const FilePickerField: ({ name, label, direction, isRequired, validate,
|
|
|
2249
2253
|
* ?)
|
|
2250
2254
|
*
|
|
2251
2255
|
*/
|
|
2252
|
-
declare function MultiFileUploader<T extends FileFormat>({ acceptFormat, compression, onChange, addFilesToQueue, updatePreviewFiles, maxFileSize, }: MultiFileUploaderProps<T>): JSX.Element;
|
|
2256
|
+
declare function MultiFileUploader<T extends FileFormat>({ acceptFormat, compression, onChange, addFilesToQueue, updatePreviewFiles, maxFileSize, ...rest }: MultiFileUploaderProps<T>): JSX.Element;
|
|
2253
2257
|
|
|
2254
2258
|
/**
|
|
2255
2259
|
* Lets user import file of any type as Javascript File Object
|
|
@@ -2264,7 +2268,7 @@ declare function MultiFileUploader<T extends FileFormat>({ acceptFormat, compres
|
|
|
2264
2268
|
*
|
|
2265
2269
|
*
|
|
2266
2270
|
*/
|
|
2267
|
-
declare function MultiFilePicker<T extends FileFormat>({ acceptFormat, compression, onChange, files, uploadingFiles, deleteFile, confirmDelete, maxFileSize, enablePreLoad, enableSmartLoad, editFileOptions, }: MultiFilePickerProps<T>): JSX.Element;
|
|
2271
|
+
declare function MultiFilePicker<T extends FileFormat>({ acceptFormat, compression, onChange, files, uploadingFiles, deleteFile, confirmDelete, maxFileSize, enablePreLoad, enableSmartLoad, editFileOptions, variant, }: MultiFilePickerProps<T>): JSX.Element;
|
|
2268
2272
|
|
|
2269
2273
|
/**
|
|
2270
2274
|
* Show list of files, their uploading progress as well as options to edit/delete them
|