mirror of
https://github.com/utopia-os/utopia-ui.git
synced 2025-12-13 07:46:10 +00:00
* Refactor Layer and its subcomponents, replacing cloneElement by context * Add showcase for PopupButton template component * Templateify exported elements (WIP) * Remove unused file * Export templateified PopupStartEndInput * Fix template component type * Change folder structure * Lower test coverage * changed export name * Refactor PopupForm and PopupView * More refactoring * Add provider for PopupFormContext * Fix popupform title * Add comments * Use correct ItemFormPopup for new items * Fix linting * Reduce coverage * Change tailwind prefix * Fix type --------- Co-authored-by: Anton Tranelis <mail@antontranelis.de> Co-authored-by: Anton Tranelis <31516529+antontranelis@users.noreply.github.com>
30 lines
687 B
TypeScript
30 lines
687 B
TypeScript
import type { Item } from './Item'
|
|
import type { ItemsApi } from './ItemsApi'
|
|
import type { ItemType } from './ItemType'
|
|
import type { MarkerIcon } from './MarkerIcon'
|
|
|
|
/**
|
|
* @category Types
|
|
*/
|
|
export interface LayerProps {
|
|
id?: string
|
|
data?: Item[]
|
|
children?: React.ReactNode
|
|
name: string
|
|
menuIcon: string
|
|
menuColor: string
|
|
menuText: string
|
|
markerIcon: MarkerIcon
|
|
markerShape: string
|
|
markerDefaultColor: string
|
|
markerDefaultColor2?: string
|
|
api?: ItemsApi<Item>
|
|
itemType: ItemType
|
|
userProfileLayer?: boolean
|
|
customEditLink?: string
|
|
customEditParameter?: string
|
|
public_edit_items?: boolean
|
|
listed?: boolean
|
|
item_presets?: Record<string, unknown>
|
|
}
|