@webiny/ui 0.0.0-unstable.eb196ccd2f → 0.0.0-unstable.f6dc066313
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.d.ts +4 -0
- 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 +4 -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
package/Tabs/Tabs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","createContext","useCallback","useMemo","useState","Tabs","AdminTabs","VALUE_PREFIX","DeprecatedTabsContext","undefined","value","onActivate","props","activeTabIndex","setActiveIndex","tabs","setTabs","activeIndex","onValueChange","parts","split","index","parseInt","isNaN","newTabs","map","tab","createElement","Tab","key","trigger","label","content","children","icon","disabled","visible","context","addTab","existingIndex","findIndex","id","slice","removeTab","filter","Fragment","Object","assign","size","separator","spacing","Provider","displayName"],"sources":["Tabs.tsx"],"sourcesContent":["import type { PropsWithChildren } from \"react\";\nimport React, { createContext, useCallback, useMemo, useState } from \"react\";\nimport { Tabs as AdminTabs } from \"@webiny/admin-ui\";\nimport type { TabProps } from \"./Tab\";\n\nconst VALUE_PREFIX = \"tab-\";\n\nexport type TabsProps = PropsWithChildren<{\n /**\n * Append an ID.\n */\n id?: string;\n\n /**\n * Append a class name.\n */\n className?: string;\n\n /**\n * Callback to execute when a tab is changed.\n */\n onActivate?: (index: number) => void;\n\n /**\n * Active tab index value.\n */\n value?: number;\n\n /**\n * Tab ID for the testing.\n */\n \"data-testid\"?: string;\n}>;\n\ninterface TabItem extends TabProps {\n id: string;\n}\n\ninterface DeprecatedTabsContext {\n addTab(props: TabItem): void;\n\n removeTab(id: string): void;\n}\n\nexport const DeprecatedTabsContext = createContext<DeprecatedTabsContext | undefined>(undefined);\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please use the `Tabs` component from the `@webiny/admin-ui` package instead.\n */\nexport const Tabs = ({ value, onActivate, ...props }: TabsProps) => {\n const [activeTabIndex, setActiveIndex] = useState(0);\n const [tabs, setTabs] = useState<TabItem[]>([]);\n\n const activeIndex = value !== undefined ? value : activeTabIndex;\n\n const onValueChange = useCallback(\n (value: string) => {\n const parts = value.split(VALUE_PREFIX);\n const index = parseInt(parts[1]);\n\n if (isNaN(index)) {\n return;\n }\n\n setActiveIndex(index);\n onActivate && onActivate(index);\n },\n [onActivate]\n );\n\n /* We need to generate a key like this to trigger a proper component re-render when child tabs change. */\n const newTabs = tabs.map((tab, index) => {\n return (\n <AdminTabs.Tab\n key={`${VALUE_PREFIX}${index}`}\n value={`${VALUE_PREFIX}${index}`}\n trigger={tab.label}\n content={tab.children}\n icon={tab.icon}\n disabled={tab.disabled}\n visible={tab.visible !== false}\n data-testid={tab[\"data-testid\"]}\n />\n );\n });\n\n const context: DeprecatedTabsContext = useMemo(\n () => ({\n addTab(props) {\n setTabs(tabs => {\n const existingIndex = tabs.findIndex(tab => tab.id === props.id);\n if (existingIndex > -1) {\n return [\n ...tabs.slice(0, existingIndex),\n props,\n ...tabs.slice(existingIndex + 1)\n ];\n }\n return [...tabs, props];\n });\n },\n removeTab(id) {\n setTabs(tabs => tabs.filter(tab => tab.id === id));\n }\n }),\n [setTabs]\n );\n\n return (\n <>\n <AdminTabs\n {...props}\n value={`${VALUE_PREFIX}${activeIndex}`}\n onValueChange={onValueChange}\n tabs={newTabs}\n size={\"md\"}\n separator={true}\n spacing={\"lg\"}\n />\n <DeprecatedTabsContext.Provider value={context}>\n {props.children}\n </DeprecatedTabsContext.Provider>\n </>\n );\n};\n\nTabs.displayName = \"Tabs\";\n"],"mappings":"AACA,OAAOA,KAAK,IAAIC,aAAa,EAAEC,WAAW,EAAEC,OAAO,EAAEC,QAAQ,QAAQ,OAAO;AAC5E,SAASC,IAAI,IAAIC,SAAS,QAAQ,kBAAkB;AAGpD,MAAMC,YAAY,GAAG,MAAM;AAuC3B,OAAO,MAAMC,qBAAqB,gBAAGP,aAAa,CAAoCQ,SAAS,CAAC;;AAEhG;AACA;AACA;AACA;AACA,OAAO,MAAMJ,IAAI,GAAGA,CAAC;EAAEK,KAAK;EAAEC,UAAU;EAAE,GAAGC;AAAiB,CAAC,KAAK;EAChE,MAAM,CAACC,cAAc,EAAEC,cAAc,CAAC,GAAGV,QAAQ,CAAC,CAAC,CAAC;EACpD,MAAM,CAACW,IAAI,EAAEC,OAAO,CAAC,GAAGZ,QAAQ,CAAY,EAAE,CAAC;EAE/C,MAAMa,WAAW,GAAGP,KAAK,KAAKD,SAAS,GAAGC,KAAK,GAAGG,cAAc;EAEhE,MAAMK,aAAa,GAAGhB,WAAW,CAC5BQ,KAAa,
|
|
1
|
+
{"version":3,"names":["React","createContext","useCallback","useMemo","useState","Tabs","AdminTabs","VALUE_PREFIX","DeprecatedTabsContext","undefined","value","onActivate","props","activeTabIndex","setActiveIndex","tabs","setTabs","activeIndex","onValueChange","parts","split","index","parseInt","isNaN","newTabs","map","tab","createElement","Tab","key","trigger","label","content","children","icon","disabled","visible","context","addTab","existingIndex","findIndex","id","slice","removeTab","filter","Fragment","Object","assign","size","separator","spacing","Provider","displayName"],"sources":["Tabs.tsx"],"sourcesContent":["import type { PropsWithChildren } from \"react\";\nimport React, { createContext, useCallback, useMemo, useState } from \"react\";\nimport { Tabs as AdminTabs } from \"@webiny/admin-ui\";\nimport type { TabProps } from \"./Tab.js\";\n\nconst VALUE_PREFIX = \"tab-\";\n\nexport type TabsProps = PropsWithChildren<{\n /**\n * Append an ID.\n */\n id?: string;\n\n /**\n * Append a class name.\n */\n className?: string;\n\n /**\n * Callback to execute when a tab is changed.\n */\n onActivate?: (index: number) => void;\n\n /**\n * Active tab index value.\n */\n value?: number;\n\n /**\n * Tab ID for the testing.\n */\n \"data-testid\"?: string;\n}>;\n\ninterface TabItem extends TabProps {\n id: string;\n}\n\ninterface DeprecatedTabsContext {\n addTab(props: TabItem): void;\n\n removeTab(id: string): void;\n}\n\nexport const DeprecatedTabsContext = createContext<DeprecatedTabsContext | undefined>(undefined);\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please use the `Tabs` component from the `@webiny/admin-ui` package instead.\n */\nexport const Tabs = ({ value, onActivate, ...props }: TabsProps) => {\n const [activeTabIndex, setActiveIndex] = useState(0);\n const [tabs, setTabs] = useState<TabItem[]>([]);\n\n const activeIndex = value !== undefined ? value : activeTabIndex;\n\n const onValueChange = useCallback(\n (value: string): void => {\n const parts = value.split(VALUE_PREFIX);\n const index = parseInt(parts[1]);\n\n if (isNaN(index)) {\n return;\n }\n\n setActiveIndex(index);\n onActivate && onActivate(index);\n },\n [onActivate]\n );\n\n /* We need to generate a key like this to trigger a proper component re-render when child tabs change. */\n const newTabs = tabs.map((tab, index) => {\n return (\n <AdminTabs.Tab\n key={`${VALUE_PREFIX}${index}`}\n value={`${VALUE_PREFIX}${index}`}\n trigger={tab.label}\n content={tab.children}\n icon={tab.icon}\n disabled={tab.disabled}\n visible={tab.visible !== false}\n data-testid={tab[\"data-testid\"]}\n />\n );\n });\n\n const context: DeprecatedTabsContext = useMemo(\n () => ({\n addTab(props) {\n setTabs(tabs => {\n const existingIndex = tabs.findIndex(tab => tab.id === props.id);\n if (existingIndex > -1) {\n return [\n ...tabs.slice(0, existingIndex),\n props,\n ...tabs.slice(existingIndex + 1)\n ];\n }\n return [...tabs, props];\n });\n },\n removeTab(id) {\n setTabs(tabs => tabs.filter(tab => tab.id === id));\n }\n }),\n [setTabs]\n );\n\n return (\n <>\n <AdminTabs\n {...props}\n value={`${VALUE_PREFIX}${activeIndex}`}\n onValueChange={onValueChange}\n tabs={newTabs}\n size={\"md\"}\n separator={true}\n spacing={\"lg\"}\n />\n <DeprecatedTabsContext.Provider value={context}>\n {props.children}\n </DeprecatedTabsContext.Provider>\n </>\n );\n};\n\nTabs.displayName = \"Tabs\";\n"],"mappings":"AACA,OAAOA,KAAK,IAAIC,aAAa,EAAEC,WAAW,EAAEC,OAAO,EAAEC,QAAQ,QAAQ,OAAO;AAC5E,SAASC,IAAI,IAAIC,SAAS,QAAQ,kBAAkB;AAGpD,MAAMC,YAAY,GAAG,MAAM;AAuC3B,OAAO,MAAMC,qBAAqB,gBAAGP,aAAa,CAAoCQ,SAAS,CAAC;;AAEhG;AACA;AACA;AACA;AACA,OAAO,MAAMJ,IAAI,GAAGA,CAAC;EAAEK,KAAK;EAAEC,UAAU;EAAE,GAAGC;AAAiB,CAAC,KAAK;EAChE,MAAM,CAACC,cAAc,EAAEC,cAAc,CAAC,GAAGV,QAAQ,CAAC,CAAC,CAAC;EACpD,MAAM,CAACW,IAAI,EAAEC,OAAO,CAAC,GAAGZ,QAAQ,CAAY,EAAE,CAAC;EAE/C,MAAMa,WAAW,GAAGP,KAAK,KAAKD,SAAS,GAAGC,KAAK,GAAGG,cAAc;EAEhE,MAAMK,aAAa,GAAGhB,WAAW,CAC5BQ,KAAa,IAAW;IACrB,MAAMS,KAAK,GAAGT,KAAK,CAACU,KAAK,CAACb,YAAY,CAAC;IACvC,MAAMc,KAAK,GAAGC,QAAQ,CAACH,KAAK,CAAC,CAAC,CAAC,CAAC;IAEhC,IAAII,KAAK,CAACF,KAAK,CAAC,EAAE;MACd;IACJ;IAEAP,cAAc,CAACO,KAAK,CAAC;IACrBV,UAAU,IAAIA,UAAU,CAACU,KAAK,CAAC;EACnC,CAAC,EACD,CAACV,UAAU,CACf,CAAC;;EAED;EACA,MAAMa,OAAO,GAAGT,IAAI,CAACU,GAAG,CAAC,CAACC,GAAG,EAAEL,KAAK,KAAK;IACrC,oBACIrB,KAAA,CAAA2B,aAAA,CAACrB,SAAS,CAACsB,GAAG;MACVC,GAAG,EAAE,GAAGtB,YAAY,GAAGc,KAAK,EAAG;MAC/BX,KAAK,EAAE,GAAGH,YAAY,GAAGc,KAAK,EAAG;MACjCS,OAAO,EAAEJ,GAAG,CAACK,KAAM;MACnBC,OAAO,EAAEN,GAAG,CAACO,QAAS;MACtBC,IAAI,EAAER,GAAG,CAACQ,IAAK;MACfC,QAAQ,EAAET,GAAG,CAACS,QAAS;MACvBC,OAAO,EAAEV,GAAG,CAACU,OAAO,KAAK,KAAM;MAC/B,eAAaV,GAAG,CAAC,aAAa;IAAE,CACnC,CAAC;EAEV,CAAC,CAAC;EAEF,MAAMW,OAA8B,GAAGlC,OAAO,CAC1C,OAAO;IACHmC,MAAMA,CAAC1B,KAAK,EAAE;MACVI,OAAO,CAACD,IAAI,IAAI;QACZ,MAAMwB,aAAa,GAAGxB,IAAI,CAACyB,SAAS,CAACd,GAAG,IAAIA,GAAG,CAACe,EAAE,KAAK7B,KAAK,CAAC6B,EAAE,CAAC;QAChE,IAAIF,aAAa,GAAG,CAAC,CAAC,EAAE;UACpB,OAAO,CACH,GAAGxB,IAAI,CAAC2B,KAAK,CAAC,CAAC,EAAEH,aAAa,CAAC,EAC/B3B,KAAK,EACL,GAAGG,IAAI,CAAC2B,KAAK,CAACH,aAAa,GAAG,CAAC,CAAC,CACnC;QACL;QACA,OAAO,CAAC,GAAGxB,IAAI,EAAEH,KAAK,CAAC;MAC3B,CAAC,CAAC;IACN,CAAC;IACD+B,SAASA,CAACF,EAAE,EAAE;MACVzB,OAAO,CAACD,IAAI,IAAIA,IAAI,CAAC6B,MAAM,CAAClB,GAAG,IAAIA,GAAG,CAACe,EAAE,KAAKA,EAAE,CAAC,CAAC;IACtD;EACJ,CAAC,CAAC,EACF,CAACzB,OAAO,CACZ,CAAC;EAED,oBACIhB,KAAA,CAAA2B,aAAA,CAAA3B,KAAA,CAAA6C,QAAA,qBACI7C,KAAA,CAAA2B,aAAA,CAACrB,SAAS,EAAAwC,MAAA,CAAAC,MAAA,KACFnC,KAAK;IACTF,KAAK,EAAE,GAAGH,YAAY,GAAGU,WAAW,EAAG;IACvCC,aAAa,EAAEA,aAAc;IAC7BH,IAAI,EAAES,OAAQ;IACdwB,IAAI,EAAE,IAAK;IACXC,SAAS,EAAE,IAAK;IAChBC,OAAO,EAAE;EAAK,EACjB,CAAC,eACFlD,KAAA,CAAA2B,aAAA,CAACnB,qBAAqB,CAAC2C,QAAQ;IAACzC,KAAK,EAAE2B;EAAQ,GAC1CzB,KAAK,CAACqB,QACqB,CAClC,CAAC;AAEX,CAAC;AAED5B,IAAI,CAAC+C,WAAW,GAAG,MAAM","ignoreList":[]}
|
package/Tabs/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./Tabs";
|
|
2
|
-
export * from "./Tab";
|
|
1
|
+
export * from "./Tabs.js";
|
|
2
|
+
export * from "./Tab.js";
|
package/Tabs/index.js
CHANGED
package/Tabs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./Tabs\";\nexport * from \"./Tab\";\n"],"mappings":"AAAA;AACA","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./Tabs.js\";\nexport * from \"./Tab.js\";\n"],"mappings":"AAAA;AACA","ignoreList":[]}
|
package/Tags/Tags.d.ts
CHANGED
package/Tags/Tags.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","Tags","AdminTags","props","createElement"],"sources":["Tags.tsx"],"sourcesContent":["import type { FocusEventHandler } from \"react\";\nimport React from \"react\";\nimport { Tags as AdminTags } from \"@webiny/admin-ui\";\nimport type { FormComponentProps } from \"~/types.js\";\n\ninterface TagsProps extends FormComponentProps {\n /**\n * Component label.\n */\n label?: React.ReactNode;\n\n /**\n * Are input and chosen tags disabled?\n */\n disabled?: boolean;\n\n /**\n * Placeholder text for the form control. Set to a blank string to create a non-floating placeholder label.\n */\n placeholder?: string;\n\n /**\n * Description beneath the input.\n */\n description?: string;\n\n /**\n * A className for the root element.\n */\n className?: string;\n\n /**\n * A list of tags.\n */\n value?: string[];\n\n /**\n * Callback that gets executed on change of input value.\n */\n onInput?: <T = unknown>(value: T) => void;\n\n /**\n * Callback that gets executed when the input is focused.\n */\n onFocus?: FocusEventHandler<HTMLInputElement> | undefined;\n\n /**\n * Automatically focus on the tags input.\n */\n autoFocus?: boolean;\n\n /**\n * Protected tags cannot be removed by the user.\n */\n protectedTags?: string[];\n}\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please use the `Tags` component from the `@webiny/admin-ui` package instead.\n */\nexport const Tags = (props: TagsProps) => {\n return <AdminTags {...props} />;\n};\n\nexport default Tags;\n"],"mappings":"AACA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,IAAIC,SAAS,QAAQ,kBAAkB;AAuDpD;AACA;AACA;AACA;AACA,OAAO,MAAMD,IAAI,GAAIE,KAAgB,IAAK;EACtC,oBAAOH,KAAA,CAAAI,aAAA,CAACF,SAAS,EAAKC,KAAQ,CAAC;AACnC,CAAC;AAED,eAAeF,IAAI","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["React","Tags","AdminTags","props","createElement"],"sources":["Tags.tsx"],"sourcesContent":["import type { FocusEventHandler } from \"react\";\nimport React from \"react\";\nimport { Tags as AdminTags } from \"@webiny/admin-ui\";\nimport type { FormComponentProps } from \"~/types.js\";\n\ninterface TagsProps extends FormComponentProps {\n /**\n * Component label.\n */\n label?: React.ReactNode;\n\n /**\n * Are input and chosen tags disabled?\n */\n disabled?: boolean;\n\n /**\n * Placeholder text for the form control. Set to a blank string to create a non-floating placeholder label.\n */\n placeholder?: string;\n\n /**\n * Description beneath the input.\n */\n description?: string | React.ReactNode;\n\n /**\n * A className for the root element.\n */\n className?: string;\n\n /**\n * A list of tags.\n */\n value?: string[];\n\n /**\n * Callback that gets executed on change of input value.\n */\n onInput?: <T = unknown>(value: T) => void;\n\n /**\n * Callback that gets executed when the input is focused.\n */\n onFocus?: FocusEventHandler<HTMLInputElement> | undefined;\n\n /**\n * Automatically focus on the tags input.\n */\n autoFocus?: boolean;\n\n /**\n * Protected tags cannot be removed by the user.\n */\n protectedTags?: string[];\n}\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please use the `Tags` component from the `@webiny/admin-ui` package instead.\n */\nexport const Tags = (props: TagsProps) => {\n return <AdminTags {...props} />;\n};\n\nexport default Tags;\n"],"mappings":"AACA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,IAAIC,SAAS,QAAQ,kBAAkB;AAuDpD;AACA;AACA;AACA;AACA,OAAO,MAAMD,IAAI,GAAIE,KAAgB,IAAK;EACtC,oBAAOH,KAAA,CAAAI,aAAA,CAACF,SAAS,EAAKC,KAAQ,CAAC;AACnC,CAAC;AAED,eAAeF,IAAI","ignoreList":[]}
|
package/Tags/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./Tags";
|
|
1
|
+
export * from "./Tags.js";
|
package/Tags/index.js
CHANGED
package/Tags/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./Tags\";\n"],"mappings":"AAAA","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./Tags.js\";\n"],"mappings":"AAAA","ignoreList":[]}
|
package/Tooltip/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./Tooltip";
|
|
1
|
+
export * from "./Tooltip.js";
|
package/Tooltip/index.js
CHANGED
package/Tooltip/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./Tooltip\";\n"],"mappings":"AAAA","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./Tooltip.js\";\n"],"mappings":"AAAA","ignoreList":[]}
|
package/TopAppBar/TopAppBar.js
CHANGED
|
@@ -19,9 +19,13 @@ const TopAppBar = props => {
|
|
|
19
19
|
if (! /*#__PURE__*/React.isValidElement(child)) {
|
|
20
20
|
return;
|
|
21
21
|
}
|
|
22
|
-
|
|
22
|
+
const {
|
|
23
|
+
alignStart,
|
|
24
|
+
alignEnd
|
|
25
|
+
} = child.props;
|
|
26
|
+
if (alignStart) {
|
|
23
27
|
start = child;
|
|
24
|
-
} else if (
|
|
28
|
+
} else if (alignEnd) {
|
|
25
29
|
end = child;
|
|
26
30
|
} else {
|
|
27
31
|
middle = child;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","HeaderBar","TopAppBar","props","children","rest","start","middle","end","Children","forEach","child","isValidElement","alignStart","alignEnd","createElement","Object","assign"],"sources":["TopAppBar.tsx"],"sourcesContent":["import React from \"react\";\nimport { HeaderBar } from \"@webiny/admin-ui\";\n\n/*********************************************************************\n * TopAppBar\n *********************************************************************/\nexport interface RmwcTopAppBarProps {\n /** Emits when the navigation icon is clicked. */\n onNav?: (evt: any) => void;\n /** Styles the top app bar as a fixed top app bar. */\n fixed?: boolean;\n /** Styles the top app bar as a prominent top app bar. */\n prominent?: boolean;\n /** Styles the top app bar as a short top app bar. */\n short?: boolean;\n /** Styles the top app bar to always be collapsed. */\n shortCollapsed?: boolean;\n /** Styles the top app bar to be dense. */\n dense?: boolean;\n /** Set a scrollTarget other than the window when you are using the TopAppBar inside of a nested scrolling DOM Element. Please note that you should store your scrollTarget in a stateful variable. See example https://codesandbox.io/s/reverent-austin-16zzi.*/\n scrollTarget?: Element | null;\n /** Advanced: A reference to the MDCFoundation. */\n foundationRef?: any;\n}\n\nexport type TopAppBarProps = RmwcTopAppBarProps & {\n /**\n * Element children\n */\n children: React.ReactNode[] | React.ReactNode;\n /**\n * CSS class name\n */\n className?: string;\n /**\n * Style object\n */\n style?: React.CSSProperties;\n};\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please use the `HeaderBar` component from the `@webiny/admin-ui` package instead.\n */\nconst TopAppBar = (props: TopAppBarProps) => {\n const { children, ...rest } = props;\n\n let start, middle, end;\n React.Children.forEach(children, child => {\n if (!React.isValidElement(child)) {\n return;\n }\n\n
|
|
1
|
+
{"version":3,"names":["React","HeaderBar","TopAppBar","props","children","rest","start","middle","end","Children","forEach","child","isValidElement","alignStart","alignEnd","createElement","Object","assign"],"sources":["TopAppBar.tsx"],"sourcesContent":["import React from \"react\";\nimport { HeaderBar } from \"@webiny/admin-ui\";\nimport type { GenericRecord } from \"@webiny/utils\";\n\n/*********************************************************************\n * TopAppBar\n *********************************************************************/\nexport interface RmwcTopAppBarProps {\n /** Emits when the navigation icon is clicked. */\n onNav?: (evt: any) => void;\n /** Styles the top app bar as a fixed top app bar. */\n fixed?: boolean;\n /** Styles the top app bar as a prominent top app bar. */\n prominent?: boolean;\n /** Styles the top app bar as a short top app bar. */\n short?: boolean;\n /** Styles the top app bar to always be collapsed. */\n shortCollapsed?: boolean;\n /** Styles the top app bar to be dense. */\n dense?: boolean;\n /** Set a scrollTarget other than the window when you are using the TopAppBar inside of a nested scrolling DOM Element. Please note that you should store your scrollTarget in a stateful variable. See example https://codesandbox.io/s/reverent-austin-16zzi.*/\n scrollTarget?: Element | null;\n /** Advanced: A reference to the MDCFoundation. */\n foundationRef?: any;\n}\n\nexport type TopAppBarProps = RmwcTopAppBarProps & {\n /**\n * Element children\n */\n children: React.ReactNode[] | React.ReactNode;\n /**\n * CSS class name\n */\n className?: string;\n /**\n * Style object\n */\n style?: React.CSSProperties;\n};\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please use the `HeaderBar` component from the `@webiny/admin-ui` package instead.\n */\nconst TopAppBar = (props: TopAppBarProps) => {\n const { children, ...rest } = props;\n\n let start, middle, end;\n React.Children.forEach(children, child => {\n if (!React.isValidElement(child)) {\n return;\n }\n\n const { alignStart, alignEnd } = child.props as GenericRecord;\n if (alignStart) {\n start = child;\n } else if (alignEnd) {\n end = child;\n } else {\n middle = child;\n }\n });\n return <HeaderBar start={start} middle={middle} end={end} {...rest} />;\n};\n\nexport { TopAppBar };\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,SAAS,QAAQ,kBAAkB;;AAG5C;AACA;AACA;;AAmCA;AACA;AACA;AACA;AACA,MAAMC,SAAS,GAAIC,KAAqB,IAAK;EACzC,MAAM;IAAEC,QAAQ;IAAE,GAAGC;EAAK,CAAC,GAAGF,KAAK;EAEnC,IAAIG,KAAK,EAAEC,MAAM,EAAEC,GAAG;EACtBR,KAAK,CAACS,QAAQ,CAACC,OAAO,CAACN,QAAQ,EAAEO,KAAK,IAAI;IACtC,IAAI,eAACX,KAAK,CAACY,cAAc,CAACD,KAAK,CAAC,EAAE;MAC9B;IACJ;IAEA,MAAM;MAAEE,UAAU;MAAEC;IAAS,CAAC,GAAGH,KAAK,CAACR,KAAsB;IAC7D,IAAIU,UAAU,EAAE;MACZP,KAAK,GAAGK,KAAK;IACjB,CAAC,MAAM,IAAIG,QAAQ,EAAE;MACjBN,GAAG,GAAGG,KAAK;IACf,CAAC,MAAM;MACHJ,MAAM,GAAGI,KAAK;IAClB;EACJ,CAAC,CAAC;EACF,oBAAOX,KAAA,CAAAe,aAAA,CAACd,SAAS,EAAAe,MAAA,CAAAC,MAAA;IAACX,KAAK,EAAEA,KAAM;IAACC,MAAM,EAAEA,MAAO;IAACC,GAAG,EAAEA;EAAI,GAAKH,IAAI,CAAG,CAAC;AAC1E,CAAC;AAED,SAASH,SAAS","ignoreList":[]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import type { TopAppBarProps } from "./TopAppBar";
|
|
2
|
+
import type { TopAppBarProps } from "./TopAppBar.js";
|
|
3
3
|
export type TopAppBarPrimaryProps = TopAppBarProps;
|
|
4
4
|
/**
|
|
5
5
|
* @deprecated This component is deprecated and will be removed in future releases.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { TopAppBar } from "./TopAppBar";
|
|
2
|
+
import { TopAppBar } from "./TopAppBar.js";
|
|
3
3
|
/**
|
|
4
4
|
* @deprecated This component is deprecated and will be removed in future releases.
|
|
5
5
|
* Please use the `HeaderBar` component from the `@webiny/admin-ui` package instead.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","TopAppBar","TopAppBarPrimary","props","children","other","createElement","Object","assign","className"],"sources":["TopAppBarPrimary.tsx"],"sourcesContent":["import React from \"react\";\nimport type { TopAppBarProps } from \"./TopAppBar\";\nimport { TopAppBar } from \"./TopAppBar\";\n\nexport type TopAppBarPrimaryProps = TopAppBarProps;\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please use the `HeaderBar` component from the `@webiny/admin-ui` package instead.\n */\nconst TopAppBarPrimary = (props: TopAppBarPrimaryProps) => {\n const { children, ...other } = props;\n return (\n <TopAppBar {...other} className={\"primary\"}>\n {children}\n </TopAppBar>\n );\n};\n\nexport { TopAppBarPrimary };\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,SAASC,SAAS;AAIlB;AACA;AACA;AACA;AACA,MAAMC,gBAAgB,GAAIC,KAA4B,IAAK;EACvD,MAAM;IAAEC,QAAQ;IAAE,GAAGC;EAAM,CAAC,GAAGF,KAAK;EACpC,oBACIH,KAAA,CAAAM,aAAA,CAACL,SAAS,EAAAM,MAAA,CAAAC,MAAA,KAAKH,KAAK;IAAEI,SAAS,EAAE;EAAU,IACtCL,QACM,CAAC;AAEpB,CAAC;AAED,SAASF,gBAAgB","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["React","TopAppBar","TopAppBarPrimary","props","children","other","createElement","Object","assign","className"],"sources":["TopAppBarPrimary.tsx"],"sourcesContent":["import React from \"react\";\nimport type { TopAppBarProps } from \"./TopAppBar.js\";\nimport { TopAppBar } from \"./TopAppBar.js\";\n\nexport type TopAppBarPrimaryProps = TopAppBarProps;\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please use the `HeaderBar` component from the `@webiny/admin-ui` package instead.\n */\nconst TopAppBarPrimary = (props: TopAppBarPrimaryProps) => {\n const { children, ...other } = props;\n return (\n <TopAppBar {...other} className={\"primary\"}>\n {children}\n </TopAppBar>\n );\n};\n\nexport { TopAppBarPrimary };\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,SAASC,SAAS;AAIlB;AACA;AACA;AACA;AACA,MAAMC,gBAAgB,GAAIC,KAA4B,IAAK;EACvD,MAAM;IAAEC,QAAQ;IAAE,GAAGC;EAAM,CAAC,GAAGF,KAAK;EACpC,oBACIH,KAAA,CAAAM,aAAA,CAACL,SAAS,EAAAM,MAAA,CAAAC,MAAA,KAAKH,KAAK;IAAEI,SAAS,EAAE;EAAU,IACtCL,QACM,CAAC;AAEpB,CAAC;AAED,SAASF,gBAAgB","ignoreList":[]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import type { TopAppBarProps } from "./TopAppBar";
|
|
2
|
+
import type { TopAppBarProps } from "./TopAppBar.js";
|
|
3
3
|
export type TopAppBarSecondaryProps = TopAppBarProps;
|
|
4
4
|
/**
|
|
5
5
|
* @deprecated This component is deprecated and will be removed in future releases.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { TopAppBar } from "./TopAppBar";
|
|
2
|
+
import { TopAppBar } from "./TopAppBar.js";
|
|
3
3
|
/**
|
|
4
4
|
* @deprecated This component is deprecated and will be removed in future releases.
|
|
5
5
|
* Please use the `HeaderBar` component from the `@webiny/admin-ui` package instead.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","TopAppBar","TopAppBarSecondary","props","style","children","other","createElement","Object","assign"],"sources":["TopAppBarSecondary.tsx"],"sourcesContent":["import React from \"react\";\nimport type { TopAppBarProps } from \"./TopAppBar\";\nimport { TopAppBar } from \"./TopAppBar\";\n\nexport type TopAppBarSecondaryProps = TopAppBarProps;\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please use the `HeaderBar` component from the `@webiny/admin-ui` package instead.\n */\nconst TopAppBarSecondary = (props: TopAppBarSecondaryProps) => {\n const { style = {}, children, ...other } = props;\n return (\n <TopAppBar {...other} style={style}>\n {children}\n </TopAppBar>\n );\n};\n\nexport { TopAppBarSecondary };\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,SAASC,SAAS;AAIlB;AACA;AACA;AACA;AACA,MAAMC,kBAAkB,GAAIC,KAA8B,IAAK;EAC3D,MAAM;IAAEC,KAAK,GAAG,CAAC,CAAC;IAAEC,QAAQ;IAAE,GAAGC;EAAM,CAAC,GAAGH,KAAK;EAChD,oBACIH,KAAA,CAAAO,aAAA,CAACN,SAAS,EAAAO,MAAA,CAAAC,MAAA,KAAKH,KAAK;IAAEF,KAAK,EAAEA;EAAM,IAC9BC,QACM,CAAC;AAEpB,CAAC;AAED,SAASH,kBAAkB","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["React","TopAppBar","TopAppBarSecondary","props","style","children","other","createElement","Object","assign"],"sources":["TopAppBarSecondary.tsx"],"sourcesContent":["import React from \"react\";\nimport type { TopAppBarProps } from \"./TopAppBar.js\";\nimport { TopAppBar } from \"./TopAppBar.js\";\n\nexport type TopAppBarSecondaryProps = TopAppBarProps;\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please use the `HeaderBar` component from the `@webiny/admin-ui` package instead.\n */\nconst TopAppBarSecondary = (props: TopAppBarSecondaryProps) => {\n const { style = {}, children, ...other } = props;\n return (\n <TopAppBar {...other} style={style}>\n {children}\n </TopAppBar>\n );\n};\n\nexport { TopAppBarSecondary };\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,SAASC,SAAS;AAIlB;AACA;AACA;AACA;AACA,MAAMC,kBAAkB,GAAIC,KAA8B,IAAK;EAC3D,MAAM;IAAEC,KAAK,GAAG,CAAC,CAAC;IAAEC,QAAQ;IAAE,GAAGC;EAAM,CAAC,GAAGH,KAAK;EAChD,oBACIH,KAAA,CAAAO,aAAA,CAACN,SAAS,EAAAO,MAAA,CAAAC,MAAA,KAAKH,KAAK;IAAEF,KAAK,EAAEA;EAAM,IAC9BC,QACM,CAAC;AAEpB,CAAC;AAED,SAASH,kBAAkB","ignoreList":[]}
|
package/TopAppBar/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export * from "./TopAppBar";
|
|
2
|
-
export * from "./TopAppBarPrimary";
|
|
3
|
-
export * from "./TopAppBarSecondary";
|
|
4
|
-
export * from "./TopAppBarSection";
|
|
5
|
-
export * from "./TopAppBarTitle";
|
|
6
|
-
export * from "./TopAppBarNavigationIcon";
|
|
7
|
-
export * from "./TopAppBarActionItem";
|
|
1
|
+
export * from "./TopAppBar.js";
|
|
2
|
+
export * from "./TopAppBarPrimary.js";
|
|
3
|
+
export * from "./TopAppBarSecondary.js";
|
|
4
|
+
export * from "./TopAppBarSection.js";
|
|
5
|
+
export * from "./TopAppBarTitle.js";
|
|
6
|
+
export * from "./TopAppBarNavigationIcon.js";
|
|
7
|
+
export * from "./TopAppBarActionItem.js";
|
package/TopAppBar/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export * from "./TopAppBar";
|
|
2
|
-
export * from "./TopAppBarPrimary";
|
|
3
|
-
export * from "./TopAppBarSecondary";
|
|
4
|
-
export * from "./TopAppBarSection";
|
|
5
|
-
export * from "./TopAppBarTitle";
|
|
6
|
-
export * from "./TopAppBarNavigationIcon";
|
|
7
|
-
export * from "./TopAppBarActionItem";
|
|
1
|
+
export * from "./TopAppBar.js";
|
|
2
|
+
export * from "./TopAppBarPrimary.js";
|
|
3
|
+
export * from "./TopAppBarSecondary.js";
|
|
4
|
+
export * from "./TopAppBarSection.js";
|
|
5
|
+
export * from "./TopAppBarTitle.js";
|
|
6
|
+
export * from "./TopAppBarNavigationIcon.js";
|
|
7
|
+
export * from "./TopAppBarActionItem.js";
|
|
8
8
|
|
|
9
9
|
//# sourceMappingURL=index.js.map
|
package/TopAppBar/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./TopAppBar\";\nexport * from \"./TopAppBarPrimary\";\nexport * from \"./TopAppBarSecondary\";\nexport * from \"./TopAppBarSection\";\nexport * from \"./TopAppBarTitle\";\nexport * from \"./TopAppBarNavigationIcon\";\nexport * from \"./TopAppBarActionItem\";\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./TopAppBar.js\";\nexport * from \"./TopAppBarPrimary.js\";\nexport * from \"./TopAppBarSecondary.js\";\nexport * from \"./TopAppBarSection.js\";\nexport * from \"./TopAppBarTitle.js\";\nexport * from \"./TopAppBarNavigationIcon.js\";\nexport * from \"./TopAppBarActionItem.js\";\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA","ignoreList":[]}
|
package/Typography/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./Typography";
|
|
1
|
+
export * from "./Typography.js";
|
package/Typography/index.js
CHANGED
package/Typography/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./Typography\";\n"],"mappings":"AAAA","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./Typography.js\";\n"],"mappings":"AAAA","ignoreList":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webiny/ui",
|
|
3
|
-
"version": "0.0.0-unstable.
|
|
3
|
+
"version": "0.0.0-unstable.f6dc066313",
|
|
4
|
+
"type": "module",
|
|
4
5
|
"main": "index.js",
|
|
5
6
|
"repository": {
|
|
6
7
|
"type": "git",
|
|
@@ -15,26 +16,25 @@
|
|
|
15
16
|
"license": "MIT",
|
|
16
17
|
"dependencies": {
|
|
17
18
|
"@svgr/webpack": "6.5.1",
|
|
18
|
-
"@webiny/admin-ui": "0.0.0-unstable.
|
|
19
|
-
"@webiny/utils": "0.0.0-unstable.
|
|
19
|
+
"@webiny/admin-ui": "0.0.0-unstable.f6dc066313",
|
|
20
|
+
"@webiny/utils": "0.0.0-unstable.f6dc066313",
|
|
20
21
|
"classnames": "2.5.1",
|
|
21
|
-
"lodash": "4.17.
|
|
22
|
+
"lodash": "4.17.23"
|
|
22
23
|
},
|
|
23
24
|
"devDependencies": {
|
|
24
|
-
"@emotion/babel-plugin": "11.
|
|
25
|
+
"@emotion/babel-plugin": "11.13.5",
|
|
25
26
|
"@testing-library/react": "15.0.7",
|
|
26
|
-
"@webiny/
|
|
27
|
-
"@webiny/
|
|
28
|
-
"
|
|
29
|
-
"babel-loader": "9.2.1",
|
|
27
|
+
"@webiny/build-tools": "0.0.0-unstable.f6dc066313",
|
|
28
|
+
"@webiny/validation": "0.0.0-unstable.f6dc066313",
|
|
29
|
+
"babel-loader": "10.0.0",
|
|
30
30
|
"execa": "5.1.1",
|
|
31
31
|
"ncp": "2.0.0",
|
|
32
32
|
"raw-loader": "4.0.2",
|
|
33
|
-
"rimraf": "6.
|
|
34
|
-
"typescript": "5.
|
|
33
|
+
"rimraf": "6.1.3",
|
|
34
|
+
"typescript": "5.9.3"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
|
-
"minimatch": "
|
|
37
|
+
"minimatch": "10.2.4",
|
|
38
38
|
"react": "18.2.0",
|
|
39
39
|
"react-dom": "18.2.0"
|
|
40
40
|
},
|
|
@@ -42,16 +42,6 @@
|
|
|
42
42
|
"access": "public",
|
|
43
43
|
"directory": "dist"
|
|
44
44
|
},
|
|
45
|
-
"scripts": {
|
|
46
|
-
"build": "node ../cli/bin.js run build",
|
|
47
|
-
"watch": "node ../cli/bin.js run watch"
|
|
48
|
-
},
|
|
49
|
-
"jest": {
|
|
50
|
-
"transform": {
|
|
51
|
-
"^.+\\.js$": "babel-jest"
|
|
52
|
-
},
|
|
53
|
-
"setupTestFrameworkScriptFile": "jest-extended"
|
|
54
|
-
},
|
|
55
45
|
"adio": {
|
|
56
46
|
"ignore": {
|
|
57
47
|
"dependencies": [
|
|
@@ -59,5 +49,5 @@
|
|
|
59
49
|
]
|
|
60
50
|
}
|
|
61
51
|
},
|
|
62
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "f6dc066313ddce5339d2aacec3aa84e61232689b"
|
|
63
53
|
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { type RichTextEditorProps as AdminRichTextEditorProps, type RichTextEditorValue, type OnReadyParams } from "@webiny/admin-ui";
|
|
3
|
-
import type { FormComponentProps } from "../types";
|
|
4
|
-
type RichTextEditorProps = FormComponentProps & AdminRichTextEditorProps & {
|
|
5
|
-
readOnly?: boolean;
|
|
6
|
-
};
|
|
7
|
-
/**
|
|
8
|
-
* @deprecated This component is deprecated and will be removed in future releases.
|
|
9
|
-
* Please find out the new `RichTextEditor` component props from the `@webiny/admin-ui` package instead.
|
|
10
|
-
*/
|
|
11
|
-
declare const RichTextEditor: ({ readOnly, ...props }: RichTextEditorProps) => React.JSX.Element;
|
|
12
|
-
export { RichTextEditor, type RichTextEditorProps, type RichTextEditorValue, type OnReadyParams };
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { RichTextEditor as AdminRichTextEditor } from "@webiny/admin-ui";
|
|
3
|
-
/**
|
|
4
|
-
* @deprecated This component is deprecated and will be removed in future releases.
|
|
5
|
-
* Please find out the new `RichTextEditor` component props from the `@webiny/admin-ui` package instead.
|
|
6
|
-
*/
|
|
7
|
-
const RichTextEditor = ({
|
|
8
|
-
readOnly,
|
|
9
|
-
...props
|
|
10
|
-
}) => {
|
|
11
|
-
return /*#__PURE__*/React.createElement(AdminRichTextEditor, Object.assign({
|
|
12
|
-
disabled: readOnly
|
|
13
|
-
}, props));
|
|
14
|
-
};
|
|
15
|
-
export { RichTextEditor };
|
|
16
|
-
|
|
17
|
-
//# sourceMappingURL=RichTextEditor.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["React","RichTextEditor","AdminRichTextEditor","readOnly","props","createElement","Object","assign","disabled"],"sources":["RichTextEditor.tsx"],"sourcesContent":["import React from \"react\";\nimport {\n RichTextEditor as AdminRichTextEditor,\n type RichTextEditorProps as AdminRichTextEditorProps,\n type RichTextEditorValue,\n type OnReadyParams\n} from \"@webiny/admin-ui\";\nimport type { FormComponentProps } from \"~/types\";\n\ntype RichTextEditorProps = FormComponentProps &\n AdminRichTextEditorProps & {\n readOnly?: boolean;\n };\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please find out the new `RichTextEditor` component props from the `@webiny/admin-ui` package instead.\n */\nconst RichTextEditor = ({ readOnly, ...props }: RichTextEditorProps) => {\n return <AdminRichTextEditor disabled={readOnly} {...props} />;\n};\n\nexport { RichTextEditor, type RichTextEditorProps, type RichTextEditorValue, type OnReadyParams };\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SACIC,cAAc,IAAIC,mBAAmB,QAIlC,kBAAkB;AAQzB;AACA;AACA;AACA;AACA,MAAMD,cAAc,GAAGA,CAAC;EAAEE,QAAQ;EAAE,GAAGC;AAA2B,CAAC,KAAK;EACpE,oBAAOJ,KAAA,CAAAK,aAAA,CAACH,mBAAmB,EAAAI,MAAA,CAAAC,MAAA;IAACC,QAAQ,EAAEL;EAAS,GAAKC,KAAK,CAAG,CAAC;AACjE,CAAC;AAED,SAASH,cAAc","ignoreList":[]}
|
package/RichTextEditor/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["createPropsFromConfig"],"sources":["index.ts"],"sourcesContent":["export * from \"./RichTextEditor\";\nexport type { RichTextEditorProps } from \"./RichTextEditor\";\nexport { createPropsFromConfig } from \"@webiny/admin-ui\";\nexport type { OnReadyParams, RichTextEditorValue } from \"@webiny/admin-ui\";\n"],"mappings":"AAAA;AAEA,SAASA,qBAAqB,QAAQ,kBAAkB","ignoreList":[]}
|
package/Tabs/README.md
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
# Tabs
|
|
2
|
-
|
|
3
|
-
### Design
|
|
4
|
-
|
|
5
|
-
<a href="https://material.io/develop/web/components/tabss/" target="_blank">https://material.io/develop/web/components/tabss/</a>
|
|
6
|
-
|
|
7
|
-
### Description
|
|
8
|
-
|
|
9
|
-
`Tabs` component is used to group content for better readability.
|
|
10
|
-
|
|
11
|
-
By default it will mount tab content only when the tab is actually selected.
|
|
12
|
-
Alternatively, it can also keep tab content always mounted - even when it's not active. This might be useful eg.
|
|
13
|
-
when validating forms which span across two or more tabs.
|
|
14
|
-
|
|
15
|
-
### Import
|
|
16
|
-
|
|
17
|
-
```js
|
|
18
|
-
import { Tabs, Tab, TabIcon } from "@webiny/ui/Tabs";
|
|
19
|
-
```
|