|
1
|
/** |
|
2
|
* Public component exports for `@medusajs/dashboard/components`. |
|
3
|
*/ |
|
4
|
|
|
5
|
import { |
|
6
|
Layouts, |
|
7
|
CUSTOMIZE_IDS, |
|
8
|
LayoutComposer as LayoutComposerImpl, |
|
9
|
LayoutComposerProps as LayoutComposerPropsImpl, |
|
10
|
LayoutEntry, |
|
11
|
} from "../components/layout-composer" |
|
12
|
|
|
13
|
type LayoutComposerProps<TLayoutId extends Layouts, TData> = Omit< |
|
14
|
LayoutComposerPropsImpl<TLayoutId, TData>, |
|
15
|
"customizeId" | "controlSize" |
|
16
|
> |
|
17
|
const LayoutComposerRoot = <TLayoutId extends Layouts, TData>({ |
|
18
|
widgetsZonePrefix, |
|
19
|
preferredLayoutId, |
|
20
|
sections, |
|
21
|
data, |
|
22
|
hasOutlet = true, |
|
23
|
disableWidgets = false, |
|
24
|
}: LayoutComposerProps<TLayoutId, TData>) => { |
|
25
|
return ( |
|
26
|
<LayoutComposerImpl |
|
27
|
widgetsZonePrefix={widgetsZonePrefix} |
|
28
|
preferredLayoutId={preferredLayoutId} |
|
29
|
sections={sections} |
|
30
|
data={data} |
|
31
|
hasOutlet={hasOutlet} |
|
32
|
customizeId={CUSTOMIZE_IDS.PAGE} |
|
33
|
controlSize="default" |
|
34
|
disableWidgets={disableWidgets} |
|
35
|
/> |
|
36
|
) |
|
37
|
} |
|
38
|
|
|
39
|
export const LayoutComposer = Object.assign(LayoutComposerRoot, { |
|
40
|
Entry: LayoutEntry, |
|
41
|
}) |
|
42
|
|
|
43
|
export type { LayoutComponentProps } from "../components/layout-composer/types" |
|
44
|
|
|
45
|
export { |
|
46
|
ConfigurableDataTable, |
|
47
|
type ConfigurableDataTableProps, |
|
48
|
} from "../components/table/configurable-data-table/configurable-data-table" |
|
49
|
|
|
50
|
export { ActionMenu } from "../components/common/action-menu" |
|
51
|
export type { |
|
52
|
Action, |
|
53
|
ActionGroup, |
|
54
|
ActionMenuProps, |
|
55
|
} from "../components/common/action-menu" |
|
56
|
|
|
57
|
export { ConditionalTooltip } from "../components/common/conditional-tooltip" |
|
58
|
export { default as DisplayId } from "../components/common/display-id/display-id" |
|
59
|
export { Form } from "../components/common/form" |
|
60
|
export { IconAvatar } from "../components/common/icon-avatar" |
|
61
|
export { JsonViewSection } from "../components/common/json-view-section" |
|
62
|
export { Listicle, type ListicleProps } from "../components/common/listicle" |
|
63
|
export { |
|
64
|
NoRecords, |
|
65
|
NoResults, |
|
66
|
type NoResultsProps, |
|
67
|
} from "../components/common/empty-table-content" |
|
68
|
export { SectionRow, type SectionRowProps } from "../components/common/section" |
|
69
|
export { |
|
70
|
SidebarLink, |
|
71
|
type SidebarLinkProps, |
|
72
|
} from "../components/common/sidebar-link/sidebar-link" |
|
73
|
export { Thumbnail } from "../components/common/thumbnail" |
|
74
|
export { KeyboundForm } from "../components/utilities/keybound-form" |
|
75
|
|
|
76
|
export { Combobox } from "../components/inputs/combobox" |
|
77
|
export { CountrySelect } from "../components/inputs/country-select" |
|
78
|
export { HandleInput } from "../components/inputs/handle-input" |
|
79
|
|
|
80
|
export { |
|
81
|
DataTable, |
|
82
|
type DataTableProps, |
|
83
|
} from "../components/data-table/data-table" |
|
84
|
|
|
85
|
export { DataGrid, type DataGridProps } from "../components/data-grid/data-grid" |
|
86
|
export { |
|
87
|
createDataGridHelper, |
|
88
|
createDataGridPriceColumns, |
|
89
|
} from "../components/data-grid/helpers" |
|
90
|
|
|
91
|
export { |
|
92
|
ProductCell, |
|
93
|
ProductHeader, |
|
94
|
} from "../components/table/table-cells/product/product-cell" |
|
95
|
export { |
|
96
|
ProductStatusCell, |
|
97
|
ProductStatusHeader, |
|
98
|
} from "../components/table/table-cells/product/product-status-cell" |
|
99
|
export { |
|
100
|
SalesChannelHeader, |
|
101
|
SalesChannelsCell, |
|
102
|
} from "../components/table/table-cells/product/sales-channels-cell" |
|
103
|
export { |
|
104
|
VariantCell, |
|
105
|
VariantHeader, |
|
106
|
} from "../components/table/table-cells/product/variant-cell" |
|
107
|
|
|
108
|
export { |
|
109
|
RouteDrawer, |
|
110
|
RouteFocusModal, |
|
111
|
StackedDrawer, |
|
112
|
StackedFocusModal, |
|
113
|
useRouteModal, |
|
114
|
useStackedModal, |
|
115
|
} from "../components/modals" |