@webiny/ui 6.0.0-alpha.5 → 6.0.0-rc.0
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/Accordion/Accordion.d.ts +2 -2
- package/Accordion/Accordion.js.map +1 -1
- package/Accordion/AccordionItem.d.ts +24 -24
- package/Accordion/AccordionItem.js +1 -1
- package/Accordion/AccordionItem.js.map +1 -1
- package/Accordion/AccordionItemActions.js +2 -2
- package/Accordion/AccordionItemActions.js.map +1 -1
- package/Accordion/index.d.ts +2 -2
- package/Accordion/index.js +2 -2
- package/Accordion/index.js.map +1 -1
- package/Alert/index.d.ts +1 -1
- package/Alert/index.js +1 -1
- package/Alert/index.js.map +1 -1
- package/AutoComplete/AutoComplete.d.ts +1 -1
- package/AutoComplete/AutoComplete.js.map +1 -1
- package/AutoComplete/MultiAutoComplete.d.ts +1 -1
- package/AutoComplete/MultiAutoComplete.js.map +1 -1
- package/AutoComplete/index.d.ts +2 -2
- package/AutoComplete/index.js +2 -2
- package/AutoComplete/index.js.map +1 -1
- package/AutoComplete/types.d.ts +6 -2
- package/AutoComplete/types.js.map +1 -1
- package/Avatar/index.d.ts +1 -1
- package/Avatar/index.js +1 -1
- package/Avatar/index.js.map +1 -1
- package/Button/Button.js +2 -2
- package/Button/Button.js.map +1 -1
- package/Button/ButtonDefault.d.ts +1 -1
- package/Button/ButtonDefault.js +1 -1
- package/Button/ButtonDefault.js.map +1 -1
- package/Button/ButtonFloating.d.ts +1 -1
- package/Button/ButtonFloating.js +1 -1
- package/Button/ButtonFloating.js.map +1 -1
- package/Button/ButtonIcon.js +1 -1
- package/Button/ButtonIcon.js.map +1 -1
- package/Button/ButtonPrimary.d.ts +1 -1
- package/Button/ButtonPrimary.js +1 -1
- package/Button/ButtonPrimary.js.map +1 -1
- package/Button/ButtonSecondary.d.ts +1 -1
- package/Button/ButtonSecondary.js +1 -1
- package/Button/ButtonSecondary.js.map +1 -1
- package/Button/IconButton.d.ts +1 -1
- package/Button/IconButton.js +1 -1
- package/Button/IconButton.js.map +1 -1
- package/Button/index.d.ts +8 -8
- package/Button/index.js +8 -8
- package/Button/index.js.map +1 -1
- package/Button/useMappedButtonProps.d.ts +3 -4
- package/Button/useMappedButtonProps.js +1 -1
- package/Button/useMappedButtonProps.js.map +1 -1
- package/Carousel/index.d.ts +1 -1
- package/Carousel/index.js +1 -1
- package/Carousel/index.js.map +1 -1
- package/Checkbox/Checkbox.d.ts +1 -1
- package/Checkbox/Checkbox.js.map +1 -1
- package/Checkbox/CheckboxGroup.d.ts +1 -1
- package/Checkbox/CheckboxGroup.js.map +1 -1
- package/Checkbox/index.d.ts +2 -2
- package/Checkbox/index.js +2 -2
- package/Checkbox/index.js.map +1 -1
- package/Chips/Chip.js +1 -1
- package/Chips/Chip.js.map +1 -1
- package/Chips/Chips.d.ts +1 -1
- package/Chips/Chips.js +1 -1
- package/Chips/Chips.js.map +1 -1
- package/Chips/index.d.ts +2 -2
- package/Chips/index.js +2 -2
- package/Chips/index.js.map +1 -1
- package/CodeEditor/CodeEditor.d.ts +1 -1
- package/CodeEditor/CodeEditor.js.map +1 -1
- package/CodeEditor/index.d.ts +1 -1
- package/CodeEditor/index.js +1 -1
- package/CodeEditor/index.js.map +1 -1
- package/ColorPicker/ColorPicker.d.ts +1 -1
- package/ColorPicker/ColorPicker.js.map +1 -1
- package/ColorPicker/index.d.ts +1 -1
- package/ColorPicker/index.js +1 -1
- package/ColorPicker/index.js.map +1 -1
- package/ConfirmationDialog/ConfirmationDialog.js +3 -3
- package/ConfirmationDialog/ConfirmationDialog.js.map +1 -1
- package/ConfirmationDialog/index.d.ts +2 -2
- package/ConfirmationDialog/index.js +2 -2
- package/ConfirmationDialog/index.js.map +1 -1
- package/ConfirmationDialog/withConfirmation.js +1 -1
- package/ConfirmationDialog/withConfirmation.js.map +1 -1
- package/DataTable/index.d.ts +1 -1
- package/DataTable/index.js +1 -1
- package/DataTable/index.js.map +1 -1
- package/DateTime/index.d.ts +1 -1
- package/DateTime/index.js +1 -1
- package/DateTime/index.js.map +1 -1
- package/Dialog/Dialog.js +4 -4
- package/Dialog/Dialog.js.map +1 -1
- package/Dialog/index.d.ts +1 -1
- package/Dialog/index.js +1 -1
- package/Dialog/index.js.map +1 -1
- package/Drawer/Drawer.js +1 -1
- package/Drawer/Drawer.js.map +1 -1
- package/Drawer/index.d.ts +1 -1
- package/Drawer/index.js +1 -1
- package/Drawer/index.js.map +1 -1
- package/Elevation/Elevation.js +1 -1
- package/Elevation/Elevation.js.map +1 -1
- package/Elevation/index.d.ts +1 -1
- package/Elevation/index.js +1 -1
- package/Elevation/index.js.map +1 -1
- package/FormElementMessage/index.d.ts +1 -1
- package/FormElementMessage/index.js +1 -1
- package/FormElementMessage/index.js.map +1 -1
- package/FullName/index.d.ts +1 -1
- package/FullName/index.js +1 -1
- package/FullName/index.js.map +1 -1
- package/Grid/Grid.js +1 -1
- package/Grid/Grid.js.map +1 -1
- package/Grid/index.d.ts +1 -1
- package/Grid/index.js +1 -1
- package/Grid/index.js.map +1 -1
- package/Helpers/index.d.ts +1 -1
- package/Helpers/index.js +1 -1
- package/Helpers/index.js.map +1 -1
- package/Icon/Icon.js +1 -1
- package/Icon/Icon.js.map +1 -1
- package/Icon/index.d.ts +1 -1
- package/Icon/index.js +1 -1
- package/Icon/index.js.map +1 -1
- package/ImageEditor/index.d.ts +1 -1
- package/ImageEditor/index.js +1 -1
- package/ImageEditor/index.js.map +1 -1
- package/ImageUpload/ImageEditorDialog.d.ts +1 -1
- package/ImageUpload/ImageEditorDialog.js.map +1 -1
- package/ImageUpload/MultiImageUpload.d.ts +1 -1
- package/ImageUpload/MultiImageUpload.js.map +1 -1
- package/ImageUpload/SingleImageUpload.d.ts +1 -1
- package/ImageUpload/SingleImageUpload.js.map +1 -1
- package/ImageUpload/index.d.ts +4 -4
- package/ImageUpload/index.js +4 -4
- package/ImageUpload/index.js.map +1 -1
- package/Input/Input.d.ts +1 -1
- package/Input/Input.js +1 -1
- package/Input/Input.js.map +1 -1
- package/Input/index.d.ts +1 -1
- package/Input/index.js +1 -1
- package/Input/index.js.map +1 -1
- package/List/DataList/DataList.d.ts +2 -2
- package/List/DataList/DataList.js.map +1 -1
- package/List/DataList/DataListModalOverlay/index.d.ts +2 -3
- package/List/DataList/DataListWithSections.d.ts +3 -3
- package/List/DataList/DataListWithSections.js.map +1 -1
- package/List/DataList/icons/index.d.ts +1 -1
- package/List/DataList/icons/index.js +1 -1
- package/List/DataList/icons/index.js.map +1 -1
- package/List/DataList/index.d.ts +3 -3
- package/List/DataList/index.js +3 -3
- package/List/DataList/index.js.map +1 -1
- package/List/DataList/types.d.ts +1 -1
- package/List/DataList/types.js +1 -1
- package/List/DataList/types.js.map +1 -1
- package/List/List/ListItemAction.js +1 -1
- package/List/List/ListItemAction.js.map +1 -1
- package/List/List/ListItemGraphic.js +1 -1
- package/List/List/ListItemGraphic.js.map +1 -1
- package/List/List/ListItemText.js +1 -1
- package/List/List/ListItemText.js.map +1 -1
- package/List/List/index.d.ts +6 -6
- package/List/List/index.js +6 -6
- package/List/List/index.js.map +1 -1
- package/List/index.d.ts +4 -4
- package/List/index.js +4 -4
- package/List/index.js.map +1 -1
- package/Menu/Menu.js +8 -5
- package/Menu/Menu.js.map +1 -1
- package/Menu/index.d.ts +1 -1
- package/Menu/index.js +1 -1
- package/Menu/index.js.map +1 -1
- package/Mosaic/index.d.ts +1 -1
- package/Mosaic/index.js +1 -1
- package/Mosaic/index.js.map +1 -1
- package/Progress/index.d.ts +1 -1
- package/Progress/index.js +1 -1
- package/Progress/index.js.map +1 -1
- package/README.md +6 -21
- package/Radio/Radio.d.ts +1 -1
- package/Radio/Radio.js +1 -1
- package/Radio/Radio.js.map +1 -1
- package/Radio/RadioGroup.d.ts +1 -1
- package/Radio/RadioGroup.js.map +1 -1
- package/Radio/index.d.ts +2 -2
- package/Radio/index.js +2 -2
- package/Radio/index.js.map +1 -1
- package/Ripple/index.d.ts +1 -1
- package/Ripple/index.js +1 -1
- package/Ripple/index.js.map +1 -1
- package/Scrollbar/index.d.ts +1 -1
- package/Scrollbar/index.js +1 -1
- package/Scrollbar/index.js.map +1 -1
- package/Select/Select.d.ts +1 -1
- package/Select/Select.js.map +1 -1
- package/Select/index.d.ts +1 -1
- package/Select/index.js +1 -1
- package/Select/index.js.map +1 -1
- package/Skeleton/index.d.ts +1 -1
- package/Skeleton/index.js +1 -1
- package/Skeleton/index.js.map +1 -1
- package/Slider/Slider.d.ts +1 -1
- package/Slider/Slider.js +1 -1
- package/Slider/Slider.js.map +1 -1
- package/Slider/index.d.ts +1 -1
- package/Slider/index.js +1 -1
- package/Slider/index.js.map +1 -1
- package/Snackbar/index.d.ts +1 -1
- package/Snackbar/index.js +1 -1
- package/Snackbar/index.js.map +1 -1
- package/Switch/Switch.d.ts +1 -1
- package/Switch/Switch.js.map +1 -1
- package/Switch/index.d.ts +1 -1
- package/Switch/index.js +1 -1
- package/Switch/index.js.map +1 -1
- package/Tabs/Tab.js +2 -2
- package/Tabs/Tab.js.map +1 -1
- package/Tabs/Tabs.d.ts +1 -1
- package/Tabs/Tabs.js.map +1 -1
- package/Tabs/index.d.ts +2 -2
- package/Tabs/index.js +2 -2
- package/Tabs/index.js.map +1 -1
- package/Tags/Tags.d.ts +1 -1
- package/Tags/Tags.js.map +1 -1
- package/Tags/index.d.ts +1 -1
- package/Tags/index.js +1 -1
- package/Tags/index.js.map +1 -1
- package/Tooltip/index.d.ts +1 -1
- package/Tooltip/index.js +1 -1
- package/Tooltip/index.js.map +1 -1
- package/TopAppBar/TopAppBar.js +6 -2
- package/TopAppBar/TopAppBar.js.map +1 -1
- package/TopAppBar/TopAppBarPrimary.d.ts +1 -1
- package/TopAppBar/TopAppBarPrimary.js +1 -1
- package/TopAppBar/TopAppBarPrimary.js.map +1 -1
- package/TopAppBar/TopAppBarSecondary.d.ts +1 -1
- package/TopAppBar/TopAppBarSecondary.js +1 -1
- package/TopAppBar/TopAppBarSecondary.js.map +1 -1
- package/TopAppBar/index.d.ts +7 -7
- package/TopAppBar/index.js +7 -7
- package/TopAppBar/index.js.map +1 -1
- package/Typography/index.d.ts +1 -1
- package/Typography/index.js +1 -1
- package/Typography/index.js.map +1 -1
- package/package.json +13 -23
- package/RichTextEditor/RichTextEditor.d.ts +0 -12
- package/RichTextEditor/RichTextEditor.js +0 -17
- package/RichTextEditor/RichTextEditor.js.map +0 -1
- package/RichTextEditor/index.d.ts +0 -4
- package/RichTextEditor/index.js +0 -4
- package/RichTextEditor/index.js.map +0 -1
- package/Tabs/README.md +0 -19
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","cn","Elevation","className","props","createElement","Object","assign","children","displayName"],"sources":["Elevation.tsx"],"sourcesContent":["import React from \"react\";\nimport { cn } from \"@webiny/admin-ui\";\n\nexport type ElevationProps = {\n // Any element that needs to be highlighted.\n children?: React.ReactNode;\n\n // Increasing this number (from 0 to 24) will increase the amount of shadow applied.\n z: number;\n\n // Adds smooth transitions when the z value changes.\n transition?: boolean;\n\n // CSS class name\n className?: string;\n\n // Style object\n style?: React.CSSProperties;\n};\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please use the `Card` component from the `@webiny/admin-ui` package instead.\n */\nconst Elevation = ({ className, ...props }: ElevationProps) => {\n return (\n <div {...props} className={cn(\"
|
|
1
|
+
{"version":3,"names":["React","cn","Elevation","className","props","createElement","Object","assign","children","displayName"],"sources":["Elevation.tsx"],"sourcesContent":["import React from \"react\";\nimport { cn } from \"@webiny/admin-ui\";\n\nexport type ElevationProps = {\n // Any element that needs to be highlighted.\n children?: React.ReactNode;\n\n // Increasing this number (from 0 to 24) will increase the amount of shadow applied.\n z: number;\n\n // Adds smooth transitions when the z value changes.\n transition?: boolean;\n\n // CSS class name\n className?: string;\n\n // Style object\n style?: React.CSSProperties;\n};\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please use the `Card` component from the `@webiny/admin-ui` package instead.\n */\nconst Elevation = ({ className, ...props }: ElevationProps) => {\n return (\n <div {...props} className={cn(\"bg-white shadow-md p-4\", className)}>\n {props.children}\n </div>\n );\n};\n\nElevation.displayName = \"Elevation\";\n\nexport { Elevation };\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,EAAE,QAAQ,kBAAkB;AAmBrC;AACA;AACA;AACA;AACA,MAAMC,SAAS,GAAGA,CAAC;EAAEC,SAAS;EAAE,GAAGC;AAAsB,CAAC,KAAK;EAC3D,oBACIJ,KAAA,CAAAK,aAAA,QAAAC,MAAA,CAAAC,MAAA,KAASH,KAAK;IAAED,SAAS,EAAEF,EAAE,CAAC,wBAAwB,EAAEE,SAAS;EAAE,IAC9DC,KAAK,CAACI,QACN,CAAC;AAEd,CAAC;AAEDN,SAAS,CAACO,WAAW,GAAG,WAAW;AAEnC,SAASP,SAAS","ignoreList":[]}
|
package/Elevation/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./Elevation";
|
|
1
|
+
export * from "./Elevation.js";
|
package/Elevation/index.js
CHANGED
package/Elevation/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./Elevation\";\n"],"mappings":"AAAA","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./Elevation.js\";\n"],"mappings":"AAAA","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { FormElementMessage } from "./FormElementMessage";
|
|
1
|
+
export { FormElementMessage } from "./FormElementMessage.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["FormElementMessage"],"sources":["index.ts"],"sourcesContent":["export { FormElementMessage } from \"./FormElementMessage\";\n"],"mappings":"AAAA,SAASA,kBAAkB","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["FormElementMessage"],"sources":["index.ts"],"sourcesContent":["export { FormElementMessage } from \"./FormElementMessage.js\";\n"],"mappings":"AAAA,SAASA,kBAAkB","ignoreList":[]}
|
package/FullName/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./FullName";
|
|
1
|
+
export * from "./FullName.js";
|
package/FullName/index.js
CHANGED
package/FullName/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./FullName\";\n"],"mappings":"AAAA","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./FullName.js\";\n"],"mappings":"AAAA","ignoreList":[]}
|
package/Grid/Grid.js
CHANGED
|
@@ -25,7 +25,7 @@ export const GridInner = ({
|
|
|
25
25
|
...props
|
|
26
26
|
}) => {
|
|
27
27
|
return /*#__PURE__*/React.createElement("div", Object.assign({}, props, {
|
|
28
|
-
className: cn("
|
|
28
|
+
className: cn("grid grid-cols-12 gap-6 m-0 flex flex-wrap items-stretch", className)
|
|
29
29
|
}), props.children);
|
|
30
30
|
};
|
|
31
31
|
GridInner.displayName = "GridInner";
|
package/Grid/Grid.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","cn","Grid","AdminUiGrid","Cell","props","children","style","className","align","createElement","Column","span","GridInner","Object","assign","displayName"],"sources":["Grid.tsx"],"sourcesContent":["import type { CSSProperties } from \"react\";\nimport React from \"react\";\nimport cn from \"classnames\";\nimport type { ColumnProps as AdminUiColumnProps } from \"@webiny/admin-ui\";\nimport { Grid as AdminUiGrid } from \"@webiny/admin-ui\";\n\nexport interface RmwcGridProps {\n /** Specifies the grid should have fixed column width. */\n fixedColumnWidth?: boolean;\n /** Specifies the alignment of the whole grid. */\n align?: \"left\" | \"right\";\n /** Children for the Grid */\n children?: React.ReactNode;\n}\n\nexport interface RmwcGridCellProps {\n /** Default number of columns to span. */\n span?: number;\n /** Number of columns to span on a phone. */\n phone?: number;\n /** Number of columns to span on a tablet. */\n tablet?: number;\n /** Number of columns to span on a desktop. */\n desktop?: number;\n /** Specifies the order of the cell. */\n order?: number;\n /** Specifies the alignment of cell */\n align?: \"top\" | \"middle\" | \"bottom\";\n}\n\nexport type CellProps = RmwcGridCellProps & {\n // One or more Cell components.\n children?: React.ReactNode;\n\n // CSS class name that will be added to the element\n className?: string;\n\n style?: { [key: string]: any };\n};\n\n/**\n * Cell must be direct children of Grid component.\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please use the `Grid` component from the `@webiny/admin-ui` package instead.\n */\nexport const Cell = (props: CellProps) => {\n const { children, style, className, align } = props;\n return (\n <AdminUiGrid.Column\n className={className}\n style={style}\n span={props.span as AdminUiColumnProps[\"span\"]}\n align={align}\n >\n {children}\n </AdminUiGrid.Column>\n );\n};\n\nexport type GridInnerProps = {\n // One or more Cell components.\n children: React.ReactElement<typeof Cell> | React.ReactElement<typeof Cell>[];\n\n /**\n * CSS class name\n */\n className?: string;\n};\n\nexport const GridInner = ({ className, ...props }: GridInnerProps) => {\n return (\n <div\n {...props}\n className={cn(\
|
|
1
|
+
{"version":3,"names":["React","cn","Grid","AdminUiGrid","Cell","props","children","style","className","align","createElement","Column","span","GridInner","Object","assign","displayName"],"sources":["Grid.tsx"],"sourcesContent":["import type { CSSProperties } from \"react\";\nimport React from \"react\";\nimport cn from \"classnames\";\nimport type { ColumnProps as AdminUiColumnProps } from \"@webiny/admin-ui\";\nimport { Grid as AdminUiGrid } from \"@webiny/admin-ui\";\n\nexport interface RmwcGridProps {\n /** Specifies the grid should have fixed column width. */\n fixedColumnWidth?: boolean;\n /** Specifies the alignment of the whole grid. */\n align?: \"left\" | \"right\";\n /** Children for the Grid */\n children?: React.ReactNode;\n}\n\nexport interface RmwcGridCellProps {\n /** Default number of columns to span. */\n span?: number;\n /** Number of columns to span on a phone. */\n phone?: number;\n /** Number of columns to span on a tablet. */\n tablet?: number;\n /** Number of columns to span on a desktop. */\n desktop?: number;\n /** Specifies the order of the cell. */\n order?: number;\n /** Specifies the alignment of cell */\n align?: \"top\" | \"middle\" | \"bottom\";\n}\n\nexport type CellProps = RmwcGridCellProps & {\n // One or more Cell components.\n children?: React.ReactNode;\n\n // CSS class name that will be added to the element\n className?: string;\n\n style?: { [key: string]: any };\n};\n\n/**\n * Cell must be direct children of Grid component.\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please use the `Grid` component from the `@webiny/admin-ui` package instead.\n */\nexport const Cell = (props: CellProps) => {\n const { children, style, className, align } = props;\n return (\n <AdminUiGrid.Column\n className={className}\n style={style}\n span={props.span as AdminUiColumnProps[\"span\"]}\n align={align}\n >\n {children}\n </AdminUiGrid.Column>\n );\n};\n\nexport type GridInnerProps = {\n // One or more Cell components.\n children: React.ReactElement<typeof Cell> | React.ReactElement<typeof Cell>[];\n\n /**\n * CSS class name\n */\n className?: string;\n};\n\nexport const GridInner = ({ className, ...props }: GridInnerProps) => {\n return (\n <div\n {...props}\n className={cn(\"grid grid-cols-12 gap-6 m-0 flex flex-wrap items-stretch\", className)}\n >\n {props.children}\n </div>\n );\n};\n\nGridInner.displayName = \"GridInner\";\n\nexport type GridProps = RmwcGridProps & {\n className?: string;\n style?: CSSProperties;\n};\n\n/**\n * Use Grid component to display a list of choices, once the handler is triggered.\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please use the `Grid` component from the `@webiny/admin-ui` package instead.\n */\nexport const Grid = (props: GridProps) => {\n const { children, style, className } = props;\n\n return (\n <AdminUiGrid className={className} style={style}>\n {children as React.ReactElement<AdminUiColumnProps, typeof AdminUiGrid.Column>}\n </AdminUiGrid>\n );\n};\n"],"mappings":"AACA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,EAAE,MAAM,YAAY;AAE3B,SAASC,IAAI,IAAIC,WAAW,QAAQ,kBAAkB;AAoCtD;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,IAAI,GAAIC,KAAgB,IAAK;EACtC,MAAM;IAAEC,QAAQ;IAAEC,KAAK;IAAEC,SAAS;IAAEC;EAAM,CAAC,GAAGJ,KAAK;EACnD,oBACIL,KAAA,CAAAU,aAAA,CAACP,WAAW,CAACQ,MAAM;IACfH,SAAS,EAAEA,SAAU;IACrBD,KAAK,EAAEA,KAAM;IACbK,IAAI,EAAEP,KAAK,CAACO,IAAmC;IAC/CH,KAAK,EAAEA;EAAM,GAEZH,QACe,CAAC;AAE7B,CAAC;AAYD,OAAO,MAAMO,SAAS,GAAGA,CAAC;EAAEL,SAAS;EAAE,GAAGH;AAAsB,CAAC,KAAK;EAClE,oBACIL,KAAA,CAAAU,aAAA,QAAAI,MAAA,CAAAC,MAAA,KACQV,KAAK;IACTG,SAAS,EAAEP,EAAE,CAAC,0DAA0D,EAAEO,SAAS;EAAE,IAEpFH,KAAK,CAACC,QACN,CAAC;AAEd,CAAC;AAEDO,SAAS,CAACG,WAAW,GAAG,WAAW;AAOnC;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMd,IAAI,GAAIG,KAAgB,IAAK;EACtC,MAAM;IAAEC,QAAQ;IAAEC,KAAK;IAAEC;EAAU,CAAC,GAAGH,KAAK;EAE5C,oBACIL,KAAA,CAAAU,aAAA,CAACP,WAAW;IAACK,SAAS,EAAEA,SAAU;IAACD,KAAK,EAAEA;EAAM,GAC3CD,QACQ,CAAC;AAEtB,CAAC","ignoreList":[]}
|
package/Grid/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./Grid";
|
|
1
|
+
export * from "./Grid.js";
|
package/Grid/index.js
CHANGED
package/Grid/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./Grid\";\n"],"mappings":"AAAA","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./Grid.js\";\n"],"mappings":"AAAA","ignoreList":[]}
|
package/Helpers/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { getClasses } from "./ClassNames";
|
|
1
|
+
import { getClasses } from "./ClassNames.js";
|
|
2
2
|
export { getClasses };
|
package/Helpers/index.js
CHANGED
package/Helpers/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["getClasses"],"sources":["index.ts"],"sourcesContent":["import { getClasses } from \"./ClassNames\";\n\nexport { getClasses };\n"],"mappings":"AAAA,SAASA,UAAU;AAEnB,SAASA,UAAU","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["getClasses"],"sources":["index.ts"],"sourcesContent":["import { getClasses } from \"./ClassNames.js\";\n\nexport { getClasses };\n"],"mappings":"AAAA,SAASA,UAAU;AAEnB,SAASA,UAAU","ignoreList":[]}
|
package/Icon/Icon.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { Icon as AdminUiIcon } from "@webiny/admin-ui/Icon";
|
|
2
|
+
import { Icon as AdminUiIcon } from "@webiny/admin-ui/Icon/index.js";
|
|
3
3
|
/**
|
|
4
4
|
* @deprecated This component is deprecated and will be removed in future releases.
|
|
5
5
|
* Please use the `Icon` component from the `@webiny/admin-ui` package instead.
|
package/Icon/Icon.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","Icon","AdminUiIcon","props","createElement","Object","assign","label"],"sources":["Icon.tsx"],"sourcesContent":["import React from \"react\";\nimport { Icon as AdminUiIcon } from \"@webiny/admin-ui/Icon\";\n\nexport type IconProps = {\n /**\n * SvgComponent containing the svg icon\n */\n icon: React.ReactElement;\n\n /**\n * Optional onclick handler\n */\n onClick?: (value: any) => void;\n\n /**\n * CSS class to be added to the icon\n */\n className?: string;\n\n // For testing purposes.\n \"data-testid\"?: string;\n\n /**\n * Aria label\n */\n label?: string;\n};\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please use the `Icon` component from the `@webiny/admin-ui` package instead.\n */\nconst Icon = (props: IconProps) => {\n return <AdminUiIcon {...props} label={props.label || \"\"} />;\n};\n\nexport { Icon };\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,IAAIC,WAAW,QAAQ,
|
|
1
|
+
{"version":3,"names":["React","Icon","AdminUiIcon","props","createElement","Object","assign","label"],"sources":["Icon.tsx"],"sourcesContent":["import React from \"react\";\nimport { Icon as AdminUiIcon } from \"@webiny/admin-ui/Icon/index.js\";\n\nexport type IconProps = {\n /**\n * SvgComponent containing the svg icon\n */\n icon: React.ReactElement;\n\n /**\n * Optional onclick handler\n */\n onClick?: (value: any) => void;\n\n /**\n * CSS class to be added to the icon\n */\n className?: string;\n\n // For testing purposes.\n \"data-testid\"?: string;\n\n /**\n * Aria label\n */\n label?: string;\n};\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please use the `Icon` component from the `@webiny/admin-ui` package instead.\n */\nconst Icon = (props: IconProps) => {\n return <AdminUiIcon {...props} label={props.label || \"\"} />;\n};\n\nexport { Icon };\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,IAAIC,WAAW,QAAQ,gCAAgC;AA2BpE;AACA;AACA;AACA;AACA,MAAMD,IAAI,GAAIE,KAAgB,IAAK;EAC/B,oBAAOH,KAAA,CAAAI,aAAA,CAACF,WAAW,EAAAG,MAAA,CAAAC,MAAA,KAAKH,KAAK;IAAEI,KAAK,EAAEJ,KAAK,CAACI,KAAK,IAAI;EAAG,EAAE,CAAC;AAC/D,CAAC;AAED,SAASN,IAAI","ignoreList":[]}
|
package/Icon/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./Icon";
|
|
1
|
+
export * from "./Icon.js";
|
package/Icon/index.js
CHANGED
package/Icon/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./Icon\";\n"],"mappings":"AAAA","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./Icon.js\";\n"],"mappings":"AAAA","ignoreList":[]}
|
package/ImageEditor/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./ImageEditor";
|
|
1
|
+
export * from "./ImageEditor.js";
|
package/ImageEditor/index.js
CHANGED
package/ImageEditor/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./ImageEditor\";\n"],"mappings":"AAAA","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./ImageEditor.js\";\n"],"mappings":"AAAA","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","Alert","ImageEditorDialog","createElement","type","variant"],"sources":["ImageEditorDialog.tsx"],"sourcesContent":["import React from \"react\";\nimport type { DialogOnClose } from \"../Dialog\";\nimport { Alert } from \"@webiny/admin-ui\";\n\ninterface ImageEditorDialogProps {\n dialogZIndex?: number;\n onClose?: DialogOnClose;\n open?: boolean;\n /**\n * We would need to drill down a lot to give correct options.\n * TODO: figure out some other way.\n */\n options?: any;\n src?: string;\n onAccept: (src: string) => void;\n \"data-testid\"?: string;\n}\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please check the `ImageEditorDialog` component inside the `@webiny/app-file-manager` package instead.\n */\nexport const ImageEditorDialog = ({}: ImageEditorDialogProps) => {\n return (\n <Alert type=\"danger\" variant={\"strong\"}>\n {\n \"Deprecated component! The original code has been moved to `@webiny/app-file-manager` package.\"\n }\n </Alert>\n );\n};\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,SAASC,KAAK,QAAQ,kBAAkB;AAgBxC;AACA;AACA;AACA;AACA,OAAO,MAAMC,iBAAiB,GAAGA,CAAC,CAAyB,CAAC,KAAK;EAC7D,oBACIF,KAAA,CAAAG,aAAA,CAACF,KAAK;IAACG,IAAI,EAAC,QAAQ;IAACC,OAAO,EAAE;EAAS,GAE/B,+FAED,CAAC;AAEhB,CAAC","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["React","Alert","ImageEditorDialog","createElement","type","variant"],"sources":["ImageEditorDialog.tsx"],"sourcesContent":["import React from \"react\";\nimport type { DialogOnClose } from \"../Dialog/index.js\";\nimport { Alert } from \"@webiny/admin-ui\";\n\ninterface ImageEditorDialogProps {\n dialogZIndex?: number;\n onClose?: DialogOnClose;\n open?: boolean;\n /**\n * We would need to drill down a lot to give correct options.\n * TODO: figure out some other way.\n */\n options?: any;\n src?: string;\n onAccept: (src: string) => void;\n \"data-testid\"?: string;\n}\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please check the `ImageEditorDialog` component inside the `@webiny/app-file-manager` package instead.\n */\nexport const ImageEditorDialog = ({}: ImageEditorDialogProps) => {\n return (\n <Alert type=\"danger\" variant={\"strong\"}>\n {\n \"Deprecated component! The original code has been moved to `@webiny/app-file-manager` package.\"\n }\n </Alert>\n );\n};\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,SAASC,KAAK,QAAQ,kBAAkB;AAgBxC;AACA;AACA;AACA;AACA,OAAO,MAAMC,iBAAiB,GAAGA,CAAC,CAAyB,CAAC,KAAK;EAC7D,oBACIF,KAAA,CAAAG,aAAA,CAACF,KAAK;IAACG,IAAI,EAAC,QAAQ;IAACC,OAAO,EAAE;EAAS,GAE/B,+FAED,CAAC;AAEhB,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","Alert","MultiImageUpload","createElement","type","variant"],"sources":["MultiImageUpload.tsx"],"sourcesContent":["import React from \"react\";\nimport type { FormComponentProps } from \"../types\";\nimport { Alert } from \"@webiny/admin-ui\";\n\ninterface MultiImageUploadProps extends FormComponentProps {\n // Component label.\n label?: string;\n\n // Is component disabled?\n disabled?: boolean;\n\n // Description beneath the image.\n description?: string;\n\n // A className for the root element.\n className?: string;\n\n // Define a list of accepted image types.\n accept?: string[];\n\n // Define file's max allowed size (default is \"5mb\").\n // Uses \"bytes\" (https://www.npmjs.com/package/bytes) library to convert string notation to actual number.\n maxSize: string;\n\n // Image editor options.\n // Please check the docs of ImageEditor component for the list of all available options.\n imageEditor?: {\n [key: string]: any;\n };\n\n // Use these to customize error messages (eg. if i18n supported is needed).\n errorMessages: {\n maxSizeExceeded: string;\n unsupportedFileType: string;\n default: string;\n };\n\n // Cropper options\n cropper?: { [key: string]: any };\n}\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please check the `MultiFilePicker` component inside the `@webiny/admin-ui` package instead.\n */\nexport const MultiImageUpload = ({}: MultiImageUploadProps) => {\n return (\n <Alert type=\"danger\" variant={\"strong\"}>\n {\n \"Deprecated component! The original code has been moved to `@webiny/admin-ui` package.\"\n }\n </Alert>\n );\n};\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,SAASC,KAAK,QAAQ,kBAAkB;AAuCxC;AACA;AACA;AACA;AACA,OAAO,MAAMC,gBAAgB,GAAGA,CAAC,CAAwB,CAAC,KAAK;EAC3D,oBACIF,KAAA,CAAAG,aAAA,CAACF,KAAK;IAACG,IAAI,EAAC,QAAQ;IAACC,OAAO,EAAE;EAAS,GAE/B,uFAED,CAAC;AAEhB,CAAC","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["React","Alert","MultiImageUpload","createElement","type","variant"],"sources":["MultiImageUpload.tsx"],"sourcesContent":["import React from \"react\";\nimport type { FormComponentProps } from \"../types.js\";\nimport { Alert } from \"@webiny/admin-ui\";\n\ninterface MultiImageUploadProps extends FormComponentProps {\n // Component label.\n label?: string;\n\n // Is component disabled?\n disabled?: boolean;\n\n // Description beneath the image.\n description?: string;\n\n // A className for the root element.\n className?: string;\n\n // Define a list of accepted image types.\n accept?: string[];\n\n // Define file's max allowed size (default is \"5mb\").\n // Uses \"bytes\" (https://www.npmjs.com/package/bytes) library to convert string notation to actual number.\n maxSize: string;\n\n // Image editor options.\n // Please check the docs of ImageEditor component for the list of all available options.\n imageEditor?: {\n [key: string]: any;\n };\n\n // Use these to customize error messages (eg. if i18n supported is needed).\n errorMessages: {\n maxSizeExceeded: string;\n unsupportedFileType: string;\n default: string;\n };\n\n // Cropper options\n cropper?: { [key: string]: any };\n}\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please check the `MultiFilePicker` component inside the `@webiny/admin-ui` package instead.\n */\nexport const MultiImageUpload = ({}: MultiImageUploadProps) => {\n return (\n <Alert type=\"danger\" variant={\"strong\"}>\n {\n \"Deprecated component! The original code has been moved to `@webiny/admin-ui` package.\"\n }\n </Alert>\n );\n};\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,SAASC,KAAK,QAAQ,kBAAkB;AAuCxC;AACA;AACA;AACA;AACA,OAAO,MAAMC,gBAAgB,GAAGA,CAAC,CAAwB,CAAC,KAAK;EAC3D,oBACIF,KAAA,CAAAG,aAAA,CAACF,KAAK;IAACG,IAAI,EAAC,QAAQ;IAACC,OAAO,EAAE;EAAS,GAE/B,uFAED,CAAC;AAEhB,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","Alert","SingleImageUpload","createElement","type","variant"],"sources":["SingleImageUpload.tsx"],"sourcesContent":["import React from \"react\";\nimport type { FormComponentProps } from \"~/types\";\nimport { Alert } from \"@webiny/admin-ui\";\n\ninterface SingleImageUploadProps extends FormComponentProps {\n // Component label.\n label?: string;\n\n // Is component disabled?\n disabled?: boolean;\n\n // Description beneath the image.\n description?: string;\n\n // A className for the root element.\n className?: string;\n\n // Define a list of accepted image types.\n accept?: string[];\n\n // Define file's max allowed size (default is \"10mb\").\n // Uses \"bytes\" (https://www.npmjs.com/package/bytes) library to convert string notation to actual number.\n maxSize: string;\n\n // Image editor options.\n // Please check the docs of ImageEditor component for the list of all available options.\n imageEditor?: {\n [key: string]: any;\n };\n\n // Custom image preview renderer. By default images are rendered via simple <img> element.\n renderImagePreview?: () => React.ReactElement<any>;\n\n // Should remove image button (top right ✕) be shown? Default is set to `true`.\n showRemoveImageButton?: boolean;\n\n // Use these to customize error messages (eg. if i18n supported is needed).\n errorMessages: {\n maxSizeExceeded: string;\n unsupportedFileType: string;\n default: string;\n multipleNotAllowed: string;\n multipleMaxSizeExceeded: string;\n };\n}\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please check the `FilePicker` component inside the `@webiny/admin-ui` package instead.\n */\nexport const SingleImageUpload = ({}: SingleImageUploadProps) => {\n return (\n <Alert type=\"danger\" variant={\"strong\"}>\n {\n \"Deprecated component! The original code has been moved to `@webiny/admin-ui` package.\"\n }\n </Alert>\n );\n};\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,SAASC,KAAK,QAAQ,kBAAkB;AA4CxC;AACA;AACA;AACA;AACA,OAAO,MAAMC,iBAAiB,GAAGA,CAAC,CAAyB,CAAC,KAAK;EAC7D,oBACIF,KAAA,CAAAG,aAAA,CAACF,KAAK;IAACG,IAAI,EAAC,QAAQ;IAACC,OAAO,EAAE;EAAS,GAE/B,uFAED,CAAC;AAEhB,CAAC","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["React","Alert","SingleImageUpload","createElement","type","variant"],"sources":["SingleImageUpload.tsx"],"sourcesContent":["import React from \"react\";\nimport type { FormComponentProps } from \"~/types.js\";\nimport { Alert } from \"@webiny/admin-ui\";\n\ninterface SingleImageUploadProps extends FormComponentProps {\n // Component label.\n label?: string;\n\n // Is component disabled?\n disabled?: boolean;\n\n // Description beneath the image.\n description?: string;\n\n // A className for the root element.\n className?: string;\n\n // Define a list of accepted image types.\n accept?: string[];\n\n // Define file's max allowed size (default is \"10mb\").\n // Uses \"bytes\" (https://www.npmjs.com/package/bytes) library to convert string notation to actual number.\n maxSize: string;\n\n // Image editor options.\n // Please check the docs of ImageEditor component for the list of all available options.\n imageEditor?: {\n [key: string]: any;\n };\n\n // Custom image preview renderer. By default images are rendered via simple <img> element.\n renderImagePreview?: () => React.ReactElement<any>;\n\n // Should remove image button (top right ✕) be shown? Default is set to `true`.\n showRemoveImageButton?: boolean;\n\n // Use these to customize error messages (eg. if i18n supported is needed).\n errorMessages: {\n maxSizeExceeded: string;\n unsupportedFileType: string;\n default: string;\n multipleNotAllowed: string;\n multipleMaxSizeExceeded: string;\n };\n}\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please check the `FilePicker` component inside the `@webiny/admin-ui` package instead.\n */\nexport const SingleImageUpload = ({}: SingleImageUploadProps) => {\n return (\n <Alert type=\"danger\" variant={\"strong\"}>\n {\n \"Deprecated component! The original code has been moved to `@webiny/admin-ui` package.\"\n }\n </Alert>\n );\n};\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,SAASC,KAAK,QAAQ,kBAAkB;AA4CxC;AACA;AACA;AACA;AACA,OAAO,MAAMC,iBAAiB,GAAGA,CAAC,CAAyB,CAAC,KAAK;EAC7D,oBACIF,KAAA,CAAAG,aAAA,CAACF,KAAK;IAACG,IAAI,EAAC,QAAQ;IAACC,OAAO,EAAE;EAAS,GAE/B,uFAED,CAAC;AAEhB,CAAC","ignoreList":[]}
|
package/ImageUpload/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { SingleImageUpload } from "./SingleImageUpload";
|
|
2
|
-
export { MultiImageUpload } from "./MultiImageUpload";
|
|
3
|
-
export { Image } from "./Image";
|
|
4
|
-
export { ImageEditorDialog } from "./ImageEditorDialog";
|
|
1
|
+
export { SingleImageUpload } from "./SingleImageUpload.js";
|
|
2
|
+
export { MultiImageUpload } from "./MultiImageUpload.js";
|
|
3
|
+
export { Image } from "./Image.js";
|
|
4
|
+
export { ImageEditorDialog } from "./ImageEditorDialog.js";
|
package/ImageUpload/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { SingleImageUpload } from "./SingleImageUpload";
|
|
2
|
-
export { MultiImageUpload } from "./MultiImageUpload";
|
|
3
|
-
export { Image } from "./Image";
|
|
4
|
-
export { ImageEditorDialog } from "./ImageEditorDialog";
|
|
1
|
+
export { SingleImageUpload } from "./SingleImageUpload.js";
|
|
2
|
+
export { MultiImageUpload } from "./MultiImageUpload.js";
|
|
3
|
+
export { Image } from "./Image.js";
|
|
4
|
+
export { ImageEditorDialog } from "./ImageEditorDialog.js";
|
|
5
5
|
|
|
6
6
|
//# sourceMappingURL=index.js.map
|
package/ImageUpload/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["SingleImageUpload","MultiImageUpload","Image","ImageEditorDialog"],"sources":["index.ts"],"sourcesContent":["export { SingleImageUpload } from \"./SingleImageUpload\";\nexport { MultiImageUpload } from \"./MultiImageUpload\";\nexport { Image } from \"./Image\";\nexport { ImageEditorDialog } from \"./ImageEditorDialog\";\n"],"mappings":"AAAA,SAASA,iBAAiB;AAC1B,SAASC,gBAAgB;AACzB,SAASC,KAAK;AACd,SAASC,iBAAiB","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["SingleImageUpload","MultiImageUpload","Image","ImageEditorDialog"],"sources":["index.ts"],"sourcesContent":["export { SingleImageUpload } from \"./SingleImageUpload.js\";\nexport { MultiImageUpload } from \"./MultiImageUpload.js\";\nexport { Image } from \"./Image.js\";\nexport { ImageEditorDialog } from \"./ImageEditorDialog.js\";\n"],"mappings":"AAAA,SAASA,iBAAiB;AAC1B,SAASC,gBAAgB;AACzB,SAASC,KAAK;AACd,SAASC,iBAAiB","ignoreList":[]}
|
package/Input/Input.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ReactElement } from "react";
|
|
2
2
|
import React from "react";
|
|
3
|
-
import type { FormComponentProps } from "../types";
|
|
3
|
+
import type { FormComponentProps } from "../types.js";
|
|
4
4
|
export interface TextFieldHelperTextProps {
|
|
5
5
|
/** Make the help text always visible */
|
|
6
6
|
persistent?: boolean;
|
package/Input/Input.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useCallback, useMemo } from "react";
|
|
2
|
-
import pick from "lodash/pick";
|
|
2
|
+
import pick from "lodash/pick.js";
|
|
3
3
|
import { Input as AdminInput, Textarea as AdminTextarea } from "@webiny/admin-ui";
|
|
4
4
|
/**
|
|
5
5
|
* Use Input component to store short string values, like first name, last name, e-mail etc.
|
package/Input/Input.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useCallback","useMemo","pick","Input","AdminInput","Textarea","AdminTextarea","rmwcProps","props","autoFocus","value","description","placeholder","rows","validation","icon","trailingIcon","onBlur","onChange","rawOnChange","required","inputRef","rest","inputValue","size","getValidIcon","isValidElement","undefined","Boolean","createElement","Object","assign","className","forwardEventOnChange","textareaRef","startIcon","endIcon"],"sources":["Input.tsx"],"sourcesContent":["import type { ReactElement } from \"react\";\nimport React, { useCallback, useMemo } from \"react\";\nimport pick from \"lodash/pick\";\nimport type { FormComponentProps } from \"~/types\";\nimport { Input as AdminInput, Textarea as AdminTextarea } from \"@webiny/admin-ui\";\n\nexport interface TextFieldHelperTextProps {\n /** Make the help text always visible */\n persistent?: boolean;\n /** Make the help a validation message style */\n validationMsg?: boolean;\n /** Content for the help text */\n children: React.ReactNode;\n}\n\nexport interface TextFieldProps {\n /** Sets the value for controlled TextFields. */\n value?: string | number;\n /** Adds help text to the field */\n helpText?: React.ReactNode | TextFieldHelperTextProps;\n /** Shows the character count, must be used in conjunction with maxLength. */\n characterCount?: boolean;\n /** Makes the TextField visually invalid. This is sometimes automatically applied in cases where required or pattern is used. */\n invalid?: boolean;\n /** Makes the Textfield disabled. */\n disabled?: boolean;\n /** Makes the Textfield required. */\n required?: boolean;\n /** Outline the TextField. */\n outlined?: boolean;\n /** How to align the text inside the TextField. Defaults to 'start'. */\n align?: \"start\" | \"end\";\n /** A label for the input. */\n label?: React.ReactNode;\n /** The label floats automatically based on value, but you can use this prop for manual control. */\n floatLabel?: boolean;\n /** Makes a multiline TextField. */\n textarea?: boolean;\n /** Makes the TextField fullwidth. */\n fullwidth?: boolean;\n /** Add a leading icon. */\n icon?: any;\n /** Add a trailing icon. */\n trailingIcon?: any;\n /** By default, props spread to the input. These props are for the component's root container. */\n rootProps?: any;\n /** A reference to the native input or textarea. */\n inputRef?: React.Ref<HTMLInputElement | HTMLTextAreaElement | null>;\n /** The type of input field to render, search, number, etc */\n type?: string;\n /** Add prefix. */\n prefix?: string;\n /** Add suffix. */\n suffix?: string;\n /** Advanced: A reference to the MDCFoundation. */\n foundationRef?: any;\n /** Make textarea resizeable */\n resizeable?: boolean;\n}\n\nexport type InputProps<TValue = any> = FormComponentProps<TValue> &\n TextFieldProps & {\n // Should this input be filled with browser values\n autoComplete?: string;\n\n // If true, will pass native `event` to the `onChange` callback\n rawOnChange?: boolean;\n\n // Auto-focus input\n autoFocus?: boolean;\n\n // Input placeholder\n placeholder?: string;\n\n // Description beneath the input.\n description?: string | ReactElement;\n\n // Converts input into a text area with given number of rows.\n rows?: number;\n\n maxLength?: number;\n\n // A callback that is executed when input focus is lost.\n onBlur?: (e: React.SyntheticEvent<any>) => any;\n\n onKeyDown?: (e: React.SyntheticEvent<any>) => any;\n\n // A callback that gets triggered when the user presses the \"Enter\" key.\n onEnter?: () => any;\n\n // CSS class name\n className?: string;\n\n // For testing purposes.\n \"data-testid\"?: string;\n\n // Size - small, medium or large\n size?: \"small\" | \"medium\" | \"large\";\n\n children?: React.ReactNode;\n };\n\n/**\n * Use Input component to store short string values, like first name, last name, e-mail etc.\n * Additionally, with rows prop, it can also be turned into a text area, to store longer strings.\n */\n\n// IconProps directly passed to RMWC\nconst rmwcProps = [\n \"label\",\n \"type\",\n \"disabled\",\n \"readOnly\",\n \"placeholder\",\n \"onKeyDown\",\n \"onEnter\",\n \"onKeyPress\",\n \"onKeyUp\",\n \"onFocus\",\n \"className\",\n \"maxLength\",\n \"characterCount\",\n \"autoComplete\",\n \"maxLength\"\n];\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please use the `Input` component from the `@webiny/admin-ui` package instead.\n */\nexport const Input = (props: InputProps) => {\n const {\n autoFocus,\n value,\n description,\n placeholder,\n rows,\n validation,\n icon,\n trailingIcon,\n onBlur,\n onChange,\n rawOnChange,\n required,\n inputRef,\n ...rest\n } = props;\n\n let inputValue = value;\n if (value === null || typeof value === \"undefined\") {\n inputValue = \"\";\n }\n\n const size = useMemo(() => {\n if (props.size === \"medium\") {\n return \"md\";\n }\n\n if (props.size === \"large\") {\n return \"lg\";\n }\n\n return \"lg\";\n }, [props.size]);\n\n const getValidIcon = useCallback((icon: React.ReactNode) => {\n if (React.isValidElement(icon)) {\n return icon;\n }\n\n return undefined;\n }, []);\n\n if (Boolean(rows)) {\n return (\n <AdminTextarea\n {...pick(rest, rmwcProps)}\n autoFocus={autoFocus}\n value={inputValue}\n onChange={onChange}\n placeholder={placeholder}\n size={size}\n className={\"webiny-ui-input\"}\n data-testid={props[\"data-testid\"]}\n validation={validation}\n description={description}\n required={required}\n rows={rows}\n forwardEventOnChange={rawOnChange}\n textareaRef={inputRef as React.Ref<HTMLTextAreaElement> | undefined}\n onBlur={onBlur}\n />\n );\n }\n\n return (\n <AdminInput\n {...pick(rest, rmwcProps)}\n autoFocus={autoFocus}\n value={inputValue}\n onChange={onChange}\n startIcon={getValidIcon(icon)}\n endIcon={getValidIcon(trailingIcon)}\n placeholder={placeholder}\n size={size}\n className={\"webiny-ui-input\"}\n data-testid={props[\"data-testid\"]}\n validation={validation}\n description={description}\n required={required}\n forwardEventOnChange={rawOnChange}\n inputRef={inputRef as React.Ref<HTMLInputElement> | undefined}\n onBlur={onBlur}\n />\n );\n};\n"],"mappings":"AACA,OAAOA,KAAK,IAAIC,WAAW,EAAEC,OAAO,QAAQ,OAAO;AACnD,OAAOC,IAAI,MAAM,
|
|
1
|
+
{"version":3,"names":["React","useCallback","useMemo","pick","Input","AdminInput","Textarea","AdminTextarea","rmwcProps","props","autoFocus","value","description","placeholder","rows","validation","icon","trailingIcon","onBlur","onChange","rawOnChange","required","inputRef","rest","inputValue","size","getValidIcon","isValidElement","undefined","Boolean","createElement","Object","assign","className","forwardEventOnChange","textareaRef","startIcon","endIcon"],"sources":["Input.tsx"],"sourcesContent":["import type { ReactElement } from \"react\";\nimport React, { useCallback, useMemo } from \"react\";\nimport pick from \"lodash/pick.js\";\nimport type { FormComponentProps } from \"~/types.js\";\nimport { Input as AdminInput, Textarea as AdminTextarea } from \"@webiny/admin-ui\";\n\nexport interface TextFieldHelperTextProps {\n /** Make the help text always visible */\n persistent?: boolean;\n /** Make the help a validation message style */\n validationMsg?: boolean;\n /** Content for the help text */\n children: React.ReactNode;\n}\n\nexport interface TextFieldProps {\n /** Sets the value for controlled TextFields. */\n value?: string | number;\n /** Adds help text to the field */\n helpText?: React.ReactNode | TextFieldHelperTextProps;\n /** Shows the character count, must be used in conjunction with maxLength. */\n characterCount?: boolean;\n /** Makes the TextField visually invalid. This is sometimes automatically applied in cases where required or pattern is used. */\n invalid?: boolean;\n /** Makes the Textfield disabled. */\n disabled?: boolean;\n /** Makes the Textfield required. */\n required?: boolean;\n /** Outline the TextField. */\n outlined?: boolean;\n /** How to align the text inside the TextField. Defaults to 'start'. */\n align?: \"start\" | \"end\";\n /** A label for the input. */\n label?: React.ReactNode;\n /** The label floats automatically based on value, but you can use this prop for manual control. */\n floatLabel?: boolean;\n /** Makes a multiline TextField. */\n textarea?: boolean;\n /** Makes the TextField fullwidth. */\n fullwidth?: boolean;\n /** Add a leading icon. */\n icon?: any;\n /** Add a trailing icon. */\n trailingIcon?: any;\n /** By default, props spread to the input. These props are for the component's root container. */\n rootProps?: any;\n /** A reference to the native input or textarea. */\n inputRef?: React.Ref<HTMLInputElement | HTMLTextAreaElement | null>;\n /** The type of input field to render, search, number, etc */\n type?: string;\n /** Add prefix. */\n prefix?: string;\n /** Add suffix. */\n suffix?: string;\n /** Advanced: A reference to the MDCFoundation. */\n foundationRef?: any;\n /** Make textarea resizeable */\n resizeable?: boolean;\n}\n\nexport type InputProps<TValue = any> = FormComponentProps<TValue> &\n TextFieldProps & {\n // Should this input be filled with browser values\n autoComplete?: string;\n\n // If true, will pass native `event` to the `onChange` callback\n rawOnChange?: boolean;\n\n // Auto-focus input\n autoFocus?: boolean;\n\n // Input placeholder\n placeholder?: string;\n\n // Description beneath the input.\n description?: string | ReactElement;\n\n // Converts input into a text area with given number of rows.\n rows?: number;\n\n maxLength?: number;\n\n // A callback that is executed when input focus is lost.\n onBlur?: (e: React.SyntheticEvent<any>) => any;\n\n onKeyDown?: (e: React.SyntheticEvent<any>) => any;\n\n // A callback that gets triggered when the user presses the \"Enter\" key.\n onEnter?: () => any;\n\n // CSS class name\n className?: string;\n\n // For testing purposes.\n \"data-testid\"?: string;\n\n // Size - small, medium or large\n size?: \"small\" | \"medium\" | \"large\";\n\n children?: React.ReactNode;\n };\n\n/**\n * Use Input component to store short string values, like first name, last name, e-mail etc.\n * Additionally, with rows prop, it can also be turned into a text area, to store longer strings.\n */\n\n// IconProps directly passed to RMWC\nconst rmwcProps = [\n \"label\",\n \"type\",\n \"disabled\",\n \"readOnly\",\n \"placeholder\",\n \"onKeyDown\",\n \"onEnter\",\n \"onKeyPress\",\n \"onKeyUp\",\n \"onFocus\",\n \"className\",\n \"maxLength\",\n \"characterCount\",\n \"autoComplete\",\n \"maxLength\"\n];\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please use the `Input` component from the `@webiny/admin-ui` package instead.\n */\nexport const Input = (props: InputProps) => {\n const {\n autoFocus,\n value,\n description,\n placeholder,\n rows,\n validation,\n icon,\n trailingIcon,\n onBlur,\n onChange,\n rawOnChange,\n required,\n inputRef,\n ...rest\n } = props;\n\n let inputValue = value;\n if (value === null || typeof value === \"undefined\") {\n inputValue = \"\";\n }\n\n const size = useMemo(() => {\n if (props.size === \"medium\") {\n return \"md\";\n }\n\n if (props.size === \"large\") {\n return \"lg\";\n }\n\n return \"lg\";\n }, [props.size]);\n\n const getValidIcon = useCallback((icon: React.ReactNode) => {\n if (React.isValidElement(icon)) {\n return icon;\n }\n\n return undefined;\n }, []);\n\n if (Boolean(rows)) {\n return (\n <AdminTextarea\n {...pick(rest, rmwcProps)}\n autoFocus={autoFocus}\n value={inputValue}\n onChange={onChange}\n placeholder={placeholder}\n size={size}\n className={\"webiny-ui-input\"}\n data-testid={props[\"data-testid\"]}\n validation={validation}\n description={description}\n required={required}\n rows={rows}\n forwardEventOnChange={rawOnChange}\n textareaRef={inputRef as React.Ref<HTMLTextAreaElement> | undefined}\n onBlur={onBlur}\n />\n );\n }\n\n return (\n <AdminInput\n {...pick(rest, rmwcProps)}\n autoFocus={autoFocus}\n value={inputValue}\n onChange={onChange}\n startIcon={getValidIcon(icon)}\n endIcon={getValidIcon(trailingIcon)}\n placeholder={placeholder}\n size={size}\n className={\"webiny-ui-input\"}\n data-testid={props[\"data-testid\"]}\n validation={validation}\n description={description}\n required={required}\n forwardEventOnChange={rawOnChange}\n inputRef={inputRef as React.Ref<HTMLInputElement> | undefined}\n onBlur={onBlur}\n />\n );\n};\n"],"mappings":"AACA,OAAOA,KAAK,IAAIC,WAAW,EAAEC,OAAO,QAAQ,OAAO;AACnD,OAAOC,IAAI,MAAM,gBAAgB;AAEjC,SAASC,KAAK,IAAIC,UAAU,EAAEC,QAAQ,IAAIC,aAAa,QAAQ,kBAAkB;AAkGjF;AACA;AACA;AACA;;AAEA;AACA,MAAMC,SAAS,GAAG,CACd,OAAO,EACP,MAAM,EACN,UAAU,EACV,UAAU,EACV,aAAa,EACb,WAAW,EACX,SAAS,EACT,YAAY,EACZ,SAAS,EACT,SAAS,EACT,WAAW,EACX,WAAW,EACX,gBAAgB,EAChB,cAAc,EACd,WAAW,CACd;;AAED;AACA;AACA;AACA;AACA,OAAO,MAAMJ,KAAK,GAAIK,KAAiB,IAAK;EACxC,MAAM;IACFC,SAAS;IACTC,KAAK;IACLC,WAAW;IACXC,WAAW;IACXC,IAAI;IACJC,UAAU;IACVC,IAAI;IACJC,YAAY;IACZC,MAAM;IACNC,QAAQ;IACRC,WAAW;IACXC,QAAQ;IACRC,QAAQ;IACR,GAAGC;EACP,CAAC,GAAGd,KAAK;EAET,IAAIe,UAAU,GAAGb,KAAK;EACtB,IAAIA,KAAK,KAAK,IAAI,IAAI,OAAOA,KAAK,KAAK,WAAW,EAAE;IAChDa,UAAU,GAAG,EAAE;EACnB;EAEA,MAAMC,IAAI,GAAGvB,OAAO,CAAC,MAAM;IACvB,IAAIO,KAAK,CAACgB,IAAI,KAAK,QAAQ,EAAE;MACzB,OAAO,IAAI;IACf;IAEA,IAAIhB,KAAK,CAACgB,IAAI,KAAK,OAAO,EAAE;MACxB,OAAO,IAAI;IACf;IAEA,OAAO,IAAI;EACf,CAAC,EAAE,CAAChB,KAAK,CAACgB,IAAI,CAAC,CAAC;EAEhB,MAAMC,YAAY,GAAGzB,WAAW,CAAEe,IAAqB,IAAK;IACxD,iBAAIhB,KAAK,CAAC2B,cAAc,CAACX,IAAI,CAAC,EAAE;MAC5B,OAAOA,IAAI;IACf;IAEA,OAAOY,SAAS;EACpB,CAAC,EAAE,EAAE,CAAC;EAEN,IAAIC,OAAO,CAACf,IAAI,CAAC,EAAE;IACf,oBACId,KAAA,CAAA8B,aAAA,CAACvB,aAAa,EAAAwB,MAAA,CAAAC,MAAA,KACN7B,IAAI,CAACoB,IAAI,EAAEf,SAAS,CAAC;MACzBE,SAAS,EAAEA,SAAU;MACrBC,KAAK,EAAEa,UAAW;MAClBL,QAAQ,EAAEA,QAAS;MACnBN,WAAW,EAAEA,WAAY;MACzBY,IAAI,EAAEA,IAAK;MACXQ,SAAS,EAAE,iBAAkB;MAC7B,eAAaxB,KAAK,CAAC,aAAa,CAAE;MAClCM,UAAU,EAAEA,UAAW;MACvBH,WAAW,EAAEA,WAAY;MACzBS,QAAQ,EAAEA,QAAS;MACnBP,IAAI,EAAEA,IAAK;MACXoB,oBAAoB,EAAEd,WAAY;MAClCe,WAAW,EAAEb,QAAuD;MACpEJ,MAAM,EAAEA;IAAO,EAClB,CAAC;EAEV;EAEA,oBACIlB,KAAA,CAAA8B,aAAA,CAACzB,UAAU,EAAA0B,MAAA,CAAAC,MAAA,KACH7B,IAAI,CAACoB,IAAI,EAAEf,SAAS,CAAC;IACzBE,SAAS,EAAEA,SAAU;IACrBC,KAAK,EAAEa,UAAW;IAClBL,QAAQ,EAAEA,QAAS;IACnBiB,SAAS,EAAEV,YAAY,CAACV,IAAI,CAAE;IAC9BqB,OAAO,EAAEX,YAAY,CAACT,YAAY,CAAE;IACpCJ,WAAW,EAAEA,WAAY;IACzBY,IAAI,EAAEA,IAAK;IACXQ,SAAS,EAAE,iBAAkB;IAC7B,eAAaxB,KAAK,CAAC,aAAa,CAAE;IAClCM,UAAU,EAAEA,UAAW;IACvBH,WAAW,EAAEA,WAAY;IACzBS,QAAQ,EAAEA,QAAS;IACnBa,oBAAoB,EAAEd,WAAY;IAClCE,QAAQ,EAAEA,QAAoD;IAC9DJ,MAAM,EAAEA;EAAO,EAClB,CAAC;AAEV,CAAC","ignoreList":[]}
|
package/Input/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./Input";
|
|
1
|
+
export * from "./Input.js";
|
package/Input/index.js
CHANGED
package/Input/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./Input\";\n"],"mappings":"AAAA","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./Input.js\";\n"],"mappings":"AAAA","ignoreList":[]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import type { ListProps, ListItemProps } from "../List";
|
|
3
|
-
import type { DataListProps } from "@webiny/admin-ui/DataList/types";
|
|
2
|
+
import type { ListProps, ListItemProps } from "../List/index.js";
|
|
3
|
+
import type { DataListProps } from "@webiny/admin-ui/DataList/types.js";
|
|
4
4
|
/**
|
|
5
5
|
* @deprecated This component is deprecated and will be removed in future releases.
|
|
6
6
|
* Please use the `DataList` component from the `@webiny/admin-ui` package instead.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","DataList","AdminDatalist","List","props","createElement","ScrollList"],"sources":["DataList.tsx"],"sourcesContent":["import React from \"react\";\nimport { DataList as AdminDatalist, List } from \"@webiny/admin-ui\";\nimport type { ListProps, ListItemProps } from \"../List\";\nimport type { DataListProps } from \"@webiny/admin-ui/DataList/types\";\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please use the `DataList` component from the `@webiny/admin-ui` package instead.\n */\nexport const DataList = (props: DataListProps<Record<string, any>>) => {\n return <AdminDatalist {...props} />;\n};\n\nexport interface ScrollListProps extends ListProps {\n children: React.ReactElement<ListItemProps>[];\n}\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please use the `List` component from the `@webiny/admin-ui` package instead.\n */\nexport const ScrollList = (props: ScrollListProps) => {\n return <List {...props} />;\n};\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,QAAQ,IAAIC,aAAa,EAAEC,IAAI,QAAQ,kBAAkB;AAIlE;AACA;AACA;AACA;AACA,OAAO,MAAMF,QAAQ,GAAIG,KAAyC,IAAK;EACnE,oBAAOJ,KAAA,CAAAK,aAAA,CAACH,aAAa,EAAKE,KAAQ,CAAC;AACvC,CAAC;AAMD;AACA;AACA;AACA;AACA,OAAO,MAAME,UAAU,GAAIF,KAAsB,IAAK;EAClD,oBAAOJ,KAAA,CAAAK,aAAA,CAACF,IAAI,EAAKC,KAAQ,CAAC;AAC9B,CAAC","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["React","DataList","AdminDatalist","List","props","createElement","ScrollList"],"sources":["DataList.tsx"],"sourcesContent":["import React from \"react\";\nimport { DataList as AdminDatalist, List } from \"@webiny/admin-ui\";\nimport type { ListProps, ListItemProps } from \"../List/index.js\";\nimport type { DataListProps } from \"@webiny/admin-ui/DataList/types.js\";\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please use the `DataList` component from the `@webiny/admin-ui` package instead.\n */\nexport const DataList = (props: DataListProps<Record<string, any>>) => {\n return <AdminDatalist {...props} />;\n};\n\nexport interface ScrollListProps extends ListProps {\n children: React.ReactElement<ListItemProps>[];\n}\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please use the `List` component from the `@webiny/admin-ui` package instead.\n */\nexport const ScrollList = (props: ScrollListProps) => {\n return <List {...props} />;\n};\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,QAAQ,IAAIC,aAAa,EAAEC,IAAI,QAAQ,kBAAkB;AAIlE;AACA;AACA;AACA;AACA,OAAO,MAAMF,QAAQ,GAAIG,KAAyC,IAAK;EACnE,oBAAOJ,KAAA,CAAAK,aAAA,CAACH,aAAa,EAAKE,KAAQ,CAAC;AACvC,CAAC;AAMD;AACA;AACA;AACA;AACA,OAAO,MAAME,UAAU,GAAIF,KAAsB,IAAK;EAClD,oBAAOJ,KAAA,CAAAK,aAAA,CAACF,IAAI,EAAKC,KAAQ,CAAC;AAC9B,CAAC","ignoreList":[]}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
/**
|
|
3
2
|
* @deprecated This component is deprecated and will be removed in future releases.
|
|
4
3
|
* Please use the `DataListModal.Content` component from the `@webiny/admin-ui` package instead.
|
|
5
4
|
*/
|
|
6
|
-
declare const DataListModalOverlay: ({ children }: import("@webiny/admin-ui
|
|
5
|
+
declare const DataListModalOverlay: ({ children }: import("@webiny/admin-ui").DataListModalContentProps) => React.JSX.Element;
|
|
7
6
|
/**
|
|
8
7
|
* @deprecated This component is deprecated and will be removed in future releases.
|
|
9
8
|
* Please use the `DataListModal.Trigger` component from the `@webiny/admin-ui` package instead.
|
|
10
9
|
*/
|
|
11
|
-
declare const DataListModalOverlayAction: ({ icon, ...props }: import("@webiny/admin-ui
|
|
10
|
+
declare const DataListModalOverlayAction: ({ icon, ...props }: import("@webiny/admin-ui").DataListModalTriggerProps) => React.JSX.Element;
|
|
12
11
|
export { DataListModalOverlay, DataListModalOverlayAction };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import type { ListProps } from "../List";
|
|
3
|
-
import type { DataListProps } from "@webiny/admin-ui/DataList/types";
|
|
4
|
-
import type { ListItem } from "@webiny/admin-ui/List/components";
|
|
2
|
+
import type { ListProps } from "../List/index.js";
|
|
3
|
+
import type { DataListProps } from "@webiny/admin-ui/DataList/types.js";
|
|
4
|
+
import type { ListItem } from "@webiny/admin-ui/List/components/index.js";
|
|
5
5
|
interface DataListData {
|
|
6
6
|
[key: string]: Record<string, any>[];
|
|
7
7
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","DataListWithSections","AdminDataListWithSections","List","props","createElement","ScrollListWithSections"],"sources":["DataListWithSections.tsx"],"sourcesContent":["import React from \"react\";\nimport { DataListWithSections as AdminDataListWithSections, List } from \"@webiny/admin-ui\";\nimport type { ListProps } from \"../List\";\nimport type { DataListProps } from \"@webiny/admin-ui/DataList/types\";\nimport type { ListItem } from \"@webiny/admin-ui/List/components\";\n\ninterface DataListData {\n [key: string]: Record<string, any>[];\n}\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please use the `DataList` component from the `@webiny/admin-ui` package instead.\n */\nexport const DataListWithSections = (props: DataListProps<DataListData>) => {\n return <AdminDataListWithSections {...props} />;\n};\n\ninterface ScrollListWithSectionsProps extends ListProps {\n children: React.ReactElement<typeof ListItem>[];\n}\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please use the `List` component from the `@webiny/admin-ui` package instead.\n */\nexport const ScrollListWithSections = (props: ScrollListWithSectionsProps) => {\n return <List {...props} />;\n};\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,oBAAoB,IAAIC,yBAAyB,EAAEC,IAAI,QAAQ,kBAAkB;AAS1F;AACA;AACA;AACA;AACA,OAAO,MAAMF,oBAAoB,GAAIG,KAAkC,IAAK;EACxE,oBAAOJ,KAAA,CAAAK,aAAA,CAACH,yBAAyB,EAAKE,KAAQ,CAAC;AACnD,CAAC;AAMD;AACA;AACA;AACA;AACA,OAAO,MAAME,sBAAsB,GAAIF,KAAkC,IAAK;EAC1E,oBAAOJ,KAAA,CAAAK,aAAA,CAACF,IAAI,EAAKC,KAAQ,CAAC;AAC9B,CAAC","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["React","DataListWithSections","AdminDataListWithSections","List","props","createElement","ScrollListWithSections"],"sources":["DataListWithSections.tsx"],"sourcesContent":["import React from \"react\";\nimport { DataListWithSections as AdminDataListWithSections, List } from \"@webiny/admin-ui\";\nimport type { ListProps } from \"../List/index.js\";\nimport type { DataListProps } from \"@webiny/admin-ui/DataList/types.js\";\nimport type { ListItem } from \"@webiny/admin-ui/List/components/index.js\";\n\ninterface DataListData {\n [key: string]: Record<string, any>[];\n}\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please use the `DataList` component from the `@webiny/admin-ui` package instead.\n */\nexport const DataListWithSections = (props: DataListProps<DataListData>) => {\n return <AdminDataListWithSections {...props} />;\n};\n\ninterface ScrollListWithSectionsProps extends ListProps {\n children: React.ReactElement<typeof ListItem>[];\n}\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please use the `List` component from the `@webiny/admin-ui` package instead.\n */\nexport const ScrollListWithSections = (props: ScrollListWithSectionsProps) => {\n return <List {...props} />;\n};\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,oBAAoB,IAAIC,yBAAyB,EAAEC,IAAI,QAAQ,kBAAkB;AAS1F;AACA;AACA;AACA;AACA,OAAO,MAAMF,oBAAoB,GAAIG,KAAkC,IAAK;EACxE,oBAAOJ,KAAA,CAAAK,aAAA,CAACH,yBAAyB,EAAKE,KAAQ,CAAC;AACnD,CAAC;AAMD;AACA;AACA;AACA;AACA,OAAO,MAAME,sBAAsB,GAAIF,KAAkC,IAAK;EAC1E,oBAAOJ,KAAA,CAAAK,aAAA,CAACF,IAAI,EAAKC,KAAQ,CAAC;AAC9B,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "@webiny/admin-ui/DataList/DataListIcons";
|
|
1
|
+
export * from "@webiny/admin-ui/DataList/DataListIcons.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["index.tsx"],"sourcesContent":["export * from \"@webiny/admin-ui/DataList/DataListIcons\";\n"],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"names":[],"sources":["index.tsx"],"sourcesContent":["export * from \"@webiny/admin-ui/DataList/DataListIcons.js\";\n"],"mappings":"AAAA,cAAc,4CAA4C","ignoreList":[]}
|
package/List/DataList/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { DataList, ScrollList } from "./DataList";
|
|
2
|
-
export { DataListWithSections, ScrollListWithSections } from "./DataListWithSections";
|
|
3
|
-
export * from "./DataListModalOverlay";
|
|
1
|
+
export { DataList, ScrollList } from "./DataList.js";
|
|
2
|
+
export { DataListWithSections, ScrollListWithSections } from "./DataListWithSections.js";
|
|
3
|
+
export * from "./DataListModalOverlay/index.js";
|
package/List/DataList/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { DataList, ScrollList } from "./DataList";
|
|
2
|
-
export { DataListWithSections, ScrollListWithSections } from "./DataListWithSections";
|
|
3
|
-
export * from "./DataListModalOverlay";
|
|
1
|
+
export { DataList, ScrollList } from "./DataList.js";
|
|
2
|
+
export { DataListWithSections, ScrollListWithSections } from "./DataListWithSections.js";
|
|
3
|
+
export * from "./DataListModalOverlay/index.js";
|
|
4
4
|
|
|
5
5
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["DataList","ScrollList","DataListWithSections","ScrollListWithSections"],"sources":["index.ts"],"sourcesContent":["export { DataList, ScrollList } from \"./DataList\";\nexport { DataListWithSections, ScrollListWithSections } from \"./DataListWithSections\";\nexport * from \"./DataListModalOverlay\";\n"],"mappings":"AAAA,SAASA,QAAQ,EAAEC,UAAU;AAC7B,SAASC,oBAAoB,EAAEC,sBAAsB;AACrD","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["DataList","ScrollList","DataListWithSections","ScrollListWithSections"],"sources":["index.ts"],"sourcesContent":["export { DataList, ScrollList } from \"./DataList.js\";\nexport { DataListWithSections, ScrollListWithSections } from \"./DataListWithSections.js\";\nexport * from \"./DataListModalOverlay/index.js\";\n"],"mappings":"AAAA,SAASA,QAAQ,EAAEC,UAAU;AAC7B,SAASC,oBAAoB,EAAEC,sBAAsB;AACrD","ignoreList":[]}
|
package/List/DataList/types.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "@webiny/admin-ui/DataList/types";
|
|
1
|
+
export * from "@webiny/admin-ui/DataList/types.js";
|
package/List/DataList/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["types.ts"],"sourcesContent":["export * from \"@webiny/admin-ui/DataList/types\";\n"],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"names":[],"sources":["types.ts"],"sourcesContent":["export * from \"@webiny/admin-ui/DataList/types.js\";\n"],"mappings":"AAAA,cAAc,oCAAoC","ignoreList":[]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useContext, useEffect } from "react";
|
|
2
|
-
import { DeprecatedListItemContext } from "
|
|
2
|
+
import { DeprecatedListItemContext } from "../index.js";
|
|
3
3
|
/**
|
|
4
4
|
* @deprecated This component is deprecated and will be removed in future releases.
|
|
5
5
|
* Please find out the new `ListItem` component props from the `@webiny/admin-ui` package instead.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useContext","useEffect","DeprecatedListItemContext","ListActions","props","listItemContext","addActions","children"],"sources":["ListItemAction.tsx"],"sourcesContent":["import type React from \"react\";\nimport { useContext, useEffect } from \"react\";\nimport { DeprecatedListItemContext } from \"~/List\";\n\nexport type ListActionsProps = {\n children: React.ReactNode;\n};\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please find out the new `ListItem` component props from the `@webiny/admin-ui` package instead.\n */\nexport const ListActions = (props: ListActionsProps) => {\n const listItemContext = useContext(DeprecatedListItemContext);\n\n useEffect(() => {\n listItemContext!.addActions(props.children);\n }, [props]);\n\n return null;\n};\n"],"mappings":"AACA,SAASA,UAAU,EAAEC,SAAS,QAAQ,OAAO;AAC7C,SAASC,yBAAyB;AAMlC;AACA;AACA;AACA;AACA,OAAO,MAAMC,WAAW,GAAIC,KAAuB,IAAK;EACpD,MAAMC,eAAe,GAAGL,UAAU,CAACE,yBAAyB,CAAC;EAE7DD,SAAS,CAAC,MAAM;IACZI,eAAe,CAAEC,UAAU,CAACF,KAAK,CAACG,QAAQ,CAAC;EAC/C,CAAC,EAAE,CAACH,KAAK,CAAC,CAAC;EAEX,OAAO,IAAI;AACf,CAAC","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["useContext","useEffect","DeprecatedListItemContext","ListActions","props","listItemContext","addActions","children"],"sources":["ListItemAction.tsx"],"sourcesContent":["import type React from \"react\";\nimport { useContext, useEffect } from \"react\";\nimport { DeprecatedListItemContext } from \"~/List/index.js\";\n\nexport type ListActionsProps = {\n children: React.ReactNode;\n};\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please find out the new `ListItem` component props from the `@webiny/admin-ui` package instead.\n */\nexport const ListActions = (props: ListActionsProps) => {\n const listItemContext = useContext(DeprecatedListItemContext);\n\n useEffect(() => {\n listItemContext!.addActions(props.children);\n }, [props]);\n\n return null;\n};\n"],"mappings":"AACA,SAASA,UAAU,EAAEC,SAAS,QAAQ,OAAO;AAC7C,SAASC,yBAAyB;AAMlC;AACA;AACA;AACA;AACA,OAAO,MAAMC,WAAW,GAAIC,KAAuB,IAAK;EACpD,MAAMC,eAAe,GAAGL,UAAU,CAACE,yBAAyB,CAAC;EAE7DD,SAAS,CAAC,MAAM;IACZI,eAAe,CAAEC,UAAU,CAACF,KAAK,CAACG,QAAQ,CAAC;EAC/C,CAAC,EAAE,CAACH,KAAK,CAAC,CAAC;EAEX,OAAO,IAAI;AACf,CAAC","ignoreList":[]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useContext, useEffect } from "react";
|
|
2
|
-
import { DeprecatedListItemContext } from "
|
|
2
|
+
import { DeprecatedListItemContext } from "../index.js";
|
|
3
3
|
/**
|
|
4
4
|
* @deprecated This component is deprecated and will be removed in future releases.
|
|
5
5
|
* Please find out the new `ListItem` component props from the `@webiny/admin-ui` package instead.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useContext","useEffect","DeprecatedListItemContext","ListItemGraphic","props","listItemContext","addIcon","children","ListSelectBox"],"sources":["ListItemGraphic.tsx"],"sourcesContent":["import type React from \"react\";\nimport { useContext, useEffect } from \"react\";\nimport { DeprecatedListItemContext } from \"~/List\";\n\nexport type ListItemGraphicProps = { children: React.ReactNode; className?: string };\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please find out the new `ListItem` component props from the `@webiny/admin-ui` package instead.\n */\nexport const ListItemGraphic = (props: ListItemGraphicProps) => {\n const listItemContext = useContext(DeprecatedListItemContext);\n\n useEffect(() => {\n listItemContext!.addIcon(props.children);\n }, [props]);\n\n return null;\n};\n\nexport type ListSelectBoxProps = {\n children: React.ReactNode;\n};\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please find out the new `ListItem` component props from the `@webiny/admin-ui` package instead.\n */\nexport const ListSelectBox = (props: ListSelectBoxProps) => {\n const listItemContext = useContext(DeprecatedListItemContext);\n\n useEffect(() => {\n listItemContext!.addIcon(props.children);\n }, [props]);\n\n return null;\n};\n"],"mappings":"AACA,SAASA,UAAU,EAAEC,SAAS,QAAQ,OAAO;AAC7C,SAASC,yBAAyB;AAIlC;AACA;AACA;AACA;AACA,OAAO,MAAMC,eAAe,GAAIC,KAA2B,IAAK;EAC5D,MAAMC,eAAe,GAAGL,UAAU,CAACE,yBAAyB,CAAC;EAE7DD,SAAS,CAAC,MAAM;IACZI,eAAe,CAAEC,OAAO,CAACF,KAAK,CAACG,QAAQ,CAAC;EAC5C,CAAC,EAAE,CAACH,KAAK,CAAC,CAAC;EAEX,OAAO,IAAI;AACf,CAAC;AAMD;AACA;AACA;AACA;AACA,OAAO,MAAMI,aAAa,GAAIJ,KAAyB,IAAK;EACxD,MAAMC,eAAe,GAAGL,UAAU,CAACE,yBAAyB,CAAC;EAE7DD,SAAS,CAAC,MAAM;IACZI,eAAe,CAAEC,OAAO,CAACF,KAAK,CAACG,QAAQ,CAAC;EAC5C,CAAC,EAAE,CAACH,KAAK,CAAC,CAAC;EAEX,OAAO,IAAI;AACf,CAAC","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["useContext","useEffect","DeprecatedListItemContext","ListItemGraphic","props","listItemContext","addIcon","children","ListSelectBox"],"sources":["ListItemGraphic.tsx"],"sourcesContent":["import type React from \"react\";\nimport { useContext, useEffect } from \"react\";\nimport { DeprecatedListItemContext } from \"~/List/index.js\";\n\nexport type ListItemGraphicProps = { children: React.ReactNode; className?: string };\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please find out the new `ListItem` component props from the `@webiny/admin-ui` package instead.\n */\nexport const ListItemGraphic = (props: ListItemGraphicProps) => {\n const listItemContext = useContext(DeprecatedListItemContext);\n\n useEffect(() => {\n listItemContext!.addIcon(props.children);\n }, [props]);\n\n return null;\n};\n\nexport type ListSelectBoxProps = {\n children: React.ReactNode;\n};\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please find out the new `ListItem` component props from the `@webiny/admin-ui` package instead.\n */\nexport const ListSelectBox = (props: ListSelectBoxProps) => {\n const listItemContext = useContext(DeprecatedListItemContext);\n\n useEffect(() => {\n listItemContext!.addIcon(props.children);\n }, [props]);\n\n return null;\n};\n"],"mappings":"AACA,SAASA,UAAU,EAAEC,SAAS,QAAQ,OAAO;AAC7C,SAASC,yBAAyB;AAIlC;AACA;AACA;AACA;AACA,OAAO,MAAMC,eAAe,GAAIC,KAA2B,IAAK;EAC5D,MAAMC,eAAe,GAAGL,UAAU,CAACE,yBAAyB,CAAC;EAE7DD,SAAS,CAAC,MAAM;IACZI,eAAe,CAAEC,OAAO,CAACF,KAAK,CAACG,QAAQ,CAAC;EAC5C,CAAC,EAAE,CAACH,KAAK,CAAC,CAAC;EAEX,OAAO,IAAI;AACf,CAAC;AAMD;AACA;AACA;AACA;AACA,OAAO,MAAMI,aAAa,GAAIJ,KAAyB,IAAK;EACxD,MAAMC,eAAe,GAAGL,UAAU,CAACE,yBAAyB,CAAC;EAE7DD,SAAS,CAAC,MAAM;IACZI,eAAe,CAAEC,OAAO,CAACF,KAAK,CAACG,QAAQ,CAAC;EAC5C,CAAC,EAAE,CAACH,KAAK,CAAC,CAAC;EAEX,OAAO,IAAI;AACf,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useContext","useEffect","DeprecatedListItemContext","ListItemText","props","listItemContext","onClick","addOnClickCallback","children","ListItemTextPrimary","addTitle","ListItemTextSecondary","addDescription","ListTextOverline"],"sources":["ListItemText.tsx"],"sourcesContent":["import type React from \"react\";\nimport { useContext, useEffect } from \"react\";\nimport { DeprecatedListItemContext } from \"~/List\";\n\n/** Text Wrapper for the ListItem */\nexport type ListItemTextProps = {\n children: React.ReactNode;\n className?: string;\n onClick?: (e: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;\n};\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please find out the new `ListItem` component props from the `@webiny/admin-ui` package instead.\n */\nexport const ListItemText = (props: ListItemTextProps) => {\n const listItemContext = useContext(DeprecatedListItemContext);\n\n useEffect(() => {\n props.onClick && listItemContext!.addOnClickCallback(props.onClick);\n }, [props]);\n\n return props.children;\n};\n\nexport type ListItemTextPrimaryProps = {\n /**\n * Text content\n */\n children: React.ReactNode;\n};\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please find out the new `ListItem` component props from the `@webiny/admin-ui` package instead.\n */\nexport const ListItemTextPrimary = (props: ListItemTextPrimaryProps) => {\n const listItemContext = useContext(DeprecatedListItemContext);\n\n useEffect(() => {\n listItemContext!.addTitle(props.children);\n }, [props]);\n\n return null;\n};\n\nexport type ListItemTextSecondaryProps = {\n /**\n * Text content\n */\n children: React.ReactNode;\n};\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please find out the new `ListItem` component props from the `@webiny/admin-ui` package instead.\n */\nexport const ListItemTextSecondary = (props: ListItemTextSecondaryProps) => {\n const listItemContext = useContext(DeprecatedListItemContext);\n\n useEffect(() => {\n listItemContext!.addDescription(props.children);\n }, [props]);\n\n return null;\n};\n\nexport type ListTextOverlineProps = {\n children: React.ReactNode;\n};\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please find out the new `ListItem` component props from the `@webiny/admin-ui` package instead.\n */\nexport const ListTextOverline = (props: ListTextOverlineProps) => {\n const listItemContext = useContext(DeprecatedListItemContext);\n\n useEffect(() => {\n listItemContext!.addDescription(props.children);\n }, [props]);\n\n return null;\n};\n"],"mappings":"AACA,SAASA,UAAU,EAAEC,SAAS,QAAQ,OAAO;AAC7C,SAASC,yBAAyB;;AAElC;;AAOA;AACA;AACA;AACA;AACA,OAAO,MAAMC,YAAY,GAAIC,KAAwB,IAAK;EACtD,MAAMC,eAAe,GAAGL,UAAU,CAACE,yBAAyB,CAAC;EAE7DD,SAAS,CAAC,MAAM;IACZG,KAAK,CAACE,OAAO,IAAID,eAAe,CAAEE,kBAAkB,CAACH,KAAK,CAACE,OAAO,CAAC;EACvE,CAAC,EAAE,CAACF,KAAK,CAAC,CAAC;EAEX,OAAOA,KAAK,CAACI,QAAQ;AACzB,CAAC;AASD;AACA;AACA;AACA;AACA,OAAO,MAAMC,mBAAmB,GAAIL,KAA+B,IAAK;EACpE,MAAMC,eAAe,GAAGL,UAAU,CAACE,yBAAyB,CAAC;EAE7DD,SAAS,CAAC,MAAM;IACZI,eAAe,CAAEK,QAAQ,CAACN,KAAK,CAACI,QAAQ,CAAC;EAC7C,CAAC,EAAE,CAACJ,KAAK,CAAC,CAAC;EAEX,OAAO,IAAI;AACf,CAAC;AASD;AACA;AACA;AACA;AACA,OAAO,MAAMO,qBAAqB,GAAIP,KAAiC,IAAK;EACxE,MAAMC,eAAe,GAAGL,UAAU,CAACE,yBAAyB,CAAC;EAE7DD,SAAS,CAAC,MAAM;IACZI,eAAe,CAAEO,cAAc,CAACR,KAAK,CAACI,QAAQ,CAAC;EACnD,CAAC,EAAE,CAACJ,KAAK,CAAC,CAAC;EAEX,OAAO,IAAI;AACf,CAAC;AAMD;AACA;AACA;AACA;AACA,OAAO,MAAMS,gBAAgB,GAAIT,KAA4B,IAAK;EAC9D,MAAMC,eAAe,GAAGL,UAAU,CAACE,yBAAyB,CAAC;EAE7DD,SAAS,CAAC,MAAM;IACZI,eAAe,CAAEO,cAAc,CAACR,KAAK,CAACI,QAAQ,CAAC;EACnD,CAAC,EAAE,CAACJ,KAAK,CAAC,CAAC;EAEX,OAAO,IAAI;AACf,CAAC","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["useContext","useEffect","DeprecatedListItemContext","ListItemText","props","listItemContext","onClick","addOnClickCallback","children","ListItemTextPrimary","addTitle","ListItemTextSecondary","addDescription","ListTextOverline"],"sources":["ListItemText.tsx"],"sourcesContent":["import type React from \"react\";\nimport { useContext, useEffect } from \"react\";\nimport { DeprecatedListItemContext } from \"~/List/index.js\";\n\n/** Text Wrapper for the ListItem */\nexport type ListItemTextProps = {\n children: React.ReactNode;\n className?: string;\n onClick?: (e: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;\n};\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please find out the new `ListItem` component props from the `@webiny/admin-ui` package instead.\n */\nexport const ListItemText = (props: ListItemTextProps) => {\n const listItemContext = useContext(DeprecatedListItemContext);\n\n useEffect(() => {\n props.onClick && listItemContext!.addOnClickCallback(props.onClick);\n }, [props]);\n\n return props.children;\n};\n\nexport type ListItemTextPrimaryProps = {\n /**\n * Text content\n */\n children: React.ReactNode;\n};\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please find out the new `ListItem` component props from the `@webiny/admin-ui` package instead.\n */\nexport const ListItemTextPrimary = (props: ListItemTextPrimaryProps) => {\n const listItemContext = useContext(DeprecatedListItemContext);\n\n useEffect(() => {\n listItemContext!.addTitle(props.children);\n }, [props]);\n\n return null;\n};\n\nexport type ListItemTextSecondaryProps = {\n /**\n * Text content\n */\n children: React.ReactNode;\n};\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please find out the new `ListItem` component props from the `@webiny/admin-ui` package instead.\n */\nexport const ListItemTextSecondary = (props: ListItemTextSecondaryProps) => {\n const listItemContext = useContext(DeprecatedListItemContext);\n\n useEffect(() => {\n listItemContext!.addDescription(props.children);\n }, [props]);\n\n return null;\n};\n\nexport type ListTextOverlineProps = {\n children: React.ReactNode;\n};\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please find out the new `ListItem` component props from the `@webiny/admin-ui` package instead.\n */\nexport const ListTextOverline = (props: ListTextOverlineProps) => {\n const listItemContext = useContext(DeprecatedListItemContext);\n\n useEffect(() => {\n listItemContext!.addDescription(props.children);\n }, [props]);\n\n return null;\n};\n"],"mappings":"AACA,SAASA,UAAU,EAAEC,SAAS,QAAQ,OAAO;AAC7C,SAASC,yBAAyB;;AAElC;;AAOA;AACA;AACA;AACA;AACA,OAAO,MAAMC,YAAY,GAAIC,KAAwB,IAAK;EACtD,MAAMC,eAAe,GAAGL,UAAU,CAACE,yBAAyB,CAAC;EAE7DD,SAAS,CAAC,MAAM;IACZG,KAAK,CAACE,OAAO,IAAID,eAAe,CAAEE,kBAAkB,CAACH,KAAK,CAACE,OAAO,CAAC;EACvE,CAAC,EAAE,CAACF,KAAK,CAAC,CAAC;EAEX,OAAOA,KAAK,CAACI,QAAQ;AACzB,CAAC;AASD;AACA;AACA;AACA;AACA,OAAO,MAAMC,mBAAmB,GAAIL,KAA+B,IAAK;EACpE,MAAMC,eAAe,GAAGL,UAAU,CAACE,yBAAyB,CAAC;EAE7DD,SAAS,CAAC,MAAM;IACZI,eAAe,CAAEK,QAAQ,CAACN,KAAK,CAACI,QAAQ,CAAC;EAC7C,CAAC,EAAE,CAACJ,KAAK,CAAC,CAAC;EAEX,OAAO,IAAI;AACf,CAAC;AASD;AACA;AACA;AACA;AACA,OAAO,MAAMO,qBAAqB,GAAIP,KAAiC,IAAK;EACxE,MAAMC,eAAe,GAAGL,UAAU,CAACE,yBAAyB,CAAC;EAE7DD,SAAS,CAAC,MAAM;IACZI,eAAe,CAAEO,cAAc,CAACR,KAAK,CAACI,QAAQ,CAAC;EACnD,CAAC,EAAE,CAACJ,KAAK,CAAC,CAAC;EAEX,OAAO,IAAI;AACf,CAAC;AAMD;AACA;AACA;AACA;AACA,OAAO,MAAMS,gBAAgB,GAAIT,KAA4B,IAAK;EAC9D,MAAMC,eAAe,GAAGL,UAAU,CAACE,yBAAyB,CAAC;EAE7DD,SAAS,CAAC,MAAM;IACZI,eAAe,CAAEO,cAAc,CAACR,KAAK,CAACI,QAAQ,CAAC;EACnD,CAAC,EAAE,CAACJ,KAAK,CAAC,CAAC;EAEX,OAAO,IAAI;AACf,CAAC","ignoreList":[]}
|
package/List/List/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export * from "./List";
|
|
2
|
-
export * from "./ListItem";
|
|
3
|
-
export * from "./ListItemAction";
|
|
4
|
-
export * from "./ListItemGraphic";
|
|
5
|
-
export * from "./ListItemMeta";
|
|
6
|
-
export * from "./ListItemText";
|
|
1
|
+
export * from "./List.js";
|
|
2
|
+
export * from "./ListItem.js";
|
|
3
|
+
export * from "./ListItemAction.js";
|
|
4
|
+
export * from "./ListItemGraphic.js";
|
|
5
|
+
export * from "./ListItemMeta.js";
|
|
6
|
+
export * from "./ListItemText.js";
|
package/List/List/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export * from "./List";
|
|
2
|
-
export * from "./ListItem";
|
|
3
|
-
export * from "./ListItemAction";
|
|
4
|
-
export * from "./ListItemGraphic";
|
|
5
|
-
export * from "./ListItemMeta";
|
|
6
|
-
export * from "./ListItemText";
|
|
1
|
+
export * from "./List.js";
|
|
2
|
+
export * from "./ListItem.js";
|
|
3
|
+
export * from "./ListItemAction.js";
|
|
4
|
+
export * from "./ListItemGraphic.js";
|
|
5
|
+
export * from "./ListItemMeta.js";
|
|
6
|
+
export * from "./ListItemText.js";
|
|
7
7
|
|
|
8
8
|
//# sourceMappingURL=index.js.map
|