@kwiz/fluentui
Version:
KWIZ common controls for FluentUI
69 lines (68 loc) • 2.65 kB
TypeScript
import React from "react";
export type iKWIZFluentStringValueType = (options?: {
cap?: boolean;
param?: string | number | Date;
context?: string;
}) => string;
export interface iKWIZFluentContext {
/**
* Where the portal children are mounted on DOM
*
* @default a new element on document.body without any styling
*/
mountNode?: HTMLElement | null | {
element?: HTMLElement | null;
className?: string;
};
/**
* Controls the colors and borders of the input.
*
* @default 'underline'
*/
inputAppearance?: 'outline' | 'underline' | 'filled-darker' | 'filled-lighter';
/**
* A button can be rounded, circular, or square.
*
* @default 'rounded'
*/
buttonShape?: 'rounded' | 'circular' | 'square';
/** true if using dark theme */
dark?: boolean;
/** RTL (or, pass strings.dir()==="rtl") */
isRtl?: boolean;
strings?: {
btn_next?: iKWIZFluentStringValueType;
btn_previous?: iKWIZFluentStringValueType;
btn_tokens?: iKWIZFluentStringValueType;
btn_save?: iKWIZFluentStringValueType;
btn_ok?: iKWIZFluentStringValueType;
btn_cancel?: iKWIZFluentStringValueType;
btn_close?: iKWIZFluentStringValueType;
btn_clear?: iKWIZFluentStringValueType;
btn_remove?: iKWIZFluentStringValueType;
btn_open_param?: iKWIZFluentStringValueType;
btn_edit_param?: iKWIZFluentStringValueType;
btn_edit?: iKWIZFluentStringValueType;
gallery?: iKWIZFluentStringValueType;
btn_more_dots?: iKWIZFluentStringValueType;
color_picker?: iKWIZFluentStringValueType;
choose_color?: iKWIZFluentStringValueType;
placeholder_input?: iKWIZFluentStringValueType;
drop_or_select_file?: iKWIZFluentStringValueType;
drop_or_select_files?: iKWIZFluentStringValueType;
more_param?: iKWIZFluentStringValueType;
items?: iKWIZFluentStringValueType;
dir?: iKWIZFluentStringValueType;
prompt_wait?: iKWIZFluentStringValueType;
validation_invalid?: iKWIZFluentStringValueType;
lbl_value?: iKWIZFluentStringValueType;
lbl_text?: iKWIZFluentStringValueType;
confirm_remove?: iKWIZFluentStringValueType;
add_custom?: iKWIZFluentStringValueType;
option?: iKWIZFluentStringValueType;
options?: iKWIZFluentStringValueType;
prompt_unsaved_changes?: iKWIZFluentStringValueType;
error_cannot_save_changes?: iKWIZFluentStringValueType;
};
}
export declare const KWIZFluentContext: React.Context<iKWIZFluentContext>;