@antscorp/antsomi-ui 1.3.5-beta.932 → 1.3.5-beta.934

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.
@@ -2,7 +2,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { THEME } from '@antscorp/antsomi-ui/es/constants';
3
3
  import { StyledSwitch } from './styled';
4
4
  const Switch = props => {
5
- const { color = THEME.token?.colorPrimary || '#005eb8', ...rest } = props;
6
- return _jsx(StyledSwitch, { style: { '--switch-color': color }, ...rest });
5
+ const { color = THEME.token?.colorPrimary || '#005eb8', style, ...rest } = props;
6
+ return _jsx(StyledSwitch, { style: { ...style, '--switch-color': color }, ...rest });
7
7
  };
8
8
  export { Switch };
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { PayloadInfo } from '@antscorp/antsomi-ui/es/types';
2
3
  export type TDisplayFormat = 'number' | 'percentage' | 'currency' | 'datetime';
3
4
  type DisplayFormatProps = {
@@ -16,7 +16,7 @@ import { safeParseJson } from '@antscorp/antsomi-ui/es/utils';
16
16
  import { POST_MESSAGE_TYPES } from '@antscorp/antsomi-ui/es/constants';
17
17
  export const DrawerDetail = props => {
18
18
  // Props
19
- const { width, fullScreen: fullScreenProp = false, children, menuProps, closeIconProps, maxWidth, minWidth, defaultSize = 'max', headerProps, name, destroyOnClose = true, mask = false, onToggleCollapse, ...restProps } = props;
19
+ const { width, fullScreen: fullScreenProp = false, children, menuProps, closeIconProps, maxWidth, minWidth, defaultSize = 'max', headerProps, name, destroyOnClose = true, mask = false, onToggleCollapse, closable = false, ...restProps } = props;
20
20
  const { show: showMenu = true, showExpandButton = true, showClose = true, items, selectedKeys, footer, onClick = () => { }, } = menuProps || {};
21
21
  const { children: headerChildren, ...restOfHeaderProps } = headerProps || {};
22
22
  const { onClose = () => { } } = props;
@@ -110,7 +110,7 @@ export const DrawerDetail = props => {
110
110
  localStorage.setItem(DRAWER_DETAIL_LOCAL_STORAGE_KEY, JSON.stringify({ ...localStorageValues, [name || '']: !collapseDrawer }));
111
111
  }
112
112
  };
113
- return (_jsxs(StyledDrawer, { push: false, closable: false, width: drawerWidth, motion: {
113
+ return (_jsxs(StyledDrawer, { push: false, closable: closable, width: drawerWidth, motion: {
114
114
  visible: false,
115
115
  motionAppear: false,
116
116
  motionEnter: false,
@@ -3,4 +3,5 @@
3
3
  * Asynchronously loads the component for TemplateListing
4
4
  *
5
5
  */
6
+ /// <reference types="react" />
6
7
  export declare const TemplateListing: (props: import("./types").TemplateListingProps<{}>) => JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antscorp/antsomi-ui",
3
- "version": "1.3.5-beta.932",
3
+ "version": "1.3.5-beta.934",
4
4
  "description": "An enterprise-class UI design language and React UI library.",
5
5
  "sideEffects": [
6
6
  "dist/*",