/** * Copyright (c) 2020-present, Goldman Sachs * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /// declare type ClickActionType = 'add' | 'modify'; /** * This component is used as placeholder for empty panel, which represents an unset/empty value of something. * If this value is of multiple values (i.e. a an empty list), the most common operation to interact * with a list is `add`, otherwise use `modify`. * * When the the value is editable, supposed this is a list value, the placeholder can be interacted with in 2 ways: * 1. clicking on this placeholder to add a new item, * 2. (optional) or, dropping some material to create a new item and add it to the list * * When the value is read-only, show a placeholder to let user know the value is empty/blank/unset */ export declare const BlankPanelPlaceholder: React.FC<{ /** * Placeholder text is similar to what we would put in text input, e.g. `Choose a file` * This should be in `Sentence case` and should have ellipses when it can potentially require more user actions */ placeholderText: string; /** * Possible values are `add` for list-type value and `modify` for single value */ clickActionType?: ClickActionType; onClick?: () => void; /** * The tooltip text for the add/drop zone */ tooltipText: string; dndProps?: { canDrop: boolean; isDragOver: boolean; }; readOnlyProps?: { placeholderText: string; }; }>; export {}; //# sourceMappingURL=BlankPanelPlaceholder.d.ts.map